/* Yalc · waitlist site. Built on Kenza's poker system (felt, ivory cards, bordeaux, Copperplate / Geist).
   One dark mood on purpose, whatever the reader's theme. */
:root {
  --felt: #0E0F0E;
  --paper: #F6F2EC;
  --paper-dim: rgba(246, 242, 236, .74);
  --paper-faint: rgba(246, 242, 236, .5);
  --glass: rgba(18, 17, 16, .42);
  --glass-line: rgba(246, 242, 236, .14);
  --cta-ink: #141312;
  --ink: #141210;
  --ink-soft: #5E5750;
  --bordeaux: #711B24;
  --oxblood: #350406;
  --font-sans: "Geist", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-mono: "Geist Mono", ui-monospace, Menlo, monospace;
  --font-title: copperplate, "Marcellus SC", serif;
  --font-script: "Pinyon Script", cursive;
  --ease-out: cubic-bezier(.22, 1, .36, 1);
  --frame: min(1180px, calc(100% - 32px));
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--felt);
  color: var(--paper);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; }
a:focus-visible, button:focus-visible, input:focus-visible { outline: 2px solid var(--paper); outline-offset: 3px; }
.frame { width: var(--frame); margin-inline: auto; }

/* ---------- Header: logo left, glass pill right ---------- */
.top {
  position: fixed; inset: 0 0 auto 0; z-index: 30;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: calc(18px + env(safe-area-inset-top, 0px)) clamp(16px, 3vw, 32px) 0;
  pointer-events: none;
}
.logo, .nav { pointer-events: auto; }
.logo { display: flex; align-items: center; gap: 10px; color: var(--paper); text-decoration: none; font-size: 22px; font-weight: 500; letter-spacing: -.02em; }
.logo-mark { width: 28px; height: 28px; flex-shrink: 0; fill: currentColor; }
.nav {
  display: flex; align-items: center; gap: 4px;
  padding: 6px 6px 6px 14px;
  background: var(--glass); border: 1px solid var(--glass-line); border-radius: 16px;
  -webkit-backdrop-filter: blur(14px) saturate(1.2); backdrop-filter: blur(14px) saturate(1.2);
}
.nav a.link { color: var(--paper-dim); text-decoration: none; font-size: 14px; padding: 8px 12px; border-radius: 10px; transition: color .2s, background-color .2s; }
.nav a.link:hover, .nav a.link[aria-current="page"] { color: var(--paper); background: rgba(246, 242, 236, .08); }

.cta {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  /* glass, not a white slab */
  background: linear-gradient(180deg, rgba(246, 242, 236, .16), rgba(246, 242, 236, .06));
  color: var(--paper); text-decoration: none; cursor: pointer;
  border: 1px solid rgba(246, 242, 236, .24);
  -webkit-backdrop-filter: blur(16px) saturate(1.4); backdrop-filter: blur(16px) saturate(1.4);
  font: 500 15px/1 var(--font-sans); letter-spacing: -.01em;
  padding: 14px 22px; border-radius: 12px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .16), 0 10px 30px -12px rgba(0, 0, 0, .6);
  transition: transform .2s ease, background-color .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.cta:hover { transform: translateY(-1px); background-color: rgba(246, 242, 236, .08); border-color: rgba(246, 242, 236, .38); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .22), 0 14px 34px -12px rgba(0, 0, 0, .7); }
.cta:active { transform: scale(.97); transition: transform 100ms ease-out; }
.nav .cta { margin-left: 8px; padding: 10px 16px; font-size: 14px; border-radius: 11px; }
.cta svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.cta.ghost { background: transparent; color: var(--paper); box-shadow: inset 0 0 0 1px var(--glass-line); }

@media (max-width: 640px) {
  .logo { font-size: 19px; } .logo-mark { width: 24px; height: 24px; }
  .nav { padding: 4px; } .nav a.link { padding: 8px 8px; font-size: 13px; }
  .nav a.link.hide-sm { display: none; }
  .nav .cta { margin-left: 4px; padding: 9px 12px; font-size: 13px; }
}

/* ---------- Type ---------- */
.display {
  margin: 0; font-family: var(--font-title); font-weight: 500;
  font-size: clamp(28px, 3.3vw, 48px); line-height: 1.06; letter-spacing: 0; text-wrap: balance;
}
.lede { margin: 0; color: var(--paper-dim); font-size: clamp(16px, 1.3vw, 19px); line-height: 1.6; max-width: 46ch; text-wrap: pretty; }
.eyebrow { margin: 0; font-size: 12px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--paper-faint); }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 100svh; display: flex; flex-direction: column; isolation: isolate; overflow: hidden; }
.hero video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; animation: video-in 1800ms var(--ease-out) backwards; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(ellipse 60% 45% at 50% 46%, rgba(10, 10, 9, .6), transparent 75%),
    linear-gradient(to bottom, rgba(10, 10, 9, .55), rgba(10, 10, 9, .25) 35%, rgba(14, 15, 14, .85) 82%, var(--felt) 100%);
}
.hero-in { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 22px; padding: 132px 16px 72px; }
.hero h1 {
  margin: 0 0 14px; max-width: 18ch; font-family: var(--font-title); font-weight: 500;
  font-size: clamp(42px, 6.4vw, 92px); line-height: .92; letter-spacing: .01em; text-wrap: balance;
  text-shadow: 0 2px 30px rgba(0, 0, 0, .35);
}
.hero .lede { max-width: 44ch; font-size: clamp(17px, 1.6vw, 22px); text-align: center; text-wrap: balance; }
.hero-pill {
  margin: 0 0 -4px; display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px 7px 10px; border-radius: 999px;
  font-size: 13px; letter-spacing: .01em; color: var(--paper-dim);
  background: rgba(246, 242, 236, .06); border: 1px solid var(--glass-line);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
}
.hero-pill svg { width: 15px; height: 15px; fill: var(--paper); }

.word { display: inline-block; animation: word-in 600ms var(--ease-out) backwards; animation-delay: calc(var(--i) * 55ms + 150ms); }
.fade-late { animation: fade-in 800ms var(--ease-out) 1300ms backwards; }
@keyframes video-in { from { filter: blur(28px); transform: scale(1.08); } }
@keyframes word-in { from { opacity: 0; filter: blur(12px); transform: translateY(.18em); } }
@keyframes fade-in { from { opacity: 0; } }

/* ---------- Terminal (the one window) ---------- */
.term-wrap { position: relative; z-index: 2; margin: -40px auto 0; width: min(760px, calc(100% - 32px)); }
.term {
  border-radius: 16px; overflow: hidden;
  background: rgba(16, 15, 14, .92); border: 1px solid rgba(246, 242, 236, .12);
  box-shadow: 0 0 0 1px rgba(0,0,0,.4), 0 40px 90px -30px rgba(0, 0, 0, .8), 0 0 140px 0 rgba(246, 232, 210, .05);
  -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px);
}
.term-bar { display: flex; align-items: center; gap: 8px; padding: 12px 14px; border-bottom: 1px solid rgba(246, 242, 236, .07); }
.term-bar i { width: 11px; height: 11px; border-radius: 50%; background: rgba(246, 242, 236, .14); }
.term-bar span { margin-left: 10px; font: 12px var(--font-mono); color: var(--paper-faint); }
.term-body { padding: 22px 22px 26px; font: 14px/1.75 var(--font-mono); color: var(--paper-dim); min-height: 236px; }
.term-body p { margin: 0; opacity: 0; transform: translateY(4px); transition: opacity .4s ease, transform .5s var(--ease-out); }
.term-body p.on { opacity: 1; transform: none; }
.term-body .you { color: var(--paper); }
.term-body .you::before { content: "> "; color: var(--paper-faint); }
.term-body .dot::before { content: "⏺ "; color: #C9A27A; }
.term-body .dim { color: var(--paper-faint); }
.term-body b { color: var(--paper); font-weight: 500; }
.term-body .gate { color: #E8B4B8; }
.caret { display: inline-block; width: 8px; height: 16px; vertical-align: -3px; background: var(--paper-dim); animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
@media (max-width: 640px) { .term-body { font-size: 12.5px; padding: 18px 16px 20px; min-height: 260px; } }

/* ---------- Generic section ---------- */
.sec { position: relative; padding: clamp(80px, 10vw, 136px) 0; }
.sec.textured::before { content: ""; position: absolute; inset: 0; background: url("fond-section3.jpg") center / cover fixed; opacity: .22; pointer-events: none;
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 22%, #000 78%, transparent); mask-image: linear-gradient(to bottom, transparent, #000 22%, #000 78%, transparent); }
.sec-head { position: relative; display: flex; flex-direction: column; gap: 18px; max-width: 640px; }
.sec-head.center { margin-inline: auto; align-items: center; text-align: center; }
.sec-head.center .lede { text-wrap: balance; max-width: 52ch; }
.sec-head.center { max-width: 1060px; }

.reveal { opacity: 0; transform: translateY(18px); transition: opacity .8s var(--ease-out), transform 1s var(--ease-out); }
.reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Section 2: the tabs fold into one window ---------- */
.tabs-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(40px, 6vw, 96px); align-items: center; }
.tabs-stage { position: relative; height: 340px; }
.tabs { position: absolute; inset: 0; display: flex; flex-wrap: wrap; align-content: center; justify-content: center; gap: 10px; }
.tab {
  display: inline-flex; align-items: center; gap: 8px; padding: 10px 14px; border-radius: 10px;
  font-size: 14px; color: var(--paper-dim); background: rgba(246, 242, 236, .05); border: 1px solid rgba(246, 242, 236, .1);
  transition: transform .9s var(--ease-out), opacity .6s ease, filter .6s ease;
  transition-delay: calc(var(--k, 0) * 45ms);
}
.tab::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: rgba(246, 242, 236, .3); }
.tab.badge::after { content: attr(data-n); font-size: 11px; padding: 1px 6px; border-radius: 6px; background: var(--bordeaux); color: var(--paper); }
.tabs-stage.folded .tab { transform: translate(var(--dx), var(--dy)) scale(.3); opacity: 0; filter: blur(4px); }
.one {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%) scale(.6); opacity: 0;
  display: flex; align-items: center; gap: 12px; padding: 16px 22px; border-radius: 14px; white-space: nowrap;
  background: linear-gradient(180deg, rgba(246, 242, 236, .14), rgba(246, 242, 236, .05)); color: var(--paper); font: 500 16px var(--font-sans);
  border: 1px solid rgba(246, 242, 236, .22);
  -webkit-backdrop-filter: blur(16px) saturate(1.3); backdrop-filter: blur(16px) saturate(1.3);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .14), 0 30px 60px -24px rgba(0, 0, 0, .8);
  transition: transform .9s var(--ease-out) .55s, opacity .6s ease .55s;
}
.one .logo-mark { width: 22px; height: 22px; fill: var(--paper); }
.one small { font: 12px var(--font-mono); color: var(--paper-faint); }
.tabs-stage.folded .one { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.replay { position: absolute; right: 0; bottom: -8px; background: none; border: 0; color: var(--paper-faint); font: 13px var(--font-sans); cursor: pointer; padding: 6px; }
.replay:hover { color: var(--paper); }
@media (max-width: 860px) { .tabs-split { grid-template-columns: 1fr; } .tabs-stage { height: 300px; } }

/* ---------- Cards (Kenza's kit) ---------- */
.slip {
  --suit: #0A0A0A;
  position: relative; aspect-ratio: 5 / 7; border-radius: 14px; overflow: hidden; color: var(--ink);
  --emboss: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .35 0 0 0 0 .3 0 0 0 0 .25 0 0 0 .5 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)' opacity='.35'/%3E%3C/svg%3E");
  background:
    radial-gradient(120% 70% at 30% 0%, rgba(255, 255, 255, .5), transparent 60%),
    var(--emboss) 0 0 / 160px 160px,
    repeating-linear-gradient(45deg, rgba(60, 45, 30, .04) 0 1px, transparent 1px 3px),
    repeating-linear-gradient(-45deg, rgba(60, 45, 30, .04) 0 1px, transparent 1px 3px),
    linear-gradient(165deg, #FCFAF5 0%, #F4EFE6 100%);
  background-blend-mode: normal, multiply, normal, normal, normal;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.9), 0 0 0 .5px rgba(0,0,0,.18), 0 1px 1px rgba(0,0,0,.25), 0 12px 24px -10px rgba(0,0,0,.55), 0 34px 60px -28px rgba(0,0,0,.7);
}
.slip::before, .slip::after { content: ""; position: absolute; pointer-events: none; }
.slip::before { inset: 10px; border: 1px solid color-mix(in srgb, var(--suit) 26%, transparent); border-radius: 9px; }
.slip::after { inset: 14px; border: .5px solid color-mix(in srgb, var(--suit) 14%, transparent); border-radius: 7px; }
.slip.red { --suit: var(--bordeaux); }
.pip { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -52%); font: normal 190px/1 "Apple Symbols", "Segoe UI Symbol", serif; color: var(--suit); opacity: .06; pointer-events: none; }
.pip svg { width: 150px; height: 150px; fill: currentColor; display: block; }
.idx { position: absolute; left: 18px; top: 16px; z-index: 1; display: flex; flex-direction: column; align-items: center; line-height: 1; color: var(--suit); }
.idx b { font-family: var(--font-title); font-weight: 500; font-size: 26px; }
.idx i { font: normal 18px "Apple Symbols", "Segoe UI Symbol", serif; margin-top: 4px; }
.idx svg { width: 18px; height: 18px; fill: currentColor; margin-top: 5px; }
.idx-b { left: auto; top: auto; right: 18px; bottom: 16px; transform: rotate(180deg); }

/* card back: bordeaux lattice, ivory frame, Yalc mark in the oval */
.back {
  position: absolute; inset: 0; border-radius: 14px; overflow: hidden;
  background:
    radial-gradient(ellipse 34% 22% at 50% 50%, var(--bordeaux) 98%, transparent 100%),
    repeating-linear-gradient(45deg, rgba(246, 242, 236, .14) 0 1px, transparent 1px 11px),
    repeating-linear-gradient(-45deg, rgba(246, 242, 236, .14) 0 1px, transparent 1px 11px),
    linear-gradient(160deg, #7c2029, #5a1219);
  box-shadow: inset 0 0 0 8px #F4EFE6, inset 0 0 0 9px rgba(0,0,0,.15), inset 0 0 0 13px rgba(246, 242, 236, .0), 0 0 0 .5px rgba(0,0,0,.3), 0 14px 28px -12px rgba(0,0,0,.7);
}
.back::before { content: ""; position: absolute; inset: 16px; border: 1px solid rgba(246, 242, 236, .35); border-radius: 6px; }
.back svg { position: absolute; left: 50%; top: 50%; width: 30%; transform: translate(-50%, -50%); fill: #F4EFE6; opacity: .92; }

/* ---------- Section 3: the morning hand ---------- */
.hand-sec .sec-head { margin-bottom: clamp(48px, 6vw, 80px); }
.table { position: relative; height: clamp(330px, 34vw, 430px); display: flex; justify-content: center; perspective: 1600px; }
.hcard {
  --spread: 82%; --x: calc(var(--i) * var(--spread)); --y: calc(var(--i) * var(--i) * 9px); --r: calc(var(--i) * 7deg);
  position: absolute; left: 50%; bottom: 40px; width: clamp(150px, 15vw, 210px); aspect-ratio: 5 / 7;
  transform-style: preserve-3d; cursor: pointer; border: 0; padding: 0; background: none; color: inherit; font: inherit;
  transform: translate(calc(-50% + var(--x)), -70vh) rotate(0deg); opacity: 0;
  transition: transform 1s var(--ease-out), opacity .5s ease;
  transition-delay: calc(var(--k) * 110ms);
}
.table.dealt .hcard { transform: translate(calc(-50% + var(--x)), var(--y)) rotate(var(--r)); opacity: 1; }
.table.dealt .hcard:not(.up):hover { transform: translate(calc(-50% + var(--x)), calc(var(--y) - 14px)) rotate(var(--r)); transition-delay: 0s; transition-duration: .35s; }
.hcard .flip { position: absolute; inset: 0; transform-style: preserve-3d; transition: transform 1s var(--ease-out); }
.hcard .face, .hcard .back { backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.hcard .face { position: absolute; inset: 0; transform: rotateY(180deg); display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 10px; padding: 30px 20px; text-align: center; }
.hcard.up .flip { transform: rotateY(180deg); }
.hcard.up { z-index: 3; }
.table.dealt .hcard.up { transform: translate(calc(-50% + var(--x)), -26px) rotate(0deg) scale(1.08); }
.face .when { position: relative; z-index: 1; font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: #8A8176; }
.face .what { position: relative; z-index: 1; font-size: 15px; line-height: 1.35; font-weight: 500; color: var(--ink); filter: blur(4.5px); user-select: none; }
.face .tool { position: relative; z-index: 1; font-size: 11px; color: #8A8176; filter: blur(3px); user-select: none; }
.face .yes { position: relative; z-index: 1; margin-top: 8px; display: inline-flex; gap: 6px; }
.face .yes span { font-size: 11px; padding: 6px 10px; border-radius: 7px; background: rgba(20, 18, 16, .07); color: var(--ink-soft); }
.face .yes span.go { background: var(--ink); color: var(--paper); }
.nudge {
  position: absolute; left: 50%; bottom: -14px; transform: translate(-50%, 6px); opacity: 0; pointer-events: none;
  font-size: 14px; color: var(--paper); background: var(--glass); border: 1px solid var(--glass-line); padding: 9px 14px; border-radius: 10px; white-space: nowrap;
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); transition: opacity .3s, transform .4s var(--ease-out);
}
.nudge.on { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
.nudge a { color: var(--paper); text-underline-offset: 3px; }
.hand-note { position: relative; margin: 40px auto 0; text-align: center; color: var(--paper-faint); font-size: 14px; }
@media (max-width: 640px) {
  .hcard { width: 112px; --spread: 54%; }
  .table.dealt .hcard.up { transform: translate(calc(-50% + var(--x)), -34px) rotate(0deg) scale(1.3); }
  .hcard .face { padding: 26px 10px 18px; gap: 5px; }
  .hcard .face .idx { left: 9px; top: 8px; } .hcard .face .idx-b { left: auto; top: auto; right: 9px; bottom: 8px; }
  .hcard .face .idx b { font-size: 15px; } .hcard .face .idx i { font-size: 11px; margin-top: 2px; }
  .hcard .face::before { inset: 6px; } .hcard .face::after { inset: 8px; }
  .face .when { font-size: 7px; } .face .what { font-size: 10px; } .face .tool { display: none; }
  .face .yes { margin-top: 4px; } .face .yes span { font-size: 8px; padding: 3px 5px; border-radius: 5px; }
}

/* ---------- Section 4: five suits ---------- */
.suits { position: relative; margin-top: clamp(56px, 7vw, 88px); display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: clamp(12px, 1.6vw, 22px); }
.suit-card { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; text-align: center; transition: transform .5s var(--ease-out); }
.suit-card:hover { transform: translateY(-10px) rotate(-1.2deg); }
.suit-card .name { position: relative; z-index: 1; font: 500 clamp(15px, 1.5vw, 21px)/1.1 var(--font-title); letter-spacing: .03em; text-transform: uppercase; color: var(--ink); text-wrap: balance; padding: 0 14px; }
.suit-card .big { position: relative; z-index: 1; font: normal clamp(34px, 3.6vw, 52px)/1 "Apple Symbols", "Segoe UI Symbol", serif; color: var(--suit); }
.suit-card .big svg { width: clamp(34px, 3.4vw, 48px); height: clamp(34px, 3.4vw, 48px); fill: currentColor; display: block; }
.suit-card.wild { --suit: var(--paper); background: radial-gradient(120% 70% at 30% 0%, rgba(255,255,255,.12), transparent 60%), linear-gradient(165deg, #7c2029, #4a0e14); }
.suit-card.wild .name { color: var(--paper); }
.suit-card.wild .tag { position: relative; z-index: 1; font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: rgba(246, 242, 236, .7); }
.suits .suit-card.reveal { transition-delay: calc(var(--k) * 90ms); }
.suits-foot { position: relative; margin: clamp(40px, 5vw, 64px) auto 0; max-width: 560px; text-align: center; }
.suits-foot .lede { margin-inline: auto; text-align: center; text-wrap: balance; }
@media (max-width: 860px) {
  .suits { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .suits .suit-card { grid-column: span 2; }
  .suits .suit-card:nth-child(4) { grid-column: 2 / span 2; }
}
@media (max-width: 520px) {
  .suits { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .suits .suit-card, .suits .suit-card:nth-child(4) { grid-column: auto; }
  .suits .suit-card.wild { grid-column: 1 / -1; width: 50%; justify-self: center; }
}

/* ---------- Section 5: three lines ---------- */
.steps { position: relative; margin-top: clamp(48px, 6vw, 72px); border-top: 1px solid rgba(246, 242, 236, .16); }
.step { display: grid; grid-template-columns: 120px minmax(0, 1fr) minmax(0, 1.2fr); gap: 24px; align-items: baseline; padding: 30px 0; border-bottom: 1px solid rgba(246, 242, 236, .09); }
.step .n { font: 500 44px/1 var(--font-title); color: var(--paper-faint); }
.step h3 { margin: 0; font: 500 clamp(20px, 2vw, 26px)/1.2 var(--font-sans); letter-spacing: -.015em; }
.step p { margin: 0; color: var(--paper-dim); font-size: 17px; line-height: 1.6; }
@media (max-width: 760px) { .step { grid-template-columns: 56px 1fr; } .step .n { font-size: 30px; } .step p { grid-column: 2; } }

/* ---------- FAQ ---------- */
.faq-inner { position: relative; display: flex; align-items: flex-start; gap: clamp(40px, 7vw, 96px); }
.faq-side { position: sticky; top: 110px; flex: 0 0 min(340px, 34%); display: flex; flex-direction: column; align-items: flex-start; gap: 24px; }
.faq-list { flex: 1; min-width: 0; border-top: 1px solid rgba(246, 242, 236, .18); }
.faq-item { border-bottom: 1px solid rgba(246, 242, 236, .1); }
.faq-q { margin: 0; }
.faq-q button { all: unset; box-sizing: border-box; width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 22px 0; cursor: pointer; font: 500 17px/24px var(--font-sans); letter-spacing: -.01em; color: var(--paper); }
.faq-ic { flex-shrink: 0; width: 32px; height: 32px; border-radius: 8px; display: grid; place-items: center; background: rgba(246, 242, 236, .08); transition: background-color .3s, color .3s; }
.faq-ic svg { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; }
.faq-ic .v { transform-origin: 50% 50%; transition: transform .3s var(--ease-out); }
.faq-item.is-open .faq-ic { background: var(--paper); color: var(--cta-ink); }
.faq-item.is-open .faq-ic .v { transform: scaleY(0); }
.faq-a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .45s var(--ease-out); }
.faq-a > div { overflow: hidden; }
.faq-a p { margin: 0; padding: 0 56px 24px 0; max-width: 620px; font-size: 17px; line-height: 26px; color: var(--paper-dim); }
.faq-item.is-open .faq-a { grid-template-rows: 1fr; }
@media (max-width: 860px) { .faq-inner { flex-direction: column; gap: 36px; } .faq-side { position: static; flex: none; } .faq-a p { padding-right: 0; } }

/* ---------- Waitlist card (footer) ---------- */
.site-foot { position: relative; padding: 0 0 0; }
.site-foot::before { content: ""; position: absolute; inset: 0; background: url("fond-section3.jpg") center / cover fixed; opacity: .22; pointer-events: none;
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 30%); mask-image: linear-gradient(to bottom, transparent, #000 30%); }
.foot-card {
  position: relative; display: flex; flex-direction: column; align-items: center; gap: 24px; text-align: center;
  padding: clamp(64px, 8vw, 104px) clamp(20px, 5vw, 64px);
  background: var(--glass); border: 1px solid var(--glass-line); border-radius: 32px;
  -webkit-backdrop-filter: blur(14px) saturate(1.2); backdrop-filter: blur(14px) saturate(1.2);
  box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .55);
  scroll-margin-top: 90px;
}
.foot-card .logo-mark { width: 52px; height: 52px; }
.foot-card .display { font-size: clamp(34px, 4.6vw, 64px); }
.foot-card .lede { text-align: center; text-wrap: balance; max-width: 48ch; }
.wl { width: min(560px, 100%); display: flex; flex-direction: column; gap: 10px; margin-top: 6px; }
.wl-row { display: flex; gap: 10px; }
.wl input {
  flex: 1; min-width: 0; font: 16px var(--font-sans); color: var(--paper);
  background: rgba(246, 242, 236, .06); border: 1px solid rgba(246, 242, 236, .18); border-radius: 12px; padding: 14px 16px;
  transition: border-color .2s, background-color .2s;
}
.wl input::placeholder { color: rgba(246, 242, 236, .42); }
.wl input:focus { outline: none; border-color: rgba(246, 242, 236, .55); background: rgba(246, 242, 236, .09); }
.wl label { text-align: left; font-size: 13px; color: var(--paper-faint); margin-top: 6px; }
.wl .err { min-height: 18px; margin: 0; font-size: 13px; color: #E8B4B8; text-align: left; }
.wl-done { display: none; flex-direction: column; align-items: center; gap: 10px; }
.wl-done b { font: 500 clamp(24px, 2.6vw, 34px)/1.1 var(--font-title); letter-spacing: .01em; }
.wl-done span { color: var(--paper-dim); }
.foot-card.done .wl { display: none; }
.foot-card.done .wl-done { display: flex; animation: fade-in .6s ease; }
@media (max-width: 520px) { .wl-row { flex-direction: column; } .wl .cta { width: 100%; } }

.foot-bar { position: relative; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 32px; padding: 40px 0 56px; }
.foot-brand { display: flex; align-items: center; gap: 14px; }
.foot-brand small { font-size: 13px; color: var(--paper-faint); }
.foot-links { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 24px; }
.foot-links a { color: var(--paper-dim); text-decoration: none; font-size: 14px; }
.foot-links a:hover { color: var(--paper); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .word, .fade-late, .hero video { animation: none; }
  .reveal, .hcard, .hcard .flip, .tab, .one, .suit-card { transition: none !important; }
}

/* ---------- The real session capture, under the hero ---------- */
/* made to pop: a lit glass bezel, a warm halo on the felt, and a tilt that settles flat as it scrolls in */
.capture { position: relative; z-index: 2; margin: -64px auto 0; width: min(1180px, calc(100% - 32px)); perspective: 1800px; }
.capture::before {
  content: ""; position: absolute; inset: -14% -10% -18%; z-index: -1; pointer-events: none;
  background:
    radial-gradient(ellipse 60% 50% at 50% 40%, rgba(246, 236, 218, .22), transparent 70%),
    radial-gradient(ellipse 75% 60% at 50% 62%, rgba(150, 36, 48, .5), transparent 72%);
  filter: blur(10px);
}
.capture-frame {
  padding: 10px; border-radius: 24px;
  background: linear-gradient(180deg, rgba(246, 242, 236, .16), rgba(246, 242, 236, .05));
  border: 1px solid rgba(246, 242, 236, .26);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .22), 0 50px 120px -40px rgba(0, 0, 0, .95), 0 0 0 1px rgba(0, 0, 0, .4);
  -webkit-backdrop-filter: blur(18px) saturate(1.3); backdrop-filter: blur(18px) saturate(1.3);
  transform-origin: 50% 0;
}
.capture img { display: block; width: 100%; height: auto; border-radius: 15px; box-shadow: 0 0 0 1px rgba(246, 242, 236, .14); filter: brightness(1.12) contrast(1.04); }
.capture.reveal { transform: none; }
.capture.reveal .capture-frame { transform: rotateX(16deg) scale(.94); transition: transform 1.4s var(--ease-out); }
.capture.reveal.is-visible .capture-frame { transform: none; }
@media (prefers-reduced-motion: reduce) { .capture.reveal .capture-frame { transform: none; transition: none; } }
@media (max-width: 640px) { .capture-frame { padding: 6px; border-radius: 16px; } .capture img { border-radius: 11px; } }
.capture-pending { aspect-ratio: 16 / 10; display: grid; place-items: center; border-radius: 16px; border: 1px dashed rgba(246, 242, 236, .2); color: var(--paper-faint); font: 14px var(--font-mono); }

/* waitlist right in the hero: no scroll down to the footer */
.hero-wl { width: min(520px, 100%); display: flex; flex-direction: column; align-items: center; scroll-margin-top: 40vh; }
.hero-wl .wl { width: 100%; margin-top: 4px; }
.hero-wl .wl input { background: rgba(14, 15, 14, .38); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
.hero-wl .wl .err { text-align: center; }
.hero-wl.done .wl { display: none; }
.hero-wl.done .wl-done { display: flex; animation: fade-in .6s ease; }
.hero-wl .wl-done b { font-size: clamp(22px, 2.2vw, 28px); }

/* ---------- 25 Nov copy update: longer hero line, four ways, data, agent note ---------- */
.hero h1.h1-long { max-width: 22ch; font-size: clamp(38px, 5.2vw, 76px); line-height: .98; }

.quote { position: relative; margin: clamp(48px, 6vw, 72px) auto 0; max-width: 640px; text-align: center; }
.quote blockquote { margin: 0; font: 400 clamp(20px, 2vw, 26px)/1.4 var(--font-sans); letter-spacing: -.01em; color: var(--paper); text-wrap: balance; }
.quote figcaption { margin-top: 14px; font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--paper-faint); }

.ways { margin-top: clamp(48px, 6vw, 72px); display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(14px, 1.6vw, 22px); }
.way {
  --suit: #0A0A0A; position: relative; display: flex; flex-direction: column; gap: 14px; padding: 28px 24px 30px; border-radius: 14px; color: var(--ink);
  background: radial-gradient(120% 70% at 30% 0%, rgba(255, 255, 255, .5), transparent 60%), linear-gradient(165deg, #FCFAF5 0%, #F4EFE6 100%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.9), 0 0 0 .5px rgba(0,0,0,.18), 0 12px 24px -10px rgba(0,0,0,.55), 0 34px 60px -28px rgba(0,0,0,.7);
  transition: transform .5s var(--ease-out), opacity .8s var(--ease-out); transition-delay: calc(var(--k) * 90ms);
}
.way::before { content: ""; position: absolute; inset: 9px; border: 1px solid color-mix(in srgb, var(--suit) 22%, transparent); border-radius: 9px; pointer-events: none; }
.way.red { --suit: var(--bordeaux); }
.way:hover { transform: translateY(-8px) rotate(-.6deg); transition-delay: 0s; }
.way-suit { font: normal 26px/1 "Apple Symbols", "Segoe UI Symbol", serif; color: var(--suit); }
.way h3 { margin: 0; font: 500 clamp(17px, 1.5vw, 21px)/1.15 var(--font-title); letter-spacing: .03em; text-transform: uppercase; color: var(--ink); }
.way p { position: relative; margin: 0; font-size: 15px; line-height: 1.5; color: var(--ink-soft); }
.way p.say { display: flex; align-items: center; min-height: 60px; padding: 10px 12px; border-radius: 9px; background: rgba(20, 18, 16, .06); font: 13px/1.5 var(--font-mono); color: var(--ink); }
.way p.say::before { flex-shrink: 0; margin-right: .5ch; }
.way p.say::before { content: ">"; color: #9A9088; }
@media (max-width: 960px) { .ways { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .ways { grid-template-columns: 1fr; } }

.data-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(40px, 6vw, 88px); align-items: center; }
.data-term { margin: 0; width: 100%; }
.data-term .term-body { min-height: 0; }
.lede.small { font-size: 16px; }
.struck { display: flex; flex-wrap: wrap; gap: 8px; }
.struck span { padding: 8px 13px; border-radius: 999px; border: 1px solid rgba(246, 242, 236, .14); color: var(--paper-faint); font-size: 14px;
  text-decoration: line-through; text-decoration-color: var(--bordeaux); text-decoration-thickness: 2px; }
.facts { position: relative; text-align: center; margin-top: clamp(48px, 6vw, 72px); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 3vw, 40px); border-top: 1px solid rgba(246, 242, 236, .16); padding-top: 28px; }
.fact { transition-delay: calc(var(--k) * 90ms); }
.fact h3 { margin: 0 0 8px; font: 500 18px/1.3 var(--font-sans); letter-spacing: -.01em; }
.fact p { margin: 0; color: var(--paper-dim); font-size: 15.5px; line-height: 1.55; }
@media (max-width: 860px) { .data-split, .facts { grid-template-columns: 1fr; } }

.agent-sec { position: relative; padding: 0 0 clamp(64px, 8vw, 104px); }
.agent-note { max-width: 760px; margin-inline: auto; padding: 22px 26px; border-radius: 14px; border: 1px dashed rgba(246, 242, 236, .2); display: flex; flex-direction: column; gap: 10px; }
.agent-note p:not(.eyebrow) { margin: 0; font: 13.5px/1.7 var(--font-mono); color: var(--paper-dim); }

/* centered "why Claude" stage: the tabs fold under the headline, not beside it */
.tabs-stage.centered { width: min(820px, 100%); height: 170px; margin: clamp(40px, 5vw, 56px) auto 0; }
@media (max-width: 860px) { .tabs-stage.centered { height: 300px; } }

/* data: one centered column, the chat under the headline */
.data-stack { display: flex; flex-direction: column; align-items: center; gap: clamp(32px, 4vw, 44px); }
.data-stack .struck { justify-content: center; }
.data-stack .data-term { width: min(760px, 100%); }
