/* EpisodeKit design system — flat.
   Solid colours, 1px borders, no gradients, no glow, no decorative shadows.
   One type family (Inter), one accent (blue), neutral greys. Light by default, automatic dark mode.
   Legacy token names (--gold, --ink, --bg, --muted …) are kept as aliases at the bottom of :root
   so older inline page styles keep working. */

/* ---------- tokens ---------- */
:root{
  color-scheme:light dark;

  /* surfaces */
  --bg:#ffffff;
  --surface:#ffffff;
  --surface-2:#f6f7f9;
  --surface-3:#eceef2;
  --border:#e3e6eb;
  --border-strong:#cdd2da;

  /* text */
  --text:#111827;
  --body:#4b5563;
  --faint:#6b7280;

  /* brand */
  --accent:#2457d6;
  --accent-hover:#1d48b5;
  --accent-ink:#1f4fc4;           /* accent used as text */
  --accent-soft:#eef3ff;
  --accent-border:#c7d5f7;
  --on-accent:#ffffff;
  --link:#1f4fc4;
  --ring:#2457d6;

  /* status */
  --success:#13795b;  --success-soft:#e8f5ef;
  --warning:#9a5b00;  --warning-soft:#fdf3e2;
  --danger:#b42318;   --danger-soft:#fdecea;

  /* shape — depth comes from borders, not shadows */
  --radius-sm:6px; --radius:8px; --radius-lg:10px; --radius-xl:12px;
  --shadow-xs:none; --shadow-sm:none; --shadow-md:none; --shadow-lg:none;

  /* type */
  --font-body:"Inter",ui-sans-serif,system-ui,-apple-system,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif;
  --font-display:var(--font-body);
  --font-mono:ui-monospace,SFMono-Regular,"SF Mono",Menlo,Consolas,monospace;

  /* ---- legacy aliases (do not use in new code) ---- */
  --ink:var(--bg); --ink-2:var(--surface-2);
  --bg2:var(--surface-2);
  --muted:var(--body);
  --card:var(--surface);
  --line:var(--border); --line-soft:var(--border);
  --gold:var(--accent-ink); --gold-2:var(--accent-hover);
  --gold-grad:var(--accent);
  --accent2:var(--link); --cyan:var(--link); --violet:var(--accent);
  --green:var(--success);
  --done:var(--success); --doing:var(--warning); --next:var(--link); --blocked:var(--danger);
  --shadow-card:none;
  --overlay:var(--bg);
}

@media (prefers-color-scheme:dark){
  :root{
    --bg:#0f1115;
    --surface:#15181e;
    --surface-2:#1a1e25;
    --surface-3:#232832;
    --border:#272c35;
    --border-strong:#363c48;

    --text:#ecedf0;
    --body:#a8afbc;
    --faint:#8b93a1;

    --accent:#3d6bea;
    --accent-hover:#5580f2;
    --accent-ink:#86a6ff;
    --accent-soft:#18213a;
    --accent-border:#2c3d6b;
    --on-accent:#ffffff;
    --link:#86a6ff;
    --ring:#86a6ff;

    --success:#4cc79a;  --success-soft:#14271f;
    --warning:#e3a64a;  --warning-soft:#2a2112;
    --danger:#f28b82;   --danger-soft:#2c1715;
  }
}

/* ---------- base ---------- */
*,*::before,*::after{box-sizing:border-box}
*{margin:0}
ul,ol{padding-left:0}
html{scroll-behavior:smooth;-webkit-text-size-adjust:100%}
@media (prefers-reduced-motion:reduce){html{scroll-behavior:auto}*,*::before,*::after{transition-duration:.01ms!important;animation-duration:.01ms!important;animation-iteration-count:1!important}}
body{
  background:var(--bg);color:var(--text);
  font:16px/1.6 var(--font-body);
  -webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility;
  min-height:100vh;
}
img,video,svg{max-width:100%}
a{color:var(--link);text-decoration:none}
a:hover{text-decoration:underline;text-underline-offset:3px}
:focus-visible{outline:2px solid var(--ring);outline-offset:2px}
.skip{position:absolute;left:-9999px;top:8px;background:var(--surface);color:var(--text);padding:8px 14px;border:1px solid var(--border-strong);border-radius:var(--radius);z-index:100}
.skip:focus{left:12px}

.wrap{max-width:1080px;margin:0 auto;padding:0 28px}

/* ---------- type ---------- */
.display{font-weight:700;letter-spacing:-.03em;line-height:1.08;color:var(--text)}
.display em{font-style:normal;color:var(--accent-ink)}
.eyebrow{font-size:13px;font-weight:600;color:var(--accent-ink)}
.lede{color:var(--body);font-size:clamp(17px,1.8vw,19px);line-height:1.6}

/* ---------- brand mark ---------- */
.wordmark,.logo{display:inline-flex;align-items:center;font-weight:700;font-size:17px;letter-spacing:-.02em;color:var(--text)}
.wordmark::before,.logo::before{content:"";width:22px;height:22px;border-radius:5px;flex:none;margin-right:9px;
  background:
    linear-gradient(var(--on-accent),var(--on-accent)) 5px 8px/2px 6px no-repeat,
    linear-gradient(var(--on-accent),var(--on-accent)) 10px 5px/2px 12px no-repeat,
    linear-gradient(var(--on-accent),var(--on-accent)) 15px 9px/2px 4px no-repeat,
    var(--accent)}
.wordmark span,.logo span{color:inherit}
.logo a{color:inherit}
.logo a:hover,.wordmark:hover{text-decoration:none}

/* ---------- header ---------- */
.site-head,header{position:sticky;top:0;z-index:50;background:var(--bg);border-bottom:1px solid var(--border)}
.site-head .wrap{display:flex;align-items:center;gap:28px;height:60px}
.site-head nav{display:flex;gap:2px;margin-left:8px}
.site-head nav a{color:var(--body);font-size:14.5px;font-weight:500;padding:7px 11px;border-radius:var(--radius-sm)}
.site-head nav a:hover{color:var(--text);background:var(--surface-2);text-decoration:none}
.head-cta{margin-left:auto;display:flex;gap:8px;align-items:center}

/* ---------- buttons ---------- */
.btn,button.primary,.primary{display:inline-flex;align-items:center;justify-content:center;gap:8px;
  font:600 15px/1 var(--font-body);
  padding:12px 20px;min-height:44px;border-radius:var(--radius);border:1px solid var(--accent);cursor:pointer;
  background:var(--accent);color:var(--on-accent);text-decoration:none;white-space:nowrap;
  transition:background-color .12s,border-color .12s}
.btn:hover,button.primary:hover,.primary:hover{background:var(--accent-hover);border-color:var(--accent-hover);color:var(--on-accent);text-decoration:none}
button.primary:disabled,.btn[disabled]{opacity:.55;cursor:not-allowed}
.btn.ghost,button.ghost,.ghost{background:var(--surface);color:var(--text);border:1px solid var(--border-strong);
  font:600 14.5px/1 var(--font-body);padding:12px 18px;min-height:44px;border-radius:var(--radius);cursor:pointer;
  display:inline-flex;align-items:center;justify-content:center;gap:8px;transition:background-color .12s}
.btn.ghost:hover,button.ghost:hover,.ghost:hover{background:var(--surface-2);color:var(--text);text-decoration:none}
.btn.sm{padding:8px 14px;font-size:14px;min-height:36px}
.btn.lg{padding:14px 24px;font-size:15.5px;min-height:48px}
button.ghost.small{padding:6px 12px;font-size:13px;min-height:32px;border-radius:var(--radius-sm)}

/* ---------- cards / labels ---------- */
.card{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius-lg)}
.chip{display:inline-block;font-size:13px;font-weight:500;color:var(--body);
  background:var(--surface-2);border:1px solid var(--border);border-radius:var(--radius-sm);padding:4px 10px}
.chip b{color:var(--text);font-weight:600}

/* ---------- hero ---------- */
.hero{padding:80px 0 0;text-align:center}
.hero .chip{margin-bottom:24px}
.hero .display{font-size:clamp(38px,6vw,64px);max-width:820px;margin:0 auto}
.hero .lede{max-width:620px;margin:22px auto 32px}
.hero-actions{display:flex;gap:10px;justify-content:center;flex-wrap:wrap}
.hero-fine{margin-top:18px;color:var(--faint);font-size:14px}

/* product preview (pure HTML/CSS) */
.mock{margin:56px auto 0;max-width:980px;text-align:left;border:1px solid var(--border-strong);border-radius:var(--radius-xl) var(--radius-xl) 0 0;
  border-bottom:0;background:var(--surface);overflow:hidden}
.mock-bar{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 18px;border-bottom:1px solid var(--border);font-size:13.5px;color:var(--faint)}
.mock-bar b{color:var(--text);font-weight:600}
.mock-body{display:grid;grid-template-columns:230px 1fr;min-height:330px}
.mock-side{border-right:1px solid var(--border);background:var(--surface-2);padding:14px 10px}
.mock-item{display:flex;align-items:center;gap:10px;padding:8px 10px;border-radius:var(--radius-sm);font-size:14px;color:var(--body);font-weight:500}
.mock-item.on{background:var(--surface);color:var(--text);border:1px solid var(--border);padding:7px 9px}
.mock-item small{margin-left:auto;font-size:12px;color:var(--faint);font-weight:500;font-feature-settings:"tnum"}
.mock-main{padding:24px 28px 28px}
.mock-main h3{font-size:12.5px;font-weight:600;color:var(--faint);text-transform:uppercase;letter-spacing:.05em;margin:0 0 12px}
.mock-main ol{padding-left:20px;margin:0 0 22px;color:var(--text);font-size:15px}
.mock-main li{margin:6px 0}
.mock-quote{border-left:2px solid var(--accent);padding:2px 0 2px 14px;font-size:15px;color:var(--text);line-height:1.6}
.mock-quote cite{display:block;font-style:normal;font-size:12.5px;color:var(--faint);margin-top:6px}
.mock-quote + p{margin-top:6px;color:var(--body);font-size:14.5px}

/* ---------- facts strip ---------- */
.trust{border-block:1px solid var(--border);background:var(--surface-2)}
.trust-grid{display:grid;grid-template-columns:repeat(4,1fr)}
.trust-item{padding:22px 24px 22px 0}
.trust-item + .trust-item{padding-left:24px;border-left:1px solid var(--border)}
.trust-item b{display:block;font-size:14.5px;font-weight:600;margin-bottom:2px}
.trust-item span{color:var(--faint);font-size:13.5px;line-height:1.5;display:block}

/* ---------- sections ---------- */
.sect{padding:88px 0}
.sect + .sect{border-top:1px solid var(--border)}
.sect.alt{background:var(--surface-2)}
.sect-head{max-width:640px;margin:0 0 40px}
.sect-head h2{font-weight:700;font-size:clamp(26px,3.2vw,34px);letter-spacing:-.025em;line-height:1.15;margin:6px 0 10px}
.sect-head p{color:var(--body);font-size:17px}

/* how it works */
.how-grid{display:grid;grid-template-columns:repeat(4,1fr);border-top:1px solid var(--border)}
.how-step{padding:22px 22px 0 0;background:none;border:0;border-radius:0}
.how-step + .how-step{padding-left:22px;border-left:1px solid var(--border)}
.how-step .num{display:block;font-size:13px;font-weight:600;color:var(--accent-ink);font-feature-settings:"tnum";margin-bottom:10px}
.how-step h3{font-size:16px;font-weight:600;margin-bottom:6px}
.how-step p{color:var(--body);font-size:14.5px;line-height:1.55}

/* demo video */
.frame{margin-top:48px;border:1px solid var(--border-strong);border-radius:var(--radius-xl);overflow:hidden;background:#0f1115}
.shot{display:block;width:100%}
.shotcap{color:var(--faint);font-size:14px;margin-top:12px}

/* outputs */
.artifacts{display:grid;grid-template-columns:repeat(3,1fr);gap:0;border:1px solid var(--border);border-radius:var(--radius-lg);background:var(--surface);overflow:hidden}
.artifact{padding:24px;border:0;border-radius:0;border-right:1px solid var(--border);border-bottom:1px solid var(--border)}
.artifact:nth-child(3n){border-right:0}
.artifact:nth-last-child(-n+3){border-bottom:0}
.artifact .ico{color:var(--accent-ink);margin-bottom:14px;line-height:0}
.artifact .ico svg{width:20px;height:20px}
.artifact h3{font-size:16px;font-weight:600;margin-bottom:6px}
.artifact p{color:var(--body);font-size:14.5px;line-height:1.55}

/* quote check */
.guarantee{display:grid;grid-template-columns:1fr 1fr;gap:56px;align-items:start}
.guarantee h2{font-size:clamp(26px,3.2vw,34px);font-weight:700;letter-spacing:-.025em;line-height:1.15;margin:6px 0 12px}
.guarantee p{color:var(--body);font-size:16.5px}
.checks{list-style:none;padding:0;margin:22px 0 0;display:grid;gap:12px}
.checks li{display:flex;gap:10px;margin:0;color:var(--body);font-size:15px;line-height:1.55}
.checks svg{width:18px;height:18px;color:var(--success);flex:none;margin-top:3px}
.checks b{color:var(--text);font-weight:600}
.verify{padding:0;overflow:hidden}
.verify .vrow{padding:18px 20px}
.verify .vrow + .vrow{border-top:1px solid var(--border)}
.verify .lbl{display:inline-flex;align-items:center;gap:6px;font-size:12.5px;font-weight:600;margin-bottom:10px}
.verify .lbl.ok{color:var(--success)}
.verify .lbl.no{color:var(--danger)}
.verify .lbl svg{width:14px;height:14px}
.verify q{display:block;quotes:"“" "”";font-size:15px;color:var(--text);line-height:1.6}
.verify .vrow.rej q{color:var(--body)}
.verify small{display:block;margin-top:6px;font-size:13px;color:var(--faint)}

/* pricing */
.price-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:16px}
.price{padding:28px 26px;position:relative;display:flex;flex-direction:column}
.price .name{font-size:15px;font-weight:600;color:var(--text);display:flex;align-items:center;gap:8px}
.price .amount{font-size:40px;font-weight:700;letter-spacing:-.03em;margin:10px 0 2px;line-height:1.1;font-feature-settings:"tnum"}
.price .amount small{font-size:15px;color:var(--faint);font-weight:500;letter-spacing:0}
.price .blurb{color:var(--faint);font-size:14px}
.price ul{list-style:none;margin:20px 0 24px;padding:18px 0 0;flex:1;border-top:1px solid var(--border)}
.price li{display:flex;gap:10px;align-items:flex-start;margin:0;padding:5px 0;color:var(--body);font-size:14.5px;line-height:1.5}
.price li::before{content:"";width:14px;height:14px;flex:none;margin-top:4px;
  background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%2313795b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 8.5l3.2 3.2L13 4.5'/%3E%3C/svg%3E") center/100% no-repeat}
.price .btn{width:100%}
.price.pro{border:2px solid var(--accent);padding:27px 25px}
.price .ribbon{font-size:12px;font-weight:600;color:var(--accent-ink);background:var(--accent-soft);border-radius:var(--radius-sm);padding:2px 8px}
.founding{border:1px solid var(--border);background:var(--surface);border-radius:var(--radius-lg);
  padding:24px 26px;margin-top:16px;color:var(--body);font-size:15px;display:grid;grid-template-columns:1fr auto;gap:12px 32px;align-items:center}
.founding b{color:var(--text)}
.waitrow{display:flex;gap:8px;flex-wrap:wrap}
.waitrow input{background:var(--surface);border:1px solid var(--border-strong);color:var(--text);border-radius:var(--radius);
  padding:11px 14px;font:15px var(--font-body);min-width:260px;min-height:44px}
.waitrow input::placeholder{color:var(--faint)}
.waitrow input:focus{outline:2px solid var(--ring);outline-offset:-1px;border-color:var(--ring)}
.waitrow button{background:var(--accent);color:var(--on-accent);font:600 15px var(--font-body);border:0;border-radius:var(--radius);padding:11px 18px;min-height:44px;cursor:pointer}
.waitrow button:hover{background:var(--accent-hover)}
.waitrow button:disabled{opacity:.6;cursor:wait}
#waitmsg{grid-column:1/-1;font-size:14px;color:var(--accent-ink);min-height:0;font-weight:500}
#waitmsg:empty{display:none}

/* FAQ */
.faq-wrap{max-width:760px}
details.faq{border-bottom:1px solid var(--border)}
details.faq:first-of-type{border-top:1px solid var(--border)}
details.faq summary{font-weight:600;cursor:pointer;font-size:16px;list-style:none;display:flex;justify-content:space-between;align-items:center;gap:20px;padding:18px 0}
details.faq summary::-webkit-details-marker{display:none}
details.faq summary::after{content:"+";font-weight:400;font-size:20px;line-height:1;color:var(--faint)}
details.faq[open] summary::after{content:"−"}
details.faq p{color:var(--body);font-size:15.5px;line-height:1.65;padding:0 40px 20px 0}

/* closing CTA */
.cta-band{padding:72px 0;border-top:1px solid var(--border);background:var(--surface-2)}
.cta-box{display:flex;align-items:center;justify-content:space-between;gap:24px;flex-wrap:wrap}
.cta-box h2{font-size:clamp(22px,2.6vw,28px);font-weight:700;letter-spacing:-.02em;line-height:1.2;margin-bottom:6px}
.cta-box p{color:var(--body);font-size:16px}

/* footer */
.site-foot{border-top:1px solid var(--border);padding:48px 0 40px;color:var(--body);font-size:14.5px}
.site-foot .cols{display:grid;grid-template-columns:1.4fr repeat(3,1fr);gap:40px}
.site-foot .cols p.about{margin-top:12px;max-width:260px;color:var(--faint);font-size:14px}
.site-foot h4{font-size:13px;font-weight:600;color:var(--text);margin-bottom:12px}
.site-foot ul{list-style:none;padding:0;margin:0}
.site-foot li{margin:0;padding:4px 0}
.site-foot a{color:var(--body)}
.site-foot a:hover{color:var(--text)}
.site-foot a.wordmark{color:var(--text)}
.site-foot .legal{margin-top:40px;padding-top:20px;border-top:1px solid var(--border);font-size:13px;color:var(--faint)}

/* ---------- responsive ---------- */
@media(max-width:980px){
  .how-grid{grid-template-columns:repeat(2,1fr)}
  .how-step:nth-child(3){padding-left:0;border-left:0}
  .how-step{padding-bottom:22px}
  .artifacts{grid-template-columns:repeat(2,1fr)}
  .artifact{border-right:1px solid var(--border)!important;border-bottom:1px solid var(--border)!important}
  .artifact:nth-child(2n){border-right:0!important}
  .artifact:nth-last-child(-n+2){border-bottom:0!important}
  .trust-grid{grid-template-columns:repeat(2,1fr)}
  .trust-item:nth-child(3){padding-left:0;border-left:0}
  .guarantee{grid-template-columns:1fr;gap:32px}
  .site-foot .cols{grid-template-columns:1fr 1fr}
}
@media(max-width:820px){
  .price-grid{grid-template-columns:1fr;max-width:460px}
  .founding{grid-template-columns:1fr}
  .mock-body{grid-template-columns:1fr}
  .mock-side{display:none}
}
@media(max-width:720px){
  .wrap{padding:0 20px}
  .site-head nav{display:none}
  .site-head .wrap{height:56px;gap:14px}
  .hero{padding-top:52px}
  .hero-actions .btn{width:100%}
  .sect{padding:64px 0}
  .mock{margin-top:40px}
  .mock-main{padding:20px}
  .cta-band{padding:52px 0}
  .cta-box .btn{width:100%}
}
@media(max-width:560px){
  .how-grid,.trust-grid{grid-template-columns:1fr}
  .how-step,.how-step + .how-step,.trust-item,.trust-item + .trust-item{padding-left:0;border-left:0}
  .how-step + .how-step{border-top:1px solid var(--border);padding-top:20px}
  .trust-item + .trust-item{border-top:1px solid var(--border)}
  .trust-item{padding:16px 0}
  .artifacts{grid-template-columns:1fr}
  .artifact{border-right:0!important;border-bottom:1px solid var(--border)!important}
  .artifact:last-child{border-bottom:0!important}
  .waitrow input{min-width:0;flex:1 1 100%}
  .waitrow button{width:100%}
  .site-foot .cols{grid-template-columns:1fr}
  details.faq p{padding-right:0}
}
@supports(padding:max(0px)){
  .wrap{padding-left:max(20px,env(safe-area-inset-left));padding-right:max(20px,env(safe-area-inset-right))}
}
