/* =========================================================
   Grapie Academy — Stylesheet
   Design system: Bluey + Numberblocks + Duolingo
   ========================================================= */

/* ---------- Design Tokens ---------- */
:root {
  /* Character / Brand */
  --grapie-green: #7EC850;
  --kyoho-purple: #8B5FBF;
  --muscat-gold: #FFD93D;
  --concord-blue: #6B9BD1;
  --concord-red: #E74C3C;
  --flame-red: #FF6B6B;

  /* Backgrounds */
  --bg-white: #FFFFFF;
  --bg-cream: #FFF9F0;
  --bg-sky: #E3F2FD;
  --bg-pink: #FFE5E5;

  /* Text */
  --text-main: #2C3E50;
  --text-muted: #7F8C8D;
  --text-inverse: #FFFFFF;

  /* Accents */
  --success-green: #27AE60;
  --alert-orange: #F39C12;

  /* Shadows */
  --shadow-card: 0 8px 24px rgba(0,0,0,0.08);
  --shadow-card-lift: 0 16px 36px rgba(0,0,0,0.12);
  --shadow-btn: 0 4px 12px rgba(0,0,0,0.15);
  --shadow-btn-hover: 0 8px 20px rgba(0,0,0,0.2);

  /* Radius */
  --r-card: 24px;
  --r-pill: 999px;
  --r-small: 12px;

  /* Fonts */
  --font-heading: "Fredoka", "Baloo 2", "Nunito", system-ui, sans-serif;
  --font-body: "Inter", "Nunito", "Open Sans", system-ui, sans-serif;
  --font-btn: "Nunito", system-ui, sans-serif;

  /* Layout */
  --max-w: 1200px;
  --pad-x: 40px;
  --pad-x-mobile: 20px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.65;
  color: var(--text-main);
  background: var(--bg-white);
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--success-green); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  color: var(--text-main);
  letter-spacing: -0.5px;
  line-height: 1.15;
  margin: 0 0 16px;
  font-weight: 700;
}
h1 { font-size: clamp(2.5rem, 5vw, 4.5rem); font-weight: 700; }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.625rem); }
p { margin: 0 0 16px; }
ul { list-style: none; padding: 0; margin: 0; }
button { font: inherit; cursor: pointer; border: 0; background: none; }
input, textarea, select { font: inherit; color: inherit; }

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

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--text-main); color: #fff; padding: 12px 20px;
  z-index: 1000; border-radius: 0 0 12px 0;
}
.skip-link:focus { left: 0; }

/* ---------- Layout ---------- */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--pad-x);
}

.section { padding: 80px 0; }
.section-cream { background: var(--bg-cream); }
.section-sky   { background: var(--bg-sky); }
.section-gradient {
  background: linear-gradient(135deg, #7EC850 0%, #8B5FBF 100%);
  color: #fff;
}
.section-gradient h2, .section-gradient p { color: #fff; }

.section-head {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 56px;
}
.section-head .accent {
  background: linear-gradient(90deg, var(--grapie-green), var(--kyoho-purple));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.section-sub {
  color: var(--text-muted);
  font-size: 1.125rem;
  max-width: 640px; margin: 0 auto;
}
.section-cta { text-align: center; margin-top: 48px; }

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

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-btn);
  font-weight: 800;
  font-size: 18px;
  padding: 16px 32px;
  border-radius: var(--r-pill);
  box-shadow: var(--shadow-btn);
  transition: transform .2s ease-out, box-shadow .2s ease-out, filter .2s ease-out;
  line-height: 1;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
}
.btn-sm { padding: 10px 20px; font-size: 15px; }
.btn-primary {
  background: linear-gradient(135deg, var(--grapie-green), var(--success-green));
  color: #fff;
}
.btn-primary:hover {
  transform: translateY(-2px) scale(1.03);
  box-shadow: var(--shadow-btn-hover);
  filter: brightness(1.05);
  text-decoration: none;
}
.btn-primary:active { transform: scale(0.97); }

.btn-secondary {
  background: #fff;
  border: 2px solid var(--grapie-green);
  color: var(--grapie-green);
}
.btn-secondary:hover {
  transform: translateY(-2px) scale(1.03);
  box-shadow: var(--shadow-btn-hover);
  background: #f6fbef;
  text-decoration: none;
}

.eyebrow {
  display: inline-block;
  background: #fff;
  color: var(--text-main);
  padding: 8px 16px;
  border-radius: var(--r-pill);
  font-weight: 700;
  font-size: 14px;
  box-shadow: var(--shadow-card);
  margin-bottom: 20px;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid rgba(0,0,0,0.04);
  transition: box-shadow .2s ease-out;
}
.site-header.scrolled { box-shadow: 0 4px 16px rgba(0,0,0,0.06); }
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  padding-bottom: 16px;
  gap: 24px;
}
.logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  transition: transform .2s ease-out;
}
.logo:hover { text-decoration: none; transform: scale(1.03); }
.logo-full {
  height: 56px;
  width: auto;
  border-radius: 14px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  display: block;
}

.primary-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}
.primary-nav a {
  color: var(--text-main);
  font-weight: 600;
  font-size: 16px;
  text-decoration: none;
  transition: color .2s;
}
.primary-nav a:hover { color: var(--grapie-green); text-decoration: none; }
.primary-nav a.btn { color: #fff; }

.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  flex-direction: column; justify-content: center; align-items: center;
  gap: 5px;
  border-radius: 10px;
}
.nav-toggle span {
  display: block; width: 24px; height: 3px;
  background: var(--text-main); border-radius: 2px;
  transition: transform .25s, opacity .25s;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 80px 0 100px;
  overflow: hidden;
  background:
    radial-gradient(circle at 10% 20%, rgba(126, 200, 80, 0.18), transparent 50%),
    radial-gradient(circle at 90% 10%, rgba(139, 95, 191, 0.18), transparent 50%),
    radial-gradient(circle at 80% 90%, rgba(255, 217, 61, 0.22), transparent 50%),
    radial-gradient(circle at 20% 95%, rgba(255, 107, 107, 0.15), transparent 55%),
    linear-gradient(180deg, #FFF9F0 0%, #FFFFFF 100%);
}
.hero-bg { position: absolute; inset: 0; pointer-events: none; }
.float-note {
  position: absolute;
  font-size: 40px;
  opacity: 0.7;
  animation: floaty 8s ease-in-out infinite;
}
.note-1 { top: 10%; left: 6%; animation-delay: 0s; }
.note-2 { top: 22%; right: 10%; animation-delay: 1.2s; font-size: 52px; }
.note-3 { bottom: 14%; left: 14%; animation-delay: 2.2s; }
.note-4 { top: 60%; right: 6%; animation-delay: 0.6s; font-size: 48px; }
.note-5 { top: 40%; left: 3%; animation-delay: 3s; }
.note-6 { bottom: 8%; right: 20%; animation-delay: 1.8s; }

@keyframes floaty {
  0%, 100% { transform: translateY(0) rotate(-4deg); }
  50%      { transform: translateY(-18px) rotate(4deg); }
}

.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 48px;
  align-items: center;
}
.hero-copy { max-width: 640px; }
.hero-copy h1 { margin-bottom: 20px; }
.hero-copy .lead {
  font-size: clamp(1.15rem, 1.8vw, 1.35rem);
  color: var(--text-main);
  max-width: 560px;
  margin-bottom: 32px;
}
.hero-ctas {
  display: flex; flex-wrap: wrap; gap: 16px;
  margin-bottom: 28px;
}
.hero-trust {
  display: flex; flex-wrap: wrap; gap: 20px;
  color: var(--text-muted); font-weight: 600; font-size: 15px;
}

/* Hero visual — characters */
.hero-visual {
  position: relative;
  min-height: 480px;
}
.hero-char {
  position: absolute;
  width: 140px;
  filter: drop-shadow(0 12px 24px rgba(0,0,0,0.12));
}
.hero-char-main {
  width: 320px; left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  animation: gentleBounce 3.6s ease-in-out infinite;
  z-index: 2;
}
.hero-char-2 { top: 2%;   left: 4%;   width: 120px; animation: gentleBounce 4.2s ease-in-out infinite; animation-delay: .6s; }
.hero-char-3 { top: 8%;   right: 4%;  width: 110px; animation: gentleBounce 4s ease-in-out infinite; animation-delay: 1.2s; }
.hero-char-4 { bottom: 4%; left: 8%;  width: 110px; animation: gentleBounce 4.4s ease-in-out infinite; animation-delay: .9s; }
.hero-char-5 { bottom: 8%; right: 8%; width: 120px; animation: gentleBounce 4.2s ease-in-out infinite; animation-delay: 1.8s; }

@keyframes gentleBounce {
  0%, 100% { transform: translateY(0) rotate(-1deg); }
  50%      { transform: translateY(-12px) rotate(1deg); }
}
.hero-char-main {
  /* keep center-transform but override animation translate */
}
.hero-char-main { animation-name: mainBounce; }
@keyframes mainBounce {
  0%, 100% { transform: translate(-50%, -50%) rotate(-2deg); }
  50%      { transform: translate(-50%, calc(-50% - 14px)) rotate(2deg); }
}

.wave {
  display: inline-block;
  transform-origin: 70% 70%;
  animation: wave 2.6s ease-in-out infinite;
}
@keyframes wave {
  0%, 60%, 100% { transform: rotate(0); }
  10%, 30% { transform: rotate(14deg); }
  20%      { transform: rotate(-8deg); }
}

/* ---------- Feature Cards (Section 2) ---------- */
.feature-card {
  background: #fff;
  border-radius: var(--r-card);
  padding: 40px 32px;
  box-shadow: var(--shadow-card);
  border-top: 6px solid var(--accent, var(--grapie-green));
  transition: transform .3s ease-out, box-shadow .3s ease-out;
}
.feature-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-card-lift); }
.feature-icon {
  font-size: 56px; line-height: 1; margin-bottom: 16px;
  display: inline-block;
  filter: drop-shadow(0 4px 8px rgba(0,0,0,0.1));
}

/* ---------- Crew Cards (Section 3) ---------- */
.crew-grid { gap: 20px; }
.crew-card {
  background: #fff;
  border-radius: var(--r-card);
  padding: 28px 20px;
  box-shadow: var(--shadow-card);
  text-align: center;
  border-top: 6px solid var(--accent, var(--grapie-green));
  transition: transform .3s ease-out, box-shadow .3s ease-out;
}
.crew-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-card-lift); }
.crew-visual {
  background: color-mix(in srgb, var(--accent, var(--grapie-green)) 14%, #fff);
  border-radius: 20px;
  padding: 20px 12px;
  margin-bottom: 16px;
  aspect-ratio: 1 / 1;
  display: grid; place-items: center;
}
.crew-visual img {
  max-height: 100%; width: auto;
  transition: transform .3s ease-out;
}
.crew-card:hover .crew-visual img { transform: translateY(-6px) scale(1.04); }
.crew-card h3 { margin-bottom: 4px; }
.crew-card .role {
  color: var(--accent, var(--grapie-green));
  font-weight: 800;
  margin-bottom: 10px;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ---------- Steps (Section 4) ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin: 0 0 40px;
  padding: 0;
  list-style: none;
}
.step {
  background: #fff;
  border-radius: var(--r-card);
  padding: 36px 28px;
  box-shadow: var(--shadow-card);
  position: relative;
  transition: transform .3s ease-out, box-shadow .3s ease-out;
}
.step:hover { transform: translateY(-6px); box-shadow: var(--shadow-card-lift); }
.step-num {
  position: absolute;
  top: -22px; left: 28px;
  width: 48px; height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--grapie-green), var(--success-green));
  color: #fff;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 22px;
  display: grid; place-items: center;
  box-shadow: var(--shadow-btn);
}
.step-icon { font-size: 42px; margin-bottom: 12px; }

.timeline {
  display: flex; align-items: center; justify-content: center;
  gap: 16px;
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--text-main);
}
.timeline-bar {
  flex: 1; max-width: 200px;
  display: flex; justify-content: space-between;
  padding: 0 12px;
}
.timeline-bar .dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--grapie-green);
}

/* ---------- Videos (Section 5) ---------- */
.video-card {
  background: #fff;
  border-radius: var(--r-card);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: transform .3s ease-out, box-shadow .3s ease-out;
}
.video-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-card-lift); }
.video-frame {
  aspect-ratio: 16 / 9;
  background: #000;
  position: relative;
  overflow: hidden;
}
.video-iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}
.video-placeholder {
  --accent: var(--grapie-green);
  position: absolute; inset: 0;
  background:
    radial-gradient(circle at 30% 30%, rgba(255,255,255,0.12), transparent 60%),
    linear-gradient(135deg, var(--accent), color-mix(in srgb, var(--accent) 65%, #2c3e50));
  display: grid; place-items: center;
  color: #fff;
  text-align: center;
  padding: 16px;
}
.video-placeholder .play-btn {
  width: 72px; height: 72px;
  border-radius: 50%;
  background: rgba(255,255,255,0.95);
  color: var(--text-main);
  font-size: 28px;
  display: grid; place-items: center;
  box-shadow: 0 8px 20px rgba(0,0,0,0.3);
  margin-bottom: 14px;
  transition: transform .2s;
}
.video-card:hover .play-btn { transform: scale(1.1); }
.video-label {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 600;
  text-shadow: 0 2px 6px rgba(0,0,0,0.3);
}
.coming-soon .video-label {
  font-size: 28px;
  letter-spacing: 1px;
}
.video-card h3 { margin: 20px 24px 8px; }
.video-card p { margin: 0 24px 24px; color: var(--text-muted); }

/* ---------- Parents / Benefits (Section 6) ---------- */
.testimonial {
  max-width: 760px;
  margin: 0 auto 56px;
  background: #fff;
  border-radius: var(--r-card);
  padding: 36px 40px;
  box-shadow: var(--shadow-card);
  border-left: 8px solid var(--muscat-gold);
  font-family: var(--font-heading);
  font-size: 1.25rem;
  line-height: 1.5;
  color: var(--text-main);
}
.testimonial p { margin-bottom: 16px; }
.testimonial cite {
  display: block;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--text-muted);
  font-style: normal;
  font-weight: 600;
}
.benefit {
  background: #fff;
  padding: 28px;
  border-radius: var(--r-card);
  box-shadow: var(--shadow-card);
  transition: transform .3s ease-out, box-shadow .3s ease-out;
}
.benefit:hover { transform: translateY(-4px); box-shadow: var(--shadow-card-lift); }
.benefit-icon {
  font-size: 44px; line-height: 1; margin-bottom: 14px;
  filter: drop-shadow(0 4px 8px rgba(0,0,0,0.08));
}

/* ---------- Audience (Section 7) ---------- */
.audience-card {
  background: #fff;
  padding: 32px 28px;
  border-radius: var(--r-card);
  box-shadow: var(--shadow-card);
  border-left: 6px solid var(--accent, var(--grapie-green));
  transition: transform .3s ease-out, box-shadow .3s ease-out;
}
.audience-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-card-lift); }

/* ---------- Topics (Section 8) ---------- */
.topic-card {
  background: #fff;
  padding: 32px 28px;
  border-radius: var(--r-card);
  box-shadow: var(--shadow-card);
  border-top: 6px solid var(--accent, var(--grapie-green));
  transition: transform .3s ease-out, box-shadow .3s ease-out;
}
.topic-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-card-lift); }
.topic-icon {
  font-size: 48px; line-height: 1; margin-bottom: 14px;
  display: inline-block;
  filter: drop-shadow(0 4px 8px rgba(0,0,0,0.08));
}

/* ---------- Subscribe (Section 9) ---------- */
.section-gradient {
  position: relative;
  overflow: hidden;
}
.section-gradient::before {
  content: "🎵 🎶 ✨ 🎤 🎵 🎶 ✨";
  position: absolute; top: 20px; left: 0; right: 0;
  opacity: 0.15; font-size: 40px; letter-spacing: 40px;
  pointer-events: none; text-align: center;
}
.follow-inner {
  text-align: center;
  max-width: 720px;
  margin: 0 auto;
}
.follow-ctas {
  margin: 28px 0 12px;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px;
}
.follow-btn {
  background: #fff;
  color: var(--success-green);
  background-image: none;
}
.follow-btn:hover { background: var(--muscat-gold); color: var(--text-main); }
.form-success {
  margin-top: 16px;
  background: rgba(255,255,255,0.25);
  border-radius: var(--r-pill);
  padding: 10px 20px;
  display: inline-block;
  font-weight: 700;
}
.follow-handle {
  margin-top: 20px;
  font-family: var(--font-heading);
  font-weight: 600;
  letter-spacing: 0.5px;
  color: rgba(255,255,255,0.9);
}

/* ---------- Contact (Section 10) ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 48px;
  align-items: start;
}
.contact-block {
  background: var(--bg-cream);
  border-radius: var(--r-card);
  padding: 24px;
  margin-bottom: 20px;
}
.contact-block h3 { margin-bottom: 6px; }
.contact-email {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 600;
  margin-top: 12px;
}
.contact-email a { color: var(--kyoho-purple); }

.contact-form {
  background: #fff;
  border-radius: var(--r-card);
  padding: 36px;
  box-shadow: var(--shadow-card);
}
.form-row { margin-bottom: 18px; }
.form-row label {
  display: block;
  font-weight: 700;
  margin-bottom: 6px;
  font-size: 15px;
}
.form-row input,
.form-row textarea,
.form-row select {
  width: 100%;
  padding: 12px 16px;
  border-radius: var(--r-small);
  border: 2px solid #e6e6e6;
  background: #fff;
  font-size: 16px;
  transition: border-color .2s, box-shadow .2s;
}
.form-row input:focus,
.form-row textarea:focus,
.form-row select:focus {
  outline: none;
  border-color: var(--grapie-green);
  box-shadow: 0 0 0 3px rgba(126, 200, 80, 0.25);
}
.contact-form .btn { width: 100%; justify-content: center; }

/* ---------- Footer ---------- */
.site-footer {
  background: #1f2a36;
  color: #cbd3dc;
  padding: 64px 0 24px;
  margin-top: 0;
}
.site-footer h4 {
  color: #fff;
  font-size: 18px;
  margin-bottom: 16px;
}
.site-footer a { color: #cbd3dc; }
.site-footer a:hover { color: #fff; text-decoration: none; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 40px;
}
.footer-grid ul li { margin-bottom: 8px; }
.logo-footer { margin-bottom: 16px; }
.logo-footer .logo-full {
  height: 88px;
  border-radius: 18px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.25);
}
.copyright { font-size: 14px; color: #8893a1; margin-top: 12px; }
.footer-bottom {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.08);
  display: flex; justify-content: space-between;
  font-size: 14px; color: #8893a1;
  flex-wrap: wrap; gap: 10px;
}

/* ---------- Modal ---------- */
.modal {
  border: 0;
  border-radius: var(--r-card);
  padding: 0;
  max-width: 440px;
  width: calc(100% - 32px);
  box-shadow: 0 24px 60px rgba(0,0,0,0.28);
  background: #fff;
  color: var(--text-main);
}
.modal::backdrop {
  background: rgba(44, 62, 80, 0.55);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.modal[open] { animation: modalIn .28s ease-out; }
.modal[open]::backdrop { animation: backdropIn .28s ease-out; }
@keyframes modalIn {
  from { opacity: 0; transform: translateY(16px) scale(0.96); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes backdropIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
.modal-inner {
  padding: 44px 32px 36px;
  text-align: center;
  position: relative;
}
.modal-close {
  position: absolute;
  top: 14px; right: 16px;
  width: 36px; height: 36px;
  border-radius: 50%;
  font-size: 24px;
  line-height: 1;
  color: var(--text-muted);
  background: transparent;
  transition: background .2s, color .2s;
}
.modal-close:hover { background: var(--bg-cream); color: var(--text-main); }
.modal-emoji {
  font-size: 72px;
  line-height: 1;
  margin-bottom: 12px;
  display: inline-block;
  animation: modalPop .7s ease-out both;
  filter: drop-shadow(0 8px 16px rgba(0,0,0,0.15));
}
@keyframes modalPop {
  0%   { transform: scale(0) rotate(-20deg); }
  60%  { transform: scale(1.15) rotate(8deg); }
  100% { transform: scale(1) rotate(0); }
}
.modal h3 {
  font-size: 1.5rem;
  margin-bottom: 10px;
}
.modal p {
  color: var(--text-muted);
  margin-bottom: 24px;
}
.modal .btn {
  width: 100%;
  justify-content: center;
}

/* ---------- Scroll reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .7s ease-out, transform .7s ease-out;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .hero-inner { grid-template-columns: 1fr; text-align: center; }
  .hero-copy { margin: 0 auto; }
  .hero-ctas { justify-content: center; }
  .hero-trust { justify-content: center; }
  .hero-visual { min-height: 420px; margin-top: 20px; }
  .grid-5 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 767px) {
  :root { --pad-x: var(--pad-x-mobile); }
  body { font-size: 16px; }
  .section { padding: 56px 0; }
  .section-head { margin-bottom: 36px; }

  h1 { font-size: 2.25rem; }
  h2 { font-size: 1.75rem; }
  h3 { font-size: 1.2rem; }

  .nav-toggle { display: inline-flex; }
  .logo-full { height: 44px; border-radius: 12px; }
  .logo-footer .logo-full { height: 72px; }
  .primary-nav {
    position: absolute;
    top: 80px; left: 16px; right: 16px;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 16px;
    background: #fff;
    border-radius: var(--r-card);
    box-shadow: var(--shadow-card);
    display: none;
  }
  .primary-nav.is-open { display: flex; }
  .primary-nav a {
    padding: 12px 16px;
    border-radius: 12px;
  }
  .primary-nav a:hover { background: var(--bg-cream); }
  .primary-nav a.btn { margin-top: 8px; text-align: center; justify-content: center; }

  .grid-3, .grid-4, .grid-5 { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; gap: 40px; margin-top: 24px; }

  .hero { padding: 48px 0 64px; }
  .hero-char { display: none; }
  .hero-char-main { display: block; width: 220px; position: relative; left: auto; top: auto; transform: none; margin: 0 auto; animation: gentleBounce 3.6s ease-in-out infinite; }
  .hero-visual { min-height: 260px; display: flex; justify-content: center; }

  .footer-grid { grid-template-columns: 1fr; }
  .testimonial { padding: 24px; font-size: 1.05rem; }
  .contact-form { padding: 24px; }

  .timeline { flex-wrap: wrap; }
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
}
