/* studiwize — landing page */

html { scroll-behavior: smooth; }
body { overflow-x: hidden; }

.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 24px; }
@media (max-width: 560px){ .wrap { padding: 0 20px; } }

/* ── top nav ─────────────────────────────────────────────── */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in oklab, var(--paper) 82%, transparent);
  -webkit-backdrop-filter: blur(14px) saturate(150%);
  backdrop-filter: blur(14px) saturate(150%);
  border-bottom: 1px solid transparent;
  transition: border-color .2s, background .2s;
}
.nav.scrolled { border-bottom-color: var(--line); }
.nav-in { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.nav .wm { font-size: 19px; }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a {
  font-size: 15px; font-weight: 500; color: var(--ink-2); text-decoration: none;
  transition: color .15s;
}
.nav-links a:hover { color: var(--ink); }
.nav-cta { padding: 10px 18px; font-size: 15px; }
.nav-links .nav-cta,
.nav-links .nav-cta:hover { color: var(--on-accent); }
.nav-cta-compact { display: none; }
@media (max-width: 720px){ .nav-links .navlink { display: none; } }
@media (max-width: 380px){
  .nav-cta { padding-inline: 15px; }
  .nav-cta-full { display: none; }
  .nav-cta-compact { display: inline; }
}

/* ── section rhythm ──────────────────────────────────────── */
section { position: relative; }
.sec-pad { padding: 96px 0; }
@media (max-width: 720px){ .sec-pad { padding: 64px 0; } }
.sec-head { max-width: 620px; }
.sec-head .eyebrow { display: block; margin-bottom: 18px; }
.sec-title {
  font-family: var(--font-display); font-weight: 700; letter-spacing: -0.03em;
  font-size: clamp(28px, 4.4vw, 42px); line-height: 1.06; margin: 0 0 18px;
}
.sec-sub { font-size: clamp(17px, 2vw, 19px); line-height: 1.6; color: var(--ink-2); margin: 0; }

/* ── hero ────────────────────────────────────────────────── */
.hero { padding-top: 64px; padding-bottom: 88px; overflow: hidden; }
.hero-grid {
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: 56px; align-items: center;
}
.hero-grid > * { min-width: 0; }
@media (max-width: 900px){
  .hero-grid { grid-template-columns: minmax(0, 1fr); gap: 48px; }
  .hero { padding-top: 40px; padding-bottom: 56px; }
}
.hero h1 {
  font-family: var(--font-display); font-weight: 700; letter-spacing: -0.035em;
  font-size: clamp(40px, 6.6vw, 68px); line-height: 0.98; margin: 22px 0 0;
}
.hero h1 .soft { color: var(--ink-2); }
.hero-sub {
  font-size: clamp(17px, 2.1vw, 20px); line-height: 1.55; color: var(--ink-2);
  margin: 22px 0 0; max-width: 30ch;
}
.hero-cta { display: flex; gap: 12px; margin-top: 32px; flex-wrap: wrap; }
@media (max-width: 520px){
  .hero-cta { flex-direction: column; }
  .hero-cta .btn { width: 100%; }
}
.hero-pre { margin: 12px 0 0; font-size: 13px; color: var(--ink-3); letter-spacing: 0.01em; }
.hero-meta {
  margin-top: 26px; display: flex; gap: 22px; flex-wrap: wrap;
  font-size: 14px; color: var(--ink-3);
}
.hero-meta span { display: inline-flex; align-items: center; gap: 7px; }
.dot { width: 5px; height: 5px; border-radius: 50%; background: var(--accent); flex: none; }

/* trust strip */
.trust { margin-top: 30px; }
.trust .stat-label { font-size: 13px; color: var(--ink-3); }
.trust-row { display: flex; gap: 30px; margin-top: 10px; flex-wrap: wrap; }
.trust-item { display: flex; flex-direction: column; }
.trust-num { font-family: var(--font-display); font-weight: 700; font-size: 26px; letter-spacing: -0.02em; }
.trust-cap { font-size: 13px; color: var(--ink-3); margin-top: 2px; }

/* ── phone + player ──────────────────────────────────────── */
.phone-stage { display: flex; justify-content: center; position: relative; }
.phone-stage::before {
  content: ""; position: absolute; inset: -8% -12% -6% -12%;
  background: radial-gradient(60% 55% at 60% 40%, color-mix(in oklab, var(--accent) 16%, transparent), transparent 70%);
  filter: blur(8px); z-index: 0;
}
.phone {
  position: relative; z-index: 1;
  width: 320px; max-width: 86vw;
  background: var(--night);
  border-radius: 44px;
  padding: 12px;
  box-shadow: var(--shadow-lg), inset 0 0 0 1.5px rgba(255,255,255,0.06);
}
.phone-screen {
  background: var(--night-2);
  border-radius: 33px;
  overflow: hidden;
  position: relative;
  aspect-ratio: 320 / 660;
  display: flex; flex-direction: column;
  color: var(--paper-on-night);
}
.phone-notch {
  position: absolute; top: 10px; left: 50%; transform: translateX(-50%);
  width: 104px; height: 28px; background: #000; border-radius: 20px; z-index: 5;
}

/* player chrome */
.pl { display: flex; flex-direction: column; height: 100%; padding: 46px 20px 22px; }
.pl-top { display: flex; align-items: center; justify-content: space-between; font-size: 12px; color: var(--ink-2-on-night); }
.pl-top .stat-label { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; }
.pl-cover {
  margin: 18px 0 0; aspect-ratio: 1; border-radius: 18px; position: relative; overflow: hidden;
  background:
    linear-gradient(150deg, var(--night-3), #24323d);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.05);
  display: flex; align-items: flex-end; padding: 16px;
}
.pl-cover .cover-mark {
  position: absolute; top: 16px; left: 16px; width: 34px; height: 34px; font-size: 34px;
}
.pl-cover .cover-eq {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: 5px;
}
.pl-cover .cover-eq i {
  width: 5px; height: 22px; border-radius: 999px; background: color-mix(in oklab, var(--accent) 85%, #fff);
  opacity: .85; transform-origin: center;
}
.playing .cover-eq i { animation: eq 1s ease-in-out infinite; }
.cover-eq i:nth-child(1){ animation-delay: -.0s; height: 16px; }
.cover-eq i:nth-child(2){ animation-delay: -.25s; height: 34px; }
.cover-eq i:nth-child(3){ animation-delay: -.5s; height: 22px; }
.cover-eq i:nth-child(4){ animation-delay: -.15s; height: 40px; }
.cover-eq i:nth-child(5){ animation-delay: -.4s; height: 18px; }
.cover-eq i:nth-child(6){ animation-delay: -.6s; height: 28px; }
@keyframes eq { 0%,100%{ transform: scaleY(.4); } 50%{ transform: scaleY(1); } }
.pl-cover .cover-cap {
  position: relative; z-index: 2; font-family:var(--font-mono); font-size: 11px;
  letter-spacing: .04em; color: var(--ink-2-on-night); background: rgba(0,0,0,.25);
  padding: 4px 9px; border-radius: 7px; -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
}

.pl-meta { margin-top: 18px; }
.pl-ch { font-family:var(--font-mono); font-size: 11px; letter-spacing:.1em; text-transform:uppercase; color: var(--accent); }
.pl-title { font-family:var(--font-display); font-weight: 600; font-size: 18px; letter-spacing:-.02em; margin-top: 5px; line-height: 1.2; }
.pl-book { font-size: 13px; color: var(--ink-2-on-night); margin-top: 3px; }

.pl-scrub { margin-top: 16px; }
.pl-bar { height: 5px; border-radius: 999px; background: rgba(255,255,255,.12); position: relative; cursor: pointer; }
.pl-fill { position: absolute; left: 0; top: 0; bottom: 0; width: 22%; border-radius: 999px; background: var(--accent); }
.pl-fill::after {
  content:""; position:absolute; right: -5px; top: 50%; transform: translateY(-50%);
  width: 12px; height: 12px; border-radius: 50%; background: #fff; box-shadow: 0 1px 4px rgba(0,0,0,.4);
}
.pl-time { display: flex; justify-content: space-between; font-size: 11px; color: var(--ink-2-on-night); margin-top: 8px; font-variant-numeric: tabular-nums; }

.pl-ctrls { margin-top: 14px; display: flex; align-items: center; justify-content: center; gap: 22px; }
.pl-btn { appearance:none; border:0; background:transparent; color: var(--paper-on-night); cursor: pointer; padding: 6px; display:flex; align-items:center; justify-content:center; border-radius: 10px; transition: background .15s, transform .12s; }
.pl-btn:hover { background: rgba(255,255,255,.08); }
.pl-btn:active { transform: scale(.92); }
.pl-btn.skip span { font-family:var(--font-mono); font-size: 9px; font-weight: 500; position:absolute; }
.pl-play {
  width: 60px; height: 60px; border-radius: 50%; background: var(--accent); color: var(--on-accent);
  box-shadow: 0 6px 20px color-mix(in oklab, var(--accent) 45%, transparent);
}
.pl-play:hover { background: var(--accent); }
.pl-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; padding-top: 16px; }
.pl-speed { font-family:var(--font-mono); font-size: 12px; color: var(--paper-on-night); background: rgba(255,255,255,.08); border:0; padding: 7px 11px; border-radius: 9px; cursor: pointer; }
.pl-speed:hover { background: rgba(255,255,255,.14); }
.pl-chaptoggle { font-size: 12px; color: var(--ink-2-on-night); background:transparent; border:0; cursor:pointer; display:flex; align-items:center; gap:6px; }

/* chapter sheet inside phone */
.pl-sheet {
  position: absolute; left: 0; right: 0; bottom: 0; top: 38%;
  background: var(--night); border-radius: 26px 26px 33px 33px;
  box-shadow: 0 -20px 40px rgba(0,0,0,.4);
  transform: translateY(102%); transition: transform .4s cubic-bezier(.4,1.2,.5,1);
  padding: 12px 16px 20px; z-index: 8; display: flex; flex-direction: column;
}
.pl-sheet.open { transform: translateY(0); }
.pl-sheet-grip { width: 40px; height: 4px; border-radius:999px; background: rgba(255,255,255,.2); margin: 2px auto 12px; }
.pl-sheet h4 { margin: 0 0 10px; font-family:var(--font-display); font-size: 15px; font-weight: 600; }
.ch-list { overflow-y: auto; display: flex; flex-direction: column; gap: 2px; margin: 0 -6px; padding: 0 6px; }
.ch-row { display:flex; align-items:center; gap: 11px; padding: 9px 8px; border-radius: 10px; cursor: pointer; transition: background .12s; }
.ch-row:hover { background: rgba(255,255,255,.05); }
.ch-row.active { background: rgba(255,255,255,.07); }
.ch-num { font-family:var(--font-mono); font-size: 11px; color: var(--ink-2-on-night); width: 20px; flex:none; }
.ch-row.active .ch-num { color: var(--accent); }
.ch-name { font-size: 13.5px; flex: 1; line-height: 1.25; }
.ch-len { font-family:var(--font-mono); font-size: 11px; color: var(--ink-2-on-night); flex:none; }

/* ── logos / problem ─────────────────────────────────────── */
.problem { background: var(--paper-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.prob-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
@media (max-width: 820px){ .prob-grid { grid-template-columns: 1fr; gap: 36px; } }
.prob-list { display: flex; flex-direction: column; gap: 18px; margin-top: 28px; }
.prob-item { display: flex; gap: 14px; align-items: flex-start; }
.prob-x { width: 26px; height: 26px; border-radius: 8px; background: rgba(21,33,44,.06); display:flex; align-items:center; justify-content:center; flex:none; color: var(--ink-3); margin-top: 1px; }
.prob-item p { margin: 0; font-size: 16.5px; line-height: 1.5; color: var(--ink-2); }
.prob-item b { color: var(--ink); font-weight: 600; }

/* time-of-day visual */
.commute-card {
  background: var(--night); border-radius: var(--radius-lg); padding: 28px; color: var(--paper-on-night);
  box-shadow: var(--shadow-md); position: relative; overflow: hidden;
}
.commute-card .stat-label { color: var(--accent); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; }
.commute-big { font-family:var(--font-display); font-weight:700; font-size: 52px; letter-spacing:-.03em; margin: 10px 0 2px; line-height:1; }
.commute-cap { color: var(--ink-2-on-night); font-size: 15px; }
.commute-track { margin-top: 24px; display:flex; flex-direction:column; gap: 10px; }
.ctr { display:flex; align-items:center; gap: 12px; }
.ctr-lbl { font-family:var(--font-mono); font-size: 11px; color: var(--ink-2-on-night); width: 64px; flex:none; }
.ctr-bar { flex:1; height: 10px; border-radius: 999px; background: rgba(255,255,255,.08); overflow: hidden; }
.ctr-bar i { display:block; height:100%; border-radius:999px; }

/* ── wedge / contrast ────────────────────────────────────── */
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 44px; }
@media (max-width: 720px){ .compare { grid-template-columns: 1fr; } }
.cmp {
  border-radius: var(--radius-lg); padding: 28px; border: 1px solid var(--line);
  background: var(--paper-2);
}
.cmp.them { background: var(--paper-2); }
.cmp.us { background: var(--ink); color: var(--paper); border-color: var(--ink); box-shadow: var(--shadow-md); }
.cmp-tag { font-family:var(--font-mono); font-size: 12px; letter-spacing:.08em; text-transform: uppercase; color: var(--ink-3); }
.cmp.us .cmp-tag { color: var(--accent); }
.cmp h3 { font-family:var(--font-display); font-weight:600; font-size: 21px; letter-spacing:-.02em; margin: 8px 0 16px; }
.cmp ul { list-style:none; margin:0; padding:0; display:flex; flex-direction:column; gap: 13px; }
.cmp li { display:flex; gap: 11px; align-items:flex-start; font-size: 15.5px; line-height:1.45; color: var(--ink-2); }
.cmp.us li { color: color-mix(in oklab, var(--paper) 86%, transparent); }
.cmp .mk { flex:none; margin-top:2px; }

/* ── how it works ────────────────────────────────────────── */
.how { background: var(--paper-2); border-top: 1px solid var(--line); }
.how-stage {
  margin-top: 48px; display: grid; grid-template-columns: 320px 1fr; gap: 48px; align-items: center;
}
@media (max-width: 880px){ .how-stage { grid-template-columns: 1fr; gap: 32px; } }
.steps { display:flex; flex-direction:column; gap: 8px; }
.step {
  display:flex; gap: 16px; padding: 18px; border-radius: var(--radius);
  cursor: pointer; transition: background .2s; position: relative;
}
.step.on { background: var(--paper-3); box-shadow: var(--shadow-sm); }
.step-n {
  width: 30px; height: 30px; border-radius: 9px; flex:none; display:flex; align-items:center; justify-content:center;
  font-family:var(--font-mono); font-size: 13px; font-weight:500;
  background: rgba(21,33,44,.06); color: var(--ink-3); transition: background .2s, color .2s;
}
.step.on .step-n { background: var(--accent); color: var(--on-accent); }
.step h4 { margin: 2px 0 5px; font-family:var(--font-display); font-weight:600; font-size: 17px; letter-spacing:-.01em; }
.step p { margin:0; font-size: 14.5px; line-height:1.45; color: var(--ink-2); }
.step-prog { position:absolute; left:0; bottom:0; height:2px; width:0; background: var(--accent); border-radius:999px; }

.how-view {
  background: var(--paper-3); border: 1px solid var(--line); border-radius: var(--radius-lg);
  min-height: 380px; box-shadow: var(--shadow-md); overflow: hidden; position: relative;
  display:flex; align-items:center; justify-content:center; padding: 32px;
}
.how-panel { position:absolute; inset: 32px; display:flex; align-items:center; justify-content:center; opacity:0; transform: translateY(10px); transition: opacity .4s, transform .4s; pointer-events:none; }
.how-panel.show { opacity:1; transform: none; pointer-events:auto; }

/* upload demo */
.drop {
  width: 100%; max-width: 360px; border: 2px dashed var(--line-2); border-radius: var(--radius-lg);
  padding: 40px 26px; text-align:center; transition: border-color .2s, background .2s;
  display:flex; flex-direction:column; align-items:center; gap: 14px;
}
.drop.hot { border-color: var(--accent); background: color-mix(in oklab, var(--accent) 6%, transparent); }
.drop-ico { width: 56px; height: 56px; border-radius: 16px; background: rgba(21,33,44,.05); display:flex; align-items:center; justify-content:center; color: var(--ink-2); }
.drop h5 { margin: 0; font-family:var(--font-display); font-weight:600; font-size: 17px; }
.drop p { margin: 0; font-size: 13.5px; color: var(--ink-3); }
.drop .pill { font-family:var(--font-mono); font-size: 11px; color: var(--ink-2); background: rgba(21,33,44,.05); padding: 5px 10px; border-radius: 999px; }
.file-chip { display:flex; align-items:center; gap: 12px; width: 100%; max-width: 340px; background: var(--paper-2); border:1px solid var(--line); border-radius: 14px; padding: 14px 16px; }
.file-chip .fi { width: 38px; height: 46px; border-radius: 6px; background: var(--ink); color: var(--paper); display:flex; align-items:flex-end; justify-content:center; font-family:var(--font-mono); font-size:9px; padding-bottom:5px; flex:none; }
.file-chip .fmeta { flex:1; text-align:left; }
.file-chip .fmeta b { font-size: 14.5px; font-weight:600; display:block; }
.file-chip .fmeta span { font-size: 12px; color: var(--ink-3); font-family:var(--font-mono); }
.proc-bar { width: 100%; max-width: 340px; height: 6px; border-radius:999px; background: rgba(21,33,44,.08); overflow:hidden; margin-top: 14px; }
.proc-bar i { display:block; height:100%; width: 0; background: var(--accent); border-radius:999px; transition: width .3s linear; }

/* artifacts result */
.artifacts { display:flex; gap: 16px; width:100%; max-width: 420px; }
.art {
  flex:1; border-radius: var(--radius); padding: 18px; border:1px solid var(--line);
  display:flex; flex-direction:column; gap: 10px;
}
.art.audio { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.art.guide { background: var(--paper-2); }
.art .art-ico { width: 40px; height: 40px; border-radius: 11px; display:flex; align-items:center; justify-content:center; }
.art.audio .art-ico { background: var(--accent); color: var(--on-accent); }
.art.guide .art-ico { background: rgba(21,33,44,.06); color: var(--ink); }
.art b { font-family:var(--font-display); font-weight:600; font-size: 15px; }
.art small { font-size: 12px; opacity:.7; font-family:var(--font-mono); }
.art .lines { display:flex; flex-direction:column; gap: 6px; margin-top: 4px; }
.art .lines i { height: 6px; border-radius:999px; background: currentColor; opacity:.16; }
.art.guide .lines i { opacity:.1; }

/* ── waitlist ────────────────────────────────────────────── */
.waitlist { background: var(--ink); color: var(--paper); overflow:hidden; position:relative; }
.waitlist::before {
  content:""; position:absolute; top:-30%; right:-10%; width: 480px; height: 480px;
  background: radial-gradient(circle, color-mix(in oklab, var(--accent) 30%, transparent), transparent 65%);
  filter: blur(20px);
}
.wait-in { position:relative; z-index:1; max-width: 640px; }
.waitlist .eyebrow { color: var(--accent); }
.waitlist .sec-title { color: var(--paper); }
.waitlist .sec-sub { color: color-mix(in oklab, var(--paper) 80%, transparent); }
.wait-form { display:flex; gap: 10px; margin-top: 30px; max-width: 460px; }
@media (max-width: 520px){ .wait-form { flex-direction: column; } }
.wait-input {
  flex:1; appearance:none; border: 1.5px solid rgba(255,255,255,.18); background: rgba(255,255,255,.06);
  color: var(--paper); border-radius: 12px; padding: 15px 18px; font-size: 16px; font-family:var(--font-ui);
  outline: none; transition: border-color .15s, background .15s;
}
.wait-input::placeholder { color: rgba(234,240,242,.45); }
.wait-input:focus { border-color: var(--accent); background: rgba(255,255,255,.1); }
.wait-input.err { border-color: #E8765A; }
.wait-note { margin-top: 14px; font-size: 13.5px; color: color-mix(in oklab, var(--paper) 62%, transparent); display:flex; align-items:center; gap: 8px; min-height: 20px; }
.wait-note.error { color: #F0A08C; }
.wait-success {
  margin-top: 30px; background: rgba(255,255,255,.06); border:1px solid rgba(255,255,255,.14);
  border-radius: var(--radius); padding: 22px 24px; display:none; align-items:center; gap: 16px; max-width: 460px;
}
.wait-success.show { display:flex; animation: pop .4s cubic-bezier(.3,1.3,.5,1); }
@keyframes pop { from { opacity:0; transform: scale(.96) translateY(8px); } }
.ws-check { width: 44px; height: 44px; border-radius: 50%; background: var(--accent); color: var(--on-accent); display:flex; align-items:center; justify-content:center; flex:none; }
.wait-success b { font-family:var(--font-display); font-weight:600; font-size: 16px; display:block; }
.wait-success span { font-size: 13.5px; color: color-mix(in oklab, var(--paper) 70%, transparent); }

/* ── footer ──────────────────────────────────────────────── */
.foot { padding: 56px 0 40px; }
.foot-in { display:flex; justify-content:space-between; align-items:flex-start; gap: 32px; flex-wrap: wrap; }
.foot .wm { font-size: 18px; }
.foot-tag { font-size: 13.5px; color: var(--ink-3); margin-top: 12px; max-width: 30ch; line-height:1.5; }
.foot-meta { font-family:var(--font-mono); font-size: 12px; color: var(--ink-3); display:flex; gap: 18px; flex-wrap:wrap; }
.foot-meta a { color: var(--ink-2); text-decoration: none; }
.foot-meta a:hover { color: var(--ink); }

/* reveal on scroll */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s cubic-bezier(.2,.6,.3,1), transform .7s cubic-bezier(.2,.6,.3,1); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce){ .reveal { opacity:1; transform:none; } }
