/* =========================================================
   Know Your Child (know-your-child.html)
   Builds on the tokens and components in style.css.
   ========================================================= */

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

/* ---------- Hero ---------- */
.kyc-hero { position: relative; overflow: hidden; padding: calc(var(--header-h) + clamp(32px, 5vw, 64px)) 0 clamp(56px, 7vw, 96px); }
.kyc-hero::before {
  content: ""; position: absolute; z-index: -1; right: -12vw; top: -18vw; width: 70vw; height: 70vw; border-radius: 50%;
  background: radial-gradient(circle, rgba(199, 216, 207, .8) 0%, rgba(221, 231, 225, .35) 40%, transparent 68%);
}
.kyc-hero-grid { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr); gap: clamp(40px, 6vw, 96px); align-items: center; }
.kyc-title { font-size: clamp(2.9rem, 6.2vw, 5.9rem); line-height: .98; margin: 22px 0 26px; }

/* Rotating dream word: every word sits in the same grid cell, so the line never changes width */
.rot { display: inline-grid; vertical-align: top; overflow: hidden; padding: 0 .12em .14em 0; margin-bottom: -.14em; }
.rot em { grid-area: 1 / 1; white-space: nowrap; opacity: 0; transform: translateY(100%); transition: transform .8s var(--ease), opacity .45s; }
.rot em.is-on { opacity: 1; transform: none; }
.rot em.is-out { opacity: 0; transform: translateY(-100%); }

/* Form */
.kyc-form {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; max-width: 580px; margin-top: 34px; padding: 10px;
  background: var(--paper); border: 1px solid var(--line); border-radius: 26px; box-shadow: var(--shadow);
}
.kyc-field { display: grid; gap: 2px; padding: 12px 18px 10px; border-radius: 18px; background: var(--ivory); border: 1px solid transparent; cursor: text; transition: border-color .3s, background-color .3s; }
.kyc-field:focus-within { border-color: var(--teal); background: var(--paper); }
.kyc-field.is-invalid { border-color: var(--peach-deep); }
.kyc-field > span { font-size: .72rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.kyc-field i { font-style: normal; font-weight: 600; letter-spacing: .02em; text-transform: none; }
.kyc-field input {
  width: 100%; min-width: 0; min-height: 32px; margin: 0; padding: 2px 0; border: 0; border-radius: 0; background: transparent;
  font: 600 1.08rem/1.3 var(--sans); color: var(--ink); outline: none; text-align: left;
}
.kyc-field input::placeholder { color: var(--muted); opacity: .6; font-weight: 500; }
.kyc-field input::-webkit-calendar-picker-indicator { cursor: pointer; opacity: .6; }
.kyc-field input::-webkit-date-and-time-value { text-align: left; }
.kyc-field input:focus-visible { outline: none; }
/* Girl or boy: two pill buttons (radio inputs underneath) */
.kyc-sex { grid-column: 1 / -1; grid-template-columns: 1fr auto; align-items: center; gap: 12px; padding-block: 10px; cursor: default; }
.kyc-pills { display: flex; gap: 8px; }
.kyc-pills label { position: relative; cursor: pointer; }
.kyc-pills input { position: absolute; inset: 0; width: 100%; height: 100%; min-height: 0; padding: 0; opacity: 0; cursor: pointer; }
.kyc-pills span { display: inline-flex; align-items: center; min-height: 42px; padding: 0 24px; border-radius: 999px; border: 1px solid var(--line-strong); background: var(--paper); font-weight: 600; font-size: .98rem; transition: background-color .3s, color .3s, border-color .3s; }
.kyc-pills input:checked + span { background: var(--teal); border-color: var(--teal); color: var(--ivory); }
.kyc-pills input:focus-visible + span { outline: 2px solid var(--teal); outline-offset: 3px; }
.kyc-go { grid-column: 1 / -1; width: 100%; min-height: 56px; font-size: 1rem; }
.kyc-error { grid-column: 1 / -1; padding: 0 10px 4px; color: var(--peach-deep); font-weight: 700; font-size: .92rem; }
.kyc-error:empty { display: none; }
.kyc-private { display: flex; align-items: center; gap: 8px; margin-top: 14px; font-size: .88rem; color: var(--muted); }
.kyc-private .i { width: 16px; height: 16px; color: var(--teal); }

/* Dream arch: one photo at a time, in step with the rotating word (photos: Pexels, free licence) */
.kyc-portrait { width: min(100%, 470px); }
.dream-arch { background: var(--sage); }
.dream-arch .dream-photo { top: 0; height: 100%; object-position: var(--pos, 50% 20%); opacity: 0; transition: opacity .9s var(--ease); }
.dream-arch .dream-photo.is-on { opacity: 1; z-index: 2; }
.dream-arch .dream-photo.is-out { opacity: 1; z-index: 1; transition: none; } /* the last photo stays underneath while the next fades in */
.dream-card { left: -44px; bottom: 11%; max-width: 270px; }
.dream-card .ico { background: var(--peach-soft); color: var(--peach-deep); }
.dream-card .i { width: 20px; height: 20px; }

/* ---------- Before a date is entered ---------- */
.peek-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.peek {
  display: flex; flex-direction: column; gap: 10px; min-height: 270px; padding: clamp(22px, 2.4vw, 28px);
  border-radius: var(--r); background: var(--paper); border: 1px solid var(--line); transition: transform .5s var(--ease), box-shadow .5s;
}
.peek:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.peek-top { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: auto; padding-bottom: 28px; }
.peek .n { font-family: var(--serif); font-style: italic; color: var(--peach-deep); font-size: 1.15rem; }
.peek .svc-icon { width: 50px; height: 50px; }
.peek .svc-icon .i { width: 22px; height: 22px; }
.peek h3 { font-family: var(--serif); font-size: clamp(1.6rem, 2vw, 1.85rem); line-height: 1.08; }
.peek p { color: var(--muted); font-size: .95rem; }

/* ---------- Results ---------- */
[data-after][hidden], [data-before][hidden], [data-food][hidden] { display: none; }
.kyc-results { padding-top: clamp(40px, 5vw, 72px); }
.res-head { display: flex; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; gap: 20px 32px; margin-bottom: clamp(28px, 3.4vw, 44px); }
.res-head h2 { margin-top: 18px; }
#res-title:focus { outline: none; }
.k-label { display: block; font-size: var(--label); font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }

/* Age: three big number tiles, with the birth day and next birthday beside them */
.age-grid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); grid-template-rows: 1fr 1fr; gap: 16px; }
.age-card { grid-row: 1 / -1; display: flex; flex-direction: column; padding: clamp(22px, 3vw, 40px); border-radius: var(--r-lg); background: var(--paper); border: 1px solid var(--line); box-shadow: var(--shadow); }
.age-tiles { display: flex; gap: clamp(8px, 1.2vw, 16px); margin: 18px 0 22px; }
.age-tiles span {
  flex: 1 1 0; min-width: 0; display: grid; justify-items: center; gap: 6px; padding: clamp(18px, 2.6vw, 34px) 8px clamp(14px, 2vw, 24px);
  border-radius: var(--r); background: var(--sage); color: var(--teal-900);
  font-size: clamp(.72rem, 1vw, .86rem); font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
}
.age-tiles b { font-family: var(--serif); font-weight: 400; font-size: clamp(3.4rem, 8vw, 6.6rem); line-height: .9; letter-spacing: -.02em; text-transform: none; color: var(--teal); font-variant-numeric: lining-nums; }
.age-stage { display: flex; align-items: center; gap: 10px; margin-top: auto; font-weight: 600; color: var(--ink-2); }
.age-stage .i { width: 20px; height: 20px; color: var(--teal); }
.fact-card { position: relative; display: flex; flex-direction: column; justify-content: center; gap: 2px; padding: clamp(20px, 2.4vw, 30px); padding-right: 84px; border-radius: var(--r-lg); background: var(--paper); border: 1px solid var(--line); }
.fact-card .ico { position: absolute; top: clamp(18px, 2.2vw, 26px); right: clamp(18px, 2.2vw, 26px); width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: var(--peach-soft); color: var(--peach-deep); }
.fact-card .ico .i { width: 20px; height: 20px; }
.fact-card strong { font-family: var(--serif); font-weight: 400; font-style: italic; font-size: clamp(2.3rem, 3.6vw, 3.2rem); line-height: 1.05; color: var(--peach-deep); margin-top: 6px; }
.fact-card > span:last-child { color: var(--ink-2); font-weight: 600; }

/* Live count */
.live { margin-top: 16px; padding: clamp(20px, 2.6vw, 34px) clamp(22px, 3vw, 40px); border-radius: var(--r-lg); background: var(--teal-900); color: var(--ivory); }
.live-head { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 12px; font-size: .92rem; color: rgba(247, 243, 236, .68); }
.live-head strong { font-size: var(--label); letter-spacing: .16em; text-transform: uppercase; color: var(--peach); }
.live-dot { position: relative; width: 8px; height: 8px; border-radius: 50%; background: var(--peach); flex: none; }
.live-dot::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 2px solid var(--peach); animation: pulse 2s var(--ease) infinite; }
.live-grid { display: grid; grid-template-columns: repeat(6, auto); justify-content: space-between; gap: 18px 24px; margin-top: 18px; }
.live-grid li { min-width: 0; }
.live-grid b { display: block; font: 700 clamp(1.35rem, 2.3vw, 2rem)/1.15 var(--sans); font-variant-numeric: tabular-nums; letter-spacing: -.01em; white-space: nowrap; }
.live-grid li > span { display: block; margin-top: 4px; font-size: .74rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: rgba(247, 243, 236, .58); }
.live-grid .is-sec b { color: var(--peach); }
.live-grid .d { display: inline-block; }
.live-grid .d.roll { animation: kyc-roll .45s var(--ease); }
@keyframes kyc-roll { from { opacity: 0; transform: translateY(-55%); } }

/* Stage */
.stage-now { display: grid; grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr); gap: clamp(32px, 6vw, 88px); align-items: center; margin-top: clamp(56px, 7vw, 96px); }
.stage-photo { aspect-ratio: 4 / 4.6; }
.stage-photo img { top: 0; height: 100%; object-position: var(--pos, 50% 35%); }
.stage-now h3.display { font-size: clamp(2.3rem, 4.4vw, 3.8rem); margin: 18px 0; }
.stage-track { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; margin-top: 36px; }
.stage-track li { position: relative; min-width: 0; padding-top: 20px; }
.stage-track .bar { position: absolute; top: 0; left: 0; right: 0; height: 6px; border-radius: 6px; background: var(--line); overflow: hidden; }
.stage-track .bar i { position: absolute; inset: 0; background: var(--teal); transform-origin: 0 50%; transform: scaleX(var(--fill, 0)); }
.stage-track strong { display: block; font-size: .92rem; font-weight: 700; color: var(--muted); }
.stage-track small { display: block; font-size: .78rem; color: var(--muted); }
.stage-track .is-now strong { color: var(--teal); }
.stage-track .is-now small { color: var(--ink-2); }
.stage-track .pin {
  position: absolute; top: -9px; left: calc(var(--at, 0) * 100%); width: 24px; height: 24px; margin-left: -12px;
  border-radius: 50%; background: var(--peach-deep); border: 5px solid var(--ivory); box-shadow: 0 0 0 1px rgba(179, 89, 63, .35);
}
.stage-next { margin-top: 26px; color: var(--ink-2); }
.stage-notes { margin-top: 26px; }

/* ---------- Vaccines ---------- */
.vax-summary {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); border-radius: var(--r-lg); overflow: hidden;
  background: var(--paper); border: 1px solid var(--line); box-shadow: var(--shadow);
}
.vs-count, .vs-next { padding: clamp(24px, 3.4vw, 44px); }
.vs-count b { display: block; font-family: var(--serif); font-weight: 400; font-size: clamp(3rem, 5.4vw, 4.6rem); line-height: 1; color: var(--teal); font-variant-numeric: lining-nums; }
.vs-count b span { font-size: .5em; color: var(--muted); }
.vs-count p { margin-top: 10px; color: var(--ink-2); max-width: 32ch; }
.vs-bar { height: 8px; margin-top: 22px; border-radius: 8px; background: var(--sage); overflow: hidden; }
.vs-bar i { display: block; height: 100%; width: calc(var(--p, 0) * 100%); border-radius: inherit; background: var(--teal); }
.vs-next { display: flex; flex-direction: column; gap: 6px; background: var(--teal-900); color: var(--ivory); }
.vs-next .k-label { color: var(--peach); }
.vs-next strong { font-family: var(--serif); font-weight: 400; font-size: clamp(2rem, 3.2vw, 2.7rem); line-height: 1.05; margin-top: 4px; }
.vs-next p { color: rgba(247, 243, 236, .72); }
.vs-next .vx-chips { margin-top: 14px; }
.vs-next .vx { background: rgba(247, 243, 236, .08); border-color: rgba(247, 243, 236, .25); color: var(--ivory); }
.vs-next .vx i { color: rgba(247, 243, 236, .6); }
.vs-next .vx:hover, .vs-next .vx.is-tip { background: var(--ivory); color: var(--teal-900); border-color: var(--ivory); }
.vs-next .vx:hover i, .vs-next .vx.is-tip i { color: var(--muted); }

.vax-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin-top: 20px; align-items: start; }
.vax-col { padding: clamp(22px, 3vw, 36px); border-radius: var(--r-lg); background: var(--paper); border: 1px solid var(--line); }
.vax-col h3 { display: flex; align-items: center; gap: 12px; padding-bottom: 18px; border-bottom: 1px solid var(--line); font-family: var(--serif); font-size: clamp(1.55rem, 2.2vw, 1.95rem); line-height: 1.1; }
.vax-col h3 .ico { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; flex: none; background: var(--sage); color: var(--teal); }
.vax-col h3 .ico .i { width: 18px; height: 18px; stroke-width: 2; }
.vax-col.is-due h3 .ico { background: var(--peach-soft); color: var(--peach-deep); }
.vax-col h3 small { margin-left: auto; padding: 4px 11px; border-radius: 999px; background: var(--ivory); font: 700 .8rem/1.3 var(--sans); color: var(--muted); }
.vx-row { display: grid; grid-template-columns: 124px minmax(0, 1fr); gap: 10px 18px; padding: 18px 0; border-bottom: 1px dashed var(--line-strong); }
.vx-row:last-child { border-bottom: 0; padding-bottom: 0; }
.vx-when strong { display: block; font-family: var(--serif); font-weight: 400; font-size: 1.32rem; line-height: 1.15; }
.vx-when small { display: block; margin-top: 2px; font-size: .8rem; color: var(--muted); }
.vx-row.is-now .vx-when small { color: var(--peach-deep); font-weight: 700; }
.vx-chips { display: flex; flex-wrap: wrap; align-content: flex-start; gap: 8px; }
.vx {
  display: inline-flex; align-items: center; gap: 6px; padding: 7px 13px; border-radius: 999px; cursor: help;
  border: 1px solid var(--line-strong); background: var(--paper); color: var(--teal-900); font: 600 .88rem/1.2 var(--sans);
  transition: background-color .3s, color .3s, border-color .3s;
}
.vx i { font-style: normal; font-size: .74rem; color: var(--muted); transition: color .3s; }
.vx:hover, .vx.is-tip { background: var(--teal-900); border-color: var(--teal-900); color: var(--ivory); }
.vx:hover i, .vx.is-tip i { color: rgba(247, 243, 236, .7); }
.is-done .vx { background: var(--sage); border-color: transparent; }
.is-done .vx::before {
  content: ""; width: 14px; height: 14px; border-radius: 50%; flex: none;
  background: var(--teal) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23F7F3EC' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12 4 4 8-8'/%3E%3C/svg%3E") center / 9px no-repeat;
}
.vx-row.is-now .vx { background: var(--peach-soft); border-color: transparent; }
.is-done .vx:hover, .is-done .vx.is-tip, .vx-row.is-now .vx:hover, .vx-row.is-now .vx.is-tip { background: var(--teal-900); color: var(--ivory); }
.vx-empty { padding-top: 20px; color: var(--muted); }
.kyc-vax .notice { margin-top: 20px; align-items: center; }
.kyc-vax .notice a { font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }

.vx-tip {
  position: fixed; left: 0; top: 0; z-index: 60; width: max-content; max-width: min(290px, calc(100vw - 24px)); padding: 12px 15px;
  border-radius: 14px; border: 1px solid rgba(247, 243, 236, .16); background: var(--teal-950); color: rgba(247, 243, 236, .84);
  font-size: .86rem; line-height: 1.45; box-shadow: var(--shadow-lg); pointer-events: none;
}
.vx-tip strong { display: block; margin-bottom: 3px; color: var(--ivory); font-size: .92rem; }
.vx-tip::after { content: ""; position: absolute; left: var(--ax, 50%); width: 12px; height: 12px; background: inherit; transform: translateX(-50%) rotate(45deg); }
.vx-tip[data-place="above"]::after { bottom: -5px; }
.vx-tip[data-place="below"]::after { top: -5px; }

/* ---------- Food, drinks and labels ---------- */
.food-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.food { display: flex; flex-direction: column; padding: 12px 12px 26px; border-radius: var(--r-lg); background: var(--paper); border: 1px solid var(--line); }
.food .frame { aspect-ratio: 16 / 10; border-radius: 18px; margin-bottom: 20px; }
.food .frame img { top: 0; height: 100%; }
.food small { padding: 0 14px; font-size: var(--label); font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--peach-deep); }
.food h3 { padding: 0 14px; margin: 8px 0 10px; font-family: var(--serif); font-size: clamp(1.55rem, 2vw, 1.8rem); line-height: 1.1; }
.food p { padding: 0 14px; color: var(--ink-2); font-size: .96rem; }
.food.is-good { background: var(--sage); border-color: transparent; }
.food.is-good small { color: var(--teal); }

.label-guide { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(28px, 5vw, 72px); align-items: center; margin-top: clamp(40px, 5vw, 72px); padding: clamp(22px, 4vw, 56px); border-radius: var(--r-lg); background: var(--sand); }
.pack-label { padding: 22px 22px 18px; border: 2px solid var(--ink); border-radius: 10px; background: var(--paper); font-size: .92rem; transform: rotate(-1.5deg); box-shadow: var(--shadow); }
.pl-title { padding-bottom: 8px; border-bottom: 4px solid var(--ink); font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.pl-title span { display: block; font-weight: 600; font-size: .8rem; letter-spacing: 0; text-transform: none; color: var(--muted); }
.pack-label li { position: relative; display: flex; justify-content: space-between; gap: 12px; padding: 7px 8px; border-bottom: 1px solid var(--line-strong); }
.pack-label li.is-hot { margin: 0 -8px; padding-inline: 16px; background: var(--peach-soft); border-bottom-color: transparent; font-weight: 700; }
.pack-label li.is-call { margin: 0 -8px; padding-inline: 16px; justify-content: flex-end; background: var(--peach-deep); color: var(--ivory); border-bottom: 0; border-radius: 0 0 8px 8px; font-size: .82rem; font-weight: 700; }
.pl-ing { margin-top: 12px; font-size: .84rem; line-height: 1.5; }
.pack-label mark { padding: 0 4px; border-radius: 4px; background: var(--gold); color: inherit; }
.pl-warn { margin-top: 10px; padding: 8px 10px; border: 1.5px solid var(--peach-deep); border-radius: 6px; color: var(--peach-deep); font-size: .78rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.pl-note { margin-top: 12px; font-size: .76rem; color: var(--muted); text-align: center; }
.label-guide h3.display { font-size: clamp(1.9rem, 3vw, 2.6rem); }
.label-steps { margin-top: 22px; counter-reset: step; }
.label-steps li { position: relative; padding: 14px 0 14px 46px; border-top: 1px solid var(--line-strong); color: var(--ink-2); counter-increment: step; }
.label-steps li::before { content: counter(step); position: absolute; left: 0; top: 13px; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--teal); color: var(--ivory); font-weight: 700; font-size: .85rem; }
.label-steps strong { color: var(--ink); }
.food-source { margin-top: 24px; max-width: 78ch; }

/* ---------- Pop-up: notes for this stage ---------- */
.pop { position: fixed; inset: 0; z-index: 120; display: grid; place-items: center; padding: 16px; overflow-y: auto; overscroll-behavior: contain; }
.pop[hidden] { display: none; }
.pop-back { position: fixed; inset: 0; background: rgba(7, 38, 36, .82); animation: pop-fade .35s both; }
.pop-box { position: relative; width: min(100%, 380px); display: grid; gap: 14px; outline: none; animation: pop-in .5s var(--ease) both; }
.pop.is-closing .pop-back { animation: pop-fade .25s reverse both; }
.pop.is-closing .pop-box { animation: pop-in .25s reverse both; }
@keyframes pop-fade { from { opacity: 0; } }
@keyframes pop-in { from { opacity: 0; transform: translateY(28px) scale(.96); } }
.pop-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 44px; color: var(--ivory); }
.pop-title { font-family: var(--serif); font-size: 1.5rem; line-height: 1.1; }
.pop-title em { color: var(--peach); }
.pop-x { width: 44px; height: 44px; flex: none; border-radius: 50%; border: 0; display: grid; place-items: center; cursor: pointer; background: var(--ivory); color: var(--teal-900); transition: transform .35s var(--ease), opacity .35s, background-color .3s; }
.pop-x:hover { background: var(--peach); }
.pop-x .i { width: 18px; height: 18px; stroke-width: 2.2; }
.pop-x[hidden] { display: grid; opacity: 0; transform: scale(.5); pointer-events: none; } /* waits a few seconds on the automatic pop-up */
.pop .deck-nav { justify-content: center; }
.pop .deck-btn { background: var(--ivory); border-color: transparent; }
.pop .deck-count { color: rgba(247, 243, 236, .8); }

.deck-card {
  --bg: var(--teal-900); --fg: var(--ivory); --soft: rgba(247, 243, 236, .78); --accent: var(--peach); --art: rgba(247, 243, 236, .08);
  position: relative; min-height: 470px; min-height: min(560px, calc(100svh - 190px)); border-radius: 28px; overflow: hidden; cursor: pointer;
  background: var(--bg); color: var(--fg); box-shadow: var(--shadow-lg); border: 1px solid rgba(247, 243, 236, .14);
  user-select: none; -webkit-user-select: none; touch-action: pan-y;
}
.deck-card[data-theme="sage"] { --bg: #DDE7E1; --fg: var(--ink); --soft: var(--ink-2); --accent: var(--teal); --art: rgba(15, 76, 74, .08); }
.deck-card[data-theme="peach"] { --bg: var(--peach-soft); --fg: var(--ink); --soft: var(--ink-2); --accent: var(--peach-deep); --art: rgba(179, 89, 63, .1); }
.deck-card[data-theme="paper"] { --bg: var(--paper); --fg: var(--ink); --soft: var(--ink-2); --accent: var(--teal); --art: rgba(15, 76, 74, .07); }
.deck-card[data-theme="gold"] { --bg: #F2E6CB; --fg: var(--ink); --soft: var(--ink-2); --accent: var(--gold-deep); --art: rgba(151, 114, 42, .12); }
.deck-in { min-height: inherit; display: flex; flex-direction: column; padding: 16px 24px 24px; } /* the card grows if a note runs long */
.deck-in.from-next { animation: deck-next .5s var(--ease) both; }
.deck-in.from-prev { animation: deck-prev .5s var(--ease) both; }
@keyframes deck-next { from { opacity: 0; transform: translateX(32px); } }
@keyframes deck-prev { from { opacity: 0; transform: translateX(-32px); } }
.deck-bars { display: flex; gap: 4px; }
.deck-bars span { flex: 1; height: 3px; border-radius: 3px; background: currentColor; opacity: .18; }
.deck-bars span.is-seen { opacity: .85; }
.deck-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 14px; font-size: .8rem; font-weight: 700; }
.deck-who { display: flex; align-items: center; gap: 8px; }
.deck-who .mark { width: 30px; height: 30px; padding: 4px; border-radius: 50%; background: var(--paper); color: var(--teal); }
.deck-tag { padding: 5px 11px; border-radius: 999px; border: 1px solid currentColor; font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; opacity: .8; }
.deck-mid { flex: 1 0 auto; display: grid; place-items: center; padding: 18px 0; }
.deck-art { position: relative; width: 46%; width: min(46%, 19vh); border-radius: 50%; display: grid; place-items: center; background: var(--art); color: var(--accent); }
.deck-art::before { content: ""; display: block; padding-top: 100%; } /* keeps it round without needing aspect-ratio */
.deck-art::after { content: ""; position: absolute; inset: -11%; border-radius: 50%; border: 1px dashed currentColor; opacity: .4; }
.deck-art .i { position: absolute; left: 28%; top: 28%; width: 44%; height: 44%; stroke-width: 1.3; }
.deck-art img { position: absolute; inset: 0; width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.deck-art.has-photo { width: 58%; width: min(58%, 24vh); }
.deck-big { font-family: var(--serif); font-size: clamp(2.2rem, 4.4vw, 2.8rem); line-height: 1; color: var(--accent); text-wrap: balance; }
.deck-text { margin-top: 10px; font-size: .96rem; line-height: 1.55; color: var(--soft); }
.deck-foot { margin-top: 14px; font-size: .7rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; opacity: .55; }
.deck-nav { display: flex; align-items: center; gap: 18px; }
.deck-btn {
  width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; cursor: pointer; border: 1px solid var(--line-strong);
  background: var(--paper); color: var(--teal-900); transition: background-color .35s, color .35s, transform .35s var(--ease);
}
.deck-btn:hover { background: var(--peach); }
.deck-btn:active { transform: scale(.94); }
.deck-btn:disabled { opacity: .35; cursor: default; background: var(--ivory); }
.deck-btn.is-done { background: var(--peach); } /* on the last note the arrow becomes a tick that closes the pop-up */
.deck-btn .i { width: 20px; height: 20px; }
.deck-count { min-width: 4.5ch; text-align: center; font-weight: 700; font-variant-numeric: tabular-nums; color: var(--muted); }

/* ---------- Dream big ---------- */
.kyc-dream { position: relative; overflow: hidden; background: var(--sand); }
.kyc-dream::before { content: ""; position: absolute; left: 50%; bottom: -30%; width: min(1100px, 140vw); aspect-ratio: 1; transform: translateX(-50%); border-radius: 50%; background: radial-gradient(circle, rgba(221, 184, 112, .34) 0%, rgba(221, 184, 112, 0) 62%); pointer-events: none; }
.kyc-dream .container { position: relative; }
.kyc-dream .section-head { margin-bottom: 0; }
.kyc-dream h2.display { max-width: 20ch; }
.parade { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: clamp(10px, 1.6vw, 22px); max-width: 1080px; margin: clamp(32px, 5vw, 56px) auto 0; }
.parade li { display: flex; flex-direction: column; align-items: center; gap: 12px; transition: transform .5s var(--ease); }
.parade li:hover { transform: translateY(-10px); }
.parade li:nth-child(even) { margin-top: clamp(14px, 2.4vw, 32px); } /* a gentle up-and-down row */
.parade-photo { position: relative; width: 100%; padding-top: 140%; overflow: hidden; border-radius: 999px 999px var(--r) var(--r); background: var(--sage); box-shadow: var(--shadow); }
.parade-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: var(--pos, 50% 20%); }
.parade span { font-family: var(--serif); font-style: italic; font-size: clamp(1.05rem, 1.5vw, 1.35rem); color: var(--teal-900); transition: color .3s; }
.parade li:hover span { color: var(--peach-deep); }
.dream-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; margin-top: clamp(36px, 5vw, 56px); }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .peek-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .peek { min-height: 230px; }
  .dream-card { left: -16px; }
  .live-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 960px) {
  .kyc-hero-grid, .stage-now, .label-guide { grid-template-columns: 1fr; }
  .kyc-portrait { justify-self: center; width: min(100%, 420px); margin-top: 8px; }
  .age-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: auto; }
  .age-card { grid-row: auto; grid-column: 1 / -1; }
  .stage-photo { max-width: 560px; aspect-ratio: 16 / 11; }
  .vax-summary, .vax-cols { grid-template-columns: 1fr; }
  .food-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pack-label { max-width: 380px; margin-inline: auto; }
}

@media (max-width: 760px) {
  .dream-card { display: none; }
  .parade { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px 12px; }
  .parade li:nth-child(even) { margin-top: 0; }
}

@media (max-width: 600px) {
  .kyc-form, .peek-grid, .age-grid, .food-grid { grid-template-columns: 1fr; }
  .peek { min-height: 0; }
  .peek-top { padding-bottom: 18px; }
  .live-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stage-track { gap: 4px; }
  .stage-track strong { font-size: .76rem; }
  .stage-track small { display: none; }
  .stage-track .is-now small { display: block; font-size: .72rem; }
  .vx-row { grid-template-columns: 1fr; gap: 10px; }
  .res-head .btn, .stage-notes { width: 100%; }
}
