/* Door Alpha — marketing site.
   System: "Studio" — warm graphite, warm white type, one brass light. Display Cormorant Garamond 300;
   body Figtree 300/400/500. The real app (phone + iPad recordings) is the hero material; devices are
   rendered in CSS with titanium/graphite frames, glass sweep and contact shadows, moved by scroll (depth).
   Everything is visible at rest; motion only enhances. */
:root {
  --ink: #121110;
  --ink-2: #171614;
  --ink-3: #1e1c19;
  --ink-4: #26231f;
  --white: #efe8dc;
  --white-2: #bdb5a8;
  --mute: #8b8478;
  --hair: rgba(239, 232, 220, .11);
  --hair-2: rgba(239, 232, 220, .2);
  --brass: #c9b27a;
  --brass-2: #e7d6a6;
  --app-ink: #0e1015; --app-fg: #f0ede6;
  --display: "Cormorant Garamond", "Cormorant", Garamond, "Times New Roman", serif;
  --sans: "Figtree", "Albert Sans", "Helvetica Neue", Arial, sans-serif;
  --gutter: 32px;
  --measure: 1240px;
  --ease: cubic-bezier(.22, .61, .21, 1);
  color-scheme: dark;
}
html[data-app-theme="obsidian-light"] { --app-ink: #fdfbf6; --app-fg: #1a1813; }
html[data-app-theme="daylight-dark"] { --app-ink: #121a16; }
html[data-app-theme="daylight-light"] { --app-ink: #ffffff; --app-fg: #141714; }
@media (max-width: 760px) { :root { --gutter: 20px; } }

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; background: var(--ink); }
body { background: var(--ink); color: var(--white); font-family: var(--sans); font-weight: 300; font-size: 18px; line-height: 1.6; overflow-x: hidden; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
img, video { display: block; max-width: 100%; }
a:focus-visible, button:focus-visible { outline: 1px solid var(--brass); outline-offset: 4px; border-radius: 4px; }
h1, h2, h3 { font-family: var(--display); font-weight: 300; line-height: 1.02; letter-spacing: -.005em; text-wrap: balance; }
p { max-width: 34em; }
::selection { background: var(--brass); color: var(--ink); }
.wrap { max-width: var(--measure); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -9999px; top: 10px; z-index: 100; background: var(--ink-3); padding: 8px 14px; border-radius: 8px; }
.skip:focus { left: 12px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* film grain */
body::after { content: ""; position: fixed; inset: -50%; width: 200%; height: 200%; pointer-events: none; z-index: 60; opacity: .05; mix-blend-mode: screen;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  animation: grain 1.2s steps(3) infinite; }
@keyframes grain { 0% { transform: translate(0, 0); } 33% { transform: translate(-2%, 1%); } 66% { transform: translate(1%, -2%); } 100% { transform: translate(0, 0); } }

/* ── Nav ── */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 40; padding-top: env(safe-area-inset-top, 0px); transition: background .5s var(--ease), border-color .5s var(--ease); border-bottom: 1px solid transparent; }
.nav.solid { background: rgba(18, 17, 16, .78); backdrop-filter: blur(16px) saturate(130%); -webkit-backdrop-filter: blur(16px) saturate(130%); border-bottom-color: var(--hair); }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 76px; max-width: var(--measure); padding: 0 var(--gutter); }
.wordmark { font-family: var(--display); font-weight: 400; font-size: 24px; letter-spacing: .02em; color: var(--white); }
.nav ul { display: flex; align-items: center; gap: 34px; list-style: none; font-size: 14.5px; letter-spacing: .01em; }
.nav li a { color: var(--white-2); transition: color .4s var(--ease); }
.nav li a:hover, .nav li a[aria-current="page"] { color: var(--white); }
.nav .pill { color: var(--ink); background: var(--white); padding: 9px 18px; border-radius: 999px; font-weight: 500; font-size: 14px; transition: background .4s var(--ease); }
.nav .pill:hover { background: var(--brass-2); color: var(--ink); }
.menu-btn { display: none; background: none; border: 1px solid var(--hair-2); color: var(--white); width: 44px; height: 40px; border-radius: 999px; cursor: pointer; }
@media (max-width: 860px) {
  .menu-btn { display: grid; place-items: center; }
  .nav ul { display: none; position: absolute; top: 76px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; padding: 8px var(--gutter) 22px; background: rgba(18, 17, 16, .96); border-bottom: 1px solid var(--hair); }
  .nav ul.open { display: flex; }
  .nav li a { display: block; padding: 14px 0; border-bottom: 1px solid var(--hair); font-size: 17px; }
  .nav .pill { display: block; text-align: center; margin-top: 16px; border: 0; padding: 13px; }
}

/* ── Buttons ── */
.cta { display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 52px; padding: 0 30px; border-radius: 999px; background: var(--brass); color: #1a1710; font-weight: 500; font-size: 15.5px; letter-spacing: .01em;
  box-shadow: 0 0 0 1px rgba(231, 214, 166, .35) inset, 0 10px 40px rgba(201, 178, 122, .14); transition: background .5s var(--ease), transform .5s var(--ease); }
.cta:hover { background: var(--brass-2); transform: translateY(-1px); }
.ghost { display: inline-flex; align-items: center; gap: 10px; height: 52px; padding: 0 26px; border-radius: 999px; border: 1px solid var(--hair-2); color: var(--white); font-size: 15px; transition: border-color .4s var(--ease); }
.ghost:hover { border-color: var(--white-2); }
.stores { display: flex; flex-wrap: wrap; gap: 12px; }
.store { display: inline-flex; align-items: center; gap: 12px; height: 56px; padding: 0 22px 0 18px; border-radius: 14px; border: 1px solid var(--hair-2); color: var(--white); line-height: 1.15; }
.store svg { width: 22px; height: 22px; flex: none; }
.store small { display: block; font-size: 11px; color: var(--mute); letter-spacing: .02em; }
.store b { font-weight: 500; font-size: 16px; }
a.store:hover { border-color: var(--white-2); }
.store.is-soon { cursor: default; }

/* ── Hero ── */
.hero { position: relative; min-height: 100svh; overflow: hidden; background: var(--ink); padding-top: 150px; }
.hero canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.hero-fallback { position: absolute; inset: 0; background: radial-gradient(42% 60% at 30% 10%, rgba(201, 178, 122, .42), rgba(201, 178, 122, 0) 70%), var(--ink); }
.hero-copy { position: relative; z-index: 2; text-align: center; padding: 0 var(--gutter); }
.hero h1 { font-size: clamp(58px, 8.6vw, 128px); color: var(--white); text-shadow: 0 0 60px rgba(18, 17, 16, .55); transition: letter-spacing 2.4s var(--ease), opacity 2.4s var(--ease); }
html.pre .hero h1 { letter-spacing: .05em; opacity: .5; }
.hero-copy p { margin: 24px auto 0; font-size: 19.5px; line-height: 1.55; color: var(--white-2); max-width: 31em; transition: opacity 2s var(--ease) .4s; }
html.pre .hero-copy p { opacity: .35; }
.hero-actions { margin-top: 38px; display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }
.hero small { display: block; margin-top: 20px; font-size: 14px; color: var(--white-2); text-shadow: 0 1px 12px rgba(18, 17, 16, .8); letter-spacing: .01em; }

/* hero device composition */
.hero-stage { position: relative; z-index: 1; margin: 64px auto 0; width: min(1120px, 92vw); perspective: 2400px; height: clamp(360px, 52vw, 700px); }
.hero-stage .ipad { position: absolute; left: 50%; top: 0; width: 86%; transform: translateX(-50%) rotateX(calc(var(--hx, 14) * 1deg)) translateY(calc(var(--hy, 0) * 1px)) scale(var(--hs, 1)); transform-origin: 50% 0%; }
.hero-stage .phone { position: absolute; right: 2%; bottom: -4%; width: clamp(200px, 21%, 250px); transform: rotateY(calc(var(--pry, -10) * 1deg)) rotateX(calc(var(--prx, 6) * 1deg)) translateY(calc(var(--py, 0) * 1px)); }
.hero-glow { position: absolute; left: 50%; top: 18%; width: 90%; height: 70%; transform: translateX(-50%); background: radial-gradient(50% 50% at 50% 50%, rgba(201, 178, 122, .22), rgba(201, 178, 122, 0) 70%); filter: blur(10px); pointer-events: none; }
.hero-fade { position: absolute; left: 0; right: 0; bottom: 0; height: 26%; z-index: 3; background: linear-gradient(rgba(18, 17, 16, 0), var(--ink)); pointer-events: none; }
@media (max-width: 760px) {
  .hero { padding-top: 120px; }
  .hero-stage { height: 560px; width: 100%; margin-top: 46px; }
  .hero-stage .ipad { display: none; }
  .hero-stage .phone { position: relative; right: auto; bottom: auto; width: 240px; margin: 0 auto; transform: none; }
}

/* ── Devices ── */
.phone { --pw: 300px; container-type: inline-size; position: relative; width: var(--pw); aspect-ratio: 1000 / 2071; border-radius: 15.5% / 7.484%; /* % of its own box (cqw here would measure the parent) */ /* real iPhone proportions: the 390×844 screen fits exactly */ transform-style: preserve-3d; will-change: transform;
  background: linear-gradient(160deg, #5c5a55 0%, #44423e 20%, #383734 55%, #403e3b 80%, #57544e 100%);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .06) inset, 0 34px 70px -26px rgba(0, 0, 0, .75), 0 10px 24px -8px rgba(0, 0, 0, .45); }
.phone::before { content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none;
  background: linear-gradient(160deg, rgba(255, 255, 255, .20), rgba(255, 255, 255, .05) 30%, rgba(255, 255, 255, .03) 70%, rgba(255, 255, 255, .10) 100%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; }
.phone .bezel { position: absolute; inset: 1.4cqw; border-radius: 14.1cqw; background: #070707; clip-path: inset(0 round 14.1cqw); }
/* clip-path + mask make Safari clip the rounded corners even when the phone is tilted in 3D */
.phone .screen { position: absolute; inset: 4cqw; border-radius: 11.5cqw; overflow: hidden; background: var(--app-ink); clip-path: inset(0 round 11.5cqw); -webkit-mask-image: -webkit-radial-gradient(white, black); transform: translateZ(0); }
.phone .status { position: absolute; z-index: 2; top: 0; left: 0; right: 0; height: 12.6cqw; background: transparent; display: flex; align-items: center; justify-content: space-between; padding: 0 8cqw 0 10cqw; color: var(--app-fg); font-family: -apple-system, "SF Pro Text", var(--sans); font-size: 4.3cqw; font-weight: 600;  }
.phone .status svg { height: 34%; width: auto; }
.phone .status i { display: flex; gap: 1.3cqw; align-items: center; height: 100%; }
.phone .island { position: absolute; z-index: 3; top: 6.6cqw; left: 50%; transform: translateX(-50%); width: 29cqw; height: 8.6cqw; border-radius: 999px; background: #000; }
/* Screens are captured with the status-bar and home-indicator bands built in, so they fill the whole glass. */
.phone .media { position: absolute; inset: 0; overflow: hidden; background: var(--app-ink); }
.phone .media img, .phone .media video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.phone .homebar { position: absolute; z-index: 2; left: 0; right: 0; bottom: 0; height: 8.5cqw; display: grid; place-items: center; pointer-events: none; }
.phone .homebar::after { content: ""; width: 34%; height: 1.4cqw; min-height: 2px; border-radius: 99px; background: var(--app-fg); opacity: .75; }
.glass .screen::after { content: none; display: none; position: absolute; inset: -40% -60%; z-index: 4; pointer-events: none;
  background: linear-gradient(115deg, rgba(255, 255, 255, 0) 32%, rgba(255, 255, 255, .06) 45%, rgba(255, 255, 255, .12) 50%, rgba(255, 255, 255, .05) 55%, rgba(255, 255, 255, 0) 68%);
  transform: translateX(calc(-45% + 90% * var(--sweep, .3))); }
.phone .btn { position: absolute; width: 1.1%; border-radius: 2px; background: linear-gradient(90deg, #4a4844, #2a2927); }

.ipad { position: relative; aspect-ratio: 1194 / 834; padding: 1.9%; border-radius: 3.6% / 5.1%; will-change: transform;
  background: linear-gradient(150deg, #5d5a55 0%, #33312e 18%, #232220 50%, #2e2c29 78%, #615c55 100%);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .08) inset, 0 1px 0 rgba(255, 255, 255, .14) inset, 0 70px 120px -30px rgba(0, 0, 0, .9), 0 20px 40px rgba(0, 0, 0, .55); }
.ipad::before { content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none;
  background: linear-gradient(150deg, rgba(255, 250, 235, .45), rgba(255, 255, 255, .06) 25%, rgba(0, 0, 0, .2) 60%, rgba(231, 214, 166, .3) 100%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; }
.ipad .bezel { position: absolute; inset: .55%; border-radius: 3.2% / 4.6%; background: #050505; }
.ipad .screen { position: relative; width: 100%; height: 100%; border-radius: 1.6% / 2.3%; overflow: hidden; background: var(--app-ink); -webkit-mask-image: -webkit-radial-gradient(white, black); transform: translateZ(0); }
.ipad .screen img, .ipad .screen video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top left; }
.ipad .cam { position: absolute; z-index: 3; top: .95%; left: 50%; width: .55%; aspect-ratio: 1; border-radius: 50%; transform: translateX(-50%); background: radial-gradient(circle at 35% 35%, #2c3340, #050608 70%); }
.shadow { position: absolute; left: 50%; bottom: -6%; width: 80%; height: 9%; transform: translateX(-50%); border-radius: 50%; background: radial-gradient(50% 50% at 50% 50%, rgba(0, 0, 0, .9), rgba(0, 0, 0, 0) 70%); filter: blur(10px); z-index: -1; }

/* ── Sections ── */
section { position: relative; }
main > section { overflow-x: clip; }
.pad { padding: clamp(110px, 16vw, 210px) 0; }
.eyebrow { font-family: var(--display); font-style: italic; font-size: 22px; color: var(--brass); margin-bottom: 18px; letter-spacing: .01em; }
h2 { font-size: clamp(44px, 6vw, 88px); color: var(--white); }
.lede { margin-top: 26px; font-size: 19px; color: var(--white-2); }
.hair { height: 1px; background: var(--hair); border: 0; }

/* Statement */
.statement { text-align: center; }
.statement h2 { font-size: clamp(46px, 7.4vw, 112px); max-width: 15ch; margin: 0 auto; }
.statement .w { display: inline-block; transition: opacity .9s var(--ease), filter .9s var(--ease); opacity: var(--o, 1); filter: blur(calc(var(--b, 0) * 1px)); }
.statement p { margin: 34px auto 0; color: var(--white-2); font-size: 19px; }

/* Scrolly: sticky phone, stepping screens */
.scrolly { display: grid; grid-template-columns: 1fr 1fr; gap: 6vw; align-items: start; }
.scrolly .pin { position: sticky; top: 76px; height: calc(100vh - 76px); display: grid; place-items: center; perspective: 1800px; }
.scrolly .pin .phone { --pw: min(330px, 26vw); }
.scrolly .pin .halo { position: absolute; width: 640px; height: 640px; border-radius: 50%; background: radial-gradient(circle, rgba(201, 178, 122, .16), rgba(201, 178, 122, 0) 62%); }
.scrolly .media img, .scrolly .media video { opacity: 0; transition: opacity .7s var(--ease); }
.scrolly .media .on { opacity: 1; }
.steps { padding: 8vh 0 18vh; }
.step { min-height: 78vh; display: flex; flex-direction: column; justify-content: center; opacity: .28; transition: opacity .6s var(--ease); }
.step.on { opacity: 1; }
.step .eyebrow { font-size: 20px; }
.step h3 { font-size: clamp(38px, 4.4vw, 62px); color: var(--white); }
.step p { margin-top: 20px; color: var(--white-2); font-size: 18.5px; max-width: 26em; }
.step .phone-inline { display: none; }
@media (max-width: 900px) {
  .scrolly { grid-template-columns: 1fr; }
  .scrolly .pin { display: none; }
  .steps { padding: 0; }
  .step { min-height: 0; opacity: 1; padding: 70px 0 30px; }
  .step .phone-inline { display: block; margin-top: 40px; }
  .step .phone-inline .phone { --pw: min(280px, 72vw); margin: 0 auto; }
  .step .phone-inline .media img { opacity: 1; }
}

/* Chapters */
.chapter { display: grid; grid-template-columns: 1.05fr .95fr; gap: 6vw; align-items: center; }
.chapter.flip .copy { order: 2; }
.chapter .visual { position: relative; display: grid; place-items: center; perspective: 1800px; min-height: 640px; }
.chapter .visual .halo { position: absolute; width: 620px; height: 620px; border-radius: 50%; background: radial-gradient(circle, rgba(201, 178, 122, .15), rgba(201, 178, 122, 0) 62%); }
.chapter .visual .phone { --pw: min(320px, 70vw); transform: rotateY(calc(var(--ry, 0) * 1deg)) rotateX(calc(var(--rx, 0) * 1deg)); }
.pull { margin-top: 46px; padding-top: 28px; border-top: 1px solid var(--hair); }
.pull b { display: block; font-family: var(--display); font-weight: 300; font-size: clamp(56px, 6.4vw, 92px); line-height: 1; color: var(--brass-2); letter-spacing: -.01em; font-variant-numeric: lining-nums tabular-nums; }
.pull span { display: block; margin-top: 12px; font-size: 15px; color: var(--mute); max-width: 30em; }
@media (max-width: 900px) {
  .chapter { grid-template-columns: 1fr; gap: 56px; }
  .chapter.flip .copy { order: 0; }
  .chapter .visual { min-height: 0; }
}

/* Tablet showcase */
.showcase .head { text-align: center; max-width: 820px; margin: 0 auto; }
.showcase .head .lede { margin-left: auto; margin-right: auto; }
.showcase .stage { position: relative; width: min(1180px, 94vw); margin: 80px auto 0; perspective: 2200px; }
.showcase .ipad { transform: rotateX(calc(var(--tx, 30) * 1deg)) scale(var(--ts, .92)); transform-origin: 50% 70%; }
.reel { margin-top: 110px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; }
.reel figure { perspective: 1200px; }
.reel .ipad { padding: 2.6%; transform: rotateY(calc(var(--fy, 0) * 1deg)); transition: transform .9s var(--ease); }
.reel figure:hover .ipad { transform: rotateY(0) translateY(-6px); }
.reel figcaption { margin-top: 22px; }
.reel figcaption b { display: block; font-family: var(--display); font-weight: 400; font-size: 26px; color: var(--white); line-height: 1.1; }
.reel figcaption span { display: block; margin-top: 6px; font-size: 15px; color: var(--mute); }
@media (max-width: 1000px) { .reel { grid-template-columns: repeat(2, 1fr); row-gap: 56px; } }
@media (max-width: 560px) {
  .reel { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 16px; margin: 70px calc(-1 * var(--gutter)) 0; padding: 0 var(--gutter) 10px; scrollbar-width: none; }
  .reel::-webkit-scrollbar { display: none; }
  .reel figure { flex: 0 0 82%; scroll-snap-align: center; }
}

/* Capabilities — a quiet ruled list */
.caps { margin-top: 70px; display: grid; grid-template-columns: 1fr 1fr; column-gap: 6vw; }
.cap { display: grid; grid-template-columns: 1fr; padding: 26px 0; border-top: 1px solid var(--hair); }
.cap b { font-family: var(--display); font-weight: 400; font-size: 28px; color: var(--white); line-height: 1.15; }
.cap span { margin-top: 6px; color: var(--white-2); font-size: 16.5px; }
@media (max-width: 760px) { .caps { grid-template-columns: 1fr; } }

/* Who */
.who p { font-family: var(--display); font-weight: 300; font-size: clamp(30px, 3.6vw, 48px); line-height: 1.22; color: var(--white); max-width: 22em; }
.who p em { color: var(--brass-2); font-style: italic; }

/* Pricing — ruled list */
.price-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 24px; }
.billing { display: inline-flex; padding: 4px; border: 1px solid var(--hair-2); border-radius: 999px; }
.billing button { font: inherit; font-size: 14px; border: 0; background: none; color: var(--white-2); padding: 8px 18px; border-radius: 999px; cursor: pointer; }
.billing button[aria-pressed="true"] { background: var(--white); color: var(--ink); font-weight: 500; }
.tiers { margin-top: 60px; border-bottom: 1px solid var(--hair); }
.tier { display: grid; grid-template-columns: 1.2fr 1.4fr 1fr; align-items: baseline; gap: 20px; padding: 30px 0; border-top: 1px solid var(--hair); }
.tier .name { font-family: var(--display); font-size: 36px; color: var(--white); line-height: 1; }
.tier .cap-n { color: var(--white-2); font-size: 17px; }
.tier .amt { text-align: right; font-family: var(--display); font-size: 40px; color: var(--white); line-height: 1; font-variant-numeric: lining-nums tabular-nums; }
.tier .amt small { font-family: var(--sans); font-size: 14px; color: var(--mute); margin-left: 4px; }
.tier .alt { grid-column: 3; text-align: right; font-size: 13.5px; color: var(--mute); margin-top: -12px; }
.tier.rec .name::after { content: "Recommended"; margin-left: 14px; font-family: var(--sans); font-size: 12px; letter-spacing: .04em; color: var(--brass); vertical-align: middle; }
.price-foot { margin-top: 36px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; }
.price-foot p { color: var(--mute); font-size: 15px; max-width: 40em; }
@media (max-width: 760px) {
  .tier { grid-template-columns: 1fr auto; row-gap: 6px; }
  .tier .cap-n { grid-column: 1; grid-row: 2; }
  .tier .amt { grid-column: 2; grid-row: 1 / 3; align-self: center; }
  .tier .alt { grid-column: 1 / -1; text-align: left; margin-top: 0; }
  .tier .name { font-size: 30px; }
}

/* Trust */
.trust { text-align: center; }
.trust ul { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 34px; font-size: 14.5px; color: var(--white-2); letter-spacing: .02em; }
.trust li::before { content: ""; display: inline-block; width: 5px; height: 5px; border-radius: 50%; background: var(--brass); margin-right: 12px; vertical-align: middle; }
.trust p { margin: 26px auto 0; font-size: 13.5px; color: var(--mute); max-width: 52em; }

/* Close */
.close { text-align: center; overflow: hidden; }
.close h2 { font-size: clamp(54px, 8vw, 120px); }
.close .lede { margin: 26px auto 0; }
.close .stores { justify-content: center; margin-top: 40px; }
.close::before { content: ""; position: absolute; left: 50%; top: 10%; width: 900px; height: 600px; transform: translateX(-50%); background: radial-gradient(50% 50% at 50% 50%, rgba(201, 178, 122, .13), rgba(201, 178, 122, 0) 70%); pointer-events: none; }

/* Footer */
.foot { border-top: 1px solid var(--hair); padding: 60px 0 44px; font-size: 14.5px; }
.foot .row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 30px; }
.foot nav { display: flex; flex-wrap: wrap; gap: 14px 30px; }
.foot nav a { color: var(--white-2); }
.foot nav a:hover { color: var(--white); }
.foot .legal { margin-top: 40px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 30px; color: var(--mute); font-size: 13px; }

/* reveal: visible at rest; JS adds a gentle rise when in view */
.rise { transition: transform 1.1s var(--ease), opacity 1.1s var(--ease); }
.js .rise.pending { transform: translateY(26px); opacity: .4; }

/* ── Document pages ── */
.doc { padding: 160px 0 100px; }
.doc .wrap { max-width: 820px; }
.doc h1 { font-size: clamp(48px, 6.4vw, 84px); }
.doc .meta { margin-top: 14px; color: var(--mute); font-size: 15px; }
.doc .summary { margin: 44px 0 10px; padding: 26px 28px; border: 1px solid var(--hair); border-radius: 18px; background: var(--ink-2); }
.doc .summary h2 { font-family: var(--sans); font-size: 16px; font-weight: 500; letter-spacing: .02em; color: var(--brass); margin-bottom: 10px; }
.doc .summary ul { padding-left: 20px; color: var(--white-2); }
.doc h2 { font-size: clamp(32px, 3.4vw, 44px); margin: 64px 0 14px; scroll-margin-top: 100px; }
.doc h3 { font-family: var(--sans); font-weight: 500; font-size: 18px; margin: 30px 0 8px; color: var(--white); }
.doc p, .doc li { color: var(--white-2); }
.doc p { margin: 12px 0; max-width: none; }
.doc ul, .doc ol { padding-left: 22px; margin: 12px 0; }
.doc li { margin: 7px 0; }
.doc strong { color: var(--white); font-weight: 500; }
.doc a { color: var(--brass-2); text-decoration: underline; text-decoration-color: rgba(231, 214, 166, .35); text-underline-offset: 3px; }
.doc .toc { columns: 2; column-gap: 40px; margin-top: 40px; }
.doc .toc li { break-inside: avoid; }
.table-scroll { overflow-x: auto; margin: 18px 0; border: 1px solid var(--hair); border-radius: 14px; }
.table-scroll table { width: 100%; min-width: 560px; border-collapse: collapse; font-size: 15px; }
.table-scroll th, .table-scroll td { text-align: left; vertical-align: top; padding: 14px 16px; border-bottom: 1px solid var(--hair); }
.table-scroll th { color: var(--white); font-weight: 500; background: var(--ink-2); }
.table-scroll td { color: var(--white-2); }
.callout { margin: 24px 0; padding: 18px 22px; border-left: 2px solid var(--brass); background: rgba(201, 178, 122, .06); border-radius: 0 12px 12px 0; color: var(--white-2); }
.steps-list { counter-reset: s; list-style: none; padding: 0 !important; margin: 20px 0; display: grid; gap: 12px; }
.steps-list li { counter-increment: s; position: relative; margin: 0; padding: 18px 20px 18px 66px; border: 1px solid var(--hair); border-radius: 14px; background: var(--ink-2); }
.steps-list li::before { content: counter(s); position: absolute; left: 20px; top: 16px; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-weight: 500; font-size: 14px; color: var(--ink); background: var(--brass); }
.contact { margin: 26px 0; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; padding: 24px 26px; border: 1px solid var(--hair); border-radius: 18px; background: var(--ink-2); }
.contact b { display: block; font-family: var(--display); font-weight: 400; font-size: 28px; color: var(--white); }
.contact span { color: var(--mute); font-size: 14.5px; }
@media (max-width: 560px) { .doc .toc { columns: 1; } .doc { padding-top: 130px; } }

@media (prefers-reduced-motion: reduce) {
  body::after { animation: none; }
  *, *::before, *::after { transition: none !important; }
  .js .rise.pending { transform: none; opacity: 1; }
}

/* ── Light / dark compare ── */
.themes .head { text-align: center; max-width: 820px; margin: 0 auto; }
.themes .head .lede { margin-left: auto; margin-right: auto; }
.compare-stage { width: min(1180px, 94vw); margin: 70px auto 0; }
.compare .screen img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top left; }
.compare .c-top { clip-path: inset(0 calc(100% - var(--x, 50%)) 0 0); }
.compare .c-handle { position: absolute; top: 0; bottom: 0; left: var(--x, 50%); width: 2px; transform: translateX(-1px); background: rgba(239, 232, 220, .9); box-shadow: 0 0 0 1px rgba(0, 0, 0, .25), 0 0 24px rgba(201, 178, 122, .5); z-index: 3; pointer-events: none; }
.compare .c-handle span { position: absolute; top: 50%; left: 50%; width: 46px; height: 46px; transform: translate(-50%, -50%); border-radius: 50%; display: grid; place-items: center; color: var(--ink); background: var(--white); box-shadow: 0 6px 24px rgba(0, 0, 0, .45); }
.compare .c-range { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; z-index: 5; -webkit-appearance: none; appearance: none; touch-action: pan-y; }
.compare .c-range:focus-visible + .c-handle span, .compare:focus-within .c-handle span { outline: 2px solid var(--brass); outline-offset: 3px; }
.compare .c-tag { position: absolute; bottom: 3%; z-index: 4; font-size: 12px; letter-spacing: .03em; padding: 6px 12px; border-radius: 999px; background: rgba(18, 17, 16, .72); color: var(--white); backdrop-filter: blur(6px); pointer-events: none; }
.compare .c-tag-l { left: 2%; }
.compare .c-tag-r { right: 2%; background: rgba(253, 251, 246, .82); color: #221f18; }
.compare-tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 46px; }
.compare-tabs button { font: inherit; font-size: 14.5px; color: var(--white-2); background: none; border: 1px solid var(--hair-2); border-radius: 999px; padding: 9px 18px; cursor: pointer; transition: border-color .3s var(--ease), color .3s var(--ease), background .3s var(--ease); }
.compare-tabs button:hover { color: var(--white); border-color: var(--white-2); }
.compare-tabs button[aria-pressed="true"] { background: var(--white); color: var(--ink); border-color: var(--white); font-weight: 500; }
@media (max-width: 560px) { .compare .c-tag { font-size: 10px; padding: 4px 8px; } .compare .c-handle span { width: 36px; height: 36px; } }
