/* Bedkick site — « Peluche » refined: neutral grounds, one violet accent, a
   rare touch of orange (streak flame), Figtree everywhere. The page follows
   the moment of the day like the app (lib/design_tokens.dart,
   lib/ui/day_sky.dart): light at dawn and by day, dark in the evening and
   at night. */

@font-face {
  font-family: 'Figtree';
  src: url('assets/fonts/Figtree.ttf') format('truetype');
  font-weight: 300 900;
  font-display: swap;
}

:root {
  --violet: #6c3be0;
  --lavender: #d6b8fa;
  --warm: #f6a33c;
  --warm-light: #ffd48a;
  --ink: #17172b;
  --radius: 22px;
  --wrap: 1160px;
  --ease: cubic-bezier(.2, .8, .2, 1);

  --ground: #f6f5fb;
  --ground-deep: #ecebf3;
  --text: #17172b;
  --soft: #5d5f78;
  --card: #ffffff;
  --divider: #eceaf3;
  --field: #f3f2f8;
  --accent: #6c3be0;
  --on-accent: #ffffff;
  --accent-soft: #efeafd;
  --accent-text: #5a2bd0;
  --outline: #a8a6bd;
  --shadow: 0 1px 2px rgba(23, 23, 43, .04), 0 8px 28px rgba(23, 23, 43, .06);
  --sky-1: #cbbefa;
  --sky-2: #d6d9fb;
  --sky-3: #e3ecfb;
  --sky-text: #17172b;
  --sky-soft: #4a4c66;
}

.phase-dawn {
  --sky-1: #d9c8f7;
  --sky-2: #f2cfe0;
  --sky-3: #fbe3d2;
}

.phase-evening,
.phase-night {
  --ground: #0f1230;
  --ground-deep: #0a0d22;
  --text: #f2f1fa;
  --soft: #b4b3d8;
  --card: #1b1f48;
  --divider: #2b3061;
  --field: #262a58;
  --accent: #8f6bff;
  --on-accent: #0f1230;
  --accent-soft: #2e2a6e;
  --accent-text: #c4b2ff;
  --outline: #4a4f9a;
  --shadow: 0 0 0 1px #2b3061;
  --sky-text: #ffffff;
  --sky-soft: #e6e3f5;
}

.phase-evening {
  --sky-1: #4a2f9c;
  --sky-2: #7448a8;
  --sky-3: #b06e8e;
}

.phase-night {
  --sky-1: #2b2272;
  --sky-2: #221f60;
  --sky-3: #1b1c52;
  --sky-soft: #c9c8e6;
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: 'Figtree', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 17px;
  line-height: 1.55;
  color: var(--text);
  background: var(--ground);
  transition: background-color .6s var(--ease), color .6s var(--ease);
  overflow-x: clip;
}

img { max-width: 100%; display: block; }
h1, h2, h3 { margin: 0; line-height: 1.12; letter-spacing: -.02em; }
h1 { font-size: clamp(40px, 6.4vw, 76px); font-weight: 800; }
h2 { font-size: clamp(30px, 4.2vw, 48px); font-weight: 800; max-width: 18ch; }
h3 { font-size: 20px; font-weight: 750; }
p { margin: 0; }
button { font: inherit; color: inherit; cursor: pointer; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 8px; }

.skip {
  position: absolute;
  left: -999px;
  top: 8px;
  z-index: 100;
  background: var(--card);
  padding: 10px 14px;
  border-radius: 12px;
}
.skip:focus { left: 16px; }

.wrap { width: min(100% - 32px, var(--wrap)); margin-inline: auto; }

/* ---------- Navigation ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  transition: background-color .3s, box-shadow .3s, backdrop-filter .3s;
}
.nav.scrolled {
  background: color-mix(in srgb, var(--ground) 82%, transparent);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 var(--divider);
}
.nav-inner {
  width: min(100% - 32px, var(--wrap));
  margin-inline: auto;
  height: 68px;
  display: flex;
  align-items: center;
  gap: 20px;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 800; font-size: 21px; }
.brand img { border-radius: 10px; }
.nav:not(.scrolled) .brand,
.nav:not(.scrolled) .nav-links a { color: var(--sky-text); }
.nav-links { display: flex; gap: 22px; margin-left: auto; }
.nav-links a { text-decoration: none; font-weight: 600; font-size: 15px; opacity: .85; }
.nav-links a:hover { opacity: 1; }

.lang {
  display: flex;
  background: var(--field);
  border-radius: 999px;
  padding: 3px;
}
.nav:not(.scrolled) .lang { background: rgba(255, 255, 255, .5); }
.phase-evening .nav:not(.scrolled) .lang,
.phase-night .nav:not(.scrolled) .lang { background: rgba(255, 255, 255, .12); }
.lang a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: inherit;
  text-decoration: none;
  border: 0;
  background: transparent;
  font-weight: 700;
  font-size: 13px;
  padding: 6px 10px;
  border-radius: 999px;
  min-width: 40px;
  min-height: 32px;
}
.nav:not(.scrolled) .lang a { color: var(--sky-text); }
.lang a[aria-current='page'] { background: var(--accent); color: var(--on-accent) !important; }

.burger { display: none; border: 0; background: transparent; width: 44px; height: 44px; position: relative; }
.burger span { position: absolute; left: 11px; right: 11px; height: 2px; background: currentColor; border-radius: 2px; transition: transform .3s var(--ease); }
.burger span:first-child { top: 17px; }
.burger span:last-child { top: 25px; }
.burger[aria-expanded='true'] span:first-child { transform: translateY(4px) rotate(45deg); }
.burger[aria-expanded='true'] span:last-child { transform: translateY(-4px) rotate(-45deg); }
.nav:not(.scrolled) .burger { color: var(--sky-text); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 24px;
  border-radius: 999px;
  font-weight: 750;
  text-decoration: none;
  border: 0;
  transition: transform .2s var(--ease), box-shadow .2s, background-color .2s;
}
.btn:active { transform: scale(.97); }
.btn:disabled { opacity: .45; cursor: default; transform: none; }
.btn-primary { background: var(--accent); color: var(--on-accent); box-shadow: 0 8px 22px color-mix(in srgb, var(--accent) 35%, transparent); }
.btn-primary:hover { transform: translateY(-2px); }
.btn-ghost { background: rgba(255, 255, 255, .55); color: var(--sky-text); }
.phase-evening .btn-ghost,
.phase-night .btn-ghost { background: rgba(255, 255, 255, .12); }
.btn-sm { min-height: 46px; padding: 0 20px; font-size: 15px; }

/* ---------- Hero ---------- */
.sky {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, var(--sky-1) 0%, var(--sky-2) 35%, var(--sky-3) 70%, var(--ground) 100%);
  transition: background .8s var(--ease);
}
.stars { position: absolute; inset: 0; opacity: 0; transition: opacity .8s; }
.phase-night .stars { opacity: 1; }
.phase-evening .stars { opacity: .35; }
.stars i {
  position: absolute;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: #fff;
  animation: twinkle 3.2s ease-in-out infinite;
}
.sun {
  position: absolute;
  width: 420px;
  height: 420px;
  right: 8%;
  top: 8%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, .8), rgba(255, 255, 255, 0) 65%);
  transition: opacity .8s, transform 1.2s var(--ease);
}
.phase-dawn .sun { background: radial-gradient(circle, rgba(255, 212, 138, .7), rgba(255, 212, 138, 0) 65%); transform: translateY(80px); }
.phase-evening .sun { background: radial-gradient(circle, rgba(255, 170, 160, .35), rgba(255, 170, 160, 0) 65%); transform: translateY(160px); }
.phase-night .sun { opacity: .25; background: radial-gradient(circle, rgba(196, 178, 255, .5), rgba(196, 178, 255, 0) 60%); }

.hero { position: relative; margin-top: -68px; padding: 116px 0 72px; color: var(--sky-text); overflow: hidden; }
.hero-grid { position: relative; display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; }
.eyebrow { font-weight: 700; font-size: 15px; color: var(--sky-soft); margin-bottom: 18px; }
.hero h1 { font-size: clamp(46px, 7vw, 86px); line-height: .98; letter-spacing: -.035em; font-weight: 850; }
.hero h1 em { font-style: normal; color: #6c3be0; }
.phase-evening .hero h1 em,
.phase-night .hero h1 em { color: #d6c8ff; }
.lead { font-size: clamp(18px, 1.6vw, 21px); color: var(--sky-soft); margin-top: 26px; max-width: 32em; }
.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 34px; }
.cta-row .btn { gap: 10px; min-height: 56px; border-radius: 14px; }
.cta-row .btn svg { width: 18px; fill: currentColor; }
.req { margin-top: 18px; font-size: 14px; font-weight: 600; color: var(--sky-soft); }

/* Apple's App Store badge (black on light skies, white on dark ones; at
   least 40 px high, with a quarter of its height clear around it), and the
   « coming soon » note before the release */
.store-badge { display: inline-flex; align-items: center; min-height: 56px; border-radius: 10px; }
.store-badge img { height: 56px; width: auto; display: block; }
.store-badge .badge-white,
.phase-evening .hero .store-badge .badge-black,
.phase-night .hero .store-badge .badge-black,
.store-invert .store-badge .badge-black { display: none; }
.phase-evening .hero .store-badge .badge-white,
.phase-night .hero .store-badge .badge-white,
.store-invert .store-badge .badge-white { display: block; }
.store-soon span { display: flex; flex-direction: column; line-height: 1.12; }
.store-soon {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 56px;
  padding: 10px 22px 10px 16px;
  border-radius: 14px;
  border: 1.5px dashed color-mix(in srgb, var(--sky-text) 28%, transparent);
  background: color-mix(in srgb, #fff 62%, transparent);
  color: #17172b;
}
.store-soon svg { width: 24px; fill: none; stroke: #6c3be0; stroke-width: 2; stroke-linecap: round; flex: none; }
.store-soon b { font-size: 17px; font-weight: 750; }
.store-soon small { font-size: 13px; color: #4a4c66; }
.phase-evening .hero .store-soon,
.phase-night .hero .store-soon,
.store-invert .store-soon { background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .35); color: #fff; }
.phase-evening .hero .store-soon small,
.phase-night .hero .store-soon small,
.store-invert .store-soon small { color: #c9c8e6; }
.phase-evening .hero .store-soon svg,
.phase-night .hero .store-soon svg,
.store-invert .store-soon svg { stroke: #d6c8ff; }

.hero-stage { position: relative; display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 24px 0 0; }
.phone.phone-video { height: auto; }
.phone-video .screen { aspect-ratio: 720 / 1560; height: auto; background: #000; }
.phone-video video { width: 100%; height: 100%; object-fit: cover; display: block; }
.mascot-kick {
  position: absolute;
  width: 190px;
  height: auto;
  right: -96px;
  top: -40px;
  z-index: 2;
  filter: drop-shadow(0 14px 22px rgba(30, 20, 80, .25));
  animation: float 6s ease-in-out infinite;
}
.chip {
  position: absolute;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 16px;
  border-radius: 16px;
  background: #fff;
  color: #17172b;
  box-shadow: 0 10px 30px rgba(23, 23, 43, .14);
  font-weight: 750;
}
.chip svg { width: 22px; fill: none; stroke: #6c3be0; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.chip span { display: flex; flex-direction: column; line-height: 1.15; }
.chip b { font-size: 18px; }
.chip small { font-size: 13px; font-weight: 600; color: #5d5f78; }
.phone-wrap { position: relative; }
.chip-ring { left: -110px; top: 22%; }
.chip-cam { right: -84px; top: 64%; background: #6c3be0; color: #fff; border-radius: 999px; padding: 12px 18px; box-shadow: 0 10px 30px rgba(108, 59, 224, .35); }
.video-toggle { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; border: 1px solid var(--divider); border-radius: 999px; background: var(--card); color: var(--text); font-weight: 700; font-size: 14px; }
.video-toggle svg { width: 16px; fill: var(--accent-text); }
.video-note { font-size: 13px; color: var(--sky-soft); text-align: center; max-width: 30ch; }

/* ---------- Phones (shared) ---------- */
.phone {
  position: relative;
  width: 290px;
  height: 600px;
  border-radius: 46px;
  padding: 11px;
  background: #17172b;
  box-shadow: 0 40px 80px rgba(30, 20, 80, .28), inset 0 0 0 2px #2c2c48;
  flex: none;
}
.notch { position: absolute; top: 20px; left: 50%; width: 92px; height: 26px; border-radius: 20px; background: #000; transform: translateX(-50%); z-index: 5; }
.screen {
  position: relative;
  height: 100%;
  border-radius: 36px;
  overflow: hidden;
  background: linear-gradient(180deg, var(--sky-1), var(--sky-3) 45%, var(--ground) 80%);
  color: var(--text);
  transition: background .8s;
}
.hs-title { font-size: 24px; font-weight: 800; margin-top: 10px; }
.hs-note { font-size: 13px; color: var(--soft); margin-top: 12px; max-width: 22ch; }
.card { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); transition: background-color .6s; }

.demo-box { margin-top: 40px; }
.tabs { display: inline-flex; background: var(--field); border-radius: 999px; padding: 4px; gap: 2px; }
.tabs button { border: 0; background: transparent; padding: 10px 20px; border-radius: 999px; font-weight: 700; min-height: 44px; }
.tabs button[aria-selected='true'] { background: var(--card); box-shadow: var(--shadow); color: var(--accent-text); }
.demo-stage { display: grid; grid-template-columns: 300px 1fr; gap: 56px; align-items: center; margin-top: 30px; }
.phone-demo { width: 300px; height: 610px; }
.phone-demo .screen { background: var(--ground); }
.panel { position: absolute; inset: 0; padding: 60px 18px 18px; display: flex; flex-direction: column; align-items: center; text-align: center; }
.panel[hidden], .done-overlay[hidden] { display: none; }
.dots { display: flex; gap: 6px; }
.dots span { width: 28px; height: 6px; border-radius: 3px; background: var(--divider); transition: background-color .3s; }
.dots span.on { background: var(--accent); }
.demo-k { font-size: 13px; font-weight: 700; color: var(--soft); margin-top: 12px; }
.math-q { font-size: 40px; font-weight: 800; letter-spacing: -.02em; margin-top: 18px; }
.math-a { display: block; min-width: 160px; min-height: 58px; margin-top: 10px; border-radius: 18px; background: var(--card); box-shadow: var(--shadow); font-size: 34px; font-weight: 800; line-height: 58px; color: var(--accent-text); }
.math-a.shake, .simon.shake { animation: shake .4s; }
.demo-msg { min-height: 40px; font-size: 13px; font-weight: 650; color: var(--soft); margin-top: 8px; max-width: 24ch; }
.keypad { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; width: 100%; margin-top: auto; }
.keypad button { min-height: 52px; border: 0; border-radius: 16px; background: var(--card); box-shadow: var(--shadow); font-size: 22px; font-weight: 750; transition: transform .1s; }
.keypad button:active { transform: scale(.94); }
.keypad .ok { background: var(--accent); color: var(--on-accent); }
.simon { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; width: 100%; margin: 6px 0 22px; }
.simon button { aspect-ratio: 1; border: 0; border-radius: 26px; opacity: .42; transition: opacity .15s, transform .15s; }
.simon button:disabled { cursor: default; }
.simon button.lit, .simon button:not(:disabled):active { opacity: 1; transform: scale(1.04); }
.simon [data-tile='1'] { background: var(--violet); }
.simon [data-tile='2'] { background: var(--warm); }
.simon [data-tile='3'] { background: #7ab8f5; }
.simon [data-tile='4'] { background: #34c38f; }
.mem-msg { min-height: 22px; margin: 4px 0 4px; }
.done-overlay { position: absolute; inset: 0; background: var(--ground); display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 30px 22px; text-align: center; animation: fade .4s var(--ease); z-index: 4; }
.done-overlay img { width: 150px; height: auto; animation: jump .9s var(--ease) 3; }
.done-overlay .btn { margin-top: 22px; }
.demo-side h3 { font-size: 28px; }
.demo-side p { color: var(--soft); margin-top: 10px; font-size: 18px; max-width: 30em; }
.disclaimer { display: flex; gap: 10px; align-items: flex-start; margin-top: 28px !important; padding: 14px 16px; border-radius: 16px; background: var(--accent-soft); color: var(--accent-text) !important; font-size: 15px !important; font-weight: 600; }
.disclaimer svg { width: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; margin-top: 2px; }

/* ---------- Sections ---------- */
.section { padding: clamp(72px, 9vw, 120px) 0; position: relative; }
.kicker { font-weight: 750; color: var(--accent-text); font-size: 15px; margin-bottom: 12px; }
.section-lead { color: var(--soft); font-size: 19px; margin-top: 18px; max-width: 34em; }
.note { color: var(--soft); font-size: 15px; margin-top: 28px; max-width: 52em; }

.results { background: var(--ground); }
.grid4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 44px; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 44px; }
.result, .feature { padding: 26px; }
.result p, .feature p { color: var(--soft); margin-top: 8px; }
.ico { width: 48px; height: 48px; border-radius: 16px; background: var(--accent-soft); display: grid; place-items: center; margin-bottom: 18px; }
.ico svg { width: 26px; fill: none; stroke: var(--accent-text); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* App Store screenshots without their titles, one result per row */
.shots { background: var(--ground); padding-top: 0; }
.shot { display: grid; grid-template-columns: 1fr 340px; gap: 80px; align-items: center; padding: 36px 0; }
.shot-rev { grid-template-columns: 340px 1fr; }
.shot-rev .shot-img { order: -1; }
.shot h2 { max-width: 15ch; }
.shot-img { width: 100%; height: auto; border-radius: 28px; box-shadow: var(--shadow); }
.try { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; padding: 16px 20px; margin-top: 28px; max-width: 470px; }
.try-q { font-size: 26px; font-weight: 800; letter-spacing: -.02em; }
.try-text { flex: 1 1 160px; color: var(--soft); font-size: 15px; font-weight: 600; }

.demo { background: var(--ground-deep); }

.trust { background: var(--ground); }

.faq { background: var(--ground-deep); }
.faq-wrap { display: grid; grid-template-columns: .8fr 1.2fr; gap: 56px; align-items: start; }
.qa details { background: var(--card); border-radius: 18px; box-shadow: var(--shadow); margin-bottom: 10px; overflow: hidden; }
.qa summary { list-style: none; cursor: pointer; padding: 20px 56px 20px 22px; font-weight: 700; font-size: 18px; position: relative; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after { content: ''; position: absolute; right: 24px; top: 50%; width: 10px; height: 10px; border: solid var(--accent-text); border-width: 0 2.5px 2.5px 0; transform: translateY(-70%) rotate(45deg); transition: transform .3s var(--ease); }
.qa details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.qa details p { padding: 0 22px 20px; color: var(--soft); }
.qa details p a { color: var(--accent-text); font-weight: 700; }
.qa details[open] p { animation: fade .35s var(--ease); }

/* Last call, under a night sky */
.final { background: linear-gradient(180deg, #2b2272 0%, #221f60 60%, #1b1c52 100%); color: #fff; padding: clamp(64px, 8vw, 96px) 0; }
.final-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 28px 44px; }
.mascot-crown { width: 190px; height: auto; flex: none; filter: drop-shadow(0 14px 22px rgba(0, 0, 0, .3)); }
.final-copy { flex: 1 1 360px; }
.final h2 { font-size: clamp(34px, 4.4vw, 56px); line-height: 1.04; letter-spacing: -.03em; max-width: none; }
.final p { color: #c9c8e6; font-size: 19px; margin-top: 12px; }

.footer { padding: 46px 0 60px; background: var(--ground); border-top: 1px solid var(--divider); }
.footer-inner { display: flex; gap: 30px; align-items: flex-start; justify-content: space-between; flex-wrap: wrap; }
.footer-text { color: var(--soft); font-size: 14px; flex: 1; min-width: 240px; }
.footer-links a { color: var(--accent-text); font-weight: 700; }
.legal { font-size: 12px; margin-top: 10px; max-width: 60em; }
.to-top { font-weight: 700; color: var(--accent-text); text-decoration: none; }

/* Download link in the menu; download bar on phones (both once released) */
.nav-get {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 16px;
  border-radius: 999px;
  background: var(--text);
  color: var(--ground);
  font-weight: 750;
  font-size: 14px;
  text-decoration: none;
}
.nav-get svg { width: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.getbar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 60;
  display: none;
  align-items: center;
  gap: 12px;
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  background: color-mix(in srgb, var(--ground) 94%, transparent);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-top: 1px solid var(--divider);
  transform: translateY(110%);
  transition: transform .35s var(--ease);
}
.getbar.on { transform: none; }
.getbar img { border-radius: 10px; flex: none; }
.getbar-text { flex: 1; display: flex; flex-direction: column; line-height: 1.2; min-width: 0; }
.getbar-text small { color: var(--soft); font-size: 13px; }
.getbar-btn { display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border-radius: 999px; background: var(--text); color: var(--ground); font-weight: 750; text-decoration: none; }
.nav-get[hidden], .getbar[hidden], .getbar-btn[hidden] { display: none; }

#confetti { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 90; }

/* ---------- Scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: var(--d, 0s); }
.reveal.in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

/* ---------- Keyframes ---------- */
@keyframes float { 0%, 100% { transform: translateY(0) rotate(-2deg); } 50% { transform: translateY(-14px) rotate(2deg); } }
@keyframes jump { 0% { transform: translateY(0) scale(1); } 15% { transform: translateY(0) scale(1.08, .9); } 45% { transform: translateY(-46px) scale(.96, 1.05); } 80% { transform: translateY(0) scale(1.06, .92); } 100% { transform: none; } }
@keyframes twinkle { 0%, 100% { opacity: .25; } 50% { opacity: 1; } }
@keyframes shake { 0%, 100% { transform: translateX(0); } 25% { transform: translateX(-8px); } 50% { transform: translateX(8px); } 75% { transform: translateX(-4px); } }
@keyframes fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .grid4 { grid-template-columns: 1fr 1fr; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-copy { max-width: 640px; }
  .hero { padding-top: 100px; }
}

@media (max-width: 980px) {
  .faq-wrap { grid-template-columns: 1fr; }
  .shot, .shot-rev { grid-template-columns: 1fr; gap: 28px; padding: 28px 0; }
  .shot-rev .shot-img { order: 0; }
  .shot-img { max-width: 340px; margin-inline: auto; }
  .shot h2 { max-width: none; }
  .grid3 { grid-template-columns: 1fr 1fr; }
  .demo-stage { grid-template-columns: 1fr; justify-items: center; gap: 30px; }
  .demo-side { order: -1; }
  .faq-wrap { gap: 20px; }
}

@media (max-width: 760px) {
  .nav-links {
    position: fixed;
    top: 68px;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    padding: 8px 16px 18px;
    background: var(--ground);
    box-shadow: 0 16px 30px rgba(0, 0, 0, .12);
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: opacity .25s, transform .25s var(--ease);
  }
  .nav-links.open { opacity: 1; transform: none; pointer-events: auto; }
  .nav-links a { padding: 14px 4px; font-size: 18px; border-bottom: 1px solid var(--divider); color: var(--text) !important; }
  .burger { display: block; }
  .lang { margin-left: auto; }
  .nav-inner { gap: 8px; }
  .nav-get { display: none; }
  .getbar { display: flex; }
  .grid4, .grid3 { grid-template-columns: 1fr; }
  .cta-row .store, .cta-row .store-soon { width: 100%; justify-content: center; }
  .cta-row .store { display: flex; }
  .cta-row .btn { width: 100%; }
  .phone-video { width: 250px; }
  .mascot-kick { width: 120px; right: -58px; top: -28px; }
  .chip-ring { left: -62px; top: 20%; }
  .chip-cam { right: -46px; top: 62%; }
  .chip { padding: 9px 12px; }
  .chip b { font-size: 16px; }
  .phone-demo { width: 290px; height: 590px; }
  .mascot-crown { width: 140px; }
  h2 { max-width: none; }
}

@media (max-width: 380px) {
  .lang a { min-width: 34px; padding: 6px 7px; }
  .brand-name { font-size: 19px; }
  .phone-demo { width: 100%; max-width: 290px; }
  .chip small { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .reveal { opacity: 1; transform: none; }
}
