/* ===========================================================================
   pentes.io — landing page styles
   Builds on the design tokens in styles.css (dark, mono-forward, green).
   =========================================================================== */

.lp {
  min-height: 100%;
  background:
    radial-gradient(900px 520px at 78% -8%, color-mix(in oklch, var(--accent) 11%, transparent), transparent 60%),
    var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  line-height: 1.5;
}

.lp ::selection { background: var(--accent-dim); }

.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 28px; }
.wrap-narrow { max-width: 860px; }

.lp section { position: relative; }

/* faint grid texture overlay for the hero */
.grid-bg::before {
  content: "";
  position: absolute; inset: 0; pointer-events: none; z-index: 0;
  background-image:
    linear-gradient(to right, color-mix(in oklch, var(--border) 55%, transparent) 1px, transparent 1px),
    linear-gradient(to bottom, color-mix(in oklch, var(--border) 55%, transparent) 1px, transparent 1px);
  background-size: 52px 52px;
  mask-image: radial-gradient(680px 480px at 50% 0%, black, transparent 78%);
  -webkit-mask-image: radial-gradient(680px 480px at 50% 0%, black, transparent 78%);
  opacity: 0.5;
}

/* ---- typography ---- */
.eyebrow-lp {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--accent-text);
}
.eyebrow-lp::before {
  content: ""; width: 16px; height: 1px; background: var(--accent-line);
}
.kicker {
  font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--faint);
}
h1, h2, h3 { letter-spacing: -0.02em; font-weight: 600; margin: 0; text-wrap: balance; }
.h1 { font-size: clamp(40px, 5.6vw, 68px); line-height: 1.03; }
.h2 { font-size: clamp(28px, 3.6vw, 42px); line-height: 1.08; }
.h3 { font-size: 20px; line-height: 1.25; }
.lead { font-size: clamp(16px, 1.45vw, 19px); color: var(--text-2); line-height: 1.6; text-wrap: pretty; }
.muted { color: var(--muted); }
.accent { color: var(--accent-text); }
.mono { font-family: var(--font-mono); }

/* ---- buttons ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-size: 15px; font-weight: 600; padding: 13px 22px; border-radius: var(--radius-sm);
  cursor: pointer; border: 1px solid transparent; transition: transform .08s, background .15s, border-color .15s, box-shadow .15s;
  white-space: nowrap; text-decoration: none;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); color: var(--on-accent); box-shadow: 0 6px 24px -8px var(--accent); }
.btn-primary:hover { background: color-mix(in oklch, var(--accent) 90%, white); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--border-2); }
.btn-ghost:hover { background: var(--panel-2); border-color: var(--border-2); }
.btn-sm { padding: 9px 15px; font-size: 13.5px; }
.btn-lg { padding: 15px 26px; font-size: 16px; }

/* ---- nav ---- */
.nav {
  position: sticky; top: 0; z-index: 50;
  border-bottom: 1px solid transparent; transition: background .2s, border-color .2s, backdrop-filter .2s;
}
.nav.scrolled {
  background: color-mix(in oklch, var(--bg) 82%, transparent);
  backdrop-filter: blur(12px); border-bottom-color: var(--border);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 66px; }
.brand { display: flex; align-items: center; gap: 10px; font-size: 17px; font-weight: 650; letter-spacing: -0.02em; }
.brand-mark {
  width: 30px; height: 30px; border-radius: 7px; display: block;
  border: 1px solid var(--border); background: #000;
}
.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a { font-size: 14px; color: var(--text-2); transition: color .14s; }
.nav-links a:hover { color: var(--text); }
.nav-cta { display: flex; align-items: center; gap: 14px; }

/* ---- generic section rhythm ---- */
.sec { padding: clamp(64px, 9vh, 116px) 0; }
.sec-head { max-width: 680px; margin-bottom: 48px; display: flex; flex-direction: column; gap: 16px; }
.center { margin-left: auto; margin-right: auto; text-align: center; align-items: center; }

/* ---- hero (split: copy left, live terminal right) ---- */
.hero { padding-top: clamp(48px, 7vh, 88px); padding-bottom: clamp(48px, 7vh, 80px); overflow: hidden; }
.hero-inner {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1.02fr 1.1fr; gap: clamp(32px, 5vw, 72px);
  align-items: center;
}
.hero-copy { display: flex; flex-direction: column; align-items: flex-start; gap: 24px; text-align: left; }
.hero-copy h1 { max-width: 13ch; }
.hero-copy .lead { max-width: 50ch; }
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-micro { font-size: 13px; color: var(--muted); display: flex; align-items: center; gap: 8px; }
.hero-micro .dot { width: 5px; height: 5px; border-radius: 99px; background: var(--accent); animation: pulse-dot 1.6s infinite; }

/* ---- live terminal ---- */
.term {
  /* Phase 15 High #3 — mobile horizontal overflow. As a grid item with content
     that uses `white-space: pre`, the implicit `min-width: auto` was sizing
     this box to its widest pre-formatted line; on narrow viewports that pushed
     the page horizontally. `min-width: 0` overrides the implicit min, and the
     `overflow: hidden` (already present below) then safely clips the lines
     instead of bleeding into a scrollbar. `max-width: 100%` is belt-and-
     suspenders against the same effect on flex parents. */
  width: 100%; min-width: 0; max-width: 100%;
  border: 1px solid var(--border-2); border-radius: var(--radius-lg);
  background: linear-gradient(180deg, var(--panel) 0%, var(--bg-2) 100%);
  box-shadow: var(--shadow-2); overflow: hidden; position: relative;
}
.term::after { /* subtle screen scanline sheen */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, transparent 0%, color-mix(in oklch, var(--accent) 4%, transparent) 50%, transparent 100%);
  background-size: 100% 8px; opacity: 0.5; mix-blend-mode: screen;
}
.term-bar {
  display: flex; align-items: center; gap: 9px; padding: 12px 15px;
  border-bottom: 1px solid var(--border); background: var(--bg-2); position: relative; z-index: 1;
}
.term-bar .dots { display: flex; gap: 6px; }
.term-bar .dots span { width: 11px; height: 11px; border-radius: 99px; background: var(--panel-3); }
.term-title { font-family: var(--font-mono); font-size: 12px; color: var(--muted); display: flex; align-items: center; gap: 8px; }
.term-live { margin-left: auto; font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent-text); display: flex; align-items: center; gap: 6px; }
.term-live .blip { width: 6px; height: 6px; border-radius: 99px; background: var(--accent); box-shadow: 0 0 0 3px var(--accent-dim); animation: pulse-dot 1.2s infinite; }
.term-body {
  position: relative; z-index: 1;
  /* Phase 15 High #3 — font-size clamp so narrow viewports get shorter lines
     and the terminal mock stays inside the container without horizontal scroll. */
  font-family: var(--font-mono); font-size: clamp(11px, 2.6vw, 13px); line-height: 1.75;
  padding: 18px 18px 20px; height: 432px; overflow: hidden;
  display: flex; flex-direction: column; gap: 1px;
}
.tl { display: flex; gap: 10px; white-space: pre; opacity: 1; }
.tl.anim { animation: termIn 0.26s ease; }
.tl-gutter { color: var(--faint); flex-shrink: 0; width: 12px; text-align: center; }
.tl-text { color: var(--text-2); min-width: 0; }
.tl.cmd .tl-text { color: var(--text); font-weight: 500; }
.tl.cmd .tl-gutter { color: var(--accent-text); }
.tl.muted .tl-text { color: var(--muted); }
.tl.scan .tl-label { display: inline-block; width: 76px; color: var(--text); }
.tl.scan .tl-detail { color: var(--muted); }
.tl.ok .tl-text { color: var(--accent-text); }
.tl.crit .tl-text { color: var(--text); }
.sev-chip {
  display: inline-block; font-size: 10.5px; font-weight: 700; letter-spacing: 0.04em;
  padding: 1px 6px; border-radius: 4px; margin-right: 8px;
  color: var(--on-accent); background: var(--accent);
}
.sev-chip.dim { color: var(--bg); background: var(--text-2); }
.term-cursor { display: inline-block; width: 8px; height: 15px; background: var(--accent); vertical-align: -2px; animation: blink 1s steps(1) infinite; }
@keyframes termIn { from { opacity: 0; transform: translateY(3px); } }

/* ---- still image fallback (shown on <=480px or prefers-reduced-motion) ---- */
.term-still { width: 100%; height: auto; display: block; border-radius: 4px; }

/* result summary bar that slides up at the end */
.term-result {
  display: flex; align-items: center; gap: 12px; margin-top: 10px; padding: 11px 13px;
  border: 1px solid var(--accent-line); background: var(--accent-dim); border-radius: 9px;
}
.term-result .big { font-family: var(--font-mono); font-size: 19px; font-weight: 600; color: var(--text); }
.term-result .lbl { font-size: 12px; color: var(--text-2); }

/* ---- product preview frame ---- */
.preview {
  margin-top: 18px; width: 100%; max-width: 980px;
  border: 1px solid var(--border-2); border-radius: var(--radius-lg);
  background: var(--panel); box-shadow: var(--shadow-2);
  overflow: hidden; position: relative;
}
.preview-bar {
  display: flex; align-items: center; gap: 8px; padding: 12px 16px;
  border-bottom: 1px solid var(--border); background: var(--bg-2);
}
.preview-bar .dots { display: flex; gap: 6px; }
.preview-bar .dots span { width: 10px; height: 10px; border-radius: 99px; background: var(--panel-3); }
.preview-url {
  margin-left: 10px; font-family: var(--font-mono); font-size: 12px; color: var(--muted);
  background: var(--bg); border: 1px solid var(--border); border-radius: 6px; padding: 4px 12px;
}

/* ---- trust bar ---- */
.trust { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); padding: 30px 0; }
.trust-inner { display: flex; align-items: center; justify-content: space-between; gap: 28px; flex-wrap: wrap; }
/* Phase 15 Wave 4 fix — `white-space: nowrap` + the Wave 1 C2 text swap
   ("Trusted by security teams at" → "Built on the same tooling your security
   team already audits:") pushed this label to 497px wide on a 390px viewport,
   forcing 110px of horizontal page scroll. Allow it to wrap on narrow
   screens. The mobile media query below also enforces a max-width clamp. */
.trust-label { font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--faint); white-space: nowrap; max-width: 100%; }
@media (max-width: 680px) {
  .trust-label { white-space: normal; text-align: center; line-height: 1.4; }
}
.logos { display: flex; align-items: center; gap: 38px; flex-wrap: wrap; flex: 1; justify-content: center; }
.logo { font-size: 17px; font-weight: 650; letter-spacing: -0.02em; color: var(--muted); opacity: .85; display: flex; align-items: center; gap: 8px; }

/* ---- how it works ---- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: step; align-items: stretch; }
.step {
  position: relative; padding: 26px; border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--panel); display: flex; flex-direction: column; gap: 12px;
}
.step-num {
  font-family: var(--font-mono); font-size: 13px; color: var(--accent-text);
  display: flex; align-items: center; gap: 10px;
}
.step-num b { font-size: 12px; color: var(--on-accent); background: var(--accent); width: 22px; height: 22px; border-radius: 6px; display: grid; place-items: center; font-weight: 700; }
.step-arrow { position: absolute; right: -16px; top: 38px; color: var(--border-2); z-index: 2; }

/* ---- feature rows ---- */
.feature-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.feat {
  padding: 28px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--panel);
  display: flex; flex-direction: column; gap: 14px; transition: border-color .16s, background .16s;
}
.feat:hover { border-color: var(--border-2); background: var(--panel-2); }
.feat-ico {
  display: grid; place-items: center; width: 42px; height: 42px; border-radius: 11px;
  background: var(--accent-dim); color: var(--accent-text); border: 1px solid var(--accent-line);
}
.feat h3 { font-size: 18px; }
.feat p { margin: 0; color: var(--muted); font-size: 14.5px; line-height: 1.6; }
.span-2 { grid-column: span 2; }

/* ---- safety / objection ---- */
.safety {
  border: 1px solid var(--accent-line); border-radius: var(--radius-lg);
  background:
    radial-gradient(600px 300px at 100% 0%, var(--accent-dim), transparent 70%),
    var(--panel);
  padding: clamp(36px, 5vw, 60px);
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: center;
}
.boundary-list { display: flex; flex-direction: column; gap: 2px; }
.boundary {
  display: flex; align-items: flex-start; gap: 13px; padding: 14px 4px;
  border-bottom: 1px solid var(--border);
}
.boundary:last-child { border-bottom: none; }
.boundary .mark { color: var(--accent-text); flex-shrink: 0; margin-top: 1px; }
.boundary .mark.no { color: var(--err); }
.boundary b { font-weight: 600; font-size: 14.5px; }
.boundary span { color: var(--muted); font-size: 13.5px; }

/* ---- showcase ---- */
.showcase { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 52px; align-items: center; }
.shot { border: 1px solid var(--border-2); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-2); background: var(--panel); }

/* ---- testimonial ---- */
.quote {
  border-left: 2px solid var(--accent); padding: 8px 0 8px 28px; max-width: 760px;
}
.quote p { font-size: clamp(20px, 2.4vw, 27px); line-height: 1.4; font-weight: 500; letter-spacing: -0.01em; margin: 0 0 20px; text-wrap: balance; }
.quote .who { display: flex; align-items: center; gap: 13px; }
.quote .av { width: 42px; height: 42px; border-radius: 99px; background: var(--panel-3); border: 1px solid var(--border-2); display: grid; place-items: center; font-family: var(--font-mono); font-weight: 600; font-size: 14px; }

/* ---- pricing ---- */
.billing { display: flex; align-items: center; justify-content: center; gap: 14px; margin-bottom: 42px; }
.bt-label { font-size: 14px; color: var(--muted); cursor: pointer; transition: color .14s; user-select: none; }
.bt-label.on { color: var(--text); font-weight: 600; }
.bt-switch { position: relative; width: 52px; height: 28px; border-radius: 99px; background: var(--panel-3); border: 1px solid var(--border-2); cursor: pointer; padding: 0; flex-shrink: 0; }
.bt-switch .knob { position: absolute; top: 2px; left: 2px; width: 22px; height: 22px; border-radius: 99px; background: var(--accent); transition: transform .22s cubic-bezier(.2,.7,.2,1); }
.billing.annual .bt-switch .knob { transform: translateX(24px); }
.bt-save { font-family: var(--font-mono); font-size: 11px; letter-spacing: .04em; color: var(--accent-text); background: var(--accent-dim); border: 1px solid var(--accent-line); padding: 3px 9px; border-radius: 99px; }
.tiers { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; align-items: stretch; max-width: 640px; margin: 0 auto; }
.tier {
  border: 1px solid var(--border); border-radius: var(--radius); background: var(--panel);
  padding: 26px 22px; display: flex; flex-direction: column; gap: 16px; position: relative;
}
.tier.featured { border-color: var(--accent-line); background: var(--panel-2); box-shadow: 0 0 0 1px var(--accent-line); }
.tier .badge-rec {
  position: absolute; top: -11px; left: 22px; font-family: var(--font-mono); font-size: 10.5px;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--on-accent); background: var(--accent);
  padding: 3px 10px; border-radius: 99px; font-weight: 700;
}
.tier-name { font-family: var(--font-mono); font-size: 13px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-2); }
.tier-who { color: var(--muted); font-size: 13px; margin: 0; min-height: 34px; }
.tier-price { display: flex; align-items: baseline; gap: 5px; }
.tier-price b { font-size: 38px; font-weight: 600; letter-spacing: -0.03em; }
.tier-price span { color: var(--muted); font-size: 13px; }
.tier-sub { font-size: 12px; color: var(--faint); margin-top: -10px; min-height: 16px; }
.tier ul { list-style: none; margin: 4px 0 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.tier li { display: flex; align-items: flex-start; gap: 10px; font-size: 13.5px; color: var(--text-2); line-height: 1.4; }
.tier li svg { color: var(--accent-text); flex-shrink: 0; margin-top: 1px; }
.tier .btn { margin-top: 2px; }
.price-foot { display: flex; align-items: center; justify-content: center; gap: 22px; margin-top: 28px; flex-wrap: wrap; }
.price-foot span { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); }
.price-foot svg { color: var(--accent-text); }

/* ---- faq ---- */
.faq { display: flex; flex-direction: column; gap: 0; max-width: 820px; margin: 0 auto; }
.qa { border-bottom: 1px solid var(--border); }
.qa-q {
  width: 100%; text-align: left; background: none; border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 22px 4px; color: var(--text); font-size: 16.5px; font-weight: 550; font-family: inherit;
}
.qa-q .chev { color: var(--muted); transition: transform .22s; flex-shrink: 0; }
.qa.open .qa-q .chev { transform: rotate(180deg); color: var(--accent-text); }
.qa-a { max-height: 0; overflow: hidden; transition: max-height .28s ease; }
.qa-a-inner { padding: 0 4px 22px; color: var(--muted); font-size: 14.5px; line-height: 1.65; max-width: 70ch; }

/* ---- final cta ---- */
.cta-final {
  text-align: center; border: 1px solid var(--border-2); border-radius: var(--radius-lg);
  background:
    radial-gradient(600px 280px at 50% 0%, var(--accent-dim), transparent 72%),
    var(--panel);
  padding: clamp(48px, 7vw, 84px) 28px;
  display: flex; flex-direction: column; align-items: center; gap: 22px;
}

/* ---- footer ---- */
.footer { border-top: 1px solid var(--border); padding: 52px 0 40px; }
.footer-inner { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 32px; }
.footer h4 { font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--faint); margin: 0 0 16px; }
.footer a { display: block; color: var(--text-2); font-size: 14px; padding: 5px 0; transition: color .14s; }
.footer a:hover { color: var(--text); }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 44px; padding-top: 24px; border-top: 1px solid var(--border); flex-wrap: wrap; }
.footer-bottom span { font-size: 13px; color: var(--faint); }

/* ---- mini app-preview internals ---- */
.pv-body { display: grid; grid-template-columns: 168px 1fr; min-height: 372px; }
.pv-side { border-right: 1px solid var(--border); background: var(--bg-2); padding: 16px 12px; display: flex; flex-direction: column; gap: 4px; }
.pv-nav { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 7px; font-size: 13px; color: var(--text-2); }
.pv-nav.active { background: var(--panel-2); color: var(--text); border: 1px solid var(--border); }
.pv-nav.active svg { color: var(--accent-text); }
.pv-main { padding: 20px 22px; display: flex; flex-direction: column; gap: 16px; }
.pv-row { display: flex; align-items: center; gap: 12px; }
.pill {
  display: inline-flex; align-items: center; gap: 6px; font-family: var(--font-mono); font-size: 11.5px; font-weight: 600;
  color: var(--accent-text);
}
.pill .d { width: 7px; height: 7px; border-radius: 99px; background: var(--accent); box-shadow: 0 0 0 3px var(--accent-dim); }
.sev {
  display: inline-flex; align-items: center; gap: 5px; font-family: var(--font-mono); font-size: 11px; font-weight: 600;
  padding: 2px 8px; border-radius: 99px;
}
.find-row { display: flex; align-items: center; gap: 12px; padding: 11px 13px; border: 1px solid var(--border); border-radius: 8px; background: var(--bg-2); }
.find-row.sel { border-color: var(--accent-line); background: var(--accent-dim); }

/* ---- reveal-on-scroll ----
   Resting state is VISIBLE. The hidden start-state is only applied when JS is
   running AND able to animate (.js-reveal added to <html>), so if the observer
   never fires or JS is off, content stays fully visible. */
.reveal { opacity: 1; transform: none; }
.js-reveal .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s cubic-bezier(.2,.7,.2,1), transform .6s cubic-bezier(.2,.7,.2,1); }
.js-reveal .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js-reveal .reveal { opacity: 1; transform: none; transition: none; } }

/* ---- responsive ---- */
.menu-btn { display: none; background: none; border: 1px solid var(--border-2); border-radius: 8px; color: var(--text); padding: 7px; cursor: pointer; }

@media (max-width: 1080px) {
  .tiers { grid-template-columns: repeat(2, 1fr); max-width: 640px; margin: 0 auto; }
}
@media (max-width: 920px) {
  .hero-inner { grid-template-columns: 1fr; gap: 36px; }
  .hero-copy { align-items: center; text-align: center; }
  .hero-copy h1, .hero-copy .lead { max-width: 90%; }
  .hero-ctas { justify-content: center; }
  .term-body { height: 372px; }
  .steps { grid-template-columns: 1fr; }
  .step-arrow { display: none; }
  .feature-grid { grid-template-columns: 1fr; }
  .span-2 { grid-column: span 1; }
  .safety { grid-template-columns: 1fr; gap: 32px; }
  .showcase { grid-template-columns: 1fr; gap: 32px; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .pv-side { display: none; }
  .pv-body { grid-template-columns: 1fr; }
}
@media (max-width: 680px) {
  .trust-inner { justify-content: center; }
  .footer-inner { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .tiers { grid-template-columns: 1fr; max-width: 420px; }
}

/* ============================================================
   Mobile layout — 768px and below
   ============================================================ */
@media (max-width: 768px) {
  /* --- hamburger button becomes visible --- */
  #menuBtn {
    display: flex;
    min-width: 44px;
    min-height: 44px;
    align-items: center;
    justify-content: center;
  }

  /* --- nav-links hidden by default on mobile --- */
  .nav-links {
    display: none;
  }

  /* --- open state: full-screen overlay column --- */
  #nav.is-open .nav-links {
    display: flex;
    flex-direction: column;
    position: fixed;
    inset: 64px 0 0 0;
    background: var(--bg);
    padding: 24px;
    gap: 0;
    z-index: 50;
    overflow-y: auto;
  }

  #nav.is-open .nav-links a {
    font-size: 18px;
    color: var(--text);
    padding: 14px 4px;
    border-bottom: 1px solid var(--border);
    min-height: 44px;
    display: flex;
    align-items: center;
  }

  /* hide the Sign-in link from nav-cta on mobile (it's in the menu overlay) */
  .nav-cta > .nav-links {
    display: none !important;
  }

  /* --- typography scale --- */
  .h1 { font-size: clamp(28px, 8vw, 40px); }
  .lead { font-size: 16px; }

  /* --- grid collapses --- */
  .features-grid,
  .safety-grid,
  .pricing-grid,
  .trust-inner {
    grid-template-columns: 1fr;
  }

  /* --- hero terminal does not overflow, still image fills edge-to-edge --- */
  .term { max-width: 100%; padding: 0; }
  .term-body { font-size: 11px; padding: 12px 16px; min-height: 200px; }

  /* --- hero CTAs stack vertically --- */
  .hero-ctas {
    flex-direction: column;
    align-items: stretch;
  }
  .btn-lg {
    width: 100%;
    justify-content: center;
  }
}

/* ============================================================
   Sketch cards — hand-drawn illustrations on white "paper"
   (Phase 5 / Plan 05-01)
   ============================================================ */
.sketch-card {
  background: #ffffff;
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 12px;
  overflow: hidden;
  margin: 0;
  transition: box-shadow 0.18s ease, transform 0.18s ease;
}
.sketch-card img {
  width: 100%;
  height: auto;
  display: block;
}
.sketch-card figcaption {
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--text-2);
  text-align: center;
  padding-top: 8px;
  border-top: 1px solid var(--border);
}
/* Hover: deepen shadow + lift 2px while preserving seeded rotation via --card-rotation */
.step .sketch-card:hover {
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.55);
  transform: rotate(var(--card-rotation, 0deg)) translateY(-2px);
}
.sketch-card:focus-visible {
  outline: 2px solid var(--accent-line);
  outline-offset: 4px;
}

/* "Learn more →" CTA below the landing strip */
.how-learn-more {
  font-size: 14.5px;
  font-weight: 600;
  color: var(--accent-text);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: opacity 0.14s;
}
.how-learn-more:hover { opacity: 0.75; }
.how-learn-more:focus-visible {
  outline: 2px solid var(--accent-line);
  outline-offset: 4px;
  border-radius: 3px;
}

/* Reduced motion: strip the translateY hover but keep the seeded rotation */
@media (prefers-reduced-motion: reduce) {
  .sketch-card { transition: none; }
  .step .sketch-card:hover { transform: rotate(var(--card-rotation, 0deg)); }
}
