/* eMentors design system: flat colour, pills, 12px cards, no gradients or shadows.
   White text only on teal-deep, coral-deep or ink. */
:root {
  --teal-deep: #0F766E;
  --teal-bright: #14B8A6;
  --teal-tint: #CCFBF1;
  --coral: #FF6B4A;
  --coral-deep: #C93D1F;
  --sun: #FFC93C;
  --ink: #0B1F3A;
  --ink-muted: #4A5B70;
  --paper: #F7F7F2;
  --white: #FFFFFF;
  --line: #DEE2DA;

  --font-head: "Poppins", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-si: "Noto Sans Sinhala", "Iskoola Pota", sans-serif;
  --font-ta: "Noto Sans Tamil", "Latha", sans-serif;

  --radius: 12px;
  --gutter: 16px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1rem/1.6 var(--font-body);
}
img { max-width: 100%; display: block; }
a { color: var(--teal-deep); }
h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 700; line-height: 1.2; margin: 0 0 .5em; }
h3, h4 { font-weight: 600; }
h2 { font-size: clamp(1.6rem, 5vw, 2.25rem); }
h3 { font-size: 1.15rem; }
h4 { font-size: 1.05rem; }
p { margin: 0 0 .75em; }
.muted { color: var(--ink-muted); }
.small { font-size: .9rem; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 var(--gutter); }
.wrap--narrow { max-width: 760px; }

.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--white); padding: 8px 16px; border-radius: 999px; z-index: 100; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--teal-bright); outline-offset: 2px; }

/* ---------------------------------------------------------------- wordmark */
.wordmark { font-family: var(--font-head); font-weight: 700; font-size: 1.4rem; letter-spacing: -.01em; line-height: 1; color: inherit; }
.wordmark__m { color: var(--sun); }
.wordmark--lg { font-size: 2rem; }
.brand__by { display: block; font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; margin-top: 3px; }

/* ---------------------------------------------------------------- buttons & pills */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 12px 24px; border-radius: 999px; border: 2px solid transparent;
  font: 600 1rem/1 var(--font-head); text-decoration: none; cursor: pointer;
  transition: background-color .15s, color .15s, border-color .15s;
}
.btn--sm { min-height: 40px; padding: 8px 18px; font-size: .9rem; }
.btn--coral { background: var(--coral); color: var(--ink); }
.btn--coral:hover { background: var(--coral-deep); color: var(--white); }
.btn--teal { background: var(--teal-deep); color: var(--white); }
.btn--teal:hover { background: var(--ink); }
.btn--ink { background: var(--ink); color: var(--white); }
.btn--outline { border-color: var(--white); color: var(--white); background: transparent; }
.btn--outline:hover { background: var(--white); color: var(--teal-deep); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.ico { width: 20px; height: 20px; flex: none; }

.pill { display: inline-block; padding: 4px 12px; border-radius: 999px; font-size: .8rem; font-weight: 600; line-height: 1.5; text-decoration: none; }
.pill--teal { background: var(--teal-tint); color: var(--teal-deep); }
.pill--onDark { border: 1.5px solid rgba(255,255,255,.55); color: var(--white); }
.tag { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: .75rem; font-weight: 600; }
.tag--soon { background: var(--sun); color: var(--ink); }

/* ---------------------------------------------------------------- top bar */
.topbar { position: sticky; top: 0; z-index: 20; background: var(--teal-deep); color: var(--white); }
.topbar__inner { display: flex; align-items: center; gap: 16px; min-height: 64px; }
.brand { color: var(--white); text-decoration: none; margin-right: auto; }
.topnav { display: none; gap: 24px; }
.topnav a { color: var(--white); text-decoration: none; font-weight: 600; font-size: .95rem; }
.topnav a:hover { text-decoration: underline; text-underline-offset: 4px; }
@media (min-width: 860px) { .topnav { display: flex; } }

/* ---------------------------------------------------------------- hero */
.hero { background: var(--teal-deep); color: var(--white); padding: 32px 0 56px; }
.hero__title { font-size: clamp(2.2rem, 9vw, 4rem); margin: 20px 0 16px; letter-spacing: -.02em; }
.hero__accent { color: var(--teal-tint); }
.hero__lead { font-size: clamp(1.1rem, 3.5vw, 1.35rem); margin-bottom: 28px; }
@media (min-width: 720px) {
  .hero { padding: 64px 0 88px; }
}

/* ---------------------------------------------------------------- sections */
.section { padding: 56px 0; }
.section--tint { background: var(--white); }
@media (min-width: 720px) { .section { padding: 88px 0; } }
.eyebrow { display: inline-block; font: 600 .8rem/1 var(--font-head); letter-spacing: .1em; text-transform: uppercase; color: var(--teal-deep); background: var(--teal-tint); padding: 6px 12px; border-radius: 999px; margin-bottom: 14px; }
.section__lead { color: var(--ink-muted); font-size: 1.05rem; margin-bottom: 24px; }
.section h2 { margin-bottom: 28px; }
.section h2 + .section__lead { margin-top: -16px; }
.subhead { margin: 40px 0 16px; font-size: 1.3rem; }

.grid { display: grid; gap: 16px; }
@media (min-width: 640px) { .grid--2 { grid-template-columns: repeat(2, 1fr); } }

.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.section--tint .card { background: var(--paper); }

/* why: "show, don't tell" bento */
.bento { display: grid; gap: 16px; }
@media (min-width: 760px) {
  .bento { grid-template-columns: repeat(3, 1fr); }
  .tile--terms, .tile--tutes { grid-column: span 2; }
}
.tile { border-radius: var(--radius); padding: 24px; overflow: hidden; position: relative; }
.tile__title { font: 700 clamp(1.35rem, 4.5vw, 1.75rem)/1.2 var(--font-head); margin: 0 0 6px; letter-spacing: -.01em; }
.tile__title--sm { font-size: 1.2rem; font-weight: 600; }
.tile__sub { margin: 0; font-size: .95rem; }

/* 1. exam terms */
.tile--terms { background: var(--teal-deep); color: var(--white); display: flex; flex-direction: column; }
.tile--terms .tile__sub { color: var(--teal-tint); }
.terms { list-style: none; margin: auto 0 0; padding-top: 22px !important; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.terms li { background: var(--white); color: var(--ink); border-radius: 999px; padding: 8px 16px; font: 600 .95rem/1.2 var(--font-head); }
.terms li:nth-child(odd) { transform: rotate(-2deg); }
.terms li:nth-child(3n) { transform: rotate(1.5deg); }
.terms .t-sun { background: var(--sun); }
.terms .t-tint { background: var(--teal-tint); color: var(--teal-deep); }
.terms .t-coral { background: var(--coral); }
@media (min-width: 760px) { .terms { gap: 12px; } .terms li { font-size: 1.15rem; padding: 10px 20px; } }

/* 2. live + recorded */
.tile--live { background: var(--ink); color: var(--white); display: flex; flex-direction: column; }
.live { align-self: center; display: inline-flex; align-items: center; gap: 8px; background: var(--coral); color: var(--ink); border-radius: 999px; padding: 4px 12px; font: 700 .8rem/1.4 var(--font-head); letter-spacing: .1em; }
.live__dot { width: 8px; height: 8px; border-radius: 999px; background: var(--ink); animation: pulse 1.4s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .25; } }
@media (prefers-reduced-motion: reduce) { .live__dot { animation: none; } }
.live-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-top: 18px; }
.big { margin: 0; font: 700 1.5rem/1 var(--font-head); }
.big__cap { margin: 6px 0 0; font-size: .95rem; color: #D5DCE5; }
.big span { font-size: 4.5rem; line-height: .9; color: var(--sun); }
.player { margin-top: auto; padding-top: 20px; display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 6px 10px; }
.player__play { width: 36px; height: 36px; border-radius: 999px; background: var(--white); display: flex; align-items: center; justify-content: center; }
.player__play svg { width: 18px; height: 18px; fill: var(--ink); margin-left: 2px; }
.player__bar { height: 6px; border-radius: 999px; background: rgba(255,255,255,.25); overflow: hidden; }
.player__bar span { display: block; width: 62%; height: 100%; background: var(--teal-bright); }
.player__label { grid-column: 1 / -1; font-size: .85rem; color: #D5DCE5; }

/* 3. parents: phone chat */
.tile--parents { background: var(--sun); color: var(--ink); display: flex; flex-direction: column; }
.phone { background: var(--paper); border: 6px solid var(--ink); border-radius: 26px; padding: 0 12px 14px; margin-bottom: 14px; }
.phone__top { display: flex; align-items: center; gap: 10px; margin: 0 -12px 12px; padding: 10px 12px; background: var(--teal-deep); color: var(--white); border-radius: 18px 18px 0 0; }
.phone__logo { width: 32px; height: 32px; border-radius: 999px; background: var(--white); color: var(--ink); display: flex; align-items: center; justify-content: center; font: 700 .85rem/1 var(--font-head); }
.phone__logo b { color: var(--teal-deep); }
.phone__who { display: grid; line-height: 1.2; font-size: .9rem; }
.phone__who small { font-size: .72rem; color: var(--teal-tint); }
.msg { display: block; border-radius: 14px; padding: 10px 12px; font-size: .85rem; }
.msg--in { background: var(--white); border: 1px solid var(--line); border-top-left-radius: 4px; margin-right: 18px; }
.msg__title { margin: 0 0 8px; font: 600 .95rem/1.3 var(--font-head); }
.msg__title [lang="si"] { font-family: var(--font-si); }
.msg__title [lang="ta"] { font-family: var(--font-ta); }
.bars { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.bars li { display: grid; grid-template-columns: 58px 1fr; align-items: center; gap: 8px; font-size: .78rem; color: var(--ink-muted); }
.bars i { display: block; height: 8px; border-radius: 999px; background: var(--teal-tint); position: relative; overflow: hidden; }
.bars i::after { content: ""; position: absolute; inset: 0 auto 0 0; width: var(--v); background: var(--teal-deep); border-radius: 999px; transform-origin: left; animation: grow 1.2s ease-out both; }
.tile--parents.is-swapping .bars i::after { animation: none; }
@keyframes grow { from { transform: scaleX(0); } }
.msg__meta { margin: 8px 0 0; font-size: .75rem; color: var(--ink-muted); }
.msg-row { display: flex; justify-content: flex-end; align-items: flex-end; gap: 8px; margin-top: 10px; }
.msg--out { background: var(--teal-tint); color: var(--ink); border-bottom-right-radius: 4px; font: 600 .95rem/1.3 var(--font-head); display: inline-flex; align-items: center; gap: 6px; }
.msg--out [lang="si"] { font-family: var(--font-si); }
.msg--out [lang="ta"] { font-family: var(--font-ta); }
.ticks { width: 16px; height: 10px; fill: none; stroke: var(--teal-deep); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.avatar { width: 40px; height: 40px; border-radius: 999px; overflow: hidden; flex: none; border: 2px solid var(--ink); }
.avatar svg { width: 100%; height: 100%; display: block; }
.av-bg1 { fill: var(--teal-tint); } .av-bg2 { fill: var(--sun); } .av-bg3 { fill: var(--coral); }
/* only the active language shows */
.tile--parents:not([data-active="si"]) [data-l="si"],
.tile--parents:not([data-active="ta"]) [data-l="ta"],
.tile--parents:not([data-active="en"]) [data-l="en"] { display: none; }
.msg-row { animation: pop .35s ease-out; }
.tile--parents.is-swapping .msg-row { animation: none; }
@keyframes pop { from { transform: translateY(8px); } }
.langs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.langs button { font: 600 .85rem/1.3 var(--font-head); padding: 6px 12px; border-radius: 999px; border: 2px solid var(--ink); background: transparent; color: var(--ink); cursor: pointer; }
.langs button[lang="si"] { font-family: var(--font-si); }
.langs button[lang="ta"] { font-family: var(--font-ta); }
.langs button[aria-pressed="true"] { background: var(--ink); color: var(--white); }
.tile--parents .tile__sub { margin-bottom: 16px; }
.tile--parents .phone { margin-top: auto; }

/* 4. tute packs: courier scene */
.tile--tutes { background: var(--coral); color: var(--ink); display: flex; flex-direction: column; gap: 12px; }
.scene { width: calc(100% + 32px); margin: auto -16px 0; height: auto; overflow: visible; }
.sc-route { fill: none; stroke: var(--white); stroke-width: 3; stroke-dasharray: 2 12; stroke-linecap: round; animation: march 1s linear infinite; }
@keyframes march { to { stroke-dashoffset: -14; } }
.sc-pin { transform-box: fill-box; transform-origin: 50% 100%; animation: pin 1.6s ease-in-out infinite; }
@keyframes pin { 50% { transform: translateY(-5px); } }
.sc-ground { stroke: var(--ink); stroke-width: 3; }
.sc-dash { stroke: var(--ink); stroke-width: 3; stroke-dasharray: 18 14; opacity: .35; }
.sc-sign { font: 700 17px var(--font-head); fill: var(--white); }
.sc-speed { stroke: var(--white); stroke-width: 3.5; stroke-linecap: round; fill: none; }
.courier { animation: ride 6s cubic-bezier(.45,0,.3,1) infinite; }
.courier__bob { animation: bob .35s ease-in-out infinite alternate; }
@keyframes ride {
  0% { transform: translateX(150px); opacity: 0; }
  8% { opacity: 1; }
  62% { transform: translateX(318px); opacity: 1; }
  82% { transform: translateX(318px); opacity: 1; }
  92%, 100% { transform: translateX(318px); opacity: 0; }
}
@keyframes bob { to { transform: translateY(-2px); } }
.sparkle { opacity: 0; animation: spark 6s infinite; }
@keyframes spark { 0%, 60% { opacity: 0; } 66%, 86% { opacity: 1; } 94%, 100% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
  .courier { animation: none; transform: translateX(240px); }
  .courier__bob, .bars i::after, .msg-row, .sc-route, .sc-pin { animation: none; }
  .sparkle { animation: none; opacity: 1; }
}
.route { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; counter-reset: r; }
.route li { counter-increment: r; display: flex; align-items: center; gap: 8px; font: 600 .85rem/1.25 var(--font-head); }
.route li::before { content: counter(r); flex: none; width: 24px; height: 24px; border-radius: 999px; background: var(--ink); color: var(--white); display: flex; align-items: center; justify-content: center; font-size: .75rem; }
.route li:nth-child(2) { justify-content: center; }
.route li:last-child { justify-content: flex-end; }
.route__short { display: none; }
@media (max-width: 559px) {
  .route { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px; }
  .route li { font-size: .8rem; gap: 6px; }
  .route li::before { display: none; }
  .route li:not(:last-child)::after { content: "→"; }
  .route__long { display: none; }
  .route__short { display: inline; }
}

/* grades: combined card */
.gcard { padding: 24px; }
.gcard__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; margin-bottom: 20px; }
.gcard__grades { display: flex; align-items: center; gap: 10px; }
.gchip { display: inline-flex; flex-direction: column; padding: 10px 18px; border-radius: var(--radius); background: var(--ink); color: var(--white); }
.gchip b { font: 700 1.25rem/1.1 var(--font-head); }
.gchip small { font: 600 .78rem/1.3 var(--font-body); color: var(--teal-tint); }
.gcard__amp { font: 700 1.4rem/1 var(--font-head); color: var(--teal-deep); }
.gcard__note { margin: 0; color: var(--ink-muted); }
.gsubjects { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
@media (min-width: 640px) { .gsubjects { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .gsubjects { grid-template-columns: repeat(3, 1fr); } }
.gsubj { position: relative; display: flex; align-items: center; min-height: 64px; padding: 14px 16px 14px 24px; border: 2px solid var(--ink); border-radius: var(--radius); background: var(--white); overflow: hidden; }
.gsubj::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 8px; }
.gsubj__name { font: 700 1.1rem/1.25 var(--font-head); }
.subj--english::before    { background: var(--teal-deep); }
.subj--literature::before { background: var(--teal-bright); }
.subj--maths::before      { background: var(--sun); }
.subj--science::before    { background: var(--coral); }
.subj--commerce::before   { background: var(--ink); }
.subj--ict::before        { background: var(--coral-deep); }

/* grades: separate cards (used only if grades have different subjects) */
.grade__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.grade__head h3 { margin: 0; font-size: 1.4rem; }
.subject-list { list-style: none; margin: 0; padding: 0; }
.subject-list li { display: flex; justify-content: space-between; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); font-weight: 600; }
.subject-list .muted { font-weight: 400; font-size: .9rem; text-align: right; }

/* mentors: collectible trading cards in a swipe rail */
.rail-wrap { position: relative; }
.rail-nav { display: flex; align-items: center; justify-content: flex-end; gap: 8px; margin: -12px 0 16px; }
.rail-hint { margin-right: auto; font: 600 .9rem/1 var(--font-head); color: var(--teal-deep); }
.rail-btn { width: 44px; height: 44px; border-radius: 999px; border: 2px solid var(--ink); background: var(--white); color: var(--ink); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.rail-btn:hover { background: var(--ink); color: var(--white); }
.rail-btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
@media (max-width: 639px) { .rail-btn { display: none; } }
@media (min-width: 640px) { .rail-hint { visibility: hidden; } }
.rail {
  display: grid; grid-auto-flow: column; grid-auto-columns: min(84%, 310px); gap: 16px;
  overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory;
  margin: 0 calc(-1 * var(--gutter)); padding: 12px var(--gutter) 20px; scroll-padding: 0 var(--gutter);
  scrollbar-width: thin; scrollbar-color: var(--teal-bright) transparent;
}
.rail:focus-visible { outline-offset: -3px; }
@media (min-width: 1160px) { .rail { margin: 0; padding-left: 0; padding-right: 0; scroll-padding: 0; } }

.mcard { position: relative; scroll-snap-align: start; display: flex; flex-direction: column; background: var(--white); border: 2px solid var(--ink); border-radius: var(--radius); overflow: hidden; transition: transform .2s ease; }
.mcard:nth-child(odd):hover { transform: rotate(-1.2deg) translateY(-4px); }
.mcard:nth-child(even):hover { transform: rotate(1.2deg) translateY(-4px); }
.mcard__top { position: relative; height: 190px; border-bottom: 2px solid var(--ink); }
.mcard__glyph { position: absolute; right: -6px; top: -8px; font: 700 128px/1 var(--font-head); letter-spacing: -.04em; white-space: nowrap; pointer-events: none; }
.mcard__no { position: absolute; left: 14px; top: 14px; background: var(--white); color: var(--ink); border: 2px solid var(--ink); border-radius: 999px; padding: 2px 10px; font: 700 .75rem/1.4 var(--font-head); letter-spacing: .04em; }
.mcard__photo {
  position: absolute; left: 18px; bottom: -44px; z-index: 1;
  width: 136px; height: 136px; object-fit: cover; border-radius: 18px;
  border: 5px solid var(--white); outline: 2px solid var(--ink); background: var(--teal-tint);
  transform: rotate(-4deg); transition: transform .25s ease;
}
.mcard:hover .mcard__photo { transform: rotate(2deg) scale(1.04); }
.mcard__photo--ph { display: flex; align-items: center; justify-content: center; color: var(--teal-deep); font: 700 2rem/1 var(--font-head); }
.mcard__xp {
  position: absolute; right: 16px; bottom: -34px; z-index: 1;
  width: 78px; height: 78px; border-radius: 999px; background: var(--sun); color: var(--ink); border: 2px solid var(--ink);
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; transform: rotate(10deg);
}
.mcard__xp b { font: 700 1.45rem/1 var(--font-head); }
.mcard__xp small { font: 600 .58rem/1.1 var(--font-head); text-transform: uppercase; letter-spacing: .04em; max-width: 56px; }
.mcard__body { padding: 58px 20px 20px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.mcard__subject { align-self: flex-start; padding: 3px 12px; border-radius: 999px; font: 600 .78rem/1.4 var(--font-head); }
.mcard__name { margin: 0; font-size: 1.3rem; line-height: 1.2; }
.mcard__quote { margin: 0; font-size: .95rem; color: var(--ink); padding-left: 12px; border-left: 3px solid var(--sun); }
.mcard__tags { list-style: none; margin: 2px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.mcard__tags li { background: var(--paper); border: 1px solid var(--line); border-radius: 999px; padding: 3px 10px; font-size: .76rem; line-height: 1.4; color: var(--ink-muted); }
.mcard__more { margin-top: auto; padding-top: 6px; align-self: flex-start; font: 600 .9rem/1.4 var(--font-head); color: var(--teal-deep); text-decoration: none; }
.mcard__more:hover { text-decoration: underline; text-underline-offset: 3px; }
/* themes */
.mcard--teal .mcard__top { background: var(--teal-deep); }   .mcard--teal .mcard__glyph { color: var(--teal-bright); }
.mcard--teal .mcard__subject { background: var(--teal-deep); color: var(--white); }
.mcard--sun .mcard__top { background: var(--sun); }          .mcard--sun .mcard__glyph { color: var(--white); }
.mcard--sun .mcard__subject { background: var(--sun); color: var(--ink); }
.mcard--sun .mcard__xp { background: var(--coral); }
.mcard--coral .mcard__top { background: var(--coral); }      .mcard--coral .mcard__glyph { color: var(--coral-deep); }
.mcard--coral .mcard__subject { background: var(--coral); color: var(--ink); }
.mcard--ink .mcard__top { background: var(--ink); }          .mcard--ink .mcard__glyph { color: var(--teal-deep); }
.mcard--ink .mcard__subject { background: var(--ink); color: var(--white); }
.mcard--bright .mcard__top { background: var(--teal-bright); } .mcard--bright .mcard__glyph { color: var(--teal-tint); }
.mcard--bright .mcard__subject { background: var(--teal-tint); color: var(--teal-deep); }
@media (prefers-reduced-motion: reduce) { .mcard, .mcard__photo { transition: none; } .mcard:hover, .mcard:hover .mcard__photo { transform: none; } .mcard:hover .mcard__photo { transform: rotate(-4deg); } }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* timetable */
.soon { border-style: dashed; border-color: var(--teal-bright); }
.soon h3 { color: var(--teal-deep); }
.soon p { margin: 0; color: var(--ink-muted); }
.fee-table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.fee-table td { padding: 10px 8px 10px 0; border-top: 1px solid var(--line); vertical-align: top; }

/* timetable: grade tabs + weekly planner */
.tt-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 20px; }
.tt-tabs { display: inline-flex; gap: 4px; padding: 4px; background: var(--paper); border: 2px solid var(--ink); border-radius: 999px; }
.tt-tabs button { display: flex; flex-direction: column; align-items: center; gap: 1px; padding: 8px 20px; border: 0; border-radius: 999px; background: transparent; color: var(--ink); cursor: pointer; font: 700 1rem/1.15 var(--font-head); }
.tt-tabs button small { font: 600 .7rem/1.2 var(--font-body); color: var(--ink-muted); }
.tt-tabs button[aria-selected="true"] { background: var(--ink); color: var(--white); }
.tt-tabs button[aria-selected="true"] small { color: var(--teal-tint); }
.tt-panel[hidden] { display: none; }
.week { display: grid; gap: 10px; }
.day { display: grid; grid-template-columns: 64px 1fr; gap: 12px; align-items: start; }
.day--off { display: none; }
.day__name { margin: 0; padding-top: 10px; font: 700 .95rem/1.2 var(--font-head); color: var(--teal-deep); text-transform: uppercase; letter-spacing: .06em; }
.day__full { display: none; }
.day__slots { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.day__free { margin: 0; padding: 10px; font-size: .8rem; color: var(--ink-muted); border: 2px dashed var(--line); border-radius: var(--radius); text-align: center; }
.slot { display: grid; grid-template-columns: 1fr auto; gap: 2px 10px; padding: 12px 14px; border-radius: var(--radius); border: 2px solid var(--ink); background: var(--white); position: relative; overflow: hidden; }
.slot::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 8px; }
.slot { padding-left: 20px; }
.slot__time { font: 700 .95rem/1.3 var(--font-head); grid-column: 1 / -1; }
.slot__time > span { white-space: nowrap; }
.slot__subject { font: 600 1.05rem/1.3 var(--font-head); grid-column: 1 / -1; }
.slot__who { grid-column: 1; margin-top: 6px; display: inline-flex; align-items: center; gap: 6px; font-size: .8rem; color: var(--ink-muted); white-space: nowrap; }
.slot__who img { width: 24px; height: 24px; border-radius: 999px; object-fit: cover; border: 1.5px solid var(--ink); }
.slot__live { grid-column: 2; align-self: end; margin-top: 6px; padding-bottom: 5px; font: 600 .68rem/1 var(--font-head); text-transform: uppercase; letter-spacing: .08em; color: var(--ink-muted); }
.slot--english::before    { background: var(--teal-deep); }
.slot--literature::before { background: var(--teal-bright); }
.slot--maths::before      { background: var(--sun); }
.slot--science::before    { background: var(--coral); }
.slot--commerce::before   { background: var(--ink); }
.slot--ict::before        { background: var(--coral-deep); }
.tt-note { margin: 18px 0 0; font-size: .9rem; color: var(--ink-muted); }
/* desktop: full Monday-Sunday planner */
@media (min-width: 960px) {
  .week { grid-template-columns: repeat(7, 1fr); gap: 8px; }
  .day, .day--off { display: flex; flex-direction: column; align-items: stretch; gap: 8px; }
  .day__name { padding: 8px 0; text-align: center; border-bottom: 3px solid var(--ink); }
  .day--off .day__name { color: var(--ink-muted); border-bottom-color: var(--line); }
  .day__full { display: none; }
  .slot { grid-template-columns: 1fr; padding: 12px 10px 12px 16px; }
  .slot::before { width: 6px; }
  .slot__time { font-size: .82rem; }
  .slot__subject { font-size: .92rem; }
  .slot__who { white-space: normal; font-size: .75rem; }
  .slot__live { grid-column: 1; align-self: start; padding: 0; margin-top: 4px; font-size: .62rem; }
}
.fee-table td:last-child { text-align: right; font-weight: 600; white-space: nowrap; }

/* fees */
.fees { display: grid; gap: 16px; }
.fees .note { margin: 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; }
.ticket .fee-table { margin: 8px 0 4px; max-width: 420px; }
.note { border-radius: var(--radius); padding: 16px 20px; }
.note strong { display: block; font-family: var(--font-head); font-weight: 600; }
.note span { color: var(--ink); }
.note--sun { background: var(--sun); color: var(--ink); }
.pay { display: flex; flex-direction: column; align-items: flex-start; }
.pay .btn { margin-top: auto; }
.pay__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; width: 100%; margin-bottom: 8px; }
.pay__head h3, .pay__head h4 { margin: 0; }
.bank { display: grid; grid-template-columns: auto 1fr; gap: 4px 16px; margin: 0 0 12px; }
.bank dt { color: var(--ink-muted); }
.bank dd { margin: 0; font-weight: 600; }

/* how it works: illustrated journey (vertical on phones, horizontal on desktop) */
.journey { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.journey__step { position: relative; display: grid; grid-template-columns: 96px 1fr; gap: 18px; padding-bottom: 32px; }
.journey__step:last-child { padding-bottom: 0; }
/* dashed path joining the stations */
.journey__step:not(:last-child)::before {
  content: ""; position: absolute; left: 47px; top: 96px; bottom: 0;
  border-left: 3px dashed var(--teal-bright);
}
.journey__art { position: relative; width: 96px; height: 96px; border-radius: 999px; display: flex; align-items: center; justify-content: center; }
.journey__art svg { width: 60px; height: 60px; fill: none; stroke: var(--ink); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.journey__art .thick { stroke-width: 4; }
.journey__art .f-white { fill: var(--white); }
.journey__art .f-teal { fill: var(--teal-deep); stroke: var(--teal-deep); }
.journey__art .f-sun { fill: var(--sun); }
.journey__art .f-ink { fill: var(--ink); }
.journey__art .f-coral { fill: var(--coral); stroke: var(--coral); }
.journey__art .s-white { stroke: var(--white); }
.journey__art .s-none { stroke: none; }
.journey__step--1 .journey__art { background: var(--teal-tint); }
.journey__step--2 .journey__art { background: var(--sun); }
.journey__step--2 .f-sun { fill: var(--white); }
.journey__step--3 .journey__art { background: var(--coral); }
.journey__step--4 .journey__art { background: var(--teal-deep); }
.journey__step--4 .journey__art svg { stroke: var(--white); }
.journey__step--4 .f-ink { stroke: var(--white); }
.journey__n {
  position: absolute; top: -4px; right: -4px; width: 34px; height: 34px; border-radius: 999px;
  background: var(--ink); color: var(--white); border: 3px solid var(--white);
  display: flex; align-items: center; justify-content: center; font: 700 .95rem/1 var(--font-head);
}
.journey__body { padding-top: 10px; }
.journey__body h3 { margin: 0 0 4px; font-size: 1.2rem; }
.journey__body p { margin: 0 0 10px; color: var(--ink-muted); }
.journey__chip { display: inline-block; padding: 4px 12px; border-radius: 999px; background: var(--paper); border: 1px solid var(--line); font-size: .8rem; font-weight: 600; color: var(--teal-deep); }

@media (min-width: 900px) {
  .journey { grid-template-columns: repeat(4, 1fr); gap: 24px; }
  .journey__step { grid-template-columns: 1fr; align-content: start; justify-items: center; text-align: center; padding-bottom: 0; gap: 16px; }
  .journey__art { width: 128px; height: 128px; }
  .journey__art svg { width: 76px; height: 76px; }
  .journey__step:not(:last-child)::before {
    left: calc(50% + 76px); right: calc(-50% + 64px); top: 64px; bottom: auto;
    border-left: 0; border-top: 3px dashed var(--teal-bright);
  }
  .journey__body { padding-top: 0; max-width: 240px; }
}

.journey__finish {
  margin-top: 36px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px;
  background: var(--ink); color: var(--white); border-radius: var(--radius); padding: 20px;
}
.journey__finish p { margin: 0; flex: 1 1 220px; }
.journey__flag { flex: none; width: 44px; height: 44px; border-radius: 999px; background: var(--sun); display: flex; align-items: center; justify-content: center; }
.journey__flag svg { width: 22px; height: 22px; fill: none; stroke: var(--ink); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }

/* registration: dark launch panel with countdown */
.section--enrol { background: var(--ink); color: var(--white); overflow: hidden; }
.eyebrow--dark { background: var(--teal-deep); color: var(--white); }
.enrol { display: grid; gap: 28px; align-items: center; }
@media (min-width: 900px) { .enrol { grid-template-columns: 1.1fr 1fr; gap: 48px; } }
.enrol__title { margin: 0 0 20px !important; font-size: clamp(1.8rem, 6vw, 2.75rem); color: var(--white); }
.cd { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; max-width: 520px; }
.cd[hidden] { display: none; }
.cd__unit { background: var(--white); color: var(--ink); border-radius: var(--radius); padding: 14px 4px 10px; text-align: center; position: relative; overflow: hidden; }
.cd__unit--sec { background: var(--coral); }
.cd__num { display: block; font: 700 clamp(2.1rem, 9vw, 3.6rem)/1 var(--font-head); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.cd__num.is-tick { animation: tick .45s ease-out; }
@keyframes tick { from { transform: translateY(-14%); opacity: .35; } }
.cd__lbl { display: block; margin-top: 6px; font: 600 .7rem/1 var(--font-head); text-transform: uppercase; letter-spacing: .12em; color: var(--ink-muted); }
.cd__unit--sec .cd__lbl { color: var(--ink); }

.milestones { list-style: none; margin: 28px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); max-width: 520px; position: relative; }
.milestones::before { content: ""; position: absolute; left: 9px; right: 9px; top: 9px; border-top: 3px dashed rgba(255,255,255,.3); }
.milestones li { position: relative; display: grid; align-content: start; gap: 2px; font-size: .85rem; color: #B9C3D0; }
.milestones li:nth-child(2) { text-align: center; justify-items: center; }
.milestones li:last-child { text-align: right; justify-items: end; }
.milestones b { color: var(--white); font: 600 .95rem/1.2 var(--font-head); margin-top: 10px; }
.ms__dot { width: 20px; height: 20px; border-radius: 999px; background: var(--ink); border: 3px solid rgba(255,255,255,.4); position: relative; z-index: 1; }
.milestones li.is-done .ms__dot { background: var(--teal-bright); border-color: var(--teal-bright); }
.milestones li.is-next .ms__dot { background: var(--sun); border-color: var(--sun); }
.milestones li.is-next .ms__dot::after { content: ""; position: absolute; inset: -5px; border-radius: 999px; border: 2px solid var(--sun); animation: ring 1.8s ease-out infinite; }
.milestones li.is-next b { color: var(--sun); }
@keyframes ring { to { transform: scale(1.8); opacity: 0; } }

.enrol__cal { display: inline-flex; align-items: center; gap: 10px; margin-top: 28px; color: var(--white); font: 600 .95rem/1.3 var(--font-head); text-decoration: none; border: 2px solid rgba(255,255,255,.5); border-radius: 999px; padding: 10px 18px; }
.enrol__cal:hover { background: var(--white); color: var(--ink); }
.enrol__cal[hidden] { display: none; }
.enrol__cal svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.register { position: relative; }
.register__card { position: relative; background: var(--white); color: var(--ink); border: 0; padding: 28px 24px 24px; transform: rotate(-1deg); }
.register__card h3 { font-size: 1.4rem; margin: 0 0 4px; padding-right: 84px; }
.register__card .muted { margin-bottom: 16px; }
.register__sticker {
  position: absolute; right: -10px; top: -22px; width: 92px; height: 92px; border-radius: 999px;
  background: var(--sun); color: var(--ink); border: 3px solid var(--ink);
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
  font: 600 .72rem/1.15 var(--font-head); text-transform: uppercase; transform: rotate(12deg);
}
.register__sticker b { font-size: 1.3rem; letter-spacing: .02em; }
.btn--block { width: 100%; margin-top: 8px; }

/* on-site registration form */
.register__card--form { transform: none; }
.enrol { align-items: start; }
@media (min-width: 900px) { .enrol__intro { position: sticky; top: 100px; } }
.rform { display: grid; gap: 16px; margin-top: 8px; }
.field { margin: 0; padding: 0; border: 0; min-width: 0; display: grid; gap: 6px; }
.field > label, .field > legend { padding: 0; font: 600 .95rem/1.3 var(--font-head); color: var(--ink); }
.field small, .field legend small { font: 400 .82rem var(--font-body); color: var(--ink-muted); }
.field input:not([type=radio]):not([type=checkbox]), .field select {
  width: 100%; min-height: 48px; padding: 10px 14px; border: 2px solid var(--ink); border-radius: var(--radius);
  font: 400 1rem/1.3 var(--font-body); color: var(--ink); background: var(--white);
}
.field select { appearance: none; background-image: none; }
.field input:focus, .field select:focus { outline: 3px solid var(--teal-bright); outline-offset: 1px; }
.opts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 2px; }
.opt { position: relative; cursor: pointer; }
.opt input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.opt span { display: inline-flex; align-items: center; min-height: 40px; padding: 8px 14px; border: 2px solid var(--ink); border-radius: 999px; font: 600 .88rem/1.2 var(--font-head); background: var(--white); }
.opt input:checked + span { background: var(--ink); color: var(--white); }
.opt input:checked + span::before { content: "✓"; margin-right: 6px; color: var(--sun); }
.opt input:focus-visible + span { outline: 3px solid var(--teal-bright); outline-offset: 2px; }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: .9rem; color: var(--ink); cursor: pointer; }
.consent input { width: 22px; height: 22px; margin: 1px 0 0; flex: none; accent-color: var(--teal-deep); }
.has-error > label, .has-error > legend, .consent.has-error span { color: var(--coral-deep); }
.has-error input:not([type=radio]):not([type=checkbox]) { border-color: var(--coral-deep); }
.has-error .opt span { border-color: var(--coral-deep); }
.rform__errors { margin: 0; padding: 12px 14px; border-radius: var(--radius); background: var(--paper); color: var(--coral-deep); font-size: .92rem; border: 2px solid var(--coral-deep); }
.rform__errors a { color: var(--coral-deep); font-weight: 600; }
.rform__small { margin: -4px 0 0; font-size: .8rem; color: var(--ink-muted); text-align: center; }
.rform button[disabled] { opacity: .7; cursor: progress; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.rdone { display: grid; justify-items: start; gap: 10px; padding: 8px 0 4px; }
.rdone__tick { width: 52px; height: 52px; border-radius: 999px; background: var(--teal-deep); color: var(--white); display: flex; align-items: center; justify-content: center; font: 700 1.6rem/1 var(--font-head); }
.rdone h4 { margin: 0; font-size: 1.4rem; }
.rdone p { margin: 0; color: var(--ink-muted); }

/* hero layout with countdown panel */
.hero__inner { display: grid; gap: 28px; }
.hero__title { margin-top: 18px; }
.hero__lead { margin-bottom: 24px; }
@media (min-width: 960px) {
  .hero__inner { grid-template-columns: 1.1fr 1fr; column-gap: 56px; row-gap: 40px; align-items: center; }
  .hero__title { font-size: clamp(2.6rem, 4.2vw, 3.4rem); }
}
.cdpanel { background: var(--ink); color: var(--white); border-radius: var(--radius); padding: 20px; }
@media (min-width: 720px) { .cdpanel { padding: 28px; } }
.cdpanel__kicker { display: flex; align-items: center; gap: 8px; margin: 0; font: 600 .78rem/1 var(--font-head); text-transform: uppercase; letter-spacing: .12em; color: var(--teal-tint); }
.cdpanel__title { margin: 10px 0 16px; font: 700 clamp(1.5rem, 5.5vw, 2rem)/1.15 var(--font-head); color: var(--white); }
.cdpanel .cd { max-width: none; gap: 8px; }
.cdpanel .cd__num { font-size: clamp(1.9rem, 8.5vw, 3rem); }
.cdpanel .milestones { max-width: none; margin-top: 22px; }
.cdpanel .enrol__cal { margin-top: 22px; }
.enrol__lead { color: #D5DCE5; font-size: 1.1rem; margin: 0 0 18px; max-width: 32ch; }
.enrol__intro .hero__cd { background: var(--teal-deep); margin: 0; }

/* studio gear strip: auto-scrolling marquee */
.gear { background: var(--ink); color: var(--white); padding: 18px 0; overflow: hidden; }
.gear__inner { display: grid; gap: 10px; }
.gear__label { margin: 0; padding: 0 var(--gutter); font: 600 .78rem/1.2 var(--font-head); text-transform: uppercase; letter-spacing: .12em; color: var(--teal-tint); }
@media (min-width: 900px) {
  .gear__inner { grid-template-columns: auto 1fr; align-items: center; gap: 24px; max-width: 1120px; margin: 0 auto; padding: 0 var(--gutter); }
  .gear__label { padding: 0 24px 0 0; border-right: 2px solid rgba(255,255,255,.2); max-width: 150px; }
}
.marquee { overflow: hidden; }
.marquee__track { list-style: none; margin: 0; padding: 0; display: flex; width: max-content; animation: marquee 28s linear infinite; }
.marquee:hover .marquee__track, .marquee:focus-within .marquee__track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }
.gear-item { display: inline-flex; align-items: center; gap: 10px; padding: 6px 28px 6px 0; margin-right: 28px; border-right: 2px solid rgba(255,255,255,.15); white-space: nowrap; }
.gear-item__icon { width: 36px; height: 36px; border-radius: 999px; background: var(--teal-deep); display: inline-flex; align-items: center; justify-content: center; flex: none; }
.gear-item__icon svg { width: 18px; height: 18px; fill: none; stroke: var(--white); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.gear-item__brand { font: 700 1.35rem/1 var(--font-head); letter-spacing: -.01em; }
.gear-item__mark { height: 36px; display: inline-flex; align-items: center; }
.gear-item__logo { width: auto; display: block; filter: brightness(0) invert(1); }
.gear-item--logo { gap: 14px; }
.gear-item--logo .gear-item__use { padding-left: 14px; border-left: 2px solid var(--teal-bright); line-height: 1.2; }
.gear-item__use { font-size: .85rem; color: #B9C3D0; }
@media (prefers-reduced-motion: reduce) {
  .marquee__track { animation: none; width: auto; flex-wrap: wrap; justify-content: center; row-gap: 8px; }
  .gear-item[aria-hidden="true"] { display: none; }
}

/* hero: syllabus badge */
.hero__badges { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; }
.syllabus-badge { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px 6px 10px; border-radius: 999px; background: var(--sun); color: var(--ink); font: 700 .88rem/1.3 var(--font-head); }
.syllabus-badge svg { width: 20px; height: 20px; flex: none; fill: none; stroke: var(--ink); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.hero__badges .pill { align-self: center; }
/* grades: who it is for */
.syllabus-note { display: flex; gap: 12px; align-items: flex-start; margin: -12px 0 24px; padding: 14px 18px; border-radius: var(--radius); background: var(--teal-tint); color: var(--ink); max-width: 760px; }
.syllabus-note svg { width: 22px; height: 22px; flex: none; margin-top: 1px; fill: none; stroke: var(--teal-deep); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* hero: online-only line */
.hero__online { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin: 0 0 14px; font: 600 clamp(1.05rem, 3.6vw, 1.3rem)/1.3 var(--font-head); }
.hero__online-tag { display: inline-flex; align-items: center; gap: 8px; padding: 5px 14px 5px 10px; border-radius: 999px; background: var(--sun); color: var(--ink); font-size: .9rem; }
.hero__online-tag svg { width: 20px; height: 20px; fill: none; stroke: var(--ink); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
/* the sizer holds the width of the longest place name, so the line never reflows */
.rotator { display: inline-grid; overflow: hidden; vertical-align: bottom; white-space: nowrap; }
.rotator__sizer, .rotator__word { grid-area: 1 / 1; }
.rotator__sizer { visibility: hidden; }
.rotator__word { justify-self: start; color: var(--white); border-bottom: 3px solid var(--sun); }
.rotator__word.is-in { animation: slideup .4s ease-out; }
@keyframes slideup { from { transform: translateY(70%); } }

/* fees: try-first ticket */
.ticket { position: relative; display: grid; margin-bottom: 20px; border: 2px solid var(--ink); border-radius: var(--radius); background: var(--white); }
.ticket__stub, .ticket__main { padding: 22px 24px; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.ticket__stub { background: var(--sun); color: var(--ink); border-radius: 10px 10px 0 0; border-bottom: 3px dashed var(--ink); }
.ticket__kicker { font: 600 .8rem/1 var(--font-head); text-transform: uppercase; letter-spacing: .12em; }
.ticket__big { font: 700 clamp(2.6rem, 11vw, 3.6rem)/1 var(--font-head); letter-spacing: -.02em; }
.ticket__price { font: 700 clamp(1.6rem, 6vw, 2.2rem)/1.1 var(--font-head); color: var(--teal-deep); }
.ticket__main .ticket__kicker { color: var(--ink-muted); }
.ticket p { margin: 0; }
.ticket__main p { color: var(--ink-muted); }
.ticket__main .btn { margin-top: 8px; }
/* the notches where the ticket tears: paper-coloured bites on the dashed line */
.ticket__stub { position: relative; }
.ticket__stub::before, .ticket__stub::after { content: ""; position: absolute; width: 26px; height: 26px; border-radius: 999px; background: var(--paper); }
.ticket__stub::before { left: -16px; bottom: -15px; }
.ticket__stub::after { right: -16px; bottom: -15px; }
.ticket__stamp {
  position: absolute; right: 16px; top: 16px; width: 74px; height: 74px; border-radius: 999px;
  border: 3px solid var(--coral-deep); color: var(--coral-deep);
  display: flex; align-items: center; justify-content: center; text-align: center;
  font: 700 .85rem/1.05 var(--font-head); text-transform: uppercase; letter-spacing: .06em; transform: rotate(-14deg);
}
@media (max-width: 719px) { .ticket__stamp { top: auto; bottom: 18px; } }
@media (min-width: 720px) {
  .ticket { grid-template-columns: 1fr 1.5fr; }
  .ticket__stub { border-radius: 10px 0 0 10px; border-bottom: 0; border-right: 3px dashed var(--ink); padding: 28px; }
  .ticket__main { padding: 28px 110px 28px 32px; }
  .ticket__stub::before { left: auto; right: -15px; top: -16px; bottom: auto; }
  .ticket__stub::after { right: -15px; bottom: -16px; }
}
@media (prefers-reduced-motion: reduce) { .rotator__word.is-in { animation: none; } }

/* countdown chip */
.hero__cd { display: inline-flex; align-items: center; gap: 10px; margin-top: 20px; padding: 8px 16px; border-radius: 999px; background: var(--ink); color: var(--white); text-decoration: none; font: 600 .92rem/1.3 var(--font-head); font-variant-numeric: tabular-nums; }
.hero__cd[hidden] { display: none; }
.hero__cd-dot { width: 10px; height: 10px; border-radius: 999px; background: var(--sun); animation: pulse 1.4s ease-in-out infinite; }
@media (prefers-reduced-motion: reduce) { .cd__num.is-tick, .hero__cd-dot, .milestones li.is-next .ms__dot::after { animation: none; } }

/* parents */
.parent[lang="si"] { font-family: var(--font-si); }
.parent[lang="ta"] { font-family: var(--font-ta); }
.parent[lang="si"] h3, .parent[lang="ta"] h3 { font-family: inherit; }
.parent p { line-height: 1.75; }
.parent p:last-child { margin-bottom: 0; }

/* faq */
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 18px 40px 18px 0; position: relative; font: 600 1.05rem/1.4 var(--font-head); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%); width: 28px; height: 28px; border-radius: 999px; background: var(--teal-tint); color: var(--teal-deep); display: flex; align-items: center; justify-content: center; font-size: 1.2rem; }
.faq details[open] summary::after { content: "–"; }
.faq details > div { padding: 0 0 18px; color: var(--ink-muted); }

/* ---------------------------------------------------------------- footer */
.footer { background: var(--ink); color: var(--white); padding: 48px 0 96px; }
.footer a { color: var(--white); }
.footer__inner { display: grid; gap: 28px; }
@media (min-width: 760px) { .footer__inner { grid-template-columns: 1.4fr 1fr 1fr; } .footer { padding-bottom: 32px; } }
.footer__small { margin-top: 14px; font-size: .9rem; opacity: .85; }
.footer__links, .footer__social { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; align-content: start; }
.footer__social { display: flex; flex-wrap: wrap; gap: 8px; }
.footer .muted { color: #B9C3D0; }
.footer__privacy { margin-top: 32px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.2); font-size: .85rem; color: #B9C3D0; }

/* ---------------------------------------------------------------- sticky CTA (phones) */
.stickybar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
  display: grid; grid-template-columns: 1fr 1fr; gap: 8px;
  padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom));
  background: var(--paper); border-top: 1px solid var(--line);
  transform: translateY(110%); transition: transform .2s;
}
.stickybar.is-shown { transform: none; }
.stickybar[hidden] { display: none; }
@media (min-width: 760px) { .stickybar { display: none; } }

/* ---------------------------------------------------------------- placeholder check (?placeholders) */
.show-placeholders .is-placeholder { outline: 2px dashed var(--coral-deep); outline-offset: 3px; }
@media (max-width: 479px) { .hide-sm { display: none; } }

/* ---------------------------------------------------------------- policy links (footer) */
.footer__policies { list-style: none; margin: 0 0 16px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 20px; }
.footer__policies a { color: var(--white); font-weight: 600; }

/* ---------------------------------------------------------------- policies page */
.doc { padding: 40px 0 72px; }
.doc h1 { font-size: clamp(2rem, 6vw, 2.75rem); margin-bottom: 12px; }
.doc__lead { color: var(--ink-muted); font-size: 1.05rem; }
.doc__draft { margin: 0 0 28px; padding: 14px 18px; border-radius: var(--radius); background: var(--sun); color: var(--ink); }
.doc__toc { margin: 28px 0 8px; padding: 20px 24px; border: 2px solid var(--ink); border-radius: var(--radius); background: var(--white); }
.doc__toc h2 { font-size: 1.1rem; margin: 0 0 8px; }
.doc__toc ol { margin: 0; padding-left: 22px; display: grid; gap: 6px; }
.doc__toc a { font-weight: 600; }
.doc section { padding-top: 40px; scroll-margin-top: 80px; }
.doc section h2 { font-size: clamp(1.5rem, 5vw, 1.9rem); padding-top: 24px; border-top: 3px solid var(--ink); }
.doc h3 { margin: 24px 0 8px; font-size: 1.1rem; }
.doc p, .doc li { line-height: 1.7; }
.doc ul { padding-left: 22px; display: grid; gap: 6px; margin: 0 0 12px; }
.doc__updated { color: var(--ink-muted); font-size: .9rem; }
.doc__back { margin-top: 48px; color: var(--ink-muted); }
mark.tbd { background: var(--sun); color: var(--ink); padding: 0 4px; border-radius: 4px; }
.doc__draft mark.tbd { background: var(--white); }
