/* Foldbook — unfoldduo.com. Tokens mirror ../design/tokens.json */

@font-face { font-family: "Bricolage Grotesque"; src: url(/fonts/bricolage-latin.woff2) format("woff2"); font-weight: 500 800; font-display: swap; }
@font-face { font-family: "Geist"; src: url(/fonts/geist-latin.woff2) format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Newsreader"; src: url(/fonts/newsreader-latin.woff2) format("woff2"); font-weight: 400 600; font-display: swap; }
@font-face { font-family: "Geist Mono"; src: url(/fonts/geistmono-latin.woff2) format("woff2"); font-weight: 400 500; font-display: swap; }

:root {
  --fb-bg: #F5F5F3;
  --fb-surface: #FFFFFF;
  --fb-sunken: #ECECE8;
  --fb-soft: #F4F4F2;
  --fb-glass: rgba(255, 255, 255, 0.58); --fb-glass-rim: rgba(255, 255, 255, 0.9);
  --fb-tint-pink: #FBE1EA; --fb-tint-green: #DFF1D8; --fb-tint-peach: #FCE9D2; --fb-tint-lilac: #E5E1FA; --fb-tint-blue: #DCEBFB;
  --fb-ink: #15171C;
  --fb-ink-2: #4A4F5A;
  --fb-ink-3: #666C78;
  --fb-rule: #E2E2DC;
  --fb-rule-strong: #CFCFC8;
  --fb-accent: #2448D8;
  --fb-accent-soft: #E6EBFD;
  --fb-on-accent: #FFFFFF;
  --fb-ribbon: #FF6A3D;
  --fb-success: #1F7A4D;
  --fb-danger: #C2362B;
  --fb-hinge: rgba(21, 23, 28, 0.07);
  --fb-band: #15171C;
  --fb-band-ink: #F2F2EE;
  --fb-band-ink-2: #B8BCC6;
  --fb-band-rule: #3A3E48;
  --fb-band-accent: #7F9CFF;
  --fb-band-on-accent: #0F1013;
  --fb-bezel-1: #2B2D33;
  --fb-bezel-2: #0C0D10;
  --fb-shadow: 0 30px 60px -20px rgba(21, 23, 28, 0.35), 0 12px 24px -12px rgba(21, 23, 28, 0.25);
  --fb-e1: 0 1px 2px rgba(21, 23, 28, 0.08);
  --fb-e2: 0 8px 24px rgba(21, 23, 28, 0.12);
  --fb-float: 0 4px 14px rgba(21, 23, 28, 0.06);

  --font-display: "Bricolage Grotesque", ui-sans-serif, system-ui, sans-serif;
  --font-heading: "Newsreader", Georgia, serif;
  --font-ui: "Geist", ui-sans-serif, system-ui, -apple-system, sans-serif;
  --font-mono: "Geist Mono", ui-monospace, "SF Mono", monospace;

  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 24px);
  --section: clamp(64px, 9vw, 112px);
  color-scheme: light;
}

/* The website is light only, by design. The app's dark tokens live in tokens.json and Tokens.swift. */

/* Base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
body {
  margin: 0;
  background: var(--fb-bg);
  color: var(--fb-ink);
  font-family: var(--font-ui);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--fb-accent); }
a:hover { color: var(--fb-ink); }
:focus-visible { outline: 2px solid var(--fb-accent); outline-offset: 3px; border-radius: 4px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding-inline: var(--gutter); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -60px; background: var(--fb-ink); color: var(--fb-bg); padding: 10px 16px; border-radius: 8px; z-index: 10; }
.skip:focus { top: 12px; }

.label { font-family: var(--font-mono); font-size: 12px; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; color: var(--fb-ink-3); }
.label--accent { color: var(--fb-accent); }
h1, h2, h3 { margin: 0; }
.h-display { font-family: var(--font-ui); font-weight: 800; font-size: clamp(40px, 5vw, 66px); line-height: 0.98; letter-spacing: -0.035em; }
.h-section { font-family: var(--font-ui); font-weight: 800; font-size: clamp(32px, 4.2vw, 52px); line-height: 1.02; letter-spacing: -0.03em; }
.h-card { font-family: var(--font-ui); font-weight: 700; font-size: 26px; letter-spacing: -0.02em; line-height: 1.15; }
/* Two-tone headline: heavy statement, light reply. */
.h-split { text-transform: uppercase; }
.h-split .heavy, .h-split .light { display: block; }
.h-split .light { font-weight: 300; }
.eyebrow { font-family: var(--font-mono); font-size: 12.5px; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; color: var(--fb-ink-3); }
.fine { margin: 0; font-size: 14px; }
.lede { margin: 0; font-size: clamp(18px, 2vw, 21px); line-height: 1.5; color: var(--fb-ink-2); max-width: 36em; }
.muted { color: var(--fb-ink-3); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px; border-radius: 999px; border: 0; font: 600 16px/1 var(--font-ui); text-decoration: none; cursor: pointer; white-space: nowrap; }
.btn--ink { background: var(--fb-ink); color: var(--fb-bg); box-shadow: 0 10px 24px color-mix(in srgb, var(--fb-ink) 26%, transparent); }
.btn--lg { min-height: 54px; padding: 0 26px; }
.btn--ink:hover { color: var(--fb-bg); opacity: 0.88; }
.btn--accent { background: var(--fb-accent); color: var(--fb-on-accent); }
.btn--accent:hover { color: var(--fb-on-accent); opacity: 0.9; }
.btn[disabled] { opacity: 0.6; cursor: progress; }
.icon-btn { width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; border-radius: 999px; border: 1px solid var(--fb-rule); background: var(--fb-surface); color: var(--fb-ink); cursor: pointer; padding: 0; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 5; background: color-mix(in srgb, var(--fb-bg) 86%, transparent); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid transparent; }
.site-header.is-scrolled { border-bottom-color: var(--fb-rule); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; flex-wrap: wrap; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--fb-ink); text-decoration: none; }
.brand:hover { color: var(--fb-ink); }
.brand-word { font-family: var(--font-display); font-weight: 650; font-size: 24px; letter-spacing: -0.03em; line-height: 1; }
.brand-tile { width: 40px; height: 40px; border-radius: 11px; background: var(--fb-ink); color: var(--fb-bg); display: grid; place-items: center; flex: none; }
.brand-tile .mark .spine { fill: #5B7BFF; }
.nav { display: flex; align-items: center; gap: 4px 22px; flex-wrap: wrap; font-size: 15px; font-weight: 500; }
.nav a:not(.btn) { color: var(--fb-ink-2); text-decoration: none; }
.nav a:not(.btn):hover { color: var(--fb-ink); }
.nav a[aria-current="page"] { color: var(--fb-ink); box-shadow: inset 0 -2px 0 var(--fb-ink); padding-bottom: 6px; }
.nav .btn { min-height: 44px; font-size: 15px; padding: 0 18px; }
@media (max-width: 720px) { .nav .nav-link { display: none; } }

/* Mark (inline SVG uses currentColor + accent) */
.mark .leaf { fill: currentColor; }
.mark .leaf-open { fill: none; stroke: currentColor; stroke-width: 3; }
.mark .spine { fill: var(--fb-accent); }

/* Hero: laid out like an Apple product page (design canvas: SiteHero). */
.hero { position: relative; overflow: hidden; padding-block: clamp(16px, 3vw, 32px) clamp(40px, 5vw, 64px); background: radial-gradient(40% 45% at 52% 45%, rgba(255, 255, 255, 0.8), transparent 70%), linear-gradient(180deg, #F3F3F1 0%, #E6E6E3 100%); }
.hero-ghost, .how-ghost { position: absolute; font: 800 clamp(120px, 24vw, 340px)/0.9 var(--font-ui); letter-spacing: -0.05em; color: rgba(21, 23, 28, 0.045); white-space: nowrap; pointer-events: none; user-select: none; }
.hero-ghost { left: 50%; top: clamp(60px, 9vw, 130px); transform: translateX(-50%); }
.hero .wrap { max-width: var(--wrap); }
.hero-grid { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; }
.hero-copy { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 14px; }
.lines { display: flex; flex-direction: column; gap: 5px; margin-bottom: 14px; }
.lines i { display: block; width: 36px; height: 1.5px; background: rgba(21, 23, 28, 0.16); }
.lines .long { width: 48px; }

.stage { display: grid; }
.slide { grid-area: 1 / 1; transition: opacity 400ms ease-out; }
.slide[hidden] { display: block; visibility: hidden; opacity: 0; }
.slide img { aspect-ratio: 1 / 0.86; object-fit: cover; object-position: 50% 72%; }
.slide--drawn { display: grid; place-items: center; }
.slide--drawn[hidden] { display: grid; }
.slide--drawn .dev--half { width: min(300px, 46vw); }

.specs { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.spec { display: flex; align-items: center; gap: 14px; padding: 16px 20px 16px 16px; border-radius: 20px; background: rgba(255, 255, 255, 0.72); border: 1px solid rgba(255, 255, 255, 0.95); box-shadow: 0 1px 2px rgba(21, 23, 28, 0.04), 0 12px 32px rgba(21, 23, 28, 0.07); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); }
.spec-ico { width: 48px; height: 48px; border-radius: 14px; background: #F3F3F1; color: var(--fb-ink); display: grid; place-items: center; flex: none; }
.spec b { display: block; font-size: 18px; font-weight: 600; margin-top: 2px; }
.spec-text { display: block; font-size: 14px; line-height: 1.4; color: var(--fb-ink-2); margin-top: 3px; }

.thumbs { display: flex; align-items: flex-end; gap: 14px; padding-bottom: 18px; }
.thumb { position: relative; width: 80px; height: 80px; border-radius: 18px; border: 1px solid transparent; background: rgba(21, 23, 28, 0.06); color: var(--fb-ink-3); display: grid; place-items: center; padding: 0; cursor: pointer; transition: width 300ms ease-out, height 300ms ease-out, background 200ms; }
.thumb[aria-selected="true"] { width: 112px; height: 112px; background: rgba(255, 255, 255, 0.9); border-color: rgba(255, 255, 255, 0.95); color: var(--fb-ink); box-shadow: 0 12px 32px rgba(21, 23, 28, 0.07); }
.thumb[aria-selected="true"] svg { width: 40px; height: 40px; }
.thumb::after { content: ""; position: absolute; left: 0; bottom: -18px; width: 34px; height: 4px; border-radius: 2px; background: rgba(21, 23, 28, 0.14); }
.thumb[aria-selected="true"]::after { width: 44px; background: var(--fb-ink); }

.hero-lede { display: flex; flex-direction: column; gap: 18px; }
.hero-lede p:first-child { margin: 0; font-size: 15.5px; line-height: 1.55; color: var(--fb-ink-2); max-width: 400px; }
.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; }
.text-link { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; color: var(--fb-ink); font-weight: 500; text-decoration: none; }
.text-link .ring { width: 28px; height: 28px; border-radius: 999px; border: 1.5px solid currentColor; display: grid; place-items: center; }
.scroll-cue { display: none; }
@media (max-width: 759px) {
  .stage { order: 1; } .thumbs { order: 2; } .hero-lede { order: 3; } .specs { order: 4; }
  .thumb { width: 64px; height: 64px; border-radius: 16px; }
  .thumb[aria-selected="true"] { width: 88px; height: 88px; }
}

@media (min-width: 760px) {
  .hero-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-copy { grid-column: 1; align-self: center; }
  .stage { grid-column: 2; grid-row: 1 / span 2; }
  .thumbs { grid-column: 1; grid-row: 2; align-self: end; }
  .specs { grid-column: 1 / -1; grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .hero-lede { grid-column: 1 / -1; }
}
@media (min-width: 1140px) {
  .hero-grid { grid-template-columns: repeat(12, minmax(0, 1fr)); grid-template-rows: auto auto; column-gap: 24px; row-gap: 12px; }
  .hero-copy { grid-column: 1 / 6; grid-row: 1; align-self: end; padding-bottom: 8px; }
  .stage { grid-column: 5 / 10; grid-row: 1; margin-top: 24px; }
  .specs { grid-column: 10 / 13; grid-row: 1; align-self: center; grid-template-columns: minmax(0, 1fr); gap: 18px; margin-right: -24px; }
  .spec:nth-child(2) { margin-left: -18%; margin-right: 18%; }
  .spec:nth-child(1), .spec:nth-child(3) { margin-left: 4%; }
  .thumbs { grid-column: 1 / 6; grid-row: 2; align-self: end; }
  .hero-lede { grid-column: 6 / 11; grid-row: 2; padding-left: 74px; position: relative; }
  .hero-lede::before { content: ""; position: absolute; left: 0; top: 11px; width: 56px; height: 1.5px; background: rgba(21, 23, 28, 0.16); }
  .scroll-cue { grid-column: 12 / 13; grid-row: 2; justify-self: end; align-self: center; display: grid; place-items: center; width: 56px; height: 104px; border-radius: 18px; color: var(--fb-ink); background: rgba(255, 255, 255, 0.72); border: 1px solid rgba(255, 255, 255, 0.95); box-shadow: 0 12px 32px rgba(21, 23, 28, 0.07); }
}

/* Product photos: white studio shots that melt into the light page. */
.photo { margin: 0; position: relative; }
.photo img { width: 100%; height: auto; mix-blend-mode: multiply; -webkit-mask-image: linear-gradient(to bottom, #000 80%, transparent); mask-image: linear-gradient(to bottom, #000 80%, transparent); }

/* Waitlist form */
.wl { display: flex; flex-wrap: wrap; gap: 10px; max-width: 520px; }
.wl input[type="email"] { flex: 1 1 240px; min-width: 0; min-height: 52px; padding: 0 20px; border-radius: 999px; border: 1px solid var(--fb-rule-strong); background: var(--fb-surface); color: var(--fb-ink); font: 400 16px var(--font-ui); }
.wl input[type="email"]::placeholder { color: var(--fb-ink-3); }
.wl .btn { min-height: 52px; }
.wl .hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.wl-duo { flex-basis: 100%; display: flex; align-items: center; gap: 12px; min-height: 44px; font-size: 15px; line-height: 1.4; color: var(--fb-ink-2); cursor: pointer; }
.wl-duo input { flex: none; width: 22px; height: 22px; margin: 0; accent-color: var(--fb-accent); cursor: pointer; }
.wl-status { flex-basis: 100%; margin: 0; min-height: 1.4em; font-size: 14px; color: var(--fb-ink-3); }
.wl-status.is-ok { color: var(--fb-success); }
.wl-status.is-error { color: var(--fb-danger); }

/* Sections */
.section { padding-block: var(--section); }
.section--tight { padding-top: 0; }
.section--surface { background: var(--fb-surface); border-block: 1px solid var(--fb-rule); }
.section-head { display: flex; flex-direction: column; gap: 14px; margin-bottom: clamp(32px, 5vw, 48px); max-width: 760px; }

/* How it works */
.how { position: relative; overflow: hidden; background: linear-gradient(180deg, #F2F2F0 0%, #ECECEA 100%); }
.how .wrap { position: relative; }
.how-ghost { right: -2%; top: clamp(40px, 6vw, 80px); font-size: clamp(110px, 18vw, 260px); }
.how-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px 48px; margin-bottom: clamp(32px, 5vw, 56px); }
.how-lede { margin: 0; max-width: 340px; color: var(--fb-ink-2); }
.positions { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }
.position { display: flex; flex-direction: column; gap: 6px; padding: 24px 28px 30px; border-radius: 28px; background: rgba(255, 255, 255, 0.72); border: 1px solid rgba(255, 255, 255, 0.95); box-shadow: 0 1px 2px rgba(21, 23, 28, 0.04), 0 12px 32px rgba(21, 23, 28, 0.07); }
.position p { margin: 6px 0 0; color: var(--fb-ink-2); }
.position-media { margin: 0 -8px 18px; }
.position-media img { aspect-ratio: 1 / 0.9; object-fit: cover; object-position: 50% 45%; }
.position-media--drawn { aspect-ratio: 1 / 0.9; display: grid; place-items: center; }
.position-media--drawn .dev--half { width: 58%; }

/* Features */
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 36px 28px; }
.feature { display: flex; flex-direction: column; gap: 8px; border-top: 2px solid var(--fb-ink); padding-top: 18px; }
.feature h3 { font-size: 19px; font-weight: 600; }
.feature p { margin: 0; color: var(--fb-ink-2); }

/* Pricing */
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
.plan { display: flex; flex-direction: column; gap: 16px; padding: 32px; border-radius: 24px; background: var(--fb-surface); border: 1px solid var(--fb-rule); }
.plan--pro { border: 2px solid var(--fb-accent); }
.plan-top { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 8px; }
.plan-name { font-family: var(--font-ui); font-weight: 800; font-size: 28px; }
.plan-price { font-size: 18px; font-weight: 600; }
.plan ul { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 8px; color: var(--fb-ink-2); }

/* Band */
.band { background: var(--fb-band); color: var(--fb-band-ink); }
.band .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 32px; padding-block: var(--section); }
.band-copy { flex: 1 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.band-copy p { margin: 0; font-size: 18px; color: var(--fb-band-ink-2); }
.band .wl { flex: 1 1 380px; }
.band .wl input[type="email"] { background: transparent; border-color: var(--fb-band-rule); color: var(--fb-band-ink); }
.band .wl input[type="email"]::placeholder { color: var(--fb-band-ink-2); }
.band .btn--accent { background: var(--fb-band-accent); color: var(--fb-band-on-accent); }
.band .wl-duo { color: var(--fb-band-ink); }
.band .wl-status { color: var(--fb-band-ink-2); }

/* FAQ */
.faq { max-width: 820px; }
.faq details { border-top: 1px solid var(--fb-rule); padding: 18px 0; }
.faq details:last-of-type { border-bottom: 1px solid var(--fb-rule); }
.faq summary { cursor: pointer; font-size: 18px; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-weight: 400; color: var(--fb-ink-3); }
.faq details[open] summary::after { content: "−"; }
.faq details p { margin: 12px 0 0; color: var(--fb-ink-2); }

/* Footer */
.site-footer { border-top: 1px solid var(--fb-rule); }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 20px; padding-block: 36px 48px; }
.foot-legal { display: flex; flex-direction: column; gap: 10px; max-width: 540px; font-size: 13px; color: var(--fb-ink-3); }
.foot-nav { display: flex; flex-wrap: wrap; gap: 8px 24px; font-size: 15px; }
.foot-nav a { color: var(--fb-ink-2); }

/* Prose pages (privacy, support, press) */
.prose { max-width: 720px; padding-block: clamp(40px, 7vw, 80px) var(--section); }
.prose h1 { font-family: var(--font-ui); font-weight: 800; font-size: clamp(38px, 5vw, 56px); letter-spacing: -0.035em; line-height: 1.02; margin-bottom: 12px; }
.prose h2 { font-family: var(--font-ui); font-weight: 700; font-size: 26px; letter-spacing: -0.02em; margin: 40px 0 8px; }
.prose p, .prose li { color: var(--fb-ink-2); }
.prose ul { padding-left: 20px; }
.prose .meta { color: var(--fb-ink-3); font-size: 14px; margin: 0 0 24px; }
.prose .callout { background: var(--fb-surface); border: 1px solid var(--fb-rule); border-radius: 18px; padding: 20px 22px; }
.prose code { font-family: var(--font-mono); font-size: 0.92em; background: var(--fb-sunken); padding: 2px 6px; border-radius: 6px; }

/* ===================== Device mockups =====================
   Each screen is a size container: inside, 1cqw = 1% of the screen width,
   so the mock scales as one piece at any size. Swap .scr contents for a
   real simulator screenshot (<img class="shot">) once the app runs. */
.dev { position: relative; padding: 2.2%; border-radius: 10% / 7%; background: linear-gradient(145deg, var(--fb-bezel-1), var(--fb-bezel-2)); box-shadow: var(--fb-shadow), inset 0 0 0 1px rgba(255,255,255,0.08); }
.dev--half { padding: 1.8%; border-radius: 6.6% / 5.2%; }
.scr { position: relative; overflow: hidden; container-type: inline-size; background: var(--fb-bg); color: var(--fb-ink); }
.dev--half .scr { aspect-ratio: 760 / 1000; border-radius: 5.3% / 4%; display: flex; flex-direction: column; }
.shot { width: 100%; height: 100%; object-fit: cover; }
.hinge-h { position: absolute; top: 49.6%; left: 0; right: 0; height: 0.8%; background: linear-gradient(180deg, transparent, var(--fb-hinge), transparent); pointer-events: none; }
.scr svg { display: inline-block; }

.card-row { display: flex; align-items: center; justify-content: space-between; gap: 1cqw; }
.s-lab { font-family: var(--font-mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--fb-ink-3); }

/* Half-open prompter — units: 760-wide design, px ÷ 7.6 = cqw */
.pr-top { height: 50%; background: var(--fb-surface); padding: 5.3cqw 7.4cqw; display: flex; flex-direction: column; gap: 2.9cqw; }
.pr-top .s-lab { display: flex; justify-content: space-between; font-size: 1.6cqw; }
.pr-dim { margin: 0; font-size: 3.9cqw; line-height: 1.35; font-weight: 500; color: var(--fb-ink-3); }
.pr-now { margin: 0; font-size: 5.3cqw; line-height: 1.25; font-weight: 600; letter-spacing: -0.01em; }
.pr-bar { margin-top: auto; height: 0.5cqw; border-radius: 1cqw; background: var(--fb-sunken); }
.pr-bar i { display: block; width: 38%; height: 100%; border-radius: inherit; background: var(--fb-accent); }
.pr-bot { height: 50%; padding: 4.7cqw 7.4cqw 5.3cqw; display: flex; flex-direction: column; align-items: center; gap: 3.7cqw; }
.pr-ctrls { display: flex; align-items: center; gap: 4.7cqw; margin-top: 1.6cqw; }
.pr-small { width: 8.4cqw; height: 8.4cqw; border-radius: 99cqw; border: 1px solid var(--fb-rule); background: var(--fb-surface); display: grid; place-items: center; }
.pr-small svg { width: 3.2cqw; height: 3.2cqw; }
.pr-play { width: 14.7cqw; height: 14.7cqw; border-radius: 99cqw; background: var(--fb-accent); display: grid; place-items: center; color: var(--fb-on-accent); }
.pr-play svg { width: 5.3cqw; height: 5.3cqw; }
.pr-speed { width: 100%; background: var(--fb-surface); border: 1px solid var(--fb-rule); border-radius: 2.4cqw; padding: 2.4cqw 2.9cqw; display: flex; flex-direction: column; gap: 1.6cqw; font-size: 2cqw; font-weight: 500; }
.pr-track { height: 0.8cqw; border-radius: 1cqw; background: var(--fb-sunken); position: relative; }
.pr-track i { position: absolute; left: 0; top: 0; bottom: 0; width: 28%; border-radius: inherit; background: var(--fb-accent); }
.pr-track b { position: absolute; left: 28%; top: 50%; width: 3.2cqw; height: 3.2cqw; margin: -1.6cqw 0 0 -1.6cqw; border-radius: 99cqw; background: #fff; box-shadow: 0 1px 4px rgba(0,0,0,0.3); }
.pr-opts { width: 100%; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.6cqw; }
.pr-opts span { height: 6.8cqw; border-radius: 1.8cqw; border: 1px solid var(--fb-rule); background: var(--fb-surface); display: grid; place-items: center; font-size: 2cqw; font-weight: 500; }
.pr-hint { margin-top: auto; font-size: 1.8cqw; color: var(--fb-ink-3); }

/* Inner pages: teleprompter, guides */
.brand-tile--sm { width: 30px; height: 30px; border-radius: 8px; }
.brand-tile--sm .mark { width: 17px; height: 17px; }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font: 500 13px var(--font-mono); color: var(--fb-ink-3); margin-bottom: 18px; }
.crumbs a { color: var(--fb-ink-2); text-decoration: none; }
.crumbs a:hover { color: var(--fb-ink); text-decoration: underline; }
.page-hero { position: relative; overflow: hidden; padding-block: clamp(28px, 5vw, 64px); background: radial-gradient(40% 50% at 70% 45%, rgba(255, 255, 255, 0.8), transparent 70%), linear-gradient(180deg, #F3F3F1 0%, #E6E6E3 100%); }
.page-hero .lede { margin-top: 18px; }
.page-hero--short .h-display { margin-top: 12px; }
.page-hero-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 40px; align-items: center; }
.page-hero-copy { display: flex; flex-direction: column; gap: 12px; }
.page-hero-copy .cta-row { margin-top: 12px; }
.page-hero-art { display: grid; place-items: center; }
.page-hero-art .dev--half { width: min(340px, 78%); }
@media (min-width: 860px) { .page-hero-grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); } }
.prose--wide { max-width: 760px; padding-block: 0; }
.prose h3 { font-size: 18px; font-weight: 600; margin: 24px 0 4px; }
.prose a { color: var(--fb-accent); }
.prose .lede { color: var(--fb-ink-2); margin-bottom: 8px; }
.steps { padding-left: 22px; display: flex; flex-direction: column; gap: 12px; }
.steps li::marker { font-family: var(--font-mono); color: var(--fb-ink-3); }
.guide-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; }
.guide-card { display: flex; flex-direction: column; gap: 10px; padding: 28px; border-radius: 24px; background: var(--fb-surface); border: 1px solid var(--fb-rule); box-shadow: 0 1px 2px rgba(21, 23, 28, 0.04), 0 12px 32px rgba(21, 23, 28, 0.06); color: var(--fb-ink); text-decoration: none; transition: transform 200ms ease-out, box-shadow 200ms ease-out; }
.guide-card:hover { color: var(--fb-ink); transform: translateY(-2px); box-shadow: 0 1px 2px rgba(21, 23, 28, 0.04), 0 18px 40px rgba(21, 23, 28, 0.1); }
.guide-card p { margin: 0; color: var(--fb-ink-2); }
.guide-more { margin-top: auto; padding-top: 8px; display: inline-flex; align-items: center; gap: 6px; font-weight: 600; }
.cta-band { background: linear-gradient(180deg, #F2F2F0 0%, #E8E8E5 100%); border-top: 1px solid var(--fb-rule); }
.cta-band-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; padding-block: clamp(48px, 7vw, 80px); }
.cta-band-inner p { margin: 10px 0 0; color: var(--fb-ink-2); }
.app-entry { display: flex; flex-direction: column; gap: 14px; padding: 24px; border-radius: 22px; background: var(--fb-surface); border: 1px solid var(--fb-rule); box-shadow: 0 1px 2px rgba(21, 23, 28, 0.04), 0 12px 32px rgba(21, 23, 28, 0.06); }
.app-entry-head { display: flex; align-items: center; gap: 14px; }
.app-entry-head h3 { margin: 0; font-size: 22px; }
.app-entry-head p { margin: 2px 0 0; font-size: 14px; }
.app-entry ul { margin: 0; }

/* Article pages: contents | reading column | Foldbook card. One column below 1100px. */
.article-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 48px; align-items: start; }
.article-layout .prose { max-width: 700px; padding-block: 0; min-width: 0; }
.toc, .side-card { display: none; }
@media (min-width: 1100px) {
  .article-layout { grid-template-columns: 190px minmax(0, 700px) 250px; justify-content: space-between; }
  .toc, .side-card { display: flex; flex-direction: column; position: sticky; top: 100px; }
}
.toc ol { list-style: none; margin: 14px 0 0; padding: 0; display: flex; flex-direction: column; gap: 4px; border-left: 1px solid var(--fb-rule); }
.toc a { display: block; padding: 5px 0 5px 14px; margin-left: -1px; border-left: 2px solid transparent; color: var(--fb-ink-2); text-decoration: none; font-size: 14px; line-height: 1.35; }
.toc a:hover { color: var(--fb-ink); border-left-color: var(--fb-ink); }
.prose h2[id] { scroll-margin-top: 96px; }
.side-card { gap: 10px; padding: 18px 20px 22px; border-radius: 24px; background: var(--fb-surface); border: 1px solid var(--fb-rule); box-shadow: 0 1px 2px rgba(21, 23, 28, 0.04), 0 12px 32px rgba(21, 23, 28, 0.06); }
.side-card p { margin: 0; color: var(--fb-ink-2); font-size: 14.5px; line-height: 1.5; }
.side-card .btn { margin-top: 6px; min-height: 46px; font-size: 15px; }
.side-card .fine { text-align: center; font-size: 13px; }
.side-title { font-size: 20px; font-weight: 700; letter-spacing: -0.01em; }
.side-photo { margin: -6px -8px 4px; }
.side-photo img { aspect-ratio: 1 / 0.8; object-fit: cover; object-position: 50% 40%; }

/* Analytics consent */
.consent { position: fixed; z-index: 20; left: max(16px, env(safe-area-inset-left, 0px)); bottom: max(16px, env(safe-area-inset-bottom, 0px)); width: min(400px, calc(100% - 32px)); display: flex; flex-direction: column; gap: 14px; padding: 18px 20px; border-radius: 20px; background: rgba(255, 255, 255, 0.92); border: 1px solid var(--fb-rule); box-shadow: 0 12px 40px rgba(21, 23, 28, 0.16); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); font-size: 14.5px; line-height: 1.5; color: var(--fb-ink-2); }
.consent[hidden] { display: none; }
.consent p { margin: 0; }
.consent strong { color: var(--fb-ink); }
.consent-actions { display: flex; gap: 10px; }
.consent .btn { min-height: 44px; padding: 0 20px; font-size: 15px; }
.btn--ghost { background: transparent; color: var(--fb-ink); border: 1px solid var(--fb-rule-strong); }
.btn--ghost:hover { color: var(--fb-ink); background: var(--fb-soft); }
.link-btn { background: none; border: 0; padding: 0; font: inherit; color: var(--fb-ink-2); text-decoration: underline; cursor: pointer; min-height: 24px; }
.link-btn:hover { color: var(--fb-ink); }
