/* ==========================================================================
   Tilly — landing page
   Playful Geometric: "stable grid, wild decoration".
   0 Fonts · 1 Tokens · 2 Base · 3 Layout · 4 Components · 5 Tilly illustration
   6 Sections · 7 Motion · 8 Responsive
   ========================================================================== */

/* 0. Fonts (self-hosted, SIL OFL 1.1; licences in fonts/) ------------------- */
/* Outfit · latin-ext */
@font-face {
  font-family: "Outfit";
  font-style: normal;
  font-weight: 700 800;
  font-display: swap;
  src: url("fonts/outfit-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* Outfit · latin */
@font-face {
  font-family: "Outfit";
  font-style: normal;
  font-weight: 700 800;
  font-display: swap;
  src: url("fonts/outfit-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* Plus Jakarta Sans · latin-ext */
@font-face {
  font-family: "Plus Jakarta Sans";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("fonts/plus-jakarta-sans-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* Plus Jakarta Sans · latin */
@font-face {
  font-family: "Plus Jakarta Sans";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("fonts/plus-jakarta-sans-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* 1. Tokens ---------------------------------------------------------------- */
:root {
  color-scheme: light;

  /* colour */
  --background: #FFFDF5;
  --foreground: #1E293B;
  --muted: #F1F5F9;
  --muted-foreground: #64748B;
  --muted-ink: #475569;            /* secondary text on --muted backgrounds (AA) */
  --accent: #8B5CF6;
  --accent-foreground: #FFFFFF;
  --accent-ink: #6D28D9;          /* violet for small text: AA on cream and white */
  --secondary: #F472B6;
  --tertiary: #FBBF24;
  --quaternary: #34D399;
  --border: #E2E8F0;
  --input: #FFFFFF;
  --input-border: #CBD5E1;
  --card: #FFFFFF;
  --ring: #8B5CF6;

  /* the product itself, not the UI */
  --tilly-blue: #2563EB;
  --tilly-body: var(--tilly-blue);
  --tilly-face: #0F172A;
  --tilly-neck: #CBD5E1;

  /* type: Major Third (1.25) from an 18px base */
  --font-heading: "Outfit", system-ui, sans-serif;
  --font-body: "Plus Jakarta Sans", system-ui, sans-serif;
  --fs--1: 0.9rem;
  --fs-0: 1.125rem;
  --fs-1: 1.406rem;
  --fs-2: 1.758rem;
  --fs-3: 2.197rem;
  --fs-4: clamp(2.1rem, 1.5rem + 2.4vw, 2.747rem);
  --fs-5: clamp(2.6rem, 1.6rem + 4.2vw, 4.291rem);

  /* shape */
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-full: 9999px;
  --radius-bubble: var(--radius-md) var(--radius-md) var(--radius-md) 0;
  --radius-arch: 9999px 9999px var(--radius-md) var(--radius-md);
  --radius-leaf: 56px 0;
  --bw: 2px;

  /* hard "pop" shadows */
  --pop: 4px;
  --pop-hover: 6px;
  --pop-active: 2px;
  --sticker: 8px;

  /* motion */
  --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
  --dur: 300ms;

  /* layout */
  --container: 72rem;
  --gutter: clamp(1rem, 4vw, 2rem);
  --section-y: 6rem;
  --header-h: 4.5rem;
}

/* 2. Base ------------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 1rem);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--background);
  color: var(--foreground);
  font-family: var(--font-body);
  font-size: var(--fs-0);
  line-height: 1.6;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }

h1, h2, h3 {
  margin: 0;
  font-family: var(--font-heading);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.015em;
  text-wrap: balance;
}
h2 { font-size: var(--fs-4); }
h3 { font-size: var(--fs-2); font-weight: 700; }

p { margin: 0; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; }
figure { margin: 0; }
a { color: inherit; }

:focus-visible {
  outline: 3px solid var(--ring);
  outline-offset: 3px;
}

::selection { background: var(--tertiary); color: var(--foreground); }

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

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 1rem; top: -4rem;
  z-index: 100;
  padding: .75rem 1.25rem;
  background: var(--tertiary);
  border: var(--bw) solid var(--foreground);
  border-radius: var(--radius-full);
  font-weight: 700;
  text-decoration: none;
  transition: top .2s;
}
.skip-link:focus { top: 1rem; }

/* 3. Layout ---------------------------------------------------------------- */
.container {
  width: min(100% - 2 * var(--gutter), var(--container));
  margin-inline: auto;
}

.section { position: relative; padding-block: var(--section-y); }
.section--muted { background: var(--muted); border-block: var(--bw) solid var(--foreground); }
.section--dots {
  background:
    radial-gradient(circle, rgb(30 41 59 / .14) 1.4px, transparent 1.8px) 0 0 / 24px 24px,
    var(--background);
}

.section-head {
  display: grid;
  justify-items: center;
  gap: 1rem;
  max-width: 46rem;
  margin-inline: auto;
  text-align: center;
}

.lead { font-size: 1.25rem; line-height: 1.55; }

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
.split__text { display: grid; gap: 1.25rem; justify-items: start; }

/* 4. Components ------------------------------------------------------------ */

/* Icons */
.icon {
  display: inline-block;
  flex-shrink: 0;
  width: 1.5rem; height: 1.5rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Tones: set --tone / --tone-ink for anything coloured "confetti" style */
[data-tone="violet"] { --tone: var(--accent);     --tone-ink: var(--accent-foreground); }
[data-tone="pink"]   { --tone: var(--secondary);  --tone-ink: var(--foreground); }
[data-tone="yellow"] { --tone: var(--tertiary);   --tone-ink: var(--foreground); }
[data-tone="mint"]   { --tone: var(--quaternary); --tone-ink: var(--foreground); }

/* Eyebrow label */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  padding: .3rem .9rem .3rem .45rem;
  background: var(--card);
  border: var(--bw) solid var(--foreground);
  border-radius: var(--radius-full);
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.eyebrow::before {
  content: "";
  width: .85rem; height: .85rem;
  border-radius: 50%;
  background: var(--dot, var(--secondary));
  border: var(--bw) solid var(--foreground);
}

/* Buttons */
.btn {
  --o: var(--pop);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .75rem;
  min-height: 3.25rem;
  padding: .7rem 1.6rem;
  border: var(--bw) solid var(--foreground);
  border-radius: var(--radius-full);
  background: transparent;
  color: var(--foreground);
  font-family: var(--font-heading);
  font-size: 1.1875rem;          /* ≥ 18.66px bold = "large text" for white-on-violet contrast */
  font-weight: 700;
  line-height: 1.1;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition:
    transform var(--dur) var(--ease-bounce),
    box-shadow var(--dur) var(--ease-bounce),
    background-color var(--dur) ease;
}
.btn--primary {
  background: var(--accent);
  color: var(--accent-foreground);
  box-shadow: var(--o) var(--o) 0 0 var(--foreground);
}
.btn--primary:hover { --o: var(--pop-hover); transform: translate(-2px, -2px); }
.btn--primary:active { --o: var(--pop-active); transform: translate(2px, 2px); }
.btn--secondary:hover { background: var(--tertiary); }
.btn--secondary:active { transform: translate(1px, 1px); }
.btn--sm { min-height: 3rem; padding: .5rem 1.15rem; }
.btn:disabled { cursor: progress; opacity: .7; }

.btn__icon {
  display: grid;
  place-items: center;
  width: 2rem; height: 2rem;
  margin-right: -.9rem;
  border: var(--bw) solid var(--foreground);
  border-radius: 50%;
  background: var(--card);
  color: var(--foreground);
}
.btn__icon .icon { width: 1.05rem; height: 1.05rem; transition: transform var(--dur) var(--ease-bounce); }
.btn:hover .btn__icon .icon { transform: translateX(2px); }

.icon-btn {
  --o: var(--pop);
  display: grid;
  place-items: center;
  width: 3rem; height: 3rem;
  padding: 0;
  border: var(--bw) solid var(--foreground);
  border-radius: 50%;
  background: var(--card);
  color: var(--foreground);
  box-shadow: var(--o) var(--o) 0 0 var(--foreground);
  cursor: pointer;
  transition: transform var(--dur) var(--ease-bounce), box-shadow var(--dur) var(--ease-bounce), background-color var(--dur);
}
.icon-btn:hover { --o: var(--pop-hover); transform: translate(-2px, -2px); background: var(--tertiary); }
.icon-btn:active { --o: var(--pop-active); transform: translate(2px, 2px); }
.icon-btn .icon { width: 1.2rem; height: 1.2rem; }

/* Sticker card */
.card {
  --card-shadow: var(--border);
  position: relative;
  background: var(--card);
  border: var(--bw) solid var(--foreground);
  border-radius: var(--radius-md);
  box-shadow: var(--sticker) var(--sticker) 0 0 var(--card-shadow);
  transition: transform var(--dur) var(--ease-bounce), box-shadow var(--dur) var(--ease-bounce);
}
.card--featured { --card-shadow: var(--secondary); }
.card--hover:hover { transform: rotate(-1deg) scale(1.02); }
.card--hover:hover .icon-badge { animation: wiggle .5s ease-in-out; }

/* Icon in a shape — never floating alone */
.icon-badge {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 3.5rem; height: 3.5rem;
  border: var(--bw) solid var(--foreground);
  border-radius: 50%;
  background: var(--tone, var(--accent));
  color: var(--tone-ink, var(--accent-foreground));
  box-shadow: 3px 3px 0 0 var(--foreground);
}
.icon-badge--sm { width: 2.25rem; height: 2.25rem; box-shadow: 2px 2px 0 0 var(--foreground); }
.icon-badge--sm .icon { width: 1.1rem; height: 1.1rem; }

.tick {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 1.5rem; height: 1.5rem;
  border: var(--bw) solid var(--foreground);
  border-radius: 50%;
  background: var(--quaternary);
  color: var(--foreground);
}
.tick .icon { width: .85rem; height: .85rem; stroke-width: 3.5; }

.ticks { list-style: none; display: grid; gap: .6rem; }
.ticks li { display: flex; align-items: center; gap: .65rem; font-weight: 500; }

/* Chip */
.chip {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .35rem .9rem .35rem .4rem;
  background: var(--card);
  border: var(--bw) solid var(--foreground);
  border-radius: var(--radius-full);
  font-size: .95rem;
  font-weight: 500;
  line-height: 1.2;
}
.chip--sm {
  padding: .25rem .75rem;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
}

/* Speech bubble */
.bubble {
  position: relative;
  padding: .85rem 1.15rem;
  background: var(--card);
  border: var(--bw) solid var(--foreground);
  border-radius: var(--radius-bubble);
  box-shadow: var(--pop) var(--pop) 0 0 var(--foreground);
  font-weight: 500;
  line-height: 1.45;
}
.bubble--muted { background: var(--muted); box-shadow: none; }
.bubble strong { display: block; font-family: var(--font-heading); }

/* Highlighted word with a squiggle underline */
.squiggle { position: relative; z-index: 0; white-space: nowrap; }
.squiggle::after {
  content: "";
  position: absolute;
  z-index: -1;
  left: -2%; right: -2%;
  bottom: -.14em;
  height: .34em;
  background: var(--squiggle, var(--secondary));
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='12' viewBox='0 0 40 12'%3E%3Cpath d='M0 6q5-6 10 0t10 0 10 0 10 0' fill='none' stroke='%23000' stroke-width='3.5' stroke-linecap='round'/%3E%3C/svg%3E") 0 50% / 1.1em 100% repeat-x;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='12' viewBox='0 0 40 12'%3E%3Cpath d='M0 6q5-6 10 0t10 0 10 0 10 0' fill='none' stroke='%23000' stroke-width='3.5' stroke-linecap='round'/%3E%3C/svg%3E") 0 50% / 1.1em 100% repeat-x;
}

/* Word in a pill (the wordmark treatment) */
.word-pill {
  display: inline-block;
  padding: 0 .32em .06em;
  background: var(--accent);
  color: var(--accent-foreground);
  border: var(--bw) solid var(--foreground);
  border-radius: var(--radius-full);
  box-shadow: 5px 5px 0 0 var(--foreground);
  transform: rotate(-3deg);
}

/* Logo */
.logo { display: inline-flex; align-items: center; gap: .6rem; text-decoration: none; }
.logo__face {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .22rem;
  width: 2.4rem; height: 2.4rem;
  border-radius: 50%;
  background: var(--tilly-face);
  box-shadow: 0 0 0 4px var(--card), 0 0 0 6px var(--foreground);
}
.logo__face i { width: .38rem; height: .95rem; border-radius: var(--radius-full); background: #fff; }
.logo__word {
  padding: .2rem .8rem .32rem;
  background: var(--accent);
  color: var(--accent-foreground);
  border: var(--bw) solid var(--foreground);
  border-radius: var(--radius-full);
  box-shadow: 3px 3px 0 0 var(--foreground);
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 800;
  line-height: 1;
}

/* Photo frames with varied radii */
.photo { position: relative; }
.photo img {
  width: 100%; height: 100%;
  object-fit: cover;
  border: var(--bw) solid var(--foreground);
  box-shadow: var(--sticker) var(--sticker) 0 0 var(--foreground);
}
.photo--leaf img   { border-radius: var(--radius-leaf); }
.photo--bubble img { border-radius: var(--radius-lg) var(--radius-lg) var(--radius-lg) 0; }
.photo--arch img   { border-radius: var(--radius-arch); }
.photo figcaption { position: absolute; left: 1rem; bottom: 1rem; }

/* Decorative confetti */
.confetti { position: absolute; pointer-events: none; }
.confetti path { stroke: var(--foreground); stroke-width: 2.5; stroke-linejoin: round; stroke-linecap: round; }
.confetti--tri { width: 3.2rem; top: 6%; right: 4%; rotate: 12deg; }
.confetti--tri path { fill: var(--secondary); }
.confetti--dot {
  width: 1.6rem; height: 1.6rem;
  left: 2%; bottom: 22%;
  border-radius: 50%;
  background: var(--tertiary);
  border: var(--bw) solid var(--foreground);
}
.confetti--square {
  width: 2.2rem; height: 2.2rem;
  right: 0; bottom: 30%;
  background: var(--accent);
  border: var(--bw) solid var(--foreground);
  border-radius: 6px;
  rotate: 18deg;
}
.confetti--squiggle { width: 7rem; left: 6%; top: 10%; }
.confetti--squiggle path { fill: none; stroke: var(--accent); stroke-width: 4; }

/* Form */
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.field { display: grid; gap: .45rem; align-content: start; }
.field--full { grid-column: 1 / -1; }
.label { font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.label__opt { margin-left: .35rem; color: var(--muted-foreground); font-weight: 500; letter-spacing: .04em; text-transform: none; }

.input {
  width: 100%;
  min-height: 3.25rem;
  padding: .75rem 1rem;
  background: var(--input);
  color: var(--foreground);
  border: var(--bw) solid var(--input-border);
  border-radius: var(--radius-sm);
  box-shadow: 4px 4px 0 0 transparent;
  font: inherit;
  transition: border-color .2s, box-shadow .2s var(--ease-bounce);
}
.input:focus { outline: 2px solid transparent; border-color: var(--accent); box-shadow: 4px 4px 0 0 var(--accent); }
.input[aria-invalid="true"] { border-color: #BE185D; }
textarea.input { resize: vertical; min-height: 6rem; }
select.input {
  appearance: none;
  padding-right: 2.75rem;
  background: var(--input) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231E293B' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right .9rem center / 1.2rem;
}

.check { display: flex; align-items: flex-start; gap: .75rem; font-weight: 500; cursor: pointer; }
.check input { width: 1.35rem; height: 1.35rem; margin: .15rem 0 0; accent-color: var(--accent); flex-shrink: 0; }

/* 5. Tilly illustration ----------------------------------------------------- */
.tilly { display: block; width: 100%; height: auto; overflow: visible; }
.tilly__shadow { fill: var(--foreground); }
.tilly__body { fill: var(--tilly-body); stroke: var(--foreground); stroke-width: 3; stroke-linejoin: round; transition: fill .45s ease; }
.tilly__neck { fill: var(--tilly-neck); stroke: var(--foreground); stroke-width: 3; }
.tilly__head { fill: #fff; stroke: var(--foreground); stroke-width: 3; }
.tilly__face { fill: var(--tilly-face); }
.tilly__look { transform: translate(var(--lx, 0px), var(--ly, 0px)); transition: transform .35s var(--ease-bounce); }
.tilly .eye, .tilly .bars rect { fill: #fff; }
.face--happy path, .face--sleep path { fill: none; stroke: #fff; stroke-width: 11; stroke-linecap: round; }
.pill-a { fill: #fff; }
.pill-b { fill: var(--tilly-body); transition: fill .45s ease; }
.face--medicine text { fill: #fff; font-family: var(--font-heading); font-size: 17px; font-weight: 700; }

.face {
  opacity: 0;
  transform: scale(.4);
  transform-box: fill-box;
  transform-origin: center;
  transition: opacity .16s ease, transform .45s var(--ease-bounce);
}
.tilly[data-face="awake"] .face--awake,
.tilly[data-face="talk"] .face--talk,
.tilly[data-face="happy"] .face--happy,
.tilly[data-face="sleep"] .face--sleep,
.tilly[data-face="medicine"] .face--medicine { opacity: 1; transform: none; }

.face--awake .eye { transform-box: fill-box; transform-origin: center; animation: blink 5.5s infinite; }
.face--talk .bars rect { transform-box: fill-box; transform-origin: center; animation: talk .9s ease-in-out infinite; }
.face--talk .bars rect:nth-child(2) { animation-delay: -.25s; }
.face--talk .bars rect:nth-child(3) { animation-delay: -.5s; }
.face--talk .bars rect:nth-child(4) { animation-delay: -.15s; }
.face--talk .bars rect:nth-child(5) { animation-delay: -.4s; }
.face--medicine { animation: nudge 1.6s var(--ease-bounce) infinite; }

.tilly__zz { opacity: 0; transition: opacity .3s; }
.tilly__zz text { fill: var(--accent); stroke: var(--foreground); stroke-width: 1.5px; paint-order: stroke; font-family: var(--font-heading); font-weight: 800; font-size: 30px; }
.tilly__zz text + text { font-size: 22px; }
.tilly[data-face="sleep"] .tilly__zz { opacity: 1; }
.tilly[data-face="sleep"] .tilly__zz text { animation: float 2.6s ease-in-out infinite; }
.tilly[data-face="sleep"] .tilly__zz text + text { animation-delay: -1.3s; }

/* 6. Sections ---------------------------------------------------------------- */

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgb(255 253 245 / .9);
  -webkit-backdrop-filter: blur(10px);
          backdrop-filter: blur(10px);
  border-bottom: var(--bw) solid transparent;
  transition: border-color .2s;
}
.site-header.is-scrolled { border-bottom-color: var(--foreground); }
.site-header__inner { display: flex; align-items: center; gap: 1rem; min-height: var(--header-h); }
.nav { margin-left: auto; }
.nav ul { display: flex; gap: .15rem; list-style: none; }
.nav a {
  display: inline-block;
  padding: .45rem .85rem;
  border: var(--bw) solid transparent;
  border-radius: var(--radius-full);
  font-size: 1rem;
  font-weight: 500;
  text-decoration: none;
  transition: background-color .2s, border-color .2s;
}
.nav a:hover { background: var(--card); border-color: var(--foreground); }
.site-header__cta { margin-left: .5rem; }

/* Hero */
.hero { position: relative; padding-block: clamp(2.5rem, 6vw, 4.5rem) clamp(4rem, 8vw, 6.5rem); }
.hero__grid { display: grid; grid-template-columns: 1.08fr .92fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.hero__copy { position: relative; z-index: 1; display: grid; justify-items: start; gap: 1.5rem; }
.hero__sun {
  position: absolute;
  z-index: -1;
  width: clamp(14rem, 27vw, 23rem);
  aspect-ratio: 1;
  left: clamp(-8rem, -9vw, -4rem);
  top: -1.5rem;
  border-radius: 50%;
  background: var(--tertiary);
}
.hero__title { display: grid; gap: .6rem; }
.hero__hello { font-size: var(--fs-5); line-height: 1.12; }
.hero__sub { font-size: var(--fs-3); font-weight: 700; line-height: 1.15; max-width: 22ch; }
.hero__lead { max-width: 34rem; font-size: 1.25rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 1rem 1.25rem; }
.proof { display: flex; flex-wrap: wrap; gap: .6rem; list-style: none; }

.hero__art { position: relative; display: grid; justify-items: center; gap: 1.5rem; }
.stage { position: relative; width: min(100%, 30rem); aspect-ratio: 1 / 1.06; display: grid; place-items: end center; }
.stage__blob {
  position: absolute;
  inset: 10% 2% 0 6%;
  border: var(--bw) solid var(--foreground);
  border-radius: 58% 42% 46% 54% / 52% 44% 56% 48%;
  background:
    radial-gradient(circle, rgb(30 41 59 / .3) 1.6px, transparent 2px) 0 0 / 18px 18px,
    var(--quaternary);
  box-shadow: var(--sticker) var(--sticker) 0 0 var(--foreground);
}
.stage .tilly { position: relative; width: 70%; margin-bottom: 1%; }
.stage__bubble { position: absolute; top: 0; left: -4%; max-width: 15.5rem; transform-origin: bottom left; }
.stage__bubble.is-popping { animation: pop .5s var(--ease-bounce); }
.stage__pause { position: absolute; right: 3%; bottom: 6%; }
.stage__pause .icon--play,
.stage__pause[aria-pressed="true"] .icon--pause { display: none; }
.stage__pause[aria-pressed="true"] .icon--play { display: block; }

.swatches { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: .7rem; }
.swatches__label { margin-right: .25rem; font-size: .8rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.swatch {
  position: relative;
  width: 2.25rem; height: 2.25rem;
  padding: 0;
  border: var(--bw) solid var(--foreground);
  border-radius: 50%;
  background: var(--sw);
  cursor: pointer;
  transition: transform var(--dur) var(--ease-bounce), box-shadow var(--dur) var(--ease-bounce);
}
.swatch::before { content: ""; position: absolute; inset: -6px; }
.swatch:hover { transform: scale(1.12); }
.swatch[aria-pressed="true"] { box-shadow: 3px 3px 0 0 var(--foreground); transform: translate(-2px, -2px) scale(1.12); }

/* Marquee */
.marquee { position: relative; z-index: 2; overflow: hidden; padding-block: 1.75rem; margin-block: -1.75rem; }
.marquee__band {
  width: 104%;
  margin-left: -2%;
  background: var(--tertiary);
  border-block: var(--bw) solid var(--foreground);
  transform: rotate(-1.5deg);
}
.marquee__track { display: flex; width: max-content; animation: marquee 36s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__group { display: flex; align-items: center; gap: 1.75rem; padding: .95rem 1.75rem .95rem 0; }
.marquee__group span { font-family: var(--font-heading); font-size: 1.5rem; font-weight: 800; white-space: nowrap; }
.m-shape { display: block; flex-shrink: 0; width: 1.1rem; height: 1.1rem; border: var(--bw) solid var(--foreground); }
.m-shape--circle { border-radius: 50%; background: var(--secondary); }
.m-shape--square { background: var(--accent); border-radius: 3px; rotate: 15deg; }
.m-shape--tri {
  border: 0;
  width: 1.3rem;
  background: var(--foreground);
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
}

/* The gap */
.split__photo { aspect-ratio: 3 / 2; }
.photo__dots {
  position: absolute;
  z-index: -1;
  inset: -1.5rem auto auto -1.5rem;
  width: 45%; height: 60%;
  border-radius: var(--radius-lg);
  background: radial-gradient(circle, var(--secondary) 2px, transparent 2.5px) 0 0 / 16px 16px;
}

.day { margin-top: 4.5rem; }
.day__caption { margin-bottom: 3.75rem; text-align: center; font-weight: 700; }
.day__bar {
  --cols: 60fr 60fr 540fr 60fr 180fr;
  display: grid;
  grid-template-columns: var(--cols);
  min-height: 6rem;
  list-style: none;
  border: var(--bw) solid var(--foreground);
  border-radius: var(--radius-full);
  box-shadow: 6px 6px 0 0 var(--foreground);
  background: var(--card);
}
.seg { position: relative; display: grid; place-items: center; min-width: 0; }
.seg:first-child { border-radius: var(--radius-full) 0 0 var(--radius-full); }
.seg:last-child  { border-radius: 0 var(--radius-full) var(--radius-full) 0; }
.seg--alone { background: repeating-linear-gradient(-45deg, var(--card) 0 10px, rgb(244 114 182 / .3) 10px 20px); }
.seg--visit { background: var(--tone); border-inline: var(--bw) solid var(--foreground); }
.seg--visit .icon-badge { background: var(--card); color: var(--foreground); }
.seg__tag {
  position: absolute;
  bottom: calc(100% + .85rem);
  left: 50%;
  translate: -50% 0;
  padding: .3rem .8rem;
  background: var(--tone);
  border: var(--bw) solid var(--foreground);
  border-radius: var(--radius-bubble);
  font-size: .9rem;
  font-weight: 700;
  white-space: nowrap;
}
.seg__label { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: .5rem .75rem; padding: .5rem; text-align: center; }
.seg__label strong {
  padding: .2rem .7rem;
  background: var(--card);
  border-radius: var(--radius-full);
  font-family: var(--font-heading);
  font-size: 1.15rem;
}
.seg__time { display: none; }
.day__ticks {
  display: grid;
  grid-template-columns: 60fr 60fr 540fr 60fr 180fr;
  margin-top: .85rem;
  color: var(--muted-foreground);
  font-size: .85rem;
  font-weight: 500;
}
.day__ticks span { display: flex; justify-content: space-between; }
.day__ticks b { font-weight: 500; }

.scatter { display: flex; flex-direction: column; align-items: center; gap: 1.25rem; margin-top: 4.5rem; }
.scatter__bits { display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem; list-style: none; }
.scatter__bit {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  padding: .45rem 1rem .45rem .45rem;
  background: var(--card);
  border: var(--bw) solid var(--foreground);
  border-radius: var(--radius-full);
  box-shadow: 3px 3px 0 0 var(--foreground);
  font-weight: 500;
  rotate: var(--r, 0deg);
}
.scatter__arrow { display: grid; place-items: center; width: 3rem; height: 3rem; border-radius: 50%; background: var(--foreground); color: var(--background); rotate: 90deg; }
.scatter__one {
  display: inline-flex;
  align-items: center;
  gap: .9rem;
  padding: .75rem 1.5rem .75rem .75rem;
  background: var(--card);
  border: var(--bw) solid var(--foreground);
  border-radius: var(--radius-bubble);
  box-shadow: 6px 6px 0 0 var(--accent);
}
.scatter__one strong { display: block; font-family: var(--font-heading); font-size: 1.2rem; line-height: 1.2; }

/* How it works */
.features { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 2.5rem; margin-top: 5rem; }
.features__line { position: absolute; z-index: 0; top: 46%; left: -3%; width: 106%; height: 5rem; overflow: visible; }
.features__line path { fill: none; stroke: var(--foreground); stroke-width: 2.5; stroke-dasharray: 10 10; vector-effect: non-scaling-stroke; }
.feature { z-index: 1; display: flex; flex-direction: column; }
.feature__badge { position: absolute; top: 0; left: 1.5rem; translate: 0 -50%; z-index: 2; }
.feature__head {
  position: relative;
  padding: 2.75rem 1.5rem 1.25rem;
  background: var(--tone);
  color: var(--tone-ink);
  border-bottom: var(--bw) solid var(--foreground);
  border-radius: calc(var(--radius-md) - var(--bw)) calc(var(--radius-md) - var(--bw)) 0 0;
}
.feature__num { position: absolute; top: .8rem; right: 1.25rem; font-family: var(--font-heading); font-size: 1.2rem; font-weight: 800; }
.feature__body { display: grid; gap: 1.1rem; padding: 1.5rem; flex: 1; align-content: start; }

/* Face lab */
.face-lab { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.face-lab__stage { position: relative; display: grid; place-items: end center; aspect-ratio: .88; max-width: 30rem; width: 100%; margin-inline: auto; }
.face-lab__arch {
  position: absolute;
  inset: 0;
  border: var(--bw) solid var(--foreground);
  border-radius: var(--radius-arch);
  background:
    radial-gradient(circle, rgb(30 41 59 / .22) 1.6px, transparent 2px) 0 0 / 18px 18px,
    var(--secondary);
  box-shadow: var(--sticker) var(--sticker) 0 0 var(--foreground);
}
.face-lab__mount { position: relative; width: 74%; margin-bottom: 4%; }
.face-lab__copy { display: grid; gap: 1.25rem; justify-items: start; }
.toggles { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: .5rem; }
.toggle {
  --o: 0px;
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  min-height: 3rem;
  padding: .5rem 1.1rem .5rem .85rem;
  background: var(--card);
  color: var(--foreground);
  border: var(--bw) solid var(--foreground);
  border-radius: var(--radius-full);
  box-shadow: var(--o) var(--o) 0 0 var(--foreground);
  font-family: var(--font-heading);
  font-size: 1.1875rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform var(--dur) var(--ease-bounce), box-shadow var(--dur) var(--ease-bounce), background-color .2s;
}
.toggle .icon { width: 1.2rem; height: 1.2rem; }
.toggle:hover { background: var(--tertiary); }
.toggle:hover .icon { animation: wiggle .5s ease-in-out; }
.toggle[aria-pressed="true"] { --o: var(--pop); background: var(--accent); color: var(--accent-foreground); transform: translate(-2px, -2px); }
.face-lab__desc { max-width: 32rem; min-height: 5.5rem; }

/* Family panel */
.family { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.family__copy { display: grid; gap: 1.25rem; justify-items: start; }
.benefits { display: grid; gap: .9rem; list-style: none; }
.benefits li { display: flex; align-items: center; gap: .9rem; font-weight: 500; }
.family__note { padding-left: 1rem; border-left: 4px solid var(--tertiary); font-weight: 500; }

.panel { --card-shadow: var(--foreground); overflow: hidden; }
.panel__bar { display: flex; align-items: center; gap: .75rem; padding: .7rem 1rem; background: var(--muted); border-bottom: var(--bw) solid var(--foreground); }
.panel__dots { display: flex; gap: .35rem; }
.panel__dots i { width: .8rem; height: .8rem; border: var(--bw) solid var(--foreground); border-radius: 50%; background: var(--secondary); }
.panel__dots i:nth-child(2) { background: var(--tertiary); }
.panel__dots i:nth-child(3) { background: var(--quaternary); }
.panel__app { font-size: .85rem; font-weight: 700; color: var(--muted-ink); }
.panel__live { display: inline-flex; align-items: center; gap: .4rem; margin-left: auto; font-size: .85rem; font-weight: 700; }
.panel__live i { width: .6rem; height: .6rem; border-radius: 50%; background: var(--quaternary); box-shadow: 0 0 0 0 rgb(52 211 153 / .6); animation: ping 1.8s ease-out infinite; }

.panel__head { display: flex; align-items: center; gap: .9rem; padding: 1.25rem 1.25rem .75rem; }
.panel__head h3 { font-size: var(--fs-1); }
.avatar {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 3rem; height: 3rem;
  background: var(--tertiary);
  border: var(--bw) solid var(--foreground);
  border-radius: 50%;
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 800;
}
.panel__date { color: var(--muted-foreground); font-size: .9rem; }
.panel__progress { display: grid; gap: .35rem; justify-items: end; margin-left: auto; }
.panel__count { font-size: .9rem; font-weight: 700; }
.meter { display: block; width: 7rem; height: .75rem; border: var(--bw) solid var(--foreground); border-radius: var(--radius-full); background: var(--muted); overflow: hidden; }
.meter__fill { display: block; width: var(--p); height: 100%; background: var(--quaternary); border-right: var(--bw) solid var(--foreground); transition: width .6s var(--ease-bounce); }

.tasks { display: grid; gap: .6rem; padding: .25rem 1.25rem 1rem; list-style: none; }
.task {
  display: grid;
  grid-template-columns: 3.4rem auto 1fr auto;
  align-items: center;
  gap: .85rem;
  padding: .65rem .85rem;
  border: var(--bw) dashed var(--foreground);
  border-radius: var(--radius-md);
  background: var(--card);
  transition: background-color .3s;
}
.task.is-done { border: var(--bw) solid var(--border); }
.task__time { font-family: var(--font-heading); font-weight: 700; }
.task__text { display: grid; line-height: 1.3; min-width: 0; }
.task__meta { color: var(--muted-foreground); font-size: .88rem; }
.task .task__meta--done,
.task.is-done .task__meta--due,
.task:not(.is-done) .status--done,
.task.is-done .status--due { display: none; }
.task.is-done .task__meta--done { display: block; }
.task.just-done { animation: flash 1s ease; }
.status {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  padding: .2rem .65rem .2rem .45rem;
  border: var(--bw) solid var(--foreground);
  border-radius: var(--radius-full);
  font-size: .85rem;
  font-weight: 700;
}
.status .icon { width: .95rem; height: .95rem; stroke-width: 3; }
.status--done { background: var(--quaternary); }
.status--due  { background: var(--tertiary); }
.task.just-done .status--done { animation: pop .5s var(--ease-bounce); }

.panel__summary { display: flex; align-items: flex-end; gap: .75rem; padding: 0 1.25rem 1.25rem; }
.panel__bubbles { display: grid; gap: .6rem; flex: 1; }
.panel__summary .bubble { font-size: .98rem; }
.panel__translation { color: var(--muted-ink); }
.mini-face { flex-shrink: 0; width: 2.75rem; height: 2.75rem; }
.panel__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem; padding: 1rem 1.25rem; background: var(--background); border-top: var(--bw) solid var(--foreground); font-weight: 700; }

/* Promise */
.promise {
  position: relative;
  overflow: clip;
  padding-block: var(--section-y);
  background:
    radial-gradient(circle, rgb(255 255 255 / .16) 1.6px, transparent 2px) 0 0 / 22px 22px,
    var(--accent);
  border-block: var(--bw) solid var(--foreground);
  color: var(--accent-foreground);
}
.promise__sun {
  position: absolute;
  width: 22rem; aspect-ratio: 1;
  right: -8rem; bottom: -10rem;
  border: var(--bw) solid var(--foreground);
  border-radius: 50%;
  background: var(--tertiary);
}
.promise__tri { position: absolute; width: 4.5rem; left: 3%; bottom: 8%; rotate: -14deg; }
.promise__tri path { fill: var(--quaternary); stroke: var(--foreground); stroke-width: 2.5; stroke-linejoin: round; }
.promise__grid { position: relative; display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.promise__photo img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border: var(--bw) solid var(--foreground);
  border-radius: var(--radius-lg) var(--radius-lg) var(--radius-lg) 0;
  box-shadow: var(--sticker) var(--sticker) 0 0 var(--foreground);
  rotate: -2deg;
}
.promise__copy { display: grid; gap: 1.25rem; }
.promise__lead { max-width: 30rem; font-size: 1.25rem; font-weight: 500; }
.promise__quote { font-size: var(--fs-4); line-height: 1.12; }
.promise__quote em {
  font-style: normal;
  padding: 0 .2em;
  background: var(--tertiary);
  color: var(--foreground);
  border-radius: var(--radius-sm);
  -webkit-box-decoration-break: clone;
          box-decoration-break: clone;
}
.values { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin-top: 3.5rem; list-style: none; }
.value {
  display: flex;
  align-items: flex-start;
  gap: .75rem;
  padding: 1.1rem 1.25rem;
  background: var(--card);
  color: var(--foreground);
  border: var(--bw) solid var(--foreground);
  border-radius: var(--radius-md);
  box-shadow: 4px 4px 0 0 var(--foreground);
  font-size: .98rem;
  line-height: 1.4;
}
.value strong { display: block; font-family: var(--font-heading); font-size: 1.15rem; }

/* Prototype bento */
.bento { display: grid; grid-template-columns: repeat(12, 1fr); gap: 1.75rem; margin-top: 4rem; }
.bento__cad {
  grid-column: span 5;
  display: grid;
  grid-template-columns: .8fr 1fr;
  gap: 1.25rem;
  align-items: center;
  padding: 1.5rem;
  background:
    linear-gradient(var(--border) 1px, transparent 1px) 0 0 / 24px 24px,
    linear-gradient(90deg, var(--border) 1px, transparent 1px) 0 0 / 24px 24px,
    var(--card);
}
.bento__cad img { mix-blend-mode: multiply; }
.bento__cad h3 { font-size: var(--fs-1); margin-bottom: .75rem; }
.specs { display: grid; gap: .5rem; list-style: none; font-size: .95rem; font-weight: 500; line-height: 1.3; }
.specs li { display: flex; align-items: center; gap: .6rem; }
.specs b {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 1.6rem; height: 1.6rem;
  background: var(--tone);
  color: var(--tone-ink);
  border: var(--bw) solid var(--foreground);
  border-radius: 50%;
  font-family: var(--font-heading);
  font-size: .85rem;
}
.bento__note { display: flex; gap: .5rem; margin-top: 1rem; padding-top: .9rem; border-top: var(--bw) dashed var(--foreground); font-size: .9rem; font-weight: 500; line-height: 1.35; }
.bento__note .icon { width: 1.15rem; height: 1.15rem; color: var(--accent-ink); }
.bento__studio { grid-column: span 3; min-height: 26rem; }
.bento__studio img { object-position: center top; }
.bento__home { grid-column: span 4; min-height: 26rem; }
.bento__home img { object-position: 10% 78%; }
.bento__app {
  grid-column: span 5;
  align-content: start;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  padding: 1.5rem;
  background: var(--card);
}
.bento__app-text { grid-column: 1 / -1; display: grid; gap: .35rem; }
.bento__app-text h3 { font-size: var(--fs-1); }
.phone { position: relative; }
.phone img { width: 100%; max-height: 22rem; object-fit: contain; }
.phone figcaption { position: absolute; left: 50%; bottom: .25rem; translate: -50% 0; background: var(--tertiary); }
.bento__kitchen { grid-column: span 7; min-height: 24rem; }
.bento__kitchen img { object-position: 72% 60%; }

/* Join */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; align-items: center; margin-top: 4.5rem; }
.plan { display: grid; gap: 1rem; align-content: start; justify-items: start; padding: 2rem 1.75rem; }
.plan h3 { font-size: var(--fs-2); }
.plan .ticks { margin-bottom: .5rem; }
.plan__cta { margin-top: auto; }
.plan--featured { z-index: 1; transform: scale(1.08); padding-block: 2.5rem; }
.plan--featured:hover { transform: scale(1.08) rotate(-1deg); }
.star { position: absolute; top: -2.5rem; right: -1.75rem; display: grid; place-items: center; width: 6.75rem; aspect-ratio: 1; rotate: 15deg; }
.star svg { position: absolute; inset: 0; }
.star polygon { fill: var(--tertiary); stroke: var(--foreground); stroke-width: 2; stroke-linejoin: round; }
.star span { position: relative; font-family: var(--font-heading); font-size: .82rem; font-weight: 800; line-height: 1.05; letter-spacing: .04em; text-align: center; text-transform: uppercase; }

.signup {
  --card-shadow: var(--accent);
  display: grid;
  grid-template-columns: .75fr 1.25fr;
  gap: clamp(1.5rem, 4vw, 3.5rem);
  margin-top: 5rem;
  padding: clamp(1.5rem, 4vw, 2.75rem);
}
.signup__intro { display: grid; gap: 1rem; align-content: start; }
.signup__trust { display: flex; align-items: center; gap: .6rem; font-size: .95rem; font-weight: 500; }
.signup__trust .icon { color: var(--accent-ink); }
.signup__trust a { color: var(--accent-ink); font-weight: 700; }
.form__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; }
.form__status { font-weight: 700; }
.form__status:empty { display: none; }
.form__status[data-state="ok"] { padding: .4rem .9rem; background: var(--quaternary); border: var(--bw) solid var(--foreground); border-radius: var(--radius-full); }
.form__status[data-state="error"] { color: #9D174D; }

/* FAQ */
.faq { display: grid; gap: 1rem; max-width: 50rem; margin: 3.5rem auto 0; }
.faq details {
  background: var(--card);
  border: var(--bw) solid var(--foreground);
  border-radius: var(--radius-md);
  box-shadow: 4px 4px 0 0 var(--foreground);
  transition: box-shadow var(--dur) var(--ease-bounce);
}
.faq details[open] { box-shadow: 6px 6px 0 0 var(--accent); }
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1rem 1rem 1.35rem;
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 700;
  line-height: 1.25;
  list-style: none;
  cursor: pointer;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .icon-badge { transition: rotate var(--dur) var(--ease-bounce); }
.faq details[open] summary .icon-badge { rotate: 45deg; }
.faq details p { padding: 0 1.35rem 1.35rem; max-width: 44rem; }
.faq details a { color: var(--accent-ink); font-weight: 700; }

/* Legal page */
.legal__body { display: grid; gap: 1rem; justify-items: start; max-width: 44rem; }
.legal__body h1 { font-size: var(--fs-4); margin-bottom: .25rem; }
.legal__body h2 { font-size: var(--fs-1); margin-top: 1.25rem; }
.legal__body a { color: var(--accent-ink); font-weight: 700; }
.legal__updated { margin-top: 1.5rem; color: var(--muted-foreground); font-size: .9rem; }
.site-footer--slim { padding-block: 0 2rem; }
.site-footer--slim .site-footer__small { margin-top: 0; }

/* Footer */
.site-footer { position: relative; padding-block: 4.5rem 2rem; background: var(--foreground); color: var(--background); }
.site-footer__wave { position: absolute; top: -11px; left: 0; width: 100%; height: 22px; }
.site-footer__wave path { fill: none; stroke: var(--tertiary); stroke-width: 5; vector-effect: non-scaling-stroke; }
.site-footer__grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 2.5rem; align-items: start; }
.logo--footer .logo__face { box-shadow: 0 0 0 4px #fff, 0 0 0 6px var(--tertiary); }
.logo--footer .logo__word { box-shadow: 3px 3px 0 0 var(--tertiary); border-color: var(--background); }
.site-footer__tag { max-width: 22rem; margin-top: 1.25rem; font-family: var(--font-heading); font-size: 1.25rem; font-weight: 700; line-height: 1.3; }
.site-footer__links { display: grid; gap: .5rem; list-style: none; }
.site-footer__links a { text-decoration: none; font-weight: 500; }
.site-footer__links a:hover { text-decoration: underline; text-decoration-color: var(--tertiary); text-decoration-thickness: 3px; text-underline-offset: 4px; }
.site-footer__cta { display: grid; gap: 1rem; justify-items: start; }
.site-footer__cta .btn--primary { --o: var(--pop); box-shadow: var(--o) var(--o) 0 0 var(--tertiary); border-color: var(--background); }
.site-footer__small { display: grid; gap: .4rem; margin-top: 3.5rem; padding-top: 1.5rem; border-top: 1px solid rgb(255 253 245 / .2); color: #CBD5E1; font-size: .85rem; }
.site-footer__small a { color: inherit; }

/* 7. Motion ------------------------------------------------------------------ */
@keyframes pop { from { opacity: 0; scale: .85; } to { opacity: 1; scale: 1; } }
@keyframes wiggle { 0%, 100% { rotate: 0deg; } 25% { rotate: 8deg; } 75% { rotate: -8deg; } }
@keyframes float { 50% { translate: 0 -8px; } }
@keyframes blink { 0%, 91%, 100% { transform: scaleY(1); } 94% { transform: scaleY(.08); } }
@keyframes talk { 0%, 100% { transform: scaleY(.45); } 50% { transform: scaleY(1.35); } }
@keyframes nudge { 0%, 70%, 100% { transform: none; } 80% { transform: rotate(-6deg); } 90% { transform: rotate(6deg); } }
@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgb(52 211 153 / .7); } 100% { box-shadow: 0 0 0 10px rgb(52 211 153 / 0); } }
@keyframes flash { 0% { background: rgb(52 211 153 / .45); } 100% { background: var(--card); } }

/* Pop in on scroll (only when JS runs; content is visible without it) */
.js [data-pop]:not(.is-in) { opacity: 0; }
.js [data-pop].is-in { animation: pop .6s var(--ease-bounce) backwards; animation-delay: var(--delay, 0ms); }

.hero__art .confetti { animation: float 6s ease-in-out infinite; }
.hero__art .confetti--dot { animation-delay: -2s; }
.hero__art .confetti--square { animation-delay: -4s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .js [data-pop]:not(.is-in) { opacity: 1; }
  .card--hover:hover, .plan--featured:hover { transform: none; }
  .plan--featured:hover { transform: scale(1.08); }
}

/* 8. Responsive -------------------------------------------------------------- */
@media (max-width: 1080px) {
  .nav { display: none; }
  .site-header__cta { margin-left: auto; }
  .bento > * { grid-column: span 6; }
  .bento__cad { grid-template-columns: 1fr; justify-items: center; }
  .bento__cad img { max-width: 11rem; }
  .bento__home { order: 1; }
  .bento__app { order: 2; }
  .bento__studio { order: 3; }
  .bento__kitchen { order: 4; grid-column: 1 / -1; }
}

@media (max-width: 900px) {
  :root { --section-y: 4.5rem; --sticker: 5px; }

  .hero__grid, .split, .face-lab, .family, .promise__grid, .signup { grid-template-columns: 1fr; }
  .stage { width: min(100%, 24rem); }
  .features { grid-template-columns: 1fr; gap: 3rem; max-width: 34rem; margin-inline: auto; }
  .features__line { display: none; }
  .plans { grid-template-columns: 1fr; max-width: 30rem; margin-inline: auto; gap: 2.5rem; }
  .plan--featured, .plan--featured:hover { transform: none; }
  .face-lab__stage { max-width: 22rem; }
  .promise__photo { max-width: 32rem; }
  .values { grid-template-columns: 1fr; max-width: 34rem; }
  .site-footer__grid { grid-template-columns: 1fr 1fr; }
  .site-footer__grid > :first-child { grid-column: 1 / -1; }

  /* Timeline turns vertical */
  .day__caption { margin-bottom: 1.5rem; }
  .day__bar { grid-template-columns: 1fr; border-radius: var(--radius-lg); overflow: hidden; }
  .seg, .seg:first-child, .seg:last-child { border-radius: 0; }
  .seg { display: flex; flex-wrap: wrap; justify-content: flex-start; gap: .5rem .9rem; min-height: 3.75rem; padding: .75rem 1rem; }
  .seg + .seg { border-top: var(--bw) solid var(--foreground); }
  .seg--visit { border-inline: 0; }
  .seg--big { min-height: 9rem; }
  .seg--md { min-height: 5.5rem; }
  .seg__tag { position: static; translate: none; background: var(--card); }
  .seg__time {
    display: inline-block;
    padding: .1rem .6rem;
    background: var(--card);
    border: var(--bw) solid var(--foreground);
    border-radius: var(--radius-full);
    font-size: .85rem;
    font-weight: 700;
  }
  .seg__label { padding: 0; justify-content: flex-start; }
  .day__ticks { display: none; }
}

@media (max-width: 640px) {
  :root { --pop: 2px; --pop-hover: 3px; --pop-active: 1px; --sticker: 4px; }
  body { font-size: 1.0625rem; }
  .lead, .hero__lead { font-size: 1.125rem; }
  .logo__word { font-size: 1.3rem; }
  .logo__face { width: 2.1rem; height: 2.1rem; }
  .site-header__cta { padding-inline: .9rem; }
  .eyebrow { font-size: .72rem; letter-spacing: .06em; }

  .hero__sun { width: 16rem; left: -7rem; top: -5rem; }
  .confetti--squiggle, .confetti--square, .photo__dots, .promise__tri { display: none; }
  .stage__bubble { position: relative; left: auto; top: auto; margin: -1rem auto 0; order: 2; }
  .stage { display: flex; flex-direction: column; align-items: center; justify-content: flex-end; aspect-ratio: auto; padding-top: 1.5rem; }
  .stage .tilly { width: 64%; }
  .stage__blob { inset: 12% 0 3.5rem; }
  .stage__pause { bottom: 4.5rem; }
  .hero__actions .btn { width: 100%; }

  .bento { grid-template-columns: 1fr; gap: 1.5rem; }
  .bento > * { grid-column: 1 / -1 !important; }
  .bento__cad { grid-template-columns: 1fr; justify-items: center; }
  .bento__cad img { max-width: 12rem; }
  .bento__studio, .bento__home, .bento__kitchen { min-height: 0; }
  .bento__studio { max-width: 20rem; width: 100%; justify-self: center; }
  .bento__home img { aspect-ratio: 4 / 5; }
  .bento__kitchen img { aspect-ratio: 4 / 3; }

  .task { grid-template-columns: 3rem 1fr auto; gap: .6rem; }
  .task__icon { display: none; }
  .panel__progress { display: none; }

  .form { grid-template-columns: 1fr; }
  .form__foot .btn { width: 100%; }
  .star { right: -.5rem; top: -2.25rem; width: 5.75rem; }
  .site-footer__grid { grid-template-columns: 1fr; }
  .faq summary { font-size: 1.15rem; }
}
