/* Sathuthuka Driving School — "Green light" */
:root {
  --ground: #FBF8F2;
  --surface: #FFFFFF;
  --surface-border: #D9D3C4;
  --ink: #10261C;
  --muted: #46584E;
  --brand: #0E7A4B;
  --brand-hover: #0A6B41;
  --brand-text: #0A6B41;
  --accent-dark: #FFB81C;
  --sun: #FFB81C;
  --ink-fixed: #10261C;
  --on-brand: #FFFFFF;
  --cream: #EDF5F0;
  --band: #0F2A20;
  --band-2: #17382B;
  --mint: #CDEFDD;
  --sand: #FBE7B8;
  --sky: #D3E6F7;
  --focus: #0A6B41;
  --font-head: "Sora", "Segoe UI", system-ui, sans-serif;
  --font-body: "Public Sans", system-ui, sans-serif;
  --radius: 14px;
  --shadow: 0 2px 10px rgba(16, 38, 28, .08);
}
[data-theme="dark"] {
  --ground: #0B1914;
  --surface: #14291F;
  --surface-border: #2C4A3B;
  --ink: #EDF5F0;
  --muted: #BFD0C6;
  --brand-text: #7FE0B0;
  --band: #06100C;
  --band-2: #0E211A;
  --focus: #7FE0B0;
  --shadow: none;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--ground); color: var(--ink);
  font-family: var(--font-body); font-size: 1.0625rem; line-height: 1.6;
  overflow-wrap: break-word;
}
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.2; margin: 0 0 .6em; font-weight: 700; letter-spacing: -.01em; }
h1 { font-size: clamp(1.9rem, 6vw, 3.1rem); }
h2 { font-size: clamp(1.5rem, 4vw, 2.1rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
a { color: var(--brand-text); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 4px; }
.skip { position: absolute; left: -999px; top: 0; background: var(--sun); color: var(--ink-fixed); padding: .6rem 1rem; z-index: 100; }
.skip:focus { left: 0; }
.container { width: 100%; max-width: 1120px; margin-inline: auto; padding-inline: 1.1rem; }
.section { padding-block: 3.5rem; }
.section--tight { padding-block: 2rem; }
.muted { color: var(--muted); }
.eyebrow { font-family: var(--font-head); font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 600; color: var(--brand-text); margin-bottom: .6rem; }
.lead { font-size: 1.15rem; max-width: 62ch; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font: 700 1rem/1.2 var(--font-body); padding: .85rem 1.3rem; min-height: 48px;
  border-radius: 999px; border: 2px solid transparent; cursor: pointer;
  text-decoration: none; text-align: center; max-width: 100%;
}
.btn--primary { background: var(--brand); color: var(--on-brand); }
.btn--primary:hover { background: var(--brand-hover); color: var(--on-brand); }
[data-theme="dark"] .btn--primary:hover { background: #0B6840; }
.btn--sun { background: var(--sun); color: var(--ink-fixed); }
.btn--sun:hover { background: #FFC94D; color: var(--ink-fixed); }
.btn--ghost { background: transparent; color: var(--brand-text); border-color: var(--brand-text); }
.btn--ghost:hover { background: var(--mint); color: var(--ink-fixed); border-color: var(--ink-fixed); }
.btn-row { display: flex; flex-wrap: wrap; gap: .75rem; }

/* ---------- Always-dark surfaces ---------- */
.site-header, .hero, .band, .site-footer, .plan-card, .msg-panel { background: var(--band); color: var(--cream); }
.hero h1, .hero h2, .hero h3, .hero h4, .band h1, .band h2, .band h3, .band h4,
.site-footer h1, .site-footer h2, .site-footer h3, .site-footer h4,
.plan-card h2, .plan-card h3, .msg-panel h2, .msg-panel h3 { color: var(--cream); }
.hero p, .hero li, .band p, .band li, .site-footer p, .site-footer li, .plan-card p, .msg-panel p,
.hero .muted, .band .muted, .site-footer .muted, .plan-card .muted, .msg-panel .muted { color: var(--cream); }
.hero .eyebrow, .band .eyebrow, .site-footer .eyebrow, .plan-card .eyebrow, .msg-panel .eyebrow { color: var(--accent-dark); }
.hero a, .band a, .site-footer a, .site-header a, .plan-card a, .msg-panel a { color: var(--accent-dark); }
.hero a.btn--primary, .band a.btn--primary, .site-footer a.btn--primary, .site-header a.btn--primary,
.hero a.btn--primary:hover, .band a.btn--primary:hover, .site-footer a.btn--primary:hover, .site-header a.btn--primary:hover,
.msg-panel a.btn--primary, .msg-panel a.btn--primary:hover { color: var(--on-brand); }
.hero a.btn--sun, .band a.btn--sun, .site-footer a.btn--sun, .site-header a.btn--sun, .plan-card a.btn--sun, .msg-panel a.btn--sun,
.hero a.btn--sun:hover, .band a.btn--sun:hover, .site-footer a.btn--sun:hover, .site-header a.btn--sun:hover, .plan-card a.btn--sun:hover, .msg-panel a.btn--sun:hover { color: var(--ink-fixed); }
.hero a.btn--ghost, .band a.btn--ghost, .site-footer a.btn--ghost, .site-header a.btn--ghost, .msg-panel a.btn--ghost,
.hero button.btn--ghost, .band button.btn--ghost, .site-footer button.btn--ghost, .plan-card button.btn--ghost, .msg-panel button.btn--ghost {
  color: var(--accent-dark); border-color: var(--accent-dark); background: transparent;
}
.hero a.btn--ghost:hover, .band a.btn--ghost:hover, .site-footer a.btn--ghost:hover, .site-header a.btn--ghost:hover, .msg-panel a.btn--ghost:hover,
.hero button.btn--ghost:hover, .band button.btn--ghost:hover, .site-footer button.btn--ghost:hover, .plan-card button.btn--ghost:hover, .msg-panel button.btn--ghost:hover {
  background: var(--accent-dark); color: var(--ink-fixed); border-color: var(--accent-dark);
}
.hero :focus-visible, .band :focus-visible, .site-footer :focus-visible, .site-header :focus-visible, .plan-card :focus-visible, .msg-panel :focus-visible { outline-color: var(--accent-dark); }

/* sun band (ghost buttons use dark ink) */
.band--sun { background: var(--sun); color: var(--ink-fixed); }
.band--sun h2, .band--sun h3, .band--sun p, .band--sun li { color: var(--ink-fixed); }
.band--sun a { color: var(--ink-fixed); }
.band--sun a.btn--ghost, .band--sun button.btn--ghost { color: var(--ink-fixed); border-color: var(--ink-fixed); background: transparent; }
.band--sun a.btn--ghost:hover, .band--sun button.btn--ghost:hover { background: var(--ink-fixed); color: var(--sun); border-color: var(--ink-fixed); }
.band--sun a.btn--primary, .band--sun a.btn--primary:hover { color: var(--on-brand); }
.band--sun :focus-visible { outline-color: var(--ink-fixed); }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; border-bottom: 3px solid var(--sun); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: .75rem; padding-block: .6rem; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: .6rem; text-decoration: none; min-width: 0; }
.site-header a.brand { color: var(--cream); }
.brand-mark { flex: none; width: 38px; height: 38px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; min-width: 0; }
.brand-name { font-family: var(--font-head); font-weight: 700; font-size: 1.02rem; color: var(--cream); }
.site-header .brand-sub, .site-header .muted { color: var(--accent-dark); font-size: .78rem; font-weight: 600; }
.nav { display: flex; align-items: center; gap: .25rem; flex-wrap: wrap; }
.nav a { padding: .55rem .7rem; border-radius: 8px; text-decoration: none; font-weight: 600; font-size: .98rem; }
.site-header .nav a { color: var(--cream); }
.site-header .nav a:hover { background: var(--band-2); }
.site-header .nav a[aria-current="page"] { color: var(--accent-dark); box-shadow: inset 0 -3px 0 var(--accent-dark); border-radius: 8px 8px 0 0; }
.header-actions { display: flex; align-items: center; gap: .5rem; }
.theme-toggle {
  width: 44px; height: 44px; border-radius: 50%; border: 2px solid var(--accent-dark);
  background: transparent; color: var(--accent-dark); cursor: pointer; display: grid; place-items: center; padding: 0;
}
.theme-toggle:hover { background: var(--accent-dark); color: var(--ink-fixed); }
.theme-toggle svg { width: 22px; height: 22px; }
.theme-toggle .i-sun { display: none; }
[data-theme="dark"] .theme-toggle .i-sun { display: block; }
[data-theme="dark"] .theme-toggle .i-moon { display: none; }
.header-cta { padding: .55rem 1.1rem; min-height: 44px; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; isolation: isolate; }
.hero-bg { position: absolute; inset: 0; z-index: -2; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(15,42,32,.96) 0%, rgba(15,42,32,.88) 55%, rgba(15,42,32,.7) 100%); }
[data-theme="dark"] .hero::before { background: linear-gradient(90deg, rgba(6,16,12,.97) 0%, rgba(6,16,12,.9) 55%, rgba(6,16,12,.78) 100%); }
.hero-inner { padding-block: 4rem 3.2rem; max-width: 760px; }
.hero h1 { margin-bottom: .5em; }
.hero .lead { margin-bottom: 1.5rem; }
.img-note { font-size: .82rem; margin-top: 1.6rem; }
.hero .img-note, .band .img-note { color: var(--cream); }
.hero .img-note a { color: var(--accent-dark); }
.dashes { height: 4px; border: 0; margin: 0; background: repeating-linear-gradient(90deg, var(--accent-dark) 0 22px, transparent 22px 40px); }
.divider { height: 4px; border: 0; margin: 0; background: repeating-linear-gradient(90deg, var(--sun) 0 22px, transparent 22px 40px); }
.page-hero .hero-inner { padding-block: 2.8rem 2.4rem; }

/* ---------- Chips ---------- */
.chip { display: inline-block; font-size: .8rem; font-weight: 700; padding: .15rem .6rem; border-radius: 999px; background: var(--sand); color: var(--ink-fixed); border: 1px solid #B98410; vertical-align: middle; line-height: 1.5; }
.chip--stock { background: var(--sky); border-color: #3C6E9E; }
.chip--need { background: var(--sand); }

/* ---------- Proof strip ---------- */
.proof { background: var(--surface); border-block: 1px solid var(--surface-border); }
.proof-inner { display: flex; flex-wrap: wrap; gap: 1rem 2rem; align-items: center; justify-content: space-between; padding-block: 1.3rem; }
.proof-stat { display: flex; align-items: baseline; gap: .6rem; flex-wrap: wrap; min-width: 0; }
.proof-num { font-family: var(--font-head); font-weight: 700; font-size: 2rem; color: var(--brand-text); }
.proof-quote { margin: 0; max-width: 56ch; font-style: italic; }
.proof-quote cite { display: block; font-style: normal; font-size: .9rem; color: var(--muted); margin-top: .25rem; }

/* ---------- Cards ---------- */
.grid { display: grid; gap: 1.2rem; }
.grid > * { min-width: 0; }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); }
.card { background: var(--surface); border: 1px solid var(--surface-border); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; display: flex; flex-direction: column; }
.card-img { aspect-ratio: 16 / 10; object-fit: cover; width: 100%; }
.card-body { padding: 1.2rem 1.2rem 1.4rem; display: flex; flex-direction: column; flex: 1; min-width: 0; }
.card-body p { color: var(--ink); }
.card-body .btn { margin-top: auto; align-self: flex-start; }
.card-tag { font-family: var(--font-head); font-weight: 700; font-size: .85rem; color: var(--brand-text); margin-bottom: .3rem; }
.panel { background: var(--surface); border: 1px solid var(--surface-border); border-radius: var(--radius); padding: 1.4rem; box-shadow: var(--shadow); }
.panel > :last-child { margin-bottom: 0; }

/* ---------- Teaser / split ---------- */
.split { display: grid; gap: 2rem; grid-template-columns: 1fr; align-items: center; }
.split > * { min-width: 0; }
@media (min-width: 800px) { .split { grid-template-columns: 1.1fr .9fr; } }
.photo { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--surface-border); }
.photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.photo figcaption { font-size: .85rem; padding: .5rem .8rem; color: var(--muted); background: var(--surface); }
figure { margin: 0; }
.ticks { list-style: none; padding: 0; margin: 0 0 1.2rem; }
.ticks li { position: relative; padding-left: 1.7rem; margin-bottom: .5rem; }
.ticks li::before { content: ""; position: absolute; left: 0; top: .5em; width: .9rem; height: .5rem; border-left: 3px solid var(--brand-text); border-bottom: 3px solid var(--brand-text); transform: rotate(-45deg); }
.band .ticks li::before { border-color: var(--accent-dark); }

/* ---------- NAP ---------- */
dl.nap { margin: 0; display: grid; grid-template-columns: 1fr; gap: .2rem 1rem; }
dl.nap dt { font-family: var(--font-head); font-weight: 600; font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; margin-top: .8rem; color: var(--brand-text); }
dl.nap dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
.band dl.nap dt, .site-footer dl.nap dt { color: var(--accent-dark); }
.band dl.nap dd, .site-footer dl.nap dd { color: var(--cream); }
.findus { display: grid; gap: 1.5rem; grid-template-columns: 1fr; }
.findus > * { min-width: 0; }
@media (min-width: 800px) { .findus { grid-template-columns: 1fr 1fr; } }

/* ---------- Footer ---------- */
.site-footer { padding-top: 0; }
.site-footer .dashes { margin-bottom: 2.4rem; }
.footer-grid { display: grid; gap: 1.8rem; grid-template-columns: 1fr; padding-bottom: 2rem; }
.footer-grid > * { min-width: 0; overflow-wrap: anywhere; }
@media (min-width: 800px) { .footer-grid { grid-template-columns: 1.3fr 1fr 1fr; } }
.site-footer h2 { font-size: 1rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: .35rem; }
.footer-bottom { background: #040B08; color: var(--cream); padding-block: 1rem; font-size: .9rem; }
.footer-bottom p { margin: 0 0 .4rem; color: var(--cream); }
.footer-bottom a { color: var(--accent-dark); }
.demo-note { background: #040B08; color: var(--cream); }
.demo-note strong { color: var(--accent-dark); }

/* ---------- Forms / planner ---------- */
.planner { display: grid; gap: 1.5rem; grid-template-columns: 1fr; align-items: start; }
.planner > * { min-width: 0; }
@media (min-width: 900px) { .planner { grid-template-columns: 1.15fr .85fr; } .plan-side { position: sticky; top: 90px; } }
fieldset { border: 1px solid var(--surface-border); border-radius: var(--radius); padding: 1.1rem 1.1rem 1.2rem; margin: 0 0 1.2rem; background: var(--surface); min-width: 0; }
legend { font-family: var(--font-head); font-weight: 700; padding-inline: .4rem; font-size: 1.05rem; max-width: 100%; }
.step-num { display: inline-grid; place-items: center; width: 1.6rem; height: 1.6rem; border-radius: 50%; background: var(--sun); color: var(--ink-fixed); font-size: .85rem; margin-right: .4rem; }
.tiles { display: grid; gap: .7rem; grid-template-columns: 1fr; }
.tile { position: relative; display: flex; align-items: center; gap: .75rem; padding: .85rem 1rem; border: 2px solid var(--surface-border); border-radius: 12px; cursor: pointer; background: var(--ground); min-height: 52px; min-width: 0; }
.tile:hover { border-color: var(--brand-text); }
.tile input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.tile .box { flex: none; width: 24px; height: 24px; border: 2px solid var(--muted); border-radius: 6px; display: grid; place-items: center; background: var(--surface); }
.tile.radio .box { border-radius: 50%; }
.tile .box::after { content: ""; width: 12px; height: 7px; border-left: 3px solid var(--brand-text); border-bottom: 3px solid var(--brand-text); transform: rotate(-45deg) translate(1px, -1px); opacity: 0; }
.tile.radio .box::after { width: 10px; height: 10px; border: 0; border-radius: 50%; background: var(--brand-text); transform: none; }
.tile span.label { min-width: 0; overflow-wrap: anywhere; font-weight: 600; }
.tile:has(input:checked) { border-color: var(--brand-text); outline: 3px solid var(--brand-text); outline-offset: -5px; background: var(--surface); }
.tile:has(input:checked) .box { border-color: var(--brand-text); }
.tile:has(input:checked) .box::after { opacity: 1; }
.tile:has(input:focus-visible) { box-shadow: 0 0 0 3px var(--focus); }
[hidden] { display: none !important; }
.field { margin-bottom: 1.1rem; }
.field label, .field .lbl { display: block; font-weight: 700; margin-bottom: .35rem; }
.field .hint { font-weight: 400; color: var(--muted); font-size: .9rem; }
input[type="text"], input[type="date"], textarea {
  width: 100%; max-width: 100%; font: inherit; color: var(--ink); background: var(--ground);
  border: 2px solid var(--surface-border); border-radius: 10px; padding: .7rem .8rem; min-height: 48px;
}
input[type="text"]:hover, input[type="date"]:hover, textarea:hover { border-color: var(--muted); }
input:focus-visible, textarea:focus-visible { outline: 3px solid var(--focus); outline-offset: 1px; }
textarea { min-height: 96px; resize: vertical; }
.countdown { display: inline-block; margin-top: .5rem; font-weight: 700; color: var(--brand-text); }
.counter { font-size: .85rem; color: var(--muted); text-align: right; }

.plan-card { border-radius: var(--radius); padding: 1.4rem; margin-bottom: 1.2rem; border: 1px solid #2C4A3B; }
.plan-card h2 { font-size: 1.2rem; }
.plan-card dl { margin: 0; }
.plan-card dt { font-family: var(--font-head); font-size: .75rem; letter-spacing: .1em; text-transform: uppercase; color: var(--accent-dark); margin-top: .8rem; }
.plan-card dd { margin: .1rem 0 0; color: var(--cream); overflow-wrap: anywhere; }
.plan-empty { font-style: italic; }
.msg-panel { border-radius: var(--radius); padding: 1.4rem; border: 1px solid #2C4A3B; }
.msg-panel h2 { font-size: 1.2rem; }
.msg-text { background: #040B08; color: var(--cream); border-radius: 10px; padding: 1rem; margin-bottom: 1rem; white-space: pre-wrap; overflow-wrap: anywhere; border: 1px solid #2C4A3B; }
.msg-panel .btn-row { margin-bottom: .8rem; }
.msg-status { min-height: 1.4em; font-size: .92rem; margin: 0; }
.fineprint { font-size: .9rem; }

/* ---------- Responsive ---------- */
@media (max-width: 700px) {
  .header-inner { flex-direction: column; align-items: stretch; }
  .header-inner .top { display: flex; align-items: center; justify-content: space-between; gap: .5rem; }
  .nav { order: 3; width: 100%; justify-content: flex-start; gap: .1rem; }
  .nav a { padding: .5rem .55rem; font-size: .93rem; }
}
@media (min-width: 701px) {
  .header-inner .top { display: contents; }
  .header-inner .brand { order: 1; }
  .header-inner .nav { order: 2; }
  .header-inner .header-actions { order: 3; }
}
@media (max-width: 480px) {
  .header-cta { display: none; }
  .brand-name { font-size: .95rem; overflow-wrap: anywhere; }
  .section { padding-block: 2.5rem; }
  .btn { width: 100%; }
  .btn-row { flex-direction: column; }
  .hero-inner { padding-block: 2.5rem 2rem; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
