/* MyStoryCut site. Layout: dark editing-suite page (the app's own palette), one column of
   sections, the hero pairs the pitch with a transcript → timeline mock; light theme for daylight. */
:root {
  --bg: #121417; --panel: #1a1d21; --panel-2: #22262b; --line: #2e333a;
  --text: #e6e8eb; --muted: #9aa2ad; --brand: #8b6cc4; --brand-strong: #a98be0;
  --accent: #6c8cff; --play: #ffcf5c; --on-brand: #ffffff;
  --f-display: "Archivo", "Arial Narrow", "Segoe UI", sans-serif;
  --f-body: "IBM Plex Sans", "Segoe UI", system-ui, sans-serif;
  --f-mono: "IBM Plex Mono", Consolas, ui-monospace, monospace;
  color-scheme: dark;
}
@media (prefers-color-scheme: light) {
  :root {
    --bg: #f6f5f8; --panel: #ffffff; --panel-2: #eeebf3; --line: #dcd7e4;
    --text: #1c1a21; --muted: #5f5a69; --brand: #6b4f9a; --brand-strong: #563d80;
    --accent: #3d5fd9; --play: #b8860b; --on-brand: #ffffff;
    color-scheme: light;
  }
  .suite { --panel: #1a1d21; --panel-2: #22262b; --line: #2e333a; --text: #e6e8eb; --muted: #9aa2ad; --play: #ffcf5c; }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body { margin: 0; background: var(--bg); color: var(--text); font: 17px/1.6 var(--f-body); }
img { max-width: 100%; }
a { color: var(--brand-strong); text-underline-offset: 3px; }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 2px solid var(--play); outline-offset: 3px; }
h1, h2, h3 { font-family: var(--f-display); font-stretch: 85%; line-height: 1.1; text-wrap: balance; margin: 0; }
h2 { font-size: clamp(28px, 4vw, 40px); font-weight: 750; margin-bottom: 18px; }
h3 { font-size: 21px; font-weight: 700; }
p { margin: 0 0 14px; }
.wrap { max-width: 1120px; margin: 0 auto; padding-inline: 20px; }
.narrow { max-width: 760px; }
section { padding-block: 72px; border-top: 1px solid var(--line); }
.fine { font-size: 14px; color: var(--muted); }

/* header */
.bar { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.bar-in { display: flex; align-items: center; gap: 24px; padding-block: 12px; }
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--f-display); font-weight: 800; font-size: 20px;
  color: var(--text); text-decoration: none; }
.brand img { border-radius: 7px; }
nav { display: flex; gap: 22px; margin-left: auto; }
nav a { color: var(--muted); text-decoration: none; font-size: 15px; }
nav a:hover { color: var(--text); }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 13px 22px; border-radius: 8px;
  background: var(--brand); color: var(--on-brand); font: 600 16px var(--f-body); text-decoration: none; border: 1px solid var(--brand);
  cursor: pointer; transition: background .15s; }
.btn:hover { background: var(--brand-strong); border-color: var(--brand-strong); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--line); }
.btn-ghost:hover { background: var(--panel-2); border-color: var(--muted); }
.btn-small { padding: 8px 14px; font-size: 14px; }

/* hero */
.hero { border-top: 0; padding-block: 64px 72px; }
.hero-in { display: grid; grid-template-columns: 1fr 1.05fr; gap: 56px; align-items: center; }
.hero-text { min-width: 0; }
.kicker { font-family: var(--f-mono); font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--play); }
h1 { font-size: clamp(40px, 6vw, 68px); font-weight: 800; margin: 10px 0 20px; }
.lead { font-size: 19px; color: var(--muted); max-width: 54ch; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 12px; }

/* hero mock: transcript → timeline */
.suite { margin: 0; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; overflow: hidden;
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .55); color: var(--text); min-width: 0; }
.suite-head { display: flex; align-items: center; gap: 6px; padding: 10px 14px; background: var(--panel-2); border-bottom: 1px solid var(--line); }
.dot { width: 10px; height: 10px; border-radius: 50%; background: var(--line); }
.suite-title { margin-left: 10px; font-family: var(--f-mono); font-size: 12px; color: var(--muted); }
.suite-body { display: grid; grid-template-rows: auto auto; }
.script { padding: 18px 20px 8px; font-size: 15px; }
.script p { margin: 0 0 8px; }
.who { font-family: var(--f-mono); font-size: 11.5px; color: var(--muted); letter-spacing: .04em; margin-top: 10px !important; }
.sel { background: rgba(139, 108, 196, .22); border-left: 3px solid #a98be0; padding: 4px 10px; border-radius: 3px; }
.vo { border-left: 3px solid #ffcf5c; padding: 4px 10px; font-style: italic; color: #f3e3b5; }
.timeline { position: relative; margin: 8px 16px 16px; padding: 30px 10px 10px 40px; background: #0d0f12; border-radius: 6px; }
.tc-read { position: absolute; top: 6px; right: 10px; font-family: var(--f-mono); font-size: 13px; color: #ffcf5c; letter-spacing: .05em; }
.track { position: relative; display: flex; gap: 3px; height: 22px; margin-bottom: 5px; }
.lbl { position: absolute; left: -32px; top: 3px; font-family: var(--f-mono); font-size: 11px; color: #9aa2ad; }
.clip { display: block; height: 100%; border-radius: 3px; background: #6c8cff; }
.clip.a { background: #4fae7a; }
.c1 { width: 34%; } .c2 { width: 18%; margin-left: 12%; } .c3 { width: 26%; }
.vo-clip { width: 28%; margin-left: 35%; background: #ffcf5c; }
.playhead { position: absolute; top: 24px; bottom: 6px; left: 58%; width: 2px; background: #ffcf5c; animation: play 9s linear infinite; }
@keyframes play { from { left: 14%; } to { left: 96%; } }
@media (prefers-reduced-motion: reduce) { .playhead { animation: none; } html { scroll-behavior: auto; } }
.suite figcaption { padding: 0 18px 14px; font-size: 12.5px; color: var(--muted); }


/* demo */
.video { max-width: 100%; background: var(--panel); border: 1px solid var(--line); border-radius: 10px;
  display: grid; place-items: center; overflow: hidden; }
.video video { display: block; width: 100%; aspect-ratio: 16 / 9; background: #000; }
.video-wait { text-align: center; padding: 24px; max-width: 46ch; }

/* steps */
.steps { list-style: none; padding: 0; margin: 28px 0 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; }
.steps li { min-width: 0; padding-top: 18px; border-top: 2px solid var(--line); position: relative; }
.steps li::before { content: ""; position: absolute; top: -2px; left: 0; width: 40px; height: 2px; background: var(--play); }
.n { font-family: var(--f-mono); font-size: 13px; color: var(--play); }
.steps h3 { margin: 6px 0 8px; font-size: 19px; }
.steps p { color: var(--muted); font-size: 15px; }

/* features */
.feat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 10px; }
.feat-grid article { background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 22px; min-width: 0; }
.feat-grid h3 { margin-bottom: 8px; }
.feat-grid p { color: var(--muted); font-size: 15.5px; margin: 0; }

/* trust */
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
.two > div { min-width: 0; }
.two h2 { font-size: clamp(24px, 3vw, 32px); }
.two p { color: var(--muted); }

/* pricing */
.intro { color: var(--muted); max-width: 64ch; }
.tiers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin: 28px 0 24px; align-items: start; }
.tier { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 26px 24px; min-width: 0; }
.tier.featured { border-color: var(--brand); box-shadow: 0 0 0 1px var(--brand) inset; }
.tag { font-family: var(--f-mono); font-size: 11.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--brand-strong); }
.who { color: var(--muted); font-size: 15px; margin: 4px 0 16px; }
.price { font-family: var(--f-display); font-stretch: 85%; font-size: 44px; font-weight: 800; line-height: 1; margin: 0 0 6px;
  font-variant-numeric: tabular-nums; }
.price small { font-family: var(--f-body); font-size: 15px; font-weight: 500; color: var(--muted); }
.renew { font-size: 14.5px; color: var(--play); }
.tier ul { margin: 16px 0 0; padding-left: 20px; font-size: 15px; }
.tier li { margin-bottom: 6px; }
.extras { display: grid; gap: 4px; max-width: 80ch; font-size: 15.5px; color: var(--muted); }
.extras b { color: var(--text); }

/* trial */
.trial { background: var(--panel); }
.mail { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 22px; }
.copied { font-size: 14px; color: var(--muted); }

/* faq */
details { border-bottom: 1px solid var(--line); padding: 16px 0; }
summary { cursor: pointer; font-weight: 600; font-size: 18px; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; font-family: var(--f-mono); color: var(--play); }
details[open] summary::after { content: "–"; }
details p { color: var(--muted); margin: 10px 0 0; }

/* footer */
.foot { border-top: 1px solid var(--line); padding-block: 36px 48px; }
.foot-in { display: grid; gap: 8px; }
.foot p { margin: 0; color: var(--muted); font-size: 15px; }
.maker { display: flex; align-items: center; gap: 10px; }
.glyphes { height: 26px; width: auto; display: block; }
.glyphes.on-light { display: none; }
@media (prefers-color-scheme: light) { .glyphes.on-dark { display: none; } .glyphes.on-light { display: block; } }

/* legal page */
.legal { padding-block: 56px; border-top: 0; }
.legal h1 { font-size: clamp(32px, 5vw, 44px); }
.legal h2 { font-size: 22px; margin: 32px 0 8px; }
.legal .todo { background: rgba(255, 207, 92, .16); padding: 0 4px; border-radius: 3px; }

@media (max-width: 900px) {
  .hero-in, .two { grid-template-columns: 1fr; gap: 36px; }
  .steps { grid-template-columns: 1fr 1fr; }
  .feat-grid, .tiers { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 620px) {
  nav { display: none; }
  .bar-in { justify-content: space-between; }
  .steps, .feat-grid, .tiers { grid-template-columns: 1fr; }
  section { padding-block: 52px; }
}
