/* LensCAD marketing site (b287). One stylesheet for /, /product, /solutions,
   /examples, /pricing and /learn. The app itself (templates/index.html) does
   not use it. */

:root {
  --bg: #07111f;
  --surface: #0c1825;
  --surface-2: #0d1c2b;
  --surface-3: #112235;
  --line: #203247;
  --line-strong: #2c4460;
  --text: #edf4fb;
  --muted: #9caec2;
  --dim: #6f8399;
  --blue: #2f8cff;
  --blue-soft: #64b6ff;
  --blue-deep: #1f6fd6;
  --green: #34d399;
  --amber: #f0a84a;
  --red: #ff5f5f;
  --radius: 12px;
  --radius-sm: 8px;
  --sans: 'DM Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --wrap: 1200px;
  --gutter: 24px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
body {
  margin: 0;
  font-family: var(--sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: var(--blue-soft); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 2px; }
:focus-visible { outline: 2px solid var(--blue-soft); outline-offset: 3px; border-radius: 4px; }
button { font: inherit; color: inherit; }
h1, h2, h3, h4 { margin: 0; font-weight: 600; letter-spacing: -0.01em; line-height: 1.15; color: var(--text); }
p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-left: 1.3em; }
li { margin: 0 0 0.35em; }
strong { color: var(--text); font-weight: 600; }
.skip-link {
  position: absolute; left: -9999px; top: 8px; z-index: 1000;
  background: var(--blue); color: #fff; padding: 8px 12px; border-radius: 6px;
}
.skip-link:focus { left: 8px; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.mono { font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--blue-soft); }
.muted { color: var(--muted); }
.rule { border: 0; border-top: 1px solid var(--line); margin: 0; }

/* ---- Announcement bar + nav --------------------------------------------- */
.announce {
  height: 30px; display: flex; align-items: center; justify-content: center;
  background: var(--surface-2); border-bottom: 1px solid var(--line);
  font-size: 12px; color: #a9b8c8; padding: 0 var(--gutter); text-align: center;
  white-space: nowrap; overflow: hidden;
}
.announce span { overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.announce .mono { color: #a9b8c8; letter-spacing: 0.1em; margin-right: 6px; flex: 0 0 auto; }
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(7, 17, 31, 0.92); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav-inner { height: 64px; display: flex; align-items: center; gap: 16px; }
/* The real logo: the aperture mark cut from static/logo.png, and the wordmark
   in the logo's own two colours (silver "Lens", blue "CAD"). */
.brand { display: inline-flex; align-items: center; gap: 9px; font-weight: 800; font-size: 20px; letter-spacing: 0.01em; }
.brand:hover { text-decoration: none; }
.brand img { width: 28px; height: 28px; flex: 0 0 auto; }
.brand-lens { color: #aab3c0; }
.brand-cad { color: #3f7fd0; }
.nav-links { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav-links a { color: var(--muted); font-size: 14px; font-weight: 500; padding: 8px 12px; border-radius: 6px; }
.nav-links a:hover { color: var(--text); text-decoration: none; background: var(--surface-3); }
.nav-links a[aria-current="page"] { color: var(--text); }
.nav-actions { display: flex; align-items: center; gap: 8px; margin-left: 12px; }
.nav-login { color: var(--text); font-size: 14px; font-weight: 500; padding: 8px 12px; border-radius: 6px; }
.nav-login:hover { text-decoration: none; background: var(--surface-3); }
.nav-cta {
  background: var(--blue); color: #fff; font-size: 14px; font-weight: 600;
  padding: 9px 16px; border-radius: 8px; white-space: nowrap;
}
.nav-cta:hover { background: var(--blue-deep); text-decoration: none; }
.nav-toggle {
  display: none; margin-left: auto; width: 44px; height: 44px; border: 1px solid var(--line);
  background: transparent; border-radius: 8px; cursor: pointer; align-items: center; justify-content: center;
}
.nav-toggle span { display: block; width: 18px; height: 2px; background: var(--text); position: relative; }
.nav-toggle span::before, .nav-toggle span::after { content: ''; position: absolute; left: 0; width: 18px; height: 2px; background: var(--text); }
.nav-toggle span::before { top: -6px; } .nav-toggle span::after { top: 6px; }
.nav-menu { display: contents; }
@media (max-width: 860px) {
  .nav-inner { height: 58px; }
  .nav-toggle { display: inline-flex; }
  .nav-menu {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    background: var(--surface); border-bottom: 1px solid var(--line);
    padding: 8px var(--gutter) 16px;
  }
  .nav-menu.open { display: block; }
  .nav-links { flex-direction: column; align-items: stretch; margin: 0; gap: 0; }
  .nav-links a { padding: 12px 8px; font-size: 16px; border-bottom: 1px solid var(--line); border-radius: 0; }
  .nav-actions { margin: 12px 0 0; justify-content: flex-start; }
  .nav-actions .nav-login { padding: 12px 8px; font-size: 16px; }
  /* The primary action stays in the bar itself on a phone. */
  .nav-cta.nav-cta-bar { display: inline-block; margin-left: auto; padding: 8px 12px; font-size: 13px; }
  .nav-actions .nav-cta-bar { display: none; }
}
@media (min-width: 861px) { .nav-cta-bar { display: none; } }
@media (max-width: 380px) {
  :root { --gutter: 16px; }
  .nav-inner { gap: 10px; }
  .brand { font-size: 17px; gap: 8px; }
  .brand img { width: 24px; height: 24px; }
  .nav-toggle { width: 40px; height: 40px; }
  .nav-cta.nav-cta-bar { padding: 7px 10px; font-size: 13px; }
}

/* ---- Buttons -------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 22px; border-radius: 10px; font-weight: 600; font-size: 15px;
  border: 1px solid transparent; cursor: pointer; text-decoration: none; line-height: 1.2;
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-deep); }
.btn-secondary { background: transparent; color: var(--text); border-color: var(--line-strong); }
.btn-secondary:hover { background: var(--surface-3); border-color: var(--blue-soft); }
.btn-ghost { background: transparent; color: var(--blue-soft); padding-left: 6px; padding-right: 6px; }
.btn svg { width: 16px; height: 16px; }
.btn-block { width: 100%; }

/* ---- Hero ----------------------------------------------------------------- */
.hero { padding: 64px 0 56px; border-bottom: 1px solid var(--line); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); grid-template-rows: auto auto; gap: 0 48px; align-items: center; }
.hero-copy { grid-column: 1; grid-row: 1; }
.hero-grid .poster { grid-column: 2; grid-row: 1; }
.hero-grid .proof { grid-column: 1; grid-row: 2; }
.hero h1 { font-size: clamp(38px, 5.2vw, 64px); font-weight: 600; letter-spacing: -0.025em; line-height: 1.05; margin: 14px 0 18px; }
.hero-lead { font-size: clamp(17px, 1.6vw, 20px); color: var(--muted); max-width: 34em; margin-bottom: 26px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.btn-lg { padding: 16px 30px; font-size: 17px; }
/* The offer, said once beside the CTA (b403). */
.hero-offer { list-style: none; padding: 0; margin: 18px 0 0; display: flex; flex-wrap: wrap; gap: 6px 18px; color: var(--muted); font-size: 14.5px; }
.hero-offer li { display: inline-flex; align-items: center; gap: 7px; }
.hero-offer li::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--green); }
/* The workflow, labelled over the hero media (b403). */
.flow { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.14em; text-transform: uppercase; }
.flow li { color: var(--text); border: 1px solid var(--line-strong); border-radius: 6px; padding: 4px 9px; }
.flow li + li::before { content: '\2192'; color: var(--dim); margin: 0 8px 0 -2px; }
.flow li:last-child { color: var(--blue-soft); border-color: var(--blue-soft); }
/* Evidence, not a slogan: a measured number with its method (b403). */
.evidence { margin-top: 8px; padding: 16px 18px; border: 1px solid var(--line-strong); border-left: 3px solid var(--blue-soft); border-radius: 8px; background: var(--surface-2); }
.evidence .mono { display: block; color: var(--dim); }
.evidence-num { font-family: var(--mono); font-size: 26px; color: var(--text); margin: 4px 0 2px; }
.evidence p { color: var(--muted); font-size: 14.5px; margin: 0 0 6px; }
.evidence .more { font-size: 14px; font-weight: 500; }
.proof { margin-top: 36px; padding-top: 22px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 20px 32px; }
.proof div { min-width: 0; }
.proof .mono { display: block; margin-bottom: 4px; color: var(--dim); }
.proof strong { font-weight: 500; font-size: 15px; }

/* The poster: two real frames, and a play control over them. */
.poster {
  position: relative; border: 1px solid var(--line); border-radius: 14px; background: var(--surface);
  padding: 14px; overflow: hidden;
}
.poster-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.poster-head .mono { color: var(--dim); }
.poster-dots { display: inline-flex; gap: 6px; }
.poster-dots i { width: 7px; height: 7px; border-radius: 50%; background: var(--line-strong); }
.poster-frames { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.frame { position: relative; border-radius: 10px; overflow: hidden; background: #000; aspect-ratio: 4 / 5; }
.frame img { width: 100%; height: 100%; object-fit: cover; }
.frame-label {
  position: absolute; left: 10px; top: 10px; padding: 5px 9px; border-radius: 6px;
  background: rgba(7, 17, 31, 0.82); border: 1px solid var(--line);
  font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--blue-soft);
}
.frame-label.ok { color: var(--green); }
.poster-play {
  position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: transparent; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.poster-play .pill {
  display: inline-flex; align-items: center; gap: 10px; padding: 12px 18px; border-radius: 999px;
  background: rgba(7, 17, 31, 0.86); border: 1px solid var(--line-strong); color: var(--text);
  font-weight: 600; font-size: 14px; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
  transition: transform 0.15s ease, border-color 0.15s ease;
}
.poster-play .pill svg { width: 18px; height: 18px; fill: var(--blue-soft); }
.poster-play:hover .pill, .poster-play:focus-visible .pill { transform: scale(1.03); border-color: var(--blue-soft); }
.poster-play:focus-visible { outline: none; }
.poster-play:focus-visible .pill { outline: 2px solid var(--blue-soft); outline-offset: 3px; }
/* The manual-tracing example (b325): one portrait poster in a host, the play pill over it. */
.manual-media { position: relative; width: min(100%, 346px); aspect-ratio: 480 / 778; margin: 0 auto; border-radius: 10px; overflow: hidden; background: #000; border: 1px solid var(--line); }
.manual-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.manual-media.playing { aspect-ratio: 9 / 16; border: 0; }
.poster-foot { margin-top: 10px; font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--dim); }
.yt-host.playing { padding: 0; }
.yt-host.playing iframe { width: 100%; height: 100%; border: 0; display: block; }
.poster-body { position: relative; }
/* The hero promo (b402): a one-minute recording of the real app, muted and looping. */
.hero-video-wrap { border-radius: 10px; overflow: hidden; background: #07111f; aspect-ratio: 16 / 9; }
.hero-video { display: block; width: 100%; height: 100%; object-fit: cover; }
.hero-video-toggle {
  position: absolute; right: 10px; bottom: 10px; width: 34px; height: 34px; border-radius: 50%;
  border: 1px solid var(--line-strong); background: rgba(7, 17, 31, 0.8); color: var(--text); cursor: pointer;
  display: flex; align-items: center; justify-content: center; padding: 0;
}
.hero-video-toggle svg { width: 14px; height: 14px; fill: currentColor; }
.hero-video-toggle .i-play { display: none; }
.hero-video-toggle.paused .i-play { display: inline; }
.hero-video-toggle.paused .i-pause { display: none; }
.hero-video-toggle:focus-visible { outline: 2px solid var(--blue-soft); outline-offset: 2px; }
.poster-body.playing { aspect-ratio: 16 / 9; border-radius: 10px; overflow: hidden; background: #000; }
.poster-body.playing.portrait { aspect-ratio: 9 / 16; max-height: 78vh; width: auto; margin: 0 auto; }

@media (max-width: 900px) {
  .hero { padding: 40px 0 40px; }
  .hero-grid { grid-template-columns: 1fr; grid-template-rows: none; gap: 28px 0; }
  .hero-copy, .hero-grid .poster, .hero-grid .proof { grid-column: 1; grid-row: auto; }
  .hero-grid .proof { margin-top: 0; }
  .hero h1 { font-size: clamp(34px, 9.5vw, 46px); }
  .hero-ctas .btn-primary { width: 100%; }
  .hero-ctas .btn-secondary { width: 100%; }
  .poster-frames { grid-template-columns: 1fr; }
  .poster-frames .frame:nth-child(2) { display: none; }
  .frame { aspect-ratio: 4 / 3; }
  .proof { gap: 14px 24px; }
}

/* ---- Sections -------------------------------------------------------------- */
.section { padding: 72px 0; border-bottom: 1px solid var(--line); }
.section.alt { background: var(--surface); }
.section-head { max-width: 62ch; margin-bottom: 36px; }
.section-head h2 { font-size: clamp(26px, 3vw, 36px); margin: 10px 0 12px; letter-spacing: -0.02em; }
.section-head p { color: var(--muted); font-size: 17px; }
.section-head .more { display: inline-block; margin-top: 4px; font-weight: 500; }
@media (max-width: 700px) { .section { padding: 52px 0; } }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.steps.steps-4 { grid-template-columns: repeat(4, 1fr); gap: 28px; }
@media (max-width: 1000px) { .steps.steps-4 { grid-template-columns: repeat(2, 1fr); } }
.step .mono { display: block; margin-bottom: 8px; }
.step h3 { font-size: 20px; margin-bottom: 6px; }
.step p { color: var(--muted); margin: 0; }
@media (max-width: 800px) { .steps { grid-template-columns: 1fr; gap: 22px; } }

/* Outcome cards: a real frame, a title, two sentences. */
.outcomes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); overflow: hidden; display: flex; flex-direction: column; }
.card:hover { border-color: var(--line-strong); }
.card-media { position: relative; background: #000; aspect-ratio: 4 / 3; overflow: hidden; }
.card-media img { width: 100%; height: 100%; object-fit: cover; }
.card-media.top img { object-position: 50% 0; }
.card-media .frame-label { left: 12px; top: 12px; }
.card-body { padding: 18px 20px 20px; }
.card-body h3 { font-size: 18px; margin-bottom: 6px; }
.card-body p { color: var(--muted); margin: 0 0 10px; font-size: 15px; }
.card-body .more { font-weight: 500; font-size: 14px; }
@media (max-width: 900px) { .outcomes { grid-template-columns: 1fr; } .card-media { aspect-ratio: 3 / 2; } }

/* Smart Trace: before/after reveal beside three points. */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: center; }
.split.reverse > :first-child { order: 2; }
.points { list-style: none; padding: 0; margin: 0 0 20px; display: grid; gap: 14px; }
.points li { display: grid; grid-template-columns: 22px 1fr; gap: 12px; align-items: start; color: var(--muted); }
.points li strong { display: block; color: var(--text); margin-bottom: 2px; }
.points svg { width: 22px; height: 22px; stroke: var(--blue-soft); fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; margin-top: 2px; }
.reveal { position: relative; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); background: #000; aspect-ratio: 400 / 750; max-width: 420px; margin: 0 auto; user-select: none; }
.reveal img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.reveal .after { clip-path: inset(0 0 0 50%); }
.reveal-handle { position: absolute; top: 0; bottom: 0; left: 50%; width: 2px; background: var(--blue-soft); transform: translateX(-1px); pointer-events: none; }
.reveal-handle::after {
  content: ''; position: absolute; top: 50%; left: 50%; width: 34px; height: 34px; border-radius: 50%;
  transform: translate(-50%, -50%); background: var(--bg); border: 2px solid var(--blue-soft);
}
.reveal input[type=range] {
  position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; -webkit-appearance: none; appearance: none;
}
.reveal input[type=range]:focus-visible + .reveal-handle { outline: 2px solid var(--blue-soft); }
.reveal .frame-label { z-index: 2; pointer-events: none; }
.reveal .frame-label.right { left: auto; right: 10px; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; gap: 28px; } .split.reverse > :first-child { order: 0; } }

/* Example cards. */
.examples { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.example { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); overflow: hidden; }
.example-media { position: relative; aspect-ratio: 16 / 10; background: #000; }
.example-media.playing { aspect-ratio: 16 / 9; }
.example-media.playing.portrait { aspect-ratio: 9 / 16; max-height: 78vh; width: auto; margin: 0 auto; }
.example-media iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.example-media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; }
.example-media .yt-play { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: rgba(0, 0, 0, 0.12); cursor: pointer; display: flex; align-items: center; justify-content: center; }
.example-media .yt-play:hover, .example-media .yt-play:focus-visible { background: rgba(0, 0, 0, 0.25); }
.example-media .yt-play:focus-visible { outline: none; }
.example-media .yt-play:focus-visible .pill { outline: 2px solid var(--blue-soft); outline-offset: 3px; }
.yt-play .pill { display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 999px; background: rgba(7, 17, 31, 0.86); border: 1px solid var(--line-strong); color: var(--text); font-weight: 600; font-size: 13px; }
.yt-play .pill svg { width: 14px; height: 14px; fill: var(--blue-soft); }
.example-body { padding: 16px 18px 18px; }
.example-body h3 { font-size: 16px; margin-bottom: 6px; }
.example-body p { color: var(--muted); font-size: 14px; margin: 0 0 10px; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tags span { font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); border: 1px solid var(--line); border-radius: 5px; padding: 3px 7px; }
.example-meta { font-family: var(--mono); font-size: 11px; color: var(--dim); letter-spacing: 0.06em; margin-bottom: 8px; }
.example.legacy .example-media { filter: saturate(0.85); }
.dev-note { margin-top: 12px; padding: 10px 12px; border-left: 2px solid var(--amber); background: var(--surface-2); color: var(--muted); font-size: 13px; }
@media (max-width: 900px) { .examples { grid-template-columns: 1fr; } }
@media (min-width: 901px) and (max-width: 1100px) { .examples { grid-template-columns: repeat(2, 1fr); } }

/* Pricing. */
.plans { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; max-width: 860px; }
.plans.three { grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: none; }
.plan { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); padding: 24px; }
.plan.featured { border-color: var(--blue); }
.plan .mono { display: block; margin-bottom: 8px; }
.plan-price { font-size: 36px; font-weight: 600; letter-spacing: -0.02em; margin-bottom: 14px; }
.plan-price span { font-size: 15px; color: var(--muted); font-weight: 400; letter-spacing: 0; margin-left: 4px; }
.plan-price.text { font-size: 22px; }
.plan-sub { margin: -8px 0 14px; font-size: 14px; color: var(--muted); }
.plan ul { list-style: none; padding: 0; margin: 0 0 18px; }
.plan li { padding: 7px 0; border-top: 1px solid var(--line); color: var(--muted); font-size: 15px; }
.plan li:first-child { border-top: 0; }
.plan li.no { color: var(--dim); }
.plan .btn { width: 100%; }
.packs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.packs-table td, .packs-table th { padding: 8px 10px 8px 0; font-size: 14px; }
.packs-table .save { display: inline-block; margin-left: 6px; padding: 1px 6px; border-radius: 5px; background: rgba(52, 211, 153, 0.14); color: var(--green); font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.06em; text-transform: uppercase; }
.packs span { font-family: var(--mono); font-size: 12px; border: 1px solid var(--line); border-radius: 6px; padding: 5px 9px; color: var(--text); }
.note { color: var(--dim); font-size: 13px; }
@media (max-width: 800px) { .plans, .plans.three { grid-template-columns: 1fr; } }

/* Closing band. */
.cta-band { padding: 72px 0; text-align: center; }
.cta-band h2 { font-size: clamp(28px, 4vw, 44px); letter-spacing: -0.02em; margin-bottom: 22px; }
.cta-band .hero-ctas { justify-content: center; }

/* ---- Footer --------------------------------------------------------------- */
.footer { padding: 36px 0 44px; color: var(--dim); font-size: 13px; }
.footer-grid { display: flex; flex-wrap: wrap; gap: 20px 32px; align-items: flex-start; justify-content: space-between; }
.footer-links { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.footer-links a { color: var(--muted); }
.footer p { margin: 0; }

/* ---- Detail pages ----------------------------------------------------------- */
.page-hero { padding: 56px 0 40px; border-bottom: 1px solid var(--line); }
.page-hero h1 { font-size: clamp(32px, 4.4vw, 50px); letter-spacing: -0.025em; margin: 12px 0 14px; }
.page-hero .lead { font-size: 18px; color: var(--muted); max-width: 40em; margin: 0; }
.crumbs { font-size: 13px; color: var(--dim); }
.crumbs a { color: var(--muted); }
.subnav { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 22px; }
.subnav a { font-size: 13px; padding: 7px 12px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); }
.subnav a:hover { text-decoration: none; border-color: var(--blue-soft); color: var(--text); }
.subnav a[aria-current="page"] { border-color: var(--blue); color: var(--text); }
.prose { max-width: 68ch; color: var(--muted); font-size: 16px; }
.prose h2 { font-size: 26px; margin: 0 0 12px; letter-spacing: -0.02em; }
.prose h3 { font-size: 19px; margin: 24px 0 8px; }
.prose p, .prose li { color: var(--muted); }
.prose li strong { color: var(--text); }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 28px 0; }
.two-col { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; align-items: start; }
@media (max-width: 860px) { .two-col { grid-template-columns: 1fr; gap: 24px; } }
.feature-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.feature-list li { border-top: 1px solid var(--line); padding-top: 14px; color: var(--muted); }
.feature-list li strong { display: block; color: var(--text); margin-bottom: 3px; font-size: 16px; }
.feature-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 40px; }
@media (max-width: 760px) { .feature-grid { grid-template-columns: 1fr; } }
.figure { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); overflow: hidden; }
.figure img { width: 100%; height: auto; }
.figure figcaption { padding: 10px 14px; font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--dim); border-top: 1px solid var(--line); }
.figure.fit { max-width: 420px; }

details.acc { border-top: 1px solid var(--line); }
details.acc:last-of-type { border-bottom: 1px solid var(--line); }
details.acc summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 16px 4px; font-weight: 600; font-size: 17px; color: var(--text);
}
details.acc summary::-webkit-details-marker { display: none; }
details.acc summary::after { content: '+'; font-weight: 400; color: var(--blue-soft); font-size: 20px; flex: 0 0 auto; }
details.acc[open] summary::after { content: '\2013'; }
details.acc summary small { display: block; font-weight: 400; color: var(--dim); font-size: 13px; margin-top: 2px; }
details.acc .acc-body { padding: 0 4px 20px; color: var(--muted); max-width: 72ch; }
details.acc .acc-body p:last-child, details.acc .acc-body ul:last-child { margin-bottom: 0; }

table.spec { width: 100%; border-collapse: collapse; font-size: 15px; }
table.spec th, table.spec td { text-align: left; padding: 10px 12px 10px 0; border-top: 1px solid var(--line); vertical-align: top; color: var(--muted); }
table.spec th { color: var(--text); font-weight: 600; white-space: nowrap; }
table.spec tr:first-child th, table.spec tr:first-child td { border-top: 0; }
.table-wrap { overflow-x: auto; }

.solutions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.solution { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); padding: 22px 24px; }
.solution h2 { font-size: 21px; margin-bottom: 8px; }
.solution p { color: var(--muted); margin: 0 0 10px; }
.solution ul { margin: 0; padding-left: 1.2em; color: var(--muted); font-size: 15px; }
@media (max-width: 760px) { .solutions { grid-template-columns: 1fr; } }

.pages { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.pages .card-body { padding: 22px 24px; }
.pages .card-body h3 { font-size: 20px; }
@media (max-width: 760px) { .pages { grid-template-columns: 1fr; } }

/* --- The mobile-native strip (b304) --- */
/* Slim by design: Court asked for a non-verbose reminder, so it is one line
   of claim and three short facts, not a section. */
.strip { padding: 26px 0; border-bottom: 1px solid var(--line); background: var(--surface); }
.strip-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 40px; }
.strip-say { min-width: 0; flex: 1 1 300px; }
.strip-say .mono { display: block; margin-bottom: 6px; }
.strip h2 { font-size: clamp(19px, 2.1vw, 25px); letter-spacing: -0.015em; margin: 0; max-width: 20ch; }
.strip-say p { color: var(--muted); font-size: 15px; margin: 8px 0 0; }
.strip ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; flex: 1 1 400px; }
.strip li { color: var(--muted); font-size: 14.5px; display: grid; grid-template-columns: 16px 1fr; gap: 10px; align-items: start; }
.strip li svg { width: 16px; height: 16px; stroke: var(--green); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; margin-top: 3px; }
@media (max-width: 860px) { .strip-inner { display: block; } .strip ul { margin-top: 14px; } }

/* One app, every screen (b377): four captures of the same project, one
   screen at a time, chosen with radio buttons so it needs no script. */
.dev-radio { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.dev-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.dev-tabs label {
  padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line-strong); color: var(--muted);
  font-size: 14px; font-weight: 600; cursor: pointer; background: var(--surface);
}
.dev-tabs label:hover { color: var(--text); border-color: var(--blue-soft); }
#dev-phone:checked ~ .dev-tabs label[for="dev-phone"],
#dev-landscape:checked ~ .dev-tabs label[for="dev-landscape"],
#dev-tablet:checked ~ .dev-tabs label[for="dev-tablet"],
#dev-desktop:checked ~ .dev-tabs label[for="dev-desktop"] { color: var(--bg); background: var(--blue-soft); border-color: var(--blue-soft); }
#dev-phone:focus-visible ~ .dev-tabs label[for="dev-phone"],
#dev-landscape:focus-visible ~ .dev-tabs label[for="dev-landscape"],
#dev-tablet:focus-visible ~ .dev-tabs label[for="dev-tablet"],
#dev-desktop:focus-visible ~ .dev-tabs label[for="dev-desktop"] { outline: 2px solid var(--blue-soft); outline-offset: 3px; }
.dev-pane { display: none; gap: 16px; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; }
#dev-phone:checked ~ .dev-pane-phone,
#dev-landscape:checked ~ .dev-pane-landscape,
#dev-tablet:checked ~ .dev-pane-tablet,
#dev-desktop:checked ~ .dev-pane-desktop { display: grid; }
.dev-pane figure { margin: 0; }
.dev-pane.tall { grid-template-columns: minmax(0, 300px) minmax(0, 300px); gap: 20px; justify-content: center; }
.dev-pane.one { grid-template-columns: minmax(0, 820px); justify-content: center; }
@media (max-width: 760px) {
  .dev-pane { grid-template-columns: 1fr; }
  .dev-pane.tall { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .dev-pane.one { grid-template-columns: 1fr; }
}
