/* ==========================================================================
   Edvance Academy — Marketing site design system
   Mirrors the app theme (app/globals.css): Edvance orange + navy.
   Razorpay-inspired: generous whitespace, soft gradients, rounded cards.
   ========================================================================== */

:root {
  /* Brand — Edvance orange */
  --brand-50: #fff2ed;
  --brand-100: #ffded1;
  --brand-200: #ffb699;
  --brand-500: #ff4900;
  --brand-600: #e04000;
  --brand-700: #b83400;

  /* Navy */
  --navy-50: #ebeff3;
  --navy-100: #dbe2e8;
  --navy-500: #0d3b66;
  --navy-600: #0a2f52;
  --navy-700: #082642;

  /* Neutrals */
  --ink: #1f2937;
  --ink-soft: #374151;
  --muted: #6b7280;
  --faint: #9ca3af;
  --line: #e5e7eb;
  --surface: #ffffff;
  --field: #f9fafb;
  --page: #f3f4f6;

  /* Semantic */
  --success: #16a34a;
  --success-soft: #dcfce7;
  --danger: #dc2626;
  --warning: #d97706;
  --info: #2563eb;

  /* Radius + shadow */
  --radius-card: 0.75rem;
  --radius-control: 0.5rem;
  --radius-pill: 999px;
  --shadow-card: 0 1px 2px rgba(16, 24, 40, 0.04), 0 1px 3px rgba(16, 24, 40, 0.06);
  --shadow-pop: 0 8px 24px rgba(16, 24, 40, 0.12);
  --shadow-lift: 0 18px 48px rgba(13, 59, 102, 0.14);

  /* Plus Jakarta Sans is loaded from Google Fonts in each page <head>. */
  --font-sans: "Plus Jakarta Sans", "Segoe UI", system-ui, -apple-system, Helvetica, Arial, sans-serif;
  --maxw: 1180px;
}

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

/* Always reserve the scrollbar track so short and long pages share one width
   (no sideways jump when navigating). Mirrored in app/globals.css. */
html { scroll-behavior: smooth; scrollbar-gutter: stable; }

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }

h1, h2, h3, h4 { line-height: 1.15; color: var(--ink); margin: 0; letter-spacing: -0.02em; }
p { margin: 0; }

/* --------------------------------------------------------------- layout */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

.section { padding: 88px 0; }
.section--tight { padding: 56px 0; }
.section--page { background: var(--page); }
.section--navy { background: var(--navy-600); color: #fff; }
.section--navy h1, .section--navy h2, .section--navy h3 { color: #fff; }

.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand-600);
  margin-bottom: 14px;
}
.section--navy .eyebrow { color: var(--brand-200); }

.section-head { max-width: 640px; margin: 0 auto 52px; text-align: center; }
.section-head h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); font-weight: 800; }
.section-head p { margin-top: 16px; font-size: 1.08rem; color: var(--muted); }
.section--navy .section-head p { color: rgba(255, 255, 255, 0.78); }

.text-grad {
  background: linear-gradient(100deg, var(--brand-500), var(--brand-600));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* --------------------------------------------------------------- buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 700;
  font-size: 0.97rem;
  padding: 0 22px;
  height: 48px;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn svg { width: 18px; height: 18px; }

.btn--primary { background: var(--brand-500); color: #fff; box-shadow: 0 6px 18px rgba(255, 73, 0, 0.28); }
.btn--primary:hover { background: var(--brand-600); box-shadow: 0 10px 26px rgba(255, 73, 0, 0.34); }

.btn--navy { background: var(--navy-500); color: #fff; }
.btn--navy:hover { background: var(--navy-600); }

.btn--ghost { background: transparent; color: var(--navy-500); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--navy-200, #c9d6e2); background: var(--navy-50); }

.btn--white { background: #fff; color: var(--navy-600); }
.btn--white:hover { background: var(--brand-50); color: var(--brand-700); }

.btn--lg { height: 54px; padding: 0 28px; font-size: 1.02rem; }
.btn--block { width: 100%; }

.link-arrow { font-weight: 700; color: var(--brand-600); display: inline-flex; align-items: center; gap: 6px; }
.link-arrow:hover { gap: 10px; }

/* ------------------------------------------------------------------- nav */
/* The nav is mounted inside #nav-root; let it act as a direct body child so
   `position: sticky` works across the whole page. */
#nav-root { display: contents; }

.site-nav {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.nav-logo img { height: 34px; width: auto; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  display: inline-flex;
  align-items: center;
  padding: 9px 14px;
  border-radius: var(--radius-control);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--ink-soft);
  transition: background 0.15s ease, color 0.15s ease;
}
.nav-links a:hover { color: var(--brand-600); background: var(--brand-50); }
.nav-links a.is-active { color: var(--brand-600); }
.nav-cta { display: flex; align-items: center; gap: 10px; }
.nav-cta .btn { height: 42px; padding: 0 18px; font-size: 0.92rem; }

.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  border: 1px solid var(--line);
  border-radius: var(--radius-control);
  background: #fff;
  align-items: center; justify-content: center;
}
.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  display: block;
  width: 20px; height: 2px;
  background: var(--ink);
  border-radius: 2px;
  position: relative;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-toggle span::before { position: absolute; top: -6px; }
.nav-toggle span::after { position: absolute; top: 6px; }

/* ------------------------------------------------------------------ hero */
.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(1100px 520px at 88% -8%, var(--brand-50), transparent 60%),
    radial-gradient(900px 520px at -5% 8%, var(--navy-50), transparent 55%);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
  padding-top: 84px;
  padding-bottom: 96px;
}
.hero h1 {
  font-size: clamp(2.3rem, 5vw, 3.7rem);
  font-weight: 800;
  letter-spacing: -0.03em;
}
.hero .lead { margin-top: 20px; font-size: 1.18rem; color: var(--ink-soft); max-width: 540px; }
.hero-actions { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 14px; }
.hero-trust { margin-top: 28px; display: flex; align-items: center; gap: 14px; color: var(--muted); font-size: 0.92rem; }
.hero-trust .tick { flex: none; width: 24px; height: 24px; border-radius: 50%; background: var(--success-soft); color: var(--success); display: grid; place-items: center; }
.hero-trust .tick svg { width: 14px; height: 14px; }
.hero-art { position: relative; }
.hero-art img { width: 100%; height: auto; filter: drop-shadow(0 24px 48px rgba(13, 59, 102, 0.16)); }
/* Photographic hero: rounded frame + soft shadow instead of the SVG drop-shadow. */
.hero-art .hero-photo { height: auto; border-radius: 24px; filter: none; box-shadow: var(--shadow-lift); }

/* Hero media — photo with a brand glow behind it and floating chips that
   overlap its edges, so the image reads as part of the hero copy. */
.hero-media { isolation: isolate; }
.hero-media::before {
  content: "";
  position: absolute; inset: 8% -6% -8% 10%;
  z-index: -1;
  border-radius: 32px;
  background: linear-gradient(135deg, var(--brand-100), var(--brand-50));
  transform: rotate(3deg);
}
/* Chips read as app notifications: Inter (UI face), quiet weights, frosted card. */
.hero-chip {
  position: absolute;
  display: inline-flex; align-items: center; gap: 11px;
  padding: 9px 16px 9px 9px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px) saturate(160%);
  border: 1px solid rgba(15, 23, 42, 0.06);
  border-radius: 14px;
  box-shadow: 0 10px 30px rgba(13, 59, 102, 0.14), 0 1px 2px rgba(13, 59, 102, 0.06);
  font-family: "Inter", var(--font-sans);
  font-feature-settings: "cv11", "ss01";
  color: var(--ink);
  white-space: nowrap;
  animation: chip-float 6s ease-in-out infinite;
}
.hero-chip strong { display: block; font-size: 0.84rem; font-weight: 600; line-height: 1.3; letter-spacing: -0.01em; }
.hero-chip small { display: block; margin-top: 1px; font-size: 0.75rem; font-weight: 450; line-height: 1.3; color: var(--muted); }
.hero-chip .chip-icon { flex: none; width: 34px; height: 34px; border-radius: 10px; background: var(--success-soft); color: var(--success); display: grid; place-items: center; }
.hero-chip .chip-icon svg { width: 17px; height: 17px; }
.hero-chip--live { bottom: 12%; left: -8%; }
.hero-chip--live small { color: var(--brand-600); font-weight: 500; }
.hero-chip--card { bottom: -6%; right: -6%; animation-delay: -2s; }
/* Sits above the bottom band of an image instead of over it (About tutors photo). */
.hero-chip--raised { bottom: 30%; }
.hero-chip .chip-icon--brand { background: var(--brand-50); color: var(--brand-600); }
.live-dot { position: relative; width: 9px; height: 9px; border-radius: 50%; background: var(--success); }
.live-dot::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--success); animation: live-pulse 1.8s ease-out infinite; }
@keyframes chip-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@keyframes live-pulse { 0% { transform: scale(1); opacity: 0.6; } 100% { transform: scale(2.6); opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
  .hero-chip, .live-dot::after { animation: none; }
}
/* Less page margin on mid-size screens — keep the right-hand chip on screen. */
@media (max-width: 1180px) {
  .hero-chip--card { right: -2%; }
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  padding: 7px 16px 7px 8px;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--ink-soft);
  box-shadow: var(--shadow-card);
  margin-bottom: 22px;
}
.pill .dot { width: 22px; height: 22px; border-radius: 50%; background: var(--brand-100); color: var(--brand-700); display: grid; place-items: center; font-size: 0.7rem; }
.pill .dot svg { width: 12px; height: 12px; }
/* Accent pill — for the headline promise (no lock-in contracts). */
.pill--accent { background: var(--brand-50); border-color: var(--brand-200); color: var(--brand-700); font-weight: 700; }
.pill--accent .dot { background: var(--brand-500); color: #fff; }

/* Highlight banner — a single, prominent promise above content (pricing). */
.highlight-banner {
  display: flex; align-items: center; gap: 16px;
  max-width: 760px; margin: 0 auto 36px;
  padding: 18px 22px;
  border: 1px solid var(--brand-200); border-radius: var(--radius-card);
  background: linear-gradient(100deg, var(--brand-50), var(--surface));
  box-shadow: var(--shadow-card);
}
.highlight-banner .highlight-icon { flex: none; width: 44px; height: 44px; border-radius: 12px; background: var(--brand-500); color: #fff; display: grid; place-items: center; }
.highlight-banner .highlight-icon svg { width: 22px; height: 22px; }
.highlight-banner strong { display: block; font-size: 1.08rem; color: var(--ink); }
.highlight-banner span { color: var(--ink-soft); font-size: 0.95rem; }

/* ----------------------------------------------------------- curriculum */
.curriculum { background: linear-gradient(180deg, var(--surface), var(--brand-50)); border-bottom: 1px solid var(--line); }
/* Stage cards — each sets --accent / --accent-2 inline (home.html). */
.stage-card {
  --accent: var(--brand-500); --accent-2: var(--brand-200);
  position: relative; overflow: hidden; isolation: isolate;
  display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--line); border-radius: 18px;
  padding: 24px 24px 22px; box-shadow: var(--shadow-card);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
/* Soft accent glow in the corner. */
.stage-card::after {
  content: ""; position: absolute; z-index: -1; top: -70px; right: -70px; width: 190px; height: 190px; border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--accent) 16%, transparent), transparent 70%);
  transition: transform 0.35s ease;
}
.stage-card:hover { transform: translateY(-6px); border-color: color-mix(in srgb, var(--accent) 35%, var(--line)); box-shadow: 0 22px 44px color-mix(in srgb, var(--accent) 18%, transparent); }
.stage-card:hover::after { transform: scale(1.25); }
.stage-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 18px; }
.stage-top .icon {
  width: 50px; height: 50px; border-radius: 14px; color: #fff; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 8px 18px color-mix(in srgb, var(--accent) 35%, transparent);
}
.stage-top .icon svg { width: 24px; height: 24px; }
.stage-years {
  font-size: 0.75rem; font-weight: 700; white-space: nowrap; padding: 5px 11px; border-radius: var(--radius-pill);
  color: var(--accent); background: color-mix(in srgb, var(--accent) 10%, white);
}
.stage-card h3 { font-size: 1.18rem; font-weight: 800; }
.stage-card p { margin-top: 8px; font-size: 0.93rem; color: var(--muted); flex: 1; }
.stage-links { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 18px; padding-top: 14px; border-top: 1px dashed color-mix(in srgb, var(--accent) 25%, var(--line)); }
.stage-links a { display: inline-flex; align-items: center; gap: 4px; font-size: 0.86rem; font-weight: 700; color: var(--accent); }
.stage-links a:hover { text-decoration: underline; text-underline-offset: 3px; }
.stage-links svg, .state-auth svg { width: 13px; height: 13px; }

.state-head { margin: 64px 0 22px; text-align: center; }
.state-head h3 { font-size: 1.4rem; font-weight: 800; }
.state-head p { margin-top: 6px; color: var(--muted); }
.state-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
/* State cards — each sets --state inline to its state colour. */
.state-card {
  --state: var(--navy-500);
  position: relative; overflow: hidden;
  display: flex; flex-direction: column;
  background: linear-gradient(160deg, color-mix(in srgb, var(--state) 7%, white), var(--surface) 55%);
  border: 1px solid var(--line); border-radius: 16px;
  padding: 18px 18px 16px;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.state-card:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--state) 40%, var(--line)); box-shadow: 0 16px 32px color-mix(in srgb, var(--state) 16%, transparent); }
.state-abbr { align-self: flex-start; font-size: 0.72rem; font-weight: 800; letter-spacing: 0.08em; color: #fff; background: var(--state); padding: 3px 9px; border-radius: 6px; }
.state-cert { margin-top: 12px; font-size: 1.55rem; font-weight: 800; letter-spacing: -0.02em; color: var(--state); line-height: 1.1; }
.state-full { margin-top: 4px; font-size: 0.86rem; font-weight: 600; color: var(--ink-soft); line-height: 1.35; flex: 1; }
.state-auth { margin-top: 12px; display: inline-flex; align-items: center; gap: 4px; font-size: 0.78rem; font-weight: 700; color: var(--muted); transition: color 0.2s ease; }
.state-card:hover .state-auth { color: var(--state); }
/* `hidden` must win over the card's display:flex. */
.state-card[hidden] { display: none; }

/* ------------------------------------------------------- why edvance */
/* Photo cards — each sets --accent / --accent-2 inline (home.html). Images
   live at images/photos/why-*.jpg (16:10); overwrite them with real photos. */
.why-grid { gap: 28px; }
.why-card {
  --accent: var(--brand-500); --accent-2: var(--brand-200);
  display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--line); border-radius: 20px;
  overflow: hidden; box-shadow: var(--shadow-card);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.why-card:hover { transform: translateY(-6px); border-color: color-mix(in srgb, var(--accent) 30%, var(--line)); box-shadow: 0 24px 48px color-mix(in srgb, var(--accent) 18%, transparent); }
.why-media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; }
.why-media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.6s ease; }
.why-card:hover .why-media img { transform: scale(1.06); }
/* Soft fade into the card body + accent wash, so any photo sits on-brand. */
.why-media::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, transparent 55%, color-mix(in srgb, var(--accent) 22%, transparent));
}
/* Illustrations on white: show the whole image (no crop), no colour fade. */
.why-media--illus { aspect-ratio: 16 / 9; background: #fff; }
.why-media--illus img { object-fit: contain; }
.why-media--illus::after { background: linear-gradient(180deg, transparent 70%, color-mix(in srgb, var(--accent) 10%, transparent)); }
.why-card:hover .why-media--illus img { transform: scale(1.03); }
.why-icon {
  position: relative; z-index: 1; margin: -27px 0 0 22px; flex: none;
  width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center; color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  border: 4px solid var(--surface);
  box-shadow: 0 10px 22px color-mix(in srgb, var(--accent) 35%, transparent);
}
.why-icon svg { width: 24px; height: 24px; }
.why-body { padding: 14px 24px 26px; }
.why-body h3 { font-size: 1.16rem; font-weight: 800; }
.why-body p { margin-top: 8px; color: var(--muted); font-size: 0.95rem; }

/* ----------------------------------------------------------- subjects */
/* Each tile sets --accent / --accent-2 inline (home.html). */
.subject-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.subject-tile {
  --accent: var(--brand-500); --accent-2: var(--brand-200);
  position: relative; overflow: hidden; isolation: isolate;
  background: var(--surface); border: 1px solid var(--line); border-radius: 18px;
  padding: 22px 20px 20px; box-shadow: var(--shadow-card);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
/* Tinted wash that fades in on hover. */
.subject-tile::after {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0;
  background: linear-gradient(160deg, color-mix(in srgb, var(--accent) 9%, white), transparent 60%);
  transition: opacity 0.25s ease;
}
.subject-tile:hover { transform: translateY(-5px); border-color: color-mix(in srgb, var(--accent) 35%, var(--line)); box-shadow: 0 20px 40px color-mix(in srgb, var(--accent) 16%, transparent); }
.subject-tile:hover::after { opacity: 1; }
.subject-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.subject-icon {
  flex: none; width: 48px; height: 48px; border-radius: 14px; color: #fff; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 8px 18px color-mix(in srgb, var(--accent) 32%, transparent);
  transition: transform 0.3s ease;
}
.subject-icon svg { width: 24px; height: 24px; }
.subject-tile:hover .subject-icon { transform: rotate(-6deg) scale(1.06); }
.subject-years { font-size: 0.72rem; font-weight: 700; white-space: nowrap; padding: 4px 10px; border-radius: var(--radius-pill); color: var(--accent); background: color-mix(in srgb, var(--accent) 10%, white); }
.subject-tile h3 { margin-top: 16px; font-size: 1.08rem; font-weight: 800; }
.subject-topics { list-style: none; margin: 10px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.subject-topics li { font-size: 0.76rem; font-weight: 600; color: var(--ink-soft); background: var(--page); border: 1px solid var(--line); padding: 3px 9px; border-radius: var(--radius-pill); }
.subject-more { margin-top: 32px; text-align: center; color: var(--muted); }

/* --------------------------------------------------------------- cards */
.grid { display: grid; gap: 24px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  padding: 28px;
  box-shadow: var(--shadow-card);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); border-color: var(--brand-100); }
.card .icon {
  width: 52px; height: 52px;
  border-radius: 14px;
  display: grid; place-items: center;
  background: var(--brand-50);
  color: var(--brand-600);
  margin-bottom: 18px;
}
.card .icon svg { width: 26px; height: 26px; }
.card h3 { font-size: 1.18rem; font-weight: 700; }
.card p { margin-top: 10px; color: var(--muted); font-size: 0.98rem; }

.icon--navy { background: var(--navy-50) !important; color: var(--navy-500) !important; }

/* --------------------------------------------------------- tutor cards */
.tutor-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  text-align: center;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
.tutor-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lift);
  border-color: var(--brand-100);
}
.tutor-card .banner {
  height: 88px;
  background: linear-gradient(120deg, var(--navy-500), var(--navy-500) 40%, var(--brand-500));
}
.tutor-card .photo {
  width: 104px;
  height: 104px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid var(--surface);
  margin: -56px auto 0;
  box-shadow: var(--shadow-card);
  background: var(--navy-50);
}
.tutor-card .body { padding: 14px 22px 26px; }
.tutor-card .name { font-weight: 800; font-size: 1.15rem; color: var(--ink); }
.tutor-card .atar {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 8px;
  background: var(--brand-50);
  color: var(--brand-700);
  font-weight: 800;
  font-size: 0.8rem;
  padding: 5px 13px;
  border-radius: var(--radius-pill);
}
.tutor-card .subjects { margin-top: 14px; font-weight: 700; color: var(--ink-soft); }
.tutor-card .uni {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.tutor-card .uni svg { width: 15px; height: 15px; color: var(--navy-500); }
.tutor-card .stars { margin-top: 12px; color: var(--brand-500); letter-spacing: 2px; font-size: 0.9rem; }

/* --------------------------------------------------------- value cards */
.value-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  text-align: center;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
.value-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lift);
  border-color: var(--brand-100);
}
.value-card .art {
  display: grid;
  place-items: center;
  padding: 30px 0 18px;
  background: radial-gradient(130% 100% at 50% 0%, var(--brand-50), var(--surface) 72%);
  border-bottom: 1px solid var(--line);
}
.value-card .art img {
  width: 148px;
  height: auto;
  transition: transform 0.25s ease;
}
.value-card:hover .art img { transform: scale(1.05); }
.value-card .body { padding: 22px 26px 30px; }
.value-card h3 { font-size: 1.3rem; font-weight: 800; }
.value-card .num {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--brand-600);
  margin-bottom: 6px;
}
.value-card p { margin-top: 8px; color: var(--muted); font-size: 0.98rem; }

/* subject chips */

/* ----------------------------------------------------------- how it works */
.steps { counter-reset: step; }
.step { position: relative; padding-left: 0; }
.step .num {
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--navy-500); color: #fff;
  display: grid; place-items: center; font-weight: 800; font-size: 1.1rem;
  margin-bottom: 18px;
}
.step h3 { font-size: 1.12rem; }
.step p { margin-top: 8px; color: var(--muted); }

/* ----------------------------------------------------------- stats band */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.stat { text-align: center; }
.stat .big { font-size: clamp(2rem, 4vw, 2.8rem); font-weight: 800; color: var(--brand-500); letter-spacing: -0.03em; }
.section--navy .stat .big { color: var(--brand-200); }
.stat .label { margin-top: 6px; color: var(--muted); font-weight: 600; }
.section--navy .stat .label { color: rgba(255,255,255,0.75); }

/* ------------------------------------------------------------ split media */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split img { border-radius: var(--radius-card); box-shadow: var(--shadow-lift); }
.split img.photo { width: 100%; height: auto; border-radius: 20px; }
.split h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); font-weight: 800; }
.split p { margin-top: 16px; color: var(--muted); font-size: 1.05rem; }
.feature-list { list-style: none; margin: 24px 0 0; padding: 0; display: grid; gap: 14px; }
.feature-list li { display: flex; gap: 12px; align-items: flex-start; font-weight: 500; color: var(--ink-soft); }
.feature-list .tick { flex: none; width: 24px; height: 24px; border-radius: 50%; background: var(--success-soft); color: var(--success); display: grid; place-items: center; }
.feature-list .tick svg { width: 14px; height: 14px; }

/* ----------------------------------------------------------- testimonials */
.quote { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-card); padding: 28px; box-shadow: var(--shadow-card); }
.quote .stars { color: var(--brand-500); letter-spacing: 2px; margin-bottom: 14px; }
.quote blockquote { margin: 0; font-size: 1.04rem; color: var(--ink-soft); }
.quote .who { margin-top: 18px; display: flex; align-items: center; gap: 12px; }
.quote .who .avatar { width: 42px; height: 42px; border-radius: 50%; background: var(--navy-50); color: var(--navy-500); display: grid; place-items: center; font-weight: 800; }
.quote .who .name { font-weight: 700; font-size: 0.95rem; }
.quote .who .role { color: var(--muted); font-size: 0.85rem; }

/* ------------------------------------------------------------- pricing */
.price-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: stretch; }
.plan {
  display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-card); padding: 32px; box-shadow: var(--shadow-card);
}
.plan--featured { border: 2px solid var(--brand-500); box-shadow: var(--shadow-lift); position: relative; }
.plan--featured .tag {
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  background: var(--brand-500); color: #fff; font-size: 0.74rem; font-weight: 700;
  letter-spacing: 0.06em; text-transform: uppercase; padding: 5px 14px; border-radius: var(--radius-pill);
}
.plan h3 { font-size: 1.2rem; font-weight: 700; }
.plan .desc { margin-top: 8px; color: var(--muted); font-size: 0.92rem; min-height: 40px; }
.plan .price { margin: 20px 0 6px; }
.plan .price .amount { font-size: 2.6rem; font-weight: 800; color: var(--ink); letter-spacing: -0.03em; }
.plan .price .per { color: var(--muted); font-weight: 600; }
.plan ul { list-style: none; margin: 22px 0 28px; padding: 0; display: grid; gap: 12px; }
.plan li { display: flex; gap: 10px; align-items: flex-start; color: var(--ink-soft); font-size: 0.95rem; }
.plan li .tick { flex: none; width: 20px; height: 20px; border-radius: 50%; background: var(--brand-50); color: var(--brand-600); display: grid; place-items: center; }
.plan li .tick svg { width: 12px; height: 12px; }
.plan .btn { margin-top: auto; }

/* --------------------------------------------------------------- banner */
.cta-banner {
  background: linear-gradient(120deg, var(--navy-600), var(--navy-500) 55%, var(--brand-600));
  border-radius: 24px;
  padding: 56px;
  color: #fff;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-banner h2 { color: #fff; font-size: clamp(1.7rem, 3.2vw, 2.4rem); font-weight: 800; }
.cta-banner p { margin-top: 14px; color: rgba(255,255,255,0.82); font-size: 1.08rem; }
.cta-banner .hero-actions { justify-content: center; }

/* ---------------------------------------------------------------- forms */
.form-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-card); padding: 32px; box-shadow: var(--shadow-card); }
.form-row { display: grid; gap: 18px; }
.form-row--2 { grid-template-columns: 1fr 1fr; }
.field label { display: block; font-weight: 600; font-size: 0.9rem; margin-bottom: 7px; color: var(--ink-soft); }
.field input, .field select, .field textarea {
  width: 100%; padding: 12px 14px; border: 1px solid var(--line);
  border-radius: var(--radius-control); background: var(--field); font: inherit; color: var(--ink);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--brand-500); box-shadow: 0 0 0 3px var(--brand-100); background: #fff;
}
.field textarea { resize: vertical; min-height: 120px; }
.form-note { font-size: 0.85rem; color: var(--muted); margin-top: 4px; }

/* --------------------------------------------------------------- faq */
.faq { max-width: 760px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-q { width: 100%; text-align: left; background: none; border: 0; padding: 22px 0; display: flex; justify-content: space-between; align-items: center; gap: 16px; font-weight: 700; font-size: 1.05rem; color: var(--ink); }
.faq-q .plus { flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--brand-50); color: var(--brand-600); display: grid; place-items: center; font-size: 1.2rem; transition: transform 0.2s ease; }
.faq-item.open .faq-q .plus { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.25s ease; color: var(--muted); }
.faq-a p { padding-bottom: 22px; }

/* --------------------------------------------------------------- footer */
.site-footer { background: var(--navy-700); color: rgba(255,255,255,0.72); padding: 64px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; }
.footer-brand img { height: 34px; margin-bottom: 18px; }
.footer-brand p { font-size: 0.95rem; max-width: 320px; }
.footer-contact { list-style: none; margin: 20px 0 0; padding: 0; display: grid; gap: 8px; font-size: 0.94rem; }
.footer-contact a { color: #fff; font-weight: 600; }
.footer-contact a:hover { color: var(--brand-200); }
.footer-bottom a { color: rgba(255,255,255,0.72); text-decoration: underline; text-underline-offset: 2px; }
.footer-bottom a:hover { color: var(--brand-200); }

/* Sticky quick-action bar — phones only (see mobileCtaMarkup in main.js). */
.mobile-cta { display: none; }
.footer-col h4 { color: #fff; font-size: 0.82rem; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 16px; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 11px; }
.footer-col a { color: rgba(255,255,255,0.72); font-size: 0.94rem; }
.footer-col a:hover { color: var(--brand-200); }
.footer-bottom { margin-top: 48px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,0.12); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: 0.86rem; }

/* badges / misc */
.badge-soft { display: inline-flex; align-items: center; gap: 6px; background: var(--brand-50); color: var(--brand-700); font-weight: 700; font-size: 0.8rem; padding: 6px 12px; border-radius: var(--radius-pill); }
.center { text-align: center; }
.mt-24 { margin-top: 24px; }
.mt-40 { margin-top: 40px; }
.muted { color: var(--muted); }

.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------------------------------------------------------------- toasts */
/* Mirrors the app's ToastProvider: top-right coloured cards, white text,
   icon + message + dismiss, auto-hide after 4s. */
.toast-stack {
  position: fixed;
  top: 16px;
  right: 16px;
  z-index: 200;
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 340px;
  max-width: calc(100vw - 32px);
  pointer-events: none;
}
.toast {
  pointer-events: auto;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 16px;
  border-radius: var(--radius-control);
  box-shadow: var(--shadow-pop);
  color: #fff;
  font-size: 0.9rem;
  line-height: 1.4;
  animation: toastIn 0.25s ease;
}
.toast svg { flex: none; width: 18px; height: 18px; margin-top: 1px; }
.toast--success { background: var(--success); }
.toast--error { background: var(--danger); }
.toast--info { background: var(--info); }
.toast--warning { background: var(--warning); }
.toast .toast-msg { flex: 1; }
.toast .toast-x {
  background: none; border: 0; padding: 0;
  color: rgba(255, 255, 255, 0.8); cursor: pointer;
  font-size: 1rem; line-height: 1;
  transition: color 0.15s ease;
}
.toast .toast-x:hover { color: #fff; }
@keyframes toastIn { from { opacity: 0; transform: translateX(12px); } to { opacity: 1; transform: none; } }

/* ---------------------------------------------------------- placeholder */
.ph-note {
  font-size: 0.78rem; color: var(--faint); margin-top: 8px; font-style: italic;
}

/* --------------------------------------------------------- responsive */
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; padding-top: 56px; padding-bottom: 64px; }
  .hero-art { order: -1; max-width: 460px; margin: 0 auto; }
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .state-grid { grid-template-columns: repeat(2, 1fr); }
  .subject-grid { grid-template-columns: repeat(2, 1fr); }
  .price-grid { grid-template-columns: 1fr; max-width: 460px; margin: 0 auto; }
  .split { grid-template-columns: 1fr; gap: 36px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 760px) {
  .nav-links { display: none; }
  .nav-toggle { display: inline-flex; }
  .site-nav.open .nav-links {
    display: flex; flex-direction: column; align-items: stretch;
    position: absolute; left: 0; right: 0; top: 72px;
    background: #fff; border-bottom: 1px solid var(--line);
    padding: 12px 24px 20px; gap: 4px; box-shadow: var(--shadow-pop);
  }
  .site-nav.open .nav-links a { padding: 12px 14px; }
  .section { padding: 60px 0; }
  .grid--3, .grid--4, .grid--2 { grid-template-columns: 1fr; }
  .cta-banner { padding: 40px 24px; }
  .form-row--2 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
  .footer-brand { grid-column: 1 / -1; }
  .stats { grid-template-columns: 1fr 1fr; }

  .hero-media::before { inset: 6% -3% -5% 6%; }
  /* Two tiles per row is tight — stack the year tag under the icon. */
  .subject-grid { gap: 12px; }
  .subject-tile { padding: 18px 16px 16px; }
  .subject-top { flex-direction: column; align-items: flex-start; gap: 10px; }
  .subject-icon { width: 42px; height: 42px; border-radius: 12px; }
  .subject-icon svg { width: 21px; height: 21px; }
  .subject-tile h3 { margin-top: 12px; font-size: 1rem; }
  .hero-chip { font-size: 0.78rem; gap: 7px; }
  /* Too narrow for both on one line — stagger them. */
  .hero-chip { gap: 8px; padding: 7px 12px 7px 7px; border-radius: 12px; }
  .hero-chip strong { font-size: 0.76rem; }
  .hero-chip small { font-size: 0.68rem; }
  .hero-chip .chip-icon { width: 28px; height: 28px; border-radius: 8px; }
  .hero-chip .chip-icon svg { width: 14px; height: 14px; }
  .hero-chip--live { bottom: 44px; left: 4%; }
  .hero-chip--card { bottom: -18px; right: 4%; }
  /* Small screens: hang it just below the photo, clear of faces and the band. */
  .hero-chip--raised { bottom: auto; top: calc(100% - 12px); }
  .hero-media:has(.hero-chip--raised) { margin-bottom: 44px; }
  .hero-art.hero-media { margin-bottom: 18px; }

  /* Full-width, stacked hero buttons read as deliberate rather than ragged. */
  .hero-actions .btn { flex: 1 1 100%; }

  .mobile-cta {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 10px;
    position: fixed;
    left: 0; right: 0; bottom: 0;
    z-index: 70;
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: saturate(160%) blur(12px);
    border-top: 1px solid var(--line);
    box-shadow: 0 -6px 20px rgba(16, 24, 40, 0.08);
  }
  .mobile-cta .btn { height: 46px; padding: 0 18px; font-size: 0.95rem; }
  .mobile-cta .btn svg { width: 16px; height: 16px; }
  /* Keep the footer clear of the fixed bar. */
  body.has-mobile-cta { padding-bottom: calc(70px + env(safe-area-inset-bottom)); }
}
