/* Kivolo onboarding v4 — harmonized claymorphism (Day 16)
   Layout swap (form left / hero right), softened tile shadows,
   translucent inner surfaces (chips/ages/input no longer read as
   loud white blocks on a coloured tile), compact 48px text-span
   logo, Kivvi inline SVG star anchored bottom-right of the hero. */

:root {
  --coral: #FF6B6B;  --coral-deep: #E25555;
  --orange: #FF9F1C; --yellow: #FFE66D;
  --green: #A8E6CF;  --teal: #4ECDC4;  --teal-deep: #38A79F;
  --purple: #B19CD9; --blue: #5B8EFF;
  --navy: #1E2A4A;   --navy-soft: #2E3A5E;
  --gray: #6B7486;   --gray-soft: #8A94A6;

  --clay-radius: 28px;
  --clay-radius-sm: 18px;
  --clay-radius-xs: 14px;

  /* Softer tile shadow — less white highlight, gentler outer drop */
  --clay-shadow:
    0 2px 4px rgba(30,42,74,0.05),
    0 14px 28px rgba(30,42,74,0.08),
    inset 0 -4px 0 rgba(30,42,74,0.05),
    inset 0 2px 0 rgba(255,255,255,0.45);

  /* Translucent inner surface — child of a coloured tile shows through */
  --inner-bg: rgba(255,255,255,0.55);
  --inner-bg-hover: rgba(255,255,255,0.75);

  --clay-shadow-inner:
    0 2px 4px rgba(30,42,74,0.05),
    0 6px 12px rgba(30,42,74,0.06),
    inset 0 -3px 0 rgba(30,42,74,0.04),
    inset 0 1px 0 rgba(255,255,255,0.55);
  --clay-shadow-inner-hover:
    0 3px 6px rgba(30,42,74,0.07),
    0 10px 18px rgba(30,42,74,0.10),
    inset 0 -3px 0 rgba(30,42,74,0.04),
    inset 0 1px 0 rgba(255,255,255,0.55);
  --clay-shadow-inner-pressed:
    0 1px 2px rgba(30,42,74,0.06),
    inset 0 3px 6px rgba(30,42,74,0.10);
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body.ob-page {
  min-height: 100vh;
  min-height: 100dvh;
  font-family: 'Nunito', sans-serif;
  color: var(--navy);
  background:
    radial-gradient(ellipse 60% 50% at 20% 20%, rgba(255,230,109,0.40), transparent 55%),
    radial-gradient(ellipse 50% 40% at 85% 8%,  rgba(255,159,28,0.28), transparent 55%),
    radial-gradient(ellipse 70% 55% at 85% 90%, rgba(168,230,207,0.48), transparent 55%),
    radial-gradient(ellipse 55% 45% at 10% 92%, rgba(177,156,217,0.32), transparent 55%),
    linear-gradient(135deg, #FFF3E0 0%, #FFE8DA 100%);
  background-attachment: fixed;
  display: flex; flex-direction: column; align-items: center;
  padding: 22px 18px 26px;
  overflow-x: hidden;
}

/* Hidden legacy blob decor (kept for backward-compat but invisible) */
.ob-bg-decor { display: none; }

/* ═══ KIVOLO LOGO (real asset) ═══════════════════════════════ */
.ob-logo {
  display: inline-flex; align-items: center;
  margin-bottom: 18px;
  user-select: none; text-decoration: none;
  transition: transform .2s ease;
}
.ob-logo:hover { transform: scale(1.03); }
.ob-logo-img {
  height: 64px; width: auto; display: block;
  filter:
    drop-shadow(0 4px 10px rgba(30,42,74,0.18))
    drop-shadow(0 2px 0 rgba(30,42,74,0.08));
}

/* ═══ STACK wrapper (compat) ══════════════════════════════════ */
.ob-stack {
  display: flex; flex-direction: column; align-items: center;
  width: 100%;
}

/* ═══ BENTO GRID — layout swap (form left / hero right) ══════ */
.ob-bento, .bento {
  width: 100%;
  max-width: 1100px;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-template-rows: auto auto auto;
  gap: 16px;
}

.tile-name,      .ob-tile[data-tile="name"]      { grid-column: 1 / span 7;  grid-row: 1; }
.tile-ages,      .ob-tile[data-tile="ages"]      { grid-column: 1 / span 7;  grid-row: 2; }
.tile-interests, .ob-tile[data-tile="interests"] { grid-column: 1 / span 7;  grid-row: 3; }
.tile-hero,      .ob-tile[data-tile="hero"]      { grid-column: 8 / span 5;  grid-row: 1 / span 2; overflow: hidden; }
.tile-cta,       .ob-tile[data-tile="cta"]       { grid-column: 8 / span 5;  grid-row: 3; display: flex; flex-direction: column; justify-content: center; gap: 10px; }

/* Paywall tiles — same right column for pricing */
.ob-tile[data-tile="plan-monthly"] { grid-column: 8 / span 5;  grid-row: 1; }
.ob-tile[data-tile="plan-yearly"]  { grid-column: 8 / span 5;  grid-row: 2; }
.ob-tile[data-tile="trust"]        { grid-column: 1 / span 7;  grid-row: 3; }

/* v5.1 — paywall hero sits on the LEFT (cols 1-7) instead of inheriting
   the welcome-layout right-column. Fixes mascot + f6 bullet bleeding onto
   the plan cards on the right. */
body.ob-page--paywall .ob-tile[data-tile="hero"] {
  grid-column: 1 / span 7;
  grid-row: 1 / span 2;
}

@media (max-width: 960px) {
  .ob-bento, .bento { grid-template-columns: 1fr; }
  .tile-name, .tile-ages, .tile-interests, .tile-hero, .tile-cta,
  .ob-tile[data-tile] {
    grid-column: 1 / -1; grid-row: auto;
  }
}

/* ═══ TILE BASE ═══════════════════════════════════════════════ */
.tile, .ob-tile {
  border-radius: var(--clay-radius);
  padding: 22px 24px;
  box-shadow: var(--clay-shadow);
  position: relative;
  min-width: 0;
}
/* v6.3 — strip the UA default <fieldset> border that leaked as a hairline
   ring on top of the tile fill for welcome's <fieldset class="tile ..."/>
   age-group + interests blocks. Other tiles use <section> (no border). */
fieldset.tile, fieldset.ob-tile { border: 0; margin: 0; min-inline-size: 0; }
.tile-name,      .ob-tile[data-tile="name"]         { background: linear-gradient(135deg, #E7F3EF 0%, #D7EBE3 100%); }
.tile-ages,      .ob-tile[data-tile="ages"]         { background: linear-gradient(135deg, #FAF1D4 0%, #F5E7B4 100%); }
.tile-interests, .ob-tile[data-tile="interests"]    { background: linear-gradient(135deg, #EFE7F5 0%, #E3D6EE 100%); }
.tile-hero,      .ob-tile[data-tile="hero"]         { background: linear-gradient(135deg, #FDEBD2 0%, #FBDCB4 100%); }
.tile-cta,       .ob-tile[data-tile="cta"]          { background: linear-gradient(135deg, #FCE2E2 0%, #FACFCE 100%); }
.ob-tile[data-tile="plan-monthly"] { background: linear-gradient(135deg, #FCE2E2 0%, #FACFCE 100%); }
.ob-tile[data-tile="plan-yearly"]  { background: linear-gradient(135deg, #E7F3EF 0%, #D7EBE3 100%); }
.ob-tile[data-tile="trust"]        { background: linear-gradient(135deg, #EFE7F5 0%, #E3D6EE 100%); }

.tile-label {
  font-family: 'Fredoka', sans-serif;
  font-size: 12px; font-weight: 600; letter-spacing: 0.5px;
  color: var(--gray); text-transform: uppercase;
  margin-bottom: 10px;
  display: flex; align-items: center; gap: 8px;
}
.tile-label::before {
  content: ''; width: 10px; height: 3px;
  background: currentColor; opacity: 0.5; border-radius: 2px;
}

/* ═══ HERO tile ═══════════════════════════════════════════════ */
.hero-inner { display: flex; flex-direction: column; gap: 12px; height: 100%; }

.step-badge, .ob-step-badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(255,255,255,0.45);
  color: var(--navy);
  font-family: 'Fredoka', sans-serif;
  font-weight: 600; font-size: 12px;
  padding: 5px 12px;
  border-radius: 20px;
  width: fit-content;
  letter-spacing: 0.5px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.5);
  text-transform: uppercase;
}
.step-badge::before, .ob-step-badge::before { content: '●'; font-size: 7px; color: var(--coral); }

.hero-title, .ob-hero-title {
  font-family: 'Fredoka', sans-serif;
  font-weight: 600; font-size: 26px; line-height: 1.12;
  letter-spacing: -0.3px;
  color: var(--navy);
  margin: 4px 0 0;
}
.hero-title .hl, .ob-hero-title .hl { color: var(--coral); }

.trust { list-style: none; display: flex; flex-direction: column; gap: 7px; padding: 0; margin: 0; }
.trust li {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: 13px; font-weight: 600; color: var(--navy-soft); line-height: 1.4;
}
.trust li::before {
  content: '✓'; flex-shrink: 0;
  width: 18px; height: 18px;
  background: var(--teal); color: #fff;
  border-radius: 50%; display: grid; place-items: center;
  font-size: 10px; font-weight: 900;
  box-shadow: 0 2px 0 rgba(30,42,74,0.12), inset 0 1px 0 rgba(255,255,255,0.35);
  margin-top: 1px;
}

.kivvi-stage, .ob-kivvi-stage {
  position: relative;
  margin-top: auto;
  display: flex; align-items: flex-end; justify-content: flex-end;
  padding-top: 6px;
  min-height: 150px;
}
.kivvi, .ob-kivvi-circle {
  width: 124px; height: 124px;
  background: linear-gradient(160deg, #9BC0FF 0%, #6B97F5 100%);
  border-radius: 50%;
  display: grid; place-items: center;
  box-shadow:
    0 6px 16px rgba(91,142,255,0.30),
    inset 0 -6px 0 rgba(30,42,74,0.10),
    inset 0 3px 0 rgba(255,255,255,0.35);
  position: relative; z-index: 2;
  flex-shrink: 0;
}
.kivvi-star { width: 68px; height: 68px; filter: drop-shadow(0 2px 4px rgba(30,42,74,0.14)); }

.speech, .ob-kivvi-bubble {
  position: absolute;
  left: 0; bottom: 68px;
  background: rgba(255,251,244,0.95);
  border-radius: 18px 18px 6px 18px;
  padding: 10px 13px;
  font-size: 13px; font-weight: 600;
  color: var(--navy);
  box-shadow: 0 4px 10px rgba(30,42,74,0.10), inset 0 1px 0 rgba(255,255,255,0.55);
  max-width: 180px;
  line-height: 1.35;
  z-index: 3;
}
.speech::after, .ob-kivvi-bubble::after {
  content: ''; position: absolute;
  right: -8px; bottom: 8px;
  width: 0; height: 0;
  border-left: 8px solid rgba(255,251,244,0.95);
  border-top: 7px solid transparent;
  border-bottom: 7px solid transparent;
  filter: drop-shadow(2px 2px 2px rgba(30,42,74,0.08));
  background: none;
  transform: none;
}

.sticker, .ob-sticker {
  position: absolute; top: -6px; right: 18px;
  background: #FBDD6E;
  color: var(--navy);
  font-family: 'Fredoka', sans-serif; font-weight: 600; font-size: 11px;
  padding: 5px 12px; border-radius: 11px;
  transform: rotate(6deg);
  z-index: 4; letter-spacing: 0.4px;
  box-shadow:
    0 3px 8px rgba(30,42,74,0.12),
    inset 0 -2px 0 rgba(30,42,74,0.08),
    inset 0 1px 0 rgba(255,255,255,0.5);
}
.sticker::before { content: '✨ '; }
body.ob-page--paywall .sticker, body.ob-page--paywall .ob-sticker { transform: rotate(-6deg); }

/* ═══ NAME INPUT — translucent ═══════════════════════════════ */
.name-input, .ob-input {
  width: 100%;
  background: var(--inner-bg);
  border: none; outline: none;
  padding: 14px 16px;
  border-radius: var(--clay-radius-xs);
  font-family: 'Nunito', sans-serif;
  font-size: 16px; font-weight: 600;
  color: var(--navy);
  box-shadow:
    inset 0 3px 6px rgba(30,42,74,0.06),
    inset 0 -1px 0 rgba(255,255,255,0.5);
  transition: background .15s, box-shadow .15s;
}
.name-input:focus, .ob-input:focus {
  background: rgba(255,255,255,0.85);
  box-shadow:
    inset 0 2px 4px rgba(30,42,74,0.05),
    0 0 0 3px rgba(78,205,196,0.35);
}
.name-input::placeholder, .ob-input::placeholder { color: var(--gray-soft); font-weight: 500; }

/* ═══ AGES ════════════════════════════════════════════════════ */
.ages, .ob-age-row {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px;
}
.age, .ob-age-tile {
  background: var(--inner-bg);
  border-radius: var(--clay-radius-sm);
  padding: 14px 8px 12px;
  text-align: center; cursor: pointer;
  box-shadow: var(--clay-shadow-inner);
  transition: transform .15s, box-shadow .15s, background .15s;
  border: none;
  font-family: 'Nunito', sans-serif; color: var(--navy);
  position: relative;
  display: block;
}
.age:hover, .ob-age-tile:hover {
  transform: translateY(-2px);
  background: var(--inner-bg-hover);
  box-shadow: var(--clay-shadow-inner-hover);
}
.age:active, .ob-age-tile:active {
  transform: translateY(1px);
  box-shadow: var(--clay-shadow-inner-pressed);
}
.age-emoji { font-size: 30px; display: block; margin-bottom: 4px; line-height: 1; }
.age-range { font-family: 'Fredoka', sans-serif; font-weight: 600; font-size: 16px; display: block; }
.age-label { font-size: 10px; font-weight: 700; color: var(--gray); text-transform: uppercase; letter-spacing: 0.4px; margin-top: 2px; display: block; }

.age.selected, .age.is-selected,
.ob-age-tile.selected, .ob-age-tile.is-selected,
.ob-age-tile:has(input:checked) {
  background: linear-gradient(135deg, #F8857F 0%, #F57069 100%);
  color: #fff;
  box-shadow:
    0 6px 14px rgba(255,107,107,0.30),
    inset 0 -4px 0 rgba(30,42,74,0.14),
    inset 0 2px 0 rgba(255,255,255,0.25);
}
.age.selected .age-label,
.age.is-selected .age-label,
.ob-age-tile.selected .age-label,
.ob-age-tile.is-selected .age-label,
.ob-age-tile:has(input:checked) .age-label,
.ob-age-tile.selected .small,
.ob-age-tile.is-selected .small,
.ob-age-tile:has(input:checked) .small { color: rgba(255,255,255,0.88); }
.age input, .ob-age-tile input { position: absolute; opacity: 0; pointer-events: none; }

/* ═══ INTERESTS ═══════════════════════════════════════════════ */
.chips-head {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 10px;
}
.chips-limit {
  font-size: 12px; font-weight: 700;
  color: var(--gray);
  background: rgba(255,255,255,0.4);
  padding: 4px 10px;
  border-radius: 12px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.55);
}

.chips, .ob-chips { display: flex; flex-wrap: wrap; gap: 8px; }

.chip, .ob-chip {
  background: var(--inner-bg);
  padding: 9px 13px;
  border-radius: var(--clay-radius-xs);
  font-size: 14px; font-weight: 700;
  color: var(--navy);
  cursor: pointer;
  display: inline-flex; align-items: center; gap: 7px;
  box-shadow: var(--clay-shadow-inner);
  transition: transform .15s, box-shadow .15s, background .15s;
  border: none;
  font-family: 'Nunito', sans-serif;
  user-select: none;
  position: relative;
}
.chip:hover, .ob-chip:hover {
  transform: translateY(-2px);
  background: var(--inner-bg-hover);
  box-shadow: var(--clay-shadow-inner-hover);
}
.chip:active, .ob-chip:active {
  transform: translateY(1px);
  box-shadow: var(--clay-shadow-inner-pressed);
}
.chip.selected, .chip.is-selected,
.ob-chip.selected, .ob-chip.is-selected,
.ob-chip:has(input:checked) {
  background: linear-gradient(135deg, #6FD5CD 0%, #4EBEB6 100%);
  color: #fff;
  box-shadow:
    0 5px 12px rgba(78,205,196,0.32),
    inset 0 -3px 0 rgba(30,42,74,0.14),
    inset 0 2px 0 rgba(255,255,255,0.25);
}
.chip-emoji, .ob-chip-emoji { font-size: 17px; line-height: 1; }
.chip input, .ob-chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip.is-disabled, .ob-chip.is-disabled { opacity: 0.5; cursor: not-allowed; }

@keyframes clay-shake {
  0%,100% { transform: translateX(0); }
  20%     { transform: translateX(-4px); }
  40%     { transform: translateX(4px); }
  60%     { transform: translateX(-3px); }
  80%     { transform: translateX(3px); }
}
.chip.shake, .ob-chip.shake, .ob-chip.is-shake { animation: clay-shake .4s ease; }

/* ═══ CTA ═════════════════════════════════════════════════════ */
.cta-btn, .ob-continue {
  width: 100%;
  background: linear-gradient(135deg, var(--coral) 0%, var(--coral-deep) 100%);
  color: #fff; border: none;
  padding: 17px 24px;
  border-radius: 20px;
  font-family: 'Fredoka', sans-serif;
  font-weight: 600; font-size: 18px;
  cursor: pointer; letter-spacing: 0.3px;
  box-shadow:
    0 4px 0 #C85050,
    0 10px 20px rgba(255,107,107,0.30),
    inset 0 -3px 0 rgba(30,42,74,0.10),
    inset 0 2px 0 rgba(255,255,255,0.25);
  transition: transform .1s, box-shadow .1s;
}
.cta-btn:hover:not(:disabled), .ob-continue:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow:
    0 6px 0 #C85050,
    0 14px 24px rgba(255,107,107,0.38),
    inset 0 -3px 0 rgba(30,42,74,0.10),
    inset 0 2px 0 rgba(255,255,255,0.25);
}
.cta-btn:active:not(:disabled), .ob-continue:active:not(:disabled) {
  transform: translateY(3px);
  box-shadow:
    0 1px 0 #C85050,
    0 2px 4px rgba(255,107,107,0.25),
    inset 0 -1px 0 rgba(30,42,74,0.10);
}
.cta-btn:disabled, .ob-continue:disabled {
  opacity: 0.55; cursor: not-allowed; transform: none;
}
.cta-btn:focus-visible, .ob-continue:focus-visible {
  outline: 3px solid var(--coral); outline-offset: 3px;
}

/* v6.3 — yearly-trial CTA on paywall is brand green (--kv-green from tokens.css).
   Navy text keeps WCAG AA over the green gradient (~5.5:1 vs white's ~1.8). The
   override is scoped by body.ob-page--paywall + id so monthly/continue CTAs
   elsewhere stay coral. */
body.ob-page--paywall #pwCta.ob-continue {
  background: linear-gradient(135deg, var(--kv-green) 0%, #3EAB52 100%);
  color: var(--navy);
  box-shadow:
    0 4px 0 #2F8A40,
    0 10px 20px rgba(107,203,119,0.30),
    inset 0 -3px 0 rgba(30,42,74,0.10),
    inset 0 2px 0 rgba(255,255,255,0.30);
}
body.ob-page--paywall #pwCta.ob-continue:hover:not(:disabled) {
  filter: brightness(0.96);
  box-shadow:
    0 6px 0 #2F8A40,
    0 14px 24px rgba(107,203,119,0.38),
    inset 0 -3px 0 rgba(30,42,74,0.10),
    inset 0 2px 0 rgba(255,255,255,0.30);
}
body.ob-page--paywall #pwCta.ob-continue:active:not(:disabled) {
  box-shadow:
    0 1px 0 #2F8A40,
    0 2px 4px rgba(107,203,119,0.25),
    inset 0 -1px 0 rgba(30,42,74,0.10);
}
body.ob-page--paywall #pwCta.ob-continue:focus-visible {
  outline: 3px solid var(--kv-green); outline-offset: 3px;
}

/* ═══ v6.4.2 — UNIFIED PACK CENTERING ════════════════════════════
   Logo + bento + footer behave as a SINGLE pack centered vertically
   on the viewport. Earlier v6.4.1 used auto-margins on logo and
   footer, which pushed them all the way to the viewport edges and
   left a 200+ px gap on either side of the bento — they read as
   three independent sections. This rewrites the centering as
   `justify-content: center` + `gap: 24px` on body so the three
   children sit shoulder to shoulder and the cluster moves as one.

   The bento itself is untouched end-to-end (its grid + 16-px gap
   is the structural guard checked by G1).

   The crestik (`.ob-close`) stays `position: absolute` against the
   viewport (top:22 right:22) — moving it under the bento would need
   an HTML reorder, which the bref also forbade. Documented as a
   deviation in the REPORT; the next iteration that's allowed to
   touch the HTML can wrap [bento + close] into a single positioned
   container. */
body.ob-page                    { justify-content: center; gap: 24px; }
body.ob-page > .ob-logo         { margin-bottom: 0; }
body.ob-page > .ob-text-footer  { margin-top:    0; }
/* Footer's internal action-row had margin-top: 20px from the legacy
   single-flow layout; with the 24-px body gap that doubled the visible
   space between bento and footer pills. Zero it inside ob-page so the
   pack-to-pack rhythm is the body's gap only. */
body.ob-page .ob-text-footer .ob-action-row { margin-top: 0; }

/* ═══ v6.4 — YEARLY TILE SELECTED = BRAND GREEN ══════════════════
   Yearly tile selected state goes brand green (matches the CTA).
   Monthly selected stays coral so the two plans look distinct on
   toggle. Navy text keeps WCAG AA ≥ 5.4:1 on both the gradient and
   the "Popular" yellow badge; trial pill gets a solid-white background
   so "7-day free trial" pops on green. */
body.ob-page--paywall .ob-tile[data-tile="plan-yearly"].is-selected,
body.ob-page--paywall .ob-tile[data-tile="plan-yearly"].selected {
  background: linear-gradient(135deg, var(--kv-green) 0%, #3EAB52 100%);
  color: var(--navy);
  box-shadow:
    0 6px 14px rgba(107,203,119,0.30),
    inset 0 -4px 0 rgba(30,42,74,0.14),
    inset 0 2px 0 rgba(255,255,255,0.25);
}
body.ob-page--paywall .ob-tile[data-tile="plan-yearly"].is-selected .ob-plan-name,
body.ob-page--paywall .ob-tile[data-tile="plan-yearly"].is-selected .ob-plan-price,
body.ob-page--paywall .ob-tile[data-tile="plan-yearly"].is-selected .ob-plan-unit,
body.ob-page--paywall .ob-tile[data-tile="plan-yearly"].selected .ob-plan-name,
body.ob-page--paywall .ob-tile[data-tile="plan-yearly"].selected .ob-plan-price,
body.ob-page--paywall .ob-tile[data-tile="plan-yearly"].selected .ob-plan-unit {
  color: var(--navy);
}
body.ob-page--paywall .ob-tile[data-tile="plan-yearly"].is-selected .ob-plan-tag,
body.ob-page--paywall .ob-tile[data-tile="plan-yearly"].selected .ob-plan-tag {
  background: linear-gradient(135deg, var(--yellow), #FFD93D);
  color: var(--navy);
}
body.ob-page--paywall .ob-tile[data-tile="plan-yearly"].is-selected .ob-plan-trial,
body.ob-page--paywall .ob-tile[data-tile="plan-yearly"].selected .ob-plan-trial {
  color: #0E6F3E;
  background: rgba(255,255,255,0.9);
}

.cta-hint, .ob-cta-hint {
  font-size: 12px; color: var(--gray);
  text-align: center; line-height: 1.4; font-weight: 600;
  margin: 0;
}
.cta-hint .ico { vertical-align: middle; margin-right: 2px; }

/* ═══ PAYWALL plan tiles ═════════════════════════════════════ */
.ob-plan {
  position: relative;
  cursor: pointer;
  color: var(--navy);
  overflow: hidden;
  padding: 18px 22px;
  display: flex; flex-direction: column; gap: 4px;
  min-width: 0;
}
.ob-plan input { position: absolute; opacity: 0; pointer-events: none; }
.ob-plan-name {
  font-weight: 800; font-size: 14px; color: var(--navy);
  line-height: 1; text-transform: uppercase; letter-spacing: 0.04em;
}
.ob-plan-price {
  font-family: 'Fredoka', sans-serif;
  font-size: 28px; font-weight: 600; line-height: 1.05;
  letter-spacing: -0.02em;
  margin-top: 4px;
}
.ob-plan-unit { color: var(--navy-soft); font-size: 12.5px; font-weight: 600; }
.ob-plan-trial {
  display: inline-flex; align-items: center; gap: 6px;
  margin-top: 6px; align-self: flex-start;
  color: #0E6F3E;
  background: rgba(255,255,255,0.78);
  padding: 4px 10px; border-radius: 999px;
  font-size: 11.5px; font-weight: 800;
}
.ob-plan-tag {
  position: absolute; top: -10px; right: 14px;
  background: linear-gradient(135deg, var(--yellow), #FFD93D);
  color: var(--navy);
  font-family: 'Fredoka', sans-serif;
  font-size: 10.5px; font-weight: 800;
  padding: 4px 11px; border-radius: 999px;
  text-transform: uppercase; letter-spacing: 0.08em;
  transform: rotate(-4deg);
  box-shadow:
    0 4px 10px rgba(255,159,28,0.30),
    inset 0 -2px 0 rgba(30,42,74,0.06),
    inset 0 1px 0 rgba(255,255,255,0.6);
}
.ob-plan:hover { transform: translateY(-2px); box-shadow: var(--clay-shadow); filter: brightness(1.02); }
.ob-plan.is-selected, .ob-plan.selected {
  background: linear-gradient(135deg, #F8857F 0%, #F57069 100%);
  color: #fff;
  box-shadow:
    0 6px 14px rgba(255,107,107,0.30),
    inset 0 -4px 0 rgba(30,42,74,0.14),
    inset 0 2px 0 rgba(255,255,255,0.25);
}
.ob-plan.is-selected .ob-plan-name,
.ob-plan.is-selected .ob-plan-price,
.ob-plan.is-selected .ob-plan-unit { color: #fff; }
.ob-plan.is-selected .ob-plan-tag { background: #fff; color: var(--coral); }
.ob-plan.is-selected .ob-plan-trial { color: var(--coral); }

/* ═══ TRUST tile ══════════════════════════════════════════════ */
.ob-trust-title {
  font-family: 'Fredoka', sans-serif;
  font-weight: 600; font-size: 18px;
  color: var(--navy);
  margin: 0 0 10px;
}
.ob-trust-list {
  list-style: none; padding: 0; margin: 0;
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 8px 16px;
}
.ob-trust-list li {
  display: flex; align-items: center; gap: 10px;
  font-size: 13.5px; font-weight: 600;
  color: var(--navy-soft);
}
.ob-trust-list li::before {
  content: '✓';
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--teal); color: #fff;
  font-size: 12px; font-weight: 900;
  display: grid; place-items: center;
  flex: 0 0 auto;
  box-shadow: 0 2px 4px rgba(27,182,90,0.28);
}

/* ═══ Register form (paywall Mode B) ═════════════════════════ */
.ob-register {
  display: flex; flex-direction: column; gap: 8px;
  width: 100%; margin-bottom: 8px;
}
.ob-reg-row { display: grid; grid-template-columns: 1fr; gap: 8px; }
.ob-reg-field { position: relative; }
.ob-reg-field input {
  width: 100%; height: 42px;
  padding: 0 14px;
  border: 0;
  border-radius: var(--clay-radius-xs);
  background: var(--inner-bg);
  color: var(--navy);
  font: inherit; font-size: 14px; font-weight: 500;
  box-shadow:
    inset 0 3px 6px rgba(30,42,74,0.06),
    inset 0 -1px 0 rgba(255,255,255,0.5);
}
.ob-reg-field input::placeholder { color: var(--gray-soft); font-weight: 400; }
.ob-reg-field input:focus {
  outline: none; background: rgba(255,255,255,0.85);
  box-shadow:
    inset 0 2px 4px rgba(30,42,74,0.05),
    0 0 0 3px rgba(78,205,196,0.35);
}
.ob-reg-pw input { padding-right: 38px; }
.ob-reg-pw-toggle {
  position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
  background: transparent; border: 0; font-size: 16px; cursor: pointer;
  padding: 4px 6px; border-radius: 6px; color: var(--gray);
}
.ob-reg-terms {
  display: flex; gap: 8px; align-items: flex-start;
  font-size: 11.5px; color: var(--navy-soft); line-height: 1.35;
}
.ob-reg-terms input { margin-top: 1px; width: 14px; height: 14px; accent-color: var(--coral); flex: 0 0 auto; }
.ob-reg-terms a { color: #1E5FD8; font-weight: 700; text-decoration: none; }
.ob-reg-terms a:hover { text-decoration: underline; }
.ob-pw-cta-note {
  font-size: 10.5px; color: var(--navy-soft);
  text-align: center; line-height: 1.35;
  margin: 6px 0 0;
}

/* ═══ LOGIN PILL + FOOTER ═════════════════════════════════════ */
.login-pill, .ob-foot-primary {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(255,255,255,0.65);
  border: none; padding: 10px 20px;
  border-radius: 30px;
  font-family: 'Nunito', sans-serif; font-size: 14px; font-weight: 600;
  color: var(--navy);
  margin-top: 20px;
  cursor: pointer; text-decoration: none;
  box-shadow:
    0 2px 4px rgba(30,42,74,0.05),
    0 6px 12px rgba(30,42,74,0.08),
    inset 0 -2px 0 rgba(30,42,74,0.04),
    inset 0 1px 0 rgba(255,255,255,0.6);
  transition: transform .15s, background .15s;
}
.login-pill:hover, .ob-foot-primary:hover,
.login-pill:focus-visible, .ob-foot-primary:focus-visible {
  transform: translateY(-2px);
  background: rgba(255,255,255,0.85);
  outline: none;
}
.login-pill span.accent, .ob-foot-primary span.accent { color: var(--coral); font-weight: 800; }

.footer, .ob-foot-micro {
  margin-top: 14px;
  font-size: 12px; color: var(--gray); font-weight: 500;
  display: flex; gap: 14px; flex-wrap: wrap; justify-content: center;
}
.footer a, .ob-foot-micro a, .ob-foot-micro button {
  color: var(--gray); text-decoration: none;
  background: transparent; border: 0; padding: 0;
  font: inherit; font-size: 12px; cursor: pointer;
}
.footer a:hover, .ob-foot-micro a:hover, .ob-foot-micro button:hover,
.footer a:focus-visible, .ob-foot-micro a:focus-visible,
.ob-foot-micro button:focus-visible {
  color: var(--navy); text-decoration: underline; outline: none;
}
.footer .sep, .ob-foot-sep { color: #C8C2BA; }

.ob-text-footer {
  flex: 0 0 auto;
  display: flex; flex-direction: column; align-items: center; gap: 0;
  text-align: center;
  width: 100%;
}

.sr-only, .ob-sr-only {
  position: absolute !important; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* ═══ v5 — close button (welcome/paywall/signup) ══════════════ */
.ob-close {
  position: absolute;
  top: 22px; right: 22px;
  width: 44px; height: 44px;
  display: grid; place-items: center;
  background: rgba(255,255,255,0.65);
  color: var(--navy);
  border: none; border-radius: 50%;
  cursor: pointer;
  z-index: 50;
  box-shadow:
    0 2px 4px rgba(30,42,74,0.06),
    0 6px 12px rgba(30,42,74,0.08),
    inset 0 -2px 0 rgba(30,42,74,0.04),
    inset 0 1px 0 rgba(255,255,255,0.6);
  transition: transform .15s, background .15s;
}
.ob-close:hover  { transform: scale(1.06); background: rgba(255,255,255,0.85); }
.ob-close:active { transform: scale(0.96); }
.ob-close:focus-visible { outline: 3px solid rgba(78,205,196,0.5); outline-offset: 2px; }
@media (max-height: 780px) { .ob-close { top: 14px; right: 14px; width: 38px; height: 38px; } }

/* ═══ v5 — action row (login + lang pills side by side) ═══════ */
.ob-action-row {
  display: flex; gap: 10px; align-items: center;
  margin-top: 20px; flex-wrap: wrap; justify-content: center;
}
.ob-action-row .login-pill,
.ob-action-row .ob-foot-primary { margin-top: 0; }

/* Lang pill */
.lang-pill {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,0.65);
  border: none; padding: 10px 16px;
  border-radius: 30px;
  font-family: 'Nunito', sans-serif;
  font-size: 14px; font-weight: 700; color: var(--navy);
  cursor: pointer;
  box-shadow:
    0 2px 4px rgba(30,42,74,0.05),
    0 6px 12px rgba(30,42,74,0.08),
    inset 0 -2px 0 rgba(30,42,74,0.04),
    inset 0 1px 0 rgba(255,255,255,0.6);
  transition: transform .15s, background .15s;
}
.lang-pill:hover { transform: translateY(-2px); background: rgba(255,255,255,0.85); }
.lang-pill:focus-visible { outline: 3px solid rgba(78,205,196,0.5); outline-offset: 2px; }
.lang-flag { font-size: 18px; line-height: 1; }
.lang-code { letter-spacing: 0.5px; font-weight: 800; }

/* Lang modal */
.lang-modal-overlay {
  position: fixed; inset: 0;
  background: rgba(30,42,74,0.45);
  backdrop-filter: blur(6px);
  display: none; align-items: center; justify-content: center;
  z-index: 200;
  padding: 20px;
}
.lang-modal-overlay.is-open { display: flex; }
.lang-modal {
  background: #FFFBF4;
  border-radius: var(--clay-radius);
  padding: 28px 24px 24px;
  max-width: 560px; width: 100%;
  max-height: 85vh; overflow-y: auto;
  box-shadow:
    0 20px 48px rgba(30,42,74,0.25),
    inset 0 1px 0 rgba(255,255,255,0.8);
  position: relative;
}
.lang-modal h2 {
  font-family: 'Fredoka', sans-serif; font-weight: 600; font-size: 22px;
  color: var(--navy); margin: 0 0 6px;
}
.lang-modal p.lang-sub { font-size: 13px; color: var(--gray); margin: 0 0 18px; font-weight: 600; }
.lang-modal-close {
  position: absolute; top: 14px; right: 14px;
  width: 36px; height: 36px;
  display: grid; place-items: center;
  background: rgba(30,42,74,0.06); color: var(--navy);
  border: none; border-radius: 50%;
  cursor: pointer;
}
.lang-modal-close:hover { background: rgba(30,42,74,0.12); }
.lang-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 8px;
}
.lang-item {
  display: flex; align-items: center; gap: 10px;
  background: rgba(255,255,255,0.7);
  border: none; padding: 10px 12px;
  border-radius: var(--clay-radius-xs);
  font-family: 'Nunito', sans-serif; font-size: 14px; font-weight: 700; color: var(--navy);
  cursor: pointer; text-align: left;
  box-shadow: var(--clay-shadow-inner);
  transition: transform .12s, background .12s, box-shadow .12s;
}
.lang-item:hover  { transform: translateY(-2px); background: rgba(255,255,255,0.95); box-shadow: var(--clay-shadow-inner-hover); }
.lang-item.is-current {
  background: linear-gradient(135deg, #6FD5CD 0%, #4EBEB6 100%);
  color: #fff;
  box-shadow: 0 4px 10px rgba(78,205,196,0.30), inset 0 1px 0 rgba(255,255,255,0.35);
}
.lang-item-flag { font-size: 20px; line-height: 1; }
.lang-item-name { flex: 1; }
.lang-item-code { font-size: 11px; color: var(--gray); font-weight: 700; text-transform: uppercase; letter-spacing: 0.4px; }
.lang-item.is-current .lang-item-code { color: rgba(255,255,255,0.8); }

@media (prefers-reduced-motion: reduce) {
  .lang-pill, .lang-item, .ob-close { transition: none !important; }
  .lang-pill:hover, .ob-close:hover { transform: none !important; }
}

/* ═══ Kids-home dropdown (preserved) ══════════════════════════ */
.kv-avatar-menu {
  position: absolute; top: calc(100% + 6px); right: 0;
  min-width: 180px; background: #fff;
  border: 1px solid rgba(30,42,74,0.08); border-radius: 14px;
  box-shadow: 0 12px 32px rgba(30,42,74,0.16);
  padding: 4px; display: none; z-index: 1000;
}
.kv-avatar-menu.open { display: block; }
.kv-avatar-menu a, .kv-avatar-menu button {
  display: block; width: 100%; padding: 10px 14px;
  text-align: left; font: inherit; font-size: 14px;
  color: var(--navy); background: transparent;
  border: 0; border-radius: 10px; cursor: pointer; text-decoration: none;
}
.kv-avatar-menu a:hover, .kv-avatar-menu button:hover,
.kv-avatar-menu a:focus-visible, .kv-avatar-menu button:focus-visible {
  background: var(--yellow); outline: none;
}

/* ═══ Reduced motion ══════════════════════════════════════════ */
@media (prefers-reduced-motion: reduce) {
  .age, .chip, .cta-btn, .login-pill, .ob-logo,
  .ob-age-tile, .ob-chip, .ob-continue, .ob-foot-primary,
  .ob-plan, .ob-input, .ob-reg-field input {
    transition: none !important;
  }
  .chip.shake, .ob-chip.shake, .ob-chip.is-shake { animation: none !important; }
  .age:hover, .chip:hover, .cta-btn:hover, .login-pill:hover,
  .ob-age-tile:hover, .ob-chip:hover, .ob-continue:hover,
  .ob-foot-primary:hover, .ob-plan:hover, .ob-logo:hover {
    transform: none !important;
  }
}

/* ═══ Tight viewport (≤780px height — 1366×768 laptops, etc.) ══ */
@media (max-height: 780px) {
  body.ob-page { padding: 10px 16px 14px; }
  .ob-logo { margin-bottom: 8px; }
  .ob-logo-img { height: 44px; }
  .ob-bento, .bento { gap: 10px; }
  .tile, .ob-tile { padding: 12px 16px; border-radius: 20px; }
  .hero-title, .ob-hero-title { font-size: 20px; }
  .trust { gap: 5px; }
  .trust li { font-size: 12px; }
  .kivvi, .ob-kivvi-circle { width: 92px; height: 92px; }
  .kivvi-star { width: 50px; height: 50px; }
  .kivvi-stage, .ob-kivvi-stage { min-height: 110px; }
  .speech, .ob-kivvi-bubble { font-size: 11.5px; padding: 7px 11px; max-width: 140px; bottom: 46px; }
  .tile-label { font-size: 11px; margin-bottom: 6px; }
  .name-input, .ob-input { height: 40px; padding: 8px 14px; font-size: 14px; }
  .ages, .ob-age-row { gap: 8px; }
  .age, .ob-age-tile { padding: 10px 6px 8px; }
  .age-emoji { font-size: 22px; margin-bottom: 2px; }
  .age-range { font-size: 14px; }
  .age-label { font-size: 9px; }
  .chips, .ob-chips { gap: 6px; }
  .chips-head { margin-bottom: 6px; }
  .chip, .ob-chip { padding: 6px 10px; font-size: 12px; }
  .chip-emoji, .ob-chip-emoji { font-size: 15px; }
  .cta-btn, .ob-continue { padding: 12px 20px; font-size: 15px; border-radius: 16px; }
  .cta-hint, .ob-cta-hint { font-size: 11px; }
  .login-pill, .ob-foot-primary { padding: 7px 14px; font-size: 12.5px; margin-top: 10px; }
  .footer, .ob-foot-micro { font-size: 11px; gap: 10px; margin-top: 8px; }
  .ob-plan { padding: 12px 16px; }
  .ob-plan-price { font-size: 22px; }
  .ob-plan-name { font-size: 13px; }
  .ob-plan-unit { font-size: 11px; }
  .ob-plan-trial { font-size: 10px; padding: 3px 8px; }
  .ob-trust-title { font-size: 14px; margin-bottom: 6px; }
  .ob-trust-list { gap: 5px 12px; }
  .ob-trust-list li { font-size: 11.5px; gap: 8px; }
  .ob-trust-list li::before { width: 18px; height: 18px; font-size: 10px; }
  .ob-register { gap: 6px; margin-bottom: 4px; }
  .ob-reg-field input { height: 36px; font-size: 13px; }
  .ob-reg-terms { font-size: 10.5px; }
  .ob-pw-cta-note { font-size: 10px; }
}
