/* Nightcut home page. The other pages use account.css. */
:root {
  color-scheme: dark;
  --bg: #0b0c0f; --panel: #14161b; --panel2: #1b1e25; --line: #262a33; --line2: #3a404d;
  --text: #f0f1f4; --muted: #a7adba; --dim: #838a98;
  --accent: #4f7dff; --accent2: #86a7ff; --cut: #ff6b61; --ok: #4ad991;
  --video: #3f71aa; --audio: #2f8075; --title: #94568a;
  --display: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
  --body: "Instrument Sans", "Segoe UI", system-ui, sans-serif;
  --mono: "JetBrains Mono", Consolas, monospace;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 120px; }
body { margin: 0; background: var(--bg); color: var(--text); font: 17px/1.6 var(--body); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; padding: 0; }
h1, h2 { font-family: var(--display); font-weight: 750; letter-spacing: -.025em; line-height: 1.04; text-wrap: balance; }
h3 { font-size: 20px; font-weight: 650; line-height: 1.3; }
p { text-wrap: pretty; }
.wrap { width: min(1200px, 100% - 48px); margin: 0 auto; }
:focus-visible { outline: 2px solid var(--accent2); outline-offset: 3px; border-radius: 6px; }
[hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 50px; padding: 0 24px; border-radius: 9px; font: 600 16px/1.2 var(--body); border: 1px solid transparent; cursor: pointer; color: var(--text); transition: background .15s, border-color .15s; }
.btn.primary { background: var(--accent); color: #fff; }
.btn.primary:hover { background: #6a91ff; }
.btn.ghost { border-color: var(--line2); background: transparent; }
.btn.ghost:hover { border-color: #5b6373; background: rgba(255,255,255,.04); }
.btn.small { min-height: 40px; padding: 0 16px; font-size: 15px; }

/* header + the page's own timeline */
.top { position: sticky; top: 0; z-index: 30; background: rgba(11,12,15,.94); border-bottom: 1px solid var(--line); }
.bar { display: flex; align-items: center; gap: 28px; height: 66px; }
.logo { display: flex; align-items: center; gap: 10px; font: 750 19px/1 var(--display); }
.logo i { width: 30px; height: 30px; border-radius: 7.5px; background: var(--accent); color: #fff; display: grid; place-items: center; font: 900 17.5px/1 "Segoe UI", system-ui, sans-serif; }
.bar nav { display: flex; gap: 24px; margin-left: 8px; }
.bar nav a { color: var(--muted); font-size: 15.5px; }
.bar nav a:hover { color: var(--text); }
.bar .right { margin-left: auto; display: flex; gap: 10px; }
.ruler { position: relative; display: flex; gap: 3px; height: 30px; padding: 4px 0; }
.ruler a { min-width: 0; flex: 1; border-radius: 4px; padding: 0 9px; font: 600 12px/22px var(--body); color: rgba(255,255,255,.86); background: var(--video); overflow: hidden; white-space: nowrap; text-overflow: ellipsis; opacity: .62; transition: opacity .2s; }
.ruler a:hover, .ruler a.on { opacity: 1; }
.ruler a.a { background: var(--audio); } .ruler a.t { background: var(--title); }
.ruler .head { position: absolute; top: 0; bottom: 0; left: 0; width: 2px; background: #fff; pointer-events: none; }
.ruler .head::before { content: ''; position: absolute; top: 0; left: -5px; width: 12px; height: 9px; background: #fff; clip-path: polygon(0 0, 100% 0, 50% 100%); }

/* hero */
.hero { padding: 76px 0 0; }
.hero h1 { font-size: clamp(46px, 7.4vw, 104px); max-width: 11ch; }
.hero h1 s { text-decoration: none; position: relative; color: #ffb0aa; white-space: nowrap; }
.hero h1 s::after { content: ''; position: absolute; left: -.04em; right: -.04em; top: 56%; height: .075em; background: var(--cut); transform-origin: 0 50%; animation: strike .5s .5s cubic-bezier(.6,0,.2,1) both; }
@keyframes strike { from { transform: scaleX(0); } }
.hero-row { display: grid; grid-template-columns: 1.35fr 1fr; gap: 56px; align-items: end; }
.hero .lead { font-size: 20px; line-height: 1.55; color: var(--muted); }
.cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 26px; }
.fine { color: var(--dim); font-size: 15px; margin-top: 16px; }
.screen { margin: 56px 0 0; border-radius: 12px; overflow: hidden; border: 1px solid var(--line2); background: #101115; box-shadow: 0 40px 90px -40px #000; }
.screen img { width: 100%; height: auto; }
.screen + figcaption, .cap { color: var(--dim); font-size: 14.5px; margin-top: 12px; }

section.block { padding: 128px 0 0; }
.block > h2, .head h2 { font-size: clamp(34px, 4.6vw, 60px); max-width: 17ch; }
.sub { color: var(--muted); font-size: 19px; max-width: 60ch; margin-top: 18px; }

/* try it */
.try { margin-top: 44px; border: 1px solid var(--line2); border-radius: 12px; background: var(--panel); overflow: hidden; }
.try-top { display: grid; grid-template-columns: 1.15fr 1fr; min-height: 350px; }
.view { position: relative; background: #000; overflow: hidden; min-height: 240px; }
.view div { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: 0; }
.view div.on { opacity: 1; }
.view p { position: absolute; left: 0; right: 0; bottom: 12%; text-align: center; font: 800 clamp(20px, 2.9vw, 36px)/1.1 var(--display); color: #ffe23a; text-transform: uppercase; -webkit-text-stroke: 6px #000; paint-order: stroke fill; }
.words { padding: 26px 28px; max-height: 540px; overflow: auto; }
.words h3 { font-size: 16px; color: var(--muted); font-weight: 500; margin-bottom: 14px; }
.words .line { margin-bottom: 8px; line-height: 2; }
.tok { font: 500 17px/1.3 var(--body); color: var(--text); background: none; border: 0; border-radius: 4px; padding: 3px 4px; margin: 0; cursor: pointer; }
.tok:hover { background: rgba(134,167,255,.2); }
.tok.pause { font: 500 12.5px/1.3 var(--mono); color: var(--dim); border: 1px dashed var(--line2); padding: 2px 7px; margin: 0 3px; }
.tok.off { color: #ff9c95; text-decoration: line-through; background: rgba(255,107,97,.12); }
.tok.now { background: var(--accent); color: #fff; }
.try-bar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; padding: 13px 18px; border-block: 1px solid var(--line); background: var(--panel2); }
.try-bar .time { margin-left: auto; font: 500 16px/1 var(--mono); font-variant-numeric: tabular-nums; color: var(--muted); }
.try-bar .time b { color: var(--ok); font-weight: 500; }
.try-bar .btn.play { width: 48px; padding: 0; }
.tracks { position: relative; padding: 12px 18px 16px; }
.tracks .lane { position: relative; height: 52px; margin-bottom: 5px; }
.tracks .lane.txt { height: 24px; } .tracks .lane.aud { height: 46px; margin: 0; }
.tk { position: absolute; top: 0; bottom: 0; border-radius: 4px; overflow: hidden; transition: left .35s, width .35s, opacity .25s; }
.txt .tk { background: var(--title); font: 600 11px/24px var(--body); padding: 0 6px; white-space: nowrap; }
.vid .tk { background-color: var(--video); background-size: auto 100%; border: 1px solid rgba(255,255,255,.25); }
.aud .tk { background: var(--audio); }
.aud .tk svg { width: 100%; height: 100%; }
.tracks .ph { position: absolute; top: 4px; bottom: 8px; width: 2px; background: #fff; left: 18px; pointer-events: none; }

/* features */
.feat { display: grid; grid-template-columns: 5fr 7fr; gap: 64px; align-items: center; margin-top: 88px; }
.feat.flip { grid-template-columns: 7fr 5fr; } .feat.flip > :first-child { order: 2; }
.feat h3 { font: 700 clamp(26px, 2.8vw, 36px)/1.12 var(--display); letter-spacing: -.015em; }
.feat p { color: var(--muted); margin-top: 14px; max-width: 46ch; }
.feat .screen { margin: 0; }
.chat { display: grid; gap: 10px; padding: 34px; border: 1px solid var(--line2); border-radius: 12px; background: var(--panel); }
.chat div { padding: 12px 16px; border-radius: 12px; max-width: 82%; font-size: 16px; }
.chat .you { background: var(--accent); color: #fff; justify-self: end; border-bottom-right-radius: 3px; }
.chat .ai { background: var(--panel2); border: 1px solid var(--line2); border-bottom-left-radius: 3px; }
.more { margin-top: 100px; columns: 3; column-gap: 48px; }
.more div { break-inside: avoid; padding: 0 0 26px; }
.more dt { font-weight: 650; } .more dd { color: var(--muted); font-size: 16px; }

/* steps + pc check */
.steps { list-style: none; counter-reset: s; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin-top: 52px; border-top: 2px solid var(--line2); }
.steps li { counter-increment: s; padding: 26px 32px 0 0; position: relative; }
.steps li::before { content: counter(s); position: absolute; top: -17px; width: 32px; height: 32px; border-radius: 50%; background: var(--accent); color: #fff; font: 700 16px/32px var(--display); text-align: center; }
.steps p { color: var(--muted); margin-top: 8px; }
.check { margin-top: 72px; display: grid; grid-template-columns: 1fr 1fr; gap: 56px; padding: 44px; border: 1px solid var(--line2); border-radius: 12px; background: var(--panel); }
.check h3 { font: 700 30px/1.15 var(--display); }
.check p { color: var(--muted); margin: 12px 0 22px; }
.check ul { list-style: none; display: grid; gap: 0; align-content: start; }
.check li { display: grid; grid-template-columns: 26px 1fr; gap: 10px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 16px; }
.check li:last-child { border: 0; }
.check li b { display: block; font-weight: 600; } .check li span { color: var(--muted); font-size: 15px; }
.check li i { width: 22px; height: 22px; margin-top: 2px; border-radius: 50%; display: grid; place-items: center; font: 700 13px/1 var(--body); background: var(--line); color: var(--muted); }
.check li.ok i { background: var(--ok); color: #05210f; } .check li.no i { background: var(--cut); color: #2b0503; } .check li.ask i { background: #ffd166; color: #2d2100; }

/* pricing */
.buy { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; margin-top: 52px; align-items: start; }
.plan { border: 1px solid var(--accent); border-radius: 14px; padding: 36px; background: var(--panel); }
.bill { border: 1px solid var(--line2); border-radius: 10px; padding: 4px; margin: 0 0 26px; display: grid; grid-template-columns: 1fr 1fr; gap: 4px; min-width: 0; }
.bill label { cursor: pointer; } .bill input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.bill span { display: block; text-align: center; padding: 10px 8px; border-radius: 7px; font-weight: 600; font-size: 15.5px; color: var(--muted); }
.bill input:checked + span { background: var(--panel2); color: #fff; box-shadow: inset 0 -2px 0 var(--accent); }
.bill input:focus-visible + span { outline: 2px solid var(--accent2); }
.bill em { font-style: normal; color: var(--ok); margin-left: 5px; white-space: nowrap; }
.price { display: flex; align-items: baseline; gap: 9px; }
.price b { font: 750 clamp(50px, 6vw, 68px)/1 var(--display); letter-spacing: -.03em; }
.price span { color: var(--muted); }
.plan .note { color: var(--muted); font-size: 16px; margin: 12px 0 26px; }
.plan .btn { width: 100%; }
.status { margin-top: 14px; color: var(--dim); font-size: 15px; }
.code-applied { margin: -10px 0 20px; padding: 10px 14px; border-radius: 8px; background: rgba(74,217,145,.1); border: 1px solid rgba(74,217,145,.4); color: #c5f3da; font-size: 15.5px; }
.code-bar { text-align: center; padding: 9px 16px; font-size: 15px; font-weight: 600; background: var(--title); }
.list { list-style: none; }
.list li { padding: 12px 0; border-bottom: 1px solid var(--line); }
.list li:last-child { border: 0; }
.buy h3 + .list { margin-top: 8px; } .list + h3 { margin-top: 36px; }
.list.warn li { color: var(--muted); } .list.warn b { color: var(--text); font-weight: 600; }

.faq { margin-top: 44px; border-top: 1px solid var(--line2); max-width: 860px; }
.faq details { border-bottom: 1px solid var(--line2); }
.faq summary { list-style: none; cursor: pointer; padding: 20px 0; font-weight: 600; font-size: 18px; display: flex; justify-content: space-between; gap: 20px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; color: var(--accent2); font: 400 26px/1 var(--display); }
.faq details[open] summary::after { content: '–'; }
.faq p { color: var(--muted); padding: 0 0 22px; max-width: 66ch; }
.faq p a, .sub a, .check a { color: var(--accent2); text-decoration: underline; text-underline-offset: 3px; }

.final { margin-top: 140px; padding: 120px 0; background: linear-gradient(rgba(11,12,15,.5), rgba(11,12,15,.5)), url(img/ridge.webp) center 40% / cover; }
.final h2 { font-size: clamp(40px, 6vw, 80px); max-width: 12ch; }
footer { padding: 36px 0 48px; color: var(--dim); font-size: 15px; }
footer .wrap { display: flex; justify-content: space-between; gap: 22px; flex-wrap: wrap; align-items: center; }
footer nav { display: flex; gap: 8px 22px; flex-wrap: wrap; }
footer a:hover { color: var(--text); }

@media (max-width: 1000px) {
  .bar nav { display: none; }
  .hero-row, .feat, .feat.flip, .buy, .check, .try-top { grid-template-columns: 1fr; }
  .hero-row { gap: 28px; } .feat, .buy, .check { gap: 30px; } .feat.flip > :first-child { order: 0; }
  .more { columns: 2; }
  .view { aspect-ratio: 16/9; min-height: 0; }
  .words { max-height: 300px; }
}
@media (max-width: 700px) {
  body { font-size: 16.5px; }
  .wrap { width: calc(100% - 36px); }
  .ruler { display: none; } html { scroll-padding-top: 84px; }
  .bar .right .ghost { display: none; }
  .hero { padding-top: 48px; }
  section.block { padding-top: 92px; }
  .more { columns: 1; } .steps { grid-template-columns: 1fr; border: 0; gap: 26px; }
  .steps li { padding: 0 0 0 48px; } .steps li::before { top: 0; left: 0; }
  .check, .plan { padding: 24px; }
  .words { padding: 18px; } .try-bar .time { margin-left: 0; width: 100%; }
  .chat { padding: 18px; } .chat div { max-width: 92%; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .hero h1 s::after { animation: none; } .tk { transition: none; } }
