/* Self-hosted fonts (SIL OFL, see fonts/LICENSE.txt). font-display: optional plus
   <link rel=preload> means the text is painted once, in its final font, with no
   late swap and therefore no layout shift. */
@font-face {
  font-family: "Fraunces";
  font-style: normal;
  font-weight: 100 900;
  font-display: optional;
  src: url("fonts/fraunces-latin-opsz-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Fraunces";
  font-style: italic;
  font-weight: 100 900;
  font-display: optional;
  src: url("fonts/fraunces-latin-opsz-italic.woff2") format("woff2");
}
@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 200 800;
  font-display: optional;
  src: url("fonts/manrope-latin-wght-normal.woff2") format("woff2");
}
@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 400;
  font-display: optional;
  src: url("fonts/ibm-plex-mono-latin-400-normal.woff2") format("woff2");
}
@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 500;
  font-display: optional;
  src: url("fonts/ibm-plex-mono-latin-500-normal.woff2") format("woff2");
}

/* Lensora website — "paper & ink" editorial system
   Warm paper ground, ink type, one sharp blue, a scan-line motif. */

:root {
  --paper: #f6f3ec;
  --paper-deep: #ede8dc;
  --card: #fffdf8;
  --ink: #0b1220;
  --ink-soft: #2a3344;
  --muted: #5b6474;
  --line: #d8d2c4;
  --line-strong: #b9b1a0;
  --blue: #1457d9;
  --blue-deep: #0b2f8a;
  --blue-ink: #0a1f52;
  --teal: #0e9488;
  --amber: #b7791f;
  --amber-soft: #fff3d6;
  --danger: #c2410c;

  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Manrope", "Segoe UI", Helvetica, Arial, sans-serif;
  --font-mono: "IBM Plex Mono", "SFMono-Regular", Consolas, monospace;

  --radius: 18px;
  --radius-sm: 10px;
  --gutter: clamp(16px, 4vw, 40px);
  --measure: 68ch;
  --shadow: 0 1px 0 rgba(11, 18, 32, 0.04), 0 18px 40px -24px rgba(11, 18, 32, 0.35);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  font-feature-settings: "ss01", "cv11";
  position: relative;
  overflow-x: hidden;
}

/* paper grain */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.35;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.04 0 0 0 0 0.07 0 0 0 0 0.12 0 0 0 0.07 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

body > * {
  position: relative;
  z-index: 1;
}

a {
  color: var(--blue);
  text-decoration: none;
  text-underline-offset: 0.18em;
}
a:hover {
  text-decoration: underline;
}

:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
  border-radius: 4px;
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.08;
  margin: 0 0 0.5em;
  color: var(--ink);
}
h1 {
  font-size: clamp(2.4rem, 6vw, 4.6rem);
  font-variation-settings: "opsz" 144, "SOFT" 30;
}
h2 {
  font-size: clamp(1.8rem, 3.4vw, 2.6rem);
  font-variation-settings: "opsz" 96;
}
h3 {
  font-size: 1.25rem;
  font-variation-settings: "opsz" 48;
}
em.ital {
  font-style: italic;
  font-variation-settings: "opsz" 144, "SOFT" 100;
  color: var(--blue-deep);
}

p {
  margin: 0 0 1em;
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 1px;
  background: var(--line-strong);
}

.wrap {
  width: min(1120px, 100% - 2 * var(--gutter));
  margin-inline: auto;
}

/* ---------- header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(10px);
  background: color-mix(in srgb, var(--paper) 86%, transparent);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 68px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.brand:hover {
  text-decoration: none;
}
.brand img {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  box-shadow: 0 0 0 1px var(--line);
}
.nav-links {
  display: flex;
  gap: clamp(10px, 2vw, 26px);
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.95rem;
  font-weight: 600;
}
.nav-links a {
  color: var(--ink-soft);
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
}
.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--ink);
  border-bottom-color: var(--blue);
  text-decoration: none;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.98rem;
  border: 1.5px solid transparent;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
  will-change: transform;
}
.btn:hover {
  text-decoration: none;
  transform: translateY(-1px);
}
.btn-primary {
  background: var(--ink);
  color: var(--paper);
  box-shadow: 0 10px 24px -14px rgba(11, 18, 32, 0.7);
}
.btn-primary:hover {
  background: var(--blue-ink);
}
.btn-ghost {
  color: var(--ink);
  border-color: var(--line-strong);
  background: transparent;
}
.btn-ghost:hover {
  background: var(--card);
}

/* ---------- hero ---------- */
.hero {
  padding: clamp(56px, 9vw, 120px) 0 clamp(40px, 6vw, 80px);
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
}
.hero p.lede {
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  color: var(--ink-soft);
  max-width: 52ch;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}
.hero-meta {
  margin-top: 26px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--muted);
}
.hero-meta span::before {
  content: "●";
  color: var(--teal);
  margin-right: 8px;
  font-size: 0.6rem;
  vertical-align: middle;
}

/* staggered entrance */
/* Entrance moves content but never hides it (no opacity), so crawlers, print
   and paused or background tabs always see the full hero text. */
.reveal {
  animation: rise 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}
.reveal:nth-child(1) { animation-delay: 0.05s; }
.reveal:nth-child(2) { animation-delay: 0.15s; }
.reveal:nth-child(3) { animation-delay: 0.25s; }
.reveal:nth-child(4) { animation-delay: 0.35s; }
.reveal:nth-child(5) { animation-delay: 0.45s; }
@keyframes rise {
  from {
    transform: translateY(16px);
  }
  to {
    transform: none;
  }
}

/* the scan frame visual */
.scan-stage {
  position: relative;
  aspect-ratio: 4 / 4.4;
  max-width: 460px;
  margin-inline: auto;
  width: 100%;
}
.scan-stage::before {
  content: "";
  position: absolute;
  inset: -8% -14% -4% -10%;
  background:
    radial-gradient(60% 50% at 70% 30%, rgba(20, 87, 217, 0.18), transparent 70%),
    radial-gradient(50% 45% at 20% 80%, rgba(14, 148, 136, 0.16), transparent 70%);
  filter: blur(10px);
  z-index: 0;
}
.doc {
  position: absolute;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  padding: 7% 8%;
  display: grid;
  gap: 7%;
  align-content: start;
}
.doc i {
  display: block;
  height: 4px;
  border-radius: 3px;
  background: var(--paper-deep);
}
.doc i.short { width: 45%; }
.doc i.mid { width: 70%; }
.doc i.long { width: 92%; }
.doc i.ink { background: var(--ink-soft); height: 7px; width: 55%; }
.doc-back {
  z-index: 1;
  inset: 12% 0 auto 2%;
  width: 62%;
  height: 54%;
  transform: rotate(-8deg);
  opacity: 0.8;
}
.doc-mid {
  z-index: 2;
  inset: 20% 0 auto 22%;
  width: 62%;
  height: 54%;
  transform: rotate(5deg);
  opacity: 0.9;
}
.doc-front {
  z-index: 3;
  inset: 8% 6% 8% 14%;
  width: auto;
  height: auto;
  padding: 10% 9%;
  transform: none;
  overflow: hidden;
}
.doc-front .total {
  margin-top: auto;
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--ink);
  border-top: 1px dashed var(--line-strong);
  padding-top: 10px;
}
.doc-front .tag {
  position: absolute;
  right: 8%;
  top: 7%;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 5px 9px;
  border-radius: 999px;
  background: var(--amber-soft);
  color: var(--amber);
  border: 1px solid #f1dfae;
}
/* scan line */
.doc-front::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, transparent, var(--blue) 20%, var(--blue) 80%, transparent) top / 100% 2px no-repeat,
    linear-gradient(rgba(20, 87, 217, 0.16), transparent) top / 100% 44px no-repeat;
  animation: scan 3.6s ease-in-out infinite;
  will-change: transform;
}
@keyframes scan {
  0%, 100% { transform: translateY(6%); }
  50% { transform: translateY(94%); }
}
/* corner brackets */
.corners {
  position: absolute;
  inset: 2% 0 2% 8%;
  z-index: 4;
  pointer-events: none;
}
.corners b {
  position: absolute;
  width: 34px;
  height: 34px;
  border: 3px solid var(--ink);
}
.corners b:nth-child(1) { left: 0; top: 0; border-right: 0; border-bottom: 0; border-top-left-radius: 8px; }
.corners b:nth-child(2) { right: 0; top: 0; border-left: 0; border-bottom: 0; border-top-right-radius: 8px; }
.corners b:nth-child(3) { left: 0; bottom: 0; border-right: 0; border-top: 0; border-bottom-left-radius: 8px; }
.corners b:nth-child(4) { right: 0; bottom: 0; border-left: 0; border-top: 0; border-bottom-right-radius: 8px; }

@media (max-width: 860px) {
  .hero {
    grid-template-columns: 1fr;
  }
  .scan-stage {
    max-width: 380px;
  }
}

/* ---------- sections ---------- */
section.block {
  padding: clamp(40px, 7vw, 96px) 0;
  border-top: 1px solid var(--line);
}
.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
  gap: 24px 48px;
  align-items: end;
  margin-bottom: clamp(28px, 4vw, 52px);
}
.section-head p {
  color: var(--ink-soft);
  margin: 0;
  max-width: 56ch;
}
@media (max-width: 760px) {
  .section-head {
    grid-template-columns: 1fr;
  }
}

.features {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 14px;
  list-style: none;
  padding: 0;
  margin: 0;
}
.feature {
  grid-column: span 4;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 24px 24px;
  position: relative;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.feature:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}
.feature.wide {
  grid-column: span 8;
}
.feature.full {
  grid-column: span 12;
}
.chips {
  list-style: none;
  margin: 16px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  position: relative;
  z-index: 1;
}
.chips li {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  padding: 6px 11px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: var(--paper);
  color: var(--ink-soft);
}
.chips li:nth-child(5) {
  border-color: #f1dfae;
  background: var(--amber-soft);
  color: var(--amber);
}
.feature .num {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--muted);
  letter-spacing: 0.12em;
}
.feature h3 {
  margin: 14px 0 8px;
}
.feature p {
  color: var(--ink-soft);
  margin: 0;
  font-size: 0.98rem;
}
.feature::after {
  content: "";
  position: absolute;
  right: -30px;
  bottom: -30px;
  width: 110px;
  height: 110px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, rgba(20, 87, 217, 0.12), transparent 65%);
}
@media (max-width: 900px) {
  .feature,
  .feature.wide,
  .feature.full {
    grid-column: span 6;
  }
}
@media (max-width: 600px) {
  .feature,
  .feature.wide,
  .feature.full {
    grid-column: span 12;
  }
}

/* promise strip */
.promise {
  background: var(--ink);
  color: var(--paper);
  border-radius: calc(var(--radius) + 6px);
  padding: clamp(28px, 5vw, 56px);
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 32px;
  position: relative;
  overflow: hidden;
}
.promise::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(transparent 0 94%, rgba(255, 255, 255, 0.05) 94% 100%) 0 0 / 100% 28px,
    radial-gradient(60% 80% at 100% 0%, rgba(20, 87, 217, 0.45), transparent 60%);
  pointer-events: none;
}
.promise > * {
  position: relative;
}
.promise h2 {
  color: var(--paper);
}
.promise p {
  color: #cbd5e1;
}
.promise ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}
.promise li {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 12px;
  align-items: start;
  padding: 14px 16px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.04);
  font-size: 0.96rem;
}
.promise li svg {
  width: 20px;
  height: 20px;
  color: #5eead4;
  margin-top: 2px;
}
@media (max-width: 800px) {
  .promise {
    grid-template-columns: 1fr;
  }
}

/* credits explainer */
.ledger {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.ledger-item {
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
  padding: 22px;
  background: transparent;
}
.ledger-item strong {
  display: block;
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 500;
  color: var(--blue-deep);
  margin-bottom: 6px;
}
.ledger-item p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.96rem;
}
@media (max-width: 760px) {
  .ledger {
    grid-template-columns: 1fr;
  }
}

/* ---------- document pages (legal) ---------- */
.page-head {
  padding: clamp(40px, 7vw, 88px) 0 clamp(20px, 4vw, 40px);
  border-bottom: 1px solid var(--line);
}
.page-head .meta {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
}
.page-head p.summary {
  font-size: 1.1rem;
  color: var(--ink-soft);
  max-width: 62ch;
  margin-top: 16px;
}

.doc-layout {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: clamp(28px, 5vw, 72px);
  padding: clamp(32px, 5vw, 64px) 0 clamp(56px, 8vw, 110px);
}
.toc {
  position: sticky;
  top: 92px;
  align-self: start;
  font-size: 0.9rem;
}
.toc .eyebrow {
  margin-bottom: 10px;
}
.toc ol {
  list-style: none;
  margin: 0;
  padding: 0;
  border-left: 1px solid var(--line);
}
.toc a {
  display: block;
  padding: 7px 0 7px 14px;
  color: var(--muted);
  border-left: 2px solid transparent;
  margin-left: -1px;
  line-height: 1.35;
}
.toc a:hover {
  color: var(--ink);
  text-decoration: none;
  border-left-color: var(--blue);
}
.prose {
  max-width: var(--measure);
}
.prose h2 {
  font-size: 1.6rem;
  margin: 2.4em 0 0.6em;
  scroll-margin-top: 96px;
}
.prose h2:first-child {
  margin-top: 0;
}
.prose h3 {
  margin: 1.6em 0 0.4em;
}
.prose ul,
.prose ol {
  padding-left: 1.3em;
}
.prose li {
  margin-bottom: 0.45em;
}
.prose li::marker {
  color: var(--blue);
}
.prose table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.93rem;
  margin: 1.2em 0 1.6em;
}
.prose th,
.prose td {
  text-align: left;
  vertical-align: top;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
}
.prose th {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 0.74rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}
.callout {
  border-left: 3px solid var(--blue);
  background: var(--card);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 14px 18px;
  margin: 1.4em 0;
  color: var(--ink-soft);
}
.callout.amber {
  border-left-color: var(--amber);
  background: var(--amber-soft);
}
code,
kbd {
  font-family: var(--font-mono);
  font-size: 0.86em;
  background: var(--paper-deep);
  padding: 2px 6px;
  border-radius: 6px;
}
.steps {
  counter-reset: step;
  list-style: none;
  padding: 0;
  margin: 1em 0 1.6em;
  display: grid;
  gap: 10px;
}
.steps li {
  counter-increment: step;
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 14px;
  align-items: start;
  padding: 14px 16px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}
.steps li::before {
  content: counter(step);
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--blue-deep);
  line-height: 1;
  padding-top: 2px;
}
@media (max-width: 860px) {
  .doc-layout {
    grid-template-columns: 1fr;
  }
  .toc {
    position: static;
  }
  .toc ol {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 14px;
    border-left: 0;
  }
  .toc a {
    border-left: 0;
    padding: 4px 0;
    margin: 0;
  }
}

/* FAQ */
details {
  border-bottom: 1px solid var(--line);
  padding: 4px 0;
}
summary {
  cursor: pointer;
  list-style: none;
  padding: 16px 40px 16px 0;
  font-weight: 700;
  position: relative;
}
summary::-webkit-details-marker {
  display: none;
}
summary::after {
  content: "+";
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: var(--blue);
  transition: transform 0.2s ease;
}
details[open] summary::after {
  transform: translateY(-50%) rotate(45deg);
}
details p,
details ol,
details ul {
  color: var(--ink-soft);
}

/* ---------- footer ---------- */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 40px 0 48px;
  font-size: 0.92rem;
  color: var(--muted);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 24px;
}
.footer-grid .footer-heading {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 12px;
}
.footer-grid ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}
.footer-grid a {
  color: var(--ink-soft);
}
.footer-bottom {
  margin-top: 32px;
  padding-top: 20px;
  border-top: 1px dashed var(--line);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 20px;
  font-family: var(--font-mono);
  font-size: 0.74rem;
}
@media (max-width: 700px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .reveal {
    opacity: 1;
    transform: none;
  }
  html {
    scroll-behavior: auto;
  }
}

/* ---------- screenshots ---------- */
.screens {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(14px, 3vw, 32px);
}
.screens li {
  margin: 0;
}
.screens img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 22px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  background: var(--card);
}
.screens p {
  margin: 14px 2px 0;
  color: var(--ink-soft);
  font-size: 0.96rem;
}
.screens strong {
  color: var(--ink);
}
@media (max-width: 760px) {
  .screens {
    grid-template-columns: repeat(3, 72%);
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 8px;
    margin-inline: calc(-1 * var(--gutter));
    padding-inline: var(--gutter);
  }
  .screens li {
    scroll-snap-align: center;
  }
}

/* ---------- home FAQ ---------- */
.faq-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.4fr);
  gap: 24px 56px;
  align-items: start;
}
.faq-more {
  color: var(--ink-soft);
  max-width: 34ch;
}
.faq-list details:first-child {
  border-top: 1px solid var(--line);
}
.faq-list details p {
  margin: 0 0 18px;
  max-width: 62ch;
}
@media (max-width: 800px) {
  .faq-layout {
    grid-template-columns: 1fr;
  }
}

/* ---------- closing call to action ---------- */
.cta {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 20px 28px;
  align-items: center;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 6px);
  padding: clamp(22px, 4vw, 40px);
  box-shadow: var(--shadow);
}
.cta img {
  border-radius: 18px;
  box-shadow: 0 0 0 1px var(--line);
}
.cta h2 {
  font-size: clamp(1.4rem, 2.6vw, 2rem);
  margin: 0 0 6px;
}
.cta p {
  margin: 0;
  color: var(--ink-soft);
}
@media (max-width: 760px) {
  .cta {
    grid-template-columns: 1fr;
    text-align: left;
  }
}

/* ---------- responsive navigation ---------- */
.nav {
  position: relative;
}
.nav-toggle {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}
.nav-burger {
  display: none;
}
@media (max-width: 760px) {
  .nav-burger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border: 1px solid var(--line-strong);
    border-radius: 12px;
    background: var(--card);
    cursor: pointer;
    flex: none;
  }
  .nav-burger span,
  .nav-burger span::before,
  .nav-burger span::after {
    display: block;
    width: 18px;
    height: 2px;
    border-radius: 2px;
    background: var(--ink);
    transition: transform 0.2s ease, top 0.2s ease, background 0.2s ease;
  }
  .nav-burger span {
    position: relative;
  }
  .nav-burger span::before,
  .nav-burger span::after {
    content: "";
    position: absolute;
    left: 0;
  }
  .nav-burger span::before {
    top: -6px;
  }
  .nav-burger span::after {
    top: 6px;
  }
  .nav-toggle:checked + .nav-burger span {
    background: transparent;
  }
  .nav-toggle:checked + .nav-burger span::before {
    top: 0;
    transform: rotate(45deg);
  }
  .nav-toggle:checked + .nav-burger span::after {
    top: 0;
    transform: rotate(-45deg);
  }
  .nav-toggle:focus-visible + .nav-burger {
    outline: 3px solid var(--blue);
    outline-offset: 3px;
  }
  .nav-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: calc(-1 * var(--gutter));
    right: calc(-1 * var(--gutter));
    padding: 6px var(--gutter) 14px;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 18px 30px -22px rgba(11, 18, 32, 0.45);
  }
  .nav-toggle:checked ~ .nav-menu {
    display: block;
  }
  .nav-menu .nav-links {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    font-size: 1.05rem;
  }
  .nav-menu .nav-links a {
    display: block;
    padding: 14px 2px;
    border-bottom: 1px solid var(--line);
  }
  .nav-menu .nav-links li:last-child a {
    border-bottom: 0;
  }
  .nav-menu .nav-links a:hover,
  .nav-menu .nav-links a[aria-current="page"] {
    border-bottom-color: var(--line);
    color: var(--blue-deep);
  }
}

/* The hero glow is decorative and may extend past the viewport edge; clip it
   so phones never get a sideways scroll. `clip` keeps sticky positioning intact. */
main {
  overflow-x: clip;
}

/* Links inside running text are underlined so they do not rely on colour alone. */
main p a:not(.btn),
.prose li a {
  text-decoration: underline;
}
