/* Steady Roots Tutoring
   Layout: a classic small-business site. Sticky header, hero with an "at a glance" card,
   a trust strip, then alternating white and tinted sections down to the contact form.
   Colors: trust blue, growth green and a sunny yellow on warm white, the mix most
   tutoring and kids' learning brands use. Rounded shapes keep it friendly.
   It always shows in light colors, like most business sites, so every parent sees the same page. */

:root {
  --bg: #FFFDF8;
  --tint: #EEF5FD;
  --surface: #FFFFFF;
  --ink: #1C2B3A;
  --muted: #4F5E6E;
  --line: #DCE5EF;
  --brand: #2563A8;
  --brand-strong: #1B4C85;
  --brand-soft: #E2EDFB;
  --on-brand: #FFFFFF;
  --green: #2E7D4F;
  --green-soft: #E3F3E9;
  --sun: #F5B83D;
  --sun-soft: #FFF2CF;
  --sun-ink: #8A5E00;
  --coral: #E0684B;
  --coral-soft: #FDE7E0;
  --ok: #2E7D4F;
  --err: #B3362C;
  --shadow: 0 2px 4px rgba(28, 43, 58, .04), 0 12px 32px rgba(28, 43, 58, .08);

  --font-display: "Nunito", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-body: "Nunito Sans", "Segoe UI", system-ui, -apple-system, sans-serif;

  --step--1: 0.92rem;
  --step-0: 1.0625rem;
  --step-1: 1.22rem;
  --step-2: 1.5rem;
  --step-3: clamp(1.8rem, 1.35rem + 1.8vw, 2.4rem);
  --step-4: clamp(2.1rem, 1.4rem + 3vw, 3.25rem);

  --radius: 20px;
  --maxw: 1140px;
  color-scheme: light;
}

:root[data-theme="dark"] {
  --bg: #0F1722;
  --tint: #132031;
  --surface: #182638;
  --ink: #E8EEF5;
  --muted: #A6B4C3;
  --line: #26364A;
  --brand: #8DB8F0;
  --brand-strong: #B1CFF6;
  --brand-soft: #1C3150;
  --on-brand: #0E1825;
  --green: #7FD3A0;
  --green-soft: #173225;
  --sun: #F5C55A;
  --sun-soft: #3A2F12;
  --sun-ink: #F5C55A;
  --coral: #F29A82;
  --coral-soft: #3B2119;
  --ok: #8FD3A5;
  --err: #F19A92;
  --shadow: 0 2px 4px rgba(0, 0, 0, .3), 0 12px 32px rgba(0, 0, 0, .3);
  color-scheme: dark;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 80px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.6;
}
body::before {
  content: ""; position: fixed; inset: 0 0 auto;
  height: env(safe-area-inset-top, 0px); z-index: 10; background: var(--bg);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand); text-underline-offset: 3px; }
a:hover { color: var(--brand-strong); }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3 {
  font-family: var(--font-display);
  line-height: 1.12;
  letter-spacing: -0.01em;
  text-wrap: balance;
  margin: 0;
}
h1 { font-size: var(--step-4); font-weight: 800; }
h2 { font-size: var(--step-3); font-weight: 800; }
h3 { font-size: var(--step-1); font-weight: 600; }
p { margin: 0; }

.wrap {
  max-width: var(--maxw);
  margin-inline: auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}
@media (min-width: 720px) {
  .wrap {
    padding-left: max(32px, env(safe-area-inset-left, 0px));
    padding-right: max(32px, env(safe-area-inset-right, 0px));
  }
}

.skip {
  position: absolute; left: 8px; top: -60px;
  background: var(--brand); color: var(--on-brand);
  padding: 10px 14px; border-radius: 8px; z-index: 30;
}
.skip:focus { top: 8px; }

.eyebrow {
  justify-self: start;
  display: inline-block;
  font-size: var(--step--1);
  font-weight: 800;
  color: var(--green);
  background: var(--green-soft);
  padding: 5px 14px;
  border-radius: 999px;
}
.muted { color: var(--muted); }
.small { font-size: 0.85rem; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px;
  padding: 0 26px;
  border-radius: 999px;
  font: 800 var(--step-0)/1.2 var(--font-display);
  text-align: center;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background-color .15s ease, border-color .15s ease, transform .15s ease;
}
.btn-primary { background: var(--brand); color: var(--on-brand); box-shadow: 0 6px 16px color-mix(in srgb, var(--brand) 28%, transparent); }
.btn-primary:hover { background: var(--brand-strong); color: var(--on-brand); }
.btn-primary:active { transform: translateY(1px); }
.btn-primary[disabled] { opacity: .6; cursor: progress; }
.btn-quiet { border-color: var(--line); color: var(--ink); background: var(--surface); }
.btn-quiet:hover { border-color: var(--brand); color: var(--brand); }
.btn-block { width: 100%; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20;
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: saturate(1.4) blur(8px);
  -webkit-backdrop-filter: saturate(1.4) blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-row {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 8px 24px;
  padding-block: 12px;
}
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--ink); text-decoration: none;
}
.brand-mark {
  display: inline-grid; place-items: center;
  position: relative;
  width: 40px; height: 40px; border-radius: 13px;
  background: var(--brand); color: var(--on-brand);
  font: 900 1rem/1 var(--font-display); letter-spacing: .02em;
}
.brand-mark::after {
  content: ""; position: absolute; top: -4px; right: -4px;
  width: 13px; height: 13px; border-radius: 50%;
  background: var(--sun); border: 2px solid var(--bg);
}
.brand-name { font-family: var(--font-display); font-weight: 900; font-size: 1.2rem; }
.brand-name span { color: var(--brand); }

.nav { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 2px 4px; }
.nav a {
  display: inline-block; padding: 8px 12px; border-radius: 999px;
  color: var(--ink); text-decoration: none; font-size: var(--step--1); font-weight: 700;
}
.nav a:hover { background: var(--tint); color: var(--brand); }
.nav .nav-phone { color: var(--brand); white-space: nowrap; }
.nav .nav-cta { background: var(--brand); color: var(--on-brand); padding-inline: 14px; margin-left: 6px; }
.nav .nav-cta:hover { background: var(--brand-strong); color: var(--on-brand); }
@media (max-width: 640px) {
  .site-header { position: static; }
  .header-row { justify-content: center; }
  .nav { justify-content: center; }
}

/* ---------- hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(circle at 100% 0%, var(--sun-soft) 0 240px, transparent 241px),
    linear-gradient(180deg, var(--tint) 0%, var(--bg) 100%);
  padding-block: clamp(2.5rem, 6vw, 5rem);
}
.hero-grid { display: grid; gap: 36px; align-items: center; }
@media (min-width: 900px) { .hero-grid { grid-template-columns: 1.3fr 0.9fr; gap: 56px; } }
.hero-copy { display: grid; gap: 1.1rem; min-width: 0; }
.hero h1 { max-width: 22ch; font-size: clamp(2rem, 1.4rem + 2.4vw, 2.9rem); }
.lede { font-size: var(--step-1); color: var(--muted); max-width: 50ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 0.4rem; }

.hero-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 26px;
  display: grid; gap: 16px;
  min-width: 0;
  border-top: 6px solid var(--sun);
}
.hero-card-title { font-size: var(--step-1); }
.glance { margin: 0; display: grid; }
.glance > div {
  display: grid; grid-template-columns: 6.5rem 1fr; gap: 12px;
  padding-block: 10px;
  border-bottom: 1px solid var(--line);
}
.glance > div:first-child { padding-top: 0; }
.glance dt { color: var(--muted); font-size: var(--step--1); padding-top: 2px; }
.glance dd { margin: 0; font-weight: 700; min-width: 0; }
.glance strong { color: var(--brand); }

/* ---------- trust strip ---------- */
.trust { background: var(--bg); }
.trust-row {
  display: grid; gap: 14px;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr));
  padding-block: 28px;
}
.trust-row p {
  display: grid; gap: 2px;
  padding: 16px 20px;
  border-radius: 16px;
  background: var(--brand-soft);
  margin: 0;
}
.trust-row p:nth-child(2) { background: var(--green-soft); }
.trust-row p:nth-child(3) { background: var(--sun-soft); }
.trust-row p:nth-child(4) { background: var(--coral-soft); }
.trust-row strong { font-family: var(--font-display); font-weight: 800; font-size: 1.05rem; }
.trust-row span { color: var(--muted); font-size: var(--step--1); }

/* ---------- sections ---------- */
.section { padding-block: clamp(3rem, 7vw, 5.5rem); }
.section-tint { background: var(--tint); }
.section-head { display: grid; gap: 0.7rem; max-width: 62ch; }
.section-lede { color: var(--muted); font-size: var(--step-1); }

/* services */
.cards {
  display: grid; gap: 18px; margin-top: 2.2rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
}
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  display: grid; align-content: start; gap: 10px;
  min-width: 0;
}
.card p { color: var(--muted); }
.card { transition: transform .2s ease, box-shadow .2s ease; }
.cards .card:not(.card-feature):hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.cards .card:nth-child(2) .icon { background: var(--green-soft); stroke: var(--green); }
.cards .card:nth-child(3) .icon { background: var(--sun-soft); stroke: var(--sun-ink); }
.cards .card:nth-child(4) .icon { background: var(--coral-soft); stroke: var(--coral); }
@media (prefers-reduced-motion: reduce) { .card { transition: none; } }
.icon {
  width: 48px; height: 48px; padding: 11px;
  border-radius: 16px;
  background: var(--brand-soft);
  fill: none; stroke: var(--brand); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
}
.card-feature {
  grid-column: 1 / -1;
  grid-template-columns: auto 1fr; gap: 18px; align-items: start;
  background: var(--brand); border-color: var(--brand); color: var(--on-brand);
}
.card-feature > div { display: grid; gap: 8px; max-width: 75ch; }
.card-feature p { color: var(--on-brand); opacity: .9; }
.card-feature .icon { background: rgba(255,255,255,.14); stroke: var(--on-brand); }
@media (max-width: 520px) { .card-feature { grid-template-columns: 1fr; } }

/* approach */
.two-col { display: grid; gap: 28px; }
@media (min-width: 900px) { .two-col { grid-template-columns: 0.9fr 1.1fr; gap: 56px; align-items: start; } }
.checklist { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.checklist li {
  position: relative;
  padding: 16px 18px 16px 54px;
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px solid var(--line);
}
.checklist li::before, .ticks li::before {
  content: "";
  position: absolute; left: 18px; top: 19px;
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--green)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 10.5l3 3 6-7' fill='none' stroke='white' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/100% no-repeat;
}

/* steps: a real sequence, so they are numbered */
.steps {
  list-style: none; margin: 2.2rem 0 0; padding: 0;
  display: grid; gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
  counter-reset: step;
}
.steps li {
  counter-increment: step;
  display: grid; gap: 8px; align-content: start;
  min-width: 0;
}
.steps li::before {
  content: counter(step);
  display: grid; place-items: center;
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--sun); color: #1C2B3A;
  font: 900 1.15rem/1 var(--font-display);
  margin-bottom: 4px;
}
.steps p { color: var(--muted); }

/* pricing */
.price-grid {
  display: grid; gap: 20px; margin-top: 2.2rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
}
.price-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; display: grid; gap: 16px; align-content: start;
}
.price-card-main { border: 2px solid var(--brand); box-shadow: var(--shadow); background: linear-gradient(180deg, var(--brand-soft) 0, var(--surface) 140px); }
.price {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(2.4rem, 2rem + 1.5vw, 3rem); line-height: 1;
  font-variant-numeric: tabular-nums;
}
.price span { font-family: var(--font-body); font-size: var(--step-0); font-weight: 400; color: var(--muted); margin-left: 6px; }
.ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.ticks li { position: relative; padding-left: 32px; color: var(--muted); }
.ticks li::before { left: 0; top: 3px; }

.policies {
  margin: 2rem 0 0; display: grid; gap: 0;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 8px 24px;
}
.policies > div {
  display: grid; gap: 2px 24px; grid-template-columns: 1fr;
  padding-block: 14px; border-bottom: 1px solid var(--line);
}
.policies > div:last-child { border-bottom: 0; }
@media (min-width: 620px) { .policies > div { grid-template-columns: 10rem 1fr; } }
.policies dt { font-weight: 700; }
.policies dd { margin: 0; color: var(--muted); }

/* about */
.about-grid { display: grid; gap: 32px; align-items: start; }
@media (min-width: 900px) { .about-grid { grid-template-columns: 1.3fr 0.8fr; gap: 56px; } }
.about-copy { display: grid; gap: 1rem; max-width: 65ch; min-width: 0; }
.about-copy h2 { margin-bottom: 0.2rem; }
.creds-card {
  background: var(--tint); border-radius: var(--radius); padding: 24px;
  display: grid; gap: 14px;
}
.creds-card ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.creds-card li { display: grid; gap: 2px; padding-left: 14px; border-left: 3px solid var(--sun); }
.creds-card strong { font-size: var(--step--1); text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }

/* faq */
.faq-wrap { display: grid; gap: 2rem; }
@media (min-width: 900px) { .faq-wrap { grid-template-columns: 0.7fr 1.3fr; gap: 56px; align-items: start; } }
.faq { display: grid; gap: 10px; }
.faq details {
  background: var(--surface); border: 1px solid var(--line); border-radius: 12px;
  padding: 0 20px;
}
.faq summary {
  cursor: pointer; list-style: none;
  padding: 16px 28px 16px 0; position: relative;
  font-weight: 700;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 0; top: 50%; transform: translateY(-50%);
  font: 800 1.4rem/1 var(--font-display); color: var(--brand);
}
.faq details[open] summary::after { content: "\2013"; }
.faq details p { padding-bottom: 18px; color: var(--muted); max-width: 65ch; }

/* contact */
.contact-grid { display: grid; gap: 32px; align-items: start; }
@media (min-width: 920px) { .contact-grid { grid-template-columns: 0.8fr 1.2fr; gap: 56px; } }
.contact-intro { display: grid; gap: 1rem; min-width: 0; }
.contact-line {
  display: grid; gap: 2px;
  padding: 16px 18px; border-radius: 12px; background: var(--tint);
}
.contact-line span { font-size: var(--step--1); color: var(--muted); }
.contact-line a { font-weight: 700; overflow-wrap: anywhere; }
.note {
  font-size: var(--step--1); color: var(--muted);
  border-left: 3px solid var(--sun); padding-left: 12px;
}

.form {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: clamp(18px, 4vw, 30px);
  display: grid; gap: 18px; min-width: 0;
}
.field-row { display: grid; gap: 18px; }
@media (min-width: 560px) { .field-row { grid-template-columns: 1fr 1fr; } }
.field { display: grid; gap: 6px; margin: 0; padding: 0; border: 0; min-width: 0; }
.field label, .field legend { font-weight: 700; padding: 0; }
.field legend { margin-bottom: 8px; }
.opt { font-weight: 400; color: var(--muted); }
input[type="text"], input[type="email"], input[type="tel"], select, textarea {
  width: 100%;
  font: inherit; color: var(--ink);
  background: var(--bg);
  border: 1.5px solid var(--line);
  border-radius: 12px;
  padding: 11px 14px;
  min-height: 48px;
}
textarea { resize: vertical; min-height: 110px; }
input::placeholder, textarea::placeholder { color: var(--muted); opacity: .8; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--sun-soft); }
.form .invalid { border-color: var(--err); }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; cursor: pointer; }
.chip input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.chip span {
  display: inline-block; padding: 9px 14px; border-radius: 999px;
  border: 1.5px solid var(--line); background: var(--bg);
  font-weight: 700; font-size: var(--step--1);
}
.chip input:checked + span { background: var(--brand); border-color: var(--brand); color: var(--on-brand); }
.chip input:focus-visible + span { outline: 3px solid var(--brand); outline-offset: 2px; }

.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }

.form-status { min-height: 1.4em; font-weight: 700; }
.form-status:empty { display: none; }
.form-status.ok { color: var(--ok); }
.form-status.error { color: var(--err); }
.fine { font-size: 0.85rem; color: var(--muted); }

/* ---------- footer ---------- */
.site-footer { background: var(--tint); border-top: 1px solid var(--line); padding-block: 40px; font-size: var(--step--1); }
.footer-grid { display: grid; gap: 28px; }
@media (min-width: 820px) { .footer-grid { grid-template-columns: 1.4fr 0.8fr 1fr; gap: 48px; } }
.footer-grid > div { display: grid; gap: 10px; align-content: start; min-width: 0; }
.footer-grid a { overflow-wrap: anywhere; }
.footer-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer-links a { color: var(--ink); text-decoration: none; font-weight: 700; }
.footer-links a:hover { color: var(--brand); }

/* ---------- inner pages (privacy, 404) ---------- */
.page { padding-block: clamp(2.5rem, 6vw, 4.5rem); }
.page .prose { max-width: 65ch; display: grid; gap: 1rem; }
.page .prose h2 { font-size: var(--step-2); margin-top: 1rem; }
