/* ReliFrame marketing site — styles for the pages beyond the home page.
 *
 * Pricing, docs, legal and the rest. Everything here builds on the tokens and
 * type scale in site.css rather than introducing a second design: the same
 * serif display face for headings, the same mono eyebrow, the same teal.
 *
 * Loaded only by those pages, so the home page carries none of it.
 */

/* ─── Page header ─────────────────────────────────────────────── */
.page-head {
  padding: 140px 0 60px;
  border-bottom: 1px solid var(--border-subtle);
}
.page-head h1 {
  font-family: 'DM Serif Display', serif;
  font-weight: 400;
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  margin: 0.75rem 0 0;
  max-width: 18ch;
}
.page-head h1 em {
  font-style: italic;
  color: var(--teal-mid);
}
.page-head .page-sub {
  margin-top: 1.25rem;
  max-width: 58ch;
  font-size: 1.02rem;
  line-height: 1.7;
  color: var(--text-muted);
}

/* ─── Pricing ─────────────────────────────────────────────────── */
.pricing { padding: 72px 0 40px; }
.plan-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
  align-items: stretch;
}
.plan {
  display: flex;
  flex-direction: column;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.9rem 1.6rem;
}
.plan.featured {
  border-color: var(--teal-mid);
  box-shadow: var(--shadow-glow);
}
.plan-name {
  font-family: 'DM Mono', monospace;
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--teal-light);
}
.plan-price {
  font-family: 'DM Serif Display', serif;
  font-size: 2.5rem;
  line-height: 1.1;
  color: var(--text-primary);
  margin: 1rem 0 0.15rem;
}
.plan-price .per {
  font-family: 'Outfit', sans-serif;
  font-size: 0.85rem;
  color: var(--text-dim);
}
.plan-annual {
  font-size: 0.8rem;
  color: var(--text-dim);
  min-height: 1.2rem;
}
.plan-for {
  margin: 1rem 0 1.4rem;
  font-size: 0.92rem;
  line-height: 1.6;
  color: var(--text-muted);
  min-height: 4.4rem;
}
.plan .btn { width: 100%; justify-content: center; }
.plan-features {
  list-style: none;
  margin: 1.5rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.6rem;
}
.plan-features li {
  position: relative;
  padding-left: 1.4rem;
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--text-muted);
}
.plan-features li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.5em;
  width: 7px;
  height: 7px;
  border-radius: 2px;
  background: var(--teal-mid);
}
.plan-features li.absent { color: var(--text-dim); }
.plan-features li.absent::before { background: var(--border); }

/* ─── INDUSTRIES PAGE ─────────────────────────────────────────── */
/* One block per sector: heading, the standard it works to, a sentence of
   context, then the obligation table. It borrows .compare-scroll for the
   horizontal overflow but styles its own table, because .compare is sized for
   a full-width three-plan grid and these sit inside .prose at a narrower
   measure. Row-header treatment is deliberately identical so the two read as
   the same object. */
.ind-caveat {
  border-left: 2px solid var(--teal-mid);
  padding: 0.1rem 0 0.1rem 1rem;
  margin: 0 0 3rem;
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.7;
  max-width: 46rem;
}
.ind-block { margin-bottom: 3.5rem; }
.ind-block h2 { margin-bottom: 0.35rem; }
.ind-block > p { max-width: 46rem; }
.ind-standard {
  font-family: 'DM Mono', monospace;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--teal-text);
  margin-bottom: 0.85rem;
}
/* The tables here are inside .prose, which .compare's own padding does not
   account for, so the scroll wrapper carries the spacing instead. */
.ind-block .compare-scroll { margin-top: 1.25rem; }
.ind-block table { width: 100%; min-width: 460px; border-collapse: collapse; font-size: 0.9rem; }
.ind-block th, .ind-block td {
  text-align: left; padding: 0.7rem 1rem;
  border-bottom: 1px solid var(--border-subtle); color: var(--text-muted);
}
.ind-block thead th {
  font-family: 'DM Mono', monospace; font-size: 0.66rem; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--teal-text); border-bottom-color: var(--border);
}
.ind-block tbody th { font-weight: 400; color: var(--text-primary); }
.ind-block td.yes { color: var(--teal-text); }
.ind-block td.dim { color: var(--text-muted); }
/* IEC 61508 and 61511 differ row by row, so the energy table carries a
   column per standard rather than a merged "required" list. */
.ind-block table.ind-split { min-width: 560px; }
.ind-block caption {
  caption-side: top; text-align: left; padding-bottom: 1rem;
  color: var(--text-muted); font-size: 0.85rem;
}

/* ─── Comparison table ────────────────────────────────────────── */
.compare { padding: 40px 0 100px; }
.compare-scroll { overflow-x: auto; }
.compare table {
  width: 100%;
  min-width: 620px;
  border-collapse: collapse;
  font-size: 0.9rem;
}
.compare th, .compare td {
  text-align: left;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--border-subtle);
  color: var(--text-muted);
}
.compare thead th {
  font-family: 'DM Mono', monospace;
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--teal-light);
  border-bottom-color: var(--border);
}
.compare tbody th {
  font-weight: 400;
  color: var(--text-primary);
}
.compare td.yes { color: var(--teal-light); }
.compare td.no  { color: var(--text-dim); }
.compare caption {
  caption-side: top;
  text-align: left;
  padding-bottom: 1.25rem;
  color: var(--text-dim);
  font-size: 0.88rem;
}

/* ─── Long-form prose: docs and legal ─────────────────────────── */
.prose { padding: 60px 0 100px; }
.prose-layout {
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr);
  gap: 3.5rem;
  align-items: start;
}
@media (max-width: 860px) {
  .prose-layout { grid-template-columns: 1fr; gap: 2rem; }
  .prose-nav { position: static; }
}
.prose-nav {
  position: sticky;
  top: 96px;
  font-size: 0.88rem;
}
.prose-nav ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.5rem; }
.prose-nav a { color: var(--text-dim); text-decoration: none; }
.prose-nav a:hover { color: var(--teal-light); }
.prose-nav .prose-nav-title {
  font-family: 'DM Mono', monospace;
  font-size: 0.66rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--teal-light);
  margin-bottom: 0.9rem;
}

.prose-body { max-width: 68ch; }
.prose-body h2 {
  font-family: 'DM Serif Display', serif;
  font-weight: 400;
  font-size: 1.75rem;
  line-height: 1.2;
  color: var(--text-primary);
  margin: 3rem 0 1rem;
  scroll-margin-top: 96px;
}
.prose-body h2:first-child { margin-top: 0; }
.prose-body h3 {
  font-size: 1.02rem;
  font-weight: 500;
  color: var(--text-primary);
  margin: 2rem 0 0.6rem;
}
.prose-body p, .prose-body li {
  font-size: 0.97rem;
  line-height: 1.75;
  color: var(--text-muted);
}
.prose-body p { margin: 0 0 1.1rem; }
.prose-body ul, .prose-body ol { margin: 0 0 1.3rem; padding-left: 1.3rem; }
.prose-body li { margin-bottom: 0.5rem; }
.prose-body a { color: var(--teal-light); }
.prose-body code {
  font-family: 'DM Mono', monospace;
  font-size: 0.86em;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 0.1em 0.4em;
}
.prose-body dl { margin: 0 0 1.3rem; }
.prose-body dt {
  font-weight: 500;
  color: var(--text-primary);
  margin-top: 1rem;
  font-size: 0.95rem;
}
.prose-body dd {
  margin: 0.3rem 0 0;
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--text-muted);
}

/* A stated caveat, not decoration. Used where a page must not be mistaken for
   something it is not — legal text that has not been reviewed by a lawyer. */
.notice {
  border: 1px solid var(--border);
  border-left: 3px solid var(--teal-mid);
  border-radius: var(--radius-md);
  background: var(--bg-card);
  padding: 1.1rem 1.3rem;
  margin: 0 0 2.5rem;
}
.notice p { margin: 0; font-size: 0.9rem; color: var(--text-muted); }
.notice strong { color: var(--text-primary); }
.notice a { color: var(--teal-mid); text-decoration: underline; text-underline-offset: 2px; }

/* ─── Empty state ─────────────────────────────────────────────── */
.empty-state {
  border: 1px dashed var(--border);
  border-radius: var(--radius-lg);
  padding: 3rem 2rem;
  text-align: center;
  max-width: 52ch;
}
.empty-state p { color: var(--text-muted); margin: 0 0 1.2rem; }

/* ─── Blog: post head, listing, prose extras ──────────────────── */
/* .post-head is applied alongside .page-head, which supplies the serif h1,
   the padding and the rule beneath. It only widens the measure. */
.post-head h1 { max-width: 20ch; }
/* Scoped to beat `.prose-body p` / `.page-head p`, which would otherwise
   win on specificity and render the meta line at body size. */
.prose-body .post-meta,
.page-head .post-meta {
  font-family: 'DM Mono', monospace;
  font-size: 0.74rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin: 0 0 1.4rem;
}
.post-meta .dot { margin: 0 0.5rem; opacity: 0.5; }
.prose-body 
/* Listing */
.post-list { list-style: none; padding: 0; margin: 0 0 3.5rem; }
.post-list > li {
  padding: 0 0 2.2rem;
  margin: 0 0 2.2rem;
  border-bottom: 1px solid var(--border);
}
.post-list > li:last-child { border-bottom: 0; }
.post-list h2 { margin: 0 0 0.7rem; font-size: 1.6rem; }
.post-list h2 a { color: var(--text-primary); text-decoration: none; }
.post-list h2 a:hover { color: var(--teal-mid); }
.post-more {
  display: inline-block;
  margin-top: 0.6rem;
  font-size: 0.9rem;
  color: var(--teal-mid);
  text-decoration: none;
}
.post-more:hover { text-decoration: underline; }

/* Definition list used for the status vocabulary */
.term-list { margin: 1.6rem 0 2rem; }
.term-list dt {
  font-family: 'DM Mono', monospace;
  font-size: 0.85rem;
  color: var(--teal-mid);
  margin: 1.2rem 0 0.35rem;
}
.term-list dt:first-child { margin-top: 0; }
.term-list dd { margin: 0 0 0 1.2rem; color: var(--text-muted); }

/* Pull quote for the run-level disclosure */
.prose-body blockquote {
  margin: 1.8rem 0;
  padding: 0.2rem 0 0.2rem 1.4rem;
  border-left: 3px solid var(--teal-mid);
  color: var(--text-muted);
  font-style: italic;
}
.prose-body pre {
  overflow-x: auto;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1rem 1.2rem;
  margin: 1.5rem 0;
}
.prose-body pre code {
  font-family: 'DM Mono', monospace;
  font-size: 0.82rem;
  color: var(--text-primary);
  background: none;
  padding: 0;
}
.prose-body code {
  font-family: 'DM Mono', monospace;
  font-size: 0.85em;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 0.1em 0.35em;
}
.prose-body hr {
  border: 0;
  border-top: 1px solid var(--border);
  margin: 3rem 0 1.8rem;
}
.post-foot { font-size: 0.9rem; color: var(--text-dim); }
