/* =============================================================
   EFRÉN Family Daycare — liquid shapes, crayon-box warmth
   Layout: butter-yellow ground, sections joined by soft waves;
   hero pairs the promise with a drawn little house on morphing blobs.
   ============================================================= */

/* 1. Tokens */
:root {
  --butter: #fff5db;      /* page ground */
  --white: #fffdf8;
  --grape: #2e2257;       /* ink */
  --grape-soft: #5f5782;
  --tangerine: #ff8a3d;   /* main action: grape text sits on it */
  --tangerine-deep: #f06d1c;
  --teal: #178f86;        /* "open spot" */
  --teal-soft: #d3f0ec;
  --berry: #d63d6f;       /* "waitlist" */
  --berry-soft: #fbe1ea;
  --sun: #ffc83a;
  --line: rgba(46, 34, 87, 0.12);

  --display: "Fredoka", "Nunito", "Trebuchet MS", system-ui, sans-serif;
  --sans: "Nunito", "Segoe UI", system-ui, -apple-system, sans-serif;

  --gutter-l: max(16px, env(safe-area-inset-left, 0px));
  --gutter-r: max(16px, env(safe-area-inset-right, 0px));
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
  color-scheme: light;
}

/* 2. Reset & base */
[hidden] { display: none !important; }
*, *::before, *::after { box-sizing: border-box; margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; overflow-x: clip; }
body {
  font-family: var(--sans); font-size: 17px; line-height: 1.6; color: var(--grape); background: var(--butter);
  -webkit-font-smoothing: antialiased; overflow-x: clip;
  padding-bottom: calc(64px + env(safe-area-inset-bottom, 0px));
}
img, svg { display: block; max-width: 100%; }
button, select { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; padding: 0; }
h1, h2, h3 { font-family: var(--display); font-weight: 600; line-height: 1.08; letter-spacing: -0.01em; text-wrap: balance; }
p { text-wrap: pretty; }
:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; border-radius: 10px; }
::selection { background: var(--sun); color: var(--grape); }
.num { font-variant-numeric: tabular-nums; }
.hp { position: absolute; left: -9999px; }
.wrap { width: 100%; max-width: 1140px; margin-inline: auto; padding-left: var(--gutter-l); padding-right: var(--gutter-r); }
.skip-link { position: fixed; top: -100px; left: 1rem; z-index: 100; padding: .6rem 1rem; background: var(--grape); color: var(--white); border-radius: 12px; }
.skip-link:focus { top: calc(env(safe-area-inset-top, 0px) + 1rem); }
.eyebrow { font-family: var(--display); font-weight: 600; font-size: .95rem; color: var(--teal); }

/* 3. Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: .75rem 1.4rem;
  border-radius: 999px; font-weight: 800; font-size: 1rem; line-height: 1.1;
  transition: transform .4s var(--bounce), background-color .2s, box-shadow .3s;
}
.btn:hover { transform: translateY(-2px) scale(1.02); }
.btn-orange { background: var(--tangerine); color: var(--grape); box-shadow: 0 4px 0 var(--tangerine-deep); }
.btn-orange:hover { box-shadow: 0 6px 0 var(--tangerine-deep); }
.btn-soft { background: var(--white); color: var(--grape); box-shadow: inset 0 0 0 2px var(--grape); }
.btn-block { width: 100%; }

/* 4. Header */
.top { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50; background: rgba(255, 245, 219, .94); border-bottom: 1px solid var(--line); }
@supports ((backdrop-filter: blur(10px)) or (-webkit-backdrop-filter: blur(10px))) {
  .top { background: rgba(255, 245, 219, .82); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
}
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 60; background: var(--butter); }
.top-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 66px; }
.logo { display: flex; align-items: center; gap: .55rem; }
.logo-sun { width: 34px; height: 34px; fill: var(--sun); animation: spin 30s linear infinite; }
.logo-text { display: grid; line-height: 1; }
.logo-name { font-family: var(--display); font-weight: 700; font-size: 1.55rem; }
.logo-sub { font-size: .75rem; font-weight: 700; color: var(--grape-soft); margin-top: .15rem; }
.links { display: none; gap: 1.6rem; font-weight: 700; }
.links a { padding: .3rem .1rem; border-radius: 8px; }
.links a:hover { color: var(--teal); }
.top-actions { display: flex; align-items: center; gap: .5rem; }
.lang-toggle { min-width: 46px; height: 46px; border-radius: 50%; font-weight: 800; font-size: .85rem; background: var(--white); box-shadow: inset 0 0 0 2px var(--grape); }
.lang-toggle:hover { background: var(--sun); }
.top-cta { display: none; min-height: 46px; padding: .6rem 1.1rem; font-size: .95rem; }
@keyframes spin { to { transform: rotate(360deg); } }

/* 5. Hero */
.hero { position: relative; padding-top: 2rem; }
.hero-inner { display: grid; gap: 1.5rem; align-items: center; padding-bottom: 1rem; }
.hero-copy { display: grid; gap: 1.1rem; min-width: 0; isolation: isolate; }
.pill { justify-self: start; padding: .35rem .85rem; border-radius: 999px; background: var(--teal-soft); color: var(--teal); font-weight: 800; font-size: .85rem; }
.hero h1 { font-size: clamp(2.6rem, 9vw, 4.4rem); font-weight: 600; }
.hl { color: var(--tangerine-deep); position: relative; white-space: nowrap; }
.hl::after {
  content: ""; position: absolute; left: -2%; right: -2%; bottom: .02em; height: .28em; z-index: -1; border-radius: 99px;
  background: var(--sun); opacity: .55; transform: rotate(-1.2deg);
}
.hero-sub { font-size: 1.12rem; color: var(--grape-soft); max-width: 46ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .7rem; }
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: .6rem; margin-top: .4rem; }
.facts li { display: grid; gap: .1rem; padding: .7rem .8rem; border-radius: 18px; background: var(--white); border: 1px solid var(--line); min-width: 0; }
.facts b { font-family: var(--display); font-weight: 600; font-size: 1.05rem; line-height: 1.15; }
.facts span { font-size: .82rem; color: var(--grape-soft); line-height: 1.3; }

.hero-art { position: relative; width: min(100%, 460px); margin-inline: auto; aspect-ratio: 1 / .95; max-width: 100%; }
.blob { position: absolute; border-radius: 38% 62% 63% 37% / 41% 44% 56% 59%; animation: morph 14s ease-in-out infinite alternate; }
.blob-a { inset: 6% 4% 8% 2%; background: var(--teal-soft); }
.blob-b { width: 42%; height: 42%; right: 0; top: 0; background: var(--berry-soft); animation-duration: 18s; animation-direction: alternate-reverse; }
@keyframes morph {
  0% { border-radius: 38% 62% 63% 37% / 41% 44% 56% 59%; transform: rotate(0deg); }
  100% { border-radius: 60% 40% 35% 65% / 55% 60% 40% 45%; transform: rotate(8deg); }
}
.house { position: absolute; inset: 8% 6% 4%; width: 88%; height: 88%; }
.house .sun { fill: var(--sun); }
.house .roof { fill: var(--tangerine); }
.house .walls { fill: var(--white); stroke: var(--grape); stroke-width: 4; }
.house .door { fill: var(--grape); }
.house .win { fill: var(--sun); stroke: var(--grape); stroke-width: 4; }
.house .knob { fill: var(--sun); }
.house .grass { fill: var(--teal); }
.house .abc text { font-family: var(--display); font-weight: 700; font-size: 34px; }
.house .abc text:nth-child(1) { fill: var(--berry); }
.house .abc text:nth-child(2) { fill: var(--grape); }
.house .abc text:nth-child(3) { fill: var(--tangerine-deep); }
.open-badge {
  position: absolute; left: 0; bottom: 10%; display: flex; align-items: center; gap: .5rem;
  padding: .55rem 1rem .55rem .6rem; border-radius: 999px; background: var(--grape); color: var(--white);
  font-weight: 800; font-size: .9rem; box-shadow: 0 10px 24px -12px rgba(46, 34, 87, .6);
  animation: bob 4s ease-in-out infinite;
}
.open-badge b { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--sun); color: var(--grape); font-family: var(--display); font-size: 1.15rem; }
@keyframes bob { 50% { transform: translateY(-6px); } }

.wave { display: block; width: 100%; height: 44px; }
.wave path { fill: var(--white); }
.wave-top path { fill: var(--butter); }

/* 6. Sections */
.section { padding-block: 4rem; }
.section-white { background: var(--white); }
.section-head { display: grid; gap: .5rem; margin-bottom: 2rem; }
.section-head h2, .visit h2 { font-size: clamp(2rem, 6vw, 3rem); }
.section-sub { color: var(--grape-soft); max-width: 56ch; }

/* Spots */
.spots { display: grid; gap: 1rem; }
.spot {
  display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto auto auto; column-gap: 1rem; row-gap: .15rem;
  padding: 1.2rem; border-radius: 28px; background: var(--butter); border: 2px solid transparent; align-items: center;
}
.spot-open { border-color: var(--teal-soft); }
.spot-icon {
  grid-row: 1 / span 4; width: 72px; height: 72px; display: grid; place-items: center;
  border-radius: 46% 54% 60% 40% / 50% 42% 58% 50%; background: var(--white);
}
.spot-icon svg { width: 52px; height: 52px; }
.spot-icon circle { fill: var(--sun); }
.spot-icon .eye { fill: var(--grape); }
.spot-icon .mouth, .spot-icon .body { fill: none; stroke: var(--grape); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.spot h3 { font-size: 1.4rem; }
.age { color: var(--grape-soft); font-weight: 600; font-size: .95rem; }
.status { justify-self: start; margin-top: .35rem; padding: .25rem .8rem; border-radius: 999px; font-weight: 800; font-size: .88rem; }
.status-open { background: var(--teal-soft); color: var(--teal); }
.status-wait { background: var(--berry-soft); color: var(--berry); }

/* Estimator */
.estimator {
  display: grid; border-radius: 32px; overflow: hidden; background: var(--white);
  box-shadow: 0 30px 60px -36px rgba(46, 34, 87, .45); border: 2px solid var(--grape);
}
.est-inputs { display: grid; gap: 1.2rem; padding: 1.4rem; min-width: 0; }
.est-field { display: grid; gap: .45rem; border: 0; padding: 0; margin: 0; min-width: 0; }
.est-label { font-family: var(--display); font-weight: 600; font-size: 1.05rem; padding: 0; }
.pair { display: grid; grid-template-columns: 1.4fr 1fr; gap: .5rem; }
.estimator select {
  width: 100%; min-height: 50px; padding: .6rem 2.2rem .6rem 1rem; border-radius: 16px; border: 2px solid var(--line);
  background: var(--butter) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 6l4 4 4-4' fill='none' stroke='%232e2257' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") right .8rem center / 16px no-repeat;
  -webkit-appearance: none; appearance: none; font-weight: 700; cursor: pointer;
}
.estimator select:focus { outline: none; border-color: var(--teal); }
.days-opts { display: grid; grid-template-columns: repeat(3, 1fr); gap: .45rem; }
.days-opts label { position: relative; }
.days-opts input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.days-opts span {
  display: flex; align-items: center; justify-content: center; min-height: 50px; border-radius: 16px; font-weight: 800;
  background: var(--butter); border: 2px solid var(--line); cursor: pointer; transition: background-color .2s, transform .3s var(--bounce);
}
.days-opts input:checked + span { background: var(--sun); border-color: var(--grape); transform: scale(1.03); }
.days-opts input:focus-visible + span { outline: 3px solid var(--teal); outline-offset: 2px; }
.est-result { display: grid; gap: .5rem; align-content: start; padding: 1.5rem 1.4rem 1.6rem; background: var(--grape); color: var(--white); min-width: 0; }
.est-group { font-family: var(--display); font-weight: 600; font-size: 1.6rem; color: var(--sun); }
.est-age { color: rgba(255, 253, 248, .82); }
.est-price { display: flex; align-items: baseline; gap: .5rem; flex-wrap: wrap; }
.est-price b { font-family: var(--display); font-weight: 700; font-size: 3.4rem; line-height: 1; }
.est-price b.is-pop { animation: pop .5s var(--bounce); }
@keyframes pop { 0% { transform: scale(.85); } 100% { transform: scale(1); } }
.est-status { justify-self: start; padding: .45rem .9rem; border-radius: 16px; font-weight: 800; font-size: .95rem; }
.est-result .status-open { background: var(--teal-soft); color: #0f6e67; }
.est-result .status-wait { background: var(--berry-soft); color: #a52553; }
.est-result .status-none { background: rgba(255, 253, 248, .14); color: var(--white); }
.est-result .btn { margin-top: .5rem; }
.fine { font-size: .82rem; opacity: .75; }

/* A day */
#dia { padding-block: 0; }
.day-wrap { padding-block: 1rem 2.5rem; }
.day-top { padding-top: 2.5rem; }
.day { display: grid; gap: 0; position: relative; }
.day li { display: grid; grid-template-columns: 82px 1fr; gap: 1rem; position: relative; padding-bottom: 1.3rem; }
.day li::before { content: ""; position: absolute; left: 40px; top: 42px; bottom: 0; border-left: 3px dotted var(--line); }
.day li:last-child::before { display: none; }
.day time {
  justify-self: start; display: grid; place-items: center; width: 82px; height: 40px; border-radius: 999px;
  font-family: var(--display); font-weight: 600; font-size: 1.05rem; background: var(--butter); border: 2px solid var(--grape);
}
.day li { cursor: pointer; }
.day li time { transition: background-color .3s, transform .4s var(--bounce); }
.day li.is-now time { background: var(--sun); transform: scale(1.06); }
.day li.is-now h3 { color: var(--tangerine-deep); }
.day h3 { font-size: 1.3rem; }
.day p { color: var(--grape-soft); }

/* Promise */
.why { display: grid; gap: 1rem; }
.why li { padding: 1.3rem 1.3rem 1.4rem; border-radius: 26px; background: var(--white); border: 1px solid var(--line); display: grid; gap: .35rem; position: relative; overflow: hidden; }
.why li::before { content: ""; width: 44px; height: 44px; border-radius: 46% 54% 60% 40% / 50% 42% 58% 50%; margin-bottom: .3rem; }
.why li:nth-child(1)::before { background: var(--teal-soft); }
.why li:nth-child(2)::before { background: var(--berry-soft); }
.why li:nth-child(3)::before { background: var(--sun); }
.why li:nth-child(4)::before { background: var(--tangerine); }
.why h3 { font-size: 1.25rem; }
.why p { color: var(--grape-soft); }

/* Visit */
.visit { display: grid; gap: 2rem; align-items: start; }
.visit-copy { display: grid; gap: .7rem; }
.visit-phone { font-weight: 800; }
.visit-phone a { color: var(--teal); }
.visit-form { display: grid; gap: 1rem; padding: 1.4rem; border-radius: 30px; background: var(--white); border: 2px solid var(--grape); box-shadow: 0 8px 0 var(--grape); min-width: 0; }
.field { display: grid; gap: .35rem; font-weight: 800; font-size: .9rem; min-width: 0; }
.field input, .field textarea, .field select {
  font: inherit; font-weight: 600; font-size: 1rem; color: var(--grape); width: 100%; min-height: 50px;
  padding: .7rem 1rem; border-radius: 16px; border: 2px solid var(--line); background: var(--white);
}
.field select { -webkit-appearance: none; appearance: none; background: var(--white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 6l4 4 4-4' fill='none' stroke='%232e2257' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") right .9rem center / 16px no-repeat; cursor: pointer; }
.field textarea { resize: vertical; }
.field input[readonly] { background: var(--teal-soft); border-color: transparent; color: #0f6e67; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--teal); }
.form-ok { padding: .9rem 1rem; border-radius: 16px; background: var(--teal-soft); color: #0f6e67; font-weight: 800; }

/* FAQ */
.faq-wrap { max-width: 860px; }
.faq { display: grid; gap: .7rem; }
.faq details { background: var(--butter); border-radius: 22px; padding: 0 1.2rem; border: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 1rem; align-items: center; padding: 1.1rem 0; font-weight: 800; font-size: 1.05rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; flex: none; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%;
  background: var(--sun); font-family: var(--display); font-size: 1.3rem; line-height: 1; transition: transform .35s var(--bounce);
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding-bottom: 1.15rem; color: var(--grape-soft); max-width: 62ch; }

/* Footer */
.footer { background: var(--white); }
.wave-foot path { fill: var(--grape); }
.footer-body { background: var(--grape); color: rgba(255, 253, 248, .82); padding-block: 1.4rem 1.4rem; }
.footer-inner { display: grid; gap: 1rem; }
.footer-logo { color: var(--sun); font-size: 2.2rem; }
.footer-contact { display: flex; flex-wrap: wrap; gap: 1.2rem; font-weight: 800; color: var(--white); }
.footer-contact a:hover { color: var(--sun); }
.demo-note { margin-top: 1.6rem; padding-top: 1rem; border-top: 1px solid rgba(255, 253, 248, .15); font-size: .8rem; opacity: .7; }

.mobile-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 70;
  display: grid; grid-template-columns: 1fr 1fr 1.2fr; gap: .45rem;
  padding: .55rem max(12px, env(safe-area-inset-right, 0px)) calc(.55rem + env(safe-area-inset-bottom, 0px)) max(12px, env(safe-area-inset-left, 0px));
  background: var(--white); border-top: 1px solid var(--line);
}
.mobile-bar a { display: flex; align-items: center; justify-content: center; min-height: 46px; border-radius: 999px; font-weight: 800; background: var(--butter); }
.mobile-bar .mobile-bar-orange { background: var(--tangerine); }

/* 7. Interactive and teaching pieces */
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.ico { fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }

/* Word of the day */
.word-card {
  position: absolute; left: 0; top: 2%; z-index: 3; width: clamp(150px, 40%, 178px); padding: .7rem .7rem .75rem;
  border-radius: 22px; background: var(--white); border: 2px solid var(--grape); box-shadow: 0 8px 0 var(--grape);
  rotate: -3deg; animation: bob 5s ease-in-out infinite;
}
.wc-label { font-weight: 800; font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; color: var(--grape-soft); margin-bottom: .45rem; }
.wc-flip { display: block; width: 100%; height: 108px; perspective: 700px; border-radius: 16px; }
.wc-inner { position: relative; display: block; width: 100%; height: 100%; transform-style: preserve-3d; transition: transform .7s var(--bounce); }
.word-card.is-flipped .wc-inner { transform: rotateY(180deg); }
.wc-face {
  position: absolute; inset: 0; display: grid; place-items: center; align-content: center; gap: .05rem; border-radius: 16px;
  background: var(--butter); -webkit-backface-visibility: hidden; backface-visibility: hidden;
}
.wc-back { transform: rotateY(180deg); background: var(--teal-soft); }
.wc-face .ico { width: 38px; height: 38px; color: var(--tangerine-deep); }
.wc-back .ico { color: var(--teal); }
.wc-face b { font-family: var(--display); font-weight: 600; font-size: 1.55rem; line-height: 1.1; }
.wc-face small { font-size: .68rem; font-weight: 800; color: var(--grape-soft); }
.wc-actions { display: flex; align-items: center; gap: .4rem; margin-top: .55rem; }
.wc-speak { display: grid; place-items: center; width: 40px; height: 40px; flex: none; border-radius: 50%; background: var(--sun); color: var(--grape); transition: transform .3s var(--bounce); }
.wc-speak:hover { transform: scale(1.1) rotate(-6deg); }
.wc-speak .ico { width: 22px; height: 22px; }
.wc-next { flex: 1; min-height: 40px; padding: 0 .6rem; border-radius: 999px; background: var(--butter); font-weight: 800; font-size: .78rem; }
.wc-next:hover { background: var(--teal-soft); }

/* Seats per group */
.seats { display: flex; gap: .4rem; margin-top: .55rem; }
.seat { width: 26px; height: 24px; border-radius: 10px 10px 6px 6px; position: relative; }
.seat::after { content: ""; position: absolute; left: 3px; right: 3px; bottom: -6px; height: 5px; border-radius: 3px; background: inherit; }
.seat.taken { background: rgba(46, 34, 87, .22); }
.seat.open { background: var(--tangerine); animation: seatPulse 1.8s ease-in-out infinite; }
@keyframes seatPulse { 0% { box-shadow: 0 0 0 0 rgba(255, 138, 61, .55); } 70% { box-shadow: 0 0 0 10px rgba(255, 138, 61, 0); } 100% { box-shadow: 0 0 0 0 rgba(255, 138, 61, 0); } }

/* Age ruler in the estimator */
.age-ruler { margin: .5rem 0 .3rem; }
.ruler-bar { position: relative; display: flex; height: 12px; }
.rseg { height: 100%; }
.rseg-inf { width: 30%; background: var(--berry-soft); border-radius: 99px 0 0 99px; }
.rseg-tod { width: 30%; background: var(--teal-soft); }
.rseg-pre { width: 40%; background: #fff1c4; border-radius: 0 99px 99px 0; }
.ruler-kid {
  position: absolute; top: 50%; translate: -50% -50%; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%;
  background: var(--sun); color: var(--grape); border: 3px solid var(--white); box-shadow: 0 4px 10px rgba(0, 0, 0, .25);
  transition: left .8s var(--bounce);
}
.ruler-kid .ico { width: 18px; height: 18px; fill: var(--grape); stroke: var(--grape); stroke-width: 1.5; }
.ruler-labels { position: relative; height: 1.1rem; margin-top: .45rem; font-size: .72rem; font-weight: 700; color: rgba(255, 253, 248, .7); }
.ruler-labels span { position: absolute; top: 0; translate: -50% 0; white-space: nowrap; }
.ruler-labels span:first-child { translate: 0 0; }
.ruler-labels span:last-child { translate: -100% 0; }

/* A day here: the sun slider */
.day-right { display: grid; gap: 1.6rem; min-width: 0; }
.day-explorer { display: grid; gap: .8rem; padding: 1.2rem; border-radius: 28px; background: var(--butter); border: 2px solid var(--grape); box-shadow: 0 8px 0 var(--grape); }
.dx-card { display: flex; gap: 1rem; align-items: center; padding: 1rem; border-radius: 20px; background: hsl(var(--dx-h, 48) 100% 90%); transition: background-color .6s; min-height: 118px; }
.dx-icon { flex: none; display: grid; place-items: center; width: 72px; height: 72px; border-radius: 46% 54% 60% 40% / 50% 42% 58% 50%; background: var(--white); color: var(--tangerine-deep); }
.dx-icon .ico { width: 42px; height: 42px; }
.dx-card.is-swap .dx-icon { animation: pop .5s var(--bounce); }
.dx-card.is-swap .dx-text { animation: slideIn .45s var(--ease-out); }
@keyframes slideIn { from { translate: 12px 0; opacity: .3; } to { translate: 0 0; opacity: 1; } }
.dx-text { min-width: 0; display: grid; gap: .15rem; }
.dx-time { font-family: var(--display); font-weight: 600; font-size: 1rem; color: var(--teal); }
#dx-title { font-size: 1.45rem; }
#dx-desc { color: var(--grape-soft); }
.dx-label { font-weight: 800; font-size: .92rem; }
#dx-range {
  -webkit-appearance: none; appearance: none; width: 100%; height: 14px; border-radius: 99px; cursor: pointer; margin: .5rem 0;
  background: linear-gradient(90deg, #ffd977 0%, #a8e0f5 30%, #6cc3e8 55%, #ffa868 82%, #6b5bb0 100%);
}
#dx-range::-webkit-slider-thumb {
  -webkit-appearance: none; width: 42px; height: 42px; border-radius: 50%; cursor: grab;
  background: radial-gradient(circle, #fff6c2 0 28%, var(--sun) 30% 62%, #ffb020 64%); border: 3px solid var(--grape); box-shadow: 0 4px 12px rgba(46, 34, 87, .35);
}
#dx-range::-moz-range-thumb { width: 36px; height: 36px; border-radius: 50%; cursor: grab; background: radial-gradient(circle, #fff6c2 0 28%, var(--sun) 30% 62%, #ffb020 64%); border: 3px solid var(--grape); }
#dx-range:focus-visible { outline: 3px solid var(--teal); outline-offset: 6px; }
.dx-ends { display: flex; justify-content: space-between; align-items: center; gap: .5rem; font-size: .8rem; font-weight: 800; color: var(--grape-soft); }
.dx-now { min-height: 40px; padding: .4rem .95rem; border-radius: 999px; background: var(--grape); color: var(--white); font-weight: 800; font-size: .82rem; transition: transform .3s var(--bounce); }
.dx-now:hover { transform: scale(1.05); }
.dx-live { font-weight: 800; color: var(--teal); }

/* Bilingual flashcards */
.fcards { display: grid; grid-template-columns: repeat(2, 1fr); gap: .9rem; }
.fcard { display: block; width: 100%; aspect-ratio: 1 / 1.02; perspective: 800px; border-radius: 24px; }
.fc-in { position: relative; display: block; width: 100%; height: 100%; transform-style: preserve-3d; transition: transform .7s var(--bounce); }
.fcard[aria-pressed="true"] .fc-in { transform: rotateY(180deg); }
.fcard[aria-pressed="false"]:hover .fc-in { transform: translateY(-4px) rotate(-1.5deg); }
.fc-face {
  position: absolute; inset: 0; display: grid; place-items: center; align-content: center; gap: .45rem; border-radius: 24px;
  -webkit-backface-visibility: hidden; backface-visibility: hidden; background: var(--white); border: 2px solid var(--grape); box-shadow: 0 6px 0 var(--grape);
}
.fc-back { transform: rotateY(180deg); background: var(--grape); color: var(--white); }
.fc-face b { font-family: var(--display); font-weight: 600; font-size: clamp(1.4rem, 5vw, 2rem); line-height: 1; }
.fc-face small { font-size: .7rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; opacity: .7; }
.swatch { width: 56px; height: 56px; background: var(--c); border-radius: 46% 54% 60% 40% / 50% 42% 58% 50%; }
.dots { display: flex; gap: 6px; height: 56px; align-items: center; }
.dots i { width: 16px; height: 16px; border-radius: 50%; background: var(--tangerine); }
.fc-back .dots i { background: var(--sun); }
.learn-note { margin-top: 1.2rem; font-size: .85rem; color: var(--grape-soft); }

/* Friendly entrances */
.reveal-on .rv { opacity: 0; transform: translateY(22px) scale(.97); transition: opacity .6s var(--ease-out), transform .8s var(--bounce); }
.reveal-on .rv.is-in { opacity: 1; transform: none; }

/* Confetti on a booked visit */
.confetti { position: fixed; inset: 0; z-index: 90; pointer-events: none; overflow: hidden; }
.confetti i { position: absolute; left: var(--x); top: -16px; width: 10px; height: 14px; border-radius: 3px; background: var(--c); animation: fall var(--t) cubic-bezier(.25, .6, .4, 1) forwards; animation-delay: var(--d); }
@keyframes fall { to { transform: translate3d(var(--dx), 110vh, 0) rotate(var(--r)); } }

/* 8. Responsive */
@media (max-width: 539px) {
  .word-card { width: 142px; padding: .55rem; top: 0; }
  .wc-flip { height: 92px; }
  .wc-face b { font-size: 1.3rem; }
  .wc-face .ico { width: 30px; height: 30px; }
  .wc-speak { width: 34px; height: 34px; }
  .wc-next { font-size: .7rem; padding: 0 .4rem; min-height: 34px; line-height: 1.1; }
}
@media (min-width: 540px) {
  .top-cta { display: inline-flex; }
}
@media (min-width: 720px) {
  .spots { grid-template-columns: repeat(3, 1fr); }
  .spot { grid-template-columns: 1fr; grid-template-rows: none; justify-items: start; padding: 1.5rem; }
  .spot-icon { grid-row: auto; margin-bottom: .6rem; }
  .fcards { grid-template-columns: repeat(4, 1fr); }
  .estimator { grid-template-columns: 1.1fr .9fr; }
  .est-inputs { padding: 2rem; }
  .est-result { padding: 2rem; }
  .why { grid-template-columns: 1fr 1fr; }
  .visit-form { grid-template-columns: 1fr 1fr; padding: 1.8rem; }
  .field-wide { grid-column: 1 / -1; }
  .wave { height: 64px; }
}
@media (min-width: 960px) {
  .links { display: flex; }
  .hero { padding-top: 3rem; }
  .hero-inner { grid-template-columns: 1.1fr .9fr; gap: 3rem; }
  .day-wrap { display: grid; grid-template-columns: .95fr 1.05fr; gap: 1.6rem 3rem; align-items: start; padding-block: 1.5rem 3.5rem; }
  .day-top { padding-top: 3.5rem; }
  .day-right { display: contents; }
  .day-wrap .section-head { grid-column: 1; grid-row: 1; margin-bottom: 0; }
  .day-explorer { grid-column: 1; grid-row: 1; position: sticky; top: 96px; }
  .day { grid-column: 2; grid-row: 1; }
  .fcard { aspect-ratio: 1 / .88; }
  .why { grid-template-columns: repeat(4, 1fr); }
  .visit { grid-template-columns: .8fr 1.2fr; gap: 3.5rem; }
  .footer-inner { grid-template-columns: 1fr auto; align-items: end; }
  .mobile-bar { display: none; }
  body { padding-bottom: 0; }
  .section { padding-block: 5.5rem; }
  #dia { padding-block: 0; }
}

/* A day at the house: a "video" drawn live, scrubbable and touchable */
.day-top .section-head { margin-bottom: 1.4rem; }
.ep { border-radius: 30px; overflow: hidden; background: var(--white); border: 3px solid var(--grape); box-shadow: 0 10px 0 var(--grape); }
.ep-stage { position: relative; aspect-ratio: 16 / 9; overflow: hidden; container-type: inline-size; background: #bfe8ff; cursor: pointer; user-select: none; -webkit-user-select: none; -webkit-tap-highlight-color: transparent; }
.ep-canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.ep-clock { position: absolute; left: 2.4cqw; top: 2.4cqw; display: grid; gap: .25em; justify-items: start; pointer-events: none; }
.ep-time { padding: .2em .65em; border-radius: 999px; background: var(--white); border: 2.5px solid var(--grape); font-family: var(--display); font-weight: 600; font-size: clamp(14px, 3.2cqw, 30px); line-height: 1.1; box-shadow: 0 3px 0 var(--grape); }
.ep-chap { padding: .25em .7em; border-radius: 999px; background: var(--sun); color: var(--grape); font-weight: 900; font-size: clamp(11px, 1.8cqw, 16px); line-height: 1.2; transition: transform .4s var(--bounce); }
.ep-chap.is-swap { animation: pop .5s var(--bounce); }
.ep-toast {
  position: absolute; left: 50%; top: 2.4cqw; display: flex; align-items: center; gap: .5em; padding: .5em .9em .5em .5em; border-radius: 16px; pointer-events: none;
  background: var(--white); border: 2.5px solid var(--grape); font-weight: 800; font-size: clamp(11px, 1.7cqw, 15px); white-space: nowrap;
  opacity: 0; transform: translate(-50%, -150%); transition: opacity .3s, transform .5s var(--bounce);
}
.ep-toast-ic { display: grid; place-items: center; width: 2em; height: 2em; border-radius: 50%; background: var(--teal-soft); }
.ep-toast.is-on { opacity: 1; transform: translate(-50%, 0); }
.ep-hint {
  position: absolute; left: 50%; bottom: 2.6cqw; transform: translateX(-50%); padding: .35em .9em; border-radius: 999px; pointer-events: none; white-space: nowrap;
  background: var(--grape); color: var(--white); font-weight: 800; font-size: clamp(11px, 1.7cqw, 15px); opacity: 0; transition: opacity .3s;
}
.ep[data-state="paused"] .ep-hint { opacity: 1; }
.ep-big { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); display: grid; justify-items: center; gap: .6rem; z-index: 2; }
.ep-big-icon {
  display: grid; place-items: center; width: clamp(64px, 12cqw, 110px); aspect-ratio: 1; border-radius: 46% 54% 58% 42% / 50% 44% 56% 50%;
  background: var(--tangerine); color: var(--grape); border: 3px solid var(--grape); box-shadow: 0 6px 0 var(--grape); animation: wobble 3s ease-in-out infinite;
}
@keyframes wobble { 50% { border-radius: 56% 44% 46% 54% / 44% 56% 44% 56%; transform: rotate(-4deg) scale(1.04); } }
.ep-big-icon svg { width: 44%; height: 44%; fill: currentColor; margin-left: 6%; }
.ep-big-label { padding: .35rem .9rem; border-radius: 999px; background: var(--white); border: 2.5px solid var(--grape); font-weight: 900; font-size: clamp(.8rem, 2cqw, 1.05rem); white-space: nowrap; }
.ep:not([data-state="poster"]) .ep-big { display: none; }
.ep-end {
  position: absolute; inset: 0; z-index: 3; display: grid; place-content: center; justify-items: center; gap: 1rem; padding: 1rem; text-align: center;
  background: rgba(255, 245, 219, .88); opacity: 0; visibility: hidden; transition: opacity .4s, visibility 0s .4s;
}
.ep-end-title { font-family: var(--display); font-weight: 600; font-size: clamp(1.8rem, 6.5cqw, 3.8rem); line-height: 1.05; }
.ep-end-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: .6rem; }
.ep[data-state="ended"] .ep-end { opacity: 1; visibility: visible; transition: opacity .4s; }
.ep-bar { display: flex; align-items: center; gap: .9rem; padding: .6rem 1rem; border-top: 3px solid var(--grape); background: var(--butter); }
.ep-btn { display: grid; place-items: center; width: 48px; height: 48px; flex: none; border-radius: 50%; background: var(--tangerine); color: var(--grape); border: 2.5px solid var(--grape); box-shadow: 0 3px 0 var(--grape); transition: transform .3s var(--bounce); }
.ep-btn:hover { transform: scale(1.08); }
.ep-btn svg { width: 22px; height: 22px; fill: currentColor; }
.ep-btn .i-play { margin-left: 3px; }
.ep-btn .i-pause, .ep[data-state="playing"] .ep-btn .i-play { display: none; }
.ep[data-state="playing"] .ep-btn .i-pause { display: block; }
.ep-track { position: relative; flex: 1; min-width: 0; display: flex; align-items: center; }
.ep-track input { -webkit-appearance: none; appearance: none; width: 100%; height: 46px; margin: 0; background: transparent; cursor: pointer; position: relative; z-index: 1; }
.ep-track input:focus-visible { outline: none; }
.ep-track input::-webkit-slider-runnable-track { height: 12px; border-radius: 999px; background: linear-gradient(90deg, var(--sun) var(--p, 0%), var(--white) var(--p, 0%)); border: 2.5px solid var(--grape); }
.ep-track input::-moz-range-track { height: 8px; border-radius: 999px; background: linear-gradient(90deg, var(--sun) var(--p, 0%), var(--white) var(--p, 0%)); border: 2.5px solid var(--grape); }
.ep-track input::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; width: 28px; height: 28px; margin-top: -10px; border-radius: 50%; background: radial-gradient(circle, #fff6c2 0 28%, var(--sun) 30% 62%, #ffb020 64%); border: 2.5px solid var(--grape); }
.ep-track input::-moz-range-thumb { width: 24px; height: 24px; border-radius: 50%; background: radial-gradient(circle, #fff6c2 0 28%, var(--sun) 30% 62%, #ffb020 64%); border: 2.5px solid var(--grape); }
.ep-track input:focus-visible::-webkit-slider-thumb { outline: 3px solid var(--teal); outline-offset: 3px; }
.ep-dots { position: absolute; left: 0; right: 0; top: 50%; pointer-events: none; z-index: 2; }
.ep-dots i { position: absolute; left: calc(100% * var(--at)); width: 6px; height: 6px; margin: -3px 0 0 3px; border-radius: 50%; background: var(--grape); opacity: .55; }
.ep-tc { flex: none; font-family: var(--display); font-weight: 600; font-size: 1.05rem; }
.day li.is-playing time { box-shadow: 0 0 0 3px var(--tangerine); }
@container (max-width: 520px) {
  .ep-chap { display: none; }
  .ep-hint { display: none; }
}

/* Coloring page with bilingual crayons */
.color-play { display: grid; gap: 1.4rem; align-items: center; margin-top: 2.2rem; padding: 1.4rem; border-radius: 28px; background: var(--white); border: 2px solid var(--grape); box-shadow: 0 8px 0 var(--grape); }
.cp-copy { display: grid; gap: .8rem; min-width: 0; }
.cp-copy h3 { font-size: 1.6rem; }
.cp-copy > p { color: var(--grape-soft); }
.crayons { display: flex; flex-wrap: wrap; gap: .5rem; }
.crayon {
  position: relative; width: 42px; height: 58px; border-radius: 10px 10px 6px 6px; background: var(--c); box-shadow: inset 0 -12px 0 rgba(0, 0, 0, .12), 0 3px 0 var(--grape);
  border: 2.5px solid var(--grape); transition: transform .35s var(--bounce);
}
.crayon::before { content: ""; position: absolute; left: 50%; top: -14px; width: 0; height: 0; transform: translateX(-50%); border-left: 9px solid transparent; border-right: 9px solid transparent; border-bottom: 14px solid var(--c); filter: drop-shadow(0 -2px 0 var(--grape)); }
.crayon::after { content: ""; position: absolute; left: 6px; right: 6px; top: 18px; height: 8px; border-radius: 4px; background: rgba(255, 255, 255, .55); }
.crayon:hover { transform: translateY(-4px); }
.crayon.is-on { transform: translateY(-10px) rotate(-6deg); }
.cp-word { font-family: var(--display); font-size: 1.5rem; font-weight: 600; min-height: 2rem; }
.cp-word b { font-weight: 600; color: var(--tangerine-deep); }
.cp-word span { color: var(--teal); }
.cp-word.is-pop { animation: pop .45s var(--bounce); }
.cp-clear { justify-self: start; }
.cp-art { width: 100%; height: auto; border-radius: 20px; background: var(--white); touch-action: manipulation; }
.cp-art path, .cp-art rect, .cp-art circle { stroke: var(--grape); stroke-width: 3.5; stroke-linejoin: round; }
.cp-r { cursor: pointer; transition: fill .3s; }
.cp-r:hover { filter: brightness(.96); }
.cp-r.is-fill { animation: fillpop .45s var(--bounce); transform-box: fill-box; transform-origin: center; }
@keyframes fillpop { 0% { transform: scale(.94); } 100% { transform: none; } }
@media (min-width: 860px) { .color-play { grid-template-columns: .85fr 1.15fr; padding: 2rem; gap: 2.4rem; } }

/* 9. Reduced motion: stop the loops; cards still flip, without the bounce */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .blob, .open-badge, .logo-sun, .word-card, .seat.open, .ep-big-icon, .ep-chap.is-swap, .cp-r.is-fill, .cp-word.is-pop { animation: none; }
  .wc-inner, .fc-in, .ruler-kid { transition-duration: .01s; }
  .reveal-on .rv { opacity: 1; transform: none; }
}
