/* ─────────────────────────────────────────────
   Standalone pages (/pricing, /security, /about).
   Loaded after styles.css; only adds what those pages need.
   ───────────────────────────────────────────── */

/* Content stays visible if scripts never run. pages.js-less visitors see it at once. */
html:not(.js) .reveal { opacity: 1; transform: none; }
html:not(.js) .hl { background-size: 100% 100%; }

.nav__links a[aria-current="page"] { color: var(--ink); background: rgba(23, 32, 14, .06); }
.mobile-menu a[aria-current="page"] { color: var(--leaf); }

/* The first section sits right under the nav, so it needs less room above. */
.section--first { padding-top: 72px; }
.section--tight { padding: 88px 0; }
.section--tight + .section--tight:not(.section--tint) { padding-top: 0; }
.faq details p a { color: var(--leaf); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1.5px; }
.faq details p a:hover { color: var(--leaf-2); }
.sec-head h1 { font-size: clamp(40px, 5.4vw, 68px); }

/* ───── page head (security, about) ───── */
.page-head { position: relative; padding: 80px 0 64px; overflow: hidden; }
.page-head__bg { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(60% 90% at 88% 0%, rgba(255, 225, 53, .32), transparent 70%), radial-gradient(50% 80% at 100% 60%, rgba(163, 230, 53, .18), transparent 70%); }
.page-head .wrap { position: relative; }
.page-head h1 { font-size: clamp(42px, 6vw, 76px); max-width: 15ch; }
.page-head .lede { max-width: 54ch; margin: 24px 0 0; }
.page-head__links { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

/* ───── cards in a row ───── */
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.card { position: relative; background: var(--paper); border-radius: var(--r-lg); padding: 28px; box-shadow: var(--shadow-card); }
.card h3 { margin: 0 0 10px; }
.card p { margin: 0; font-size: 15.5px; color: var(--ink-2); }
.card p + p { margin-top: 10px; }
.card__ico { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; margin-bottom: 18px; background: var(--cream-2); color: var(--leaf); }
.card__ico svg { width: 24px; height: 24px; }
.card--lime .card__ico { background: var(--lime-soft); }
.card--lemon .card__ico { background: var(--lemon-soft); color: var(--ink); }
.cards__more { margin: 28px 0 0; text-align: center; font-size: 15.5px; color: var(--ink-2); }
.cards__more a, .doc__body a:not(.btn), .facts a { color: var(--leaf); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1.5px; }
.cards__more a:hover, .doc__body a:not(.btn):hover, .facts a:hover { color: var(--leaf-2); }

/* ───── pricing: credit pack strip ───── */
.pack { display: flex; align-items: center; justify-content: space-between; gap: 20px 32px; flex-wrap: wrap; margin-top: 16px; padding: 24px 28px; border-radius: var(--r-lg); background: radial-gradient(120% 160% at 0% 0%, var(--lemon-soft), transparent 60%), var(--paper); box-shadow: var(--shadow-card); }
.pack h3 { margin: 0 0 6px; }
.pack p { margin: 0; color: var(--ink-2); font-size: 15.5px; max-width: 60ch; }
.pack b { font-variant-numeric: tabular-nums; }

/* ───── pricing: team call to action ───── */
.team__cta { display: flex; flex-wrap: wrap; gap: 12px; justify-content: flex-end; }

/* ───── long-form page (security) ───── */
.doc { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 64px; align-items: start; padding: 24px 0 120px; }
.toc { position: sticky; top: 100px; display: grid; gap: 2px; font-size: 14.5px; }
.toc p { margin: 0 0 8px; font-weight: 600; color: var(--ink); }
.toc a { padding: 6px 12px; margin-left: -12px; border-radius: 8px; color: var(--ink-3); transition: color .15s, background .15s; }
.toc a:hover { color: var(--ink); background: rgba(23, 32, 14, .05); }
.doc__body { max-width: 740px; }
.doc__body > section { scroll-margin-top: 96px; }
.doc__body > section + section { margin-top: 72px; }
.doc__body h2 { font-size: clamp(28px, 3.4vw, 38px); margin: 0 0 18px; }
.doc__body p { margin: 0 0 16px; color: var(--ink-2); }
.doc__body p:last-child { margin-bottom: 0; }
.doc__body code { font-size: .88em; padding: 1px 6px; border-radius: 6px; background: var(--cream-2); color: var(--ink); overflow-wrap: anywhere; }

.checks { list-style: none; padding: 0; margin: 0 0 16px; display: grid; gap: 12px; }
.checks li { position: relative; padding-left: 30px; color: var(--ink-2); }
.checks li b { color: var(--ink); font-weight: 600; }
.checks li::before { content: ""; position: absolute; left: 0; top: 4px; width: 18px; height: 18px; border-radius: 50%; background: var(--lime-soft); }
.checks li::after { content: ""; position: absolute; left: 6.5px; top: 7.5px; width: 4px; height: 7.5px; border: solid var(--leaf); border-width: 0 2px 2px 0; transform: rotate(45deg); }

/* Honest limits: a warm panel, each point marked with a word, not just colour. */
.limits { padding: 28px; border-radius: var(--r-lg); background: var(--lemon-soft); box-shadow: 0 0 0 1px rgba(138, 90, 0, .14); }
.limits h2 { margin-bottom: 12px; }
.limits > p { color: var(--ink-2); }
.limits ul { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 14px; }
.limits li { padding-left: 16px; border-left: 3px solid var(--lemon-2); color: var(--ink-2); }
.limits li b { display: block; color: var(--ink); font-weight: 600; margin-bottom: 2px; }

/* ───── key/value tables (domains, key facts) ───── */
.facts { width: 100%; border-collapse: separate; border-spacing: 0; background: var(--paper); border-radius: var(--r); box-shadow: var(--shadow-card); font-size: 15.5px; }
.facts th, .facts td { padding: 15px 20px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.facts tr:last-child th, .facts tr:last-child td { border-bottom: 0; }
.facts th { width: 32%; font-weight: 600; color: var(--ink); }
.facts td { color: var(--ink-2); overflow-wrap: anywhere; }
.facts code { font-size: .92em; color: var(--ink); background: none; padding: 0; }

/* ───── about ───── */
.about-intro { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: start; }
.about-intro h2 { font-size: clamp(30px, 3.6vw, 42px); margin-bottom: 16px; }
.about-intro p { margin: 0 0 14px; color: var(--ink-2); }
.cards--5 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.cards--5 .card { grid-column: span 2; }
.cards--5 .card:nth-child(4) { grid-column: 2 / span 2; }
.facts-wrap { max-width: 860px; margin: 0 auto; }

/* ═════════════ RESPONSIVE ═════════════ */
/* Three cards go straight from a row to a stack, so none is left on its own. */
@media (max-width: 760px) {
  .cards { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 1000px) {
  .cards--5 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cards--5 .card, .cards--5 .card:nth-child(4) { grid-column: auto; }
  .cards--5 .card:last-child { grid-column: 1 / -1; }
}
@media (max-width: 900px) {
  .section--first { padding-top: 56px; }
  .doc { grid-template-columns: minmax(0, 1fr); gap: 32px; padding-bottom: 88px; }
  .toc { position: static; grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 20px; border-radius: var(--r); background: var(--paper); box-shadow: var(--shadow-card); }
  .toc p { grid-column: 1 / -1; }
  .toc a { margin-left: 0; padding: 10px 12px; }
  .about-intro { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .page-head { padding: 56px 0 48px; }
}
@media (max-width: 560px) {
  .cards, .cards--5 { grid-template-columns: minmax(0, 1fr); }
  .cards--5 .card:last-child { grid-column: auto; }
  .card { padding: 24px; }
  .pack { padding: 22px; }
  .pack .btn, .team__cta .btn { width: 100%; }
  .team { padding: 24px; border-radius: 24px; }
  .limits { padding: 22px; }
  .toc { grid-template-columns: minmax(0, 1fr); }
  .facts th, .facts td { display: block; width: auto; }
  .facts th { padding-bottom: 2px; border-bottom: 0; }
  .facts td { padding-top: 0; }
  .facts tr:last-child th { border-bottom: 0; }
}
