/* Public website, redesigned 2026-10-06 (decision 96) in the manner of a
   Material 3 landing page: one warm tonal palette around the brand rose,
   large display type, flat tonal containers instead of shadows, pill
   buttons, generous white space, and motion that is CSS only (the app on a
   phone swiping by itself, a changing headline word, a ticker, cards that
   rise as they scroll in). System fonts only: nothing is loaded from
   another site. Earlier decisions 72, 73, 76, 87 and 94 are superseded here. */

/* ---- Tokens ------------------------------------------------------------- */

:root {
  --surface: #fff8f8;
  --surface-low: #fff0f2;
  --surface-c: #fbeaec;
  --surface-high: #f5e4e7;
  --surface-highest: #efdee1;
  --on-surface: #22191b;
  --on-surface-variant: #5a4a4e;
  --outline: #857478;
  --outline-variant: #dcc8cc;
  --primary: #b4134c; /* the brand rose, deepened for text and fills under white */
  --primary-bright: #d7285f; /* the brand rose itself: the mark, icons, the deck's like */
  --primary-hover: #99103f;
  --on-primary: #ffffff;
  --primary-container: #ffd9e0;
  --on-primary-container: #3f0018;
  --secondary-container: #ffdcc8;
  --on-secondary-container: #3a1300;
  --tertiary-container: #c9ebd4;
  --on-tertiary-container: #00210f;
  --lavender-container: #e8def8;
  --on-lavender-container: #1d192b;
  --sky-container: #d6e4ff;
  --on-sky-container: #001b3e;
  --inverse-surface: #2b1e22;
  --inverse-card: #3a2b30;
  --inverse-on-surface: #f7ecee;
  --inverse-muted: #d5c4c8;
  --inverse-primary: #ffb1c3;
  --phone: #1d1416;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans Thai", "Leelawadee UI", Thonburi, sans-serif;
  color-scheme: light dark;

  /* Names the inner pages (legal, help, delete, report, contact) still use. */
  --bg: var(--surface);
  --soft: var(--surface-low);
  --ink: var(--on-surface);
  --muted: var(--on-surface-variant);
  --line: var(--outline-variant);
  --rose: var(--primary-bright);
  --on-rose: #ffffff;
  --rose-press: var(--primary-hover);
  --rose-text: var(--primary);
  --rose-soft: var(--primary-container);
  --amber-bg: var(--secondary-container);
  --amber-fg: var(--on-secondary-container);
  --lilac-bg: var(--lavender-container);
  --lilac-fg: var(--on-lavender-container);
  --mint-bg: var(--tertiary-container);
  --mint-fg: var(--on-tertiary-container);
  --sky-bg: var(--sky-container);
  --sky-fg: var(--on-sky-container);
  --ink-bg: var(--inverse-surface);
  --ink-fg: var(--inverse-on-surface);
  --ink-muted: var(--inverse-muted);
  --ink-card: var(--inverse-card);
  --sand-bg: var(--secondary-container);
  --sand-fg: var(--on-secondary-container);
  --sticker-bg: #ffffff;
  --frame-line: var(--outline-variant);
  --c1: #b4134c;
  --c2: #5b3fc4;
  --c3: #1f7a4f;
}

/* Dark: the device's setting unless the switch chose light, or dark chosen
   with the switch (data-theme on <html>, set by theme.js before the page is
   drawn). Keep the two lists of values the same. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) {
    --surface: #161013;
    --surface-low: #1c1518;
    --surface-c: #231b1e;
    --surface-high: #2d2428;
    --surface-highest: #382e32;
    --on-surface: #f3e6e8;
    --on-surface-variant: #d4c2c6;
    --outline: #9e8c90;
    --outline-variant: #524448;
    --primary: #ffb1c3;
    --primary-bright: #ff6f96;
    --primary-hover: #ffc4d1;
    --on-primary: #5e0f31;
    --primary-container: #8f1d45;
    --on-primary-container: #ffd9e0;
    --secondary-container: #5c3a28;
    --on-secondary-container: #ffdcc8;
    --tertiary-container: #1e4a33;
    --on-tertiary-container: #c9ebd4;
    --lavender-container: #3b3350;
    --on-lavender-container: #e8def8;
    --sky-container: #243a5a;
    --on-sky-container: #d6e4ff;
    --inverse-surface: #2d2126;
    --inverse-card: #3d2f34;
    --inverse-on-surface: #f7ecee;
    --inverse-muted: #d5c4c8;
    --inverse-primary: #ffb1c3;
    --phone: #09060a;
    --sticker-bg: #2d2428;
    --c1: #ff8fb0;
    --c2: #b9a6f0;
    --c3: #7fd1a8;
  }
}

:root[data-theme='dark'] {
  --surface: #161013;
  --surface-low: #1c1518;
  --surface-c: #231b1e;
  --surface-high: #2d2428;
  --surface-highest: #382e32;
  --on-surface: #f3e6e8;
  --on-surface-variant: #d4c2c6;
  --outline: #9e8c90;
  --outline-variant: #524448;
  --primary: #ffb1c3;
  --primary-bright: #ff6f96;
  --primary-hover: #ffc4d1;
  --on-primary: #5e0f31;
  --primary-container: #8f1d45;
  --on-primary-container: #ffd9e0;
  --secondary-container: #5c3a28;
  --on-secondary-container: #ffdcc8;
  --tertiary-container: #1e4a33;
  --on-tertiary-container: #c9ebd4;
  --lavender-container: #3b3350;
  --on-lavender-container: #e8def8;
  --sky-container: #243a5a;
  --on-sky-container: #d6e4ff;
  --inverse-surface: #2d2126;
  --inverse-card: #3d2f34;
  --inverse-on-surface: #f7ecee;
  --inverse-muted: #d5c4c8;
  --inverse-primary: #ffb1c3;
  --phone: #09060a;
  --sticker-bg: #2d2428;
  --c1: #ff8fb0;
  --c2: #b9a6f0;
  --c3: #7fd1a8;
  color-scheme: dark;
}

:root[data-theme='light'] {
  color-scheme: light;
}

/* ---- Base --------------------------------------------------------------- */

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

body {
  margin: 0;
  background: var(--surface);
  color: var(--on-surface);
  font: 400 17px/1.6 var(--font);
  overflow-x: hidden;
}

body:lang(th) {
  line-height: 1.75;
}

h1,
h2,
h3,
p {
  margin: 0;
}

h1,
h2,
h3,
summary {
  text-wrap: balance;
}

p {
  text-wrap: pretty;
}

a {
  color: var(--primary);
  text-underline-offset: 3px;
}

:focus-visible {
  outline: 3px solid var(--primary-bright);
  outline-offset: 3px;
  border-radius: 8px;
}

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

.ico {
  width: 24px;
  height: 24px;
  flex: none;
}

.skip {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 30;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--primary);
  color: var(--on-primary);
  font-weight: 700;
  text-decoration: none;
}

.skip:focus {
  top: 12px;
}

.wrap {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
}

@media (min-width: 640px) {
  .wrap {
    padding: 0 24px;
  }
}

@media (min-width: 1024px) {
  .wrap {
    padding: 0 32px;
  }
}

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

/* ---- Buttons (pills: filled, tonal, outlined, text) --------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.btn-ink,
.btn-rose {
  padding: 12px 22px;
  background: var(--primary);
  color: var(--on-primary);
  font-size: 15px;
}

.btn-ink:hover,
.btn-rose:hover {
  background: var(--primary-hover);
}

.btn-line {
  padding: 11px 20px;
  border: 1.5px solid var(--outline-variant);
  color: var(--on-surface);
  font-size: 15px;
}

.btn-line:hover {
  border-color: var(--on-surface);
}

.btn-rose,
.btn-line {
  overflow-wrap: anywhere;
  white-space: normal;
}

/* ---- Header: a quiet top bar ------------------------------------------- */

.top {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid transparent;
  background: color-mix(in srgb, var(--surface) 84%, transparent);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
}

/* The hairline appears once the page has scrolled (browsers with
   scroll-driven animations; the others keep it always). */
@supports (animation-timeline: scroll()) {
  .top {
    animation: bar-solid linear both;
    animation-timeline: scroll(root);
    animation-range: 0 72px;
  }
}

@supports not (animation-timeline: scroll()) {
  .top {
    border-bottom-color: var(--outline-variant);
  }
}

@keyframes bar-solid {
  to {
    border-bottom-color: var(--outline-variant);
  }
}

.bar {
  display: flex;
  align-items: center;
  gap: 20px;
  height: 68px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--on-surface);
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.02em;
  text-decoration: none;
  white-space: nowrap;
}

.mark {
  width: 30px;
  height: 26px;
  color: var(--primary-bright);
  flex: none;
}

.nav {
  display: none;
  gap: 2px;
}

.nav a {
  white-space: nowrap;
  padding: 9px 14px;
  border-radius: 999px;
  color: var(--on-surface-variant);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
}

.nav a:hover {
  background: var(--surface-c);
  color: var(--on-surface);
}

@media (min-width: 1120px) {
  .nav {
    display: flex;
  }
}

/* The Thai labels are longer. */
@media (min-width: 1120px) and (max-width: 1219px) {
  html:lang(th) .nav {
    display: none;
  }
}

.bar-end {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

.langs {
  display: inline-flex;
  padding: 3px;
  border: 1px solid var(--outline-variant);
  border-radius: 999px;
}

.lang {
  min-width: 44px;
  padding: 5px 12px;
  border-radius: 999px;
  color: var(--on-surface-variant);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.4;
  text-align: center;
  text-decoration: none;
}

.lang:hover {
  color: var(--on-surface);
}

.lang.is-current {
  background: var(--on-surface);
  color: var(--surface);
}

.signin {
  padding: 10px 14px;
  border-radius: 999px;
  color: var(--on-surface);
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.signin:hover {
  background: var(--surface-c);
}

@media (max-width: 559px) {
  .bar-end .btn {
    display: none;
  }

  .bar {
    gap: 8px;
    height: 60px;
  }

  .bar-end {
    gap: 2px;
  }

  .lang {
    min-width: 36px;
    padding: 5px 9px;
  }

  .bar-end .theme-toggle {
    width: 36px;
    height: 36px;
  }

  .signin {
    padding: 10px 8px;
  }

  .brand {
    gap: 8px;
  }
}

/* Narrow phones: only the mark (the name is in the page and the footer). */
@media (max-width: 419px) {
  .bar .brand span {
    display: none;
  }
}

/* ---- Hero ----------------------------------------------------------------
   Centred copy, then the app on a phone that swipes by itself, with the
   like, the match and the first chat line coming in around it. */

.hero {
  padding: 56px 0 24px;
  overflow-x: clip;
  text-align: center;
}

@media (min-width: 1000px) {
  .hero {
    padding: 80px 0 32px;
  }
}

.hero-copy {
  max-width: 880px;
  margin: 0 auto;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px 8px 12px;
  border-radius: 999px;
  background: var(--primary-container);
  color: var(--on-primary-container);
  font-size: 14px;
  font-weight: 700;
}

.dot {
  position: relative;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--primary-bright);
}

.dot::after {
  content: '';
  position: absolute;
  inset: -5px;
  border: 2px solid var(--primary-bright);
  border-radius: 50%;
  opacity: 0;
  animation: dot-ping 2.6s ease-out infinite;
}

@keyframes dot-ping {
  0% {
    transform: scale(0.4);
    opacity: 0.9;
  }

  70%,
  100% {
    transform: scale(1.3);
    opacity: 0;
  }
}

h1 {
  margin-top: 26px;
  font-size: clamp(44px, 11vw, 96px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.04em;
}

h1:lang(th) {
  font-size: clamp(36px, 9.4vw, 80px);
  line-height: 1.22;
  letter-spacing: 0;
}

@media (min-width: 1000px) {
  h1 {
    font-size: clamp(72px, 7.6vw, 96px);
  }

  h1:lang(th) {
    font-size: clamp(60px, 6.4vw, 80px);
  }
}

.line {
  display: block;
}

/* The changing word: the four share one grid cell, so the line is as wide as
   the longest, and each shows for three seconds of a twelve-second round. */
.swap {
  display: inline-grid;
  color: var(--primary);
  white-space: nowrap;
}

.swap > span {
  grid-area: 1 / 1;
  opacity: 0;
  transform: translateY(0.5em);
  animation: swap-word 12s cubic-bezier(0.2, 0.8, 0.2, 1) infinite;
}

.swap > span:first-child {
  opacity: 1;
  transform: none; /* the still picture shows the first word */
}

.swap > span:nth-child(2) {
  animation-delay: 3s;
}

.swap > span:nth-child(3) {
  animation-delay: 6s;
}

.swap > span:nth-child(4) {
  animation-delay: 9s;
}

@keyframes swap-word {
  0% {
    opacity: 0;
    transform: translateY(0.5em);
  }

  5%,
  23% {
    opacity: 1;
    transform: translateY(0);
  }

  28%,
  100% {
    opacity: 0;
    transform: translateY(-0.5em);
  }
}

.lead {
  max-width: 34em;
  margin: 26px auto 0;
  color: var(--on-surface-variant);
  font-size: clamp(17px, 1.7vw, 21px);
}

.stores {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 32px;
}

.store {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 168px;
  padding: 10px 22px 10px 14px;
  border-radius: 999px;
  background: var(--primary-container);
  color: var(--on-primary-container);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  text-align: left;
}

.store span {
  display: flex;
  flex-direction: column;
}

.store small {
  font-size: 12px;
  font-weight: 600;
  opacity: 0.8;
}

a.store {
  background: var(--primary);
  color: var(--on-primary);
}

a.store:hover {
  background: var(--primary-hover);
}

.proof {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 22px;
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
}

.proof li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--on-surface-variant);
  font-size: 15px;
  font-weight: 600;
}

.proof .ico {
  width: 20px;
  height: 20px;
  color: var(--primary-bright);
}

/* The stage: a pastel tile, the phone on it, the pills around it. */

.stage {
  position: relative;
  width: 100%;
  max-width: 980px;
  height: 640px;
  margin: 40px auto 0;
}

@media (min-width: 640px) {
  .stage {
    height: 700px;
    margin-top: 56px;
  }
}

.stage-tile {
  position: absolute;
  inset: 120px 0 0;
  border-radius: 40px;
  background: var(--primary-container);
}

@media (min-width: 640px) {
  .stage-tile {
    inset: 140px 0 0;
    border-radius: 48px;
  }
}

.phone {
  position: absolute;
  top: 0;
  left: 50%;
  width: 272px;
  height: 556px;
  padding: 10px;
  border-radius: 46px;
  background: var(--phone);
  translate: -50% 0;
}

@media (min-width: 640px) {
  .phone {
    width: 300px;
    height: 612px;
    padding: 11px;
    border-radius: 50px;
  }
}

.screen {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  border-radius: 36px;
  background: var(--surface);
  color: var(--on-surface);
  text-align: left;
}

@media (min-width: 640px) {
  .screen {
    border-radius: 40px;
  }
}

.notch {
  position: absolute;
  z-index: 2;
  top: 10px;
  left: 50%;
  width: 84px;
  height: 22px;
  border-radius: 999px;
  background: var(--phone);
  translate: -50% 0;
}

.appbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 44px 16px 8px;
}

.appbar-brand {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.appbar-brand .mark {
  width: 22px;
  height: 19px;
}

.appbar-dots {
  display: flex;
  gap: 6px;
}

.appbar-dots i {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--surface-high);
}

.deck {
  position: relative;
  flex: 1;
  margin: 2px 12px 0;
}

.dc {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border-radius: 22px;
  background: var(--surface-c);
  transform-origin: 50% 110%;
}

/* The resting stack (the still picture): the top card and two behind it. */
.dc-1 {
  z-index: 3;
}

.dc-2 {
  z-index: 2;
  transform: translateY(12px) scale(0.95);
}

.dc-3 {
  z-index: 1;
  transform: translateY(24px) scale(0.9);
}

.face {
  display: block;
  width: 100%;
  height: 100%;
}

.info {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 60px 14px 14px;
  background: linear-gradient(to top, rgb(20 12 14 / 0.9), rgb(20 12 14 / 0.6) 55%, rgb(20 12 14 / 0));
  color: #fff;
}

.verified {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px 3px 5px;
  border-radius: 999px;
  background: #cfe5ff;
  color: #00497a;
  font-size: 12px;
  font-weight: 800;
}

.verified .ico {
  width: 18px;
  height: 18px;
}

.name {
  margin-top: 8px;
  font-size: 24px;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.meta {
  font-size: 13px;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 10px;
  padding: 5px 12px 5px 8px;
  border-radius: 999px;
  background: rgb(255 255 255 / 0.2);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.3;
}

.chip .ico {
  width: 16px;
  height: 16px;
}

/* The stamp while a card is swiped (LIKE to the right, PASS to the left). */
.stamp {
  position: absolute;
  top: 18px;
  left: 14px;
  padding: 4px 10px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  rotate: -12deg;
  opacity: 0;
}

.stamp-like {
  background: var(--primary-bright);
  color: #fff;
}

.stamp-pass {
  right: 14px;
  left: auto;
  background: #fff;
  color: #221722;
  rotate: 12deg;
}

.pactions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 14px 0 10px;
}

.pact {
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  border-radius: 50%;
}

.pact .ico {
  width: 22px;
  height: 22px;
}

.pact-pass {
  background: var(--surface-high);
  color: var(--on-surface);
}

.pact-super {
  position: relative;
  width: 42px;
  height: 42px;
  background: var(--secondary-container);
  color: var(--on-secondary-container);
}

.pact-super b {
  position: absolute;
  top: -4px;
  right: -4px;
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--on-secondary-container);
  color: var(--secondary-container);
  font-size: 10px;
  line-height: 1;
}

.pact-like {
  background: var(--primary-bright);
  color: #fff;
}

.tabs {
  display: flex;
  justify-content: space-around;
  padding: 6px 8px 14px;
  border-top: 1px solid var(--outline-variant);
}

.tab {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  color: var(--on-surface-variant);
  font-size: 10px;
  font-weight: 700;
}

.tab i {
  display: grid;
  place-items: center;
  width: 44px;
  height: 26px;
  border-radius: 999px;
}

.tab .ico {
  width: 20px;
  height: 20px;
}

.tab-on {
  color: var(--on-surface);
}

.tab-on i {
  background: var(--primary-container);
  color: var(--on-primary-container);
}

/* The pills around the phone */

.float {
  position: absolute;
  z-index: 5;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--sticker-bg);
  color: var(--on-surface);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.3;
  white-space: nowrap;
}

.float .ico {
  width: 20px;
  height: 20px;
}

.float-match {
  top: 84px;
  left: 2%;
  background: var(--primary-bright);
  color: #fff;
}

.float-liked {
  top: 196px;
  right: 2%;
}

.float-liked .ico {
  color: var(--primary-bright);
}

.float-chat {
  right: 2%;
  bottom: 140px;
  font-size: 14px;
}

@media (min-width: 640px) {
  .float-match {
    top: 110px;
    left: 8%;
  }

  .float-liked {
    top: 230px;
    right: 9%;
  }

  .float-chat {
    right: 7%;
    bottom: 190px;
    font-size: 15px;
  }
}

@media (min-width: 900px) {
  .float-match {
    left: 16%;
  }

  .float-liked {
    right: 17%;
  }

  .float-chat {
    right: 14%;
  }
}

/* Hero motion: a twelve-second round. Fah is liked (3 s), Tawan passed
   (7 s), Mint liked (11 s); after the first like "It's a match!" pops in,
   then the chat line; the like notice shows early. A card that leaves comes
   back at the bottom of the stack, so the round never ends. */

.dc-1 {
  animation: deck-right 12s ease-in-out infinite;
}

.dc-2 {
  animation: deck-left 12s ease-in-out infinite;
  animation-delay: -8s;
}

.dc-3 {
  animation: deck-right 12s ease-in-out infinite;
  animation-delay: -4s;
}

.dc .stamp {
  animation: stamp-in 12s ease-out infinite;
}

.dc-2 .stamp {
  animation-delay: -8s;
}

.dc-3 .stamp {
  animation-delay: -4s;
}

.pact-like {
  animation: pulse-like 12s ease-in-out infinite;
}

.pact-pass {
  animation: pulse-pass 12s ease-in-out infinite;
}

.float-match {
  transform-origin: left bottom;
  animation: float-match 12s cubic-bezier(0.2, 0.8, 0.2, 1) infinite;
}

.float-chat {
  transform-origin: right bottom;
  animation: float-chat 12s ease-out infinite;
}

.float-liked {
  transform-origin: right top;
  animation: float-liked 12s ease-out infinite;
}

@keyframes deck-right {
  0% {
    transform: translate(0, 0) rotate(0) scale(1);
    opacity: 1;
    z-index: 3;
  }

  27% {
    transform: translate(0, 0) rotate(0) scale(1);
    opacity: 1;
    z-index: 4;
  }

  33% {
    transform: translate(135%, -8%) rotate(18deg) scale(1);
    opacity: 1;
    z-index: 4;
  }

  33.01% {
    transform: translate(0, 24px) scale(0.9);
    opacity: 0;
    z-index: 1;
  }

  38%,
  63% {
    transform: translate(0, 24px) scale(0.9);
    opacity: 1;
    z-index: 1;
  }

  66.6%,
  96.3% {
    transform: translate(0, 12px) scale(0.95);
    opacity: 1;
    z-index: 2;
  }

  100% {
    transform: translate(0, 0) scale(1);
    opacity: 1;
    z-index: 3;
  }
}

@keyframes deck-left {
  0% {
    transform: translate(0, 0) rotate(0) scale(1);
    opacity: 1;
    z-index: 3;
  }

  27% {
    transform: translate(0, 0) rotate(0) scale(1);
    opacity: 1;
    z-index: 4;
  }

  33% {
    transform: translate(-135%, -8%) rotate(-18deg) scale(1);
    opacity: 1;
    z-index: 4;
  }

  33.01% {
    transform: translate(0, 24px) scale(0.9);
    opacity: 0;
    z-index: 1;
  }

  38%,
  63% {
    transform: translate(0, 24px) scale(0.9);
    opacity: 1;
    z-index: 1;
  }

  66.6%,
  96.3% {
    transform: translate(0, 12px) scale(0.95);
    opacity: 1;
    z-index: 2;
  }

  100% {
    transform: translate(0, 0) scale(1);
    opacity: 1;
    z-index: 3;
  }
}

@keyframes stamp-in {
  0%,
  21% {
    opacity: 0;
    transform: scale(1.4);
  }

  24%,
  33% {
    opacity: 1;
    transform: scale(1);
  }

  33.01%,
  100% {
    opacity: 0;
    transform: scale(1);
  }
}

@keyframes pulse-like {
  0%,
  24% {
    transform: scale(1);
  }

  27% {
    transform: scale(1.22);
  }

  30%,
  90.6% {
    transform: scale(1);
  }

  93.6% {
    transform: scale(1.22);
  }

  96.6%,
  100% {
    transform: scale(1);
  }
}

@keyframes pulse-pass {
  0%,
  57.3% {
    transform: scale(1);
  }

  60.3% {
    transform: scale(1.18);
  }

  63.3%,
  100% {
    transform: scale(1);
  }
}

@keyframes float-match {
  0%,
  33% {
    opacity: 0;
    transform: scale(0.6) translateY(10px);
  }

  38%,
  58% {
    opacity: 1;
    transform: scale(1) translateY(0);
  }

  63%,
  100% {
    opacity: 0;
    transform: scale(0.9) translateY(-6px);
  }
}

@keyframes float-chat {
  0%,
  44% {
    opacity: 0;
    transform: translateY(14px) scale(0.96);
  }

  50%,
  68% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }

  73%,
  100% {
    opacity: 0;
    transform: translateY(0) scale(1);
  }
}

@keyframes float-liked {
  0%,
  4% {
    opacity: 0;
    transform: translateY(-12px) scale(0.96);
  }

  9%,
  60% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }

  65%,
  100% {
    opacity: 0;
    transform: translateY(0) scale(1);
  }
}

/* ---- Ticker: the promises as a slow endless line ------------------------ */

.ticker {
  margin-top: 56px;
  padding: 16px 0;
  overflow: hidden;
  border-top: 1px solid var(--outline-variant);
  border-bottom: 1px solid var(--outline-variant);
  background: var(--surface-low);
  color: var(--on-surface);
}

@media (min-width: 640px) {
  .ticker {
    margin-top: 72px;
  }
}

.ticker-track {
  display: flex;
  width: max-content;
  animation: ticker 44s linear infinite;
}

.ticker-list {
  display: flex;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.ticker-list li {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  padding-right: 18px;
}

.ticker-list li::before {
  content: '';
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--primary-bright);
}

@keyframes ticker {
  to {
    transform: translateX(-50%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .ticker-track {
    width: auto;
    justify-content: center;
  }

  .ticker-list {
    flex-wrap: wrap;
    justify-content: center;
    row-gap: 8px;
  }

  .ticker-list[aria-hidden='true'] {
    display: none;
  }
}

/* ---- Sections ----------------------------------------------------------- */

.section {
  padding: 88px 0;
  scroll-margin-top: 72px;
}

@media (min-width: 1000px) {
  .section {
    padding: 128px 0;
  }
}

.section-soft {
  background: var(--surface-low);
}

.section-ink {
  background: var(--inverse-surface);
  color: var(--inverse-on-surface);
}

.head {
  max-width: 760px;
  margin-bottom: 48px;
}

.kicker {
  display: inline-block;
  color: var(--primary);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.section-ink .kicker {
  color: var(--inverse-primary);
}

h2 {
  margin-top: 14px;
  font-size: clamp(34px, 5vw, 60px);
  font-weight: 700;
  line-height: 1.06;
  letter-spacing: -0.03em;
}

h2:lang(th) {
  font-size: clamp(30px, 4.4vw, 52px);
  line-height: 1.25;
  letter-spacing: 0;
}

.head-lead {
  margin-top: 18px;
  color: var(--on-surface-variant);
  font-size: 19px;
}

.section-ink .head-lead {
  color: var(--inverse-muted);
}

/* Two columns on wide screens: the heading left, the content right. */
.split {
  display: grid;
  gap: 40px;
}

@media (min-width: 1000px) {
  .split {
    grid-template-columns: 5fr 7fr;
    gap: 64px;
    align-items: start;
  }

  .split .head {
    position: sticky;
    top: 104px;
    margin-bottom: 0;
  }
}

/* ---- Feature cards (tonal containers) ----------------------------------- */

.bento {
  display: grid;
  gap: 16px;
}

@media (min-width: 700px) {
  .bento {
    grid-template-columns: repeat(2, 1fr);
  }

  .tile-hero,
  .tile-wide {
    grid-column: span 2;
  }
}

@media (min-width: 1080px) {
  .bento {
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
  }

  .tile-hero {
    grid-row: span 2;
  }

  .tile-wide {
    grid-column: span 4;
  }
}

.tile {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 260px;
  padding: 32px;
  overflow: hidden;
  border-radius: 28px;
}

.tile h3 {
  font-size: 24px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.tile p {
  font-size: 16px;
  opacity: 0.9;
}

.tile-rose {
  background: var(--primary-container);
  color: var(--on-primary-container);
}

.tile-amber {
  background: var(--secondary-container);
  color: var(--on-secondary-container);
}

.tile-lilac {
  background: var(--lavender-container);
  color: var(--on-lavender-container);
}

.tile-mint {
  background: var(--tertiary-container);
  color: var(--on-tertiary-container);
}

.tile-sky {
  background: var(--sky-container);
  color: var(--on-sky-container);
}

.tile-ink {
  background: var(--inverse-surface);
  color: var(--inverse-on-surface);
}

.tile-hero {
  justify-content: space-between;
  gap: 28px;
}

@media (min-width: 1080px) {
  .tile-hero {
    min-height: 540px;
    padding: 40px;
  }
}

.tile-hero h3 {
  font-size: clamp(28px, 3vw, 40px);
  line-height: 1.08;
}

.tile-hero p {
  margin-top: 10px;
  font-size: 18px;
}

.scan {
  position: relative;
  width: 150px;
  height: 186px;
  margin: 18px 0 0 18px;
}

.scan-face {
  width: 100%;
  height: 100%;
  clip-path: ellipse(50% 50%);
}

.scan-ring {
  position: absolute;
  inset: -14px;
  border: 3px dashed var(--primary-bright);
  border-radius: 50%;
  animation: art-turn 16s linear infinite;
}

.scan-ok {
  position: absolute;
  right: -8px;
  bottom: 6px;
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--primary-bright);
  color: #fff;
}

.tile .big {
  font-size: clamp(64px, 7vw, 96px);
  font-weight: 800;
  line-height: 0.9;
  letter-spacing: -0.04em;
}

.bubbles {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 8px;
}

.bubble {
  max-width: 90%;
  padding: 9px 14px;
  border-radius: 18px;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.4;
}

.bubble-in {
  align-self: flex-start;
  border-bottom-left-radius: 6px;
  background: var(--surface);
  color: var(--on-surface);
}

.bubble-out {
  align-self: flex-end;
  border-bottom-right-radius: 6px;
  background: #5b3fc4;
  color: #fff;
}

.streak {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 8px;
}

.day {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 10px;
  border-radius: 12px;
  background: var(--surface);
  color: var(--on-surface);
  font-size: 13px;
  font-weight: 800;
}

.day .ico {
  width: 16px;
  height: 16px;
  color: var(--c3);
}

.day-star {
  background: var(--secondary-container);
  color: var(--on-secondary-container);
}

.day-star .ico {
  color: var(--on-secondary-container);
}

.avatars {
  display: flex;
  margin-bottom: 8px;
}

.avatar {
  width: 52px;
  height: 52px;
  border: 3px solid var(--sky-container);
  border-radius: 50%;
  overflow: hidden;
  clip-path: circle(50%);
}

.avatar + .avatar {
  margin-left: -14px;
}

.avatar-more {
  display: grid;
  place-items: center;
  background: var(--surface);
  color: var(--on-surface);
}

.tile-wide {
  min-height: 0;
  gap: 18px;
}

@media (min-width: 700px) {
  .tile-wide {
    flex-direction: row;
    align-items: center;
    gap: 36px;
  }
}

.night {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--inverse-primary);
  font-size: clamp(30px, 4vw, 48px);
  font-weight: 800;
  letter-spacing: -0.03em;
  white-space: nowrap;
}

.night .ico {
  width: 44px;
  height: 44px;
}

.tile-wide p {
  max-width: 46em;
  color: var(--inverse-muted);
}

/* ---- The promise: one big sentence and the four numbers ----------------- */

.promise {
  background: var(--primary-container);
  color: var(--on-primary-container);
  text-align: center;
}

.promise .kicker {
  color: var(--on-primary-container);
  opacity: 0.8;
}

.promise-title {
  max-width: 18ch;
  margin: 14px auto 0;
  font-size: clamp(38px, 7vw, 92px);
  line-height: 1.02;
  letter-spacing: -0.035em;
}

.promise-title:lang(th) {
  max-width: 22ch;
  font-size: clamp(30px, 5.4vw, 68px);
  line-height: 1.25;
  letter-spacing: 0;
}

.stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin: 48px 0 0;
  padding: 0;
  list-style: none;
}

.stats li {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 24px 16px;
  border-radius: 24px;
  background: var(--surface);
  color: var(--on-surface);
}

.stat-big {
  font-size: clamp(36px, 4.6vw, 56px);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--primary);
}

.stat-label {
  color: var(--on-surface-variant);
  font-size: 15px;
  line-height: 1.4;
}

@media (min-width: 860px) {
  .stats {
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-top: 64px;
  }

  .stats li {
    padding: 32px 24px;
  }
}

/* ---- How it works -------------------------------------------------------- */

.steps {
  display: grid;
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

@media (min-width: 860px) {
  .steps {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
  }
}

.step {
  padding: 32px 28px;
  border-radius: 28px;
  background: var(--surface);
}

.step-n {
  display: block;
  color: var(--primary);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.step h3 {
  margin-top: 8px;
  font-size: 24px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.step p {
  margin-top: 10px;
  color: var(--on-surface-variant);
}

.step-art {
  position: relative;
  display: flex;
  align-items: center;
  height: 132px;
  margin-bottom: 22px;
  padding: 0 4px;
}

.art-photos {
  gap: 10px;
}

.art-photos .face {
  width: 64px;
  height: 84px;
  border-radius: 14px;
}

.art-photos .face:nth-child(2) {
  translate: 0 -10px;
}

.art-scan {
  justify-content: flex-start;
  padding-left: 14px;
}

.art-scan .face {
  width: 96px;
  height: 96px;
  clip-path: circle(48px);
}

.art-ring {
  position: absolute;
  top: 50%;
  left: 2px;
  width: 120px;
  height: 120px;
  border: 3px dashed var(--c2);
  border-radius: 50%;
  translate: 0 -50%;
  animation: art-turn 14s linear infinite;
}

.art-ok {
  position: absolute;
  left: 94px;
  bottom: 6px;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 3px solid var(--surface);
  border-radius: 50%;
  background: var(--c3);
  color: #fff;
}

.art-ok .ico {
  width: 20px;
  height: 20px;
}

@keyframes art-turn {
  to {
    transform: rotate(360deg);
  }
}

.art-chat {
  flex-direction: column;
  align-items: stretch;
  justify-content: center;
  gap: 8px;
}

.art-chat .bubble-in {
  background: var(--surface-c);
  color: var(--on-surface);
}

.art-chat .bubble-out {
  background: var(--primary);
  color: var(--on-primary);
}

/* ---- Intentions (chips) -------------------------------------------------- */

.intent-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

@media (min-width: 640px) {
  .intent-list {
    grid-template-columns: repeat(2, 1fr);
  }
}

.intent {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 20px;
  border-radius: 20px;
  background: var(--surface-c);
  font-size: 18px;
  font-weight: 700;
}

.check {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  flex: none;
  border-radius: 50%;
  background: var(--primary-container);
  color: var(--on-primary-container);
}

.check .ico {
  width: 18px;
  height: 18px;
}

.intent-2 .check {
  background: var(--secondary-container);
  color: var(--on-secondary-container);
}

.intent-3 .check {
  background: var(--lavender-container);
  color: var(--on-lavender-container);
}

.intent-4 .check {
  background: var(--tertiary-container);
  color: var(--on-tertiary-container);
}

.filters-label {
  margin-top: 36px;
  color: var(--on-surface-variant);
  font-size: 15px;
  font-weight: 700;
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
}

.filters li {
  padding: 8px 16px;
  border: 1px solid var(--outline-variant);
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
}

/* ---- Safety --------------------------------------------------------------- */

.safety {
  display: grid;
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

@media (min-width: 860px) {
  .safety {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
  }
}

.safety li {
  padding: 32px 28px;
  border-radius: 28px;
  background: var(--inverse-card);
}

.safety h3 {
  margin-top: 22px;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.25;
}

.safety p {
  margin-top: 8px;
  color: var(--inverse-muted);
}

.safety-ico {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 18px;
}

.safety-amber {
  background: var(--secondary-container);
  color: var(--on-secondary-container);
}

.safety-sky {
  background: var(--sky-container);
  color: var(--on-sky-container);
}

.safety-rose {
  background: var(--primary-container);
  color: var(--on-primary-container);
}

/* ---- Privacy -------------------------------------------------------------- */

.checks {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

@media (min-width: 640px) {
  .checks {
    grid-template-columns: repeat(2, 1fr);
  }
}

.checks li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 22px;
  border-radius: 24px;
  background: var(--surface-c);
  font-size: 17px;
  font-weight: 600;
  line-height: 1.5;
}

.checks .check {
  margin-top: 2px;
}

/* ---- FAQ ------------------------------------------------------------------- */

.faq {
  border-radius: 28px;
  background: var(--surface);
}

.faq details {
  border-top: 1px solid var(--outline-variant);
}

.faq details:first-child {
  border-top: 0;
}

.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 24px;
  font-size: 18px;
  font-weight: 700;
  list-style: none;
  cursor: pointer;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq-ico {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  flex: none;
  border-radius: 50%;
  background: var(--surface-high);
  color: var(--on-surface);
  transition: rotate 0.2s ease, background-color 0.2s ease;
}

.faq-ico .ico {
  width: 18px;
  height: 18px;
}

.faq details[open] .faq-ico {
  background: var(--primary);
  color: var(--on-primary);
  rotate: 45deg;
}

.faq details p {
  padding: 0 24px 24px;
  color: var(--on-surface-variant);
}

/* ---- Download block -------------------------------------------------------- */

.cta {
  padding: 24px 0 96px;
  scroll-margin-top: 72px;
}

.cta-box {
  position: relative;
  padding: 72px 24px;
  overflow: hidden;
  border-radius: 40px;
  background: var(--primary);
  color: var(--on-primary);
  text-align: center;
}

@media (min-width: 640px) {
  .cta-box {
    padding: 96px 48px;
  }
}

.cta-mark {
  width: 72px;
  height: 63px;
  color: var(--on-primary);
}

.cta h2 {
  max-width: 15ch;
  margin: 16px auto 0;
  font-size: clamp(36px, 6vw, 72px);
}

.cta h2:lang(th) {
  max-width: 18ch;
  font-size: clamp(30px, 5vw, 58px);
}

.cta p {
  margin-top: 14px;
  color: var(--on-primary);
  font-size: 19px;
  opacity: 0.85;
}

.cta .stores {
  justify-content: center;
}

.cta .store,
.cta a.store {
  background: var(--surface);
  color: var(--on-surface);
}

.cta a.store:hover {
  background: var(--surface-high);
}

/* ---- Inner pages: legal documents, delete account, report, contact -------- */

.page {
  padding: 48px 0 96px;
}

@media (min-width: 1000px) {
  .page {
    padding: 72px 0 120px;
  }
}

.narrow {
  max-width: 820px;
}

.page-grid {
  display: grid;
  gap: 32px;
}

@media (min-width: 1000px) {
  .page-grid {
    grid-template-columns: 240px minmax(0, 1fr);
    gap: 64px;
    align-items: start;
  }

  .page-nav {
    position: sticky;
    top: 96px;
  }
}

.page-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
}

@media (min-width: 1000px) {
  .page-nav ul {
    flex-direction: column;
    gap: 4px;
  }
}

.page-nav a {
  display: block;
  padding: 9px 14px;
  border-radius: 14px;
  color: var(--on-surface-variant);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
}

.page-nav a:hover {
  background: var(--surface-c);
  color: var(--on-surface);
}

.page-nav a[aria-current="page"] {
  background: var(--on-surface);
  color: var(--surface);
}

.page-title {
  margin-top: 16px;
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.page-title:lang(th) {
  line-height: 1.3;
  letter-spacing: 0;
}

.page-meta {
  margin-top: 10px;
  color: var(--on-surface-variant);
  font-size: 15px;
}

.page-lead {
  max-width: 40em;
  margin-top: 16px;
  color: var(--on-surface-variant);
  font-size: 19px;
}

.draft,
.prose .draft {
  margin-bottom: 20px;
  padding: 14px 18px;
  border-radius: 18px;
  background: var(--secondary-container);
  color: var(--on-secondary-container);
  font-size: 15px;
  font-weight: 600;
}

.prose .draft {
  margin-top: 0;
}

.prose {
  max-width: 72ch;
  min-width: 0;
}

.prose h2 {
  margin-top: 40px;
  font-size: 26px;
  line-height: 1.25;
  letter-spacing: -0.015em;
}

.prose h3,
.prose h4,
.prose h5 {
  margin-top: 28px;
  font-size: 20px;
  line-height: 1.3;
}

.prose h2:lang(th),
.prose h3:lang(th) {
  letter-spacing: 0;
}

.prose p,
.prose ul,
.prose ol {
  margin: 14px 0 0;
  color: var(--on-surface);
  font-size: 17px;
}

.prose ul,
.prose ol {
  padding-left: 22px;
}

.prose li + li {
  margin-top: 6px;
}

.prose a {
  font-weight: 600;
  overflow-wrap: anywhere;
}

.ways {
  display: grid;
  gap: 16px;
  margin-top: 36px;
}

@media (min-width: 720px) {
  .ways {
    grid-template-columns: repeat(2, 1fr);
  }
}

.ways-stack {
  grid-template-columns: 1fr;
}

@media (min-width: 720px) {
  .ways-stack {
    grid-template-columns: repeat(2, 1fr);
  }
}

.way {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  padding: 28px;
  border-radius: 28px;
  background: var(--surface-c);
}

.way h2 {
  margin-top: 8px;
  font-size: 21px;
  line-height: 1.3;
}

.way p {
  color: var(--on-surface-variant);
}

.way .btn {
  margin-top: auto;
}

.way-ico {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 16px;
  background: var(--primary-container);
  color: var(--on-primary-container);
}

.way .btn-rose,
.way .btn-line {
  margin-top: 8px;
}

.sub {
  margin: 48px 0 18px;
  font-size: 26px;
  line-height: 1.25;
}

.note {
  margin-top: 18px;
  color: var(--on-surface-variant);
}

.callout {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-top: 32px;
  padding: 22px 24px;
  border-radius: 24px;
  background: var(--inverse-surface);
  color: var(--inverse-on-surface);
}

.callout h2 {
  font-size: 19px;
  line-height: 1.3;
}

.callout p {
  margin-top: 4px;
  color: var(--inverse-muted);
}

.callout-ico {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  flex: none;
  border-radius: 14px;
  background: var(--secondary-container);
  color: var(--on-secondary-container);
}

.company {
  color: var(--on-surface-variant);
  font-style: normal;
  line-height: 1.7;
}

/* ---- Help center ------------------------------------------------------------ */

.topics {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

@media (min-width: 720px) {
  .topics {
    grid-template-columns: repeat(2, 1fr);
  }
}

.topic {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  height: 100%;
  padding: 18px 20px;
  border-radius: 22px;
  background: var(--surface-c);
  color: var(--on-surface);
  text-decoration: none;
}

.topic:hover {
  background: var(--surface-high);
}

.topic > span {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.topic-title {
  font-size: 17px;
  font-weight: 700;
  line-height: 1.35;
}

.topic-sum {
  color: var(--on-surface-variant);
  font-size: 15px;
  line-height: 1.45;
}

.topic .ico {
  color: var(--on-surface-variant);
}

.lines {
  margin-top: 40px;
  border-radius: 22px;
  background: var(--surface-c);
}

.lines summary {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 20px;
  font-size: 17px;
  font-weight: 700;
  list-style: none;
  cursor: pointer;
}

.lines summary::-webkit-details-marker {
  display: none;
}

.lines-title {
  flex: 1;
}

.lines-ico {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 14px;
  background: var(--surface-high);
  color: var(--on-surface-variant);
}

.lines-ico .ico {
  width: 20px;
  height: 20px;
}

.lines[open] .faq-ico {
  background: var(--primary);
  color: var(--on-primary);
  rotate: 45deg;
}

.lines ul {
  margin: 0;
  padding: 0 20px;
  list-style: none;
}

.lines li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
  border-top: 1px solid var(--outline-variant);
}

.lines li span {
  display: flex;
  flex-direction: column;
}

.lines li small {
  color: var(--on-surface-variant);
  font-size: 14px;
}

.lines li .btn {
  flex: none;
  min-width: 84px;
}

.lines .note {
  margin: 0;
  padding: 4px 20px 18px;
  font-size: 15px;
}

.callout-soft {
  margin-top: 40px;
  background: var(--surface-c);
  color: var(--on-surface);
}

.callout-soft p {
  color: var(--on-surface-variant);
}

.callout-soft .callout-ico {
  background: var(--primary-container);
  color: var(--on-primary-container);
}

.crumb {
  margin-bottom: 4px;
  font-size: 15px;
}

.crumb a {
  color: var(--primary);
  font-weight: 600;
  text-decoration: none;
}

.crumb a::before {
  content: "← ";
}

/* ---- Footer ------------------------------------------------------------------ */

.foot {
  padding: 64px 0 32px;
  background: var(--surface-low);
}

.foot-grid {
  display: grid;
  gap: 32px;
}

@media (min-width: 720px) {
  .foot-grid {
    grid-template-columns: 2fr 1fr 1fr;
  }
}

.foot-brand p {
  margin-top: 10px;
  color: var(--on-surface-variant);
  font-weight: 600;
}

.foot-col h2 {
  margin: 0 0 12px;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1.4;
}

.foot-col ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.foot-col li + li {
  margin-top: 8px;
}

.foot-col a {
  color: var(--on-surface-variant);
  font-size: 15px;
  text-decoration: none;
}

.foot-col a:hover {
  color: var(--primary);
  text-decoration: underline;
}

.foot-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid var(--outline-variant);
  color: var(--on-surface-variant);
  font-size: 14px;
}

/* ---- Cards rise as they scroll in (browsers with scroll-driven animations) */

@supports (animation-timeline: view()) {
  .tile,
  .step,
  .safety li,
  .checks li,
  .intent,
  .stats li {
    animation: rise linear both;
    animation-timeline: view();
    animation-range: entry 0% entry 36%;
  }
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(28px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}

/* ---- Light/dark switch in the header (decision 87): hidden until theme.js runs */

.theme-toggle {
  display: inline-grid;
  place-items: center;
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--on-surface-variant);
  cursor: pointer;
}

.theme-toggle[hidden] {
  display: none;
}

.theme-toggle:hover {
  background: var(--surface-c);
  color: var(--on-surface);
}

.theme-toggle:focus-visible {
  outline: 3px solid var(--primary-bright);
  outline-offset: 2px;
}

.theme-toggle svg {
  width: 20px;
  height: 20px;
}

.theme-toggle .sun {
  display: none;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) .theme-toggle .sun {
    display: block;
  }

  :root:not([data-theme='light']) .theme-toggle .moon {
    display: none;
  }
}

:root[data-theme='dark'] .theme-toggle .sun {
  display: block;
}

:root[data-theme='dark'] .theme-toggle .moon {
  display: none;
}
