/* VidyReel mockup v2 — shared styles. Light theme. Brand per D-029. */
/* Self-hosted brand fonts (SIL OFL 1.1, latin subset from Google Fonts), so the CSP stays same-origin. */
@font-face { font-family: "Bricolage Grotesque"; font-style: normal; font-weight: 600 800; font-stretch: 100%; font-display: swap; src: url("/assets/fonts/bricolage-grotesque-latin.woff2") format("woff2"); }
@font-face { font-family: "Figtree"; font-style: normal; font-weight: 400 700; font-display: swap; src: url("/assets/fonts/figtree-latin.woff2") format("woff2"); }
:root {
  --bg: #FAF8F4;          /* warm ivory (brand reference background) */
  --surface: #FFFFFF;
  --surface-2: #F3EFE7;
  --ink: #1B1E26;         /* 15.6:1 on bg */
  --muted: #5B606C;       /* 5.9:1 on bg */
  --line: #E4DED3;
  --line-strong: #CFC7B8;
  --cobalt: #3E63EB;      /* brand; white text on it 5.0:1 */
  --cobalt-hover: #2F52D6;
  --cobalt-soft: #EAEFFE;
  --amber: #C26814;       /* brand; graphics and large text only */
  --amber-ink: #9A4F0C;   /* small amber text, 5.6:1 on bg */
  --amber-soft: #FCEFE0;
  --green: #1D7A4B;
  --green-soft: #E3F3E9;
  --red: #B3261E;
  --red-soft: #FBE8E6;
  --dark: #121418;        /* brand dark reference */
  --dark-ink: #D5D9E1;
  --dark-cobalt: #6D92FA;
  --dark-amber: #F08424;
  --r: 16px;
  --r-sm: 10px;
  --shadow: 0 1px 2px rgba(27,30,38,.05), 0 8px 24px rgba(27,30,38,.07);
  --shadow-lg: 0 2px 4px rgba(27,30,38,.06), 0 18px 48px rgba(27,30,38,.12);
  --head: "Bricolage Grotesque", "Avenir Next", system-ui, sans-serif;
  --body: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
  --gutter: 16px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 80px; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--body); font-size: 1.0625rem; line-height: 1.55;
  overflow-x: hidden;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--cobalt); text-underline-offset: 3px; }
a:hover { color: var(--cobalt-hover); }
h1, h2, h3, h4 { font-family: var(--head); line-height: 1.12; margin: 0 0 .5em; letter-spacing: -0.015em; }
h1 { font-size: clamp(2.1rem, 8vw, 3.7rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 5.4vw, 2.4rem); font-weight: 700; }
h3 { font-size: 1.25rem; font-weight: 700; }
h4 { font-size: 1.05rem; font-weight: 700; }
p { margin: 0 0 1em; }
small, .small { font-size: .9rem; }
.muted { color: var(--muted); }
.center { text-align: center; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 4px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 12px; top: 12px; background: #fff; padding: 8px 12px; z-index: 99; }
.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 var(--gutter); }
.wrap-narrow { max-width: 760px; }
.section { padding: 56px 0; }
.section-tight { padding: 32px 0; }
.eyebrow { font-weight: 700; font-size: .82rem; letter-spacing: .08em; text-transform: uppercase; color: var(--amber-ink); margin-bottom: .6em; display: block; }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 40em; }
.stack > * + * { margin-top: 16px; }
.row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.spacer { flex: 1; }
.hide { display: none !important; }
[hidden] { display: none !important; }
@media (min-width: 720px) { :root { --gutter: 28px; } .section { padding: 84px 0; } }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: 700 1rem/1.2 var(--body); text-decoration: none; cursor: pointer;
  min-height: 48px; padding: 12px 22px; border-radius: 999px; border: 2px solid transparent;
  background: var(--cobalt); color: #fff; transition: background .15s, transform .15s;
}
.btn:hover { background: var(--cobalt-hover); color: #fff; }
.btn:active { transform: translateY(1px); }
.btn-lg { min-height: 56px; padding: 14px 28px; font-size: 1.08rem; }
.btn-block { width: 100%; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn-ghost:hover { background: var(--surface-2); color: var(--ink); }
.btn-soft { background: var(--cobalt-soft); color: #2442B8; }
.btn-soft:hover { background: #DCE4FD; color: #2442B8; }
.btn-sm { min-height: 40px; padding: 8px 16px; font-size: .95rem; }
.btn[disabled], .btn[aria-disabled="true"] { background: #D9D5CC; color: #5B606C; cursor: not-allowed; border-color: transparent; }

/* ---------- Public header ---------- */
.site-header { position: sticky; top: 0; z-index: 30; background: rgba(250,248,244,.92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; gap: 12px; height: 64px; }
.logo img { height: 32px; width: auto; }
.site-nav { display: none; gap: 4px; margin-left: 20px; }
.site-nav a { color: var(--ink); text-decoration: none; font-weight: 600; padding: 10px 12px; border-radius: 8px; }
.site-nav a:hover { background: var(--surface-2); }
.site-header .actions { margin-left: auto; display: flex; gap: 6px; align-items: center; }
.site-header .signin { color: var(--ink); font-weight: 600; text-decoration: none; padding: 10px 10px; }
.site-header .btn { min-height: 42px; padding: 9px 16px; font-size: .95rem; }
@media (min-width: 860px) { .site-nav { display: flex; } .logo img { height: 36px; } }

/* ---------- App header + tab bar (signed in) ---------- */
.app-header { position: sticky; top: 0; z-index: 30; background: var(--surface); border-bottom: 1px solid var(--line); }
.app-header .wrap { display: flex; align-items: center; gap: 12px; height: 62px; }
.app-nav { display: none; gap: 4px; margin-left: 24px; }
.app-nav a { color: var(--muted); text-decoration: none; font-weight: 600; padding: 9px 14px; border-radius: 999px; }
.app-nav a[aria-current="page"] { background: var(--cobalt-soft); color: #2442B8; }
.app-nav a:hover { color: var(--ink); }
.app-header .actions { margin-left: auto; display: flex; gap: 10px; align-items: center; }
.app-header .new-btn { display: none; }
.avatar { width: 38px; height: 38px; border-radius: 50%; background: var(--amber-soft); color: var(--amber-ink); display: grid; place-items: center; font-weight: 800; font-family: var(--head); text-decoration: none; border: 2px solid #F3D3B0; }
.tabbar { position: fixed; bottom: 0; left: 0; right: 0; z-index: 40; background: var(--surface); border-top: 1px solid var(--line); display: grid; grid-template-columns: repeat(4, 1fr); padding: 6px 2px calc(6px + env(safe-area-inset-bottom)); }
.tabbar a { display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: .75rem; font-weight: 600; color: var(--muted); text-decoration: none; padding: 6px 0; min-height: 48px; }
.tabbar a svg { width: 24px; height: 24px; }
.tabbar a[aria-current="page"] { color: var(--cobalt); }
.tabbar a.tab-new span.ic { background: var(--cobalt); color: #fff; border-radius: 12px; width: 44px; height: 30px; display: grid; place-items: center; }
.tabbar a.tab-new span.ic svg { width: 20px; height: 20px; }
body.app { padding-bottom: 84px; }
@media (min-width: 860px) {
  .app-nav { display: flex; } .app-header .new-btn { display: inline-flex; }
  .tabbar { display: none; } body.app { padding-bottom: 0; }
}
.app-main { padding: 24px 0 48px; }
@media (min-width: 720px) { .app-main { padding: 40px 0 72px; } }

/* ---------- Footer ---------- */
.site-footer { background: var(--dark); color: var(--dark-ink); padding: 48px 0 32px; font-size: .95rem; }
.site-footer a { color: #E8ECF4; text-decoration: none; }
.site-footer a:hover { color: var(--dark-cobalt); text-decoration: underline; }
.site-footer .logo img { height: 34px; }

.site-nav a[aria-current="page"] { background: var(--surface-2); }

/* ---------- Cards and badges ---------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 20px; box-shadow: var(--shadow); }
.grid-3 { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .grid-3 { grid-template-columns: 1fr 1fr; } }
@media (min-width: 960px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 720px) { .scroll-x { flex-wrap: wrap; overflow: visible; margin: 0; padding-left: 0; padding-right: 0; } }
.badge { display: inline-flex; align-items: center; gap: 5px; font-size: .78rem; font-weight: 700; padding: 3px 9px; border-radius: 999px; background: var(--surface-2); color: var(--ink); white-space: nowrap; line-height: 1.5; }
.badge svg { width: 13px; height: 13px; }
.b-private { background: #ECEEF3; color: #343A48; }
.b-progress { background: var(--cobalt-soft); color: #2442B8; }
.notice { border-radius: var(--r-sm); padding: 14px 16px; display: flex; gap: 12px; align-items: flex-start; font-size: .98rem; }
.notice svg { flex: 0 0 22px; width: 22px; height: 22px; margin-top: 1px; }
.notice p:last-child { margin-bottom: 0; }
.n-info { background: var(--cobalt-soft); color: #1F3489; }
.n-ok { background: var(--green-soft); color: #145536; }
.n-bad { background: var(--red-soft); color: #7D1A14; }
.kv { display: grid; grid-template-columns: 1fr; gap: 2px 16px; margin: 0; }
.kv dt { color: var(--muted); font-size: .9rem; margin-top: 10px; }
.kv dd { margin: 0; font-weight: 600; }
@media (min-width: 560px) { .kv { grid-template-columns: 160px 1fr; } .kv dt { margin-top: 0; } .kv dt, .kv dd { padding: 8px 0; border-bottom: 1px solid var(--line); } }

/* ---------- Film frames (placeholder art) ---------- */
.frame { position: relative; aspect-ratio: 16 / 9; border-radius: 12px; overflow: hidden; background: linear-gradient(135deg, #3E63EB, #6D92FA); }
.frame[data-scene="lesson"] { background: linear-gradient(160deg, #1B2563, #3E63EB); }
.frame[data-scene="family"] { background: linear-gradient(180deg, #FFE2BE, #F5B57A); }
.frame[data-scene="story"] { background: linear-gradient(180deg, #101A3A, #2F3E78); }
.frame[data-scene="nature"] { background: linear-gradient(180deg, #BFE3FF, #6DA8F5); }

.film-card { display: block; text-decoration: none; color: var(--ink); }
.film-card .frame { transition: transform .2s; }
.film-card:hover .frame { transform: translateY(-2px); }
.film-card h3 { font-size: 1.08rem; margin: 12px 0 4px; }
.film-card .meta { color: var(--muted); font-size: .9rem; }

/* ---------- Landing ---------- */
.hero { padding: 36px 0 48px; overflow: hidden; }
.hero-grid { display: grid; gap: 36px; align-items: center; }
@media (min-width: 960px) { .hero { padding: 72px 0 88px; } .hero-grid { grid-template-columns: 1.1fr .9fr; gap: 56px; } }
.hero h1 .hl { color: var(--cobalt); }
.hero h1 .hl2 { color: var(--amber); }
.hero .lead { font-size: 1.18rem; margin-bottom: 24px; }
.hero-ctas { display: flex; flex-direction: column; gap: 10px; align-items: stretch; }
@media (min-width: 520px) { .hero-ctas { flex-direction: row; align-items: center; } }
.promise-strip { display: flex; gap: 8px 18px; flex-wrap: wrap; margin-top: 22px; font-weight: 600; font-size: .95rem; }
.promise-strip span { display: inline-flex; align-items: center; gap: 7px; }
.promise-strip svg { width: 18px; height: 18px; color: var(--green); }
.hero-visual { position: relative; max-width: 440px; margin: 0 auto; width: 100%; }
.idea-bubble { background: var(--surface); border: 1px solid var(--line); border-radius: 20px 20px 20px 6px; padding: 16px 18px; box-shadow: var(--shadow); font-size: 1rem; position: relative; z-index: 2; max-width: 88%; }
.idea-bubble .who { font-size: .8rem; font-weight: 700; color: var(--amber-ink); text-transform: uppercase; letter-spacing: .06em; display: block; margin-bottom: 4px; }
.hero-film { margin: -10px 0 0 auto; width: 86%; background: var(--surface); border-radius: 20px; padding: 10px; box-shadow: var(--shadow-lg); border: 1px solid var(--line); position: relative; z-index: 1; }
.hero-film .cap { display: flex; justify-content: space-between; gap: 8px; align-items: center; padding: 10px 6px 4px; font-size: .9rem; }
.hero-film .cap b { font-family: var(--head); font-size: 1.02rem; }
.steps { counter-reset: s; display: grid; gap: 16px; }
@media (min-width: 860px) { .steps { grid-template-columns: repeat(3, 1fr); gap: 24px; } }
.step-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 24px; position: relative; }
.step-card .num { font-family: var(--head); font-weight: 800; font-size: 1.1rem; width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--cobalt-soft); color: #2442B8; margin-bottom: 14px; }
.step-card:nth-child(2) .num { background: var(--amber-soft); color: var(--amber-ink); }
.step-card:nth-child(3) .num { background: var(--green-soft); color: var(--green); }
.band { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.who-card { padding: 22px; border-radius: var(--r); background: var(--surface-2); }
.who-card .ic { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--surface); margin-bottom: 12px; color: var(--cobalt); }
.who-card .ic svg { width: 24px; height: 24px; }

/* ---------- FAQ ---------- */
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; margin-bottom: 10px; }
.faq summary { cursor: pointer; padding: 16px 48px 16px 18px; font-weight: 700; list-style: none; position: relative; min-height: 56px; display: flex; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 18px; top: 50%; transform: translateY(-50%); font-size: 1.5rem; font-weight: 400; color: var(--cobalt); }
.faq details[open] summary::after { content: "–"; }
.faq details > div { padding: 0 18px 16px; color: #3A3E48; }

/* ---------- Forms ---------- */
label, .label { font-weight: 700; display: block; margin-bottom: 6px; }
.hint { color: var(--muted); font-size: .93rem; margin: -2px 0 8px; }
input[type=text], input[type=email], textarea, select {
  width: 100%; font: 400 1.05rem/1.5 var(--body); color: var(--ink); background: var(--surface);
  border: 1.5px solid var(--line-strong); border-radius: 12px; padding: 12px 14px; min-height: 50px;
}
textarea { min-height: 170px; resize: vertical; }
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--cobalt); box-shadow: 0 0 0 4px var(--cobalt-soft); }
.field { margin-bottom: 22px; }
.counter { text-align: right; font-size: .85rem; color: var(--muted); margin-top: 4px; }
fieldset { border: 0; padding: 0; margin: 0 0 24px; min-width: 0; }
legend { font-weight: 700; font-size: 1.05rem; margin-bottom: 10px; padding: 0; }
.opt-grid { display: grid; gap: 10px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 640px) { .opt-grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 400px) { .opt .box { padding: 10px 10px; gap: 8px; font-size: .98rem; } .opt .box .ic { width: 30px; height: 30px; flex-basis: 30px; } }
.opt { position: relative; display: block; margin: 0; font-weight: 600; cursor: pointer; }
.opt input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.opt .box { display: flex; align-items: center; gap: 10px; min-height: 58px; padding: 12px 14px; border: 1.5px solid var(--line-strong); border-radius: 14px; background: var(--surface); transition: border-color .15s, background .15s; height: 100%; overflow-wrap: anywhere; }
.opt .box .ic { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: var(--surface-2); flex: 0 0 36px; font-size: 1.15rem; }
.opt .box .ic svg { width: 20px; height: 20px; }
.opt input:checked + .box { border-color: var(--cobalt); background: var(--cobalt-soft); box-shadow: inset 0 0 0 1px var(--cobalt); }
.opt input:checked + .box .ic { background: var(--cobalt); color: #fff; }
.opt input:focus-visible + .box { outline: 3px solid var(--ink); outline-offset: 2px; }

/* ---------- Order flow ---------- */
.flow-header { background: var(--surface); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 30; }
.flow-header .wrap { display: flex; align-items: center; height: 60px; gap: 12px; }
.flow-header .logo img { height: 28px; }
.flow-header .leave { margin-left: auto; color: var(--muted); font-weight: 600; text-decoration: none; padding: 10px; }
.progress { padding-top: 14px; }
.progress .lbl { display: flex; justify-content: space-between; font-size: .9rem; font-weight: 600; color: var(--muted); margin-bottom: 8px; }
.progress .bar { display: grid; grid-template-columns: repeat(4, 1fr); gap: 5px; }
.progress .bar i { height: 6px; border-radius: 3px; background: var(--line); }
.progress .bar i.on { background: var(--cobalt); }
.flow-main { padding: 22px 0 140px; }
.flow-step h1 { font-size: clamp(1.7rem, 6.5vw, 2.4rem); font-weight: 700; }
.flow-step > .lead { font-size: 1.05rem; margin-bottom: 24px; }
.flow-bar { position: fixed; bottom: 0; left: 0; right: 0; background: var(--surface); border-top: 1px solid var(--line); z-index: 40; padding: 10px 0 calc(10px + env(safe-area-inset-bottom)); box-shadow: 0 -6px 20px rgba(27,30,38,.06); }
.flow-bar .wrap { display: flex; align-items: center; gap: 12px; }
.flow-bar .btn { margin-left: auto; min-width: 150px; }
.back-link { display: inline-flex; align-items: center; gap: 4px; color: var(--muted); font-weight: 600; text-decoration: none; padding: 10px 0; margin-bottom: 4px; }
.example-list { display: grid; gap: 8px; }
.example { text-align: left; font: 500 .95rem/1.4 var(--body); background: var(--surface); border: 1.5px dashed var(--line-strong); border-radius: 12px; padding: 12px 14px; cursor: pointer; color: var(--ink); }
.example:hover { border-color: var(--cobalt); border-style: solid; }
.example b { display: block; font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; color: var(--amber-ink); margin-bottom: 3px; }
.tips { background: var(--surface-2); border-radius: 14px; padding: 16px 18px; }
.tips ul { margin: 6px 0 0; padding-left: 20px; }
.tips li { margin: 4px 0; }

/* ---------- Dashboard ---------- */
.greet h1 { font-size: clamp(1.8rem, 6vw, 2.6rem); margin-bottom: 4px; }
.new-card { background: linear-gradient(135deg, #2F4FCC, #3E63EB 55%, #5B7CF2); color: #fff; border-radius: 20px; padding: 22px; display: flex; flex-direction: column; gap: 14px; position: relative; overflow: hidden; text-decoration: none; }
.new-card:hover { color: #fff; }
.new-card h2 { color: #fff; font-size: 1.5rem; margin: 0; }
.new-card p { margin: 0; color: #E3E9FD; }
.new-card .go { display: inline-flex; align-items: center; gap: 8px; background: #fff; color: #2442B8; font-weight: 700; border-radius: 999px; padding: 12px 20px; align-self: flex-start; min-height: 48px; }
.new-card .deco { position: absolute; right: -20px; top: -20px; width: 140px; opacity: .22; }
@media (min-width: 720px) { .new-card { flex-direction: row; align-items: center; padding: 28px 32px; } .new-card .go { margin-left: auto; align-self: center; } }
.dash-grid { display: grid; gap: 24px; margin-top: 24px; }
@media (min-width: 960px) { .dash-grid { grid-template-columns: 1.4fr 1fr; gap: 32px; } }
.sec-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin: 8px 0 12px; }
.sec-head h2 { font-size: 1.35rem; margin: 0; }
.order-card { display: block; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 16px; text-decoration: none; color: var(--ink); box-shadow: var(--shadow); margin-bottom: 12px; }
.order-card:hover { border-color: #BFCBF7; color: var(--ink); }
.order-card .top { display: flex; gap: 14px; align-items: center; }
.order-card h3 { font-size: 1.05rem; margin: 0 0 3px; }
.order-card .due { font-size: .88rem; color: var(--muted); }
.empty { text-align: center; padding: 32px 20px; border: 2px dashed var(--line-strong); border-radius: 16px; background: var(--surface); }
.empty .ic { width: 56px; height: 56px; margin: 0 auto 12px; border-radius: 16px; background: var(--cobalt-soft); color: var(--cobalt); display: grid; place-items: center; }
.empty .ic svg { width: 28px; height: 28px; }
.side-card { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 18px; margin-bottom: 16px; }
.side-card h3 { font-size: 1.05rem; }

/* ---------- Order detail timeline ---------- */
.detail-grid { display: grid; gap: 24px; }
@media (min-width: 960px) { .detail-grid { grid-template-columns: 1.3fr 1fr; gap: 32px; align-items: start; } }
.status-hero { border-radius: 20px; padding: 22px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); }
.status-hero h1 { font-size: clamp(1.6rem, 5.6vw, 2.2rem); margin: 12px 0 8px; }
.eta { display: flex; gap: 12px; align-items: center; background: var(--surface-2); border-radius: 14px; padding: 14px 16px; margin-top: 16px; }
.eta svg { width: 28px; height: 28px; color: var(--cobalt); flex: 0 0 28px; }
.timeline { list-style: none; padding: 0; margin: 0; position: relative; }
.timeline li { position: relative; padding: 0 0 20px 44px; min-height: 44px; }
.timeline li::before { content: ""; position: absolute; left: 14px; top: 30px; bottom: -2px; width: 2px; background: var(--line); }
.timeline li:last-child::before { display: none; }
.timeline .dot { position: absolute; left: 0; top: 0; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--surface); border: 2px solid var(--line-strong); color: var(--muted); }
.timeline .dot svg { width: 16px; height: 16px; }
.timeline .t { font-weight: 700; display: block; padding-top: 3px; }
.timeline .when { font-size: .87rem; color: var(--muted); }
.timeline li.now .dot { background: var(--cobalt); border-color: var(--cobalt); color: #fff; box-shadow: 0 0 0 5px var(--cobalt-soft); }
.timeline li.now .t { color: #2442B8; }
@media (prefers-reduced-motion: no-preference) { .timeline li.now .dot { animation: pulse 2s infinite; } }
@keyframes pulse { 0%,100% { box-shadow: 0 0 0 5px var(--cobalt-soft); } 50% { box-shadow: 0 0 0 9px rgba(62,99,235,.12); } }
.idea-quote { background: var(--surface-2); border-left: 4px solid var(--amber); border-radius: 0 12px 12px 0; padding: 14px 16px; font-size: 1rem; white-space: pre-line; }

/* ---------- Account ---------- */
.acct-layout { display: grid; gap: 24px; }
@media (min-width: 960px) { .acct-layout { grid-template-columns: 220px 1fr; gap: 40px; align-items: start; } }
.acct-nav { display: flex; gap: 6px; overflow-x: auto; }
.acct-nav a { white-space: nowrap; text-decoration: none; color: var(--ink); font-weight: 600; padding: 9px 14px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); }
@media (min-width: 960px) { .acct-nav { flex-direction: column; position: sticky; top: 90px; } .acct-nav a { border: 0; background: none; border-radius: 10px; } .acct-nav a:hover { background: var(--surface-2); } }
.acct-sec { margin-bottom: 28px; }
.acct-sec > h2 { font-size: 1.35rem; }

/* ---------- Length slider ---------- */
.len-box { background: var(--surface); border: 1.5px solid var(--line-strong); border-radius: 16px; padding: 16px; }
.len-val { font-size: 1rem; color: var(--muted); }
.len-val b { font-family: var(--head); font-weight: 800; font-size: 2.4rem; color: var(--ink); line-height: 1; margin-right: 4px; }
.len-box input[type=range] { -webkit-appearance: none; appearance: none; width: 100%; height: 44px; background: transparent; margin: 6px 0 0; padding: 0; border: 0; min-height: 44px; }
.len-box input[type=range]::-webkit-slider-runnable-track { height: 8px; border-radius: 6px; background: linear-gradient(90deg, var(--cobalt) var(--pct, 33%), var(--line) var(--pct, 33%)); }
.len-box input[type=range]::-moz-range-track { height: 8px; border-radius: 6px; background: var(--line); }
.len-box input[type=range]::-moz-range-progress { height: 8px; border-radius: 6px; background: var(--cobalt); }
.len-box input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 30px; height: 30px; border-radius: 50%; background: #fff; border: 3px solid var(--cobalt); margin-top: -11px; box-shadow: 0 2px 6px rgba(0,0,0,.2); }
.len-box input[type=range]::-moz-range-thumb { width: 24px; height: 24px; border-radius: 50%; background: #fff; border: 3px solid var(--cobalt); }
.len-box input[type=range]:focus { box-shadow: none; }
.len-box input[type=range]:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; border-radius: 8px; }
.len-scale { display: flex; justify-content: space-between; font-size: .82rem; color: var(--muted); margin-top: -4px; }

.xrow-scroll { display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x proximity; padding-bottom: 10px; margin: 0 calc(var(--gutter) * -1); padding-left: var(--gutter); padding-right: var(--gutter); scrollbar-width: thin; -webkit-overflow-scrolling: touch; }
.xrow-scroll > * { flex: 0 0 min(220px, 62vw); scroll-snap-align: start; min-width: 0; }
.xrow-scroll .film-card h3 { font-size: 1rem; }
.xrow-scroll .film-card .meta { font-size: .85rem; }

/* Milestone 1 */
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.logo { display: inline-flex; align-items: center; flex-shrink: 0; }
.logo img, .flow-header .logo img { width: 114px; height: auto; }
.flow-header .logo img { width: 92px; }
.tabbar { grid-template-columns: repeat(4, 1fr); }
.frame img { width: 100%; height: 100%; object-fit: cover; }
.hero-grid > * { min-width: 0; }
.hero-film .cap { padding: 10px 6px 4px; }
.hero-visual { margin: 0 auto; }
.hero-ctas { margin: 0 0 22px; }
.promise-strip { margin-bottom: 0; }
ol.steps { padding: 0; margin: 24px 0 0; list-style: none; }
.xrow-scroll:focus-visible { outline-offset: -3px; }
.signin-wrap { min-height: 100svh; display: grid; place-items: center; padding: 32px 16px; background: radial-gradient(circle at 20% 10%, var(--cobalt-soft), transparent 45%), radial-gradient(circle at 90% 90%, var(--amber-soft), transparent 45%), var(--bg); }
.signin-card { width: 100%; max-width: 420px; background: var(--surface); border-radius: 24px; padding: 32px 24px; box-shadow: var(--shadow-lg); border: 1px solid var(--line); text-align: center; }
.signin-card h1 { font-size: 1.9rem; }
.signin-mark { width: 64px; height: 64px; margin: 0 auto 18px; border-radius: 16px; background: var(--cobalt-soft); display: grid; place-items: center; }
.signin-mark img { width: 20px; height: 22px; }
.signin-card .notice { text-align: left; }
.signin-card form { margin: 18px 0; }
.signin-card p:last-child { margin-bottom: 0; }
.flow-header .leave { font: 600 1rem/1.4 var(--body); border: 0; background: none; cursor: pointer; min-height: 44px; }
.flow-header .leave:hover { color: var(--cobalt); }
.flow-bar .btn-ghost { margin-left: 0; min-width: auto; }
.flow-bar .btn { flex-shrink: 0; }
.audience { margin-top: 24px; }
#draft-examples h2 { font-size: 1.15rem; margin: 24px 0 10px; }
.new-card .deco svg { width: 100%; height: auto; }
.order-card h3, .status-hero h1, .idea-quote, .kv dd { overflow-wrap: anywhere; }
.draft-thumb { width: 92px; flex: 0 0 92px; aspect-ratio: 16 / 9; display: grid; place-items: center; background: var(--cobalt-soft); color: var(--cobalt); border-radius: 10px; }
.draft-actions { justify-content: space-between; margin-top: 14px; }
.detail-tags { gap: 6px; margin: 10px 0 16px; }
.detail-grid h2 { font-size: 1.2rem; }
.status-hero .btn, #profile form { margin-top: 16px; }
.greet + .acct-layout { margin-top: 18px; }
@media (max-width: 400px) {
  .site-header .actions { gap: 3px; }
  .site-header .signin { padding-inline: 6px; }
  .site-header .btn { padding-inline: 10px; }
  .opt .box { padding-inline: 10px; gap: 8px; }
  .opt .box .ic { width: 30px; height: 30px; flex-basis: 30px; }
}
@media (max-width: 340px) {
  .site-header .logo img { width: 95px; }
  .site-header .wrap { gap: 4px; }
}

/* T-031 enrollment forms reuse the app's existing cards and controls. */
.signin-card input:not([type="hidden"]), .acct-sec input[type="number"] { max-width: 100%; padding: .7rem; border: 1px solid #cbd0d7; border-radius: .5rem; font: inherit; }
.signin-card form + form { margin-top: 1rem; }
.table-scroll { overflow-x: auto; }
.table-scroll table { width: 100%; border-collapse: collapse; text-align: left; }
.table-scroll th, .table-scroll td { padding: .6rem; border-bottom: 1px solid #e2e5eb; vertical-align: top; overflow-wrap: anywhere; }

/* Public website, rebuilt from design/mockup-v2 (landing.html, pricing, policy). */
.foot-grid { display: grid; gap: 28px; grid-template-columns: 1fr 1fr; }
.foot-grid h4 { color: #fff; font-family: var(--body); font-size: .85rem; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 10px; }
.foot-grid ul { list-style: none; padding: 0; margin: 0; }
.foot-grid li { margin: 0; }
.foot-grid li a { display: inline-block; padding: 6px 0; }
.foot-grid a[aria-current="page"] { color: var(--dark-cobalt); }
.foot-brand { grid-column: 1 / -1; }
.foot-brand .logo img { width: 130px; height: auto; }
.foot-blurb { margin-top: 14px; max-width: 30em; }
.foot-legal { border-top: 1px solid #2B2F38; margin-top: 32px; padding-top: 20px; color: #AEB4C0; font-size: .87rem; }
.foot-legal p { margin-bottom: .5em; }
@media (min-width: 860px) { .foot-grid { grid-template-columns: 2fr 1fr 1fr 1fr; } .foot-brand { grid-column: auto; } }

.grid-2, .grid-4 { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .grid-2 { grid-template-columns: 1fr 1fr; } .grid-4 { grid-template-columns: 1fr 1fr; } }
@media (min-width: 960px) { .grid-4 { grid-template-columns: repeat(4, 1fr); } }
.grid-2 > *, .grid-4 > *, .price-grid > *, .steps > * { min-width: 0; }

.checked-tag { position: absolute; left: -2%; bottom: 18%; z-index: 3; background: var(--surface); border-radius: 999px; padding: 8px 14px 8px 10px; box-shadow: var(--shadow-lg); display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: .9rem; }
.checked-tag .dot { width: 26px; height: 26px; border-radius: 50%; background: var(--green); display: grid; place-items: center; color: #fff; }
.checked-tag .dot svg { width: 15px; height: 15px; }
.hero-price { margin: 14px 0 0; }
.hero-price b { color: var(--ink); }
.welcome-box { background: linear-gradient(135deg, #FFF6EA, #FFFFFF); border: 1.5px solid #EBC79F; border-radius: 16px; padding: 14px 16px; margin: 16px 0 0; text-align: left; }
.welcome-box .big { font-family: var(--head); font-weight: 800; font-size: 1.35rem; line-height: 1.15; color: var(--amber-ink); display: block; margin-bottom: 4px; }
.welcome-box p { margin: 0; }
.promise-strip { margin-top: 18px; }
.step-card .time { font-size: .88rem; color: var(--muted); font-weight: 600; }
.step-card p { margin-bottom: 12px; }
.steps-lead { margin-bottom: 28px; }
.audience { margin-top: 24px; }
.ideas-lead { margin-bottom: 16px; }
@media (min-width: 720px) { .xrow-scroll > * { flex-basis: 240px; } .xrow-scroll { margin: 0; padding-left: 0; padding-right: 0; } }

.price-lead { margin-bottom: 24px; }
.price-grid { display: grid; gap: 20px; }
@media (min-width: 720px) { .price-grid { grid-template-columns: 1fr 1fr; } }
.price-card { background: var(--surface); border: 1.5px solid var(--line); border-radius: 20px; padding: 26px; position: relative; display: flex; flex-direction: column; }
.price-card.featured { border-color: var(--cobalt); box-shadow: 0 0 0 4px var(--cobalt-soft); }
.price-card h3 { margin: 0; }
.price-card .amount { font-family: var(--head); font-weight: 800; font-size: 3rem; line-height: 1; margin: 14px 0 6px; letter-spacing: -0.02em; }
.price-card .amount small { font-size: 1rem; font-weight: 600; color: var(--muted); font-family: var(--body); letter-spacing: 0; }
.price-card .price-sub { margin: 0 0 8px; font-weight: 700; }
.price-card ul { padding: 0; list-style: none; margin: 8px 0 22px; }
.price-card li { padding: 7px 0 7px 30px; position: relative; }
.price-card li::before { content: ""; position: absolute; left: 0; top: 10px; width: 20px; height: 20px; border-radius: 50%; background: var(--green-soft); }
.price-card li::after { content: ""; position: absolute; left: 6px; top: 15px; width: 8px; height: 4.5px; border-left: 2.5px solid var(--green); border-bottom: 2.5px solid var(--green); transform: rotate(-45deg); }
.price-card li.no::before { background: var(--red-soft); }
.price-card li.no::after { left: 5px; top: 15px; width: 10px; height: 10px; border: 0; transform: none; background: linear-gradient(45deg, transparent 40%, var(--red) 40% 60%, transparent 60%), linear-gradient(-45deg, transparent 40%, var(--red) 40% 60%, transparent 60%); }
.price-card .btn { margin-top: auto; }
.price-tag { position: absolute; top: -13px; left: 22px; background: var(--cobalt); color: #fff; font-size: .78rem; font-weight: 700; padding: 4px 11px; border-radius: 999px; }
.price-note { margin-top: 14px; }

.band-cobalt { background: #1D2B6E; color: #fff; }
.band-cobalt h2, .band-cobalt h3 { color: #fff; }
.band-cobalt .muted { color: #D2DAF8; }
.band-cobalt .eyebrow { color: #FFC48A; }
.promise-grid { margin-top: 28px; }
.faq { margin-top: 20px; }
.cta-card { padding: 36px 22px; }
.cta-card .lead { margin: 0 auto 20px; }

.legal-page h1 { margin-bottom: .3em; }
.legal-page .lead { color: var(--ink); margin: 20px 0 8px; }
.legal-page section { margin-top: 36px; }
.legal-page h2 { font-size: clamp(1.35rem, 4vw, 1.7rem); }
.legal-page ul { padding-left: 1.2em; }
.legal-page li { margin-bottom: .5em; }

.signin-card label { display: block; text-align: left; font-weight: 700; }
.signin-card input:not([type="hidden"]) { width: 100%; }
.signin-card .cf-turnstile { display: flex; justify-content: center; }
.signin-card .btn { width: 100%; }
