/* =========================================================
   Young ITutors: styles
   Colors: change them here and the whole site updates.
   ========================================================= */
:root {
  --navy: #13294b;        /* trust: headings, dark sections */
  --navy-700: #1d3a66;
  --teal: #0e7c86;        /* friendly + techy: accents */
  --teal-dark: #0a5f67;   /* teal text on light backgrounds */
  --teal-50: #e6f4f5;
  --teal-light: #7fd6dc;  /* teal on dark backgrounds */
  --yellow: #ffc845;      /* call-to-action buttons */
  --yellow-dark: #f2b01e;
  --ink: #1f2a37;         /* body text */
  --muted: #4b5563;       /* secondary text */
  --bg: #ffffff;
  --bg-alt: #f4f7fb;
  --line: #dde3ec;
  --field-border: #7a8699;

  --radius: 16px;
  --shadow: 0 6px 24px rgba(19, 41, 75, 0.08);
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-round: ui-rounded, "SF Pro Rounded", "Arial Rounded MT Bold", "Nunito", var(--font);
  --font-mono: ui-monospace, "Cascadia Code", "SF Mono", Consolas, Menlo, monospace;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { color: var(--navy); line-height: 1.2; margin: 0 0 0.5em; }
h1 { font-size: clamp(2.1rem, 6.5vw, 3.4rem); letter-spacing: -0.025em; font-weight: 800; }
h2 { font-size: clamp(1.7rem, 4.6vw, 2.5rem); letter-spacing: -0.02em; font-weight: 800; }
h3 { font-size: 1.3rem; font-weight: 750; }
p { margin: 0 0 1em; }

a { color: var(--teal-dark); text-underline-offset: 3px; }
a:hover { color: var(--navy); }

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

::selection { background: var(--yellow); color: var(--navy); }

.container { width: min(1120px, 100% - 2.5rem); margin-inline: auto; }
.muted { color: var(--muted); }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute;
  left: 1rem; top: -100px;
  z-index: 100;
  background: var(--navy);
  color: #fff;
  padding: 0.75rem 1.1rem;
  border-radius: 10px;
  font-weight: 700;
  text-decoration: none;
}
.skip-link:focus { top: 1rem; color: #fff; }

.link-arrow { font-weight: 750; text-decoration: none; }
.link-arrow::after { content: " →"; }
.link-arrow:hover { text-decoration: underline; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 48px;
  padding: 0.7rem 1.4rem;
  border: 2px solid transparent;
  border-radius: 999px;
  font: inherit;
  font-size: 1rem;
  font-weight: 750;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s, color 0.15s, transform 0.15s, box-shadow 0.15s;
}
.btn:hover { transform: translateY(-1px); }
.btn:disabled { opacity: 0.7; cursor: wait; transform: none; }

.btn-primary {
  background: var(--yellow);
  color: var(--navy);
  box-shadow: 0 3px 0 var(--yellow-dark);
}
.btn-primary:hover { background: var(--yellow-dark); color: var(--navy); }

.btn-secondary {
  background: transparent;
  color: var(--navy);
  border-color: var(--navy);
}
.btn-secondary:hover { background: var(--navy); color: #fff; }

.btn-sm { min-height: 44px; padding: 0.45rem 1rem; font-size: 0.95rem; }
.btn-lg { min-height: 54px; padding: 0.85rem 1.7rem; font-size: 1.05rem; }
.btn-block { width: 100%; }

/* ---------- Logo ---------- */
.logo {
  font-family: var(--font-round);
  font-weight: 800;
  font-size: 1.5rem;
  line-height: 1;
  letter-spacing: -0.01em;
  text-decoration: none;
  white-space: nowrap;
  color: var(--navy);
  padding-top: 0.3em;
}
.logo-young { color: var(--navy); }
.logo-itutors { color: var(--teal); }
.logo-i { position: relative; display: inline-block; }
.logo-i::before {               /* the little yellow spark over the "I" */
  content: "";
  position: absolute;
  top: -0.42em;
  left: 50%;
  width: 0.5em;
  height: 0.5em;
  transform: translateX(-50%);
  background: var(--yellow-dark);
  clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%);
}
@media (max-width: 359px) { .header-inner .logo { font-size: 1.25rem; } }
.logo:hover .logo-young { color: var(--navy-700); }
.logo--light .logo-young { color: #fff; }
.logo--light .logo-itutors { color: var(--teal-light); }
.logo--light .logo-i::before { background: var(--yellow); }

/* ---------- Header & navigation (phones first) ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  min-height: 69px;
  background: rgba(255, 255, 255, 0.97);
  border-bottom: 1px solid var(--line);
  transition: box-shadow 0.2s;
}
.site-header.is-scrolled { box-shadow: 0 6px 20px rgba(19, 41, 75, 0.08); }
@supports (backdrop-filter: blur(8px)) {
  .site-header { background: rgba(255, 255, 255, 0.88); backdrop-filter: saturate(180%) blur(10px); }
}

.header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem;
  min-height: 68px;
  padding-block: 0.5rem;
}
.header-inner .logo { margin-right: auto; }

/* Small phones show "Book"; screen readers still hear "Book a Session" */
@media (max-width: 419px) {
  .cta-extra {
    position: absolute;
    width: 1px; height: 1px;
    overflow: hidden; clip: rect(0 0 0 0);
    white-space: nowrap;
  }
}

.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  cursor: pointer;
}
.nav-toggle-bars,
.nav-toggle-bars::before,
.nav-toggle-bars::after {
  display: block;
  width: 20px;
  height: 2px;
  border-radius: 2px;
  background: var(--navy);
  transition: transform 0.2s, background-color 0.2s;
}
.nav-toggle-bars { position: relative; }
.nav-toggle-bars::before,
.nav-toggle-bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle-bars::before { top: -6px; }
.nav-toggle-bars::after { top: 6px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { transform: translateY(-6px) rotate(-45deg); }

.site-nav { display: none; width: 100%; }
.site-nav.open { display: block; padding-bottom: 0.5rem; }
.site-nav ul { list-style: none; margin: 0; padding: 0; }
.site-nav a {
  display: block;
  padding: 0.85rem 0.25rem;
  border-top: 1px solid var(--line);
  color: var(--navy);
  font-weight: 650;
  text-decoration: none;
}
.site-nav a:hover { color: var(--teal-dark); }
.site-nav a[aria-current="page"] { color: var(--teal-dark); font-weight: 800; }

@media (min-width: 1080px) {
  .header-inner { flex-wrap: nowrap; gap: 1.5rem; }
  .nav-toggle { display: none; }
  .site-nav, .site-nav.open { display: block; width: auto; margin-left: auto; padding: 0; }
  .header-inner .logo { margin-right: 0; }
  .header-cta { order: 1; } /* desktop: logo | menu | Book button */
  .site-nav ul { display: flex; gap: 1.4rem; }
  .site-nav a { padding: 0.5rem 0; border: 0; font-size: 0.98rem; }
  .site-nav a[aria-current="page"] { box-shadow: inset 0 -3px 0 var(--teal); }
}

/* ---------- Sections ---------- */
.section { padding-block: clamp(3.5rem, 9vw, 6rem); }
.section-tight { padding-block: clamp(2rem, 5vw, 3rem); }
.section-alt { background: var(--bg-alt); }
.section-head { max-width: 680px; margin: 0 auto 2.5rem; text-align: center; }
.section-lead { color: var(--muted); font-size: 1.1rem; margin: 0; }
.eyebrow {
  margin: 0 0 0.6rem;
  color: var(--teal-dark);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.center-cta { text-align: center; margin: 2.5rem 0 0; }

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.split { display: grid; gap: 2.5rem; }
@media (min-width: 960px) {
  .split { grid-template-columns: 1fr 1fr; gap: 3.5rem; align-items: start; }
}

/* ---------- Home hero ---------- */
.hero,
.page-hero {
  overflow: hidden;
  background:
    radial-gradient(circle at 88% 8%, #dff1f3 0, rgba(223, 241, 243, 0) 42%),
    radial-gradient(circle at 5% 95%, #fff3d4 0, rgba(255, 243, 212, 0) 35%),
    linear-gradient(180deg, #f7fafc 0%, #ffffff 100%);
}
.hero { padding-block: clamp(2.75rem, 8vw, 5.5rem); }
.hero-inner { display: grid; gap: 2.5rem; align-items: center; }
.hero h1 .highlight,
.page-hero h1 .highlight { color: var(--teal); }
.hero-lead { max-width: 38rem; color: var(--muted); font-size: 1.15rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin: 1.75rem 0 1.5rem; }
.hero-facts { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0; padding: 0; list-style: none; }
.hero-facts li {
  padding: 0.35rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--navy);
  font-size: 0.92rem;
  font-weight: 650;
}
@media (max-width: 479px) {
  .hero-actions .btn, .cta-actions .btn { width: 100%; }
}

.hero-art { display: none; }
@media (min-width: 700px) {
  .hero-art { display: grid; gap: 1.1rem; width: 100%; max-width: 430px; margin-inline: auto; }
}
@media (min-width: 960px) {
  .hero-inner { grid-template-columns: 1.2fr 0.8fr; }
}
.art-card {
  padding: 1.25rem 1.4rem;
  border-radius: 18px;
  box-shadow: 0 14px 40px rgba(19, 41, 75, 0.14);
  font-family: var(--font-mono);
}
.art-card code { display: block; font-family: inherit; font-size: 1.02rem; line-height: 1.7; }
.art-math { background: var(--navy); color: #fff; transform: rotate(-2deg); }
.art-code {
  background: #fff;
  border: 1px solid var(--line);
  color: var(--ink);
  transform: rotate(1.5deg) translateX(1.25rem);
}
.art-label {
  display: inline-block;
  margin-bottom: 0.6rem;
  padding: 0.2rem 0.65rem;
  border-radius: 999px;
  background: var(--yellow);
  color: var(--navy);
  font-family: var(--font);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.tok-check { color: var(--yellow); font-weight: 700; }
.tok-key { color: #7c3aed; font-weight: 700; }
.tok-fn { color: var(--teal-dark); font-weight: 700; }
.tok-str { color: #b4540a; }

/* ---------- Page header (inner pages) ---------- */
.page-hero {
  padding-block: clamp(2.5rem, 7vw, 4.5rem);
  border-bottom: 1px solid var(--line);
}
.page-hero h1 { max-width: 22ch; }
.page-hero .hero-actions { margin-bottom: 0; }
.price-badge {
  display: inline-flex;
  align-items: baseline;
  gap: 0.35rem;
  margin: 0.25rem 0 0;
  padding: 0.45rem 1.1rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--muted);
  font-weight: 650;
}
.price-badge span { color: var(--navy); font-size: 1.5rem; font-weight: 800; }

/* ---------- At a glance ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
@media (min-width: 760px) { .stats { grid-template-columns: repeat(4, 1fr); } }
.stat { padding: 1.25rem 1rem; text-align: center; box-shadow: none; }
.stat-num { display: block; color: var(--navy); font-size: 2.1rem; font-weight: 800; line-height: 1.15; }
.stat-label { display: block; color: var(--muted); font-size: 0.92rem; font-weight: 600; }

/* ---------- Subject cards ---------- */
.services-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 350px));
  justify-content: center;
}
.service-card {
  display: flex;
  flex-direction: column;
  padding: 1.75rem;
  border-top: 6px solid var(--teal);
}
.service-card:nth-child(3n + 2) { border-top-color: var(--navy); }
.service-card:nth-child(3n + 3) { border-top-color: var(--yellow-dark); }
.service-head { display: flex; align-items: center; gap: 0.8rem; margin-bottom: 0.9rem; }
.service-head h3 { margin: 0; }
.service-icon {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--teal-50);
  font-size: 1.6rem;
}
.price { margin: 0 0 0.6rem; color: var(--navy); }
.price-amount { font-size: 2.7rem; font-weight: 800; letter-spacing: -0.03em; }
.price-per { color: var(--muted); font-weight: 650; }
.grades { margin-bottom: 0.6rem; }
.blurb { color: var(--muted); }
.topics-label {
  margin: 0 0 0.5rem;
  color: var(--navy);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.topics { display: flex; flex-wrap: wrap; gap: 0.45rem; margin: 0 0 1.6rem; padding: 0; list-style: none; }
.topics li {
  padding: 0.3rem 0.8rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--bg-alt);
  color: var(--navy);
  font-size: 0.92rem;
  font-weight: 650;
}
.card-actions { display: grid; gap: 0.6rem; margin-top: auto; }
.noscript-note { padding: 1.5rem; text-align: center; }

/* ---------- Price table ---------- */
.table-wrap { overflow-x: auto; margin-top: 1.25rem; }
.price-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow);
}
.price-table th,
.price-table td {
  padding: 0.9rem 1rem;
  border-bottom: 1px solid var(--line);
  text-align: left;
}
.price-table thead th { background: var(--navy); color: #fff; font-size: 0.9rem; }
.price-table tbody th { color: var(--navy); }
.price-table td { color: var(--navy); font-weight: 800; font-variant-numeric: tabular-nums; white-space: nowrap; }
.price-table tbody tr:last-child th,
.price-table tbody tr:last-child td { border-bottom: 0; }

/* ---------- Price calculator ---------- */
.calc fieldset { margin: 0 0 1.15rem; padding: 0; border: 0; }
.calc legend { margin-bottom: 0.4rem; padding: 0; color: var(--navy); font-weight: 700; }
.segmented { display: grid; grid-template-columns: repeat(auto-fit, minmax(90px, 1fr)); gap: 0.5rem; }
.form .segmented label { position: relative; margin: 0; }
.form .segmented input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  min-height: 0;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}
.segmented span {
  display: block;
  padding: 0.75rem 0.5rem;
  border: 1.5px solid var(--field-border);
  border-radius: 12px;
  background: #fff;
  color: var(--navy);
  font-weight: 700;
  text-align: center;
}
.segmented input:checked + span { border-color: var(--navy); background: var(--navy); color: #fff; }
.segmented input:focus-visible + span { outline: 3px solid var(--teal); outline-offset: 2px; }
.calc-result { margin-bottom: 1rem; padding: 1.1rem 1.25rem; border-radius: 14px; background: var(--teal-50); }
.calc-label {
  color: var(--teal-dark);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.calc-total { display: block; color: var(--navy); font-size: 2.6rem; font-weight: 800; line-height: 1.15; }
.calc-note { display: block; color: var(--muted); }

/* ---------- Lists with icons ("why us", "good to know", ideas) ---------- */
.why-title { font-size: 1.15rem; margin-bottom: 1rem; }
.why-list { display: grid; gap: 0.85rem; margin: 0; padding: 0; list-style: none; }
.why-grid { gap: 1rem; }
@media (min-width: 760px) { .why-grid { grid-template-columns: 1fr 1fr; } }
.why-list li { display: flex; align-items: flex-start; gap: 0.9rem; padding: 1rem 1.15rem; box-shadow: none; }
.why-icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--teal-50);
  font-size: 1.25rem;
}
.why-list strong { display: block; color: var(--navy); }
.why-text { color: var(--muted); font-size: 0.98rem; }

/* ---------- About ---------- */
.about-grid { display: grid; gap: 2.5rem; }
@media (min-width: 960px) {
  .about-grid { grid-template-columns: 1.05fr 0.95fr; align-items: start; gap: 3.5rem; }
}
.about-grid h2 { font-size: clamp(1.5rem, 3.5vw, 2rem); }
.placeholder-box {
  padding: 1.25rem 1.5rem;
  border: 2px dashed #c2410c;
  border-radius: var(--radius);
  background: #fff8eb;
}
.placeholder-box p:last-child { margin-bottom: 0; }
.placeholder-tag {
  display: inline-block;
  padding: 0.2rem 0.65rem;
  border-radius: 6px;
  background: #9a3412;
  color: #fff;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.tutor-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr));
}
.tutor { padding: 1.75rem 1.5rem; text-align: center; border: 2px dashed #c2410c; background: #fff8eb; box-shadow: none; }
.tutor-avatar,
.tutor-photo {
  display: grid;
  place-items: center;
  width: 96px;
  height: 96px;
  margin: 0 auto 1rem;
  border-radius: 50%;
  background: var(--teal-50);
  font-size: 2.2rem;
  object-fit: cover;
}
.tutor h3 { margin-bottom: 0.2rem; }
.tutor-role { margin-bottom: 0.6rem; color: var(--teal-dark); font-weight: 700; }
.tutor p:last-child { margin: 0; color: var(--muted); }

/* ---------- Team ---------- */
.team-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;   /* a card left alone on a row stays centered */
  gap: 1.25rem;
}
.team-grid > * { flex: 1 1 270px; max-width: 340px; }
.team-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1.9rem 1.5rem 1.5rem;
  text-align: center;
}
.avatar {
  display: grid;
  place-items: center;
  flex: none;
  width: 88px;
  height: 88px;
  margin-bottom: 1rem;
  border-radius: 50%;
  color: #fff;
  font-family: var(--font-round);
  font-size: 1.8rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  box-shadow: 0 0 0 6px var(--teal-50);
}
.avatar-0 { background: linear-gradient(135deg, var(--teal) 0%, var(--navy) 100%); }
.avatar-1 { background: linear-gradient(135deg, var(--navy-700) 0%, var(--navy) 100%); }
.avatar-2 { background: linear-gradient(135deg, var(--yellow) 0%, var(--yellow-dark) 100%); color: var(--navy); }
.avatar-sm { width: 52px; height: 52px; margin: 0; font-size: 1.1rem; box-shadow: none; }
.team-card h3 { margin-bottom: 0.2rem; }
.team-role {
  margin-bottom: 0.85rem;
  color: var(--teal-dark);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.team-subjects { justify-content: center; margin-bottom: 0.9rem; }
.team-bio { color: var(--muted); font-size: 0.98rem; }
.team-card .btn { margin-top: auto; }

/* Note from Rodas */
.founder-quote {
  position: relative;
  max-width: 820px;
  margin: 0 auto 2.5rem;
  padding: 2.25rem clamp(1.5rem, 4vw, 2.5rem) 1.75rem;
  border-radius: var(--radius);
  background: var(--navy);
  color: #e6edf7;
  box-shadow: 0 14px 40px rgba(19, 41, 75, 0.18);
}
.founder-quote::before {
  content: "“";
  position: absolute;
  top: -0.32em;
  left: 1.25rem;
  color: var(--yellow);
  font-family: Georgia, serif;
  font-size: 5.5rem;
  line-height: 1;
}
.founder-quote blockquote { margin: 0; }
.founder-quote blockquote p { margin: 0; font-size: clamp(1.05rem, 2.4vw, 1.2rem); line-height: 1.7; }
.founder-quote figcaption { display: flex; align-items: center; gap: 0.9rem; margin-top: 1.4rem; }
.founder-quote cite { display: block; color: #fff; font-style: normal; font-weight: 800; }
.quote-role { display: block; color: var(--teal-light); font-size: 0.88rem; font-weight: 650; }

/* About: story + skills */
.story h2 { font-size: clamp(1.8rem, 4.5vw, 2.5rem); }
.story p { font-size: 1.08rem; }
.story-sign { margin-top: 1.5rem; color: var(--navy); font-family: var(--font-round); font-size: 1.35rem; font-weight: 800; }
.story-sign span { display: block; color: var(--muted); font-family: var(--font); font-size: 0.92rem; font-weight: 600; }
.skills-card { padding: 1.75rem; }
@media (min-width: 960px) { .skills-card { position: sticky; top: 96px; } }
.skills-card h3 { margin-bottom: 1rem; }
.skill-group + .skill-group { margin-top: 1.1rem; }
.skill-group h4 {
  margin-bottom: 0.55rem;
  color: var(--teal-dark);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.skill-group .topics { margin-bottom: 0; }
.skills-card .callout { margin: 1.4rem 0 1.25rem; }
.why-icon-lg { width: 52px; height: 52px; margin-bottom: 1rem; font-size: 1.55rem; }
.reasons .step p { margin: 0; }

/* Callout box */
.callout {
  margin: 0 0 1.75rem;
  padding: 1rem 1.2rem;
  border-left: 5px solid var(--teal);
  border-radius: 12px;
  background: var(--teal-50);
}
.callout p { margin: 0; }

/* Payment badges */
.pay-badges { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0.25rem 0 0; padding: 0; list-style: none; }
.pay-badges li {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.35rem 0.9rem;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--navy);
  font-size: 0.94rem;
  font-weight: 700;
}
.pay-badges li::before {
  content: "";
  width: 0.55em;
  height: 0.55em;
  border-radius: 50%;
  background: var(--teal);
}
.prose .pay-badges { padding-left: 0; margin-bottom: 1rem; }

/* FAQ search */
.faq-search { max-width: 780px; margin: 0 auto 2.25rem; }
.faq-search label { display: block; margin-bottom: 0.45rem; color: var(--navy); font-weight: 700; }
.faq-search input {
  display: block;
  width: 100%;
  min-height: 54px;
  padding: 0.75rem 1.1rem 0.75rem 2.9rem;
  border: 1.5px solid var(--field-border);
  border-radius: 999px;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%2313294b' stroke-width='2.4' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='M20 20l-4-4'/%3E%3C/svg%3E") no-repeat 1.1rem center;
  color: var(--ink);
  font: inherit;
  font-size: 1rem;
}
.faq-search input:focus { border-color: var(--teal); }
.faq-count { min-height: 1.4em; margin: 0.5rem 0 0 0.25rem; color: var(--muted); font-size: 0.92rem; }
.faq-empty { margin: 0 auto 2rem; color: var(--muted); text-align: center; }

/* Policy pages: table of contents + body */
.updated { margin: 0.75rem 0 0; font-size: 0.92rem; }
.policy-layout { display: grid; gap: 2rem; }
@media (min-width: 960px) {
  .policy-layout { grid-template-columns: 240px 1fr; gap: 3.5rem; align-items: start; }
  .toc { position: sticky; top: 96px; }
}
.toc { padding: 1.25rem 1.4rem; box-shadow: none; }
.toc-title {
  margin-bottom: 0.6rem;
  color: var(--teal-dark);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.toc ol { margin: 0; padding-left: 1.2rem; }
.toc li { margin-bottom: 0.3rem; }
.toc a { font-weight: 650; text-decoration: none; }
.toc a:hover { text-decoration: underline; }
.policy-body { max-width: 760px; }
.policy-body h2 { scroll-margin-top: 96px; }
.policy-body .table-wrap { margin: 0.5rem 0 1.25rem; }
.policy-body .chips { padding-left: 0; }

.footer-small { color: #b8c6dc; font-size: 0.92rem; }

/* ---------- Steps ---------- */
.steps { display: grid; gap: 1.25rem; margin: 0; padding: 0; list-style: none; }
@media (min-width: 760px) { .steps { grid-template-columns: repeat(3, 1fr); gap: 1.5rem; } }
.step { padding: 1.75rem; }
.step p { margin: 0; color: var(--muted); }
.step-num {
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  margin-bottom: 1rem;
  border-radius: 50%;
  background: var(--navy);
  color: #fff;
  font-size: 1.3rem;
  font-weight: 800;
  box-shadow: 0 0 0 6px var(--teal-50);
}
.mini-steps { margin: 0; padding-left: 1.3rem; }
.mini-steps li { margin-bottom: 0.5rem; padding-left: 0.25rem; }
.mini-steps li::marker { color: var(--teal-dark); font-weight: 800; }
.mini-steps strong { color: var(--navy); }

/* ---------- Roadmap (math levels, coding path) ---------- */
.roadmap { display: grid; gap: 1.25rem; margin: 0; padding: 0; list-style: none; }
@media (min-width: 860px) { .roadmap { grid-template-columns: repeat(3, 1fr); gap: 1.5rem; } }
.stage { display: flex; flex-direction: column; padding: 1.75rem; border-top: 6px solid var(--teal); }
.stage:nth-child(2) { border-top-color: var(--navy); }
.stage:nth-child(3) { border-top-color: var(--yellow-dark); }
.stage-grade {
  align-self: flex-start;
  margin-bottom: 0.85rem;
  padding: 0.25rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--bg-alt);
  color: var(--navy);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.stage .topics { margin-bottom: 0; }

/* ---------- Coding languages ---------- */
.lang-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  margin: 0;
  padding: 0;
  list-style: none;
}
.lang { padding: 1.4rem; box-shadow: none; }
.lang h3 { display: flex; align-items: center; gap: 0.55rem; margin-bottom: 0.35rem; font-size: 1.15rem; }
.lang p { margin: 0; color: var(--muted); font-size: 0.98rem; }
.lang-tag {
  padding: 0.15rem 0.45rem;
  border-radius: 6px;
  background: var(--navy);
  color: var(--teal-light);
  font-family: var(--font-mono);
  font-size: 0.75rem;
}

/* ---------- Hours / info card ---------- */
.info-card { padding: 1.5rem 1.6rem; }
.info-card h3 { margin-bottom: 0.75rem; }
.hours { margin: 0 0 1.25rem; padding: 0; list-style: none; }
.hours li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.65rem 0;
  border-bottom: 1px solid var(--line);
}
.hours li:last-child { border-bottom: 0; }
.hours strong { color: var(--navy); white-space: nowrap; }
.contact-info .info-card { margin-top: 1.75rem; }
.contact-info .info-card .hours { margin-bottom: 0; }
.next-title { margin-top: 2rem; }

/* ---------- Service area ---------- */
.area-grid { display: grid; gap: 2.5rem; align-items: center; }
@media (min-width: 960px) { .area-grid { grid-template-columns: 1.1fr 0.9fr; gap: 3.5rem; } }
.chips { display: flex; flex-wrap: wrap; gap: 0.55rem; margin: 1.25rem 0; padding: 0; list-style: none; }
.chips-center { justify-content: center; max-width: 760px; margin-inline: auto; }
.chips li {
  padding: 0.4rem 0.95rem;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--navy);
  font-weight: 650;
}
.chips .chip-main { background: var(--navy); border-color: var(--navy); color: #fff; }
.format-cards { display: grid; gap: 1.1rem; }
.format-card { padding: 1.5rem 1.6rem; }
.format-card h3 { margin-bottom: 0.35rem; }
.format-card p { margin: 0; color: var(--muted); }
.format-icon { display: block; margin-bottom: 0.5rem; font-size: 1.7rem; }

/* ---------- FAQ ---------- */
.faq-group { max-width: 780px; margin-inline: auto; }
.faq-group + .faq-group { margin-top: 2.75rem; }
.faq-group h2 { margin-bottom: 1rem; font-size: 1.45rem; }
.faq-list { display: grid; gap: 0.75rem; }
.faq-item { border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.faq-item summary {
  position: relative;
  padding: 1.1rem 3.25rem 1.1rem 1.25rem;
  color: var(--navy);
  font-size: 1.05rem;
  font-weight: 700;
  list-style: none;
  cursor: pointer;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  position: absolute;
  top: 50%;
  right: 1.25rem;
  transform: translateY(-50%);
  color: var(--teal-dark);
  font-size: 1.6rem;
  font-weight: 400;
  line-height: 1;
}
.faq-item[open] summary::after { content: "−"; }
.faq-item summary:hover { color: var(--teal-dark); }
.faq-answer { padding: 0 1.25rem 1.1rem; }
.faq-answer p { margin: 0; }

/* ---------- Testimonials ---------- */
.testimonial-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
}
.testimonial-placeholder {
  display: grid;
  place-items: center;
  align-content: center;
  min-height: 170px;
  padding: 2rem 1.5rem;
  border: 2px dashed #b8c4d4;
  border-radius: var(--radius);
  color: var(--muted);
  text-align: center;
}
.testimonial-placeholder p { margin: 0; font-weight: 650; }
.quote-mark { color: #b8c4d4; font-family: Georgia, serif; font-size: 3rem; line-height: 0.8; }
.testimonial { margin: 0; padding: 1.75rem; }
.testimonial blockquote { margin: 0 0 1rem; font-size: 1.05rem; }
.testimonial figcaption { color: var(--navy); font-weight: 700; }

/* ---------- Call-to-action band ---------- */
.cta-band {
  padding-block: clamp(3rem, 7vw, 4.5rem);
  background: var(--navy);
  color: #d7e0ee;
  text-align: center;
}
.cta-band h2 { color: #fff; }
.cta-band p { max-width: 40rem; margin: 0 auto 1.5rem; font-size: 1.1rem; }
.cta-band a:not(.btn) { color: #fff; }
.cta-band .btn-secondary { border-color: #fff; color: #fff; }
.cta-band .btn-secondary:hover { background: #fff; color: var(--navy); }
.cta-band :focus-visible { outline-color: var(--yellow); }
.cta-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.75rem; }

/* ---------- Contact / booking form ---------- */
.contact-grid { display: grid; gap: 2.5rem; }
@media (min-width: 960px) {
  .contact-grid { grid-template-columns: 1.15fr 0.85fr; align-items: start; gap: 3.5rem; }
  .contact-info { position: sticky; top: 96px; }
}
.form > .why-title { font-size: 1.45rem; margin-bottom: 1.25rem; }
.contact-facts { display: grid; gap: 1rem; margin: 0; padding: 0; list-style: none; }
.contact-facts li { display: flex; align-items: flex-start; gap: 0.8rem; }
.contact-facts li > span:first-child { font-size: 1.3rem; line-height: 1.4; }
.contact-facts strong { color: var(--navy); }

.form { padding: clamp(1.25rem, 4.5vw, 2.25rem); }
.field { margin-bottom: 1.15rem; }
.field-row { display: grid; gap: 0 1rem; }
@media (min-width: 560px) { .field-row { grid-template-columns: 1fr 1fr; } }

.form label { display: block; margin-bottom: 0.4rem; color: var(--navy); font-weight: 700; }
.req { color: var(--muted); font-size: 0.85rem; font-weight: 600; }

.form input,
.form select,
.form textarea {
  display: block;
  width: 100%;
  min-height: 50px;
  padding: 0.75rem 0.9rem;
  border: 1.5px solid var(--field-border);
  border-radius: 12px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: 1rem; /* 16px+ stops iPhones from zooming in */
}
.form select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 2.5rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath d='M1 1l6 6 6-6' fill='none' stroke='%2313294b' stroke-width='2'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
}
.form textarea { min-height: 140px; resize: vertical; }
.form input:focus,
.form select:focus,
.form textarea:focus { border-color: var(--teal); }
.form input::placeholder,
.form textarea::placeholder { color: #6b7280; }

/* Booking form sections (1, 2, 3) */
.form-section {
  margin: 0 0 1.25rem;
  padding: 0 0 0.35rem;
  border: 0;
  border-bottom: 1px solid var(--line);
}
.form-section legend {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.9rem;
  padding: 0;
  color: var(--navy);
  font-size: 1.05rem;
  font-weight: 800;
}
.form-step {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--navy);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 800;
}
.field-hint { margin: 0 0 0.9rem; color: var(--muted); font-size: 0.92rem; }
.field-hint-tight { margin: 0.4rem 0 0; font-size: 0.86rem; }

/* Live booking summary */
.booking-summary {
  margin: 0 0 1.25rem;
  padding: 1.15rem 1.25rem;
  border: 1.5px dashed var(--teal);
  border-radius: 14px;
  background: var(--teal-50);
}
.no-js .booking-summary { display: none; }
.booking-summary h3 { margin-bottom: 0.65rem; font-size: 1.05rem; }
.summary-list {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.3rem 1rem;
  margin: 0 0 0.85rem;
  font-size: 0.96rem;
}
.summary-list dt { color: var(--muted); font-weight: 600; }
.summary-list dd { margin: 0; color: var(--navy); font-weight: 700; }
.summary-list dd.pending { color: var(--muted); font-weight: 500; font-style: italic; }
.summary-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(14, 124, 134, 0.3);
  color: var(--navy);
  font-weight: 800;
}
.summary-total small { display: block; color: var(--muted); font-size: 0.85rem; font-weight: 600; }
.summary-amount { font-size: 1.8rem; line-height: 1; }
.summary-note { margin: 0.65rem 0 0; color: var(--muted); font-size: 0.88rem; }

/* Required agreement checkbox */
.agree {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin: 0 0 1.25rem;
  padding: 0.95rem 1rem;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  background: #fff;
}
.form .agree input[type="checkbox"] {
  flex: none;
  width: 22px;
  height: 22px;
  min-height: 0;
  margin: 0.15rem 0 0;
  padding: 0;
  border: 0;
  accent-color: var(--teal);
  cursor: pointer;
}
.form .agree label { margin: 0; color: var(--ink); font-weight: 600; line-height: 1.5; cursor: pointer; }
.form input[type="date"] { appearance: auto; -webkit-appearance: auto; }

.hp { display: none !important; }

.form-status { margin: 1rem 0 0; border-radius: 12px; }
.form-status:focus { outline: none; }
.form-status.success,
.form-status.error { padding: 0.9rem 1.1rem; }
.form-status.success { border: 1px solid #9ed9b6; background: #e7f6ee; color: #14532d; }
.form-status.error { border: 1px solid #f1b1b1; background: #fdecec; color: #8a1c1c; }
.form-status a { color: inherit; font-weight: 700; }
.form-note { margin: 1rem 0 0; color: var(--muted); font-size: 0.92rem; }

/* ---------- Footer ---------- */
.site-footer { padding: 3rem 0 1.5rem; background: var(--navy); color: #d7e0ee; }
.site-footer a { color: #fff; }
.site-footer a:hover { color: var(--yellow); }
.site-footer .btn-primary { color: var(--navy); margin-top: 0.25rem; }
.site-footer :focus-visible { outline-color: var(--yellow); }
.footer-grid { display: grid; gap: 2rem; }
@media (min-width: 640px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 960px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1.2fr; } }
.footer-tag { margin-top: 0.9rem; }
.footer-title {
  margin-bottom: 0.6rem;
  color: #9fe3e8;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.footer-links { margin: 0; padding: 0; list-style: none; }
.footer-links li { margin-bottom: 0.35rem; }
.footer-links a { text-decoration: none; }
.footer-links a:hover { text-decoration: underline; }
.site-footer p { margin-bottom: 0.6rem; }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
  margin-top: 2.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  font-size: 0.92rem;
}
.footer-bottom p { margin: 0; }

/* ---------- Privacy page ---------- */
.prose { max-width: 760px; }
.prose h2 { margin-top: 2rem; font-size: 1.4rem; }
.prose ul { padding-left: 1.25rem; }

/* ---------- 404 page ---------- */
.notfound { text-align: center; }
.notfound .big { margin: 0; color: var(--teal); font-size: clamp(4.5rem, 16vw, 8rem); font-weight: 800; line-height: 1; }
.notfound .hero-lead { margin-inline: auto; }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .btn:hover { transform: none; }
}
