/* Retrofon landing — clay style
   Light source: top-left everywhere. Depth: L0 tinted slabs (flat), L1 resting clay, L2 floating
   (props, keycaps on cards). Never deeper than that.
   Shadows are tinted with each surface's own hue via --c (never grey). */

:root {
  --bg: #F5EDE3;          /* tinted near-white page */
  --ink: #3A2A2C;         /* dark plum-brown text */
  --ink-2: #5B4548;       /* secondary text (AA on all pastels and slab tints below) */
  --cta: #1D7550;         /* the ONE saturated colour: the green call key */
  --cta-ink: #FFFFFF;
  --red: #C2463A;

  /* clay pastels */
  --apricot: #F4C3A0;
  --butter: #F5DA8C;
  --sky: #B4D6E8;
  --sage: #BFDBB4;
  --stone: #DCD3C8;
  --cream: #FBF5EC;

  --face: var(--apricot);  /* current faceplate, set by body[data-aud] */

  /* fine clay grain: warm brown fractal noise at low alpha, tiled over flat fills */
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .42 0 0 0 0 .24 0 0 0 0 .14 0 0 0 .1 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");

  --r-card: 30px;
  --r-btn: 18px;
  --r-slab: 56px;
  --sp-1: 8px; --sp-2: 16px; --sp-3: 24px; --sp-4: 32px; --sp-5: 48px; --sp-6: 72px; --sp-7: 112px;

  --f-body: "Nunito", ui-rounded, system-ui, sans-serif;
  --f-object: "Fredoka", "Nunito", ui-rounded, sans-serif;
}

body[data-aud="abuelos"] { --face: var(--apricot); }
body[data-aud="ninos"]   { --face: var(--butter); }
body[data-aud="acceso"]  { --face: var(--sky); }
body[data-aud="trabajo"] { --face: var(--sage); }
body[data-aud="minimal"] { --face: var(--stone); }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--grain), var(--bg);
  color: var(--ink);
  font: 400 1.125rem/1.6 var(--f-body);
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3 { line-height: 1.12; margin: 0 0 var(--sp-2); font-weight: 800; letter-spacing: -0.01em; text-wrap: balance; }
h1 { font-size: clamp(2.6rem, 6.4vw, 4.75rem); letter-spacing: -0.025em; }
h2 { font-size: clamp(2rem, 4.2vw, 3.1rem); letter-spacing: -0.02em; }
h3 { font-size: 1.375rem; }
p { margin: 0 0 var(--sp-2); text-wrap: pretty; }
a { color: inherit; }
b, strong { font-weight: 800; }

:focus-visible { outline: 4px solid var(--ink); outline-offset: 4px; border-radius: 12px; }

.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -100px; background: var(--ink); color: var(--bg); padding: 12px 18px; border-radius: 12px; z-index: 10; }
.skip:focus { top: 16px; }

/* ---------- clay recipe ---------- */
.clay {
  --c: var(--cream);
}
.clay, .btn-soft, .aud-card, .step-key, .cap, .mailbox, .story, .coin, .sg, details, .plate, .pillbox, .currency,
.blob, .step, .bento > li, .film-frame {
  background: var(--c);
  box-shadow:
    14px 18px 34px -8px color-mix(in oklab, var(--c) 45%, #6b3a22 55%),   /* coloured lift */
    -10px -10px 26px -4px rgba(255, 255, 255, .75),                         /* outer glow */
    inset 7px 7px 12px rgba(255, 255, 255, .6),                              /* sheen top-left */
    inset -9px -11px 18px color-mix(in oklab, var(--c) 80%, #5a2a14 20%);   /* shade bottom-right */
}
/* chips: the same recipe at about half strength */
.facts li, .ribbon li, .photo-chip, .mark, .sg h3 {
  background: var(--c);
  box-shadow:
    6px 8px 16px -6px color-mix(in oklab, var(--c) 45%, #6b3a22 55%),
    -5px -5px 12px -4px rgba(255, 255, 255, .7),
    inset 3px 3px 6px rgba(255, 255, 255, .6),
    inset -4px -5px 8px color-mix(in oklab, var(--c) 80%, #5a2a14 20%);
}

/* ---------- L0 slabs: big flat tinted areas that carry a section ----------
   Not interactive, so only a soft tinted lift and a top lip, no inset stack. */
.slab {
  --s: var(--sage);
  position: relative;
  background: var(--grain), color-mix(in oklab, var(--s) var(--mix, 48%), var(--bg));
  border-radius: var(--r-slab);
  box-shadow:
    0 34px 70px -40px color-mix(in oklab, var(--s) 40%, #6b3a22 60%),
    inset 0 3px 0 rgba(255, 255, 255, .55);
}
.slab-sage    { --s: var(--sage); }
.slab-butter  { --s: var(--butter); }
.slab-sky     { --s: var(--sky); --mix: 60%; }
.slab-stone   { --s: var(--stone); --mix: 70%; }
.slab-apricot { --s: var(--apricot); }

/* ---------- floating props (generated clay cutouts) and blobs ---------- */
.prop {
  position: absolute; z-index: 3; pointer-events: none;
  rotate: var(--r, 0deg);
  filter: drop-shadow(10px 16px 14px rgba(107, 58, 34, .22));
  animation: bob 7s ease-in-out infinite;
  animation-delay: var(--d, 0s);
}
@keyframes bob { 50% { translate: 0 -12px; } }
.blob {
  position: absolute; z-index: -1; pointer-events: none;
  border-radius: 58% 42% 55% 45% / 52% 48% 52% 48%;
}

/* ---------- buttons ---------- */
.btn {
  --c: var(--cream);
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 56px; padding: 0 26px;
  border-radius: var(--r-btn); border: 0;
  font: 800 1.0625rem/1 var(--f-body);
  text-decoration: none; cursor: pointer;
  color: var(--ink);
  transition: transform .18s cubic-bezier(.3, 1.6, .5, 1);
}
.btn-cta {
  --c: var(--cta);
  background: var(--cta); color: var(--cta-ink);
  box-shadow:
    10px 14px 26px -8px color-mix(in oklab, var(--cta) 60%, #000 40%),
    -8px -8px 20px -4px rgba(255, 255, 255, .8),
    inset 6px 6px 10px rgba(255, 255, 255, .28),
    inset -7px -9px 14px color-mix(in oklab, var(--cta) 70%, #000 30%);
}
.btn-sm { min-height: 48px; padding: 0 18px; font-size: 1rem; }
.btn-lg { min-height: 68px; padding: 0 40px; font-size: 1.25rem; border-radius: 22px; }
@media (max-width: 479px) { .btn-lg { padding: 0 24px; font-size: 1.125rem; } }
@media (max-width: 399px) {
  .btn-lg { padding: 0 18px; font-size: 1rem; }
  .currency button { padding: 0 12px; font-size: 1rem; white-space: nowrap; }
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: scale(.97); }
.btn-soft:active { box-shadow: 6px 8px 16px -6px color-mix(in oklab, var(--c) 45%, #6b3a22 55%), inset 4px 4px 8px rgba(255,255,255,.6), inset -5px -6px 10px color-mix(in oklab, var(--c) 80%, #5a2a14 20%); }

/* ---------- header ---------- */
.top {
  display: flex; align-items: center; justify-content: space-between; gap: var(--sp-2);
  max-width: 1240px; margin: 0 auto; padding: var(--sp-3) 16px;
}
.brand { display: inline-flex; align-items: center; gap: 12px; font-weight: 800; font-size: 1.375rem; text-decoration: none; margin: 0; }
.brand-key {
  --c: var(--face);
  display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 14px;
  font: 600 1.4rem/1 var(--f-object);
  background: var(--c);
  box-shadow: 4px 6px 12px -4px color-mix(in oklab, var(--c) 45%, #6b3a22 55%), inset 3px 3px 5px rgba(255,255,255,.6), inset -4px -5px 8px color-mix(in oklab, var(--c) 80%, #5a2a14 20%);
  transition: background-color .5s;
}
.top nav { display: none; }
.top nav ul { display: flex; gap: var(--sp-1); list-style: none; margin: 0; padding: 0; }
.top nav a { display: inline-flex; align-items: center; min-height: 48px; padding: 0 14px; border-radius: 999px; font-weight: 700; text-decoration: none; color: var(--ink-2); }
.top nav a:hover { color: var(--ink); background: rgba(255,255,255,.55); }
.top-end { display: flex; align-items: center; gap: var(--sp-1); }
.lang-link { display: inline-flex; align-items: center; min-height: 48px; padding: 0 14px; border-radius: 999px; font-weight: 700; text-decoration: none; color: var(--ink-2); }
.lang-link:hover { color: var(--ink); background: rgba(255,255,255,.55); }
@media (max-width: 479px) { .top .btn-sm { display: none; } }
@media (min-width: 960px) { .top nav { display: block; } }

/* ---------- layout ---------- */
/* props and blobs peek past slab edges; clip them sideways without creating a scroll container */
main { overflow-x: clip; }
main > section { position: relative; max-width: 1240px; margin: 0 auto; padding: var(--sp-6) 16px; }
main > section.slab { margin: var(--sp-5) 12px; padding: var(--sp-6) 20px; }
@media (min-width: 768px) {
  main > section { padding: var(--sp-7) 32px; }
  main > section.slab { margin: var(--sp-6) 24px; padding: var(--sp-7) 56px; }
}
@media (min-width: 1288px) { main > section.slab { margin-inline: auto; } }
.section-head { max-width: 760px; margin-bottom: var(--sp-5); }
.section-head p { font-size: 1.25rem; color: var(--ink-2); }

/* ---------- hero ---------- */
.hero { display: grid; gap: var(--sp-5); padding-top: var(--sp-4) !important; align-items: center; isolation: isolate; }
.hero-copy, .hero-phone { position: relative; z-index: 1; }
.eyebrow { font-weight: 800; color: var(--ink-2); font-size: 1rem; letter-spacing: .04em; text-transform: uppercase; margin-bottom: var(--sp-2); }
.mark {
  --c: var(--butter);
  display: inline-block; padding: 0 .2em .06em; margin-top: .08em;
  border-radius: .3em; rotate: -1.5deg;
}
.lede { font-size: 1.3125rem; color: var(--ink-2); max-width: 34ch; }
.cta-row { display: flex; flex-wrap: wrap; gap: 14px; margin: var(--sp-4) 0 var(--sp-2); }
.cta-row-center { justify-content: center; }
.facts { list-style: none; display: flex; flex-wrap: wrap; gap: 12px; margin: var(--sp-4) 0 var(--sp-2); padding: 0; }
.facts li { --c: var(--cream); padding: 10px 18px; border-radius: 999px; font-size: 1rem; font-weight: 700; color: var(--ink-2); }
.facts b { color: var(--ink); }
.fine { font-size: 1rem; color: var(--ink-2); }
@media (min-width: 960px) {
  .hero { grid-template-columns: 1.05fr .95fr; gap: var(--sp-6); }
}

.blob-hero-a {
  --c: color-mix(in oklab, var(--face) 60%, var(--cream));
  width: 380px; height: 360px; right: -150px; top: 46%;
  transition: background-color .6s;
}
.blob-hero-b { display: none; --c: var(--sage); width: 92px; height: 84px; }
@media (min-width: 960px) {
  .blob-hero-a { width: 600px; height: 560px; right: -140px; top: 20px; }
  .blob-hero-b { display: block; left: -28px; bottom: 90px; }
}

.hero-phone { display: grid; justify-items: center; gap: var(--sp-2); }
.try { font-weight: 800; font-size: 1.0625rem; margin: 0; text-align: center; max-width: 32ch; }

/* The stage: simulator on its pedestal, the clay grandmother beside it, props around it. */
.stage { position: relative; display: grid; justify-items: center; width: min(340px, 100%); }
.hero-figure, .aud-figure, .faq-figure { object-fit: contain; }
.hero-figure { display: none; }
.prop-chat  { width: 62px; bottom: -28px; left: -4px; }
.prop-heart { width: 64px; bottom: -26px; right: -4px; }
.prop-key   { display: none; }
@media (min-width: 600px) {
  .stage { width: 520px; padding-left: 170px; }
  .hero-figure {
    display: block; position: absolute; z-index: 2; pointer-events: none;
    left: 0; bottom: -4px; height: 330px; width: auto;
    filter: drop-shadow(12px 18px 16px rgba(107, 58, 34, .25));
  }
  .prop-chat  { width: 120px; top: 70px; bottom: auto; left: 30px; }
  .prop-heart { width: 112px; top: -24px; bottom: auto; right: -40px; }
  .prop-key   { display: block; width: 96px; bottom: 150px; right: -56px; }
}

/* ---------- the clay pedestal the real simulator stands on ----------
   The clay never frames or draws the phone: each style has its own shape, so the sim stands
   free and only a soft clay plate sits beneath it. */
.cradle {
  --c: var(--face);
  position: relative;
  width: min(340px, 100%);
  padding-bottom: 10px;
}
.cradle-sm { justify-self: center; }
.cradle-sky { --c: var(--sky); }
.cradle::after {
  content: ""; position: absolute; left: 4%; right: 4%; bottom: 0; height: 64px; border-radius: 50%;
  background: var(--c);
  box-shadow:
    14px 18px 30px -10px color-mix(in oklab, var(--c) 40%, #6b3a22 60%),
    inset 6px 8px 12px rgba(255, 255, 255, .55),
    inset -8px -10px 16px color-mix(in oklab, var(--c) 75%, #5a2a14 25%);
  transition: background-color .6s ease;
}
.sim { position: relative; z-index: 1; display: block; width: 100%; height: 640px; border: 0; background: transparent; }
.cradle-sm .sim { height: 600px; }
.cradle.swap { animation: squish .55s cubic-bezier(.3, 1.5, .5, 1); }
@keyframes squish {
  35% { scale: 1.03 .97; }
  70% { scale: .99 1.01; }
}

/* ---------- feature ribbon ---------- */
.ribbon {
  overflow: hidden; padding: 30px 0 34px; rotate: -1.2deg;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
}
.ribbon-track { display: flex; width: max-content; animation: marquee 60s linear infinite; }
.ribbon:hover .ribbon-track { animation-play-state: paused; }
.ribbon ul { display: flex; gap: 16px; margin: 0; padding: 0 8px; list-style: none; }
.ribbon li {
  --c: var(--cream);
  display: inline-flex; align-items: center; gap: 12px; white-space: nowrap;
  min-height: 54px; padding: 0 22px 0 16px; border-radius: 18px;
  font-weight: 800; font-size: 1.0625rem;
}
.chip-dot {
  flex: none; width: 18px; height: 18px; border-radius: 50%; background: var(--d);
  box-shadow: inset 2px 2px 3px rgba(255,255,255,.6), inset -2px -3px 4px color-mix(in oklab, var(--d) 70%, #3a1a0c 30%);
}
@keyframes marquee { to { translate: -50% 0; } }

/* ---------- film: the one-minute short, in a clay frame ---------- */
.film { padding-top: var(--sp-5) !important; padding-bottom: var(--sp-4) !important; }
.film-frame { --c: var(--cream); max-width: 1040px; margin-inline: auto; padding: 12px; border-radius: var(--r-card); }
.film-frame video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; border-radius: 20px; background: #C9805C; }
/* phones play the upright cut (the <source media> in the page uses the same width) */
@media (max-width: 599px) {
  .film-frame { max-width: 360px; }
  .film-frame video { aspect-ratio: 9 / 16; }
}

/* ---------- audience plates ---------- */
.faceplates { padding-top: var(--sp-5) !important; }
.plates { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: var(--sp-5); }
.plate {
  --c: var(--cream);
  display: inline-flex; align-items: center; gap: 12px;
  min-height: 60px; padding: 0 22px 0 9px;
  border: 0; border-radius: 999px;
  font: 800 1.0625rem/1.2 var(--f-body); color: var(--ink);
  cursor: pointer;
  transition: transform .18s cubic-bezier(.3, 1.6, .5, 1);
}
.plate:active { transform: scale(.97); }
.plate-dot {
  flex: none; width: 44px; height: 44px; border-radius: 50%; object-fit: cover;
  background: var(--d); border: 3px solid var(--d);
  box-shadow: 2px 3px 6px -2px color-mix(in oklab, var(--d) 40%, #6b3a22 60%);
}
.plate[data-aud="abuelos"] { --d: var(--apricot); }
.plate[data-aud="ninos"]   { --d: var(--butter); }
.plate[data-aud="acceso"]  { --d: var(--sky); }
.plate[data-aud="trabajo"] { --d: var(--sage); }
.plate[data-aud="minimal"] { --d: var(--stone); }
.plate[aria-checked="true"] {
  --c: var(--d);
  transform: scale(.97);
  box-shadow: 4px 6px 12px -4px color-mix(in oklab, var(--c) 45%, #6b3a22 55%), inset 5px 5px 10px color-mix(in oklab, var(--c) 70%, #5a2a14 30%), inset -4px -4px 8px rgba(255,255,255,.5);
}
.plate[aria-checked="true"] .plate-dot { border-color: var(--cream); }

.aud-card {
  --c: var(--face);
  position: relative;
  border-radius: var(--r-card);
  padding: var(--sp-4);
  display: grid; gap: var(--sp-4);
  transition: background-color .5s;
}
.aud-card h3 { font-size: clamp(1.5rem, 2.6vw, 2rem); }
.aud-card p { font-size: 1.1875rem; max-width: 56ch; }
.aud-styles { font-weight: 700; }
.aud-styles span:first-child { color: var(--ink-2); }
.aud-foot { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: var(--sp-3); margin-top: var(--sp-3); }
.aud-keys { list-style: none; margin: 0 0 var(--sp-2); padding: 0; display: grid; gap: 12px; align-content: start; }
.aud-keys li { display: flex; align-items: center; gap: 14px; font-weight: 700; font-size: 1.125rem; }
.aud-figure {
  flex: none; height: clamp(210px, 24vw, 300px); width: auto; margin: 0 0 calc(var(--sp-4) * -1) auto;
  pointer-events: none;
  filter: drop-shadow(10px 16px 14px color-mix(in oklab, var(--face) 30%, rgba(90, 42, 20, .4) 70%));
}
.aud-figure[hidden] { display: none; }
.aud-figure.swap { animation: pop .55s cubic-bezier(.3, 1.5, .5, 1); }
@keyframes pop { from { scale: .8; opacity: .2; } 60% { scale: 1.04; opacity: 1; } }
kbd {
  display: inline-grid; place-items: center; flex: none;
  width: 48px; height: 48px; border-radius: 16px;
  font: 600 1.35rem/1 var(--f-object);
  background: var(--cream); color: var(--ink);
  box-shadow: 3px 5px 9px -3px color-mix(in oklab, var(--face) 40%, #6b3a22 60%), inset 3px 3px 5px rgba(255,255,255,.85), inset -3px -4px 6px color-mix(in oklab, var(--cream) 80%, #6b3a22 20%);
}
@media (min-width: 860px) {
  .aud-card { grid-template-columns: 1.3fr 1fr; padding: var(--sp-5); }
  /* text at the top, the figure standing on the card's bottom edge */
  .aud-text { display: flex; flex-direction: column; padding-top: var(--sp-4); }
  .aud-foot { flex: 1; align-items: stretch; }
  .aud-keys { align-self: flex-start; }
  .aud-figure { align-self: flex-end; }
  .aud-figure { margin-bottom: calc(var(--sp-5) * -1); }
}
/* Single column: the figure peeks over the card's top edge, beside the title (like the props
   on the slabs), instead of standing alone on a row of its own. */
@media (max-width: 859px) {
  .plates { margin-bottom: 92px; }
  .aud-figure {
    position: absolute; z-index: 2; top: -84px; right: 16px;
    height: 164px; margin: 0;
  }
  .aud-text::before { content: ""; float: right; width: 92px; height: 64px; }
  .aud-foot { margin-top: var(--sp-2); }
}
.aud-card .cradle { --c: color-mix(in oklab, var(--face) 70%, var(--cream) 30%); }
.aud-keys .bead { flex: none; width: 22px; height: 22px; margin: 0 13px; }
.bead { display: inline-block; width: 22px; height: 22px; border-radius: 50%; background: var(--face);
  box-shadow: 2px 3px 5px -1px color-mix(in oklab, var(--face) 40%, #6b3a22 60%), inset 2px 2px 3px rgba(255,255,255,.7), inset -2px -3px 4px color-mix(in oklab, var(--face) 75%, #5a2a14 25%); }

/* ---------- steps: three clay cards on a clay noodle ---------- */
.prop-corner { width: 110px; }
.steps .prop-star { top: -44px; right: 6%; width: 120px; }
.step-wrap { position: relative; margin-top: var(--sp-6); }
.noodle { display: none; }
.step-list { position: relative; z-index: 1; list-style: none; margin: 0; padding: 0; display: grid; gap: var(--sp-6); }
.step {
  --c: var(--cream);
  position: relative; border-radius: var(--r-card);
  padding: 0 var(--sp-4) var(--sp-4);
  display: grid; align-content: start;
}
.step p { color: var(--ink-2); margin: 0; }
.step-art {
  height: 180px; width: auto; max-width: 100%; object-fit: contain; margin: -64px auto var(--sp-2);
  filter: drop-shadow(8px 14px 12px rgba(61, 90, 46, .25));
}
.step-key {
  --c: var(--butter);
  position: absolute; top: -26px; left: -14px;
  display: grid; place-items: center;
  width: 72px; height: 72px; border-radius: 24px;
  font: 600 2.1rem/1 var(--f-object);
}
@media (min-width: 900px) {
  .step-list { grid-template-columns: 1fr 1fr 1fr; gap: 64px; }
  .noodle {
    display: block; position: absolute; z-index: 0; left: 0; top: 110px; width: 100%; height: 120px;
    fill: none; stroke-linecap: round; overflow: visible;
  }
  .noodle path { vector-effect: non-scaling-stroke; }
  .noodle-shadow { stroke: color-mix(in oklab, var(--sage) 40%, #3d5a2e 60%); stroke-width: 30px; opacity: .3; }
  .noodle-body { stroke: var(--butter); stroke-width: 28px; }
  .noodle-sheen { stroke: rgba(255, 255, 255, .55); stroke-width: 6px; }
}

/* ---------- pill box ---------- */
.pills { display: grid; gap: var(--sp-5); align-items: center; }
.pills-copy p { font-size: 1.1875rem; max-width: 46ch; }
@media (min-width: 900px) { .pills { grid-template-columns: 1.1fr .9fr; } }

.pillbox-stage { position: relative; width: min(380px, 100%); margin-top: var(--sp-5); }
.prop-clock { width: 96px; top: -58px; right: -12px; }
.prop-pill  { width: 84px; bottom: -34px; left: -18px; }
@media (min-width: 600px) {
  .prop-clock { width: 130px; top: -80px; right: -70px; }
  .prop-pill  { width: 110px; bottom: -48px; left: -54px; }
}
.pillbox {
  --c: var(--sky);
  position: relative;
  width: 100%;
  border-radius: 34px;
  padding: 16px;
  min-height: 190px;
}
.pillbox-inside {
  border-radius: 24px;
  min-height: 158px;
  padding: 22px 18px;
  background: color-mix(in oklab, var(--sky) 70%, #fff 30%);
  box-shadow: inset 8px 9px 16px color-mix(in oklab, var(--sky) 55%, #1d3a52 45%), inset -5px -5px 10px rgba(255,255,255,.55);
  display: grid; gap: 16px; align-content: start;
}
.pill-row { display: flex; gap: 14px; justify-content: center; }
.pill { width: 54px; height: 26px; border-radius: 999px; box-shadow: 4px 5px 8px -2px rgba(29, 58, 82, .45), inset 3px 3px 5px rgba(255,255,255,.7), inset -3px -4px 6px rgba(90, 42, 20, .25); }
.p1 { background: linear-gradient(90deg, #F4F0EA 50%, #E58E7A 50%); }
.p2 { background: #F5DA8C; width: 34px; height: 34px; }
.p3 { background: linear-gradient(90deg, #F4F0EA 50%, #8FBF86 50%); }
.pill-msg { font: 600 1.1875rem/1.35 var(--f-object); text-align: center; margin: 4px 0; color: #1F2E3A; }

.pillbox-lid {
  --c: var(--sky);
  position: absolute; inset: 0;
  width: 100%; border: 0; border-radius: 34px;
  background: var(--c); color: #1F2E3A;
  display: grid; place-content: center; gap: 10px; text-align: center;
  font-family: var(--f-object);
  cursor: pointer;
  transform-origin: 50% 0;
  box-shadow:
    16px 22px 36px -10px color-mix(in oklab, var(--c) 45%, #1d3a52 55%),
    -10px -10px 26px -4px rgba(255,255,255,.75),
    inset 8px 8px 14px rgba(255,255,255,.6),
    inset -10px -12px 20px color-mix(in oklab, var(--c) 78%, #1d3a52 22%);
  transition: transform .7s cubic-bezier(.3, 1.4, .45, 1), opacity .4s;
  z-index: 2;
}
html:not(.js) .pillbox-lid { display: none; }
.lid-label { font-size: 1.5rem; font-weight: 600; }
.lid-hint {
  justify-self: center;
  font: 800 1.0625rem/1 var(--f-body);
  padding: 14px 22px; border-radius: 18px;
  background: var(--cta); color: #fff;
  box-shadow: 6px 8px 16px -6px #0d3a26, inset 3px 3px 6px rgba(255,255,255,.25), inset -4px -5px 8px rgba(0,0,0,.25);
}
.pillbox[data-state="open"] .pillbox-lid { transform: rotateX(78deg) translateY(-30px); opacity: 0; pointer-events: none; }

/* ---------- safety: bento of clay cards ---------- */
.bento { list-style: none; padding: 0; margin: 0; display: grid; gap: 22px; }
.bento > li {
  --c: var(--cream);
  position: relative; overflow: hidden;
  border-radius: var(--r-card); padding: var(--sp-4);
  display: grid; grid-template-columns: auto 1fr; gap: 20px; align-items: start;
}
.bento h3 { font-size: 1.25rem; margin-bottom: 6px; }
.bento p { color: var(--ink-2); margin: 0; }
.bento > .bento-sos {
  --c: color-mix(in oklab, var(--red) 20%, var(--cream));
  grid-template-columns: 1fr !important; align-content: start;
  min-height: 300px;
}
.bento-sos h3 { font-size: clamp(1.5rem, 2.4vw, 1.875rem); }
.bento-sos p { font-size: 1.1875rem; max-width: 24ch; }
.bento > .bento-sos { padding-bottom: 96px; }
.bento-art {
  position: absolute; right: -18px; bottom: -26px; width: 130px; rotate: 12deg;
  pointer-events: none; filter: drop-shadow(8px 12px 12px rgba(120, 40, 30, .25));
}
.bento > .bento-pin { --c: color-mix(in oklab, var(--sage) 55%, var(--cream)); }
.cap {
  --c: var(--cream);
  display: grid; place-items: center;
  width: 68px; height: 68px; border-radius: 22px;
  font: 600 1.25rem/1 var(--f-object);
}
.bento > li:not(.bento-sos) .cap { --c: var(--bg); }
.cap-red { --c: var(--red); color: #fff; width: 84px; height: 84px; border-radius: 26px; font-size: 1.5rem; }
@media (min-width: 760px) {
  .bento { grid-template-columns: 1fr 1fr; }
  .bento > .bento-sos, .bento > .bento-pin { grid-column: span 2; }
  .bento > .bento-sos { min-height: 260px; padding-bottom: var(--sp-4); }
  .bento-art { width: 190px; right: -22px; bottom: -30px; }
}
@media (min-width: 1100px) {
  .bento { grid-template-columns: 1.15fr 1fr 1fr; }
  .bento > .bento-sos { grid-column: auto; grid-row: span 2; min-height: 0; }
  .bento > .bento-pin { grid-column: 1 / -1; }
  .bento-art { width: 230px; }
}

/* ---------- styles ---------- */
.style-groups { display: grid; gap: var(--sp-4); }
.sg { --c: var(--cream); --g: var(--apricot); border-radius: var(--r-card); padding: var(--sp-4); }
.sg-b { --g: var(--butter); }
.sg-c { --g: var(--sky); }
.sg h3 {
  --c: var(--g);
  display: inline-block; padding: 9px 18px; border-radius: 999px; margin-bottom: var(--sp-3);
  font-size: 1rem; text-transform: uppercase; letter-spacing: .05em;
}
.sg ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.sg li { display: block; }
.style-btn {
  display: grid; grid-template-columns: 22px 1fr; column-gap: 14px; align-items: start;
  width: 100%; min-height: 48px; padding: 8px 10px; margin: -8px -10px; box-sizing: content-box;
  border: 0; border-radius: 16px; background: transparent; cursor: pointer; text-align: left;
  font: 400 1.0625rem/1.5 var(--f-body); color: var(--ink-2);
}
.style-btn:hover { background: color-mix(in oklab, var(--g) 30%, transparent); }
.style-btn .bead { --face: var(--g); grid-row: span 2; margin-top: 4px; }
.style-btn b { color: var(--ink); display: block; font-size: 1.125rem; }
.menus { margin: var(--sp-4) 0 0; font-size: 1.1875rem; }
@media (min-width: 900px) { .style-groups { grid-template-columns: repeat(3, 1fr); } }

/* ---------- family panel ---------- */
.panel { display: grid; gap: var(--sp-6); align-items: center; }
.panel-media { position: relative; }
.panel-photo { margin: 0; border-radius: 36px; overflow: hidden; transform: rotate(1.5deg);
  box-shadow: 18px 24px 44px -12px color-mix(in oklab, var(--apricot) 40%, #6b3a22 60%), -10px -10px 26px -4px rgba(255,255,255,.75);
}
.photo-chip {
  --c: var(--cream);
  position: absolute; left: 18px; bottom: -26px; z-index: 2; margin: 0;
  display: inline-flex; align-items: center; gap: 10px;
  padding: 10px 18px 10px 10px; border-radius: 20px;
  font-weight: 700; rotate: -2deg;
}
.photo-chip-icon {
  display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 12px;
  background: var(--sage); color: var(--ink); font-size: 1.1rem;
}
.prop-panel-star { width: 100px; top: -40px; right: -14px; }
.panel-copy > p { font-size: 1.1875rem; }
.mailbox { --c: var(--sage); border-radius: var(--r-card); padding: var(--sp-4); margin-top: var(--sp-4); }
.mailbox-title { font-weight: 800; }
.mailbox ul { margin: 0; padding-left: 1.2em; display: grid; gap: 8px; }
.mailbox li::marker { color: var(--cta); }
@media (min-width: 900px) { .panel { grid-template-columns: .9fr 1.1fr; gap: var(--sp-6); } }

/* ---------- stories ---------- */
.stories { display: grid; gap: var(--sp-4); }
.story { --c: var(--butter); position: relative; margin: 0; border-radius: var(--r-card); padding: var(--sp-4); transform: rotate(-1deg); }
.story-b { --c: var(--stone); transform: rotate(1deg); }
.story p { font-size: 1.375rem; font-weight: 700; line-height: 1.4; }
.story footer { display: flex; align-items: center; gap: 14px; font-weight: 700; color: var(--ink-2); }
.story-avatar {
  width: 64px; height: 64px; border-radius: 50%; object-fit: cover; flex: none;
  background: var(--cream); border: 3px solid var(--cream);
  box-shadow: 4px 6px 10px -4px color-mix(in oklab, var(--c) 40%, #6b3a22 60%);
}
.stories-note { font-size: 1rem; color: var(--ink-2); }
@media (min-width: 900px) {
  .stories { grid-template-columns: 1fr 1fr; gap: var(--sp-5); }
  .story-b { margin-top: 56px; }
  .stories-note { grid-column: 1 / -1; }
}

/* ---------- pricing ---------- */
.price .prop-price-key { top: -48px; left: 8%; width: 104px; }
.currency { --c: var(--cream); display: inline-flex; gap: 6px; padding: 6px; border-radius: 999px; margin-bottom: var(--sp-5); }
.currency button {
  min-height: 52px; padding: 0 22px; border: 0; border-radius: 999px;
  background: transparent; color: var(--ink);
  font: 800 1.0625rem/1 var(--f-body); cursor: pointer;
}
.currency button[aria-checked="true"] { background: var(--ink); color: var(--bg); }
.coins { display: grid; gap: var(--sp-6); }
.coin-item { display: grid; justify-items: start; }
/* single column: centre the coin on its tray so the tray stays inside the slab */
@media (max-width: 759px) { .coin-flip { justify-self: center; } }
.coin-item h3 { margin-top: var(--sp-5); }
.coin-item p { color: var(--ink-2); max-width: 40ch; }
.coin {
  --c: var(--butter);
  width: 240px; height: 240px; border-radius: 50%;
  display: grid; place-content: center; text-align: center;
  font-family: var(--f-object);
  outline: 3px dashed color-mix(in oklab, var(--c) 70%, #6b3a22 30%);
  outline-offset: -24px;
}
.coin-big { font-size: 3.1rem; font-weight: 600; line-height: 1; }
.coin-small { font-size: 1.0625rem; font-weight: 500; margin-top: 6px; color: var(--ink-2); }
.coin-flip { position: relative; width: 240px; height: 240px; perspective: 800px; }
/* the clay tray each coin rests on */
.coin-flip::after {
  content: ""; position: absolute; z-index: -1; left: -14%; right: -14%; bottom: -30px; height: 70px; border-radius: 50%;
  background: color-mix(in oklab, var(--sky) 55%, var(--cream));
  box-shadow:
    12px 16px 26px -10px color-mix(in oklab, var(--sky) 40%, #1d3a52 60%),
    inset 6px 8px 12px rgba(255, 255, 255, .55),
    inset -8px -10px 16px color-mix(in oklab, var(--sky) 75%, #1d3a52 25%);
}
.coin-face { position: absolute; inset: 0; backface-visibility: hidden; transition: transform .8s cubic-bezier(.3, 1.4, .45, 1); }
.coin-usd { --c: var(--apricot); transform: rotateY(180deg); }
/* The app coin keeps its sage clay on both faces. */
.coin-app { --c: var(--sage); }
.coin-flip[data-cur="usd"] .coin-cop { transform: rotateY(-180deg); }
.coin-flip[data-cur="usd"] .coin-usd { transform: rotateY(0); }
.price-cta { display: grid; justify-items: center; margin-top: var(--sp-6); text-align: center; }
@media (min-width: 760px) { .coins { grid-template-columns: 1fr 1fr; } }

/* ---------- faq ---------- */
.faq { display: grid; gap: var(--sp-3); align-items: start; }
.faq h2 { margin-bottom: var(--sp-3); }
/* single column: the figure stands beside the title, not on a row of its own */
.faq-side { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--sp-2); }
.faq-figure {
  flex: none; height: 170px; width: auto;
  filter: drop-shadow(10px 16px 14px rgba(107, 58, 34, .22));
}
details { --c: var(--cream); border-radius: 24px; margin-bottom: 18px; }
summary { min-height: 64px; display: flex; align-items: center; padding: 14px 26px; font-weight: 800; font-size: 1.1875rem; cursor: pointer; list-style: none; border-radius: 24px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; margin-left: auto; padding-left: 16px; font: 600 1.6rem/1 var(--f-object); }
details[open] summary::after { content: "–"; }
details p { padding: 0 26px 22px; margin: 0; color: var(--ink-2); }
@media (min-width: 900px) {
  .faq { grid-template-columns: .8fr 1.2fr; gap: var(--sp-6); }
  .faq-side { display: block; position: sticky; top: var(--sp-4); }
  .faq-figure { height: 380px; margin: var(--sp-3) 0 0 var(--sp-5); }
}

/* ---------- closing ---------- */
.finale { display: grid; gap: var(--sp-5); align-items: center; }
.finale .prop-finale-chat { top: -52px; right: 7%; width: 120px; }
.finale-photo {
  margin: 0; border-radius: 36px; overflow: hidden; transform: rotate(-1.5deg);
  box-shadow: 18px 24px 44px -12px color-mix(in oklab, var(--apricot) 40%, #6b3a22 60%), -10px -10px 26px -4px rgba(255,255,255,.6);
}
.finale-copy h2 { font-size: clamp(2.2rem, 4.8vw, 3.6rem); }
.finale-copy > p { font-size: 1.25rem; color: var(--ink-2); max-width: 32ch; }
.finale-copy .cta-row { margin: var(--sp-3) 0 0; }
@media (min-width: 900px) { .finale { grid-template-columns: 1.15fr .85fr; gap: var(--sp-6); } }

/* ---------- footer ---------- */
.foot {
  max-width: 1240px; margin: 0 auto; padding: var(--sp-5) 16px var(--sp-6);
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: var(--sp-3);
  color: var(--ink-2);
}
.foot p { margin: 0; }
.foot .brand { color: var(--ink); margin-bottom: 8px; }
.foot ul { display: flex; flex-wrap: wrap; gap: 4px; list-style: none; margin: 0; padding: 0; }
.foot nav a { display: inline-flex; align-items: center; min-height: 48px; padding: 0 14px; border-radius: 999px; font-weight: 700; text-decoration: none; }
.foot nav a:hover { color: var(--ink); background: rgba(255,255,255,.55); }

/* ---------- motion ---------- */
@supports (animation-timeline: view()) {
  .aud-card, .pillbox, .sg, .story, .coin-item, .step, .bento > li {
    animation: rise linear both;
    animation-timeline: view();
    animation-range: entry 0% entry 70%;
  }
  @keyframes rise { from { transform: translateY(28px) scale(.97); } }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .cradle { transform: none; }
  .ribbon { rotate: none; -webkit-mask-image: none; mask-image: none; }
  .ribbon-track { width: auto; }
  .ribbon ul { flex-wrap: wrap; justify-content: center; }
  .ribbon ul[aria-hidden] { display: none; }
}
