/* Session Shelf landing page. Dark, like the app; system fonts only (no third-party requests). */
:root {
  --bg: #0b0b0e;
  --bg2: #121218;
  --surface: #17171e;
  --line: rgba(255, 255, 255, .09);
  --fg: #f2f2f5;
  --muted: #9b9ba8;
  --faint: #6b6b78;
  --accent: #8c84ff;
  --pink: #ff5fbf;
  --amber: #ffb547;
  --radius: 18px;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Inter, Roboto, sans-serif;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; background: var(--bg); color-scheme: dark; }
body { background: var(--bg); color: var(--fg); font: 17px/1.6 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: inherit; }
img { display: block; max-width: 100%; }
.muted { color: var(--muted); }
.fine { font-size: 13px; color: var(--faint); }
.fine a { color: var(--muted); }

/* ---------- nav ---------- */
.nav { position: fixed; inset: 0 0 auto; z-index: 50; display: flex; align-items: center; justify-content: space-between;
  padding: 14px clamp(16px, 4vw, 48px); transition: background .3s, backdrop-filter .3s, border-color .3s; border-bottom: 1px solid transparent; }
.nav.solid { background: rgba(11, 11, 14, .72); backdrop-filter: blur(18px) saturate(1.4); border-color: var(--line); }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 700; letter-spacing: -.01em; }
.brand img { border-radius: 7px; }
.brand em { font-style: normal; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em;
  color: var(--accent); background: rgba(140, 132, 255, .14); padding: 3px 8px; border-radius: 99px; }
.nav nav { display: flex; align-items: center; gap: clamp(12px, 2.4vw, 28px); font-size: 15px; }
.nav nav a { text-decoration: none; color: var(--muted); transition: color .2s; }
.nav nav a:hover { color: var(--fg); }
@media (max-width: 720px) { .nav nav a:not(.btn) { display: none; } }

/* ---------- buttons, forms ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 48px; padding: 0 24px; border-radius: 99px; border: 0;
  background: linear-gradient(135deg, var(--accent), var(--pink)); color: #fff !important; font: 600 16px var(--sans); text-decoration: none; cursor: pointer;
  box-shadow: 0 10px 30px rgba(140, 132, 255, .35); transition: transform .2s var(--ease), box-shadow .2s; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 14px 38px rgba(255, 95, 191, .4); }
.btn.small { height: 36px; padding: 0 16px; font-size: 14px; box-shadow: none; }
.btn.ghost { background: rgba(255, 255, 255, .07); box-shadow: inset 0 0 0 1px var(--line); }
.btn.ghost:hover { background: rgba(255, 255, 255, .12); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .2); }
.btn[disabled] { opacity: .6; cursor: default; transform: none; }
.row { display: flex; gap: 10px; flex-wrap: wrap; }
.row input { flex: 1 1 220px; height: 48px; padding: 0 18px; border-radius: 99px; border: 1px solid var(--line); background: rgba(255, 255, 255, .04);
  color: var(--fg); font: 16px var(--sans); outline: none; transition: border-color .2s, background .2s; }
.row input:focus { border-color: rgba(140, 132, 255, .6); background: rgba(255, 255, 255, .07); }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form-msg { min-height: 1.6em; margin-top: 10px; font-size: 14px; color: var(--muted); }
.form-msg.ok { color: #6ee7b7; }
.form-msg.err { color: #fca5a5; }

/* ---------- hero ---------- */
.hero { position: relative; min-height: min(100svh, 980px); display: flex; align-items: center; padding: 110px clamp(16px, 6vw, 96px) 64px; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; z-index: 0; }
.hero-shot { position: absolute; right: -8vw; top: 50%; width: min(1500px, 92vw); max-width: none; border-radius: 22px;
  transform: translateY(-50%) perspective(1600px) rotateY(-14deg) rotateX(4deg) scale(1.05); transform-origin: 70% 50%;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .08), 0 40px 120px rgba(0, 0, 0, .7), 0 0 160px rgba(140, 132, 255, .25);
  opacity: 0; animation: heroIn 1.6s var(--ease) .1s forwards; will-change: transform; }
@keyframes heroIn { from { opacity: 0; transform: translateY(-46%) perspective(1600px) rotateY(-22deg) rotateX(6deg) scale(1.15); } to { opacity: .85; } }
.hero-bg::after { content: ""; position: absolute; inset: 0;
  background: radial-gradient(60% 70% at 18% 55%, rgba(11, 11, 14, .96) 30%, rgba(11, 11, 14, .55) 62%, rgba(11, 11, 14, .15) 100%),
              linear-gradient(to bottom, transparent 70%, var(--bg)); }
.hero-text { position: relative; z-index: 1; max-width: 760px; }
.kicker { font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); margin-bottom: 18px; }
h1 { font-size: clamp(42px, 6.2vw, 88px); line-height: .98; letter-spacing: -.045em; font-weight: 800; }
.grad { background: linear-gradient(100deg, #b3adff 0%, var(--pink) 55%, var(--amber) 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lede { margin-top: 24px; font-size: clamp(18px, 1.6vw, 21px); color: #c9c9d3; max-width: 560px; }
.cta { margin-top: 34px; display: flex; gap: 12px; flex-wrap: wrap; }
.hero .fine { margin-top: 22px; }
.scroll-hint { position: absolute; left: 50%; bottom: 28px; width: 24px; height: 38px; margin-left: -12px; border-radius: 12px; border: 2px solid rgba(255, 255, 255, .25); }
.scroll-hint::after { content: ""; position: absolute; left: 50%; top: 7px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: #fff; animation: hint 1.8s ease-in-out infinite; }
@keyframes hint { 0% { opacity: 0; transform: translateY(0) } 30% { opacity: 1 } 80% { opacity: 0; transform: translateY(12px) } 100% { opacity: 0 } }
@media (max-width: 860px) {
  .hero { align-items: flex-end; padding-bottom: 72px; }
  .hero-shot { top: 34%; right: -70vw; width: 190vw; }
  @keyframes heroIn { from { opacity: 0; transform: translateY(-46%) perspective(1600px) rotateY(-22deg) rotateX(6deg) scale(1.15); } to { opacity: .55; } }
  .hero-bg::after { background: linear-gradient(to bottom, rgba(11, 11, 14, .7), rgba(11, 11, 14, .92) 60%, var(--bg)); }
}

/* ---------- reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.d1 { transition-delay: .1s; } .d2 { transition-delay: .2s; } .d3 { transition-delay: .3s; } .d4 { transition-delay: .4s; }
.hero .reveal { transition-duration: 1.1s; }

/* ---------- problem ---------- */
.problem { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: center; padding: clamp(48px, 6vw, 88px) clamp(16px, 6vw, 96px); max-width: 1400px; margin: 0 auto; }
.problem h2 { font-size: clamp(32px, 4vw, 52px); line-height: 1.05; letter-spacing: -.035em; }
.problem p { margin-top: 22px; color: #c2c2cc; max-width: 560px; }
.loader { padding: 36px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.loader-file { display: flex; align-items: center; gap: 10px; font: 14px ui-monospace, Menlo, monospace; color: var(--muted); }
.spin { width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--muted); border-top-color: transparent; animation: spin 1s linear infinite; }
.loader.done .spin { animation: none; border-color: #34d399; }
@keyframes spin { to { transform: rotate(360deg) } }
.loader-time { margin: 18px 0 14px; font-size: clamp(64px, 9vw, 120px); font-weight: 800; letter-spacing: -.05em; line-height: 1; font-variant-numeric: tabular-nums; }
.loader-bar { height: 8px; border-radius: 4px; background: rgba(255, 255, 255, .07); overflow: hidden; }
.loader-bar i { display: block; height: 100%; width: 100%; transform: scaleX(.04); transform-origin: left; background: linear-gradient(90deg, var(--accent), var(--pink)); border-radius: 4px; }
@media (max-width: 860px) { .problem { grid-template-columns: 1fr; } .loader { padding: 24px; } .loader-file { font-size: 12px; } }
@media (max-width: 520px) {
  .cta .btn { flex: 1 1 100%; }
  .row .btn { flex: 1 1 100%; }
  .beta-card { border-radius: 22px; }
  summary { font-size: 17px; }
  .play { width: 72px; height: 72px; margin: -36px 0 0 -36px; }
  .play span { left: 29px; top: 22px; border-width: 14px 0 14px 22px; }
  .consent { font-size: 11px; }
}

/* ---------- features: full-height scenes, the screenshot as a huge backdrop ---------- */
.feature { --shot-w: min(78vw, 1900px); position: relative; display: flex; align-items: center; overflow: hidden;
  /* As tall as the screenshot (16:9) plus a little air, so scenes sit close together. */
  min-height: calc(var(--shot-w) * .5625 + 24px); padding: 12px clamp(16px, 5vw, 80px); }
.feature + .feature { margin-top: -48px; }
.shot-wrap { position: absolute; top: 50%; right: -12vw; width: var(--shot-w); z-index: 0; border-radius: 22px;
  --py: 0px; transform: translateY(calc(-50% + var(--py))); will-change: transform; }
.feature.flip .shot-wrap { right: auto; left: -12vw; }
.shot { width: 100%; border-radius: 22px; box-shadow: 0 0 0 1px rgba(255, 255, 255, .08), 0 50px 140px rgba(0, 0, 0, .75);
  opacity: 0; transform: translateX(18%) scale(1.08) rotate(1.5deg); filter: blur(8px) brightness(.7);
  transition: transform 1.4s var(--ease), opacity 1.1s var(--ease), filter 1.2s var(--ease); }
.feature.flip .shot { transform: translateX(-18%) scale(1.08) rotate(-1.5deg); }
.shot-wrap.in .shot { opacity: 1; transform: none; filter: none; }
.shot-wrap::before { content: ""; position: absolute; inset: -6%; z-index: -1; border-radius: 40px; opacity: 0; transition: opacity 1.4s;
  background: radial-gradient(closest-side, rgba(140, 132, 255, .32), rgba(255, 95, 191, .12) 60%, transparent); filter: blur(50px); }
.shot-wrap.in::before { opacity: 1; }
/* Fade the backdrop into the page behind the text. */
.feature::after { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(90deg, var(--bg) 0%, rgba(11, 11, 14, .92) 22%, rgba(11, 11, 14, .35) 46%, transparent 62%),
              linear-gradient(to bottom, var(--bg), transparent 5%, transparent 95%, var(--bg)); }
.feature.flip::after { background: linear-gradient(270deg, var(--bg) 0%, rgba(11, 11, 14, .92) 22%, rgba(11, 11, 14, .35) 46%, transparent 62%),
              linear-gradient(to bottom, var(--bg), transparent 5%, transparent 95%, var(--bg)); }
.feature .copy { position: relative; z-index: 2; max-width: 500px; padding: clamp(24px, 3vw, 40px); border-radius: 24px;
  background: rgba(17, 17, 23, .55); backdrop-filter: blur(22px) saturate(1.3); -webkit-backdrop-filter: blur(22px) saturate(1.3);
  border: 1px solid rgba(255, 255, 255, .08); box-shadow: 0 30px 80px rgba(0, 0, 0, .45); }
.feature.flip .copy { margin-left: auto; }
.num { font-size: 13px; font-weight: 700; letter-spacing: .14em; color: var(--accent); margin-bottom: 10px; }
.feature h3 { font-size: clamp(30px, 3.2vw, 46px); line-height: 1.05; letter-spacing: -.035em; margin-bottom: 16px; }
.feature p { color: #c9c9d3; }
.ticks { list-style: none; margin-top: 18px; display: grid; gap: 10px; }
.ticks li { position: relative; padding-left: 28px; color: var(--muted); font-size: 15.5px; }
.ticks li::before { content: ""; position: absolute; left: 0; top: .5em; width: 16px; height: 9px; border-radius: 5px; background: linear-gradient(90deg, var(--accent), var(--pink)); }
.stages { list-style: none; margin-top: 18px; display: grid; gap: 7px; }
.stages li { display: flex; gap: 12px; align-items: baseline; color: var(--muted); font-size: 15px; }
.stages b { flex: 0 0 96px; color: var(--c); font-weight: 600; }
.stages b::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--c); margin-right: 8px; vertical-align: 1px; }
.feature .copy > * { opacity: 0; transform: translateY(22px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.feature.in .copy > * { opacity: 1; transform: none; }
.feature.in .copy > :nth-child(2) { transition-delay: .1s; } .feature.in .copy > :nth-child(3) { transition-delay: .2s; } .feature.in .copy > :nth-child(4) { transition-delay: .3s; }
/* Tablet: same overlap, the screenshot wider than the screen. */
@media (max-width: 1100px) {
  .feature { --shot-w: 96vw; }
  .shot-wrap { right: -30vw; }
  .feature.flip .shot-wrap { left: -30vw; }
  .feature .copy { max-width: 440px; }
}
/* Phone (and tablets held upright): the screenshot slides in from the side behind the card, and the
   card overlaps its lower part. */
@media (max-width: 720px), (max-width: 1100px) and (orientation: portrait) {
  .feature { min-height: auto; display: block; padding: 28px 16px 24px; }
  .feature + .feature { margin-top: 0; }
  .shot-wrap, .feature.flip .shot-wrap { position: relative; top: auto; left: auto; right: auto; width: 150%; transform: none; }
  .shot-wrap { margin-left: 4%; }
  .feature.flip .shot-wrap { margin-left: -54%; }
  .shot, .feature.flip .shot { border-radius: 14px; }
  .feature::after, .feature.flip::after { background: linear-gradient(to bottom, var(--bg), transparent 10%, transparent 90%, var(--bg)); }
  .feature .copy, .feature.flip .copy { margin: -22vw 0 0; max-width: 620px; padding: 24px 20px; border-radius: 20px; background: rgba(17, 17, 23, .72); }
  .feature.flip .copy { margin-left: auto; }
  .feature h3 { font-size: 30px; }
  .ticks li, .stages li { font-size: 15px; }
  .stages b { flex-basis: 84px; }
}

/* ---------- video ---------- */
.video, .signup, .faq { padding: clamp(48px, 6vw, 88px) clamp(16px, 6vw, 96px); max-width: 1100px; margin: 0 auto; text-align: center; }
.video h2, .signup h2, .faq h2 { font-size: clamp(34px, 4.4vw, 56px); letter-spacing: -.04em; line-height: 1.05; margin-bottom: 14px; }
.player { position: relative; margin-top: 40px; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; background: #000;
  box-shadow: 0 0 0 1px var(--line), 0 40px 120px rgba(0, 0, 0, .7), 0 0 120px rgba(255, 95, 191, .15); cursor: pointer; }
.player img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease), filter .4s; }
.player:hover img { transform: scale(1.03); filter: brightness(.85); }
.player iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.play { position: absolute; left: 50%; top: 50%; width: 92px; height: 92px; margin: -46px 0 0 -46px; border-radius: 50%; border: 0; cursor: pointer;
  background: linear-gradient(135deg, var(--accent), var(--pink)); box-shadow: 0 16px 50px rgba(255, 95, 191, .5); transition: transform .25s var(--ease); }
.play span { position: absolute; left: 38px; top: 29px; border-style: solid; border-width: 17px 0 17px 28px; border-color: transparent transparent transparent #fff; }
.player:hover .play { transform: scale(1.08); }
.consent { position: absolute; left: 0; right: 0; bottom: 0; padding: 10px 16px; font-size: 12px; color: rgba(255, 255, 255, .75); background: linear-gradient(transparent, rgba(0, 0, 0, .7)); }

/* ---------- beta ---------- */
.beta { padding: clamp(32px, 4vw, 56px) clamp(16px, 6vw, 96px); }
.beta-card { position: relative; max-width: 760px; margin: 0 auto; padding: clamp(32px, 5vw, 56px); border-radius: 28px; overflow: hidden;
  background: linear-gradient(160deg, rgba(140, 132, 255, .16), rgba(255, 95, 191, .08) 50%, rgba(23, 23, 30, .9)), var(--surface);
  border: 1px solid rgba(140, 132, 255, .3); box-shadow: 0 40px 120px rgba(0, 0, 0, .5); }
.beta-card h2 { font-size: clamp(34px, 4.4vw, 52px); letter-spacing: -.04em; line-height: 1.05; margin: 14px 0 12px; }
.beta-card > p { color: #c9c9d3; margin-bottom: 24px; }
.pill { display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--amber); background: rgba(255, 181, 71, .14); padding: 5px 12px; border-radius: 99px; }
.reqs { list-style: none; margin: 22px 0 18px; display: grid; gap: 8px; font-size: 15px; color: var(--muted); }
.reqs li { padding-left: 22px; position: relative; }
.reqs li::before { content: "✓"; position: absolute; left: 0; color: var(--accent); font-weight: 700; }
.reqs b { color: var(--fg); }

/* ---------- signup ---------- */
.signup .row { max-width: 560px; margin: 34px auto 0; }

/* ---------- faq ---------- */
.faq { text-align: left; max-width: 820px; }
.faq h2 { text-align: center; margin-bottom: 36px; }
details { border-bottom: 1px solid var(--line); }
summary { list-style: none; cursor: pointer; padding: 22px 36px 22px 0; font-size: 19px; font-weight: 600; position: relative; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; position: absolute; right: 4px; top: 18px; font-size: 26px; font-weight: 300; color: var(--muted); transition: transform .3s var(--ease); }
details[open] summary::after { transform: rotate(45deg); }
details p { padding: 0 0 22px; color: var(--muted); }

/* ---------- footer ---------- */
.foot { border-top: 1px solid var(--line); padding: 40px clamp(16px, 6vw, 96px) 56px; display: grid; gap: 14px; justify-items: center; text-align: center; color: var(--muted); font-size: 15px; }
.foot > div:first-child { display: flex; align-items: center; gap: 10px; }
.foot img { border-radius: 5px; }
.foot .links { display: flex; gap: 20px; flex-wrap: wrap; justify-content: center; }
.foot a { color: var(--muted); text-decoration: none; }
.foot a:hover { color: var(--fg); }

/* ---------- legal pages ---------- */
.legal { max-width: 760px; margin: 0 auto; padding: 120px clamp(16px, 6vw, 48px) 80px; }
.legal h1 { font-size: 44px; margin-bottom: 28px; }
.legal h2 { font-size: 21px; margin: 32px 0 10px; }
.legal p, .legal li { color: #c2c2cc; margin-bottom: 10px; }
.legal ul { padding-left: 20px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
  .reveal, .shot, .feature .copy > * { opacity: 1 !important; transform: none !important; filter: none !important; }
  .hero-shot { opacity: .85; }
}

/* ---------- welcome page ---------- */
.welcome h1 { margin-bottom: 22px; }
.welcome .btn { margin: 4px 0 10px; }
.keybox { display: flex; align-items: center; gap: 12px; margin: 0 0 22px; padding: 14px 14px 14px 22px; border-radius: 16px;
  background: linear-gradient(135deg, rgba(140, 132, 255, .16), rgba(255, 95, 191, .1)); border: 1px solid rgba(140, 132, 255, .35); }
.keybox code { flex: 1; font: 700 26px ui-monospace, Menlo, monospace; letter-spacing: .04em; }
.welcome li b, .welcome p b { color: var(--fg); }
