/* TutNook — styles
   Palette from an Indian school notebook: white page, blue ruling,
   red margin line, royal-blue ink. Green is only ever used for "paid". */
:root {
  --paper: #FBFCFE;
  --paper-2: #F0F4FB;
  --rule: #D6E2F4;
  --ink: #1C2C66;
  --ink-deep: #14204D;
  --text: #283150;
  --muted: #56607F;
  --red: #C9362F;
  --green: #13824A;
  --hi: #FFE36E;
  --focus: #F5B400;

  --wa-head: #075E54;
  --wa-bg: #ECE5DD;
  --wa-out: #D9FDD3;

  --display: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
  --body: "Atkinson Hyperlegible", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --hand: "Caveat", "Segoe Print", "Bradley Hand", cursive;

  --wrap: 1160px;
  --gutter: clamp(18px, 4vw, 40px);
  color-scheme: light;
}

/* Region switching: <html data-region="IN|INTL"> */
[data-region="IN"] .r-intl,
[data-region="INTL"] .r-in { display: none !important; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--paper); color: var(--text);
  font-family: var(--body); font-size: 1.0625rem; line-height: 1.6;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--ink); text-underline-offset: 3px; }
a:hover { color: var(--ink-deep); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 4px; }
[hidden] { display: none !important; }
.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; }
.skip { position: absolute; left: 12px; top: -60px; background: var(--ink); color: #fff; padding: 10px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { top: 12px; }

h1, h2, h3 { font-family: var(--display); color: var(--ink); line-height: 1.08; letter-spacing: -0.02em; margin: 0; }
h1 { font-size: clamp(2.4rem, 3.6vw + 1rem, 3.9rem); font-weight: 800; letter-spacing: -0.035em; line-height: 1; }
h2 { font-size: clamp(1.85rem, 2.4vw + 1rem, 2.9rem); font-weight: 750; }
h3 { font-size: 1.3rem; font-weight: 700; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }
.hand { font-family: var(--hand); }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.band { padding-block: clamp(60px, 8vw, 110px); }
.lede { font-size: clamp(1.1rem, 0.6vw + 1rem, 1.3rem); color: var(--text); max-width: 34em; }
.section-head { max-width: 42rem; margin-bottom: clamp(30px, 5vw, 52px); }
.section-head p { color: var(--muted); margin-top: 14px; font-size: 1.1rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: 700 1.05rem/1 var(--body); padding: 16px 24px; border-radius: 10px;
  border: 2px solid var(--ink); background: var(--ink); color: #fff;
  text-decoration: none; cursor: pointer; transition: background .15s ease, transform .15s ease;
}
.btn:hover { background: var(--ink-deep); color: #fff; }
.btn:active { transform: translateY(1px); }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { background: var(--paper-2); color: var(--ink); }
.btn-small { min-height: 44px; padding: 11px 18px; font-size: 1rem; }
.btn-wa { background: #128C4B; border-color: #128C4B; color: #fff; }
.btn-wa:hover { background: #0D6E3A; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 40; background: rgba(251,252,254,.9);
  backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--rule);
}
.site-header .wrap { display: flex; align-items: center; gap: 24px; height: 68px; }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font: 800 1.35rem/1 var(--display); letter-spacing: -0.03em; }
.logo svg { width: 30px; height: 30px; flex: none; }
.nav { display: flex; gap: 26px; margin-left: auto; }
.nav a { text-decoration: none; color: var(--text); font-weight: 700; font-size: .98rem; }
.nav a:hover { color: var(--ink); text-decoration: underline; }
.site-header .btn { margin-left: 8px; }
@media (max-width: 860px) { .nav { display: none; } .site-header .btn { margin-left: auto; } }

/* ---------- Hero ---------- */
.hero { padding-block: clamp(34px, 5vw, 72px) clamp(40px, 6vw, 72px); overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr); gap: clamp(28px, 5vw, 64px); align-items: center; }
.hero-copy .lede { margin-top: 20px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero-meta { margin-top: 16px; color: var(--muted); font-size: .98rem; }
.hero-meta strong { color: var(--ink); }
.hero-for { margin-top: 24px; padding-top: 16px; border-top: 1px dashed var(--rule); color: var(--muted); font-size: .98rem; max-width: 32em; }
@media (max-width: 920px) { .hero .wrap { grid-template-columns: 1fr; } }

.stage { --phone-w: 214px; position: relative; padding: 8px 0 48px; min-height: 500px; }
.register {
  position: relative; width: min(calc(100% - var(--phone-w) + 44px), 470px);
  background-color: #fff;
  background-image:
    linear-gradient(to right, transparent 46px, rgba(201,54,47,.55) 46px, rgba(201,54,47,.55) 48px, transparent 48px),
    repeating-linear-gradient(to bottom, transparent 0, transparent 39px, var(--rule) 39px, var(--rule) 40px);
  background-position: 0 0, 0 18px;
  border-radius: 4px;
  box-shadow: 0 1px 0 rgba(28,44,102,.08), 0 18px 40px -18px rgba(28,44,102,.35);
  padding: 18px 52px 20px 60px; transform: rotate(-1.2deg); color: var(--ink);
}
.reg-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; height: 40px; white-space: nowrap; overflow: hidden; }
.reg-title { font-size: 2rem; font-weight: 700; line-height: 40px; }
.reg-sub { font-size: 1.3rem; color: var(--muted); }
.reg-list { list-style: none; margin: 0; padding: 0; }
.reg-row { display: grid; grid-template-columns: 1fr 1.05fr .8fr 30px; align-items: center; height: 40px; font-family: var(--hand); font-size: 1.38rem; line-height: 1; gap: 6px; white-space: nowrap; }
.reg-batch { color: var(--muted); font-size: 1.18rem; overflow: hidden; }
.reg-amt { text-align: right; }
.mark { width: 30px; height: 30px; justify-self: end; }
.mark svg { width: 100%; height: 100%; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.mark .x { stroke: var(--red); stroke-width: 3; transition: opacity .25s ease; }
.mark .tick { stroke: var(--green); stroke-width: 3.4; stroke-dasharray: 40; stroke-dashoffset: 40; transition: stroke-dashoffset .55s cubic-bezier(.6,.1,.2,1) .1s; }
.reg-row.paid .x { opacity: 0; }
.reg-row.paid .tick { stroke-dashoffset: 0; }
.reg-row.flash { animation: rowflash 1.2s ease; }
@keyframes rowflash { 0% { background: transparent; } 25% { background: rgba(255,227,110,.55); } 100% { background: transparent; } }
.reg-total { height: 40px; display: flex; align-items: center; justify-content: space-between; font-size: 1.45rem; }
.reg-total b { font-weight: 700; color: var(--green); }
.reg-total .reg-pending { color: var(--red); font-size: 1.25rem; }

.toast {
  position: absolute; top: -6px; left: 50%; transform: translate(-50%, -8px);
  background: var(--ink); color: #fff; font: 700 .92rem/1.2 var(--body);
  padding: 10px 14px; border-radius: 999px; white-space: nowrap;
  box-shadow: 0 10px 24px -10px rgba(20,32,77,.6);
  opacity: 0; transition: opacity .3s ease, transform .3s ease; pointer-events: none; z-index: 3;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast .dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #5BE38F; margin-right: 8px; vertical-align: 1px; }

.phone {
  position: absolute; top: 64px; left: calc(min(100% - var(--phone-w) + 44px, 470px) - 44px);
  width: var(--phone-w); aspect-ratio: 9 / 16.5;
  background: #111827; border-radius: 34px; padding: 9px;
  box-shadow: 0 30px 60px -24px rgba(20,32,77,.55), 0 0 0 1px rgba(255,255,255,.06) inset;
  transform: rotate(2.5deg); z-index: 2;
}
.phone-screen { width: 100%; height: 100%; border-radius: 26px; overflow: hidden; background: var(--wa-bg); display: flex; flex-direction: column; }
.wa-head { background: var(--wa-head); color: #fff; display: flex; align-items: center; gap: 9px; padding: 22px 12px 10px; }
.wa-avatar { width: 30px; height: 30px; border-radius: 50%; background: #FFE36E; color: var(--ink); display: grid; place-items: center; font: 800 .95rem/1 var(--display); flex: none; }
.wa-head b { display: block; font-size: .86rem; line-height: 1.2; }
.wa-head small { display: block; font-size: .8rem; opacity: .85; line-height: 1.2; }
.wa-body { flex: 1; padding: 12px 10px; display: flex; flex-direction: column; gap: 7px; justify-content: flex-end; overflow: hidden; font-size: .8rem; line-height: 1.35; }
.msg { max-width: 88%; padding: 7px 9px 6px; border-radius: 9px; background: #fff; color: #111; box-shadow: 0 1px 0 rgba(0,0,0,.08); animation: msgin .28s ease both; }
.msg.out { align-self: flex-end; background: var(--wa-out); }
.msg time { display: block; text-align: right; font-size: .78rem; color: #5A6070; margin-top: 2px; }
.msg .pay { display: block; margin-top: 7px; padding: 8px 0; border-top: 1px solid #e6e6e6; text-align: center; color: #027EB5; font-weight: 700; transition: background .2s ease, transform .15s ease; border-radius: 0 0 6px 6px; }
.msg .pay.pressed { background: #E3F2FA; transform: scale(.97); }
.msg .pay small { display: block; font-weight: 400; color: #5A6070; font-size: .8rem; margin-top: 3px; line-height: 1.3; }
.typing { align-self: flex-start; background: #fff; border-radius: 9px; padding: 9px 12px; display: flex; gap: 4px; }
.typing i { width: 6px; height: 6px; border-radius: 50%; background: #9aa; animation: blink 1s infinite; }
.typing i:nth-child(2) { animation-delay: .15s; }
.typing i:nth-child(3) { animation-delay: .3s; }
@keyframes blink { 0%,100% { opacity: .3; } 50% { opacity: 1; } }
@keyframes msgin { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.stage-foot { position: absolute; left: 0; right: 0; bottom: 6px; display: flex; flex-wrap: wrap; gap: 4px 16px; align-items: center; }
.stage-note { font-size: .95rem; color: var(--muted); }
.replay { font: 700 1rem/1 var(--body); color: var(--muted); background: none; border: 0; min-height: 44px; padding: 10px 14px 10px 0; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.replay:hover { color: var(--ink); }

@media (max-width: 560px) {
  .stage { min-height: 0; padding-bottom: 60px; }
  .register { width: 100%; padding: 14px 14px 44px 48px; background-image:
    linear-gradient(to right, transparent 36px, rgba(201,54,47,.55) 36px, rgba(201,54,47,.55) 38px, transparent 38px),
    repeating-linear-gradient(to bottom, transparent 0, transparent 35px, var(--rule) 35px, var(--rule) 36px);
    background-position: 0 0, 0 14px; }
  .reg-head, .reg-row, .reg-total { height: 36px; }
  .reg-row { font-size: 1.22rem; grid-template-columns: 1fr 1fr .8fr 28px; gap: 4px; }
  .reg-batch { font-size: 1.05rem; }
  .reg-title { font-size: 1.7rem; line-height: 36px; }
  .reg-sub { font-size: 1.05rem; }
  .reg-total { font-size: 1.2rem; }
  .mark { width: 26px; height: 26px; }
  .phone { position: relative; top: auto; left: auto; width: 232px; aspect-ratio: 9 / 13; margin: -34px 4px 0 auto; }
  .wa-head { padding-top: 14px; }
  .wa-body { font-size: .82rem; }
  .toast { font-size: .8rem; }
  .hero-for { display: none; }
}

/* ---------- Calculator ---------- */
.calcband { background: var(--paper-2); border-block: 1px solid var(--rule); padding-block: clamp(44px, 6vw, 72px); }
.calcband .wrap { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); gap: clamp(28px, 5vw, 64px); align-items: center; }
.calcband h2 { max-width: 13em; }
.calcband .sub { margin-top: 14px; color: var(--muted); font-size: 1.08rem; max-width: 30em; }
.calc { background: #fff; border: 2px solid var(--ink); border-radius: 16px; padding: clamp(20px, 3vw, 28px); }
.calc-field { margin-bottom: 22px; }
input[type="range"] { width: 100%; accent-color: var(--ink); height: 28px; cursor: pointer; }
.calc-out { margin: 4px 0 0; padding-top: 16px; border-top: 1px dashed var(--rule); }
.calc-lines { list-style: none; margin: 0 0 14px; padding: 0; }
.calc-lines li { display: flex; justify-content: space-between; gap: 16px; padding: 7px 0; border-bottom: 1px solid var(--paper-2); font-size: 1rem; }
.calc-lines b { font-family: var(--display); font-size: 1.1rem; color: var(--red); white-space: nowrap; }
.calc-fix { margin: 0; font-size: 1.02rem; color: var(--text); }
.calc-fix strong { color: var(--green); }
@media (max-width: 900px) { .calcband .wrap { grid-template-columns: 1fr; } }

/* ---------- Subjects ---------- */
.subjects { padding-block: 22px; border-bottom: 1px solid var(--rule); }
.subjects .wrap { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 10px; }
.subjects p { margin: 0 8px 0 0; font-weight: 700; color: var(--ink); }
.subjects ul { display: contents; list-style: none; }
.subjects li { font-family: var(--hand); font-size: 1.45rem; color: var(--ink); line-height: 1.2; }
.subjects li:not(:last-child)::after { content: ","; }

/* ---------- Problem ---------- */
.problem .wrap { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(30px, 6vw, 76px); align-items: start; }
.excuses { padding: 24px 20px 28px; border-radius: 16px; background: var(--wa-bg); display: flex; flex-direction: column; gap: 10px; }
.excuses .ex-who { font-size: .9rem; color: #5A6070; margin-bottom: -6px; }
.excuses .msg { font-size: 1rem; max-width: 92%; animation: none; }
.excuses .msg time { font-size: .8rem; }
.excuses .seen { font-size: .95rem; color: #5A6070; font-style: italic; }
.problem-copy > p { margin-top: 18px; max-width: 34em; }
.costs { list-style: none; margin: 26px 0 0; padding: 0; display: grid; gap: 16px; }
.costs li { padding-left: 54px; position: relative; }
.costs b { display: block; font: 750 1.15rem/1.3 var(--display); color: var(--ink); margin-bottom: 4px; }
.costs span { color: var(--muted); }
.costs .ic { position: absolute; left: 0; top: 2px; width: 38px; height: 38px; border-radius: 10px; background: var(--paper-2); display: grid; place-items: center; font: 800 1.1rem/1 var(--display); color: var(--ink); }
@media (max-width: 860px) { .problem .wrap { grid-template-columns: 1fr; } }

/* ---------- How ---------- */
.how { background: var(--ink); color: #E6EBFA; }
.how h2 { color: #fff; }
.how .section-head p { color: #BCC6E8; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: clamp(20px, 3vw, 36px); counter-reset: step; }
.steps li { counter-increment: step; padding-top: 22px; border-top: 2px solid rgba(255,255,255,.25); }
.steps li::before { content: counter(step); display: block; font: 800 3rem/1 var(--display); color: var(--hi); margin-bottom: 14px; }
.steps h3 { color: #fff; margin-bottom: 10px; font-size: 1.2rem; }
.steps p { color: #C8D0EE; font-size: 1rem; margin: 0; }
@media (max-width: 900px) { .steps { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (max-width: 540px) { .steps { grid-template-columns: 1fr; } }

/* ---------- Batches ---------- */
.batches .wrap { display: grid; grid-template-columns: minmax(0,1.05fr) minmax(0,.95fr); gap: clamp(30px, 6vw, 76px); align-items: center; }
.panel { background: #fff; border: 1px solid var(--rule); border-radius: 18px; padding: 22px; box-shadow: 0 24px 50px -30px rgba(20,32,77,.4); }
.panel-top { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 16px; gap: 12px; flex-wrap: wrap; }
.panel-top b { font: 750 1.15rem/1.2 var(--display); color: var(--ink); }
.panel-top span { color: var(--muted); font-size: .95rem; }
.batch { display: grid; grid-template-columns: 1fr auto; gap: 4px 16px; padding: 14px 0; border-top: 1px solid var(--paper-2); }
.batch-name { font-weight: 700; color: var(--ink); }
.batch-when { color: var(--muted); font-size: .9rem; grid-column: 1; }
.batch-count { grid-column: 2; grid-row: 1 / span 2; align-self: center; text-align: right; font-weight: 700; font-size: .95rem; white-space: nowrap; }
.batch-count.all { color: var(--green); }
.batch-count.risk { color: var(--red); }
.bar { grid-column: 1 / -1; height: 8px; border-radius: 99px; background: #FBE3E1; overflow: hidden; margin-top: 6px; }
.bar i { display: block; height: 100%; background: var(--green); border-radius: 99px; }
.feature-list { list-style: none; margin: 26px 0 0; padding: 0; }
.feature-list li { padding: 12px 0 12px 34px; position: relative; border-top: 1px solid var(--rule); }
.feature-list li::before { content: ""; position: absolute; left: 4px; top: 17px; width: 16px; height: 9px; border-left: 3px solid var(--green); border-bottom: 3px solid var(--green); transform: rotate(-45deg); }
.feature-list b { color: var(--ink); }
@media (max-width: 900px) { .batches .wrap { grid-template-columns: 1fr; } .panel { order: 2; } }

/* ---------- Who / photos ---------- */
.who { background: var(--paper-2); }
.mosaic { display: grid; grid-template-columns: repeat(12, minmax(0,1fr)); gap: 16px; }
.tile { position: relative; margin: 0; border-radius: 14px; overflow: hidden; background: #cfd8ea; min-height: 260px; }
.tile img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.tile figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 48px 18px 16px; color: #fff; background: linear-gradient(to top, rgba(12,20,50,.88), rgba(12,20,50,0)); font-size: .98rem; line-height: 1.4; }
.tile figcaption b { display: block; font: 750 1.2rem/1.2 var(--display); margin-bottom: 4px; }
.t1 { grid-column: span 7; min-height: 380px; }
.t2 { grid-column: span 5; min-height: 380px; }
.t3 { grid-column: span 5; }
.t4 { grid-column: span 7; }
.note-tile { background: #fff; border: 1px solid var(--rule); padding: 22px; display: flex; flex-direction: column; justify-content: flex-start;
  background-image: repeating-linear-gradient(to bottom, transparent 0, transparent 33px, var(--rule) 33px, var(--rule) 34px); background-position: 0 22px; }
.note-tile p { font-family: var(--hand); color: var(--ink); font-size: 1.6rem; line-height: 34px; margin: 0; }
.photo-credit { margin-top: 14px; font-size: .9rem; color: var(--muted); }
@media (max-width: 760px) { .t1,.t2,.t3,.t4 { grid-column: 1 / -1; min-height: 280px; } }

/* ---------- Reassurance ---------- */
.calm .wrap { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 20px; }
.calm .section-head { grid-column: 1 / -1; }
.calm-card { background: #fff; border: 1px solid var(--rule); border-radius: 16px; padding: 22px; }
.calm-card h3 { font-size: 1.1rem; margin-bottom: 8px; }
.calm-card p { margin: 0; color: var(--muted); font-size: .98rem; }
.calm-icon { width: 34px; height: 34px; border-radius: 9px; background: var(--paper-2); display: grid; place-items: center; margin-bottom: 14px; }
.calm-icon svg { width: 19px; height: 19px; fill: none; stroke: var(--ink); stroke-width: 2.1; stroke-linecap: round; stroke-linejoin: round; }
@media (max-width: 980px) { .calm .wrap { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (max-width: 560px) { .calm .wrap { grid-template-columns: 1fr; } }

/* ---------- Pricing ---------- */
.pricing-head { margin-bottom: 28px; }
.pricing-head .section-head { margin-bottom: 0; }

.sizer { background: #fff; border: 1px solid var(--rule); border-radius: 14px; padding: 16px 20px; margin-bottom: 26px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; }
.sizer p { margin: 0; font-weight: 700; color: var(--ink); }
.bands { display: flex; flex-wrap: wrap; gap: 8px; }
.bands button { font: 700 1rem/1 var(--body); border: 2px solid #C5D1E8; background: #fff; color: var(--ink); min-height: 48px; padding: 12px 18px; border-radius: 999px; cursor: pointer; transition: background .15s, border-color .15s; }
.bands button:hover { border-color: var(--ink); }
.bands button[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }

.modes { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 20px; margin-bottom: clamp(32px, 5vw, 52px); }
.mode { background: #fff; border: 1px solid var(--rule); border-radius: 16px; padding: 24px 26px; }
.mode-auto { border: 2px solid var(--ink); }
.mode h3 { font-size: 1.3rem; }
.mode-price { margin: 6px 0 16px; font-weight: 700; color: var(--ink); }
.flow { list-style: none; margin: 0 0 16px; padding: 0; counter-reset: flow; }
.flow li { counter-increment: flow; position: relative; padding: 7px 0 7px 38px; }
.flow li::before { content: counter(flow); position: absolute; left: 0; top: 6px; width: 26px; height: 26px; border-radius: 50%; background: var(--paper-2); color: var(--ink); font: 800 .9rem/26px var(--display); text-align: center; }
.mode-auto .flow li::before { background: var(--ink); color: #fff; }
[data-region="IN"] .flow li.r-intl, [data-region="INTL"] .flow li.r-in { display: none; }
.mode-note { margin: 0; padding-top: 14px; border-top: 1px dashed var(--rule); color: var(--muted); font-size: .96rem; }
.mode-note strong { color: var(--ink); }

.plans { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 26px 20px; align-items: stretch; }
.group-label { margin: 0; padding-top: 10px; border-top: 3px solid var(--rule); font: 750 1.05rem/1.3 var(--display); color: var(--ink); }
.group-label.g2 { border-top-color: var(--ink); }
.group-label span { display: inline-block; margin-left: 8px; font: 700 .82rem/1 var(--body); color: var(--ink); background: var(--hi); padding: 5px 9px; border-radius: 999px; vertical-align: 2px; }
.g1 { grid-column: 1; grid-row: 1; } .g2 { grid-column: 2 / 4; grid-row: 1; }
.p1 { grid-column: 1; grid-row: 2; } .p2 { grid-column: 2; grid-row: 2; } .p3 { grid-column: 3; grid-row: 2; }
.plan { position: relative; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--rule); border-radius: 18px; padding: 28px 24px; }
.plan.featured { border: 2px solid var(--ink); box-shadow: 0 30px 60px -34px rgba(20,32,77,.55); }
.plan-tag { position: absolute; top: -14px; left: 22px; background: var(--hi); color: var(--ink); font: 700 .85rem/1 var(--body); padding: 7px 12px; border-radius: 999px; }
.plan h3 { font-size: 1.5rem; }
.plan-for { color: var(--muted); margin: 6px 0 18px; font-size: .98rem; min-height: 3em; }
.price { display: flex; align-items: baseline; gap: 6px; color: var(--ink); min-height: 3.2rem; }
.price .amt { font: 800 3rem/1 var(--display); letter-spacing: -0.04em; }
.price .per { color: var(--muted); font-weight: 700; }
.price .na { font: 750 1.2rem/1.3 var(--display); color: var(--muted); }
.plan-cap { margin: 8px 0 6px; font-weight: 700; color: var(--ink); }
.plan-annual { margin: 0 0 12px; color: var(--muted); font-size: .92rem; }
.roi { margin: 0 0 16px; padding: 10px 12px; border-radius: 10px; background: var(--paper-2); color: var(--ink); font-size: .92rem; }
.plan ul { list-style: none; margin: 0 0 22px; padding: 0; flex: 1; }
.plan li { padding: 9px 0 9px 28px; position: relative; font-size: .98rem; border-top: 1px solid var(--paper-2); }
.plan li::before { content: ""; position: absolute; left: 3px; top: 15px; width: 13px; height: 7px; border-left: 2.5px solid var(--green); border-bottom: 2.5px solid var(--green); transform: rotate(-45deg); }
.plan li.plus { font-weight: 700; color: var(--ink); padding-left: 0; }
.plan li.plus::before { display: none; }
.plan li.no { color: var(--muted); }
.plan li.no::before { border: 0; transform: none; width: auto; height: auto; content: "\2715"; color: var(--red); top: 8px; left: 2px; font-size: .85rem; font-weight: 700; }
.plan .btn { width: 100%; }
.plan .trial { margin: 10px 0 0; text-align: center; color: var(--muted); font-size: .9rem; }
.pricing-notes { margin-top: 28px; display: grid; gap: 10px; color: var(--muted); font-size: 1rem; }
@media (max-width: 980px) {
  .plans { grid-template-columns: 1fr; max-width: 520px; gap: 16px; }
  .g1,.g2,.p1,.p2,.p3 { grid-column: 1; grid-row: auto; }
  .group-label.g2 { margin-top: 28px; }
  .plan.featured { margin-top: 10px; }
  .plan-for { min-height: 0; }
  .modes { grid-template-columns: 1fr; }
  .price { min-height: 0; }
}

/* ---------- FAQ ---------- */
.faq .wrap { display: grid; grid-template-columns: minmax(0,.8fr) minmax(0,1.2fr); gap: clamp(30px, 6vw, 76px); }
.faq details { border-top: 1px solid var(--rule); }
.faq details:last-child { border-bottom: 1px solid var(--rule); }
.faq summary { list-style: none; cursor: pointer; padding: 20px 40px 20px 0; position: relative; font: 700 1.12rem/1.35 var(--display); color: var(--ink); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 6px; top: 16px; font: 400 1.7rem/1 var(--body); color: var(--ink); transition: transform .2s ease; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0 0 20px; max-width: 40em; }
@media (max-width: 860px) { .faq .wrap { grid-template-columns: 1fr; } }

/* ---------- Join ---------- */
.join { background: var(--ink); color: #E6EBFA; }
/* Links here MUST be light: the section background is var(--ink), the same colour
   as the default link colour, so anything inheriting it is invisible. */
.join a { color: #fff; text-decoration: underline; }
.join a:hover { color: var(--hi); }
.join .wrap { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: clamp(30px, 6vw, 76px); align-items: start; }
.join h2 { color: #fff; }
.join-copy p { color: #C8D0EE; margin-top: 16px; max-width: 30em; }
.join-copy ul { margin: 22px 0 0; padding: 0; list-style: none; }
.join-copy li { padding: 8px 0 8px 30px; position: relative; color: #E6EBFA; }
.join-copy li::before { content: ""; position: absolute; left: 3px; top: 14px; width: 14px; height: 8px; border-left: 3px solid var(--hi); border-bottom: 3px solid var(--hi); transform: rotate(-45deg); }
.big-ask { margin-top: 30px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.2); }
.big-ask p { margin: 0 0 14px; color: #C8D0EE; }
.form-card { background: #fff; color: var(--text); border-radius: 18px; padding: clamp(22px, 3vw, 32px); box-shadow: 0 30px 60px -30px rgba(0,0,0,.5); }
.form-card label, .form-card legend { display: block; font-weight: 700; color: var(--ink); margin-bottom: 8px; }
.form-card input[type="email"] { width: 100%; font: 400 1.08rem/1.3 var(--body); color: var(--text); padding: 14px; border: 2px solid #C5D1E8; border-radius: 10px; background: #fff; }
.form-card input[type="email"]:focus { border-color: var(--ink); outline: none; box-shadow: 0 0 0 3px rgba(245,180,0,.55); }
.form-card input[aria-invalid="true"] { border-color: var(--red); }
.field { margin-bottom: 18px; }
.form-card .btn { width: 100%; margin-top: 4px; }
.form-note { font-size: .9rem; color: var(--muted); margin: 14px 0 0; }
.form-status { margin: 12px 0 0; font-weight: 700; min-height: 1.2em; }
.form-status.error { color: var(--red); }
fieldset { border: 0; padding: 0; margin: 0 0 20px; min-width: 0; }
legend .opt, label .opt { font-weight: 400; color: var(--muted); font-size: .9rem; margin-left: 4px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.chip span { display: inline-flex; align-items: center; min-height: 48px; padding: 10px 18px; border: 2px solid #C5D1E8; border-radius: 999px; font-weight: 700; font-size: 1rem; color: var(--ink); cursor: pointer; transition: background .15s, border-color .15s; }
.chip span small { font-weight: 400; margin-left: 4px; opacity: .8; font-size: .85rem; }
.chip input:checked + span { background: var(--ink); border-color: var(--ink); color: #fff; }
.chip input:focus-visible + span { outline: 3px solid var(--focus); outline-offset: 2px; }
.done h3 { font-size: 1.6rem; margin-bottom: 8px; }
.step2-title { font-weight: 700; color: var(--ink); margin: 20px 0 14px; padding-top: 18px; border-top: 1px dashed var(--rule); }
.share { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
@media (max-width: 900px) { .join .wrap { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
.site-footer { padding-block: 40px 90px; border-top: 1px solid var(--rule); color: var(--muted); font-size: .95rem; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 16px 32px; align-items: center; justify-content: space-between; }
.site-footer nav { display: flex; gap: 22px; flex-wrap: wrap; }
.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--ink); }

/* ---------- Sticky CTA ---------- */
.sticky-cta {
  position: fixed; left: 12px; right: 12px; bottom: max(12px, env(safe-area-inset-bottom));
  z-index: 50; display: none; align-items: center; justify-content: space-between; gap: 12px;
  background: var(--ink); color: #fff; padding: 10px 10px 10px 16px; border-radius: 14px;
  box-shadow: 0 16px 36px -12px rgba(20,32,77,.6); transform: translateY(140%); transition: transform .3s ease;
}
.sticky-cta.show { transform: none; }
.sticky-cta span { font-size: .92rem; line-height: 1.25; }
.sticky-cta .btn { background: var(--hi); color: var(--ink); border-color: var(--hi); padding: 12px 16px; white-space: nowrap; }
@media (max-width: 760px) { .sticky-cta { display: flex; } }

/* ---------- Articles ---------- */
.article-wrap { max-width: 740px; margin-inline: auto; padding: clamp(36px, 6vw, 72px) var(--gutter) 40px; }
.crumbs { font-size: .92rem; color: var(--muted); margin-bottom: 18px; }
.crumbs a { color: var(--muted); }
.article h1 { font-size: clamp(2.1rem, 3vw + 1rem, 3.1rem); line-height: 1.05; }
.article .meta { color: var(--muted); margin: 16px 0 32px; font-size: .95rem; }
.article h2 { font-size: clamp(1.5rem, 1.2vw + 1rem, 2rem); margin: 44px 0 14px; }
.article h3 { margin: 28px 0 10px; }
.article p, .article li { font-size: 1.1rem; line-height: 1.72; }
.article ul, .article ol { padding-left: 1.3em; margin: 0 0 1.2em; }
.article li { margin-bottom: .4em; }
.template { background: var(--wa-out); border-radius: 12px; padding: 16px 18px; margin: 14px 0 22px; font-size: 1.02rem; line-height: 1.6; color: #122; white-space: pre-line; }
.template .label { display: block; font: 700 .85rem/1 var(--body); color: #3B5B4A; margin-bottom: 8px; white-space: normal; }
.callout { border-left: 4px solid var(--ink); background: var(--paper-2); padding: 16px 20px; border-radius: 0 12px 12px 0; margin: 28px 0; }
.callout p:last-child { margin-bottom: 0; }
.article-cta { margin: 48px 0 0; padding: 28px; background: var(--ink); color: #E6EBFA; border-radius: 18px; }
.article-cta h2 { color: #fff; margin: 0 0 10px; font-size: 1.6rem; }
.article-cta p { color: #C8D0EE; }
.article-cta .btn { background: var(--hi); color: var(--ink); border-color: var(--hi); }
.post-list { list-style: none; padding: 0; margin: 32px 0 0; }
.post-list li { border-top: 1px solid var(--rule); padding: 24px 0; }
.post-list a { font: 750 1.4rem/1.25 var(--display); text-decoration: none; color: var(--ink); }
.post-list a:hover { text-decoration: underline; }
.post-list p { margin: 8px 0 0; color: var(--muted); }
.table-scroll { overflow-x: auto; margin: 0 0 24px; }
.table-scroll table { border-collapse: collapse; width: 100%; min-width: 520px; font-size: 1rem; }
.table-scroll th, .table-scroll td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--rule); vertical-align: top; }
.table-scroll th { color: var(--ink); font-family: var(--display); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}

/* ---------- What it replaces ---------- */
.replaces { background: var(--paper-2); }
.replaces-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.rep-card { background: #fff; border: 1px solid var(--rule); border-radius: 16px; padding: 24px 26px; }
.rep-card h3 { font-size: 1.15rem; margin-bottom: 8px; }
.rep-card p { margin: 0; color: var(--muted); font-size: 1rem; }
.replaces-note { margin: 26px 0 0; color: var(--muted); max-width: 46em; font-size: .98rem; }
@media (max-width: 760px) { .replaces-grid { grid-template-columns: 1fr; } }


/* ---- Hero: the price question, answered at the top ---- */
.sizer-hero { margin: 22px 0 14px; padding: 14px 16px; }
.sizer-hero p { font-size: 1rem; }
.hero-price { margin: 0 0 6px; font-size: 1.1rem; color: var(--text); }
.hero-price strong { color: var(--ink); font-family: var(--display); font-weight: 750; white-space: nowrap; }
.hero-trial { margin: 0; color: var(--muted); font-size: 1rem; }

/* ---- Calculator: presets, not sliders ---- */
.calc-label { margin: 0 0 10px; font-weight: 700; color: var(--ink); font-size: 1rem; line-height: 1.35; }
.picks { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.picks button {
  font: 700 .95rem/1 var(--body); font-variant-numeric: tabular-nums;
  border: 2px solid #C5D1E8; background: #fff; color: var(--ink);
  min-height: 48px; min-width: 0; padding: 12px 4px; border-radius: 10px; cursor: pointer;
  white-space: nowrap; transition: background .15s, border-color .15s;
}
.picks button:hover { border-color: var(--ink); }
.picks button[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.picks button:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }

/* ---- Pricing: one confident line, detail tucked away ---- */
.pricing-notes .note-strong { color: var(--ink); font-weight: 700; }
.smallprint { margin-top: 4px; }
.smallprint summary {
  cursor: pointer; font-weight: 700; color: var(--ink); min-height: 44px;
  display: flex; align-items: center; font-size: 1rem;
}
.smallprint > div { padding: 4px 0 0; display: grid; gap: 8px; }
.smallprint p { margin: 0; }

/* ---- Footer and logo: thumb-sized nav on a phone ---- */
.site-footer nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 2px; }
.logo { display: inline-flex; align-items: center; min-height: 44px; }

/* ---- Academy: quoted, not priced ---- */
.price-custom .amt { font-size: 1.6rem; line-height: 1.15; letter-spacing: -0.02em; }
.plan.p3 .plan-cap { font-weight: 400; color: var(--muted); font-size: .95rem; }

/* The fee cycle is the deadline, not an invented one: a coach who sets up
   after the 1st waits a whole month to see the product do its job. */
.hero-trial strong { color: var(--ink); }
