/* ============================================================
   KADORANA - Concept C: Boutique Educational House
   Premium warm family brand, emotional storytelling.
   Warmer palette (terracotta + mustard + lavender warmth),
   full-width statement sections, generous soft rounded shapes,
   a "house/rooms" hospitality feel. Shared across all 5 pages.
   ============================================================ */

/* Fonts loaded via <link> in each page <head> (see spec). */

/* ---------- Design tokens ---------- */
:root {
  /* Brand colors */
  --sage: #D9DED2;
  --green: #7D9688;
  --green-deep: #4C6155;      /* AA-safe green for white text (>=4.5:1) */
  --terracotta: #D97A5A;
  --terracotta-ink: #A8492A;  /* AA-safe terracotta on cream + cream-deep (>=4.5:1) */
  --mustard: #D8A84B;
  --lavender: #A99BC9;
  --ink: #2D3748;

  /* Concept C warm surfaces: lead with cream/warm tints over cool sage */
  --cream: #FBF7F1;
  --cream-deep: #F4ECE1;
  --terracotta-wash: #FBEEE7;
  --mustard-wash: #FAF1DD;
  --lavender-wash: #F1EEF7;
  --green-wash: #ECF0EA;

  --ink-soft: #5A6473;
  --line: #E7DED2;
  --white: #FFFFFF;

  /* Type */
  --font-head: 'Manrope', 'Plus Jakarta Sans', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;

  /* Layout */
  --maxw: 1280px;
  --content: 1100px;
  --radius-lg: 28px;
  --radius-md: 20px;
  --radius-sm: 14px;

  /* Spacing */
  --section-y: clamp(72px, 10vw, 120px);
  --inner: 40px;
  --gap-card: 24px;
  --gap-btn: 16px;

  --shadow-soft: 0 18px 40px -24px rgba(45, 55, 72, 0.28);
  --shadow-card: 0 10px 30px -20px rgba(45, 55, 72, 0.35);
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: clamp(16px, 1.05vw + 0.5rem, 18px);
  line-height: 1.7;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

h1, h2, h3 {
  font-family: var(--font-head);
  font-weight: 600;
  line-height: 1.15;
  color: var(--ink);
  margin: 0 0 0.5em;
  letter-spacing: -0.015em;
}

h1 { font-size: clamp(40px, 6vw, 60px); }
h2 { font-size: clamp(30px, 4.2vw, 42px); }
h3 { font-size: clamp(20px, 2.4vw, 26px); }

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

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

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--ink);
  color: var(--white);
  padding: 12px 20px;
  border-radius: 0 0 12px 0;
  z-index: 1000;
}
.skip-link:focus { left: 0; }

/* ---------- Layout helpers ---------- */
.wrap {
  width: 100%;
  max-width: var(--content);
  margin-inline: auto;
  padding-inline: clamp(20px, 5vw, 40px);
}
.wrap--wide { max-width: var(--maxw); }

.section { padding-block: var(--section-y); }

.eyebrow {
  display: inline-block;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--terracotta-ink);
  margin-bottom: 14px;
}

.lead {
  font-size: clamp(18px, 2vw, 22px);
  color: var(--ink-soft);
  max-width: 60ch;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 16px;
  padding: 15px 28px;
  border-radius: var(--radius-sm);
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.18s ease, background-color 0.18s ease, box-shadow 0.18s ease;
}
.btn-primary {
  background: var(--terracotta);
  color: var(--white);
  box-shadow: var(--shadow-card);
}
.btn-primary:hover { transform: translateY(-2px); background: #cf6b4a; }
.btn-secondary {
  background: var(--white);
  color: var(--green);
  border-color: var(--green);
}
.btn-secondary:hover { transform: translateY(-2px); background: var(--green-wash); }

.btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: var(--gap-btn);
  margin-top: 28px;
}

/* ============================================================
   HEADER / NAV  (shared verbatim across all 5 pages)
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(251, 247, 241, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding: 14px clamp(20px, 5vw, 40px);
}
.nav-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 20px;
  letter-spacing: 0.04em;
  color: var(--ink);
}
.nav-brand img {
  height: 60px;
  width: auto;
  border-radius: 10px;
}
.nav-list {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-list a {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 15px;
  color: var(--ink-soft);
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease;
}
.nav-list a:hover { color: var(--ink); }
.nav-list a.is-active {
  color: var(--terracotta-ink);
  border-bottom-color: var(--terracotta-ink);
}
.nav-cta { margin-left: 8px; }
.nav-cta .btn { padding: 11px 20px; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 46px;
  height: 46px;
  padding: 0;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  margin-inline: auto;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 880px) {
  .nav-toggle { display: flex; }
  .nav-menu {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--cream);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-soft);
    padding: 12px clamp(20px, 5vw, 40px) 24px;
  }
  .nav-menu.is-open { display: flex; }
  .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }
  .nav-list a {
    display: block;
    padding: 14px 4px;
    border-bottom: 1px solid var(--line);
  }
  .nav-list a.is-active { border-bottom-color: var(--line); }
  .nav-list a::after { display: none; }  /* growing underline is a desktop affordance */
  .nav-cta { margin: 16px 0 0; }
  .nav-cta .btn { width: 100%; }
}

/* ============================================================
   HERO  (narrative, emotional)
   ============================================================ */
.hero {
  background:
    radial-gradient(120% 90% at 85% -10%, var(--terracotta-wash) 0%, transparent 55%),
    radial-gradient(110% 80% at 0% 110%, var(--mustard-wash) 0%, transparent 50%),
    var(--cream);
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: clamp(32px, 6vw, 72px);
  padding-block: clamp(56px, 9vw, 104px);
}
.hero-logo {
  width: 96px;
  height: auto;
  border-radius: 18px;
  margin-bottom: 26px;
  box-shadow: var(--shadow-card);
}
.hero h1 { margin-bottom: 18px; }
.hero-tagline { color: var(--terracotta-ink); }
.hero-subhead {
  font-size: clamp(18px, 2.1vw, 22px);
  color: var(--ink);
  font-weight: 500;
  max-width: 38ch;
  margin-bottom: 12px;
}
.hero-line { color: var(--ink-soft); max-width: 42ch; }

.hero-art {
  background: transparent;
  border-radius: 0;
  padding: clamp(4px, 2vw, 16px);
  box-shadow: none;
  display: grid;
  place-items: center;
}
.hero-art svg { width: clamp(140px, 22vw, 200px); height: auto; }

/* ============================================================
   BRAND STORY  (narrative centerpiece)
   ============================================================ */
.story { background: var(--cream-deep); }
.story-inner {
  max-width: 820px;
  margin-inline: auto;
  text-align: center;
}
.story-quote {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: clamp(24px, 3.4vw, 34px);
  line-height: 1.3;
  color: var(--ink);
  margin: 0 0 28px;
}
.story-body { font-size: clamp(17px, 1.6vw, 19px); color: var(--ink-soft); }

/* O/U emotional centerpiece */
.ou {
  background: var(--white);
}
.ou-inner {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  align-items: center;
  gap: clamp(32px, 6vw, 64px);
}
.ou-art {
  background:
    radial-gradient(80% 80% at 50% 40%, var(--lavender-wash) 0%, transparent 70%),
    var(--cream);
  border-radius: var(--radius-lg);
  padding: clamp(36px, 6vw, 64px);
  display: grid;
  place-items: center;
}
.ou-art svg { width: clamp(120px, 18vw, 170px); }
.ou-points {
  list-style: none;
  margin: 24px 0 0;
  padding: 0;
  display: grid;
  gap: 16px;
}
.ou-points li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  font-size: 18px;
  color: var(--ink);
}
.ou-points li::before {
  content: "";
  flex: none;
  width: 12px;
  height: 12px;
  margin-top: 9px;
  border-radius: 50%;
  background: var(--terracotta);
}
.ou-points li:nth-child(2)::before { background: var(--mustard); }
.ou-points li:nth-child(3)::before { background: var(--lavender); }
.ou-points li:nth-child(4)::before { background: var(--green); }

/* ============================================================
   CLUBS  ("warm rooms" of the house, NOT a product grid)
   ============================================================ */
.clubs { background: var(--cream); }
.section-head { max-width: 720px; margin-bottom: clamp(36px, 5vw, 56px); }
.section-head--center { margin-inline: auto; text-align: center; }

/* .club-icon + .club-day are shared by the clubs.html feature panels */
.club-icon {
  flex: none;
  width: 72px;
  height: 72px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  background: var(--white);
  border: 1px solid var(--line);
}
.club-icon svg { width: 40px; height: 40px; }

.club-day {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 4px;
}

/* ============================================================
   TIMELINE  ("How a morning unfolds") - vertical narrative
   ============================================================ */
.morning { background: var(--cream-deep); }
.timeline {
  position: relative;
  max-width: 760px;
  margin-inline: auto;
  padding-left: 8px;
}
.timeline::before {
  content: "";
  position: absolute;
  left: 19px;
  top: 12px;
  bottom: 12px;
  width: 2px;
  background: linear-gradient(var(--terracotta), var(--mustard), var(--lavender));
  border-radius: 2px;
}
.tl-item {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 22px;
  align-items: flex-start;
  padding: 14px 0;
}
.tl-dot {
  flex: none;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--white);
  border: 2px solid var(--terracotta);
  color: var(--terracotta);
  z-index: 1;
}
.tl-item:nth-child(2) .tl-dot { border-color: var(--mustard); color: var(--mustard); }
.tl-item:nth-child(3) .tl-dot { border-color: var(--green); color: var(--green); }
.tl-item:nth-child(4) .tl-dot { border-color: var(--lavender); color: var(--lavender); }
.tl-item:nth-child(5) .tl-dot { border-color: var(--terracotta); color: var(--terracotta); }
.tl-dot svg { width: 20px; height: 20px; }
.tl-time {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 15px;
  color: var(--ink);
  margin-bottom: 2px;
}
.tl-label { color: var(--ink-soft); }

/* ============================================================
   WHY KADORANA  + pillars
   ============================================================ */
.why { background: var(--white); }
.why-text { max-width: 760px; margin-inline: auto; text-align: center; }
.why-quote {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: clamp(22px, 3vw, 30px);
  color: var(--terracotta);
  margin-top: 28px;
}
.pillars {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--gap-card);
  margin-top: clamp(40px, 5vw, 56px);
}
.pillar {
  text-align: center;
  padding: 28px 20px;
  border-radius: var(--radius-md);
  background: var(--cream);
  border: 1px solid var(--line);
}
.pillar:nth-child(1) { background: var(--terracotta-wash); }
.pillar:nth-child(2) { background: var(--mustard-wash); }
.pillar:nth-child(3) { background: var(--lavender-wash); }
.pillar:nth-child(4) { background: var(--green-wash); }
.pillar h3 { font-size: 19px; margin: 0; }

/* ============================================================
   SUMMER teaser
   ============================================================ */
.summer { background: var(--cream-deep); }
.summer-card {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  align-items: center;
  gap: clamp(28px, 5vw, 56px);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(32px, 5vw, 56px);
  box-shadow: var(--shadow-soft);
}
.summer-facts {
  list-style: none;
  margin: 22px 0 0;
  padding: 0;
  display: grid;
  gap: 12px;
  color: var(--ink-soft);
}
.summer-facts li { display: flex; gap: 12px; align-items: baseline; }
.summer-facts strong { color: var(--ink); font-family: var(--font-head); }
.summer-badge {
  display: grid;
  place-items: center;
  background: var(--mustard-wash);
  border-radius: var(--radius-md);
  padding: clamp(28px, 4vw, 44px);
  text-align: center;
}
.summer-badge .age {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(48px, 7vw, 72px);
  color: var(--ink);
  line-height: 1;
}
.summer-badge .age-label { color: var(--ink-soft); margin-top: 6px; }

/* ============================================================
   ENROLL CTA  +  FORM
   ============================================================ */
.enroll {
  background:
    radial-gradient(120% 100% at 100% 0%, var(--terracotta-wash) 0%, transparent 55%),
    var(--cream);
}
.enroll-band {
  background: var(--green-deep);
  color: var(--white);
  border-radius: var(--radius-lg);
  padding: clamp(36px, 6vw, 64px);
  text-align: center;
  box-shadow: var(--shadow-soft);
}
.enroll-band h2 { color: var(--white); }
.enroll-band p { color: var(--white); max-width: 52ch; margin-inline: auto; }
.enroll-band .btn-group { justify-content: center; }
.enroll-band .btn-secondary { background: var(--white); color: var(--green-deep); border-color: var(--white); }
.enroll-band .btn-secondary:hover { background: var(--cream); }

/* Form (reused on contact page + enroll sections) */
.form-card {
  max-width: 680px;
  margin-inline: auto;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(28px, 4vw, 48px);
  box-shadow: var(--shadow-soft);
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.field { display: flex; flex-direction: column; gap: 8px; }
.field--full { grid-column: 1 / -1; }
.field label {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 15px;
  color: var(--ink);
}
.field input,
.field select,
.field textarea {
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--ink);
  padding: 13px 15px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--cream);
  transition: border-color 0.15s ease, background 0.15s ease;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--green);
  background: var(--white);
  outline: none;
}
.field textarea { resize: vertical; min-height: 110px; }
.form-card .btn-primary { width: 100%; margin-top: 4px; }

/* ============================================================
   FOOTER  (shared verbatim across all 5 pages)
   ============================================================ */
.site-footer {
  background: var(--ink);
  color: rgba(255, 255, 255, 0.85);
  padding-block: clamp(48px, 7vw, 72px) 32px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: clamp(28px, 5vw, 56px);
}
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 20px;
  letter-spacing: 0.04em;
  color: var(--white);
  margin-bottom: 14px;
}
.footer-brand img { height: 40px; border-radius: 10px; }
.footer-tag { color: rgba(255,255,255,0.7); max-width: 34ch; }
.footer-col h4 {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--white);
  margin: 0 0 16px;
}
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer-col a { color: rgba(255,255,255,0.8); }
.footer-col a:hover { color: var(--mustard); }
.footer-bottom {
  margin-top: clamp(36px, 5vw, 48px);
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.15);
  font-size: 14px;
  color: rgba(255,255,255,0.6);
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  justify-content: space-between;
}

/* ============================================================
   THANKS page
   ============================================================ */
.thanks {
  min-height: 70vh;
  display: grid;
  place-items: center;
  text-align: center;
  background:
    radial-gradient(110% 80% at 50% -10%, var(--terracotta-wash) 0%, transparent 55%),
    var(--cream);
}
.thanks-card {
  max-width: 560px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(40px, 6vw, 64px);
  box-shadow: var(--shadow-soft);
}
.thanks-card svg { width: 88px; height: 88px; margin-inline: auto 0; margin-bottom: 22px; color: var(--terracotta); }
.thanks-card .btn { margin-top: 28px; }

/* ============================================================
   SCROLL REVEAL
   ============================================================ */
/* JS-gated: without JS the content stays fully visible (no opacity:0). */
html.js .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
html.js .reveal.is-visible { opacity: 1; transform: none; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 880px) {
  .hero-grid { grid-template-columns: 1fr; gap: 36px; }
  .hero-art { order: -1; }
  .ou-inner { grid-template-columns: 1fr; }
  .summer-card { grid-template-columns: 1fr; }
  .pillars { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
}

@media (max-width: 620px) {
  .form-grid { grid-template-columns: 1fr; }
  .pillars { grid-template-columns: 1fr; }
  .club-icon { width: 60px; height: 60px; }
  .btn-group .btn { width: 100%; }
  .enroll-band .btn-group .btn { width: 100%; }
}

/* ---------- Reduced motion guard ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  html.js .reveal { opacity: 1; transform: none; }
  .btn:hover { transform: none; }
  /* Disable all delight motion for reduced-motion users */
  .ou-squiggle path { stroke-dashoffset: 0 !important; }
  .day-card,
  .day-card:hover,
  .btn .btn-arrow,
  .day-icon svg,
  .link-arrow::after,
  .nav-list a::after { transition: none !important; transform: none !important; }
  .day-card[aria-expanded] + .day-detail { transition: none !important; }
}

/* ============================================================
   FUN + DELIGHT LAYER  (v2 - playful, premium, never tacky)
   ============================================================ */

/* ---- Energetic kid-facing micro-copy accent ---- */
.kid-spark {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.06em;
  color: var(--terracotta-ink);
  background: var(--terracotta-wash);
  border: 1px solid var(--line);
  padding: 7px 14px;
  border-radius: 999px;
  margin-bottom: 16px;
}
.kid-spark svg { width: 16px; height: 16px; flex: none; }

/* ---- Primary button: animated arrow nudge on hover ---- */
.btn .btn-arrow {
  display: inline-block;
  transition: transform 0.2s ease;
}
.btn:hover .btn-arrow { transform: translateX(4px); }

/* ---- Animated underline links (footer + inline links) ---- */
.link-arrow {
  position: relative;
  font-weight: 600;
  color: var(--terracotta-ink);
}
.link-arrow::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -3px;
  width: 100%;
  height: 2px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}
.link-arrow:hover::after,
.link-arrow:focus-visible::after { transform: scaleX(1); }

/* Nav links get a playful growing underline on hover/focus */
.nav-list a { position: relative; }
.nav-list a::after {
  content: "";
  position: absolute;
  left: 2px;
  right: 2px;
  bottom: 2px;
  height: 2px;
  background: var(--terracotta-ink);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}
.nav-list a:hover::after,
.nav-list a:focus-visible::after { transform: scaleX(1); }
/* Active page already shows a solid border-bottom; no growing underline needed */
.nav-list a.is-active::after { display: none; }

/* ---- Club feature panel icon nudge on hover (clubs.html) ---- */
.club-feature-panel .club-icon svg { transition: transform 0.25s ease; }
.club-feature:hover .club-icon svg { transform: rotate(-6deg) scale(1.08); }

/* ============================================================
   WEEKLY DISCOVERY SCHEDULE  (the star - interactive day cards)
   ============================================================ */
.week {
  background:
    radial-gradient(120% 90% at 0% -10%, var(--mustard-wash) 0%, transparent 55%),
    var(--cream);
}
/* Persistent "tap to discover" affordance for the marquee interaction */
.tap-hint {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--terracotta-ink);
  background: var(--white);
  border: 1px solid var(--line);
  padding: 7px 14px;
  border-radius: 999px;
}
.tap-hint svg { width: 16px; height: 16px; flex: none; }

.week-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: var(--gap-card);
  margin-top: clamp(28px, 4vw, 44px);
}
/* Gentle one-time chevron pulse to signal the cards open (no idle loop).
   Plays a few times then settles; fully disabled under reduced-motion. */
@media (prefers-reduced-motion: no-preference) {
  .day-chevron svg { animation: chevronCue 2s ease 0.6s 3; }
}
@keyframes chevronCue {
  0%, 70%, 100% { transform: translateY(0); }
  82% { transform: translateY(3px); }
}
/* Each day = a wrapper holding the toggle button + its expandable detail.
   The detail is a SIBLING of the button (a <button> cannot legally wrap an <a>). */
.day-card-wrap {
  position: relative;
  display: flex;
  flex-direction: column;
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.day-card-wrap:hover,
.day-card-wrap:focus-within {
  transform: translateY(-4px);
  box-shadow: var(--shadow-soft);
}
.day-card-wrap:focus-within { border-color: currentColor; }
.day-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  text-align: left;
  width: 100%;
  font-family: var(--font-body);
  padding: clamp(20px, 2.4vw, 28px);
  border: 0;
  background: transparent;
  cursor: pointer;
  color: inherit;
}
/* Inset the focus ring so the overflow:hidden wrapper never clips it */
.day-card:focus-visible {
  outline: 3px solid var(--terracotta-ink);
  outline-offset: -3px;
  border-radius: var(--radius-md);
}

/* Per-day vibrant brand accent (color drives the card's energy) */
.day-card-wrap--mon { color: var(--terracotta-ink); }
.day-card-wrap--tue { color: #7E5E0E; }            /* AA-safe mustard ink (>=4.5:1 on mustard-wash) */
.day-card-wrap--wed { color: #6B5B97; }            /* AA-safe lavender ink */
.day-card-wrap--thu { color: var(--green-deep); }
.day-card-wrap--fri { color: var(--terracotta-ink); }

.day-card-wrap--mon { background: var(--terracotta-wash); }
.day-card-wrap--tue { background: var(--mustard-wash); }
.day-card-wrap--wed { background: var(--lavender-wash); }
.day-card-wrap--thu { background: var(--green-wash); }
.day-card-wrap--fri { background: var(--terracotta-wash); }

.day-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}
.day-icon {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: var(--white);
  border: 1px solid var(--line);
}
.day-icon svg {
  width: 30px;
  height: 30px;
  color: currentColor;
  transition: transform 0.3s ease;
}
.day-card-wrap:hover .day-icon svg,
.day-card:focus-visible .day-icon svg { transform: rotate(-8deg) scale(1.12); }

.day-chevron {
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  color: currentColor;
  transition: transform 0.3s ease;
}
.day-chevron svg { width: 18px; height: 18px; }
.day-card[aria-expanded="true"] .day-chevron { transform: rotate(180deg); }
/* When the card is open, lock the wrapper outline to the day's accent */
.day-card-wrap:has(.day-card[aria-expanded="true"]) { border-color: currentColor; }

.day-name {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: currentColor;
}
.day-title {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: clamp(16px, 1.5vw, 18px);
  line-height: 1.25;
  color: var(--ink);
  margin: 0;
}

/* Playful reveal of the day's detail (sibling of the toggle button) */
.day-detail {
  display: grid;
  grid-template-rows: 0fr;
  opacity: 0;
  transition: grid-template-rows 0.32s ease, opacity 0.32s ease;
}
.day-card[aria-expanded="true"] + .day-detail {
  grid-template-rows: 1fr;
  opacity: 1;
}
.day-detail-inner {
  overflow: hidden;
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.6;
  padding-inline: clamp(20px, 2.4vw, 28px);
}
.day-card[aria-expanded="true"] + .day-detail .day-detail-inner {
  padding-bottom: clamp(20px, 2.4vw, 28px);
}
.day-detail-inner p { margin: 6px 0 0; }
.day-detail-inner p:first-child { margin-top: 0; }
/* Kid-facing teaser line - the "reward" for opening the card */
.day-teaser {
  font-family: var(--font-head);
  font-weight: 600;
  color: currentColor;
}
/* "Виж клуба" deep-link to the matching clubs.html section */
.day-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 10px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 14px;
  color: currentColor;
}
.day-link .day-link-arrow { transition: transform 0.2s ease; }
.day-link:hover .day-link-arrow,
.day-link:focus-visible .day-link-arrow { transform: translateX(4px); }

@media (max-width: 880px) {
  .week-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .week-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   O/U self-drawing squiggle (SVG stroke animation on load)
   Overlaid hand-drawn underline beneath the hero tagline.
   ============================================================ */
.hero-tagline { position: relative; }
.ou-squiggle {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -0.32em;
  width: 100%;
  height: 0.4em;
  overflow: visible;
  pointer-events: none;
}
.ou-squiggle path {
  fill: none;
  stroke: var(--terracotta);
  stroke-width: 4;
  stroke-linecap: round;
}
html.js .ou-squiggle path {
  stroke-dasharray: 220;
  stroke-dashoffset: 220;
}
html.js .ou-squiggle.is-drawn path {
  animation: ouDraw 1.1s ease 0.35s forwards;
}
@keyframes ouDraw {
  to { stroke-dashoffset: 0; }
}

/* ============================================================
   THANKS  celebratory cue (subtle, classy - no confetti spam)
   ============================================================ */
.thanks-card .thanks-burst {
  position: relative;
  width: 96px;
  height: 96px;
  margin-inline: auto;
  margin-bottom: 22px;
  display: grid;
  place-items: center;
}
.thanks-card .thanks-burst svg.check {
  width: 88px;
  height: 88px;
  color: var(--terracotta);
}
html.js .thanks-card .thanks-burst svg.check circle {
  stroke-dasharray: 64;
  stroke-dashoffset: 64;
  animation: drawRing 0.7s ease 0.1s forwards;
}
html.js .thanks-card .thanks-burst svg.check path {
  stroke-dasharray: 20;
  stroke-dashoffset: 20;
  animation: drawCheck 0.45s ease 0.7s forwards;
}
@keyframes drawRing { to { stroke-dashoffset: 0; } }
@keyframes drawCheck { to { stroke-dashoffset: 0; } }
/* Three quiet accent dots that bloom once (no loop) */
.thanks-burst i {
  position: absolute;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  opacity: 0;
}
.thanks-burst i:nth-child(2) { top: 2px; left: 8px; background: var(--mustard); }
.thanks-burst i:nth-child(3) { top: 6px; right: 6px; background: var(--lavender); }
.thanks-burst i:nth-child(4) { bottom: 4px; left: 18px; background: var(--green); }
html.js .thanks-burst i { animation: bloom 0.6s ease 0.9s forwards; }
@keyframes bloom {
  0% { opacity: 0; transform: scale(0.4); }
  60% { opacity: 1; transform: scale(1.15); }
  100% { opacity: 0.9; transform: scale(1); }
}
