/* DailyTutor — Design 25 "Final Mix" (owner-approved final design):
   Design 07's indigo -> violet -> peach gradient mesh and glass hero,
   Design 19's lavender-white pill-shaped content sections, one accent
   gradient throughout. Deep navy ink type, soft violet shadows. */
:root {
  --bg: #f5f3ff;
  --card: #ffffff;
  --ink: #2a2158;
  --muted: #6f6890;
  --violet: #8b5cf6;
  --deep: #6d28d9;
  --line: #ece7fd;
  --grad: linear-gradient(92deg, #6366f1, #8b5cf6 45%, #fb923c);
  --danger: #b42318;
  --ok: #027a48;
  --shadow: 0 10px 30px rgba(109, 40, 217, .10);
  --shadow-sm: 0 4px 14px rgba(109, 40, 217, .08);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  overflow-x: hidden;
  overflow-x: clip;
  font-family: "Avenir Next", "Segoe UI", system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.55;
}
a { color: var(--deep); }
a:hover { color: #4c1d95; }
h1, h2, h3, h4 { line-height: 1.2; margin: .4em 0 .35em; }
h2 { font-size: 1.6rem; }
h3 { font-size: 1.2rem; }
p { margin: .5em 0; }
.wrap { max-width: 980px; margin: 0 auto; padding: 0 18px; }
main.wrap { padding-bottom: 56px; }

/* ---------- header / footer ---------- */
.topbar {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  padding: 14px 18px;
  position: sticky; top: 0; z-index: 60;
  background: var(--bg); box-shadow: 0 1px 0 rgba(109, 40, 217, .08);
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.mark {
  width: 48px; height: 48px; border-radius: 15px; display: block;
  box-shadow: var(--shadow-sm);
}
.brand-name { font-weight: 800; font-size: 1.4rem; }
.topbar nav { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.topbar nav a { text-decoration: none; font-weight: 600; font-size: .95rem; }
.topbar nav a:hover { text-decoration: underline; }
.foot { color: var(--muted); font-size: .85rem; padding: 26px 0 40px; text-align: center; }
.foot-links { display: flex; gap: 18px; justify-content: center; flex-wrap: wrap; margin-bottom: 8px; font-size: .92rem; font-weight: 600; }
.hint { color: var(--muted); font-size: .92rem; }
.small-note { color: var(--muted); font-size: .85rem; }
.micro { color: var(--muted); font-size: .8rem; margin-top: 8px; }

/* ---------- buttons, chips, cards ---------- */
.btn {
  display: inline-block; border: 0; cursor: pointer; text-decoration: none;
  background: var(--grad); color: #fff; font-weight: 700;
  padding: 11px 22px; border-radius: 999px; font-size: .98rem;
  box-shadow: var(--shadow-sm);
}
.btn:hover { color: #fff; filter: brightness(1.06); }
.btn.small { padding: 7px 15px; font-size: .88rem; }
.btn.ghost, .btn.light {
  background: #fff; color: var(--deep);
  border: 1.5px solid var(--line); box-shadow: none;
}
.btn.danger {
  background: #fff; color: var(--danger);
  border: 1.5px solid #fecdca; box-shadow: none;
}
.btn.danger:hover { color: var(--danger); background: #fef3f2; }
/* Google sign-in (rendered only when Google OAuth is configured). */
.btn-google {
  background: #fff; color: var(--ink); text-align: center;
  border: 1.5px solid var(--line); box-shadow: none; width: 100%;
}
.btn-google:hover { color: var(--ink); background: #f5f3ff; filter: none; }
.or-divider {
  display: flex; align-items: center; gap: 12px;
  color: var(--muted); font-size: .85rem; margin: 16px 0 4px;
}
.or-divider::before, .or-divider::after {
  content: ''; flex: 1; border-top: 1px solid var(--line);
}
/* Family access (dashboard invite management). */
.fam-list { list-style: none; margin: 0; padding: 0; }
.fam-row { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.linkbtn {
  background: none; border: 0; color: var(--deep); cursor: pointer;
  font: inherit; font-size: .9rem; font-weight: 700; padding: 0;
}
.linkbtn:hover { text-decoration: underline; }
.chip {
  display: inline-block; background: #ede9fe; color: var(--deep);
  border-radius: 999px; padding: 3px 12px; font-size: .82rem; font-weight: 700;
}
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: 22px;
  padding: 18px 20px; margin: 14px 0; box-shadow: var(--shadow-sm);
}
.card.narrow { max-width: 560px; margin-inline: auto; }
/* Auth cards (scan fix, Nov 4 2026): fields fill the card width evenly —
   no indented/narrower email field — and product options wrap as text,
   not as flex fragments. */
.auth-card label { display: block; }
.auth-card input, .auth-card select, .auth-card textarea { display: block; width: 100%; max-width: none; }
.auth-card input[type="checkbox"], .auth-card input[type="radio"] { display: inline-block; width: auto; }
.auth-card fieldset { max-width: none; }
.signup-steps { display: grid; gap: 10px; margin: 14px 0; }
.ss-step { display: flex; gap: 12px; align-items: flex-start; }
.ss-step > strong {
  flex: 0 0 auto; width: 26px; height: 26px; border-radius: 50%;
  background: var(--grad); color: #fff; display: flex; align-items: center; justify-content: center;
  font-size: .9rem; margin-top: 2px;
}
.ss-step h4 { margin: 0; font-size: 1rem; }
.ss-step p { margin: 2px 0 0; color: var(--muted); font-size: .92rem; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 14px; }
.grid .card { margin: 0; }
.flash { border-radius: 16px; padding: 11px 15px; margin: 12px 0; font-size: .95rem; overflow-wrap: anywhere; }
.invite-flash { display: flex; gap: 8px; margin-top: 8px; flex-wrap: wrap; align-items: center; }
.invite-link-field { flex: 1 1 260px; min-width: 0; width: auto; margin: 0; padding: 8px 10px; border: 1px solid rgba(0,0,0,.18); border-radius: 10px; background: #fff; font-size: .88rem; }
.invite-copy { flex: 0 0 auto; }
.flash.ok { background: #ecfdf3; border: 1px solid #a6f4c5; color: var(--ok); }
.flash.err { background: #fef3f2; border: 1px solid #fecdca; color: var(--danger); }
.status { font-weight: 700; font-size: .95rem; }

/* ---------- progress charts + advancement goal ---------- */
.chart { width: 100%; height: auto; display: block; }
.goal-bar { width: 100%; height: auto; display: block; margin: 8px 0 2px; }
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 12px; }
.stat { background: var(--bg); border: 1px solid var(--line); border-radius: 16px; padding: 12px 14px; }
.stat-num { font-size: 1.45rem; font-weight: 800; }

/* ---------- forms ---------- */
label { display: block; font-weight: 600; margin: 12px 0 4px; }
input, select, textarea {
  width: 100%; max-width: 460px; padding: 10px 14px; margin-top: 4px;
  border: 1.5px solid var(--line); border-radius: 14px; font: inherit;
  background: #fff; color: var(--ink);
}
input[type="checkbox"], input[type="radio"] { width: auto; }
input:focus, select:focus, textarea:focus { outline: 2px solid #c4b5fd; border-color: var(--violet); }
fieldset { border: 1.5px solid var(--line); border-radius: 18px; padding: 12px 16px; margin: 14px 0; max-width: 460px; }
legend { font-weight: 700; padding: 0 6px; }
.radio-opt { display: flex; gap: 8px; align-items: flex-start; font-weight: 500; margin: 6px 0; }
.radio-opt input { flex: 0 0 auto; margin-top: 4px; }
.radio-opt .radio-txt { flex: 1; min-width: 0; }
.inline-form { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin: 10px 0; }
.inline-form input { flex: 1; min-width: 180px; margin-top: 0; }
form.inline { display: inline; }
table { border-collapse: collapse; width: 100%; margin: 10px 0; }
th, td { border: 1px solid var(--line); padding: 8px 10px; text-align: left; }
th { background: #ede9fe; }

/* ---------- landing (Design 25) ---------- */
.hero {
  margin: 2px 0 4px; padding: 0;
}
.hero-panel {
  position: relative; overflow: hidden; border-radius: 30px; color: #fff;
  padding: 44px 40px;
  background:
    radial-gradient(560px 340px at 88% 112%, rgba(251, 146, 60, .78), rgba(251, 146, 60, 0) 64%),
    radial-gradient(480px 300px at 96% -14%, rgba(216, 180, 254, .42), rgba(216, 180, 254, 0) 66%),
    radial-gradient(520px 360px at -10% -20%, rgba(165, 180, 252, .38), rgba(165, 180, 252, 0) 64%),
    linear-gradient(90deg, rgba(38, 33, 94, .26) 0%, rgba(38, 33, 94, .13) 52%, rgba(38, 33, 94, 0) 76%),
    linear-gradient(118deg, #6366f1 0%, #8b5cf6 58%, #a78bfa 82%, #fb923c 132%);
  background-color: #6366f1;
  box-shadow: 0 18px 44px rgba(109, 40, 217, .22);
}
.hero-grid {
  display: grid; grid-template-columns: 1.15fr .85fr; gap: 34px; align-items: center;
  max-width: 980px; margin: 0 auto;
}
.hero .frame-line { color: rgba(255, 255, 255, .94); }
.hero .micro, .hero .small-note { color: rgba(255, 255, 255, .84); }
.eyebrow { text-transform: uppercase; letter-spacing: .14em; font-size: .75rem; font-weight: 800; opacity: .85; }
.hero h1 { font-size: clamp(2rem, 4.5vw, 3.1rem); margin: .25em 0 .3em; }
.grad-text {
  /* Headline words sit on the deep purple hero panel: light stops keep
     them readable there (contrast fix, Nov 4 2026); the solid fallback
     color covers browsers without background-clip:text. */
  color: #eef2ff;
  background: linear-gradient(92deg, #e0e7ff, #ddd6fe 40%, #fed7aa);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.grad-ink {
  /* Same gradient idea on light backgrounds: deepened stops so the
     words stay readable on white/lavender (contrast fix, Nov 4 2026). */
  color: #4c1d95;
  background: linear-gradient(92deg, #4338ca, #6d28d9 45%, #c2410c);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.lede { font-size: 1.12rem; opacity: .92; max-width: 34rem; }
.cta-row { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 20px; }
.hero .btn.light { background: rgba(255, 255, 255, .14); color: #fff; border: 1.5px solid rgba(255, 255, 255, .35); }
.glass {
  background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .28);
  border-radius: 24px; padding: 20px; backdrop-filter: blur(8px);
}
.score-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.score h3 { margin: 0; font-size: 1.05rem; }
.metric { display: flex; justify-content: space-between; padding: 9px 0; border-top: 1px solid rgba(255, 255, 255, .18); font-size: .95rem; }
.metric b { font-size: 1.05rem; }
.bar { height: 8px; border-radius: 99px; background: rgba(255, 255, 255, .25); margin-top: 10px; overflow: hidden; }
.bar i { display: block; height: 100%; width: 90%; background: linear-gradient(90deg, #a5b4fc, #fdba74); border-radius: 99px; }
.section { padding: 44px 0 8px; }
.section-head { max-width: 620px; margin-bottom: 18px; }
.section-head .eyebrow { color: var(--violet); opacity: 1; }
.tag {
  display: inline-block; background: #ede9fe; color: var(--deep); font-weight: 800;
  font-size: .78rem; border-radius: 999px; padding: 4px 12px; margin-bottom: 8px;
}
.product-card .price, .price { font-size: 2rem; font-weight: 900; margin: 6px 0; }
.price span { font-size: .95rem; color: var(--muted); font-weight: 600; }
.big-price { font-size: 2.4rem; font-weight: 900; }
.featured { border: 2px solid transparent; background:
  linear-gradient(#fff, #fff) padding-box, var(--grad) border-box; }
.steps4 { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; }
.step { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 16px; box-shadow: var(--shadow-sm); }

/* ---------- product step flows (visual progression) ----------
   Each product's steps are a connected flow: numbered gradient nodes
   on a gradient track with chevrons, horizontal on desktop; the track
   turns vertical (line down the left) on mobile. */
.flow { list-style: none; margin: 20px 0 4px; padding: 0; display: grid; gap: 14px; position: relative; }
.flow-4 { grid-template-columns: repeat(4, 1fr); }
.flow-3 { grid-template-columns: repeat(3, 1fr); }
.flow::before {
  content: ""; position: absolute; top: 22px; height: 3px; border-radius: 99px;
  background: linear-gradient(90deg, #6366f1, #8b5cf6 55%, #fb923c);
}
.flow-4::before { left: 23px; right: calc(25% - 23px); }
.flow-3::before { left: 23px; right: calc(33.333% - 23px); }
.flow-step { position: relative; }
.flow-node {
  position: relative; z-index: 1; display: flex; align-items: center; justify-content: center;
  width: 46px; height: 46px; border-radius: 50%; background: var(--grad); color: #fff;
  font-weight: 800; font-size: 1.05rem; border: 3px solid #fff;
  box-shadow: 0 6px 16px rgba(109, 40, 217, .28);
}
.flow-step:not(:last-child)::after {
  content: ""; position: absolute; top: 18px; right: -9px; z-index: 1;
  width: 9px; height: 9px; border-top: 3px solid #8b5cf6; border-right: 3px solid #8b5cf6;
  transform: rotate(45deg);
}
.flow-body h3 { font-size: 1.04rem; margin: 12px 0 4px; display: flex; align-items: center; gap: 7px; }
.flow-icon { width: 19px; height: 19px; flex: none; color: var(--deep); }
.flow-body p { color: var(--muted); font-size: .9rem; margin: 0; }
.how-it-starts { background: linear-gradient(180deg, #f5f3ff, #ede9fe); border-left: 5px solid var(--violet); }
/* evaluation-first mini flow inside the callout reuses .flow/.flow-4 */
.eval-flow { margin: 14px 0 12px; }
/* grade pairs as a rising ladder: each pair steps up left → right,
   chevrons in the gaps, a science chip line inside every card */
.grade-ladder { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 16px 0 6px; }
.grade-card { position: relative; background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 14px 16px; box-shadow: var(--shadow-sm); }
.grade-card:nth-child(1) { margin-top: 30px; }
.grade-card:nth-child(2) { margin-top: 15px; }
.grade-card:nth-child(3) { margin-top: 0; }
.grade-card:not(:last-child)::after {
  content: ""; position: absolute; top: 36px; right: -11px; z-index: 2;
  width: 9px; height: 9px; border-top: 3px solid #8b5cf6; border-right: 3px solid #8b5cf6;
  transform: rotate(45deg);
}
.grade-pill { display: inline-block; padding: 3px 12px; border-radius: 99px; background: var(--grad); color: #fff; font-weight: 800; font-size: .85rem; margin-bottom: 8px; }
.grade-card p { color: var(--muted); font-size: .9rem; margin: 0 0 8px; }
.grade-card .sci-line { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: 0; }
.sci-tag { font-weight: 800; font-size: .78rem; color: #166534; text-transform: uppercase; letter-spacing: .08em; margin-right: 2px; }
.sci-chip {
  background: #f0fdf4; border: 1px solid #bbf7d0; color: #166534;
  border-radius: 999px; padding: 2px 10px; font-size: .8rem; font-weight: 600;
}
.step b { display: block; margin-bottom: 4px; }
.step p { color: var(--muted); font-size: .94rem; margin: 0; }
.quote { margin: 0; font-size: 1.05rem; }
.quote footer { color: var(--muted); font-size: .9rem; margin-top: 10px; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 12px 16px; margin: 10px 0; }
.faq summary { font-weight: 700; cursor: pointer; }
.cta-band {
  border-radius: 28px; color: #fff; text-align: center; padding: 40px 28px; margin: 34px 0 10px;
  background:
    radial-gradient(520px 300px at 102% 118%, rgba(251, 146, 60, .5), rgba(251, 146, 60, 0) 64%),
    radial-gradient(460px 280px at -8% -20%, rgba(165, 180, 252, .36), rgba(165, 180, 252, 0) 64%),
    linear-gradient(118deg, #6366f1 0%, #8b5cf6 58%, #a78bfa 84%, #fb923c 150%);
  background-color: #6366f1;
  box-shadow: 0 18px 44px rgba(109, 40, 217, .22);
}
.cta-band .micro { color: rgba(255, 255, 255, .84); }
.cta-band .btn { background: #fff; color: var(--deep); box-shadow: none; margin-top: 12px; }
.hw-hero { margin-bottom: 4px; }

/* ---------- icon-led feature rows, stat chips, product footers ---------- */
.chips { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
.hero .chip { background: rgba(255, 255, 255, .16); color: #fff; }
.feat { list-style: none; margin: 14px 0; padding: 0; display: grid; gap: 9px; }
.feat li { display: flex; gap: 10px; align-items: center; font-weight: 600; font-size: .97rem; }
.feat .fic {
  width: 34px; height: 34px; flex: none; display: flex; align-items: center; justify-content: center;
  border-radius: 12px; background: #ede9fe; font-size: 1.02rem;
}
.card.product { display: flex; flex-direction: column; }
.product-foot { margin-top: auto; }

/* ---------- compare page: price/time bars + check matrix ---------- */
.flow-6 { grid-template-columns: repeat(6, 1fr); }
.flow-6::before { left: 23px; right: calc(16.666% - 23px); }
.cbar-row { display: grid; grid-template-columns: 168px 1fr 190px; gap: 12px; align-items: center; margin: 12px 0; }
.cbar-name { font-weight: 700; font-size: .95rem; text-align: right; line-height: 1.25; }
.cbar-name small { display: block; color: var(--muted); font-weight: 600; font-size: .78rem; }
.cbar-track { position: relative; height: 26px; background: #ece7fd; border-radius: 99px; overflow: hidden; }
.cbar-fill { position: absolute; top: 0; bottom: 0; border-radius: 99px; background: #c4b5fd; min-width: 5px; }
.cbar-fill.us { background: var(--grad); box-shadow: var(--shadow-sm); }
.cbar-row.us .cbar-name, .cbar-row.us .cbar-val { color: var(--deep); }
.cbar-val { font-weight: 800; font-size: .95rem; white-space: nowrap; }
.cmp-wrap { overflow-x: auto; max-width: 100%; -webkit-overflow-scrolling: touch; }
table.cmp { min-width: 780px; }
table.cmp th, table.cmp td { text-align: center; }
table.cmp th:first-child, table.cmp td:first-child { text-align: left; font-weight: 600; }
table.cmp td.mk { font-size: 1.12rem; }
.mk-y { color: var(--ok); font-weight: 800; }
.mk-p { color: #b54708; font-weight: 800; }
.mk-n { color: #cfc9e8; }
table.cmp th.us { background: #ddd0fe; }
.legend { color: var(--muted); font-size: .9rem; }

/* flows inside product cards: full-width rows (node at left) at every
   width — a 3/4-column flow inside a half-width card collapses into
   one-word ribbons and makes the card extremely tall */
.card.product .flow { grid-template-columns: 1fr; gap: 16px; }
.card.product .flow::before {
  left: 22px; right: auto; top: 12px; bottom: 12px; width: 3px; height: auto;
  background: linear-gradient(180deg, #6366f1, #8b5cf6 55%, #fb923c);
}
.card.product .flow-step { display: flex; gap: 14px; align-items: flex-start; }
.card.product .flow-step::after { display: none; }
.card.product .flow-node { flex: none; }
.card.product .flow-body h3 { margin-top: 10px; }

/* book stack (compare page sample) */
.bstack-row {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  padding: 10px 2px; border-top: 1px solid var(--line); font-weight: 600;
}
.bstack-row:first-of-type { border-top: 0; }
.bstack-row b { font-size: 1.05rem; white-space: nowrap; }

/* ---------- desktop width: use the screen, keep the phone as-is ---------- */
@media (min-width: 1100px) {
  .wrap { max-width: 1160px; }
  .hero-grid { max-width: 1160px; }
  .section-head { max-width: 780px; }
}

/* ---------- app surfaces ---------- */
.plan-line { color: var(--muted); font-size: .95rem; margin-top: 2px; }
.child-card h3 { margin-top: 0; }
.pack-card { border-left: 6px solid var(--violet); }
.fixit-card { border: 2px solid var(--violet); background: linear-gradient(180deg, #fff, #f5f3ff); }
.guide { background: linear-gradient(180deg, #fff, #f5f3ff); }
.guide-text { white-space: pre-wrap; font-size: 1.02rem; }
.answers-note { color: var(--muted); font-style: italic; }
.context-panel { border: 2px solid var(--violet); background: linear-gradient(180deg, #fff, #f5f3ff); }
.ask-answer { border-top: 1px dashed var(--line); margin-top: 12px; padding-top: 10px; }
.ev-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 10px; }
.ev-actions form { margin: 0; }
.ev-draft { border: 2px solid var(--violet); background: linear-gradient(180deg, #fff, #f5f3ff); border-radius: 14px; padding: 12px 14px; margin-top: 12px; }
.billing-banner {
  background: #fff7ed; border: 1px solid #fed7aa; color: #9a3412;
  border-radius: 16px; padding: 12px 16px; margin: 14px 0; font-weight: 600;
}
.explainer-video { width: 100%; max-width: 640px; border-radius: 18px; margin: 10px 0; background: #000; }
.video-note { font-size: .95rem; }
.video-framing {
  background: #ede9fe; border-radius: 14px; padding: 10px 14px; font-weight: 600;
}
.upload-card { border-style: dashed; }
.rec-card h4 { margin-top: 0; }
ul.files { list-style: none; padding: 0; }
ul.files li { padding: 4px 0; }
ul.books { list-style: none; padding: 0; }
.book-row { padding: 10px 0; border-bottom: 1px solid var(--line); }
.book-title { font-weight: 700; }
.book-row select { width: auto; max-width: 200px; padding: 5px 10px; display: inline-block; }
.retell-box {
  background: #f5f3ff; border: 1px solid var(--line); border-radius: 16px;
  padding: 10px 14px; margin: 10px 0;
}
ol.library-list { list-style: none; padding: 0; }
.library-row { padding: 8px 0; border-bottom: 1px solid var(--line); }
.library-row label { display: flex; gap: 10px; align-items: flex-start; font-weight: 600; margin: 0; }
.library-check { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--deep); flex: none; }
.library-flag { font-size: 1rem; }

/* ---------- pack pages / print ---------- */
.print-area { background: #fff; color: #111; border-radius: 18px; padding: 22px; margin: 14px 0; }
.sitting-head {
  background: #ede9fe; border-radius: 14px; padding: 10px 16px;
  font-size: 1.15rem; font-weight: 800; margin: 18px 0 6px;
}
.nearby-badge {
  background: #dcfce7; color: #166534; border-radius: 999px;
  padding: 2px 10px; font-size: .8rem; font-weight: 700; margin-left: 8px;
}
.break-divider { text-align: center; color: var(--muted); font-weight: 700; margin: 22px 0; }
.frame-line { color: var(--muted); font-size: .95rem; }
.operator-key { border: 2px dashed var(--violet); }
.science-block { background: #f0fdf4; border: 1px solid #bbf7d0; border-radius: 16px; padding: 12px 16px; margin: 12px 0; }
.passage { font-size: 1.08rem; line-height: 1.7; white-space: pre-wrap; }
.wordbank { background: #f5f3ff; border-radius: 12px; padding: 8px 12px; }

/* vertical-format arithmetic problems (screen + print) */
.vgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 18px 22px; margin: 14px 0; }
.vprob { font-family: "Courier New", ui-monospace, monospace; font-size: 1.25rem; }
.vp-num { text-align: right; letter-spacing: .35em; }
.vp-ans { border-top: 3px solid #111; height: 1.7em; }
.vprob.fact .vp-num { font-size: 1.1rem; }
.print-list { font-size: 1.05rem; line-height: 2; }

@media print {
  body { background: #fff; }
  .topbar, .foot, .noprint { display: none !important; }
  .wrap { max-width: none; padding: 0; }
  .print-area { border: 0; padding: 0; margin: 0; }
  .card { box-shadow: none; border-color: #ccc; }
}

@media (max-width: 760px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-panel { padding: 38px 20px 42px; }
  .topbar { flex-wrap: wrap; }
  .mark { width: 40px; height: 40px; border-radius: 13px; }
  .brand-name { font-size: 1.25rem; }
  /* compare bars stack: name + value on one line, track below */
  .cbar-row { grid-template-columns: 1fr auto; grid-template-areas: "name val" "track track"; row-gap: 4px; margin: 14px 0; }
  .cbar-name { text-align: left; grid-area: name; }
  .cbar-track { grid-area: track; }
  .cbar-val { grid-area: val; }
  /* flows turn vertical: track runs down the left, nodes sit on it */
  .flow-4, .flow-3, .flow-6 { grid-template-columns: 1fr; gap: 20px; }
  .flow::before {
    left: 22px; right: auto; top: 12px; bottom: 12px; width: 3px; height: auto;
    background: linear-gradient(180deg, #6366f1, #8b5cf6 55%, #fb923c);
  }
  .flow-step { display: flex; gap: 14px; align-items: flex-start; }
  .flow-step::after { display: none; }
  .flow-node { flex: none; }
  .flow-body h3 { margin-top: 10px; }
  /* grade ladder stacks on the vertical gradient line, dots on the track */
  .grade-ladder { grid-template-columns: 1fr; padding-left: 28px; }
  .grade-ladder::before {
    content: ""; position: absolute; left: 10px; top: 10px; bottom: 10px; width: 3px;
    border-radius: 99px; background: linear-gradient(180deg, #6366f1, #8b5cf6 55%, #fb923c);
  }
  .grade-card:nth-child(1), .grade-card:nth-child(2), .grade-card:nth-child(3) { margin-top: 0; }
  .grade-card:not(:last-child)::after { display: none; }
  .grade-card::before {
    content: ""; position: absolute; left: -25px; top: 20px; width: 13px; height: 13px;
    border-radius: 50%; background: var(--grad); border: 2.5px solid #fff;
    box-shadow: 0 2px 6px rgba(109, 40, 217, .3); z-index: 1;
  }
}

/* ---------- Evaluation loop (Nov 4, 2026 — migration 0008) ---------- */
/* Per-question check rows, the Not-clear parent input, the parent
   acknowledgment, and the landing page's sample account replicas. */
.q-block { margin-top: 10px; }
.q-row { padding: 6px 0; border-top: 1px solid #ece9f7; margin: 0; }
.unclear-box {
  border: 1.5px dashed #f59e0b; background: #fffbeb; border-radius: 10px;
  padding: 10px 12px; margin: 10px 0;
}
.unclear-box p { margin: 0 0 8px; }
.ack-box { margin-top: 12px; }
.ack-done { color: #15803d; font-weight: 600; }
.acct-shot .chart { width: 100%; height: auto; }
.video-frame {
  background: linear-gradient(135deg, #312e81, #4c1d95); border-radius: 12px;
  color: #fff; padding: 18px 14px 12px; text-align: center; margin: 10px 0;
}
.video-frame .vf-play {
  display: inline-block; width: 52px; height: 52px; line-height: 52px;
  font-size: 1.4rem; background: rgba(255, 255, 255, .18); border-radius: 999px;
}
.video-frame .vf-label { display: block; margin-top: 8px; font-size: .92rem; }
.video-frame .vf-bar {
  display: block; height: 6px; background: rgba(255, 255, 255, .25);
  border-radius: 3px; margin-top: 12px;
}
.video-frame .vf-bar i { display: block; height: 100%; background: #fb923c; border-radius: 3px; }
