/* Educator Canvas — marketing site
   Global Fin X · brand palette from the GFX logo
   (charcoal cap · orange band · azure + navy open book)
   Light by default, full dark mode via system preference or the nav toggle. */

:root {
  /* Brand */
  --navy: #0e4a6e;
  --navy-deep: #0a3450;
  --blue: #2596cb;
  --blue-deep: #17608f;
  --blue-soft: #eaf4fb;
  --orange: #f5a623;
  --orange-deep: #e2870a;
  --amber-soft: #fdf0d8;
  --charcoal: #23303a;

  /* Surfaces / text */
  --ink: #16242e;
  --muted: #566976;
  --muted-2: #8595a0;
  --bg: #ffffff;
  --bg-soft: #f4f8fb;
  --bg-tint: #eef5fb;
  --line: #e0e8ee;
  --line-2: #cfdbe5;
  --panel: #ffffff;   /* cards, chips, footer */
  --panel-2: #ffffff; /* form inputs */

  /* Composites */
  /* Buttons — fixed accessible blues (white text ≥ 4.5:1 in both themes) */
  --btn-blue: #15679f;        /* white on this = 6.0:1 */
  --btn-blue-hover: #0f4d76;  /* white = 8.0:1 */
  --nav-bg: rgba(255, 255, 255, .88);
  --hero-grad: linear-gradient(180deg, var(--bg-tint), #ffffff);
  --visual-grad: linear-gradient(160deg, var(--bg-tint), #ffffff);
  --cta-grad: linear-gradient(135deg, #0e4a6e, #17608f);
  --callout-bg: #fdf5e6;
  --callout-bd: #f2dca5;
  --callout-tx: #6b5426;

  --radius: 16px;
  --radius-sm: 10px;
  --maxw: 1680px;
  --shadow-sm: 0 2px 10px rgba(14, 74, 110, .06);
  --shadow: 0 20px 46px rgba(14, 74, 110, .12);
  --shadow-blue: 0 16px 34px rgba(37, 150, 203, .28);
  --font: "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, Helvetica, Arial, sans-serif;
}

/* Dark theme — applied for system-dark (unless the user forced light),
   and whenever data-theme="dark" is set explicitly. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --navy: #e9f2f9;
    --navy-deep: #cfe0ed;
    --blue: #4aa8d8;
    --blue-deep: #7cc2e8;
    --blue-soft: rgba(74, 168, 216, .14);
    --orange: #f6b23c;
    --orange-deep: #f7bb52;
    --amber-soft: rgba(246, 178, 60, .15);
    --charcoal: #c6d3de;
    --ink: #e7eef5;
    --muted: #a2b1bf;
    --muted-2: #7c8b99;
    --bg: #0d141c;
    --bg-soft: #111a24;
    --bg-tint: #0f1a25;
    --line: #213040;
    --line-2: #31414f;
    --panel: #16212d;
    --panel-2: #111b26;
    --btn-blue: #1c78b8;        /* white on this = 4.7:1 */
    --btn-blue-hover: #2585c6;
    --nav-bg: rgba(13, 20, 28, .82);
    --hero-grad: linear-gradient(180deg, #0f1a25, #0d141c);
    --visual-grad: linear-gradient(160deg, #15212e, #0f1926);
    --cta-grad: linear-gradient(135deg, #0a2e45, #124e73);
    --callout-bg: #241f14;
    --callout-bd: #4a3f22;
    --callout-tx: #e6c98a;
    --shadow-sm: 0 2px 10px rgba(0, 0, 0, .3);
    --shadow: 0 20px 46px rgba(0, 0, 0, .5);
  }
}
:root[data-theme="dark"] {
  --navy: #e9f2f9;
  --navy-deep: #cfe0ed;
  --blue: #4aa8d8;
  --blue-deep: #7cc2e8;
  --blue-soft: rgba(74, 168, 216, .14);
  --orange: #f6b23c;
  --orange-deep: #f7bb52;
  --amber-soft: rgba(246, 178, 60, .15);
  --charcoal: #c6d3de;
  --ink: #e7eef5;
  --muted: #a2b1bf;
  --muted-2: #7c8b99;
  --bg: #0d141c;
  --bg-soft: #111a24;
  --bg-tint: #0f1a25;
  --line: #213040;
  --line-2: #31414f;
  --panel: #16212d;
  --panel-2: #111b26;
  --btn-blue: #1c78b8;
  --btn-blue-hover: #2585c6;
  --nav-bg: rgba(13, 20, 28, .82);
  --hero-grad: linear-gradient(180deg, #0f1a25, #0d141c);
  --visual-grad: linear-gradient(160deg, #15212e, #0f1926);
  --cta-grad: linear-gradient(135deg, #0a2e45, #124e73);
  --callout-bg: #241f14;
  --callout-bd: #4a3f22;
  --callout-tx: #e6c98a;
  --shadow-sm: 0 2px 10px rgba(0, 0, 0, .3);
  --shadow: 0 20px 46px rgba(0, 0, 0, .5);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  transition: background .25s ease, color .25s ease;
}
a { color: var(--blue-deep); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }
.container { max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }

/* Icons */
.icon { width: 24px; height: 24px; stroke: currentColor; fill: none; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.icon.solid { fill: currentColor; stroke: none; }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: var(--nav-bg);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 70px; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--navy); }
.brand:hover { text-decoration: none; }
.brand img { width: 40px; height: 40px; border-radius: 9px; }
.brand b { font-weight: 800; font-size: 16px; letter-spacing: -.2px; line-height: 1.1; display: block; }
.brand small { display: block; font-weight: 600; font-size: 10.5px; color: var(--muted-2); letter-spacing: .6px; text-transform: uppercase; }
.nav-links { display: flex; align-items: center; gap: 26px; }
.nav-links a:not(.btn) { color: var(--charcoal); font-size: 14.5px; font-weight: 600; }
.nav-links a:not(.btn):hover { color: var(--blue-deep); text-decoration: none; }

.theme-toggle {
  width: 40px; height: 40px; border-radius: 10px;
  border: 1.5px solid var(--line-2); background: var(--panel); color: var(--navy);
  display: grid; place-items: center; cursor: pointer; padding: 0;
  transition: border-color .14s ease, color .14s ease, background .14s ease;
}
.theme-toggle:hover { border-color: var(--blue); color: var(--blue-deep); }
.theme-toggle .icon { width: 20px; height: 20px; }
.theme-toggle .moon { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle .sun { display: none; }
  :root:not([data-theme="light"]) .theme-toggle .moon { display: block; }
}
:root[data-theme="dark"] .theme-toggle .sun { display: none; }
:root[data-theme="dark"] .theme-toggle .moon { display: block; }
:root[data-theme="light"] .theme-toggle .sun { display: block; }
:root[data-theme="light"] .theme-toggle .moon { display: none; }

.btn {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 11px 20px; border-radius: 10px;
  font-weight: 700; font-size: 14.5px; border: 1.5px solid transparent;
  cursor: pointer; transition: transform .14s ease, box-shadow .14s ease, background .14s ease, border-color .14s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn .icon { width: 18px; height: 18px; }
.btn-primary { background: var(--btn-blue); color: #fff; box-shadow: var(--shadow-blue); }
.btn-primary:hover { background: var(--btn-blue-hover); }
.btn-accent { background: var(--orange); color: #3a2600; box-shadow: 0 14px 30px rgba(245, 166, 35, .32); }
.btn-accent:hover { background: var(--orange-deep); color: #2c1c00; }
.btn-ghost { background: var(--panel); border-color: var(--line-2); color: var(--navy); }
.btn-ghost:hover { border-color: var(--blue); color: var(--blue-deep); background: var(--blue-soft); }
.btn-lg { padding: 14px 26px; font-size: 15px; border-radius: 12px; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; background: var(--hero-grad); border-bottom: 1px solid var(--line); }
.hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 4px; background: linear-gradient(90deg, var(--blue), var(--orange)); }
.hero-inner { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; padding: 76px 0 86px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 14px; border-radius: 999px;
  background: var(--panel); border: 1px solid var(--line-2);
  color: var(--blue-deep); font-size: 12.5px; font-weight: 700; letter-spacing: .3px;
  box-shadow: var(--shadow-sm); margin-bottom: 22px;
}
.eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--orange); }
.hero h1 { font-size: clamp(34px, 5vw, 56px); line-height: 1.06; margin: 0 0 20px; letter-spacing: -1.2px; font-weight: 800; color: var(--navy); }
.hero h1 .u { position: relative; white-space: nowrap; }
.hero h1 .u::after { content: ""; position: absolute; left: 0; right: 0; bottom: 4px; height: 10px; background: rgba(245, 166, 35, .38); z-index: -1; border-radius: 3px; }
.hero p.lead { font-size: clamp(16px, 2vw, 19px); color: var(--muted); max-width: 560px; margin: 0 0 30px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-meta { margin-top: 26px; display: flex; gap: 20px; flex-wrap: wrap; color: var(--muted); font-size: 13.5px; }
.hero-meta span { display: inline-flex; align-items: center; gap: 8px; }
.hero-meta .icon { width: 17px; height: 17px; color: var(--blue); }

/* Hero art — an "always light" product-frame island */
.hero-art { position: relative; }
.app-frame { border-radius: 18px; border: 1px solid #d7e2ec; background: #fff; box-shadow: var(--shadow); overflow: hidden; }
.app-top { display: flex; align-items: center; gap: 7px; padding: 11px 14px; background: #f4f8fb; border-bottom: 1px solid #e6edf3; }
.app-top .d { width: 10px; height: 10px; border-radius: 50%; }
.app-top .d.r { background: #f0785a; } .app-top .d.y { background: #f5a623; } .app-top .d.g { background: #38b48b; }
.app-top .t { margin-left: 8px; font-size: 11.5px; color: #8595a0; font-weight: 600; }
.app-body { display: grid; grid-template-columns: 1.1fr .9fr; min-height: 300px; }
.app-pdf { padding: 20px; border-right: 1px solid #e6edf3; }
.app-pdf .ln { height: 11px; border-radius: 5px; background: #e9eef3; margin-bottom: 13px; }
.app-pdf .ln.s { width: 60%; } .app-pdf .ln.m { width: 80%; } .app-pdf .ln.l { width: 92%; }
.app-pdf .ln.hl { background: rgba(245,166,35,.45); box-shadow: inset 0 0 0 1px rgba(245,166,35,.5); }
.app-pdf .ln.ul { position: relative; }
.app-pdf .ln.ul::after { content: ""; position: absolute; left: 0; right: 8%; bottom: -5px; height: 2px; background: #2596cb; }
.app-canvas { position: relative; background: radial-gradient(circle at 16px 16px, #dbe6ef 1.4px, transparent 1.5px); background-size: 20px 20px; padding: 18px; }
.app-canvas .eq { font-size: 22px; font-weight: 800; color: #0e4a6e; transform: rotate(-6deg); }
.app-canvas .eq b { color: #2596cb; }
.app-canvas .arrow { position: absolute; left: 30px; top: 96px; width: 120px; height: 40px; }
.app-knob { position: absolute; right: 16px; bottom: 16px; width: 58px; height: 58px; border-radius: 50%; background: radial-gradient(circle at 34% 30%, #2596cb, #0a3450); box-shadow: 0 12px 26px rgba(14,74,110,.4), inset 0 0 0 4px rgba(255,255,255,.14); display: grid; place-items: center; }
.app-knob .icon { color: #fff; width: 24px; height: 24px; }
.float-badge { position: absolute; background: #fff; border: 1px solid #dbe6ef; border-radius: 12px; box-shadow: var(--shadow); padding: 10px 13px; display: flex; align-items: center; gap: 9px; font-size: 13px; font-weight: 700; color: #0e4a6e; }
.float-badge .icon { width: 18px; height: 18px; color: #2596cb; }
.float-badge.b1 { top: -16px; right: 24px; }
.float-badge.b2 { bottom: -18px; left: -14px; }
.float-badge .tag-orange { color: #e2870a; }

/* ---------- Section ---------- */
.section { padding: 82px 0; }
.section.soft { background: var(--bg-soft); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { text-align: center; max-width: 660px; margin: 0 auto 54px; }
.kicker { display: inline-flex; align-items: center; gap: 8px; color: var(--orange-deep); font-weight: 800; font-size: 12.5px; letter-spacing: 1.4px; text-transform: uppercase; }
.kicker::before, .kicker::after { content: ""; width: 22px; height: 2px; background: var(--orange); border-radius: 2px; }
.section-head h2 { font-size: clamp(27px, 4vw, 40px); margin: 14px 0 14px; letter-spacing: -.7px; font-weight: 800; color: var(--navy); }
.section-head p { color: var(--muted); font-size: 17px; margin: 0; }

/* Feature grid */
.grid { display: grid; gap: 20px; }
.grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease; }
.card:hover { transform: translateY(-3px); border-color: var(--line-2); box-shadow: var(--shadow); }
.card .ico { width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; margin-bottom: 16px; background: var(--blue-soft); color: var(--blue-deep); border: 1px solid var(--line); }
.card .ico .icon { width: 24px; height: 24px; }
.card.accent .ico { background: var(--amber-soft); color: var(--orange-deep); border-color: var(--line); }
.card h3 { margin: 0 0 8px; font-size: 18px; font-weight: 800; color: var(--navy); letter-spacing: -.2px; }
.card p { margin: 0; color: var(--muted); font-size: 14.5px; }

/* Band */
.band { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }
.band.reverse .band-text { order: 2; }
.band-text .kicker { justify-content: flex-start; }
.band-text .kicker::after { display: none; }
.band-text h3 { font-size: clamp(23px, 3vw, 30px); margin: 12px 0 14px; letter-spacing: -.5px; color: var(--navy); font-weight: 800; }
.band-text p { color: var(--muted); font-size: 16px; }
.check-list { list-style: none; padding: 0; margin: 20px 0 0; }
.check-list li { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 13px; color: var(--charcoal); font-size: 15px; }
.check-list .icon { flex: none; width: 22px; height: 22px; color: var(--blue); margin-top: 1px; }
.band-visual { border-radius: var(--radius); border: 1px solid var(--line); background: var(--visual-grad); min-height: 300px; display: grid; place-items: center; padding: 34px; box-shadow: var(--shadow-sm); }
.chip-cloud { display: flex; flex-wrap: wrap; gap: 11px; justify-content: center; }
.chip { display: inline-flex; align-items: center; gap: 9px; padding: 10px 15px; border-radius: 999px; background: var(--panel); border: 1px solid var(--line-2); font-size: 13.5px; color: var(--navy); font-weight: 700; box-shadow: var(--shadow-sm); }
.chip .icon { width: 17px; height: 17px; color: var(--blue); }
.chip.o .icon { color: var(--orange-deep); }

/* Platforms */
.platforms { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.plat { text-align: center; padding: 34px 24px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); transition: transform .18s, box-shadow .18s; }
.plat:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.plat .pico { width: 56px; height: 56px; margin: 0 auto 16px; border-radius: 14px; display: grid; place-items: center; background: var(--blue-soft); color: var(--blue-deep); }
.plat .pico .icon { width: 28px; height: 28px; }
.plat h3 { margin: 0 0 6px; font-size: 18px; color: var(--navy); font-weight: 800; }
.plat h3 .soon { display: inline-block; margin-left: 6px; padding: 2px 8px; border-radius: 999px; background: var(--amber-soft); color: var(--orange-deep); font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .5px; vertical-align: middle; }
.plat p { margin: 0; color: var(--muted); font-size: 14.5px; }

/* Pricing */
.pricing-wrap { max-width: 540px; margin: 0 auto; }
.price-card { text-align: center; background: var(--panel); border: 1px solid var(--line-2); border-radius: 22px; padding: 46px 38px; box-shadow: var(--shadow); position: relative; overflow: hidden; }
.price-card::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 5px; background: linear-gradient(90deg, var(--blue), var(--orange)); }
.price-card .tag { color: var(--orange-deep); font-weight: 800; letter-spacing: 1.2px; text-transform: uppercase; font-size: 12.5px; }
.price-card .amount { font-size: 50px; font-weight: 800; margin: 12px 0 6px; letter-spacing: -1.5px; color: var(--navy); }
.price-card > p { color: var(--muted); }
.price-features { list-style: none; padding: 0; margin: 26px 0; text-align: left; }
.price-features li { display: flex; gap: 11px; align-items: center; padding: 9px 0; border-bottom: 1px dashed var(--line); color: var(--charcoal); font-size: 14.5px; }
.price-features .icon { width: 19px; height: 19px; color: var(--blue); flex: none; }

/* Waitlist form */
.waitlist { margin-top: 8px; }
.waitlist .row { display: flex; gap: 10px; }
.waitlist input[type="email"] { flex: 1; padding: 14px 16px; border-radius: 11px; border: 1.5px solid var(--line-2); font-size: 15px; font-family: inherit; color: var(--ink); background: var(--panel-2); }
.waitlist input[type="email"]::placeholder { color: var(--muted-2); }
.waitlist input[type="email"]:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px var(--blue-soft); }
.waitlist .hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.waitlist .msg { margin: 12px 0 0; font-size: 13.5px; min-height: 18px; font-weight: 600; }
.waitlist .msg.ok { color: #1f9d68; }
.waitlist .msg.err { color: #e2685a; }
.waitlist .note { margin-top: 10px; color: var(--muted-2); font-size: 12px; }

/* CTA */
.cta { text-align: center; background: var(--cta-grad); color: #fff; padding: 84px 0; position: relative; overflow: hidden; }
.cta::after { content: ""; position: absolute; inset: 0; background: radial-gradient(60% 120% at 50% 0%, rgba(245,166,35,.22), transparent 60%); pointer-events: none; }
.cta > .container { position: relative; }
.cta h2 { font-size: clamp(26px, 4vw, 40px); margin: 0 0 14px; font-weight: 800; letter-spacing: -.6px; color: #fff; }
.cta p { color: rgba(255,255,255,.82); font-size: 17px; max-width: 560px; margin: 0 auto 30px; }

/* ---------- Footer ---------- */
.footer { background: var(--panel); border-top: 1px solid var(--line); padding: 58px 0 34px; }
.footer-grid { display: grid; grid-template-columns: 1.7fr 1fr 1fr 1fr; gap: 36px; }
.footer h4 { font-size: 12px; text-transform: uppercase; letter-spacing: 1.2px; color: var(--muted-2); margin: 0 0 16px; }
.footer ul { list-style: none; padding: 0; margin: 0; }
.footer ul li { margin-bottom: 10px; }
.footer ul li a { color: var(--muted); font-size: 14px; }
.footer ul li a:hover { color: var(--blue-deep); text-decoration: none; }
.footer .brand { margin-bottom: 14px; }
.footer .about { color: var(--muted); font-size: 14px; max-width: 300px; }
.footer-bottom { border-top: 1px solid var(--line); margin-top: 42px; padding-top: 24px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; color: var(--muted-2); font-size: 13px; }

/* ---------- Legal ---------- */
.legal { padding: 56px 0 90px; }
.legal .container { max-width: var(--maxw); }
.legal-head { margin-bottom: 36px; padding-bottom: 26px; border-bottom: 1px solid var(--line); }
.legal-head h1 { font-size: clamp(28px, 5vw, 42px); margin: 0 0 10px; letter-spacing: -.7px; color: var(--navy); }
.legal-head .updated { color: var(--muted-2); font-size: 14px; }
.legal-body h2 { font-size: 21px; margin: 40px 0 12px; letter-spacing: -.3px; color: var(--navy); }
.legal-body h3 { font-size: 17px; margin: 26px 0 8px; color: var(--charcoal); }
.legal-body p, .legal-body li { color: var(--muted); font-size: 15.5px; }
.legal-body ul { padding-left: 22px; }
.legal-body li { margin-bottom: 8px; }
.legal-toc { background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 26px; margin-bottom: 40px; }
.legal-toc h4 { margin: 0 0 12px; font-size: 12px; text-transform: uppercase; letter-spacing: 1.2px; color: var(--muted-2); }
.legal-toc ol { margin: 0; padding-left: 20px; color: var(--muted); }
.legal-toc ol li { margin-bottom: 6px; }
.legal-toc a { color: var(--blue-deep); }
.callout { background: var(--callout-bg); border: 1px solid var(--callout-bd); border-radius: var(--radius-sm); padding: 16px 20px; color: var(--callout-tx); font-size: 14.5px; margin: 24px 0; }
.callout strong { color: var(--orange-deep); }

/* ---------- Responsive ---------- */
@media (max-width: 940px) {
  .hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .hero-art { max-width: 560px; }
  .grid.cols-3 { grid-template-columns: repeat(2, 1fr); }
  .band, .footer-grid { grid-template-columns: 1fr; }
  .band.reverse .band-text { order: 0; }
  .platforms { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 620px) {
  .nav-links a:not(.btn) { display: none; }
  .grid.cols-3 { grid-template-columns: 1fr; }
  .platforms { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .app-body { grid-template-columns: 1fr; }
  .app-pdf { border-right: none; border-bottom: 1px solid #e6edf3; }
  .waitlist .row { flex-direction: column; }
  .section { padding: 58px 0; }
  .hero-inner { padding: 54px 0 64px; }
  .container { padding: 0 20px; }
}
