:root {
  color-scheme: light;
  --bg: #fbfbfd;
  --bg-2: #f5f5f7;
  --surface: #ffffff;
  --ink: #1d1d1f;
  --ink-2: #6e6e73;
  --ink-3: #6e6e73;
  --hair: rgba(0, 0, 0, 0.06);
  --orange: #ff8c42;
  --orange-text: #a64b13;
  --action: #c45100;
  --orange-2: #a64b13;
  --peach: #fff1e7;
  --line-green: #06c755;
  --ok: #176b3a;
  --ok-bg: #eaf6ee;
  --ease: cubic-bezier(0.32, 0.72, 0, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --wrap: 1120px;
  --gutter: clamp(16px, 4vw, 40px);
  --font:
    "Noto Sans Thai", -apple-system, BlinkMacSystemFont, "SF Pro Text", "Leelawadee UI", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img {
  display: block;
  max-width: 100%;
  height: auto;
}
a {
  color: inherit;
  text-decoration: none;
}
h1,
h2,
h3 {
  margin: 0;
  font-weight: 700;
}
p {
  margin: 0;
}
:focus-visible {
  outline: 2px solid var(--orange-text);
  outline-offset: 3px;
  border-radius: 8px;
}

.skip {
  position: absolute;
  left: -9999px;
  top: 12px;
  z-index: 40;
  background: var(--ink);
  color: #fff;
  padding: 8px 16px;
  border-radius: 999px;
}
.skip:focus {
  left: 12px;
}

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
section {
  padding: clamp(96px, 14vw, 160px) 0;
}
.muted {
  color: var(--ink-2);
}
.nw {
  white-space: nowrap;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* ---------- type ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 14px;
  border-radius: 999px;
  background: var(--peach);
  color: var(--orange-text);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.02em;
}
.eyebrow::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--orange);
}
h1 {
  font-size: clamp(40px, 7.2vw, 84px);
  line-height: 1.22;
  letter-spacing: -0.02em;
  margin-top: 24px;
}
.section-title {
  font-size: clamp(32px, 5vw, 56px);
  line-height: 1.25;
  letter-spacing: -0.015em;
}
.lead {
  font-size: clamp(18px, 2vw, 21px);
  color: var(--ink-2);
  line-height: 1.7;
}
.accent {
  color: var(--orange-text);
  padding-bottom: 0.08em;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 8px 8px 8px 24px;
  border-radius: 999px;
  font-size: 17px;
  font-weight: 500;
  transition:
    transform 500ms var(--ease),
    background-color 500ms var(--ease),
    box-shadow 500ms var(--ease);
}
.btn:active {
  transform: scale(0.98);
}
.btn-icon {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
  transition: transform 500ms var(--ease);
}
.btn-icon svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.btn:hover .btn-icon {
  transform: translate(3px, -1px) scale(1.06);
}
.btn-dark {
  background: var(--ink);
  color: #fff;
  box-shadow: 0 10px 30px -12px rgba(29, 29, 31, 0.45);
}
.btn-dark:hover {
  background: #000;
}
.btn-line {
  background: var(--action);
  color: #fff;
  box-shadow: 0 12px 32px -12px rgba(166, 75, 19, 0.3);
}
.btn-line:hover {
  background: var(--orange-text);
}
.link-more {
  color: var(--orange-text);
  font-weight: 500;
  font-size: 17px;
}
.link-more span {
  display: inline-block;
  transition: transform 400ms var(--ease);
}
.link-more:hover span {
  transform: translateX(4px);
}
.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 16px 28px;
  margin-top: 40px;
}

/* ---------- nav ---------- */
.nav {
  position: fixed;
  top: 14px;
  left: 0;
  right: 0;
  z-index: 30;
  display: flex;
  justify-content: center;
  padding: 0 12px;
  pointer-events: none;
}
.nav-pill {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 6px 6px 14px;
  border-radius: 999px;
  background: rgba(251, 251, 253, 0.72);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  box-shadow:
    0 0 0 1px var(--hair),
    0 8px 30px -14px rgba(0, 0, 0, 0.12);
  transition:
    box-shadow 600ms var(--ease),
    background-color 600ms var(--ease);
}
.nav.scrolled .nav-pill {
  background: rgba(251, 251, 253, 0.86);
  box-shadow:
    0 0 0 1px var(--hair),
    0 12px 40px -16px rgba(0, 0, 0, 0.2);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 16px;
}
.brand img {
  width: 28px;
  height: 28px;
  transform: scale(1.35);
}
.nav-links {
  display: flex;
  gap: 4px;
  margin: 0 8px 0 16px;
}
.nav-links a {
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 14px;
  color: var(--ink-2);
  transition:
    color 300ms var(--ease),
    background-color 300ms var(--ease);
}
.nav-links a:hover {
  color: var(--ink);
  background: rgba(0, 0, 0, 0.04);
}
.nav-cta {
  padding: 7px 16px;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  transition: transform 400ms var(--ease);
}
.nav-cta:active {
  transform: scale(0.97);
}
.language-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  padding: 0 12px;
  border-radius: 999px;
  color: var(--orange-text);
  font-size: 14px;
  font-weight: 600;
}
.language-link:hover {
  background: var(--peach);
}
.burger {
  display: none;
  position: relative;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.05);
  cursor: pointer;
}
.burger span {
  position: absolute;
  left: 12px;
  width: 16px;
  height: 1.5px;
  border-radius: 2px;
  background: var(--ink);
  transition: transform 500ms var(--ease);
}
.burger span:first-child {
  transform: translateY(-3px);
}
.burger span:last-child {
  transform: translateY(3px);
}
.menu-open .burger span:first-child {
  transform: rotate(45deg);
}
.menu-open .burger span:last-child {
  transform: rotate(-45deg);
}

.menu {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: flex;
  flex-direction: column;
  justify-content: safe center;
  gap: clamp(16px, 4vh, 40px);
  padding: 88px 24px 28px;
  overflow-y: auto;
  overscroll-behavior: contain;
  background: rgba(251, 251, 253, 0.86);
  backdrop-filter: blur(30px) saturate(180%);
  -webkit-backdrop-filter: blur(30px) saturate(180%);
  opacity: 0;
  transition: opacity 500ms var(--ease);
}
.menu[hidden] {
  display: none;
}
.menu nav {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.menu nav a {
  min-height: 44px;
  font-size: clamp(20px, 5vh, 34px);
  font-weight: 600;
  line-height: 1.5;
}
.menu nav a,
.menu .btn {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 600ms var(--ease-out),
    transform 700ms var(--ease-out);
  transition-delay: calc(var(--d, 0) * 50ms + 80ms);
}
.menu-open .menu {
  opacity: 1;
}
.menu-open .menu nav a,
.menu-open .menu .btn {
  opacity: 1;
  transform: none;
}
.menu .btn {
  align-self: flex-start;
}
.menu-open {
  overflow: hidden;
}

/* ---------- reveal ---------- */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(36px);
  filter: blur(6px);
  transition:
    opacity 900ms var(--ease-out),
    transform 1100ms var(--ease-out),
    filter 900ms var(--ease-out);
  transition-delay: calc(var(--d, 0) * 90ms);
}
.js [data-reveal].in,
.js [data-reveal]:focus-within {
  opacity: 1;
  transform: none;
  filter: none;
}
.js [data-reveal]:focus-within {
  transition: none;
}

/* ---------- hero ---------- */
.hero .btn-dark[href="#film"] {
  min-height: 52px;
  padding: 12px 24px;
}

.hero {
  position: relative;
  padding: clamp(128px, 18vw, 176px) 0 clamp(72px, 10vw, 120px);
  text-align: center;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 38%;
  width: min(1100px, 140vw);
  aspect-ratio: 1.6;
  transform: translateX(-50%);
  background:
    radial-gradient(closest-side, rgba(255, 170, 90, 0.22), rgba(255, 170, 90, 0) 70%),
    radial-gradient(closest-side at 70% 60%, rgba(120, 170, 255, 0.14), rgba(120, 170, 255, 0) 70%);
  pointer-events: none;
}
.sentinel {
  position: absolute;
  top: 0;
  height: 40px;
  width: 1px;
}
.hero-copy {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.hero-copy .lead {
  max-width: 620px;
  margin-top: 24px;
}

.hero-detail {
  max-width: 59ch;
  margin-top: 14px;
  color: var(--ink-2);
  font-size: 16px;
}

.hero-stage {
  position: relative;
  width: min(860px, calc(100% - 2 * var(--gutter)));
  margin: clamp(56px, 8vw, 88px) auto 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.mascot {
  position: absolute;
  left: calc(50% - 400px);
  top: 4%;
  width: 360px;
  z-index: 1;
  filter: drop-shadow(0 30px 40px rgba(180, 90, 10, 0.18));
  animation: float 7s var(--ease) infinite alternate;
}
@keyframes float {
  from {
    transform: translateY(0) rotate(-3deg);
  }
  to {
    transform: translateY(-18px) rotate(2deg);
  }
}

.phone {
  position: relative;
  z-index: 2;
  width: 320px;
  max-width: 100%;
  padding: 10px;
  border-radius: 54px;
  background: linear-gradient(160deg, #2b2b2e, #0d0d0f);
  box-shadow:
    inset 0 0 0 1.5px rgba(255, 255, 255, 0.12),
    0 50px 100px -30px rgba(29, 29, 31, 0.4),
    0 30px 60px -40px rgba(29, 29, 31, 0.3);
  text-align: left;
}
.phone-screen {
  border-radius: 44px;
  overflow: hidden;
  background: linear-gradient(180deg, #eef2f8, #e6ebf3);
  min-height: 560px;
  font-size: 14px;
  line-height: 1.5;
}
.chat-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 46px 18px 14px;
  background: rgba(255, 255, 255, 0.75);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}
.chat-head img {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #fff3e6;
  object-fit: cover;
  transform: scale(1.1);
}
.chat-head strong {
  display: block;
  font-size: 14px;
}
.chat-head small {
  display: block;
  font-size: 11px;
  color: var(--ink-3);
  line-height: 1.2;
}
.chat {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 18px 14px 24px;
}
.msg {
  max-width: 82%;
  border-radius: 20px;
}
.msg.me {
  align-self: flex-end;
}
.msg.bot {
  align-self: flex-start;
}
.msg.text {
  padding: 9px 14px;
}
.msg.me.text {
  background: var(--line-green);
  color: var(--ink);
  border-bottom-right-radius: 6px;
}
.msg.bot.text {
  background: #fff;
  border-bottom-left-radius: 6px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}
.msg.card {
  width: 82%;
  padding: 14px 16px 12px;
  background: #fff;
  border-bottom-left-radius: 6px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}
.msg.card small {
  font-size: 12px;
}
.reading {
  font-size: 34px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
  font-variant-numeric: tabular-nums;
  margin-top: 2px;
}
.reading span {
  color: var(--ink-3);
  font-weight: 400;
  margin: 0 1px;
}
.reading em {
  font-style: normal;
  font-size: 12px;
  font-weight: 500;
  color: var(--ink-3);
  letter-spacing: 0;
}
.row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 4px 0 6px;
  font-size: 13px;
}
.tag {
  padding: 1px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
}
.tag.ok {
  background: var(--ok-bg);
  color: var(--ok);
}
.spark {
  width: 100%;
  height: 40px;
  margin: 4px 0 2px;
}
.spark polyline {
  fill: none;
  stroke: var(--orange);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.lcd {
  display: grid;
  gap: 2px;
  padding: 10px 14px;
  border-radius: 14px;
  background: linear-gradient(160deg, #c9d6c3, #b3c3ad);
  box-shadow:
    inset 0 1px 3px rgba(0, 0, 0, 0.18),
    0 0 0 5px #dfe3e8,
    0 0 0 6px rgba(0, 0, 0, 0.06);
  color: #26302a;
  margin: 6px;
}
.lcd div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
}
.lcd small {
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.1em;
  opacity: 0.7;
}
.lcd b {
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 24px;
  line-height: 1.1;
  font-weight: 600;
}

.demo-heading {
  display: block;
  color: var(--orange-text);
  font-size: 14px;
  line-height: 1.6;
}
.demo-event {
  align-self: center;
  color: var(--ink-2);
  font-size: 13px;
}
.msg.card small {
  display: block;
  font-size: 13px;
}
.msg.card p {
  margin-top: 6px;
  font-size: 13px;
}
.demo-actions {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}
.demo-actions span {
  flex: 1;
  padding: 8px 4px;
  text-align: center;
  border-radius: 10px;
  background: var(--peach);
  color: var(--ink);
}
.demo-actions span:first-child {
  background: var(--action);
  color: #fff;
}
.demo-caption {
  max-width: 340px;
  margin-top: 24px;
  text-align: center;
  color: var(--ink-2);
  font-size: 14px;
}
.film {
  background: var(--peach);
}
.film-layout {
  display: grid;
  grid-template-columns: 1fr minmax(0, 360px);
  align-items: center;
  gap: 16px clamp(32px, 7vw, 96px);
}
.film-intro {
  align-self: end;
}
.film-detail .lead {
  max-width: 34ch;
}
.film-note,
.checker-note {
  margin: 20px auto 0;
  max-width: 68ch;
  color: var(--ink-2);
  font-size: 16px;
  line-height: 1.7;
}
.checker-note {
  text-align: center;
}
.launch-film {
  grid-column: 2;
  grid-row: 1 / span 2;
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 9 / 16;
  border-radius: 24px;
  background: var(--bg);
  box-shadow: 0 20px 60px -30px rgba(29, 29, 31, 0.25);
}
.launch-film::cue {
  color: #fff;
  background-color: rgba(0, 0, 0, 0.88);
}
@media (max-width: 767px) {
  .film {
    padding-block: 44px;
  }
  .film-layout {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .film-note {
    margin-top: 8px;
  }
  .launch-film {
    grid-column: 1;
    grid-row: 2;
    max-width: min(70vw, 280px);
    margin: 0 auto;
  }
}

.transcript {
  margin-top: 12px;
  max-width: 54ch;
}
.transcript summary {
  min-height: 44px;
  padding: 8px 0;
  color: var(--orange-text);
  font-weight: 600;
  cursor: pointer;
}
.transcript p + p {
  margin-top: 10px;
}

.onboarding {
  margin-top: 24px;
}
.onboarding-qr {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 20px;
  max-width: 34ch;
  color: var(--ink-2);
}
.onboarding-qr img {
  flex: none;
  border-radius: 8px;
  image-rendering: pixelated;
}
.section-action {
  margin-top: 28px;
  text-align: center;
}
.section-action p {
  margin-top: 12px;
  color: var(--ink-2);
}
#partners .care-grid {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 360px), 1fr));
}
#privacy .care-grid {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
}
#privacy a[href^="tel:"] {
  color: var(--orange-text);
  font-weight: 600;
  text-decoration: underline;
}

/* ---------- stats ---------- */
.stats {
  background: #000;
  color: #f5f5f7;
  text-align: center;
}
.stats .section-title {
  color: #f5f5f7;
}
.stat-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin: clamp(32px, 5vw, 64px) 0;
}
.stat {
  display: grid;
  align-content: start;
  gap: 8px;
}
.stat dt {
  font-size: 18px;
  font-weight: 600;
}
.stats-note,
.stat-definition {
  margin: 16px auto 0;
  max-width: 64ch;
  color: #b8b8bd;
  font-size: 16px;
}
.stat-definition {
  margin: 0;
}
.stat-value {
  grid-row: 1;
  margin: 0;
  font-size: clamp(38px, 6vw, 76px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
  background: linear-gradient(180deg, #ffffff 30%, #ffc38a 130%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- how ---------- */
.split {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: clamp(48px, 8vw, 120px);
  align-items: start;
}
.split-head {
  position: sticky;
  top: 120px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
}
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
}
.steps li {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 16px;
  padding: 36px 0;
  border-top: 1px solid var(--hair);
}
.steps li:last-child {
  border-bottom: 1px solid var(--hair);
}
.num {
  font-size: 15px;
  font-weight: 600;
  color: var(--orange-text);
  font-variant-numeric: tabular-nums;
  padding-top: 6px;
}
.steps h3 {
  font-size: clamp(22px, 2.6vw, 28px);
  line-height: 1.35;
  letter-spacing: -0.01em;
}
.steps p {
  margin-top: 8px;
  color: var(--ink-2);
}
code {
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.92em;
  padding: 2px 8px;
  border-radius: 8px;
  background: var(--bg-2);
  color: var(--ink);
}

/* ---------- features (bento) ---------- */
.features {
  background: var(--bg-2);
}
.center-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  text-align: center;
  margin-bottom: clamp(48px, 7vw, 80px);
}
.bento {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 20px;
}
.b-a {
  grid-column: span 7;
}
.b-b {
  grid-column: span 5;
}
.b-c,
.b-d,
.b-e {
  grid-column: span 4;
}

.shell {
  padding: 6px;
  border-radius: 34px;
  background: rgba(255, 255, 255, 0.5);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.04);
}
.core {
  height: 100%;
  display: flex;
  flex-direction: column;
  padding: 28px 30px 32px;
  border-radius: 28px;
  background: var(--surface);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    0 1px 2px rgba(0, 0, 0, 0.03),
    0 24px 48px -28px rgba(0, 0, 0, 0.12);
  transition:
    transform 700ms var(--ease),
    box-shadow 700ms var(--ease);
}
.shell:hover .core {
  transform: translateY(-4px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    0 1px 2px rgba(0, 0, 0, 0.03),
    0 36px 64px -30px rgba(0, 0, 0, 0.18);
}
.core h3 {
  font-size: 22px;
  line-height: 1.4;
  letter-spacing: -0.01em;
  margin-top: auto;
}
.core p {
  margin-top: 6px;
  color: var(--ink-2);
  font-size: 16px;
}
.art {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 180px;
  margin-bottom: 28px;
  border-radius: 20px;
  background: var(--bg-2);
}
.b-a .art {
  min-height: 260px;
}

.art-input {
  gap: 22px;
  flex-wrap: wrap;
  padding: 24px;
}
.lcd-lg {
  padding: 14px 20px;
  min-width: 150px;
}
.lcd-lg b {
  font-size: 34px;
}
.or {
  font-size: 14px;
  color: var(--ink-3);
}
.typed {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--line-green);
  color: var(--ink);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  box-shadow: 0 10px 24px -12px rgba(6, 199, 85, 0.6);
}
.typed span {
  display: inline-block;
  min-width: 9ch;
}
.typed i {
  width: 1.5px;
  height: 18px;
  background: var(--ink);
  animation: caret 1.1s steps(1) infinite;
}
@keyframes caret {
  50% {
    opacity: 0;
  }
}

.art-chart {
  flex-direction: column;
  gap: 12px;
  padding: 20px 20px 16px;
}
.art-chart svg {
  width: 100%;
  height: auto;
  max-height: 200px;
  overflow: visible;
}
.art-chart polyline {
  fill: none;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.art-chart .sys {
  stroke: var(--orange-2);
}
.art-chart .dia {
  stroke: var(--ink);
}
.art-chart .goal {
  stroke: var(--ink-3);
  stroke-width: 1;
  stroke-dasharray: 3 5;
}
.art-chart .dots circle {
  fill: #fff;
  stroke-width: 2.5;
}
.art-chart .dots circle:first-child {
  stroke: var(--orange-2);
}
.art-chart .dots circle:last-child {
  stroke: var(--ink);
}
.legend {
  display: flex;
  gap: 16px;
  font-size: 12px;
  color: var(--ink-2);
}
.k::before {
  content: "";
  display: inline-block;
  width: 10px;
  height: 2.5px;
  border-radius: 2px;
  margin-right: 6px;
  vertical-align: middle;
  background: currentColor;
}
.k.sys::before {
  background: var(--orange-2);
}
.k.dia::before {
  background: var(--ink);
}
.k.goal::before {
  background: var(--ink-3);
}

.doc {
  width: 74%;
  padding: 16px 18px;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 16px 30px -18px rgba(0, 0, 0, 0.2);
  font-size: 13px;
  transform: rotate(-2deg);
}
.doc b {
  display: block;
  margin-bottom: 8px;
  font-size: 14px;
}
.doc-row {
  display: flex;
  justify-content: space-between;
  padding: 5px 0;
  border-top: 1px solid var(--hair);
  color: var(--ink-2);
  font-variant-numeric: tabular-nums;
}
.doc-row span:last-child {
  color: var(--ink);
  font-weight: 600;
}

.toast {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 84%;
  padding: 12px 14px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 16px 30px -18px rgba(0, 0, 0, 0.25);
  font-size: 13px;
  line-height: 1.4;
}
.toast img {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: #fff3e6;
  transform: scale(1);
}
.toast b {
  display: block;
  font-size: 14px;
}
.toast small {
  color: var(--ink-2);
  font-size: 12px;
}

.cal {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 116px;
  padding-bottom: 12px;
  border-radius: 22px;
  background: #fff;
  overflow: hidden;
  box-shadow: 0 16px 30px -18px rgba(0, 0, 0, 0.25);
}
.cal small {
  width: 100%;
  padding: 4px 0;
  text-align: center;
  background: var(--orange-2);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
}
.cal b {
  font-size: 48px;
  line-height: 1.2;
  letter-spacing: -0.02em;
}
.cal span {
  font-size: 12px;
  color: var(--ink-2);
}

/* ---------- story ---------- */
.story {
  background: var(--bg-2);
}
.story-grid {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: clamp(40px, 7vw, 96px);
  align-items: center;
}
.story-art {
  padding: 8px;
  border-radius: 44px;
  background: rgba(255, 255, 255, 0.55);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.04);
}
.story-art img {
  width: 100%;
  border-radius: 36px;
  background: radial-gradient(circle at 50% 45%, #fff6ec, #ffe6cc 75%);
}
.story-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 22px;
}
.story-copy > p:not(.eyebrow) {
  color: var(--ink-2);
  font-size: 18px;
  line-height: 1.85;
}
.mission {
  list-style: none;
  margin: 8px 0 0;
  padding: 0;
  display: grid;
  gap: 12px;
}
.mission li {
  position: relative;
  padding-left: 34px;
  font-weight: 500;
}
.mission li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 4px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background:
    rgba(31, 157, 85, 0.12)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8.5l2.2 2.2L11.5 6' fill='none' stroke='%231f9d55' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")
    center / 14px no-repeat;
}

/* ---------- cta ---------- */
.cta-card {
  position: relative;
  overflow: hidden;
  padding: clamp(64px, 9vw, 112px) clamp(24px, 6vw, 80px);
  border-radius: 44px;
  background: #000;
  color: #f5f5f7;
  text-align: center;
}
.cta-card::before {
  content: "";
  position: absolute;
  inset: auto -20% -70% -20%;
  height: 120%;
  background: radial-gradient(closest-side, rgba(255, 140, 50, 0.35), rgba(255, 140, 50, 0));
  pointer-events: none;
}
.cta-card > * {
  position: relative;
}
.cta-card h2 {
  font-size: clamp(34px, 5.4vw, 60px);
  line-height: 1.25;
  letter-spacing: -0.015em;
}
.cta-card p {
  margin-top: 20px;
  color: #b8b8bd;
  font-size: clamp(17px, 2vw, 20px);
}
.cta-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px 32px;
  margin-top: 28px;
}
.cta-links a {
  color: #ffb36b;
  font-weight: 500;
}
.cta-links a:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* ---------- footer ---------- */
.footer {
  padding: 48px 0 56px;
  border-top: 1px solid var(--hair);
  font-size: 14px;
}
.footer-grid {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 20px 32px;
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px 24px;
  color: var(--ink-2);
}
.footer-links a:hover {
  color: var(--ink);
}
.fine {
  grid-column: 1 / -1;
  color: var(--ink-3);
  font-size: 12px;
}
.fine + .fine {
  margin-top: -12px;
}
.credit {
  color: var(--ink-2);
  font-weight: 500;
  text-decoration: underline;
  text-decoration-color: var(--hair);
  text-underline-offset: 3px;
  transition:
    color 300ms var(--ease),
    text-decoration-color 300ms var(--ease);
}
.credit:hover {
  color: var(--ink);
  text-decoration-color: currentColor;
}

/* ---------- guide page ---------- */
.page-hero {
  position: relative;
  padding: clamp(128px, 16vw, 168px) 0 clamp(56px, 8vw, 88px);
  text-align: center;
}
.chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 36px;
}
.chips a {
  padding: 8px 18px;
  border-radius: 999px;
  background: var(--surface);
  box-shadow: 0 0 0 1px var(--hair);
  font-size: 15px;
  font-weight: 500;
  transition:
    background-color 400ms var(--ease),
    transform 400ms var(--ease);
}
.chips a:hover {
  background: var(--bg-2);
}
.chips a:active {
  transform: scale(0.97);
}
.guide-section {
  padding: clamp(80px, 11vw, 128px) 0;
  scroll-margin-top: 0;
}
.guide-section.alt {
  background: var(--bg-2);
}
[id] {
  scroll-margin-top: 88px;
}

.guide-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.guide-steps .core {
  padding: 26px 26px 28px;
}
.guide-steps .num {
  display: block;
  padding: 0;
  margin-bottom: 18px;
}
.guide-steps h3 {
  margin-top: 0;
  font-size: 21px;
}
.guide-steps p {
  font-size: 16px;
}
.timer {
  align-self: flex-start;
  margin-top: 18px;
  padding: 8px 18px;
  border: 0;
  border-radius: 999px;
  background: var(--peach);
  color: var(--orange-text);
  font: 600 15px / 1.4 var(--font);
  font-variant-numeric: tabular-nums;
  cursor: pointer;
  transition:
    background-color 400ms var(--ease),
    transform 400ms var(--ease);
}
.timer:hover {
  background: rgba(242, 133, 31, 0.16);
}
.timer:active {
  transform: scale(0.97);
}
.timer.running {
  background: var(--ink);
  color: #fff;
}
.timer.done {
  background: var(--ok-bg);
  color: var(--ok);
}

.send-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  margin-top: 24px;
  padding: clamp(28px, 4vw, 44px);
  border-radius: 34px;
  background: var(--surface);
  box-shadow:
    0 0 0 1px var(--hair),
    0 24px 48px -32px rgba(0, 0, 0, 0.14);
}
.send-card h3 {
  font-size: clamp(22px, 2.6vw, 28px);
  line-height: 1.35;
}
.send-card p {
  margin: 10px 0 24px;
  color: var(--ink-2);
  max-width: 560px;
}
.qr {
  width: 160px;
  height: 160px;
  border-radius: 20px;
  flex-shrink: 0;
}

.checker {
  max-width: 760px;
  margin: 0 auto;
}
.checker .core {
  padding: 24px;
}
.checker-row {
  display: flex;
  align-items: flex-end;
  gap: 12px;
}
.checker label {
  flex: 1;
  display: grid;
  gap: 6px;
  font-size: 14px;
  color: var(--ink-2);
}
.checker input {
  width: 100%;
  padding: 12px 16px;
  border: 0;
  border-radius: 16px;
  background: var(--bg-2);
  color: var(--ink);
  font: 600 26px / 1.3 var(--font);
  font-variant-numeric: tabular-nums;
  box-shadow: inset 0 0 0 1px transparent;
  transition: box-shadow 300ms var(--ease);
}
.checker input:focus {
  outline: none;
  box-shadow: inset 0 0 0 2px var(--orange-text);
}
.slash {
  padding-bottom: 12px;
  font-size: 26px;
  color: var(--ink-3);
}
.checker .btn {
  padding: 14px 24px;
}
.result {
  margin-top: 18px;
  padding: 18px 20px;
  border-radius: 18px;
  background: var(--bg-2);
}
.result b {
  display: block;
  font-size: 20px;
}
.result p {
  margin-top: 4px;
  color: var(--ink-2);
}
.result .lv {
  margin-bottom: 8px;
}

.levels {
  margin-top: 28px;
  overflow-x: auto;
  border-radius: 28px;
  background: var(--surface);
  box-shadow: 0 0 0 1px var(--hair);
}
.levels table {
  width: 100%;
  border-collapse: collapse;
  font-size: 16px;
}
.levels th {
  padding: 16px 20px;
  text-align: left;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-3);
  border-bottom: 1px solid var(--hair);
}
.levels td {
  padding: 14px 20px;
  border-bottom: 1px solid var(--hair);
  font-variant-numeric: tabular-nums;
  vertical-align: top;
}
.levels tr:last-child td {
  border-bottom: 0;
}
.levels td:nth-child(2),
.levels td:nth-child(3) {
  white-space: nowrap;
  font-weight: 500;
}
.levels td:last-child {
  color: var(--ink-2);
}
.lv {
  display: inline-block;
  padding: 2px 12px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
}
.lv-low {
  background: #ebf3ff;
  color: #245a91;
}
.lv-ok {
  background: var(--ok-bg);
  color: var(--ok);
}
.lv-s1 {
  background: var(--peach);
  color: var(--orange-text);
}
.lv-s2 {
  background: #fff0ef;
  color: #a12a26;
}
.lv-crit {
  background: #b42318;
  color: #fff;
}
.alert {
  margin-top: 20px;
  text-align: center;
  color: var(--ink-2);
  font-size: 15px;
}
.alert a {
  color: #b42318;
  font-weight: 700;
}

.care-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  border-radius: 28px;
  overflow: hidden;
  background: var(--hair);
  box-shadow: 0 0 0 1px var(--hair);
}
.care-grid li {
  padding: 28px 26px 30px;
  background: var(--surface);
}
.care-grid h3 {
  font-size: 19px;
  line-height: 1.4;
}
.care-grid h3::before {
  content: "";
  display: block;
  width: 8px;
  height: 8px;
  margin-bottom: 14px;
  border-radius: 50%;
  background: var(--orange);
}
.care-grid p {
  margin-top: 6px;
  color: var(--ink-2);
  font-size: 16px;
}

.faq-wrap {
  max-width: 820px;
}
.faq {
  border-radius: 28px;
  background: var(--surface);
  box-shadow: 0 0 0 1px var(--hair);
}
.faq details {
  border-bottom: 1px solid var(--hair);
}
.faq details:last-child {
  border-bottom: 0;
}
.faq summary {
  position: relative;
  padding: 22px 64px 22px 26px;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary::after {
  content: "";
  position: absolute;
  right: 26px;
  top: 50%;
  width: 10px;
  height: 10px;
  margin-top: -7px;
  border-right: 1.5px solid var(--ink-3);
  border-bottom: 1.5px solid var(--ink-3);
  transform: rotate(45deg);
  transition: transform 500ms var(--ease);
}
.faq details[open] summary::after {
  transform: translateY(4px) rotate(-135deg);
}
.faq details p {
  padding: 0 26px 24px;
  color: var(--ink-2);
}
.faq a {
  color: var(--orange-text);
  font-weight: 500;
}

/* ---------- motion ----------
   Everything below only adds movement. Without JS, or with reduced motion, the page shows its
   final state. Only transform, opacity and SVG stroke offsets are animated. */

/* Hero: the warm glow drifts slowly. */
.hero::before {
  animation: glow-drift 18s var(--ease) infinite alternate;
}
@keyframes glow-drift {
  from {
    transform: translateX(-50%) scale(1);
  }
  to {
    transform: translate(-46%, -4%) scale(1.08);
  }
}

/* Hero phone: the chat plays out message by message (app.js adds .chat-play, then .show). */
.chat {
  position: relative;
}
.chat-play .msg {
  opacity: 0;
  transform: translateY(14px) scale(0.94);
  transition:
    opacity 500ms var(--ease-out),
    transform 700ms cubic-bezier(0.34, 1.56, 0.64, 1);
}
.chat-play .msg.me {
  transform-origin: 100% 100%;
}
.chat-play .msg.bot {
  transform-origin: 0 100%;
}
.chat-play .msg.show {
  opacity: 1;
  transform: none;
}
.typing {
  position: absolute;
  left: 14px;
  display: flex;
  gap: 4px;
  padding: 12px 14px;
  border-radius: 18px 18px 18px 6px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
  opacity: 0;
  transform: scale(0.8);
  transform-origin: 0 100%;
  transition:
    opacity 300ms var(--ease-out),
    transform 400ms var(--ease-out);
}
.typing.show {
  opacity: 1;
  transform: none;
}
.typing i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--ink-3);
  animation: typing-dot 1.1s var(--ease) infinite;
}
.typing i:nth-child(2) {
  animation-delay: 150ms;
}
.typing i:nth-child(3) {
  animation-delay: 300ms;
}
@keyframes typing-dot {
  0%,
  60%,
  100% {
    transform: translateY(0);
    opacity: 0.45;
  }
  30% {
    transform: translateY(-4px);
    opacity: 1;
  }
}
.chat-play .tag.ok {
  transform: scale(0.6);
  opacity: 0;
  transition:
    opacity 400ms var(--ease-out) 450ms,
    transform 600ms cubic-bezier(0.34, 1.56, 0.64, 1) 450ms;
}
.chat-play .msg.show .tag.ok {
  transform: none;
  opacity: 1;
}

/* Lines that draw themselves: the hero sparkline and the feature chart. */
.js .spark polyline,
.js .art-chart polyline {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  transition: stroke-dashoffset 1600ms var(--ease-out);
}
.js .msg.show .spark polyline,
.js .b-b.in .art-chart polyline {
  stroke-dashoffset: 0;
}
.js .msg.show .spark polyline {
  transition-delay: 300ms;
}
.js .b-b.in .art-chart .dia {
  transition-delay: 250ms;
}
.js .art-chart .goal {
  opacity: 0;
  transition: opacity 800ms var(--ease-out) 200ms;
}
.js .b-b.in .art-chart .goal {
  opacity: 1;
}
.js .art-chart .dots circle {
  transform: scale(0);
  transform-box: fill-box;
  transform-origin: center;
  transition: transform 600ms cubic-bezier(0.34, 1.56, 0.64, 1) 1500ms;
}
.js .b-b.in .art-chart .dots circle {
  transform: none;
}

/* Feature cards: small entrances once the card is in view. */
.js .b-a .lcd-lg {
  transform: rotate(-4deg) translateY(10px);
  opacity: 0;
  transition:
    transform 900ms cubic-bezier(0.34, 1.56, 0.64, 1) 200ms,
    opacity 500ms var(--ease-out) 200ms;
}
.js .b-a.in .lcd-lg {
  transform: rotate(-2deg);
  opacity: 1;
}
.js .doc {
  transform: rotate(-6deg) translateY(24px);
  opacity: 0;
  transition:
    transform 900ms cubic-bezier(0.34, 1.56, 0.64, 1) 200ms,
    opacity 500ms var(--ease-out) 200ms;
}
.js .b-c.in .doc {
  transform: rotate(-2deg);
  opacity: 1;
}
.js .doc-row {
  opacity: 0;
  transform: translateX(-8px);
  transition:
    opacity 500ms var(--ease-out),
    transform 600ms var(--ease-out);
}
.js .b-c.in .doc-row {
  opacity: 1;
  transform: none;
}
.js .b-c.in .doc-row:nth-of-type(1) {
  transition-delay: 600ms;
}
.js .b-c.in .doc-row:nth-of-type(2) {
  transition-delay: 720ms;
}
.js .b-c.in .doc-row:nth-of-type(3) {
  transition-delay: 840ms;
}
.js .toast {
  transform: translateY(-28px) scale(0.96);
  opacity: 0;
  transition:
    transform 800ms cubic-bezier(0.34, 1.56, 0.64, 1) 350ms,
    opacity 400ms var(--ease-out) 350ms;
}
.js .b-d.in .toast {
  transform: none;
  opacity: 1;
}
.js .cal {
  transform: translateY(16px) scale(0.9);
  opacity: 0;
  transition:
    transform 800ms cubic-bezier(0.34, 1.56, 0.64, 1) 400ms,
    opacity 400ms var(--ease-out) 400ms;
}
.js .b-e.in .cal {
  transform: none;
  opacity: 1;
}
.cal b {
  display: block;
}
.js .b-e.in .cal b {
  animation: cal-flip 700ms var(--ease-out) 700ms both;
}
@keyframes cal-flip {
  from {
    transform: perspective(300px) rotateX(-90deg);
    opacity: 0;
  }
  to {
    transform: none;
    opacity: 1;
  }
}

/* How it works: each step's hairline draws from the left. */
.steps li {
  position: relative;
  border-top: 0;
}
.steps li::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--hair);
  transform-origin: 0 50%;
  transition: transform 1200ms var(--ease-out);
}
.js .steps li:not(.in)::before {
  transform: scaleX(0);
}

/* Rolling digits (app.js builds .odo when the numbers scroll into view). */
.stat dd.odo {
  display: flex;
  justify-content: center;
  background: none;
  color: #fff;
}
.odo-digit {
  display: inline-block;
  height: 1.1em;
  overflow: hidden;
}
.odo-strip {
  display: block;
  transform: translateY(0);
  transition: transform 2200ms cubic-bezier(0.16, 1, 0.3, 1);
}
.odo-strip span,
.odo-sep {
  display: block;
  height: 1.1em;
}
.odo-sep {
  display: inline-block;
  opacity: 0.55;
}
.stat dt {
  transition: opacity 600ms var(--ease-out) 900ms;
}
.js .stat:not(.in) dt {
  opacity: 0;
}

/* Guide: the checker result and FAQ answers ease in. */
.result.pop {
  animation: result-pop 600ms cubic-bezier(0.34, 1.56, 0.64, 1);
}
@keyframes result-pop {
  from {
    opacity: 0;
    transform: translateY(8px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
.faq details[open] p {
  animation: faq-in 500ms var(--ease-out);
}
@keyframes faq-in {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
.faq summary {
  transition: background-color 300ms var(--ease);
}
.faq summary:hover {
  background: rgba(0, 0, 0, 0.02);
}
.faq details:first-child summary {
  border-radius: 28px 28px 0 0;
}
.faq details:last-child:not([open]) summary {
  border-radius: 0 0 28px 28px;
}
.timer.running {
  animation: timer-breathe 2s var(--ease) infinite;
}
@keyframes timer-breathe {
  50% {
    transform: scale(1.04);
  }
}
.timer.done {
  animation: result-pop 600ms cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Cards lift and the mascot leans in on hover (pointer devices only). */
@media (hover: hover) {
  .story-art img {
    transition: transform 900ms var(--ease);
  }
  .story-art:hover img {
    transform: scale(1.04) rotate(-2deg);
  }
  .care-grid li {
    transition: background-color 400ms var(--ease);
  }
  .care-grid li:hover {
    background: #fffaf5;
  }
}

/* ---------- scroll-linked motion ----------
   app.js sets --in (0 → 1 as an element comes into view) and --out (0 → 1 as it scrolls past
   the top) on every [data-scroll] element, on each frame while scrolling. The defaults
   (--in: 1, --out: 0) are the final state, so without JS or with reduced motion nothing moves.
   These use the individual translate/scale/rotate properties, so they stack with the
   transform-based reveals and hovers instead of overriding them. */
[data-scroll] {
  --in: 1;
  --out: 0;
  --k: 1;
}

/* Reading progress, a hairline under the top edge. */
.progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 31;
  height: 3px;
  background: linear-gradient(90deg, var(--orange), var(--orange-2));
  transform: scaleX(0);
  transform-origin: 0 50%;
  pointer-events: none;
}

/* Hero copy lifts away and fades as the page scrolls. */
.hero-copy[data-scroll] {
  translate: 0 calc(var(--out) * -110px);
  scale: calc(1 - var(--out) * 0.06);
  opacity: calc(1 - var(--out) * 1.1);
}

/* Hero phone tilts up from flat and grows into place; the mascot rises beside it. */
.phone[data-scroll] {
  transform: perspective(1400px) rotateX(calc((1 - var(--in)) * 24deg));
  transform-origin: 50% 100%;
  scale: calc(0.84 + var(--in) * 0.16);
}
.mascot[data-scroll] {
  translate: calc((1 - var(--in)) * -60px) calc((1 - var(--in)) * 90px);
  scale: calc(0.75 + var(--in) * 0.25);
}

/* Section headings zoom in from slightly small and faint. */
.center-head[data-scroll] {
  scale: calc(0.88 + var(--in) * 0.12);
  opacity: calc(0.15 + var(--in) * 0.85);
}

/* Big numbers grow as the black band comes up. */
.stat-grid[data-scroll] {
  scale: calc(0.8 + var(--in) * 0.2);
}

/* Feature pictures rise inside their cards. */
.art[data-scroll] {
  translate: 0 calc((1 - var(--in)) * 70px);
  scale: calc(0.9 + var(--in) * 0.1);
}

/* Cards in a row move at slightly different speeds (--k). */
.guide-steps [data-scroll] {
  translate: 0 calc((1 - var(--in)) * 90px * var(--k));
}
.send-card[data-scroll],
.levels[data-scroll] {
  translate: 0 calc((1 - var(--in)) * 60px);
  scale: calc(0.94 + var(--in) * 0.06);
}

/* Story mascot drifts and turns as it passes. */
.story-art img[data-scroll] {
  translate: 0 calc((1 - var(--in)) * 80px - var(--out) * 60px);
  rotate: calc((1 - var(--in)) * -8deg);
}

/* The black call-to-action card expands to full size. */
.cta .wrap[data-scroll] {
  scale: calc(0.82 + var(--in) * 0.18);
}

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .mascot {
    left: calc(50% - 300px);
    width: 260px;
  }
  .b-a {
    grid-column: span 12;
  }
  .b-b,
  .b-c,
  .b-d,
  .b-e {
    grid-column: span 6;
  }
  .split,
  .story-grid {
    grid-template-columns: 1fr;
  }
  .split-head {
    position: static;
  }
  .story-art {
    max-width: 420px;
  }
  .guide-steps,
  .care-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 767px) {
  body {
    font-size: 16px;
  }
  .nav-links,
  .nav-cta {
    display: none;
  }
  .js .burger {
    display: block;
  }
  .nav-pill {
    width: 100%;
    justify-content: space-between;
    padding-left: 16px;
  }
  .language-link {
    margin-left: auto;
  }
  .js [data-reveal] {
    filter: none;
  }
  .mascot {
    left: auto;
    right: -8px;
    top: -64px;
    width: 128px;
    z-index: 3;
  }
  .phone {
    width: 290px;
  }
  .phone-screen {
    min-height: 520px;
  }
  .stat-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .bento {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .b-a,
  .b-b,
  .b-c,
  .b-d,
  .b-e {
    grid-column: auto;
  }
  .core {
    padding: 22px 22px 26px;
  }
  .guide-steps,
  .care-grid {
    grid-template-columns: 1fr;
  }
  .send-card {
    flex-direction: column;
    align-items: flex-start;
  }
  .qr {
    display: none;
  }
  .checker-row {
    flex-wrap: wrap;
  }
  .checker label {
    flex: 1 1 40%;
  }
  .slash {
    display: none;
  }
  .checker .btn {
    width: 100%;
    justify-content: center;
  }
  /* The level table becomes one card per row: badge, upper, lower; the advice underneath. */
  .levels thead {
    display: none;
  }
  .levels table,
  .levels tbody {
    display: block;
  }
  .levels tr {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 6px 14px;
    padding: 16px 18px;
    border-bottom: 1px solid var(--hair);
  }
  .levels tr:last-child {
    border-bottom: 0;
  }
  .levels td {
    padding: 0;
    border: 0;
    font-size: 15px;
  }
  .levels td:first-child {
    grid-column: 1 / -1;
  }
  .levels td:last-child {
    grid-column: 1 / -1;
    font-size: 14px;
  }
  .steps li {
    grid-template-columns: 48px 1fr;
    padding: 28px 0;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .footer-links {
    justify-content: flex-start;
  }
  .cta-card {
    border-radius: 32px;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation: none !important;
    transition-duration: 1ms !important;
    transition-delay: 0ms !important;
  }
  .js [data-reveal] {
    opacity: 1;
    transform: none;
    filter: none;
  }
}
