/* ==========================================================================
   TodoXMock — landing page
   Premium · High contrast · Professional · Student-friendly
   No heavy glassmorphism, no neon, no oversized gradients.
   ========================================================================== */

/* ------------------------------- tokens ------------------------------- */
:root {
  --primary: #2563EB;
  --primary-600: #1D4ED8;
  --primary-700: #1E40AF;
  --primary-400: #3B82F6;
  --primary-soft: #EFF6FF;
  --primary-line: rgba(37, 99, 235, .20);
  --blue-border: #BFDBFE;

  --ink: #0F172A;          /* headings  */
  --muted: #475569;        /* secondary */
  --muted-2: #64748B;      /* tertiary  */
  --bg: #F8FAFC;
  --bg-alt: #F1F5F9;
  --card: #FFFFFF;
  --line: #E2E8F0;         /* card border */
  --line-2: #EEF2F7;
  --chip: #F1F5F9;

  --btn-a: #2563EB;          /* primary button gradient (white label) */
  --btn-b: #1D4ED8;
  --btn-a-h: #1D4ED8;        /* primary button gradient — hover */
  --btn-b-h: #1E40AF;

  --accent-text: #2563EB;    /* blue used as TEXT on light surfaces */
  --accent-strong: #1D4ED8;  /* darker blue for small blue text     */
  --outline-fg: #1D4ED8;     /* secondary button label              */

  --ok: #059669;
  --warn: #F59E0B;
  --err: #EF4444;

  --r-btn: 10px;
  --r-sm: 10px;
  --r: 14px;
  --r-lg: 16px;
  --r-xl: 22px;
  --pill: 999px;

  --sh-xs: 0 1px 2px rgba(15, 23, 42, .04);
  --sh-sm: 0 2px 8px rgba(15, 23, 42, .05);
  --sh: 0 4px 20px rgba(15, 23, 42, .06);      /* card */
  --sh-md: 0 10px 28px rgba(15, 23, 42, .08);
  --sh-lg: 0 16px 40px rgba(15, 23, 42, .10);
  --sh-xl: 0 28px 64px rgba(15, 23, 42, .14);  /* device */
  --sh-blue: 0 10px 26px rgba(37, 99, 235, .28);

  --grid-line: rgba(15, 23, 42, .045);
  --glow-1: rgba(37, 99, 235, .13);
  --glow-2: rgba(59, 130, 246, .10);

  --ease: cubic-bezier(.2, .7, .25, 1);
  --nav-h: 72px;
  --wrap: 1160px;

  --hand: "Segoe Script", "Bradley Hand", "Comic Sans MS", "Apple Chancery", cursive;
}

html[data-theme="dark"] {
  --primary: #3B82F6;
  --primary-600: #2563EB;
  --primary-400: #60A5FA;
  --primary-soft: rgba(59, 130, 246, .13);
  --primary-line: rgba(96, 165, 250, .30);
  --blue-border: rgba(96, 165, 250, .40);

  --ink: #F1F5F9;
  --muted: #A3B3C9;
  --muted-2: #8B9BB4;
  --bg: #0A1020;
  --bg-alt: #0C1424;
  --card: #0F1728;
  --line: #1F2B44;
  --line-2: #182338;
  --chip: #16223A;

  --btn-a: #2563EB;
  --btn-b: #1D4ED8;
  --btn-a-h: #1D4ED8;
  --btn-b-h: #1E40AF;

  --accent-text: #7DAEF7;
  --accent-strong: #7DAEF7;
  --outline-fg: #7DAEF7;
  --primary-700: #BFDBFE;

  --ok: #34D399;

  --sh-xs: 0 1px 2px rgba(0, 0, 0, .35);
  --sh-sm: 0 2px 8px rgba(0, 0, 0, .35);
  --sh: 0 4px 20px rgba(0, 0, 0, .40);
  --sh-md: 0 10px 28px rgba(0, 0, 0, .42);
  --sh-lg: 0 16px 40px rgba(0, 0, 0, .48);
  --sh-xl: 0 28px 64px rgba(0, 0, 0, .55);
  --sh-blue: 0 10px 26px rgba(37, 99, 235, .45);

  --grid-line: rgba(148, 180, 255, .07);
  --glow-1: rgba(59, 130, 246, .18);
  --glow-2: rgba(37, 99, 235, .12);
}

/* ------------------------------- base ------------------------------- */
* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 16px); }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  transition: background .25s var(--ease), color .25s var(--ease);
}

h1, h2, h3, p, ul, dl, dd, dt { margin: 0; }
ul { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }

.sprite { display: none; }
.ic { width: 20px; height: 20px; display: block; }
.ic.sm { width: 16px; height: 16px; }

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

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

.skip-link {
  position: absolute; left: -9999px; top: 8px; z-index: 300;
  background: var(--primary); color: #fff; padding: 10px 16px; border-radius: var(--r-btn);
}
.skip-link:focus { left: 16px; }

/* ------------------------------- buttons ------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 18px;
  border-radius: var(--r-btn);
  border: 1px solid transparent;
  font-size: 14px; font-weight: 620; letter-spacing: -.005em;
  cursor: pointer; white-space: nowrap;
  transition: transform .16s var(--ease), box-shadow .22s var(--ease),
              background .2s var(--ease), border-color .2s var(--ease), color .2s var(--ease);
}
.btn .btn-ic { width: 17px; height: 17px; flex: 0 0 17px; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-lg { padding: 13px 24px; font-size: 15px; }
.btn-xl { padding: 16px 30px; font-size: 16px; }
.btn-block { width: 100%; }

.btn-primary {
  color: #fff;
  background: linear-gradient(180deg, var(--btn-a) 0%, var(--btn-b) 100%);
  box-shadow: var(--sh-blue), inset 0 1px 0 rgba(255, 255, 255, .16);
}
.btn-primary:hover {
  background: linear-gradient(180deg, var(--btn-a-h) 0%, var(--btn-b-h) 100%);
  box-shadow: 0 14px 30px rgba(37, 99, 235, .34), inset 0 1px 0 rgba(255, 255, 255, .18);
}

.btn-outline {
  background: var(--card);
  border-color: var(--blue-border);
  color: var(--outline-fg);
}
.btn-outline:hover {
  border-color: var(--primary);
  background: var(--primary-soft);
  color: var(--primary-700);
  box-shadow: var(--sh-sm);
}

.btn-ghost { background: transparent; color: var(--muted); }
.btn-ghost:hover { color: var(--ink); background: var(--primary-soft); }

.icon-btn {
  width: 38px; height: 38px; flex: 0 0 38px;
  display: grid; place-items: center;
  background: transparent; border: 1px solid var(--line);
  border-radius: var(--pill); cursor: pointer; color: var(--muted);
  transition: background .2s var(--ease), border-color .2s var(--ease), color .2s var(--ease);
}
.icon-btn:hover { background: var(--primary-soft); border-color: var(--primary-line); color: var(--primary); }

/* theme icon swap */
.ic-moon { display: none; }
html[data-theme="dark"] .ic-sun { display: none; }
html[data-theme="dark"] .ic-moon { display: block; }

/* ------------------------------- brand ------------------------------- */
.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand-mark {
  width: 34px; height: 34px; flex: 0 0 34px;
  display: grid; place-items: center;
  border-radius: 10px;
  box-shadow: 0 6px 16px rgba(37, 99, 235, .28);
}
.brand-mark .ic { width: 34px; height: 34px; }
.brand-txt { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name { font-size: 17px; font-weight: 780; letter-spacing: -.025em; color: var(--ink); }
.brand-name em { font-style: normal; color: var(--accent-text); }
.brand-tag { font-size: 9.5px; letter-spacing: .13em; text-transform: uppercase; color: var(--muted); margin-top: 3px; }

/* ------------------------------- nav ------------------------------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 90%, transparent);
  backdrop-filter: saturate(170%) blur(12px);
  -webkit-backdrop-filter: saturate(170%) blur(12px);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 1px 3px rgba(15, 23, 42, .04);
}
.nav-in {
  max-width: var(--wrap); margin: 0 auto; padding: 0 24px;
  height: var(--nav-h);
  display: flex; align-items: center; gap: 20px;
}
.nav-links { display: flex; align-items: center; gap: 2px; margin: 0 auto; }
.nav-link {
  position: relative;
  padding: 9px 14px; border-radius: var(--r-btn);
  font-size: 14px; font-weight: 560; color: var(--muted);
  transition: color .18s var(--ease), background .18s var(--ease);
}
.nav-link:hover { color: var(--ink); background: var(--primary-soft); }
.nav-link.is-active { color: var(--accent-strong); font-weight: 640; }
.nav-link.is-active::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 1px;
  height: 2px; border-radius: 2px; background: var(--primary);
}
.nav-actions { display: flex; align-items: center; gap: 10px; }
.nav-burger { display: none; }

.burger-box { width: 18px; height: 12px; position: relative; display: block; }
.burger-box span {
  position: absolute; left: 0; right: 0; height: 2px; border-radius: 2px;
  background: currentColor; transition: transform .22s var(--ease), opacity .18s var(--ease);
}
.burger-box span:nth-child(1) { top: 0; }
.burger-box span:nth-child(2) { top: 5px; }
.burger-box span:nth-child(3) { top: 10px; }
.nav-burger[aria-expanded="true"] .burger-box span:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.nav-burger[aria-expanded="true"] .burger-box span:nth-child(2) { opacity: 0; }
.nav-burger[aria-expanded="true"] .burger-box span:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }

.mobile-menu {
  display: none;
  border-top: 1px solid var(--line);
  padding: 10px 24px 18px;
  background: var(--bg);
  box-shadow: var(--sh-md);
}
.mobile-menu.open { display: block; }
.m-link {
  display: block; padding: 12px 4px;
  font-size: 15px; font-weight: 560; color: var(--ink);
  border-bottom: 1px solid var(--line-2);
}
.m-link:last-of-type { border-bottom: 0; }
.m-actions { display: flex; flex-direction: column; gap: 10px; margin-top: 12px; }

/* ------------------------------- hero ------------------------------- */
.hero { padding: 48px 0 60px; position: relative; overflow: hidden; }

/* subtle background detail: grid + soft blue glows (hero only) */
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(to right, var(--grid-line) 1px, transparent 1px),
    linear-gradient(to bottom, var(--grid-line) 1px, transparent 1px);
  background-size: 34px 34px;
  -webkit-mask-image: radial-gradient(120% 90% at 68% 30%, #000 25%, transparent 72%);
  mask-image: radial-gradient(120% 90% at 68% 30%, #000 25%, transparent 72%);
}
.hero::after {
  content: ""; position: absolute; inset: -12% -6% auto -6%; height: 720px;
  pointer-events: none; filter: blur(6px);
  background:
    radial-gradient(34rem 22rem at 76% 14%, var(--glow-1), transparent 62%),
    radial-gradient(28rem 20rem at 6% 74%, var(--glow-2), transparent 64%);
}
.hero-grid {
  display: grid; grid-template-columns: minmax(0, .94fr) minmax(0, 1.06fr);
  gap: 40px; align-items: center; position: relative; z-index: 1;
}

.badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px 6px 10px;
  background: var(--card);
  border: 1px solid var(--blue-border);
  border-radius: var(--pill);
  font-size: 12.5px; font-weight: 600; color: var(--accent-text);
  box-shadow: var(--sh-xs);
}
.badge-dot {
  width: 7px; height: 7px; border-radius: 50%; background: var(--primary);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, .16);
}

.hero-title {
  margin-top: 20px;
  font-size: clamp(34px, 5.2vw, 56px);
  font-weight: 830; line-height: 1.06; letter-spacing: -.038em;
  color: var(--ink);
}
.hero-title .hl { color: var(--accent-text); }

.hero-sub {
  margin-top: 18px; max-width: 52ch;
  font-size: 16.5px; color: var(--muted); line-height: 1.68;
}

.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }

.stats {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px; margin-top: 30px;
  border-top: 1px solid var(--line);
  padding-top: 20px;
}
.stat { padding-left: 16px; border-left: 1px solid var(--line); }
.stat:first-child { padding-left: 0; border-left: 0; }
.stat dt { font-size: 22px; font-weight: 800; letter-spacing: -.03em; font-variant-numeric: tabular-nums; color: var(--ink); }
.stat dd { font-size: 12.5px; color: var(--muted); margin-top: 1px; }

/* exam identity strip */
.hero-exams {
  margin-top: 22px;
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
}
.he-label {
  font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase;
  font-weight: 700; color: var(--muted-2);
}
.he-list { display: flex; gap: 6px; flex-wrap: wrap; }
.he-list i {
  font-style: normal;
  font-size: 11.5px; font-weight: 620; color: var(--muted);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 3px 9px;
}

/* ------------------------------- hero visual ------------------------------- */
.hero-visual { position: relative; min-height: 560px; }

.callout {
  position: absolute; z-index: 4;
  font-family: var(--hand);
  font-size: 12.5px; line-height: 1.2; color: var(--muted);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--pill);
  padding: 4px 12px;
  box-shadow: var(--sh-sm);
  white-space: nowrap;
}
.c1 { top: -10px; left: 0; transform: rotate(-4deg); }
.c2 { top: -8px; left: 268px; transform: rotate(3deg); }
.c3 { bottom: 8px; left: 0; transform: rotate(-3deg); }
.c4 { bottom: 10px; left: 172px; transform: rotate(4deg); }

.device-device {
  position: absolute;
  border-radius: var(--r-lg);
  background: #FFFFFF;
  /* product preview stays light & crisp in both themes (it is a screenshot) */
  --d-ink: #0F172A;
  --d-muted: #64748B;
  --d-muted-2: #94A3B8;
  --d-line: #E7EDF6;
  --d-line-2: #EEF2F7;
  --d-canvas: #F7F9FD;
  --d-panel: #FFFFFF;
  --d-soft: #EFF6FF;
  --d-soft-line: #DBEAFE;
  color: var(--d-ink);
}

.browser {
  top: 24px; left: 0; width: 520px; max-width: 100%;
  border: 1px solid #DCE3EC;
  box-shadow: var(--sh-xl);
  overflow: hidden;
  z-index: 1;
}
.browser-bar {
  display: flex; align-items: center; gap: 12px;
  padding: 8px 12px; background: #F1F5F9;
  border-bottom: 1px solid #E2E8F0;
}
.dots { display: flex; gap: 6px; }
.dots i { width: 9px; height: 9px; border-radius: 50%; background: #CBD5E1; }
.dots i:first-child { background: #F87171; }
.dots i:nth-child(2) { background: #FBBF24; }
.dots i:nth-child(3) { background: #34D399; }
.omnibox {
  display: flex; align-items: center; gap: 7px;
  flex: 1; max-width: 260px;
  padding: 3px 10px; border-radius: var(--pill);
  background: #FFFFFF; border: 1px solid #E2E8F0;
  font-size: 11px; line-height: 1.35; color: #64748B;
}
.omnibox .ic { width: 14px; height: 14px; }

.browser-body { padding: 0; }

/* ---------- mini dashboard ---------- */
.dash {
  display: grid; grid-template-columns: 118px minmax(0, 1fr);
  background: var(--d-canvas);
}
.dash-side {
  background: #FCFDFF;
  border-right: 1px solid var(--d-line);
  padding: 12px 10px;
  display: flex; flex-direction: column; gap: 12px;
}
.dash-brand {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 11.5px; font-weight: 800; letter-spacing: -.02em; color: var(--d-ink);
}
.dash-brand em { font-style: normal; color: #2563EB; }
.dash-brand .ic { width: 15px; height: 15px; }

.dash-nav { display: flex; flex-direction: column; gap: 2px; }
.dash-nav li {
  display: flex; align-items: center; gap: 8px;
  padding: 7px 8px; border-radius: 8px;
  font-size: 11px; font-weight: 600; color: var(--d-muted);
}
.dash-nav li .ic { width: 14px; height: 14px; }
.dash-nav li.on { background: var(--d-soft); color: #1D4ED8; }

.dash-goal {
  margin-top: auto;
  background: var(--d-panel);
  border: 1px solid var(--d-line);
  border-radius: 10px;
  padding: 9px 10px;
}
.dash-goal b { display: block; font-size: 11px; font-weight: 750; color: var(--d-ink); letter-spacing: -.01em; }
.dash-goal .dg-bar { display: block; height: 5px; border-radius: 99px; background: var(--d-line-2); margin: 7px 0 5px; overflow: hidden; }
.dash-goal .dg-bar i { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, #3B82F6, #1D4ED8); }
.dash-goal em { font-style: normal; font-size: 9.5px; font-weight: 600; color: var(--d-muted); }

/* --notch: empty right gutter the overlapping phone sits in.
   Grows as the hero column narrows so the phone never covers dashboard content. */
.dash-main {
  --notch: min(calc(715.5px - .54 * min(1160px, 100vw)), 128px);
  padding: 12px; display: flex; flex-direction: column; gap: 10px;
}

.dash-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.dash-greet { font-size: 14px; font-weight: 800; letter-spacing: -.025em; color: var(--d-ink); line-height: 1.25; }
.dash-sub { line-height: 1.3; }
.dash-sub { font-size: 10px; font-weight: 500; color: var(--d-muted); margin-top: 2px; }
.dash-pill {
  flex: 0 0 auto;
  font-size: 9.5px; font-weight: 750; letter-spacing: .01em;
  color: #1D4ED8; background: var(--d-soft);
  border: 1px solid var(--d-soft-line);
  padding: 4px 9px; border-radius: var(--pill);
}

.dash-row { display: grid; gap: 10px; }
.dash-row.r1 { grid-template-columns: 1.5fr 1fr 1fr; }
.dash-row.r2 { grid-template-columns: minmax(0, 1fr); padding-right: var(--notch); }
.dash-row.r3 { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); padding-right: var(--notch); }

.panel {
  background: var(--d-panel);
  border: 1px solid var(--d-line);
  border-radius: 10px;
  padding: 10px 12px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, .03);
}
.dash-label {
  font-size: 8.5px; font-weight: 750; letter-spacing: .04em; text-transform: uppercase;
  white-space: nowrap; color: var(--d-muted-2);
}
.dash-note { font-size: 10px; font-weight: 550; color: var(--d-muted); text-align: center; margin-top: 4px; }

.p-prog { display: flex; flex-direction: column; }
.prog { position: relative; width: 58px; height: 58px; margin: 5px auto 2px; }
.prog .ring { width: 58px; height: 58px; }
.prog b {
  position: absolute; inset: 0; display: grid; place-items: center;
  font-size: 15px; font-weight: 800; letter-spacing: -.03em; color: var(--d-ink);
}
.prog.sm { width: 54px; height: 54px; margin: 5px auto 2px; }
.prog.sm .ring { width: 54px; height: 54px; }
.prog.sm b { font-size: 13px; }

.kpi { display: flex; flex-direction: column; justify-content: center; }
.kpi b { font-size: 21px; font-weight: 800; letter-spacing: -.035em; color: var(--d-ink); line-height: 1.1; }
.kpi p { font-size: 9.5px; font-weight: 600; color: var(--d-muted); margin-top: 2px; }

.todo { margin-top: 7px; display: flex; flex-direction: column; gap: 3px; }
.todo li {
  display: flex; align-items: center; gap: 8px;
  padding: 4px 8px; border-radius: 8px;
  background: var(--d-canvas);
  font-size: 10.5px; line-height: 1.3; font-weight: 600; color: var(--d-ink);
}
.todo li span:nth-of-type(2) { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.todo li em { font-style: normal; font-size: 9.5px; font-weight: 650; color: var(--d-muted-2); }
.todo .tick {
  width: 15px; height: 15px; flex: 0 0 15px;
  border-radius: 5px; border: 1.5px solid #CBD5E1;
  display: grid; place-items: center; color: transparent; background: #fff;
}
.todo .tick .ic { width: 10px; height: 10px; }
.todo li.done .tick { background: #2563EB; border-color: #2563EB; color: #fff; }
.todo li.done { color: var(--d-muted); }

.m-score { display: flex; align-items: baseline; gap: 3px; margin: 3px 0 6px; }
.m-score b { font-size: 22px; font-weight: 800; letter-spacing: -.035em; color: var(--d-ink); line-height: 1; }
.m-score span { font-size: 10px; font-weight: 650; color: var(--d-muted-2); }
.m-score em {
  font-style: normal; margin-left: auto;
  font-size: 9.5px; font-weight: 750; color: #059669;
  background: #ECFDF5; border: 1px solid #A7F3D0;
  padding: 1px 6px; border-radius: 99px;
}
.mbar {
  display: grid; grid-template-columns: 1fr auto;
  grid-template-areas: "k v" "t t";
  align-items: center; gap: 2px 6px; margin-top: 5px;
}
.mb-k { grid-area: k; font-size: 9.5px; line-height: 1.2; font-weight: 600; color: var(--d-muted); }
.mbar b { grid-area: v; font-size: 9.5px; line-height: 1.2; font-weight: 750; color: var(--d-ink); }
.mb-track { grid-area: t; height: 5px; border-radius: 99px; background: var(--d-line-2); overflow: hidden; display: block; }
.mb-fill { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, #60A5FA, #2563EB); }

.wk { margin-top: 8px; display: flex; align-items: flex-end; gap: 6px; }
.wk-b { flex: 1 1 0; min-width: 0; max-width: 14px; display: flex; flex-direction: column; align-items: center; gap: 4px; }
.wk-b i {
  display: block; width: 100%; height: calc(var(--h) * 38px);
  border-radius: 4px; background: #E2E8F0;
}
.wk-b.is-today i { background: linear-gradient(180deg, #3B82F6, #1D4ED8); }
.wk-b span { font-size: 8.5px; font-weight: 700; color: var(--d-muted-2); }
.wk-b.is-today span { color: #1D4ED8; }

/* ---------- phone ---------- */
.phone {
  right: -10px; bottom: -10px; width: 152px;
  border: 8px solid #DCE3EC;
  border-radius: 24px;
  box-shadow: var(--sh-xl);
  overflow: hidden;
  z-index: 2;
}
.phone-notch {
  width: 46px; height: 4px; margin: 6px auto 0;
  border-radius: 99px; background: #CBD5E1;
}
.phone-body { padding: 6px 9px 8px; }

.ph-bar {
  display: flex; align-items: center; justify-content: space-between;
  font-size: 8px; line-height: 1.2; font-weight: 750; color: var(--d-ink); margin-bottom: 6px;
}
.ph-ind { display: inline-flex; color: var(--d-ink); }
.ph-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 7px; }
.ph-brand {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 10px; font-weight: 800; letter-spacing: -.02em; color: var(--d-ink);
}
.ph-brand em { font-style: normal; color: #2563EB; }
.ph-brand .ic { width: 14px; height: 14px; }
.ph-av {
  width: 18px; height: 18px; border-radius: 50%; display: grid; place-items: center;
  background: linear-gradient(140deg, #3B82F6, #1D4ED8);
  color: #fff; font-size: 9.5px; font-weight: 750;
}
.ph-greet { font-size: 11.5px; font-weight: 800; letter-spacing: -.025em; color: var(--d-ink); line-height: 1.25; }
.ph-sub { font-size: 8.5px; line-height: 1.3; font-weight: 600; color: var(--d-muted); margin-bottom: 7px; }
.ph-prog { padding: 8px 9px; }
.ph .dash-label { font-size: 8px; letter-spacing: .05em; white-space: nowrap; }
.ph .dash-note { font-size: 9px; line-height: 1.2; white-space: nowrap; }
.ph-plan-label { margin-top: 8px; }
.ph-todo li { font-size: 9.5px; padding: 3px 7px; }

.ph-tabs {
  margin-top: 8px; padding-top: 6px;
  border-top: 1px solid var(--d-line);
  display: flex; align-items: center; justify-content: space-between;
  color: #94A3B8;
}
.ph-tabs .ic { width: 14px; height: 14px; }
.ph-tabs .on { color: #2563EB; }

/* ------------------------------- sections ------------------------------- */
.section { padding: 64px 0; }
.section-alt { background: var(--bg-alt); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

.sec-head { max-width: 620px; margin: 0 auto 34px; text-align: center; }
.sec-eyebrow {
  font-size: 11px; letter-spacing: .18em; text-transform: uppercase;
  color: var(--accent-text); font-weight: 750;
}
.sec-title {
  margin-top: 10px;
  font-size: clamp(24px, 3.2vw, 34px); font-weight: 800;
  letter-spacing: -.032em; line-height: 1.18; color: var(--ink);
}
.sec-sub { margin-top: 12px; font-size: 15.5px; color: var(--muted); line-height: 1.68; }

.cards { display: grid; gap: 18px; }
.cards-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.cards-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 20px;
  box-shadow: var(--sh);
  transition: transform .22s var(--ease), box-shadow .22s var(--ease), border-color .22s var(--ease);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--sh-md); border-color: var(--blue-border); }

/* ------------------------------- features ------------------------------- */
.feature { padding: 22px 20px; }
.feature .f-ico {
  width: 52px; height: 52px; display: grid; place-items: center;
  border-radius: 14px;
  background: var(--primary-soft);
  color: var(--primary);
  border: 1px solid var(--primary-line);
  margin-bottom: 16px;
}
.feature .f-ico .ic { width: 24px; height: 24px; }
.f-title { font-size: 16px; font-weight: 720; letter-spacing: -.02em; color: var(--ink); }
.f-text { margin-top: 8px; font-size: 13.5px; color: var(--muted); line-height: 1.62; }

/* ------------------------------- exams ------------------------------- */
.exams-grid { display: grid; grid-template-columns: minmax(0, .86fr) minmax(0, 1.14fr); gap: 44px; align-items: center; }
.exams-copy .sec-head { text-align: left; margin: 0 0 20px; max-width: none; }
.exams-points { display: flex; flex-direction: column; gap: 8px; margin-bottom: 22px; }
.exams-points li {
  display: flex; align-items: center; gap: 9px;
  font-size: 13.5px; font-weight: 560; color: var(--muted);
}
.exams-points .ic { width: 17px; height: 17px; flex: 0 0 17px; color: var(--accent-text); }
.exams-copy .btn { margin-top: 2px; }

.exam-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.exam {
  display: flex; flex-direction: column; align-items: center; gap: 9px;
  padding: 18px 10px 15px; text-align: center;
}
.exam .e-ico {
  width: 44px; height: 44px; display: grid; place-items: center;
  border-radius: 13px;
  background: var(--primary-soft);
  color: var(--primary);
  border: 1px solid var(--primary-line);
  transition: background .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease);
}
.exam .e-ico .ic { width: 21px; height: 21px; }
.exam .e-name { font-size: 14px; font-weight: 720; letter-spacing: -.015em; color: var(--ink); }
.exam .e-sub { font-size: 10.5px; font-weight: 550; color: var(--muted-2); margin-top: -4px; }
.exam:hover .e-ico { background: var(--primary); color: #fff; border-color: var(--primary); }

/* ------------------------------- pricing ------------------------------- */
.plan { position: relative; display: flex; flex-direction: column; padding: 24px 22px; }
.plan-pop {
  border-color: var(--primary);
  box-shadow: 0 18px 44px rgba(37, 99, 235, .16);
  transform: translateY(-10px);
}
.plan-pop:hover { transform: translateY(-16px); box-shadow: 0 24px 54px rgba(37, 99, 235, .22); }
.plan-tag {
  position: absolute; top: -12px; left: 22px;
  background: linear-gradient(180deg, var(--btn-a) 0%, var(--btn-b) 100%);
  color: #fff;
  font-size: 10.5px; font-weight: 780; letter-spacing: .1em; text-transform: uppercase;
  padding: 5px 12px; border-radius: var(--pill);
  box-shadow: 0 6px 16px rgba(37, 99, 235, .32);
}
.plan-name { font-size: 15px; font-weight: 720; color: var(--ink); }
.plan-price { margin-top: 8px; display: flex; align-items: baseline; gap: 6px; }
.plan-price b { font-size: 32px; font-weight: 820; letter-spacing: -.035em; color: var(--ink); }
.plan-price span { font-size: 12.5px; color: var(--muted); }
.plan-note { margin-top: 8px; font-size: 12.5px; color: var(--muted-2); }
.plan-list { margin: 16px 0 20px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.plan-list li { position: relative; padding-left: 22px; font-size: 13.5px; color: var(--muted); }
.plan-list li::before {
  content: ""; position: absolute; left: 0; top: 6px;
  width: 13px; height: 7px;
  border-left: 2px solid var(--ok); border-bottom: 2px solid var(--ok);
  transform: rotate(-45deg); border-radius: 1px;
}
.plan-pop .plan-name, .plan-pop .plan-price b { color: var(--ink); }

/* ------------------------------- blog ------------------------------- */
.post { position: relative; overflow: hidden; }
.post::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--primary-400), var(--primary-600));
  opacity: .85;
}
.post-meta { font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--accent-text); font-weight: 700; }
.post-title { margin-top: 10px; font-size: 16.5px; font-weight: 720; letter-spacing: -.022em; line-height: 1.38; color: var(--ink); }
.post-text { margin-top: 8px; font-size: 13.5px; color: var(--muted); line-height: 1.62; }

/* ------------------------------- final CTA ------------------------------- */
.cta-band { padding: 24px 0 72px; position: relative; overflow: hidden; }
.cta-band::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(to right, var(--grid-line) 1px, transparent 1px),
    linear-gradient(to bottom, var(--grid-line) 1px, transparent 1px);
  background-size: 30px 30px;
  -webkit-mask-image: radial-gradient(90% 120% at 50% 50%, #000 20%, transparent 76%);
  mask-image: radial-gradient(90% 120% at 50% 50%, #000 20%, transparent 76%);
}
.cta-band::after {
  content: ""; position: absolute; inset: -40% -10% auto -10%; height: 520px; pointer-events: none;
  filter: blur(8px);
  background:
    radial-gradient(26rem 18rem at 20% 40%, var(--glow-1), transparent 62%),
    radial-gradient(24rem 16rem at 84% 30%, var(--glow-2), transparent 64%);
}
.cta-in {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: minmax(0, 1fr) auto;
  align-items: center; gap: 32px;
  padding: 32px 36px;
  border-radius: var(--r-xl);
  border: 1px solid var(--blue-border);
  background: var(--card);
  box-shadow: var(--sh-lg);
}
.cta-trio { display: flex; align-items: center; gap: 8px; margin-bottom: 16px; flex-wrap: wrap; }
.cta-trio li {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 12px; border-radius: var(--r-btn);
  background: var(--primary-soft);
  border: 1px solid var(--primary-line);
  font-size: 11px; font-weight: 780; letter-spacing: .1em; text-transform: uppercase;
  color: var(--outline-fg);
}
.cta-trio .t-ico { display: inline-flex; }
.cta-trio .ic { width: 14px; height: 14px; }
.cta-quote { font-size: clamp(22px, 2.6vw, 28px); font-weight: 800; letter-spacing: -.032em; line-height: 1.25; color: var(--ink); }
.cta-text { margin-top: 10px; font-size: 15px; color: var(--muted); }
.cta-act { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.cta-note { font-size: 12px; color: var(--muted-2); }

/* ------------------------------- footer ------------------------------- */
.footer { border-top: 1px solid var(--line); background: var(--card); padding: 28px 0; }
.footer-in { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.foot-links { display: flex; gap: 20px; margin-left: auto; }
.foot-links a { font-size: 14px; color: var(--muted); font-weight: 550; }
.foot-links a:hover { color: var(--accent-text); }
.foot-copy { width: 100%; font-size: 12.5px; color: var(--muted-2); }

/* ------------------------------- modal ------------------------------- */
.modal { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: 22px; }
.modal[hidden] { display: none; }
.modal-bg { position: absolute; inset: 0; background: rgba(15, 23, 42, .58); backdrop-filter: blur(2px); }
.modal-box {
  position: relative; z-index: 1;
  width: 100%; max-width: 560px;
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--r-xl); padding: 26px;
  box-shadow: var(--sh-xl);
  animation: pop .2s var(--ease);
}
@keyframes pop { from { opacity: 0; transform: translateY(10px) scale(.98); } }
.modal-x { position: absolute; top: 16px; right: 16px; }
.modal-title { margin-top: 8px; font-size: 21px; font-weight: 780; letter-spacing: -.028em; color: var(--ink); }
.demo-frame { margin-top: 18px; }
.demo-ph {
  display: grid; place-items: center; gap: 6px;
  aspect-ratio: 16 / 9;
  border: 1px dashed var(--blue-border); border-radius: var(--r);
  background: var(--bg); color: var(--muted);
  text-align: center; padding: 20px;
}
.demo-ph .ic { width: 34px; height: 34px; color: var(--accent-text); }
.demo-ph p { font-size: 15px; font-weight: 680; color: var(--ink); }
.demo-ph span { font-size: 12.5px; }

/* ------------------------------- responsive ------------------------------- */
@media (max-width: 1060px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .hero-visual { min-height: 0; max-width: 620px; margin: 0 auto; width: 100%; }
  .browser { position: relative; top: 0; left: 0; width: 100%; }
  .dash-main { --notch: 190px; }
  .phone { right: -12px; bottom: -12px; }
  .c1 { top: -6px; left: 0; }
  .c2 { top: -6px; left: auto; right: 100px; }
  .c3 { bottom: -6px; left: 0; }
  .c4 { bottom: -8px; left: 172px; }
  .exams-grid { grid-template-columns: minmax(0, 1fr); gap: 30px; }
  .cards-5 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 860px) {
  .nav-links, .nav-login { display: none; }
  .nav-burger { display: grid; }
  .cards-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .plan-pop { transform: none; }
  .plan-pop:hover { transform: translateY(-4px); }
  .cta-in { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .cta-act { align-items: stretch; }
  .cta-act .btn { align-self: flex-start; }
}

@media (max-width: 720px) {
  :root { --nav-h: 64px; }
  .section { padding: 52px 0; }
  .hero { padding: 32px 0 48px; }
  .hero-title { font-size: clamp(31px, 8.4vw, 40px); }
  .hero-visual { max-width: none; min-height: 0; }
  .browser { display: none; }              /* mobile: phone preview only */
  .phone {
    position: relative; right: auto; bottom: auto;
    width: 232px; margin: 4px auto 0; display: block;
  }
  .phone-notch { width: 66px; }
  .ph-greet { font-size: 14.5px; }
  .ph-sub { font-size: 10px; }
  .prog.sm { width: 84px; height: 84px; }
  .prog.sm .ring { width: 84px; height: 84px; }
  .prog.sm b { font-size: 19px; }
  .ph .dash-label { font-size: 10px; letter-spacing: .08em; }
  .ph .dash-note { font-size: 11px; }
  .ph-bar { font-size: 9.5px; }
  .ph-brand { font-size: 12px; }
  .ph-greet { font-size: 14px; }
  .ph-sub { font-size: 10px; }
  .ph-todo li { font-size: 11px; padding: 6px 9px; }
  .ph-av { width: 22px; height: 22px; }
  .ph-tabs .ic { width: 17px; height: 17px; }
  .ph-tabs { margin-top: 14px; padding-top: 10px; }
  .ph-tabs .ic { width: 17px; height: 17px; }
  .callout { display: none; }

  /* horizontal, swipeable feature cards */
  .cards-5 {
    display: flex; gap: 14px;
    overflow-x: auto; scroll-snap-type: x mandatory;
    padding: 4px 18px 12px; margin: 0 -18px;
    scrollbar-width: none;
  }
  .cards-5::-webkit-scrollbar { display: none; }
  .cards-5 > .feature {
    flex: 0 0 76%; max-width: 280px;
    scroll-snap-align: start;
  }
  .exam-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 8px; }
  .stat:nth-child(3) { padding-left: 0; border-left: 0; }
  .hero-cta .btn { flex: 1 1 100%; }
  .wrap { padding: 0 18px; }
  .exams-points { margin-bottom: 18px; }
}

@media (max-width: 480px) {
  .nav-in { padding: 0 18px; gap: 12px; }
  .nav-actions { gap: 8px; }
  .cards-3 { grid-template-columns: minmax(0, 1fr); }
  .stat:nth-child(2) { padding-left: 0; border-left: 0; }
  .footer-in { gap: 14px; }
  .foot-links { margin-left: 0; width: 100%; flex-wrap: wrap; gap: 14px; }
  .cta-in { padding: 24px 20px; }
}

@media (max-width: 440px) {
  .nav-actions .btn-primary { display: none; }   /* burger menu carries the CTA */
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}
