/* =========================================================
   Charted Edu Tech — Course Compass marketing site
   Design system: nautical / cartography. Deep navy + treasure
   gold + parchment cream. All imagery is inline SVG or a
   labeled placeholder slot — no AI raster assets baked in.
   ========================================================= */

:root {
  /* Brand palette */
  --navy-900: #0a1626;
  --navy-800: #0e2038;
  --navy-700: #15314f;
  --gold:     #f0b429;
  --gold-2:   #f7cf6b;
  --teal:     #2dd4bf;
  --cream:    #f8f3e7;
  --paper:    #ffffff;
  --ink:      #16202e;
  --muted:    #5b6b7e;
  --line:     #e6e2d5;
  --line-2:   #eceae2;

  --maxw: 1120px;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 18px 50px -22px rgba(10, 22, 38, .45);
  --shadow-soft: 0 10px 30px -18px rgba(10, 22, 38, .35);

  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 76px; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation: none !important; transition: none !important; }
}

.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: 24px; }

a { color: inherit; text-decoration: none; }

.skip-link {
  position: absolute; left: -999px; top: 8px; z-index: 100;
  background: var(--navy-900); color: #fff; padding: 10px 16px; border-radius: 8px;
}
.skip-link:focus { left: 16px; }

:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; border-radius: 6px; }
main:focus { outline: none; }

/* ===================== BUTTONS ===================== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-family: var(--font-body); font-weight: 600; font-size: 15px; line-height: 1;
  padding: 12px 20px; border-radius: 999px; border: 1.5px solid transparent;
  cursor: pointer; transition: transform .12s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease, color .2s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-lg { padding: 15px 26px; font-size: 16px; }
.btn-block { display: flex; width: 100%; }

.btn-gold { background: var(--gold); color: var(--navy-900); box-shadow: 0 10px 24px -10px rgba(240,180,41,.7); }
.btn-gold:hover { background: var(--gold-2); box-shadow: 0 14px 30px -10px rgba(240,180,41,.85); }

.btn-outline { background: transparent; border-color: var(--navy-800); color: var(--navy-800); }
.btn-outline:hover { background: var(--navy-900); color: #fff; border-color: var(--navy-900); }

/* On dark backgrounds (hero, how, install) the navy outline is invisible — override to white. */
.hero .btn-outline,
.how .btn-outline,
.install .btn-outline { border-color: rgba(255,255,255,.6); color: rgba(255,255,255,.9); }
.hero .btn-outline:hover,
.how .btn-outline:hover,
.install .btn-outline:hover { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.85); color: #fff; }

.btn-ghost { background: transparent; color: rgba(255,255,255,.85); padding: 10px 14px; }
.btn-ghost:hover { color: #fff; }

/* ===================== NAV ===================== */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(10, 22, 38, .82);
  backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.nav-inner { display: flex; align-items: center; gap: 20px; height: 66px; }

.brand { display: inline-flex; align-items: center; gap: 10px; color: #fff; font-weight: 700; }
.brand-mark { color: var(--gold); flex: none; }
.brand-text { font-family: var(--font-display); font-size: 19px; letter-spacing: .2px; }
.brand-dim { color: rgba(255,255,255,.55); font-weight: 600; }

.nav-links { display: flex; gap: 26px; margin-left: 14px; }
.nav-links a { color: rgba(255,255,255,.78); font-size: 15px; font-weight: 500; }
.nav-links a:hover { color: #fff; }
.nav-links a.nav-active { color: #fff; border-bottom: 2px solid var(--gold); padding-bottom: 2px; }
.nav-links a[aria-current="page"] { color: #fff; border-bottom: 2px solid var(--gold); padding-bottom: 2px; }

.nav-cta { margin-left: auto; display: flex; align-items: center; gap: 10px; }

.nav-toggle { display: none; margin-left: auto; flex-direction: column; gap: 5px; background: none; border: 0; padding: 8px; cursor: pointer; }
.nav-toggle span { width: 24px; height: 2px; background: #fff; border-radius: 2px; transition: transform .22s ease, opacity .18s ease; transform-origin: center; }

.nav-drawer { display: none; flex-direction: column; gap: 4px; padding: 12px 24px 20px; background: var(--navy-900); border-bottom: 1px solid rgba(255,255,255,.08); }
.nav-drawer a { color: rgba(255,255,255,.85); padding: 12px 4px; font-size: 16px; border-bottom: 1px solid rgba(255,255,255,.06); }
.nav-drawer .btn { margin-top: 12px; }

/* ===================== HERO ===================== */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(1200px 520px at 78% -8%, rgba(45,212,191,.16), transparent 60%),
    radial-gradient(900px 480px at 8% 0%, rgba(240,180,41,.14), transparent 55%),
    linear-gradient(180deg, var(--navy-900), var(--navy-800));
  color: #fff;
  padding: 64px 0 0;
}
.hero-glow {
  position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 26px 26px; opacity: .5;
  -webkit-mask-image: radial-gradient(900px 500px at 50% 0%, #000, transparent 75%);
          mask-image: radial-gradient(900px 500px at 50% 0%, #000, transparent 75%);
}
.hero-grid {
  position: relative; display: grid; grid-template-columns: 1.05fr .95fr;
  gap: 48px; align-items: center; padding-bottom: 56px;
}
.eyebrow {
  display: inline-block; font-size: 13px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  color: var(--gold-2); background: rgba(240,180,41,.12); border: 1px solid rgba(240,180,41,.3);
  padding: 6px 12px; border-radius: 999px; margin-bottom: 20px;
}
.hero h1 {
  font-family: var(--font-display); font-weight: 600; font-size: clamp(34px, 5.2vw, 58px);
  line-height: 1.04; letter-spacing: -.5px; margin: 0 0 18px;
}
.lede { font-size: clamp(16px, 1.6vw, 19px); color: rgba(255,255,255,.82); max-width: 36ch; margin: 0 0 28px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 16px; }
.hero-note { font-size: 13.5px; color: rgba(255,255,255,.6); margin: 0; }

/* Browser-framed product shot */
.hero-visual { position: relative; }
.browser-frame {
  background: #fff; border-radius: 14px; box-shadow: var(--shadow);
  border: 1px solid rgba(255,255,255,.12); overflow: hidden; transform: rotate(.4deg);
}
.browser-bar {
  display: flex; align-items: center; gap: 7px; padding: 11px 14px;
  background: #f1f0ec; border-bottom: 1px solid #e2e0d8;
}
.browser-bar .dot { width: 11px; height: 11px; border-radius: 50%; background: #cfccc2; }
.browser-bar .dot:nth-child(1){ background:#ed6a5e; } .browser-bar .dot:nth-child(2){ background:#f4bf4f; } .browser-bar .dot:nth-child(3){ background:#61c554; }
.browser-url { margin-left: 10px; font-size: 12.5px; color: #8a857a; background: #fff; border: 1px solid #e2e0d8; border-radius: 7px; padding: 4px 12px; }
.browser-screen { aspect-ratio: 16 / 10; background: linear-gradient(135deg, #eef1f5, #e2e7ee); }

.hero-badge {
  position: absolute; bottom: -18px; left: -16px;
  display: flex; align-items: center; gap: 10px;
  background: #fff; color: var(--ink); border-radius: 14px; padding: 12px 16px; box-shadow: var(--shadow-soft);
}
.hero-badge-coin { font-size: 26px; }
.hero-badge strong { display: block; font-size: 15px; }
.hero-badge span { font-size: 12.5px; color: var(--muted); }

/* Placeholder asset slot — easy to spot for human replacement */
.placeholder-asset {
  position: relative;
  display: flex; align-items: center; justify-content: center;
  background:
    repeating-linear-gradient(45deg, rgba(21,49,79,.05) 0 12px, rgba(21,49,79,.09) 12px 24px);
  color: var(--navy-700);
}
.placeholder-tag {
  font-size: 12.5px; font-weight: 600; letter-spacing: .02em;
  background: rgba(255,255,255,.9); border: 1px dashed var(--navy-700);
  padding: 7px 12px; border-radius: 8px;
}

/* Trust strip */
.trust-strip {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 12px;
  padding: 18px 24px 22px; font-size: 13.5px; color: rgba(255,255,255,.62);
  border-top: 1px solid rgba(255,255,255,.08);
}
.trust-sep { color: rgba(255,255,255,.3); }

/* ===================== SECTIONS ===================== */
.section { padding: 84px 0; }
.kicker {
  display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: #7a5800; margin-bottom: 14px;
}
.section-title {
  font-family: var(--font-display); font-weight: 600; font-size: clamp(26px, 3.6vw, 40px);
  line-height: 1.12; letter-spacing: -.3px; margin: 0 0 14px; max-width: 22ch;
}
.section-title em { font-style: italic; color: #7a5800; }
.section-sub { font-size: 17px; color: var(--muted); max-width: 60ch; margin: 0 0 8px; }

/* Problem */
.problem { background: var(--paper); border-block: 1px solid var(--line-2); }
.problem .section-title { max-width: 30ch; }
.problem-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 40px; }
.prob-card { background: var(--cream); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.prob-ico { font-size: 30px; margin-bottom: 12px; }
.prob-card h3 { font-size: 18px; margin: 0 0 6px; }
.prob-card p { margin: 0; color: var(--muted); font-size: 15px; }

/* Features */
.feat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 40px; }
.feat-card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; box-shadow: var(--shadow-soft);
  transition: transform .15s ease, box-shadow .2s ease;
}
.feat-card:hover { transform: translateY(-3px); box-shadow: 0 24px 50px -28px rgba(10,22,38,.5); }
.feat-wide { grid-column: span 2; display: flex; flex-direction: column; }
.feat-ico {
  width: 50px; height: 50px; display: grid; place-items: center; font-size: 26px;
  background: linear-gradient(135deg, rgba(240,180,41,.18), rgba(45,212,191,.16));
  border-radius: 14px; margin-bottom: 16px;
}
.feat-card h3 { font-size: 19px; margin: 0 0 8px; }
.feat-card p { margin: 0; color: var(--muted); font-size: 15px; }
.feat-shot { margin-top: 20px; flex: 1; min-height: 200px; border-radius: var(--radius-sm); border: 1px solid var(--line); }

/* How it works */
.how { background: var(--navy-900); color: #fff; }
.how .kicker { color: var(--gold-2); }
.how .section-title { color: #fff; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin: 44px 0 0; padding: 0; list-style: none; counter-reset: step; }
.step { position: relative; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.1); border-radius: var(--radius); padding: 30px 26px; }
.step-num {
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px;
  background: var(--gold); color: var(--navy-900); font-family: var(--font-display); font-weight: 700; font-size: 22px;
  margin-bottom: 16px;
}
.step h3 { font-size: 19px; margin: 0 0 8px; }
.step p { margin: 0; color: rgba(255,255,255,.72); font-size: 15px; }

/* Pricing */
.pricing { background: var(--paper); }
.price-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin: 40px 0 18px; align-items: start; }
.price-card { position: relative; background: var(--cream); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; }
.price-featured {
  background: var(--navy-900); color: #fff; border-color: var(--navy-900);
  box-shadow: var(--shadow); transform: translateY(-8px);
}
.price-flag {
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  background: var(--gold); color: var(--navy-900); font-size: 12px; font-weight: 700;
  padding: 5px 14px; border-radius: 999px; letter-spacing: .03em;
}
.price-name { font-family: var(--font-display); font-size: 22px; margin: 0 0 10px; }
.price-amt { display: flex; align-items: baseline; gap: 7px; margin-bottom: 6px; }
.price-num { font-family: var(--font-display); font-weight: 700; font-size: 40px; }
.price-per { color: var(--muted); font-size: 15px; }
.price-featured .price-per { color: rgba(255,255,255,.6); }
.price-tag { font-size: 14.5px; color: var(--muted); margin: 0 0 18px; }
.price-featured .price-tag { color: rgba(255,255,255,.72); }
.price-list { list-style: none; margin: 0 0 22px; padding: 0; display: grid; gap: 10px; }
.price-list li { position: relative; padding-left: 26px; font-size: 14.5px; }
.price-list li::before {
  content: "✓"; position: absolute; left: 0; top: 0;
  color: #1a8a3a; font-weight: 700;
}
.price-featured .price-list li::before { color: var(--gold-2); }
.price-fine { margin: 12px 0 0; font-size: 12.5px; color: rgba(255,255,255,.6); text-align: center; }
.price-foot { text-align: center; color: var(--muted); font-size: 14px; margin: 18px 0 0; }

/* Feature comparison table */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.compare-head { text-align: center; margin: 56px 0 22px; }
.compare-head h3 { font-family: var(--font-display); font-size: 26px; margin: 0 0 6px; }
.compare-head p { color: var(--muted); font-size: 15px; max-width: 52ch; margin: 0 auto; }
.compare-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: var(--radius); border: 1px solid var(--line); }
.compare { width: 100%; border-collapse: collapse; background: var(--paper); min-width: 640px; font-size: 14.5px; }
.compare th, .compare td { padding: 13px 18px; text-align: left; border-bottom: 1px solid var(--line-2); }
.compare thead th { position: sticky; top: 0; background: var(--paper); text-align: center; font-family: var(--font-display); font-size: 17px; font-weight: 600; padding-top: 20px; padding-bottom: 16px; border-bottom: 2px solid var(--line); }
.compare thead th:first-child { text-align: left; }
.compare thead .ch-price { display: block; font-family: var(--font-body); font-size: 12.5px; font-weight: 500; color: var(--muted); margin-top: 3px; }
.compare tbody th[scope="row"] { font-weight: 500; color: var(--ink); }
.compare td { text-align: center; }
.compare .grp th { background: var(--cream); font-weight: 700; font-size: 13px; letter-spacing: .02em; text-transform: uppercase; color: var(--navy-700); padding-top: 16px; padding-bottom: 12px; }
.compare .grp th span { text-transform: none; letter-spacing: 0; font-weight: 500; color: var(--muted); font-size: 12.5px; }
.compare .yes { color: #1a8a3a; font-weight: 700; }
.compare .part { display: inline-block; font-size: 12px; font-weight: 600; color: #7a5800; background: rgba(240,180,41,.16); padding: 2px 9px; border-radius: 999px; }
.compare .val { font-weight: 600; }
.compare .no { color: var(--muted); }
.compare .ch-featured { background: rgba(21,49,79,.035); }
.compare thead th.ch-featured { background: var(--navy-900); color: #fff; border-radius: 10px 10px 0 0; }
.compare thead th.ch-featured .ch-price { color: var(--gold-2); }
.compare-note { text-align: center; color: var(--muted); font-size: 13px; margin: 16px 0 0; max-width: 70ch; margin-inline: auto; }

@media (max-width: 720px) {
  /* Collapse the table into stacked per-feature rows with column labels. */
  .compare { min-width: 0; }
  .compare thead { display: none; }
  .compare, .compare tbody, .compare tr, .compare th, .compare td { display: block; }
  .compare tbody th[scope="row"] { border-bottom: 0; padding-bottom: 4px; font-weight: 700; }
  .compare tr { border-bottom: 1px solid var(--line); padding: 6px 0; }
  .compare .grp th { padding: 12px 18px; }
  .compare td { display: flex; justify-content: space-between; align-items: center; text-align: right; border-bottom: 0; padding: 6px 18px; }
  .compare td::before { content: attr(data-h); color: var(--muted); font-weight: 600; font-size: 13px; }
  .compare .ch-featured { background: transparent; }
}

/* Install CTA */
.install { background: linear-gradient(135deg, var(--navy-800), var(--navy-900)); color: #fff; }
.install-inner { text-align: center; max-width: 720px; }
.install h2 { font-family: var(--font-display); font-weight: 600; font-size: clamp(26px, 3.6vw, 38px); margin: 0 0 12px; }
.install p { color: rgba(255,255,255,.78); font-size: 18px; margin: 0 0 26px; }
.install-actions { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.install-meta { font-size: 13.5px; color: rgba(255,255,255,.6); }
.install-soon { font-size: 13px; color: rgba(255,255,255,.5); margin: 0; }
.install-notify-link { color: var(--gold-2); text-decoration: underline; text-underline-offset: 2px; }
.install-notify-link:hover { color: #fff; }

/* FAQ */
.faq { background: var(--cream); }
.faq-wrap { max-width: 760px; }
.faq-list { margin-top: 36px; display: grid; gap: 12px; }
.faq-item { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 4px 22px; }
.faq-item summary {
  cursor: pointer; list-style: none; padding: 18px 30px 18px 0; position: relative;
  font-weight: 600; font-size: 16.5px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+"; position: absolute; right: 0; top: 50%; transform: translateY(-50%);
  font-size: 24px; color: var(--muted); font-weight: 400; transition: transform .2s;
}
.faq-item[open] summary::after { content: "–"; }
.faq-item p { margin: 0 0 20px; color: var(--muted); font-size: 15px; }

/* FAQ more link */
.faq-more { margin-top: 28px; text-align: center; font-size: 15px; }
.faq-more a { color: #7a5800; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.faq-more a:hover { color: var(--navy-900); }
@media (prefers-color-scheme: dark) {
  .faq-more a { color: var(--gold); }
  .faq-more a:hover { color: var(--gold-2); }
}

/* Testimonials */
.social-proof { background: var(--navy-900); color: #fff; }
.social-proof .kicker { color: var(--gold-2); }
.social-proof .section-title { color: #fff; }
.testimonials { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 44px; }
.testi-card {
  position: relative;
  background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.11); border-radius: var(--radius);
  padding: 28px 26px 22px;
  margin: 0;
  display: flex; flex-direction: column; gap: 18px;
}
.testi-card.placeholder-asset { background: rgba(255,255,255,.05); }
.testi-card.placeholder-asset::before { display: none; }
.testi-card .placeholder-tag { display: none; }
.testi-quote { font-size: 15.5px; line-height: 1.65; color: rgba(255,255,255,.88); margin: 0; font-style: italic; }
.testi-attr { display: flex; align-items: center; gap: 12px; margin-top: auto; }
.testi-init {
  width: 38px; height: 38px; border-radius: 50%; flex: none;
  display: grid; place-items: center; font-weight: 700; font-size: 13px;
  background: linear-gradient(135deg, var(--gold), var(--teal)); color: var(--navy-900);
}
.testi-attr strong { display: block; font-size: 14px; color: #fff; }
.testi-role { display: block; font-size: 12.5px; color: rgba(255,255,255,.55); margin-top: 2px; }
.testi-stars { color: var(--gold); font-size: 14px; letter-spacing: 1px; margin-bottom: 4px; }
@media (max-width: 900px) { .testimonials { grid-template-columns: 1fr; } }

/* ===================== FOOTER ===================== */
.footer { background: var(--navy-900); color: #fff; padding: 60px 0 32px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 36px; padding-bottom: 40px; border-bottom: 1px solid rgba(255,255,255,.1); }
.footer-tag { color: rgba(255,255,255,.6); font-size: 14px; max-width: 32ch; margin: 14px 0 0; }
.footer-col h4 { font-size: 13px; text-transform: uppercase; letter-spacing: .1em; color: rgba(255,255,255,.5); margin: 0 0 14px; }
.footer-col a { display: block; color: rgba(255,255,255,.78); font-size: 15px; padding: 5px 0; }
.footer-col a:hover { color: var(--gold-2); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; padding-top: 24px; font-size: 13px; color: rgba(255,255,255,.55); }
.footer-disclaimer { color: rgba(255,255,255,.42); }

/* ===================== RESPONSIVE ===================== */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-cta { display: none; }
  .nav-toggle { display: flex; }
  .hero-grid { grid-template-columns: 1fr; gap: 40px; padding-bottom: 40px; }
  .hero-visual { max-width: 520px; }
  .problem-grid, .feat-grid, .steps, .price-grid { grid-template-columns: 1fr; }
  .feat-wide { grid-column: span 1; }
  .price-featured { transform: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .section { padding: 60px 0; }
  .hero-actions .btn { flex: 1; }
  .footer-grid { grid-template-columns: 1fr; }
}

/* ===================== PRINT ===================== */
@media print {
  .nav, .nav-drawer, .footer, #scrollTop,
  .install, .hero-badge, .trust-strip,
  .faq-jump, .back-link,
  .btn { display: none !important; }

  body { background: #fff !important; color: #000 !important; font-size: 12pt; }
  .section { padding: 20px 0; }
  .wrap { max-width: 100%; padding-inline: 0; }

  a[href]::after { content: " (" attr(href) ")"; font-size: 0.8em; color: #555; }
  a[href^="#"]::after,
  a[href^="mailto:"]::after { content: ""; }

  .compare-scroll { overflow: visible; border: none; }
  .price-featured { transform: none; }
  h1, h2, h3 { page-break-after: avoid; }
  p, li { orphans: 3; widows: 3; }
}

/* ===================== SCROLL-TO-TOP ===================== */
#scrollTop {
  position: fixed; bottom: 28px; right: 28px; z-index: 90;
  width: 44px; height: 44px; border-radius: 50%; border: none; cursor: pointer;
  display: grid; place-items: center;
  background: var(--navy-900); color: var(--gold);
  box-shadow: 0 4px 16px -4px rgba(10,22,38,.5);
  opacity: 0; transform: translateY(12px);
  transition: opacity .22s ease, transform .22s ease;
  pointer-events: none;
}
#scrollTop.visible { opacity: 1; transform: translateY(0); pointer-events: auto; }
#scrollTop:hover { background: var(--navy-700); }
#scrollTop:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
@media (max-width: 560px) { #scrollTop { bottom: 16px; right: 16px; } }

/* ===================== HAMBURGER X ANIMATION ===================== */
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===================== PERIOD TOGGLE ===================== */
.period-toggle {
  display: flex; align-items: center; justify-content: center;
  gap: 0; background: rgba(21,49,79,.07); border: 1px solid var(--line);
  border-radius: 999px; padding: 4px; width: fit-content; margin: 0 auto 32px;
}
.period-btn {
  background: none; border: none; cursor: pointer;
  font-family: var(--font-body); font-size: 14px; font-weight: 600;
  color: var(--muted); padding: 9px 22px; border-radius: 999px;
  transition: background .18s, color .18s;
}
.period-btn.active { background: var(--gold); color: var(--navy-900); }
.save-badge {
  display: inline-block; background: rgba(45,212,191,.2); color: #0a5f56;
  font-size: 11px; font-weight: 700; letter-spacing: .04em;
  padding: 3px 9px; border-radius: 999px; margin-left: 6px; vertical-align: middle;
}

/* ===================== SCROLL REVEAL ===================== */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .5s ease, transform .5s ease; }
.reveal.revealed { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1 !important; transform: none !important; } }

/* ===================== HERO PANEL MOCK ===================== */
.mock-panel-host { display: flex; align-items: stretch; overflow: hidden; }
.mock-canvas-bg {
  flex: 1; background: #e8edf5; padding: 14px 12px;
  display: flex; flex-direction: column; gap: 7px; overflow: hidden;
}
.mock-canvas-topnav { display: flex; gap: 8px; align-items: center; margin-bottom: 4px; }
.mock-skel { background: rgba(255,255,255,.72); border-radius: 4px; height: 9px; }
.mock-cc-panel {
  width: 186px; flex: none; background: var(--navy-900);
  border-left: 1px solid rgba(255,255,255,.1);
  display: flex; flex-direction: column;
  font-family: var(--font-body);
}
.mock-cc-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 7px 10px; border-bottom: 1px solid rgba(255,255,255,.1);
  background: rgba(0,0,0,.18); color: #fff;
  font-weight: 700; font-size: 10.5px; letter-spacing: .01em;
}
.mock-cc-brand { display: flex; align-items: center; gap: 5px; }
.mock-cc-streak {
  background: rgba(240,180,41,.22); color: var(--gold-2);
  font-size: 10px; font-weight: 700; padding: 2px 7px; border-radius: 999px;
}
.mock-cc-body { flex: 1; padding: 7px; display: flex; flex-direction: column; gap: 5px; overflow: hidden; }
.mock-cc-item {
  display: flex; align-items: center; gap: 7px;
  background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.1);
  border-radius: 7px; padding: 6px 8px;
}
.mock-cc-item.mock-cc-hot { background: rgba(220,70,50,.22); border-color: rgba(220,70,50,.3); }
.mock-cc-item.mock-cc-dim { opacity: .55; }
.mock-cc-score {
  width: 26px; height: 26px; flex: none; border-radius: 6px;
  background: var(--gold); color: var(--navy-900);
  display: grid; place-items: center; font-weight: 700; font-size: 10.5px;
}
.mock-cc-hot .mock-cc-score { background: linear-gradient(135deg, #c0392b, #e74c3c); color: #fff; }
.mock-cc-name { font-size: 10.5px; font-weight: 600; color: rgba(255,255,255,.92); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mock-cc-due { font-size: 9.5px; color: rgba(255,255,255,.5); margin-top: 2px; }
.mock-cc-hot .mock-cc-due { color: rgba(255,150,130,.85); }
.mock-cc-foot {
  padding: 6px 10px; border-top: 1px solid rgba(255,255,255,.08);
  font-size: 10px; color: rgba(255,255,255,.5);
  background: rgba(0,0,0,.14);
}

/* ===================== FEATURE PRIORITY MOCK ===================== */
.feat-priority-mock {
  background: var(--navy-800);
  border-color: rgba(255,255,255,.1) !important;
  display: flex;
  align-items: stretch;
  padding: 0;
  overflow: hidden;
}

.fp-mock-wrap {
  display: flex;
  flex-direction: column;
  width: 100%;
  font-family: var(--font-body);
  font-size: 13px;
}

/* Column header row */
.fp-mock-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 14px 8px;
  border-bottom: 1px solid rgba(255,255,255,.1);
  background: rgba(0,0,0,.2);
}
.fp-mock-col {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: rgba(255,255,255,.38);
}
.fp-mock-col-score { flex: none; width: 54px; }
.fp-mock-col-name  { flex: 1; }
.fp-mock-col-meta  { flex: none; width: 130px; text-align: right; }

/* Data rows */
.fp-mock-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 14px;
  border-bottom: 1px solid rgba(255,255,255,.07);
  transition: background .15s ease;
}
.fp-mock-row:last-of-type { border-bottom: none; }

.fp-mock-urgent {
  background: rgba(192,57,43,.18);
  border-bottom-color: rgba(192,57,43,.22) !important;
}

.fp-mock-dim  { opacity: .62; }
.fp-mock-dimmer { opacity: .38; }

/* Score badge */
.fp-mock-badge {
  flex: none;
  width: 30px;
  height: 30px;
  border-radius: 7px;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 11.5px;
}
.fp-mock-badge-red  { background: linear-gradient(135deg, #c0392b, #e74c3c); color: #fff; }
.fp-mock-badge-gold { background: var(--gold); color: var(--navy-900); }
.fp-mock-badge-muted { background: rgba(255,255,255,.12); color: rgba(255,255,255,.55); }

/* Name + course column */
.fp-mock-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.fp-mock-name {
  font-size: 13px;
  font-weight: 600;
  color: rgba(255,255,255,.9);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.fp-mock-urgent .fp-mock-name { color: #fff; }
.fp-mock-course {
  font-size: 11px;
  color: rgba(255,255,255,.42);
}

/* Due / pts column */
.fp-mock-meta {
  flex: none;
  width: 130px;
  text-align: right;
  font-size: 11.5px;
  color: rgba(255,255,255,.45);
  white-space: nowrap;
}
.fp-mock-urgent .fp-mock-meta { color: rgba(255,160,140,.85); }

/* Footer row */
.fp-mock-footer {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-top: 1px solid rgba(255,255,255,.09);
  background: rgba(0,0,0,.18);
  font-size: 11.5px;
  color: rgba(255,255,255,.45);
}
.fp-mock-footer-sep { color: rgba(255,255,255,.22); }

/* Legal page shared components (privacy.html + terms.html) */
.legal-toc { margin-bottom: 36px; }
.legal-toc > p { font-size: 0.8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin: 0 0 10px; }
.legal-toc ol { list-style: decimal; padding-left: 1.3em; margin: 0; display: grid; gap: 4px; }
.legal-toc li { opacity: .8; font-size: 0.9rem; }
.legal-also h2 { font-size: 1rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin: 0 0 14px; }
.legal-also ul { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px; }

/* ===================== DARK MODE ===================== */
@media (prefers-color-scheme: dark) {
  :root {
    --cream:  #111827;
    --paper:  #1a2535;
    --ink:    #e8edf3;
    --muted:  #8fa3b8;
    --line:   #2a3a4e;
    --line-2: #243041;
  }
  .problem { background: var(--paper); }
  .faq { background: var(--cream); }
  .prob-card { background: #1f2f42; }
  .btn-outline { border-color: rgba(255,255,255,.35); color: #e8edf3; }
  .btn-outline:hover { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.5); color: #fff; }
  .pricing { background: var(--paper); }
  .price-card { background: #1f2f42; border-color: var(--line); }
  .compare { background: var(--paper); }
  .compare thead th { background: var(--paper); }
  .compare .grp th { background: var(--cream); color: rgba(255,255,255,.65); }
  .compare .grp th span { color: rgba(255,255,255,.4); }
  .compare-scroll { border-color: var(--line); }

  /* Hardcoded amber/green colors need override on dark backgrounds */
  .kicker { color: var(--gold); }
  .section-title em { color: var(--gold); }
  .compare .yes { color: #4ade80; }
  .compare .part { color: var(--gold); background: rgba(240,180,41,.22); }
  .price-list li::before { color: #4ade80; }
  .price-featured .price-list li::before { color: var(--gold-2); }
  /* Floating badge: white bg + --ink text = invisible in dark mode */
  .hero-badge { background: #1f2f42; }
  /* FAQ items + feature cards: bump to same depth as prob-card/price-card */
  .faq-item { background: #1f2f42; }
  .feat-card { background: #1f2f42; }

  /* Browser frame — soften the white-on-dark-hero appearance */
  .browser-frame { background: #1e2a38; border-color: rgba(255,255,255,.12); }
  .browser-bar { background: #253445; border-bottom-color: rgba(255,255,255,.08); }
  .browser-bar .dot { background: #3a4a5e; }
  .browser-bar .dot:nth-child(1) { background: #7a3535; }
  .browser-bar .dot:nth-child(2) { background: #7a6020; }
  .browser-bar .dot:nth-child(3) { background: #2d6040; }
  .browser-url { background: #1a2535; border-color: rgba(255,255,255,.1); color: rgba(255,255,255,.38); }
  /* Mock canvas skeleton area */
  .mock-canvas-bg { background: #1e2a38; }
  .mock-skel { background: rgba(255,255,255,.1); }

  /* Period toggle dark mode */
  .period-toggle { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.15); }
  .period-btn { color: rgba(255,255,255,.6); }
  .save-badge { color: #2dd4bf; }
}
