/* ScriptShorts — shared look (v2, 2026-11-13).
   Brief: same kind of site as the market leader in this category (light, airy SaaS: white
   ground, floating pill navigation, centred hero with a two-tone rounded headline, a product
   mock-up, rounded white cards with soft shadows, pill section labels, a dark enterprise band,
   a centred closing call with a soft glow). Our own name, logo, copy and media.
   Colour: cerulean blue (hue ~202), deliberately a different blue from the competitor's
   royal blue (~226) and from our sibling products' cobalt. All text pairs pass WCAG AA. */
:root {
  --bg: #ffffff;
  --tint: #f4f8fb;          /* section tint */
  --tint-2: #eaf3f9;
  --card: #ffffff;
  --ink: #0b1724;           /* 18:1 on white */
  --ink-2: #26364a;
  --muted: #55657a;         /* 5.9:1 on white */
  --line: #e2e9f0;
  --line-2: #d3dee8;
  --blue: #0a6fb0;          /* cerulean primary; white text 5.4:1; as text on white 5.4:1 */
  --blue-dark: #075a90;
  --blue-soft: #e3f1fa;
  --blue-glow: rgba(10, 111, 176, .32);
  --teal: #0f766e;          /* per-video price line, 5.5:1 */
  --night: #0b1724;
  --night-2: #142438;
  --night-line: #26384f;
  --on-night: #eef3f8;
  --on-night-muted: #a8b6c7;
  --sky: #5cc2ff;           /* highlight on dark */
  --warn-bg: #fff6dd; --warn-ink: #5d4500; --warn-line: #f0dca3;
  --ok: #0f7a4d; --ok-bg: #e2f5ec;
  --bad: #b3261e; --bad-bg: #fdecea;

  --font-display: "Nunito", "Varela Round", ui-rounded, "SF Pro Rounded", system-ui, sans-serif;
  --font-sans: "Plus Jakarta Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  --wrap: 1120px;
  --gutter: clamp(16px, 4vw, 32px);
  --r-sm: 10px; --r: 14px; --r-lg: 22px; --r-xl: 28px;
  --shadow: 0 10px 34px rgba(11, 40, 72, .08);
  --shadow-sm: 0 4px 16px rgba(11, 40, 72, .07);
  --shadow-lg: 0 24px 60px rgba(11, 40, 72, .12);
  --ease: cubic-bezier(.16, 1, .3, 1);
  color-scheme: light;
  accent-color: var(--blue);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.6 var(--font-sans); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img, video { max-width: 100%; }
::selection { background: var(--blue-soft); color: var(--ink); }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 6px; }
a { color: var(--blue); text-underline-offset: 3px; }
h1, h2, h3 { text-wrap: balance; } p { text-wrap: pretty; }
code, kbd, .mono { font-family: var(--font-mono); font-size: .88em; }

.skip { position: absolute; left: -999px; top: 8px; z-index: 60; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 8px; }
.skip:focus { left: 12px; }
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.narrow { max-width: 780px; }
.center { text-align: center; }

/* ---------- type ---------- */
.display { font-family: var(--font-display); font-weight: 600; letter-spacing: -.02em; line-height: 1.06; margin: 0; color: var(--ink); }
.display .hl { color: var(--blue); }
.h1 { font-size: clamp(2.6rem, 6.4vw, 4.75rem); }
.h2 { font-size: clamp(2rem, 4.2vw, 2.9rem); }
.h3 { font-family: var(--font-display); font-weight: 700; font-size: 1.22rem; line-height: 1.25; margin: 0 0 6px; letter-spacing: -.005em; }
.lede { font-size: clamp(1.05rem, 1.5vw, 1.15rem); line-height: 1.65; color: var(--muted); max-width: 36em; }
.center .lede { margin-inline: auto; }
.muted { color: var(--muted); }
.small { font-size: .9rem; }
.pill-label { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border: 1px solid var(--line); border-radius: 999px; background: #fff; box-shadow: var(--shadow-sm); font: 600 .84rem/1 var(--font-sans); color: var(--ink-2); }
.pill-label::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--blue); }
.night .pill-label { background: var(--night-2); border-color: var(--night-line); color: var(--on-night); }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5em; min-height: 48px; padding: .75em 1.4em; border: 1px solid transparent; border-radius: var(--r); background: var(--blue); color: #fff; font: 800 1rem/1.1 var(--font-sans); text-decoration: none; box-shadow: 0 10px 28px var(--blue-glow); cursor: pointer; transition: transform .2s var(--ease), box-shadow .2s var(--ease), background .2s; }
.btn:hover { background: var(--blue-dark); transform: translateY(-1px); box-shadow: 0 14px 32px var(--blue-glow); }
.btn:active { transform: translateY(0); }
.btn.alt { background: #fff; color: var(--ink); border-color: var(--line-2); box-shadow: var(--shadow-sm); }
.btn.alt:hover { background: var(--tint); }
.btn.lg { min-height: 56px; font-size: 1.05rem; padding-inline: 1.6em; }
.btn.block { width: 100%; }
.arrow::after { content: "→"; font-weight: 700; }

/* ---------- floating pill header ---------- */
.site-head { position: sticky; top: 0; z-index: 30; padding: calc(12px + env(safe-area-inset-top, 0px)) var(--gutter) 0; pointer-events: none; }
.site-head .bar { pointer-events: auto; max-width: 1160px; margin: 0 auto; display: flex; align-items: center; gap: 16px; min-height: 62px; padding: 8px 10px 8px 22px; background: rgba(255, 255, 255, .94); backdrop-filter: blur(10px); border: 1px solid var(--line); border-radius: 999px; box-shadow: var(--shadow); position: relative; }
.brand { display: inline-flex; align-items: center; gap: 9px; color: var(--ink); text-decoration: none; flex: none; }
.brand svg { width: 30px; height: 30px; flex: none; }
.wordmark { font-family: var(--font-display); font-weight: 700; font-size: 1.22rem; letter-spacing: -.015em; white-space: nowrap; }
.wordmark em { font-style: normal; color: var(--blue); }
.nav { display: flex; align-items: center; gap: 2px; margin: 0 auto; }
.nav a { color: var(--ink-2); text-decoration: none; font-weight: 500; font-size: .95rem; padding: 9px 13px; border-radius: 999px; }
.nav a:hover { background: var(--tint); color: var(--ink); }
.nav a[aria-current="page"] { color: var(--blue); }
.head-cta { display: flex; align-items: center; gap: 6px; flex: none; }
.head-cta .login { color: var(--ink); font-weight: 700; text-decoration: none; padding: 10px 14px; border-radius: 999px; font-size: .95rem; }
.head-cta .login:hover { background: var(--tint); }
.head-cta .btn { min-height: 44px; border-radius: 999px; padding: .6em 1.15em; font-size: .95rem; }
.menu-btn { display: none; }
@media (max-width: 920px) {
  .site-head .bar { padding-left: 16px; }
  .nav { display: none; position: absolute; top: calc(100% + 8px); left: 0; right: 0; flex-direction: column; align-items: stretch; padding: 10px; background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-lg); }
  .nav.open { display: flex; }
  .nav a { padding: 14px 16px; font-size: 1.02rem; border-radius: var(--r-sm); }
  .menu-btn { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 50%; background: #fff; cursor: pointer; color: var(--ink); margin-left: auto; }
  .menu-btn svg { width: 20px; height: 20px; }
  .head-cta .login { display: none; }
}
@media (max-width: 440px) {
  .site-head { padding-inline: 10px; }
  .site-head .bar { padding: 7px 8px 7px 12px; gap: 8px; }
  .brand { gap: 7px; } .brand svg { width: 26px; height: 26px; }
  .site-head .wordmark { font-size: 1rem; }
  .head-cta .btn { padding-inline: .8em; font-size: .86rem; min-height: 40px; }
  .menu-btn { width: 40px; height: 40px; }
}

/* ---------- sections ---------- */
.section { padding-block: clamp(64px, 9vw, 112px); }
.section.tint { background: var(--tint); }
.sec-head { display: grid; justify-items: center; gap: 16px; text-align: center; margin: 0 auto clamp(36px, 5vw, 56px); max-width: 760px; }
.sec-head .lede { margin: 0 auto; }
.night { background: var(--night); color: var(--on-night); }
.night .muted { color: var(--on-night-muted); }

/* ---------- cards ---------- */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(20px, 2.4vw, 28px); box-shadow: var(--shadow); }
.card.soft { background: var(--tint); box-shadow: none; }
.grid { display: grid; gap: clamp(16px, 2vw, 22px); }
.g2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 400px), 1fr)); }
.g3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }
.g4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); }

.notice { background: var(--warn-bg); color: var(--warn-ink); border: 1px solid var(--warn-line); border-radius: var(--r); padding: 12px 16px; font-size: .95rem; }
.notice b { color: #3d2e00; }
.notice.blue { background: var(--blue-soft); color: var(--ink-2); border-color: #c4e0f2; }

/* ---------- footer (one slim row) ---------- */
.site-foot { border-top: 1px solid var(--line); background: #fff; padding-block: 28px; }
.site-foot .row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 28px; }
.site-foot .copy { color: var(--muted); font-size: .88rem; }
.site-foot nav { display: flex; flex-wrap: wrap; gap: 6px 22px; margin-left: auto; }
.site-foot nav a { color: var(--ink-2); text-decoration: none; font-weight: 600; font-size: .9rem; }
.site-foot nav a:hover { color: var(--blue); }
.site-foot .fine { margin-top: 16px; color: var(--muted); font-size: .82rem; }
@media (max-width: 760px) { .site-foot nav { margin-left: 0; } }

/* ---------- prose (legal, docs) ---------- */
.prose { font-size: 1rem; color: var(--ink-2); }
.prose h2 { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.4rem, 2.4vw, 1.7rem); color: var(--ink); margin: 2.2em 0 .5em; letter-spacing: -.01em; }
.prose h3 { font-family: var(--font-display); font-weight: 700; font-size: 1.2rem; color: var(--ink); margin: 1.6em 0 .4em; }
.prose ul { padding-left: 1.2em; } .prose li { margin: .3em 0; }
.prose table { border-collapse: collapse; width: 100%; margin: 1em 0; }
.prose th, .prose td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; font-size: .95rem; }
.prose th { font-weight: 700; color: var(--ink); background: var(--tint); }
.prose code { background: var(--tint-2); padding: 1px 6px; border-radius: 6px; }
.prose pre { background: var(--night); color: var(--on-night); padding: 18px 20px; border-radius: var(--r); overflow-x: auto; font: 13px/1.65 var(--font-mono); }
.prose pre code { background: none; padding: 0; }
.table-scroll { overflow-x: auto; }
.page-head { padding-block: clamp(56px, 8vw, 96px) clamp(28px, 4vw, 44px); text-align: center; }
.page-head .display { margin-top: 18px; }
.page-head .lede { margin: 16px auto 0; }
.legal-nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 28px; }
.legal-nav a { text-decoration: none; color: var(--ink-2); border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 9px 15px; font-weight: 600; font-size: .9rem; box-shadow: var(--shadow-sm); }
.legal-nav a[aria-current="page"] { background: var(--blue); border-color: var(--blue); color: #fff; }

/* ---------- FAQ ---------- */
details.qa { border-top: 1px solid var(--line); }
details.qa:last-of-type { border-bottom: 1px solid var(--line); }
details.qa summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 20px 2px; font: 700 1.05rem/1.35 var(--font-sans); color: var(--ink); }
details.qa summary::-webkit-details-marker { display: none; }
details.qa summary::after { content: "+"; color: var(--blue); font: 500 1.4rem/1 var(--font-sans); flex: none; }
details.qa[open] summary::after { content: "–"; }
details.qa p { margin: 0 2px 22px; color: var(--muted); max-width: 46em; }

/* glow under closing sections */
.glow { position: relative; overflow: hidden; }
.glow::after { content: ""; position: absolute; left: 50%; bottom: -340px; width: 1100px; height: 520px; transform: translateX(-50%); background: radial-gradient(closest-side, rgba(10, 111, 176, .14), transparent); pointer-events: none; }
.glow > * { position: relative; z-index: 1; }

.reveal { animation: rise .7s var(--ease) both; }
.reveal.d1 { animation-delay: .06s; } .reveal.d2 { animation-delay: .12s; } .reveal.d3 { animation-delay: .18s; }
@keyframes rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

/* document pages (legal): left-aligned, like a plain policy document */
.page-head.doc { text-align: left; padding-block: clamp(48px, 7vw, 80px) 28px; }
.page-head.doc .lede { margin: 14px 0 0; }
.page-head.doc .legal-nav { justify-content: flex-start; padding-top: 24px; border-top: 1px solid var(--line); }

/* pricing cards (landing + /pricing), moved from landing.html 2026-11-19 */
  .tiers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 40px; align-items: stretch; }
  .tier { display: flex; flex-direction: column; gap: 12px; position: relative; padding: 30px 28px 28px; }
  .tier.pop { border: 2px solid var(--blue); box-shadow: 0 18px 50px rgba(10, 111, 176, .16); }
  .tier .badge { position: absolute; top: -14px; left: 50%; transform: translateX(-50%); font: 800 .72rem/1 var(--font-sans); letter-spacing: .06em; text-transform: uppercase; background: var(--blue); color: #fff; padding: 8px 12px; border-radius: 999px; white-space: nowrap; }
  .tier .name { font-family: var(--font-display); font-weight: 700; font-size: 1.25rem; }
  .tier .price { font: 700 3rem/1 var(--font-display); letter-spacing: -.02em; }
  .tier .price small { font: 500 .95rem var(--font-sans); color: var(--muted); letter-spacing: 0; }
  .tier .per { color: var(--teal); font-weight: 700; font-size: .88rem; margin: 0; }
  .tier .pitch { color: var(--muted); margin: 0; font-size: .95rem; }
  .tier ul { margin: 6px 0 10px; padding: 0; list-style: none; display: grid; gap: 10px; font-size: .93rem; color: var(--ink-2); }
  .tier li { display: grid; grid-template-columns: 18px 1fr; gap: 8px; }
  .tier li::before { content: "✓"; color: var(--teal); font-weight: 800; }
  .tier .btn { margin-top: auto; }
  .tier:not(.pop) .btn { background: #fff; color: var(--ink); border-color: var(--line-2); box-shadow: none; }
  .tier:not(.pop) .btn:hover { background: var(--tint); }
  @media (max-width: 960px) { .tiers { grid-template-columns: 1fr; max-width: 480px; margin-inline: auto; } .tier.pop { order: -1; } }
  .foot-pr { text-align: center; color: var(--muted); font-size: .88rem; margin-top: 24px; }
  .ent { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; max-width: 820px; margin: 40px auto 0; background: var(--night); color: var(--on-night); border-radius: var(--r-lg); padding: 24px 28px; box-shadow: var(--shadow-lg); }
  .ent h3 { color: #fff; margin: 0 0 4px; }
  .ent p { margin: 0; color: var(--on-night-muted); font-size: .92rem; max-width: 36em; }
  .ent .btn { background: #fff; color: var(--ink); box-shadow: none; }
.tier .price { font-size: 2.6rem; }
.tier li { text-align: left; }
.prose .tiers, .prose .ent { font-size: 1rem; }
.prose .tier ul { padding: 0; }
.fam { text-align: center; }
.fam-r { position: absolute; opacity: 0; pointer-events: none; }
.fam-tabs { display: inline-flex; gap: 4px; background: var(--tint); border: 1px solid var(--line); border-radius: 999px; padding: 4px; }
.fam-tabs label { border-radius: 999px; padding: 10px 18px; min-height: 42px; display: inline-flex; align-items: center; font: 700 .92rem var(--font-sans); color: var(--muted); cursor: pointer; }
.fam-p { display: none; }
#fam-long:checked ~ #panel-long, #fam-shorts:checked ~ #panel-shorts, #fam-mix:checked ~ #panel-mix { display: block; }
#fam-long:checked ~ .fam-tabs label[for="fam-long"], #fam-shorts:checked ~ .fam-tabs label[for="fam-shorts"], #fam-mix:checked ~ .fam-tabs label[for="fam-mix"] { background: #fff; color: var(--ink); box-shadow: var(--shadow-sm); }
.fam-r:focus-visible ~ .fam-tabs { outline: 2px solid var(--blue); outline-offset: 3px; }
.early-bar { background: var(--night); color: var(--on-night); text-align: center; font: 600 .88rem/1.4 var(--font-sans); padding: 9px 16px; }
.early-bar a { color: #fff; }
.fam .tier { text-align: left; }
.prose .fam { margin-inline: calc(50% - min(50vw - var(--gutter, 16px), 560px)); }
.tier .per { white-space: normal; }
#waitlist .grid > div { min-width: 0; }
#waitlist select, #waitlist input[type=email] { max-width: 100%; }
@media (max-width: 640px) { #waitlist .grid.g2 { grid-template-columns: 1fr; } }
