/* IMATPrep shared styles.
   Layout: a cobalt band opens and closes every page; paper-white and pale-blue sections alternate between them.
   Motifs: OMR answer sheet (the exam), rubber stamps (the paperwork), heartbeat line (medicine). */
:root {
  --cobalt: #2338E0;
  --navy: #0B1145;
  --sun: #FFC533;
  --tomato: #D33A28;

  --bg: #F7F9FF;
  --bg-alt: #E9EFFF;
  --surface: #FFFFFF;
  --ink: #0B1145;
  --muted: #4F5680;
  --line: #D3DAF2;
  --accent: #2338E0;
  --on-accent: #FFFFFF;
  --focus: #2338E0;
  --stamp: #D33A28;
  --yes: #1D7A4B;
  --no: #B3261A;
  --ring: var(--bg);

  --display: "Bricolage Grotesque", "Helvetica Neue", Arial, sans-serif;
  --body: "Source Serif 4", Georgia, "Times New Roman", serif;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0A0E33; --bg-alt: #0E1444; --surface: #141B55;
    --ink: #EEF0FF; --muted: #A9B0DA; --line: #2A3272;
    --accent: #9AA8FF; --on-accent: #0A0E33; --focus: #FFC533;
    --stamp: #FF7B70; --yes: #6FD39E; --no: #FF8A80;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0A0E33; --bg-alt: #0E1444; --surface: #141B55;
  --ink: #EEF0FF; --muted: #A9B0DA; --line: #2A3272;
  --accent: #9AA8FF; --on-accent: #0A0E33; --focus: #FFC533;
  --stamp: #FF7B70; --yes: #6FD39E; --no: #FF8A80;
  color-scheme: dark;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--body); font-size: 1.125rem; line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 { font-family: var(--display); margin: 0; line-height: 1.06; letter-spacing: -0.03em; text-wrap: balance; }
p { margin: 0 0 1em; max-width: 62ch; }
a { color: inherit; }
ul, ol { margin: 0; padding: 0; list-style: none; }
img { max-width: 100%; display: block; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 6px; }
.wrap { width: min(1140px, 100% - 32px); margin-inline: auto; }
.skip {
  position: absolute; left: 16px; top: -80px; z-index: 60; padding: 10px 16px; border-radius: 10px;
  background: var(--sun); color: var(--navy); font-family: var(--display); font-weight: 600; text-decoration: none;
}
.skip:focus { top: 12px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; font-family: var(--display); font-weight: 600; font-size: 1.02rem; line-height: 1.3;
  padding: 14px 26px; border-radius: 999px; text-decoration: none; border: 2px solid transparent; cursor: pointer;
  transition: transform .15s ease, background-color .15s, color .15s;
}
.btn:hover { transform: translateY(-2px); }
.btn.sun { background: var(--sun); color: var(--navy); box-shadow: 0 8px 20px -8px rgba(255,197,51,.7); }
.btn.navy { background: var(--navy); color: #fff; }
.btn.accent { background: var(--accent); color: var(--on-accent); }
.btn.outline { border-color: var(--accent); color: var(--accent); background: transparent; }
.btn.outline:hover { background: var(--accent); color: var(--on-accent); }
.btn.line-w { border-color: rgba(255,255,255,.5); color: #fff; background: transparent; }
.btn.line-w:hover { border-color: #fff; }
.btn.small { padding: 9px 18px; font-size: 0.95rem; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 40; background: var(--cobalt); color: #fff; }
.site-header :focus-visible { outline-color: var(--sun); }
.site-header .wrap { display: flex; align-items: center; gap: 20px; min-height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-family: var(--display); font-weight: 800; font-size: 1.3rem; text-decoration: none; letter-spacing: -0.02em; color: #fff; }
.brand b { font-weight: 600; }
.nav { display: flex; align-items: center; gap: 24px; margin-left: auto; font-family: var(--display); font-weight: 600; font-size: 0.97rem; }
.nav a { text-decoration: none; color: rgba(255,255,255,.8); padding: 4px 0; border-bottom: 2px solid transparent; white-space: nowrap; }
.nav a:hover { color: #fff; }
.nav a[aria-current="page"] { color: #fff; border-bottom-color: var(--sun); }
.site-header .head-cta { padding: 10px 20px; white-space: nowrap; }

/* ---------- Shared bands ---------- */
.ecg { position: absolute; left: 0; right: 0; pointer-events: none; }
.plus-bg {
  background:
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='120' height='120'><g fill='none' stroke='white' stroke-opacity='.14' stroke-width='3' stroke-linecap='round'><path d='M20 14v14M13 21h14'/><path d='M84 78v14M77 85h14'/></g></svg>") 0 0 / 120px 120px,
    radial-gradient(70% 90% at 88% 10%, rgba(120,140,255,.5) 0%, rgba(35,56,224,0) 62%),
    var(--cobalt);
}

/* Inner-page intro band */
.band { position: relative; overflow: hidden; color: #fff; border-radius: 0 0 44px 44px; padding-block: clamp(40px, 6vw, 76px) clamp(60px, 7vw, 96px); }
.band .ecg { bottom: 18px; opacity: .28; }
.band .wrap { position: relative; z-index: 1; }
.band h1 { font-size: clamp(2.5rem, 6.4vw, 4.8rem); font-weight: 800; letter-spacing: -0.04em; line-height: 1; max-width: 17ch; }
.band p { margin: 22px 0 0; font-size: 1.25rem; color: rgba(255,255,255,.86); max-width: 48ch; }

/* Closing contact band */
.contact-band { position: relative; overflow: hidden; color: #fff; border-radius: 44px 44px 0 0; padding-block: clamp(56px, 8vw, 100px) clamp(90px, 10vw, 130px); }
.contact-band :focus-visible, .band :focus-visible, .hero :focus-visible { outline-color: var(--sun); }
.contact-band .ecg { bottom: 30px; opacity: .25; }
.contact-band .wrap { position: relative; z-index: 1; }
.contact-band h2 { font-size: clamp(2.1rem, 5vw, 3.8rem); font-weight: 800; max-width: 17ch; letter-spacing: -0.035em; }
.contact-band p { margin-top: 18px; color: rgba(255,255,255,.86); font-size: 1.18rem; }
.reach { margin-top: 22px; display: grid; gap: 2px; font-family: var(--display); font-weight: 600; font-size: 1rem; color: rgba(255,255,255,.9); }
.reach span { overflow-wrap: anywhere; }

/* ---------- Sections ---------- */
.section { padding-block: clamp(60px, 8vw, 110px); }
.section.alt { background: var(--bg-alt); --ring: var(--bg-alt); }
.section h2 { font-size: clamp(2.1rem, 4.8vw, 3.5rem); font-weight: 800; max-width: 19ch; }
.intro { margin-top: 18px; color: var(--muted); font-size: 1.18rem; }
.note { margin-top: 32px; color: var(--muted); font-size: 1rem; }
.two-col { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(28px, 5vw, 64px); margin-top: 40px; }
.two-col h3 { font-size: 1.6rem; font-weight: 800; }
.two-col p { margin-top: 12px; color: var(--muted); }

/* Stamps */
.stamp {
  display: inline-block; font-family: var(--display); font-weight: 800; font-size: 0.86rem;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--stamp);
  border: 3px solid var(--stamp); border-radius: 6px; padding: 3px 11px;
  transform: rotate(-6deg); opacity: .92; white-space: nowrap;
}

/* ---------- Home hero ---------- */
.hero { position: relative; overflow: hidden; color: #fff; border-radius: 0 0 56px 56px; padding-block: clamp(44px, 7vw, 92px) clamp(86px, 9vw, 130px); }
.hero .ecg { bottom: 28px; opacity: .3; }
.hero .wrap { position: relative; z-index: 1; display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero h1 { font-size: clamp(2.9rem, 7vw, 5.7rem); font-weight: 800; letter-spacing: -0.04em; line-height: 0.98; }
.hero .lede { margin-top: 26px; font-size: 1.3rem; color: rgba(255,255,255,.88); max-width: 36ch; }
.proof { display: flex; flex-wrap: wrap; gap: 14px 40px; margin-top: 36px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.24); }
.proof div { display: grid; }
.proof b { font-family: var(--display); font-weight: 800; font-size: 1.75rem; letter-spacing: -0.03em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.proof span { color: rgba(255,255,255,.8); font-size: 0.98rem; }

.stage { position: relative; padding: 118px 0 34px 7%; }
.arch {
  position: absolute; top: 0; bottom: 0; left: 26%; right: 0; border-radius: 999px 999px 30px 30px;
  background: linear-gradient(180deg, #5A72FF 0%, #3049F0 100%); box-shadow: 0 30px 60px -30px rgba(5,10,80,.7);
}
.arch-out { position: absolute; top: -18px; bottom: 18px; left: calc(26% + 20px); right: -18px; border: 2px solid rgba(255,255,255,.35); border-radius: 999px 999px 34px 34px; }
.sun-disc { position: absolute; top: 40px; left: 1%; width: 104px; height: 104px; border-radius: 50%; background: var(--sun); box-shadow: 0 0 0 14px rgba(255,197,51,.22); }
.sheet {
  position: relative; z-index: 2; background: #fff; color: #0B1145; border-radius: 18px; padding: 22px 22px 18px;
  transform: rotate(-1.6deg); box-shadow: 0 2px 0 rgba(11,17,69,.06), 0 34px 60px -24px rgba(5,10,80,.75);
}
.sheet-head { display: flex; align-items: baseline; gap: 18px; flex-wrap: wrap; }
.sheet-title { font-family: var(--display); font-weight: 800; font-size: 1.1rem; letter-spacing: -0.01em; }
.sheet-cand { font-family: var(--display); font-size: 0.92rem; color: #6A7099; border-bottom: 2px solid #D9DEF2; padding: 0 6px 1px; }
.sheet-note { font-size: 0.92rem; color: #6A7099; margin: 6px 0 10px; }
.row { display: flex; align-items: center; gap: 12px; padding: 7px 0; border-top: 1px dashed #D9DEF2; }
.qn { width: 1.5rem; text-align: right; font-family: var(--display); font-weight: 600; font-size: 0.95rem; color: #6A7099; }
.bubbles { display: flex; gap: 10px; }
.colhead { display: flex; align-items: center; gap: 12px; padding: 4px 0 8px; }
.colhead .qn { visibility: hidden; }
.colhead .bubbles span { width: 34px; text-align: center; font-family: var(--display); font-weight: 800; font-size: 0.95rem; color: #0B1145; }
.bubble {
  position: relative; width: 34px; height: 34px; border-radius: 6px; padding: 0; cursor: pointer;
  border: 2px solid #8A90B5; background: transparent; transition: background-color .18s, border-color .18s;
}
.bubble:hover { border-color: #2338E0; }
.bubble:focus-visible { outline-color: #2338E0; }
.bubble[aria-pressed="true"] { background: #EEF1FF; border-color: #2338E0; }
.bubble::before, .bubble::after {
  content: ""; position: absolute; left: 50%; top: 50%; width: 130%; height: 3px; border-radius: 2px; background: #2338E0; opacity: 0;
  transform: translate(-50%, -50%) rotate(45deg) scaleX(0); transition: transform .2s ease, opacity .1s;
}
.bubble::after { transform: translate(-50%, -50%) rotate(-45deg) scaleX(0); transition-delay: .09s; }
.bubble[aria-pressed="true"]::before { opacity: 1; transform: translate(-50%, -50%) rotate(45deg) scaleX(.72); }
.bubble[aria-pressed="true"]::after { opacity: 1; transform: translate(-50%, -50%) rotate(-45deg) scaleX(.72); }
.postmark {
  position: absolute; z-index: 3; right: 10px; bottom: -58px; width: 124px; height: 124px;
  transform: rotate(-14deg); filter: drop-shadow(0 12px 14px rgba(5,10,80,.4)); color: var(--tomato);
}
.steth { position: absolute; z-index: 4; right: -10px; top: 6px; width: 132px; height: auto; filter: drop-shadow(0 10px 10px rgba(5,10,80,.35)); pointer-events: none; }

/* ---------- Home: two kinds of help ---------- */
.ways { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 30px 26px; margin-top: 56px; align-items: stretch; }
.way { position: relative; border-radius: 30px; padding: clamp(28px, 4vw, 48px); display: flex; flex-direction: column; }
.way h3 { font-size: 2.2rem; font-weight: 800; }
.way > p { margin-top: 14px; }
.way ul { margin-top: 12px; }
.way li { padding: 14px 0 14px 42px; background-repeat: no-repeat; background-position: 0 15px; background-size: 26px; }
.way strong { font-family: var(--display); font-weight: 600; }
.way-exam { color: #fff; background: radial-gradient(120% 90% at 100% 0%, var(--cobalt) 0%, var(--navy) 62%); }
.way-exam > p { color: rgba(255,255,255,.85); }
.way-exam li {
  border-top: 1px solid rgba(255,255,255,.18);
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><circle cx='12' cy='12' r='12' fill='%23FFC533'/><path d='M7 12.5l3.2 3.2L17 8.8' fill='none' stroke='%230B1145' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/></svg>");
}
.pulse { position: absolute; top: 40px; right: 34px; width: 132px; height: auto; opacity: .85; }
.way .fee { display: block; margin-top: 6px; font-family: var(--display); font-weight: 800; font-size: 1.7rem; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.way-exam .fee { color: var(--sun); }
.way-cta { position: relative; margin-top: auto; padding-top: 30px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.trial-link { font-family: var(--display); font-weight: 600; font-size: 1rem; text-underline-offset: 4px; }
.way-exam .trial-link { color: rgba(255,255,255,.9); }
.way-exam .trial-link:hover { color: #fff; }
.way-exam :focus-visible { outline-color: var(--sun); }
.way-docs .trial-link { color: var(--navy); }
.way-docs :focus-visible { outline-color: var(--navy); }
.mini-bubbles { display: flex; gap: 10px; margin-top: auto; padding-top: 28px; }
.mini-bubbles i { position: relative; width: 34px; height: 34px; border-radius: 6px; border: 2px solid rgba(255,255,255,.55); }
.mini-bubbles i.on { border-color: var(--sun); }
.mini-bubbles i.on::before, .mini-bubbles i.on::after {
  content: ""; position: absolute; left: 50%; top: 50%; width: 24px; height: 3px; border-radius: 2px; background: var(--sun);
  transform: translate(-50%, -50%) rotate(45deg);
}
.mini-bubbles i.on::after { transform: translate(-50%, -50%) rotate(-45deg); }
.way-docs { background: var(--sun); color: var(--navy); }
.way-docs::before { content: ""; position: absolute; inset: 14px; border: 2px dashed rgba(11,17,69,.28); border-radius: 20px; pointer-events: none; }
.way-docs::after {
  content: ""; position: absolute; top: -16px; left: 50%; width: 96px; height: 34px; margin-left: -48px; border-radius: 10px;
  box-shadow: 0 8px 14px -8px rgba(11,17,69,.5);
  background: linear-gradient(#C9D0F5, #C9D0F5) center 11px / 48px 8px no-repeat, var(--navy);
}
.way-docs > p { color: rgba(11,17,69,.8); }
.way-docs li {
  border-top: 1px solid rgba(11,17,69,.16);
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><circle cx='12' cy='12' r='12' fill='%230B1145'/><path d='M7 12.5l3.2 3.2L17 8.8' fill='none' stroke='%23FFC533' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/></svg>");
}
.way-docs .stamp { position: absolute; top: clamp(96px, 9vw, 112px); right: 40px; color: #B3261A; border-color: #B3261A; }

/* ---------- Pricing ---------- */
.trial {
  position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 18px 36px; align-items: center;
  margin-top: 48px; padding: clamp(26px, 4vw, 40px); border-radius: 28px; background: var(--sun); color: var(--navy);
}
.trial::before { content: ""; position: absolute; inset: 12px; border: 2px dashed rgba(11,17,69,.25); border-radius: 20px; pointer-events: none; }
.trial h3 { font-size: clamp(1.6rem, 3vw, 2.1rem); font-weight: 800; }
.trial p { margin: 10px 0 0; color: rgba(11,17,69,.82); }
.trial-buy { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.trial :focus-visible { outline-color: var(--navy); }
.price { font-family: var(--display); font-weight: 800; font-size: clamp(2.6rem, 6vw, 3.4rem); letter-spacing: -0.04em; line-height: 1; font-variant-numeric: tabular-nums; }
.price small { font-size: 1rem; font-weight: 600; letter-spacing: 0; opacity: .75; }
.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; margin-top: 22px; align-items: stretch; }
.plan { position: relative; min-width: 0; display: flex; flex-direction: column; padding: clamp(26px, 3vw, 34px); border-radius: 28px; background: var(--surface); border: 1px solid var(--line); }
.plan h3 { font-size: 1.5rem; font-weight: 800; }
.plan .price { margin-top: 14px; }
.plan .sub { margin: 10px 0 0; color: var(--muted); font-size: 1rem; }
.plan ul { margin: 20px 0 28px; }
.plan li {
  padding: 11px 0 11px 34px; border-top: 1px solid var(--line); font-size: 1.02rem;
  background: no-repeat 0 13px / 22px url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><circle cx='12' cy='12' r='12' fill='%232338E0'/><path d='M7 12.5l3.2 3.2L17 8.8' fill='none' stroke='white' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/></svg>");
}
.plan .btn { margin-top: auto; align-self: flex-start; }
.plan.best { color: #fff; border-color: transparent; background: radial-gradient(120% 90% at 100% 0%, var(--cobalt) 0%, var(--navy) 65%); }
.plan.best .sub { color: rgba(255,255,255,.8); }
.plan.best li {
  border-top-color: rgba(255,255,255,.18);
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><circle cx='12' cy='12' r='12' fill='%23FFC533'/><path d='M7 12.5l3.2 3.2L17 8.8' fill='none' stroke='%230B1145' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/></svg>");
}
.plan.best :focus-visible { outline-color: var(--sun); }
.plan.best .stamp { position: absolute; top: 28px; right: 24px; color: var(--sun); border-color: var(--sun); }

/* ---------- Meet / About ---------- */
.me { display: grid; grid-template-columns: 0.6fr 1fr; gap: clamp(36px, 7vw, 96px); align-items: center; }
.portrait-wrap { position: relative; margin-right: 16px; }
.portrait {
  aspect-ratio: 3 / 4; max-width: 100%; border-radius: 999px 999px 30px 30px; overflow: hidden;
  background: linear-gradient(180deg, #5A72FF, var(--cobalt)); color: #fff; display: grid; place-items: center;
  box-shadow: 16px 16px 0 var(--sun); font-family: var(--display); font-weight: 800; font-size: clamp(4rem, 10vw, 7rem); letter-spacing: -0.04em;
}
.portrait img { width: 100%; height: 100%; object-fit: cover; }
.badge { position: absolute; left: -20px; bottom: 40px; width: 68px; height: 68px; border-radius: 50%; display: grid; place-items: center; background: var(--navy); box-shadow: 0 0 0 6px var(--ring); }
.badge svg { width: 30px; height: 30px; }
.me h2 { max-width: 14ch; }
.me .body { margin-top: 24px; }
.me .actions { margin-top: 26px; }
.facts-inline { display: flex; flex-wrap: wrap; gap: 14px 40px; margin-top: 28px; padding-top: 22px; border-top: 2px dashed var(--line); }
.facts-inline div { display: grid; }
.facts-inline b { font-family: var(--display); font-weight: 800; font-size: 1.7rem; letter-spacing: -0.03em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.facts-inline span { color: var(--muted); font-size: 0.98rem; }
.values { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; margin-top: 44px; }
.value { min-width: 0; padding: 28px; border-radius: 24px; background: var(--surface); border: 1px solid var(--line); }
.value .ico { margin-bottom: 18px; }
.value h3 { font-size: 1.35rem; font-weight: 800; }
.value p { margin: 10px 0 0; color: var(--muted); font-size: 1.02rem; }

/* ---------- Icons ---------- */
.ico { flex: none; display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: color-mix(in srgb, var(--accent) 13%, transparent); color: var(--accent); }
.ico svg { width: 29px; height: 29px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Exam page ---------- */
.facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: 44px; overflow: hidden; border-radius: 28px; background: var(--surface); border: 1px solid var(--line); }
.fact { padding: 26px 24px; border-left: 2px dashed var(--line); min-width: 0; }
.fact:first-child { border-left: 0; }
.fact b { display: block; font-family: var(--display); font-weight: 800; font-size: clamp(2.4rem, 4.4vw, 3.2rem); letter-spacing: -0.04em; line-height: 1; font-variant-numeric: tabular-nums; }
.fact span { display: block; margin-top: 8px; color: var(--muted); font-size: 1rem; line-height: 1.45; }

.subjects { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); margin-top: 48px; overflow: hidden; background: var(--surface); border: 1px solid var(--line); border-radius: 28px; box-shadow: 0 22px 44px -30px rgba(11,17,69,.5); }
.subj { padding: 30px 22px 28px; border-left: 2px dashed var(--line); min-width: 0; }
.subj:first-child { border-left: 0; }
.subj h3 { margin-top: 18px; font-size: 1.18rem; font-weight: 600; letter-spacing: -0.01em; }
.cnt { display: block; margin-top: 8px; font-family: var(--display); font-weight: 800; font-size: 3rem; line-height: 1; letter-spacing: -0.04em; font-variant-numeric: tabular-nums; }
.cnt small { font-size: 0.95rem; font-weight: 600; letter-spacing: 0; color: var(--muted); }
.rail { display: block; margin-top: 20px; height: 8px; border-radius: 999px; background: var(--line); overflow: hidden; }
.rail i { display: block; height: 100%; border-radius: 999px; background: var(--accent); }

.marks { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-top: 40px; }
.mark { padding: 26px; border-radius: 24px; background: var(--surface); border: 1px solid var(--line); }
.mark b { display: block; font-family: var(--display); font-weight: 800; font-size: 3rem; letter-spacing: -0.04em; line-height: 1; font-variant-numeric: tabular-nums; }
.mark.plus b { color: var(--yes); }
.mark.minus b { color: var(--no); }
.mark.zero b { color: var(--muted); }
.mark span { display: block; margin-top: 8px; color: var(--muted); }
.calc { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 5vw, 60px); margin-top: 26px; align-items: center; }
.calc-box { padding: 28px; border-radius: 24px; background: var(--surface); border: 1px solid var(--line); }
.field + .field { margin-top: 22px; }
.field label { display: flex; justify-content: space-between; gap: 12px; font-family: var(--display); font-weight: 600; margin-bottom: 8px; }
.field output { color: var(--accent); font-variant-numeric: tabular-nums; }
input[type="range"] { width: 100%; accent-color: var(--accent); height: 28px; }
.score { font-family: var(--display); font-weight: 800; font-size: clamp(3.2rem, 8vw, 5rem); line-height: 1; letter-spacing: -0.04em; font-variant-numeric: tabular-nums; }
.score small { font-size: 1.2rem; font-weight: 600; color: var(--muted); letter-spacing: 0; }
.blank-line { margin: 12px 0 0; color: var(--muted); }
.tip { margin-top: 18px; padding-top: 18px; border-top: 2px dashed var(--line); color: var(--muted); font-size: 1.02rem; }

/* ---------- Process page ---------- */
.table-wrap { overflow-x: auto; margin-top: 40px; border-radius: 24px; border: 1px solid var(--line); background: var(--surface); }
table.compare { width: 100%; min-width: 560px; border-collapse: collapse; font-size: 1.02rem; }
.compare th, .compare td { padding: 16px 22px; text-align: left; vertical-align: top; border-top: 1px solid var(--line); }
.compare thead th { border-top: 0; background: var(--bg-alt); font-family: var(--display); font-weight: 800; font-size: 1.05rem; }
.compare tbody th { font-family: var(--display); font-weight: 600; }
.compare td span { display: block; color: var(--muted); font-size: 0.95rem; }
.yes, .no { font-family: var(--display); font-weight: 800; }
.yes { color: var(--yes); }
.no { color: var(--no); }

.journey { position: relative; margin-top: 60px; display: grid; gap: 26px; }
.journey::before { content: ""; position: absolute; left: 50%; top: 10px; bottom: 10px; border-left: 3px dotted var(--accent); opacity: .45; transform: translateX(-1.5px); }
.step { display: grid; grid-template-columns: 1fr 68px 1fr; align-items: center; }
.coin {
  grid-column: 2; grid-row: 1; justify-self: center; z-index: 1; width: 52px; height: 52px; border-radius: 50%;
  display: grid; place-items: center; background: var(--cobalt); color: #fff; font-family: var(--display); font-weight: 800; font-size: 1.15rem;
  box-shadow: 0 0 0 6px var(--ring);
}
.coin-end { background: var(--sun); }
.coin-end svg { width: 26px; height: 26px; }
.s-card { grid-column: 1; grid-row: 1; min-width: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: 24px 28px; box-shadow: 0 16px 34px -22px rgba(11,17,69,.5); }
.step:nth-child(even) .s-card { grid-column: 3; }
.s-head { display: flex; justify-content: space-between; align-items: center; gap: 14px; }
.s-card h3 { font-size: 1.35rem; font-weight: 600; letter-spacing: -0.02em; }
.s-card p { margin: 8px 0 0; color: var(--muted); font-size: 1.02rem; }
.s-card .needs { margin-top: 12px; padding-top: 12px; border-top: 2px dashed var(--line); font-size: 0.98rem; color: var(--ink); }
.s-card .needs b { font-family: var(--display); font-weight: 600; }

/* ---------- Video / channel ---------- */
.watch { display: grid; grid-template-columns: 1.4fr 0.6fr; gap: 22px; margin-top: 40px; }
.video {
  position: relative; aspect-ratio: 16 / 9; max-width: 100%; border-radius: 24px; overflow: hidden; text-decoration: none; color: #fff;
  background:
    linear-gradient(to top, rgba(11,17,69,.92) 0%, rgba(11,17,69,.35) 45%, rgba(11,17,69,.1) 100%),
    var(--thumb, none) center / cover no-repeat,
    radial-gradient(100% 120% at 0% 100%, var(--cobalt) 0%, var(--navy) 70%);
  display: flex; align-items: flex-end; padding: 22px;
}
.video:focus-visible { outline-color: var(--sun); }
.video .play { position: absolute; left: 50%; top: 42%; width: 80px; height: 80px; margin: -40px 0 0 -40px; border-radius: 50%; background: var(--sun); box-shadow: 0 0 0 11px rgba(255,197,51,.25); transition: transform .2s; }
.video:hover .play { transform: scale(1.06); }
.video .play::after { content: ""; position: absolute; left: 50%; top: 50%; margin: -15px 0 0 -8px; border-left: 27px solid var(--navy); border-top: 15px solid transparent; border-bottom: 15px solid transparent; }
.video .t { position: relative; font-family: var(--display); font-weight: 600; font-size: 1.1rem; }
.channel { min-width: 0; border-radius: 24px; padding: 28px; background: var(--sun); color: var(--navy); display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.channel :focus-visible { outline-color: var(--navy); }
.channel h3 { font-size: 1.6rem; font-weight: 800; }
.channel .handle { font-family: var(--display); font-weight: 600; overflow-wrap: anywhere; }
.channel p { margin: 8px 0 18px; color: rgba(11,17,69,.82); font-size: 1.02rem; }
.channel .stack { margin-top: auto; display: flex; flex-wrap: wrap; gap: 10px; }

/* ---------- Resources dropdowns ---------- */
.subject-list { display: grid; gap: 14px; margin-top: 36px; }
details.sub { background: var(--surface); border: 1px solid var(--line); border-radius: 22px; }
details.sub[open] { box-shadow: 0 18px 36px -26px rgba(11,17,69,.55); }
details.sub summary { display: flex; align-items: center; gap: 18px; padding: 18px 22px; cursor: pointer; list-style: none; border-radius: 22px; }
details.sub summary::-webkit-details-marker { display: none; }
.sub-name { min-width: 0; }
.sub-name h3 { font-size: 1.32rem; font-weight: 600; letter-spacing: -0.02em; }
.sub-name span { display: block; margin-top: 2px; color: var(--muted); font-size: 0.98rem; }
.chev { flex: none; position: relative; width: 34px; height: 34px; margin-left: auto; border-radius: 50%; background: var(--bg-alt); }
.chev::before, .chev::after { content: ""; position: absolute; left: 50%; top: 50%; width: 14px; height: 2.5px; border-radius: 2px; background: var(--accent); transform: translate(-50%, -50%); transition: transform .2s ease; }
.chev::after { transform: translate(-50%, -50%) rotate(90deg); }
details[open] > summary .chev::after { transform: translate(-50%, -50%) rotate(0deg); }
.sub-body { padding: 6px 22px 22px; border-top: 2px dashed var(--line); }
.res li + li { border-top: 1px solid var(--line); }
.res a { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 4px 16px; padding: 16px 2px; text-decoration: none; }
.res h4 { font-size: 1.12rem; font-weight: 600; letter-spacing: -0.015em; }
.res .kind { grid-column: 1; color: var(--muted); font-size: 0.96rem; }
.res .go { grid-column: 2; grid-row: 1 / span 2; font-family: var(--display); font-weight: 600; font-size: 0.97rem; color: var(--accent); border: 2px solid var(--accent); border-radius: 999px; padding: 8px 18px; white-space: nowrap; transition: background-color .15s, color .15s; }
.res a:hover .go { background: var(--accent); color: var(--on-accent); }
.empty { margin-top: 18px; padding: 20px 22px; border: 2px dashed var(--line); border-radius: 16px; color: var(--muted); font-size: 1.02rem; }
.empty p { margin: 0; }

/* ---------- Contact page ---------- */
.c-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin-top: 40px; }
.c-card { min-width: 0; display: flex; flex-direction: column; gap: 6px; padding: 28px; border-radius: 24px; background: var(--surface); border: 1px solid var(--line); }
.c-card.main { background: radial-gradient(120% 90% at 100% 0%, var(--cobalt) 0%, var(--navy) 65%); color: #fff; border-color: transparent; }
.c-card.main :focus-visible { outline-color: var(--sun); }
.c-card .ico { margin-bottom: 10px; }
.c-card.main .ico { background: rgba(255,197,51,.18); color: var(--sun); }
.c-card h3 { font-size: 1.3rem; font-weight: 600; }
.c-card .value { font-family: var(--display); font-weight: 800; font-size: clamp(1.3rem, 2.6vw, 1.7rem); letter-spacing: -0.02em; overflow-wrap: anywhere; user-select: all; }
.c-card p { margin: 4px 0 0; color: var(--muted); font-size: 1rem; }
.c-card.main p { color: rgba(255,255,255,.8); }
.c-card .row-btns { display: flex; flex-wrap: wrap; gap: 10px; margin-top: auto; padding-top: 16px; }
.c-card.soon { background: transparent; border: 2px dashed var(--line); }
.checklist { margin-top: 26px; display: grid; gap: 0; max-width: 640px; }
.checklist li {
  padding: 13px 0 13px 38px; border-top: 1px solid var(--line);
  background: no-repeat 0 15px / 24px url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><rect x='1.5' y='1.5' width='21' height='21' rx='4' fill='none' stroke='%232338E0' stroke-width='2.5'/><path d='M7 7l10 10M17 7L7 17' stroke='%232338E0' stroke-width='2.6' stroke-linecap='round'/></svg>");
}
.checklist li:first-child { border-top: 0; }
.price-list { margin-top: 26px; display: grid; max-width: 640px; }
.price-list div { display: flex; justify-content: space-between; gap: 18px; padding: 14px 0; border-top: 1px solid var(--line); }
.price-list div:first-child { border-top: 0; }
.price-list span { min-width: 0; }
.price-list b { font-family: var(--display); font-weight: 800; font-size: 1.2rem; font-variant-numeric: tabular-nums; white-space: nowrap; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: rgba(255,255,255,.74); padding-block: 52px calc(40px + env(safe-area-inset-bottom, 0px)); font-size: 0.97rem; }
.site-footer :focus-visible { outline-color: var(--sun); }
.foot { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
.foot p { margin: 14px 0 0; max-width: 38ch; }
.foot h4 { color: #fff; font-size: 1rem; font-weight: 600; letter-spacing: 0; margin-bottom: 12px; }
.foot ul { display: grid; gap: 8px; }
.foot li { overflow-wrap: anywhere; }
.foot a { color: rgba(255,255,255,.82); text-decoration: none; }
.foot a:hover { color: #fff; text-decoration: underline; }
.legal { margin-top: 40px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.14); font-size: 0.92rem; }
.legal p { margin: 0 0 6px; max-width: 80ch; }

/* ---------- Responsive ---------- */
@media (max-width: 1040px) {
  .nav { gap: 18px; font-size: 0.94rem; }
  .subjects { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .subj { border-left: 0; border-top: 2px dashed var(--line); }
  .subj:nth-child(-n+2) { border-top: 0; }
  .subj:nth-child(even) { border-left: 2px dashed var(--line); }
  .subj:last-child { grid-column: 1 / -1; }
}
@media (max-width: 960px) {
  .site-header .wrap { flex-wrap: wrap; row-gap: 0; padding-block: 10px 0; }
  .site-header .head-cta { margin-left: auto; }
  .nav { order: 3; width: 100%; margin-left: 0; gap: 22px; overflow-x: auto; padding-block: 10px 12px; scrollbar-width: none; }
  .nav::-webkit-scrollbar { display: none; }
  html { scroll-padding-top: 130px; }
}
@media (max-width: 900px) {
  .hero .wrap, .ways, .me, .watch, .calc, .two-col, .foot { grid-template-columns: 1fr; }
  .plans { grid-template-columns: 1fr; }
  .values { grid-template-columns: 1fr; }
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fact:nth-child(3) { border-left: 0; }
  .fact:nth-child(n+3) { border-top: 2px dashed var(--line); }
  .hero { border-radius: 0 0 36px 36px; }
  .band { border-radius: 0 0 32px 32px; }
  .contact-band { border-radius: 32px 32px 0 0; }
  .stage { padding-top: 90px; }
  .portrait-wrap { max-width: 300px; }
  .journey::before { left: 26px; transform: none; }
  .step { grid-template-columns: 52px 1fr; column-gap: 18px; align-items: start; }
  .coin { grid-column: 1; }
  .s-card, .step:nth-child(even) .s-card { grid-column: 2; }
}
@media (max-width: 680px) {
  .c-grid { grid-template-columns: 1fr; }
  .trial { grid-template-columns: 1fr; }
  .marks { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .brand { font-size: 1.15rem; }
  .site-header .head-cta { padding: 9px 16px; font-size: 0.95rem; }
  .bubbles { gap: 7px; }
  .bubble, .colhead .bubbles span { width: 31px; }
  .bubble { height: 31px; }
  .sun-disc { width: 84px; height: 84px; top: 30px; }
  .postmark { width: 92px; height: 92px; bottom: -52px; right: 6px; }
  .steth { width: 104px; right: -6px; }
  .way-docs .stamp { position: static; margin-bottom: 14px; align-self: flex-start; }
  .pulse { width: 96px; top: 34px; right: 26px; }
  .plan.best .stamp { position: static; align-self: flex-start; margin-bottom: 14px; }
  .s-head { flex-wrap: wrap; }
  .subjects { grid-template-columns: 1fr; }
  .subj, .subj:nth-child(even) { border-left: 0; border-top: 2px dashed var(--line); }
  .subj:first-child { border-top: 0; }
  .facts { grid-template-columns: 1fr; }
  .fact { border-left: 0; border-top: 2px dashed var(--line); }
  .fact:first-child { border-top: 0; }
  details.sub summary { padding: 16px; gap: 14px; }
  .ico { width: 46px; height: 46px; }
  .ico svg { width: 24px; height: 24px; }
  .sub-body { padding-inline: 16px; }
  .res a { grid-template-columns: 1fr; }
  .res .go { grid-column: 1; grid-row: auto; justify-self: start; margin-top: 8px; }
  .compare th, .compare td { padding: 14px 16px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .bubble, .bubble::before, .bubble::after, .video .play, .chev::before, .chev::after, .res .go { transition: none; }
}
