/* Public website, redesigned 2026-10-14 (decision 162, the "Real" direction):
   photo-led and modern. White and near-black surfaces, the brand rose only
   for actions and a few accents, Plus Jakarta Sans (bundled, OFL) for Latin
   text and the device's Thai font for Thai, 24 to 32 px corners, pill
   buttons, generous white space, real photographs of people (placeholders
   until the launch shoot, see static/assets/photos/README.md). Motion is CSS
   only (cards that rise as they scroll in) and stands still under reduced
   motion. Decision 96 (the Material 3 landing page) is superseded here. */

/* ---- Fonts (self-hosted; the policy allows only our own origin) --------- */

/* Vietnamese letters with tone marks (ạ … ỹ): cut from the app's Plus Jakarta Sans,
   loaded only when a page shows one (decision 313); first, so the Latin files win overlaps. */
@font-face {
  font-family: "Plus Jakarta Sans";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url("/assets/fonts/plus-jakarta-sans-vietnamese.woff") format("woff");
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}

@font-face {
  font-family: "Plus Jakarta Sans";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url("/assets/fonts/plus-jakarta-sans-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Plus Jakarta Sans";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url("/assets/fonts/plus-jakarta-sans-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

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

:root {
  --surface: #ffffff;
  --surface-low: #f6f5f2;
  --surface-c: #f0efeb;
  --surface-high: #e9e7e2;
  --surface-highest: #e1dfd9;
  --on-surface: #0f0f14;
  --on-surface-variant: #6b6b75;
  --outline: #8e8e98;
  --outline-variant: #e8e6e1;
  --primary: #d7285f; /* the brand rose: filled buttons, the mark, accents */
  --primary-bright: #d7285f;
  --primary-hover: #b81e4e;
  --primary-text: #b81e4e; /* the rose as text on white (6.2:1) */
  --on-primary: #ffffff;
  --primary-container: #ffe9ef;
  --on-primary-container: #5a0a24;
  --secondary-container: #fff3d6;
  --on-secondary-container: #5a3e00;
  --tertiary-container: #ddf5ea;
  --on-tertiary-container: #0f5c3c;
  --lavender-container: #e8edff;
  --on-lavender-container: #1f2d6b;
  --sky-container: #e3f1ff;
  --on-sky-container: #0b3a66;
  --verified: #1e9e6a;
  --online: #39d98a;
  --inverse-surface: #0f0f14;
  --inverse-card: #1f1f26;
  --inverse-on-surface: #ffffff;
  --inverse-muted: #b9b8c0;
  --inverse-primary: #ff7a9c;
  --phone: #0f0f14;
  --photo-ink: #0f0f14; /* the scrim under text on photos */
  --shadow: 0 1px 2px rgb(15 15 20 / 0.06), 0 16px 40px rgb(15 15 20 / 0.1);
  --shadow-float: 0 20px 50px rgb(15 15 20 / 0.22);
  --font: "Plus Jakarta Sans", 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-text);
  --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: #d7285f;
  --c2: #3b5bdb;
  --c3: #1e9e6a;
}

/* 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: #0f0f14;
    --surface-low: #16161c;
    --surface-c: #1c1c23;
    --surface-high: #24242c;
    --surface-highest: #2e2e37;
    --on-surface: #f4f4f6;
    --on-surface-variant: #b9b8c0;
    --outline: #7b7b86;
    --outline-variant: #2a2a33;
    --primary: #e03a6c;
    --primary-bright: #ff6f96;
    --primary-hover: #ff5c88;
    --primary-text: #ff8fab;
    --on-primary: #ffffff;
    --primary-container: #3a1020;
    --on-primary-container: #ffd1dc;
    --secondary-container: #3d2b00;
    --on-secondary-container: #ffe1a3;
    --tertiary-container: #0f3a29;
    --on-tertiary-container: #a9f0cf;
    --lavender-container: #262f5c;
    --on-lavender-container: #d9e0ff;
    --sky-container: #10304f;
    --on-sky-container: #cfe6ff;
    --verified: #39d98a;
    --inverse-surface: #1c1c23;
    --inverse-card: #262630;
    --inverse-on-surface: #ffffff;
    --inverse-muted: #b9b8c0;
    --inverse-primary: #ff8fab;
    --phone: #000000;
    --shadow: 0 1px 2px rgb(0 0 0 / 0.4), 0 16px 40px rgb(0 0 0 / 0.5);
    --shadow-float: 0 20px 50px rgb(0 0 0 / 0.6);
    --sticker-bg: #24242c;
    --c1: #ff8fab;
    --c2: #9db1ff;
    --c3: #7fe0b4;
  }
}

:root[data-theme='dark'] {
  --surface: #0f0f14;
  --surface-low: #16161c;
  --surface-c: #1c1c23;
  --surface-high: #24242c;
  --surface-highest: #2e2e37;
  --on-surface: #f4f4f6;
  --on-surface-variant: #b9b8c0;
  --outline: #7b7b86;
  --outline-variant: #2a2a33;
  --primary: #e03a6c;
  --primary-bright: #ff6f96;
  --primary-hover: #ff5c88;
  --primary-text: #ff8fab;
  --on-primary: #ffffff;
  --primary-container: #3a1020;
  --on-primary-container: #ffd1dc;
  --secondary-container: #3d2b00;
  --on-secondary-container: #ffe1a3;
  --tertiary-container: #0f3a29;
  --on-tertiary-container: #a9f0cf;
  --lavender-container: #262f5c;
  --on-lavender-container: #d9e0ff;
  --sky-container: #10304f;
  --on-sky-container: #cfe6ff;
  --verified: #39d98a;
  --inverse-surface: #1c1c23;
  --inverse-card: #262630;
  --inverse-on-surface: #ffffff;
  --inverse-muted: #b9b8c0;
  --inverse-primary: #ff8fab;
  --phone: #000000;
  --shadow: 0 1px 2px rgb(0 0 0 / 0.4), 0 16px 40px rgb(0 0 0 / 0.5);
  --shadow-float: 0 20px 50px rgb(0 0 0 / 0.6);
  --sticker-bg: #24242c;
  --c1: #ff8fab;
  --c2: #9db1ff;
  --c3: #7fe0b4;
  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: 500 17px/1.55 var(--font);
  -webkit-font-smoothing: antialiased;
  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);
  text-underline-offset: 3px;
}

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

: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 rose, filled ink, outlined) ------------------ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  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, transform 0.15s ease;
}

.btn-ink,
.btn-rose {
  padding: 14px 24px;
  background: var(--primary);
  color: var(--on-primary);
  font-size: 16px;
  box-shadow: 0 10px 28px rgb(215 40 95 / 0.25);
}

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

.btn-dark {
  padding: 14px 24px;
  background: var(--on-surface);
  color: var(--surface);
  font-size: 16px;
}

.btn-dark:hover {
  background: var(--inverse-card);
  color: #ffffff;
}

.btn-line {
  padding: 13px 22px;
  border: 1px solid var(--outline-variant);
  background: var(--surface);
  color: var(--on-surface);
  font-size: 16px;
}

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

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

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

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

.top {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid transparent;
  background: color-mix(in srgb, var(--surface) 86%, 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: 76px;
}

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

.mark {
  width: 32px;
  height: 28px;
  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-low);
  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;
}

.bar-end .btn-ink {
  padding: 11px 18px;
  font-size: 15px;
  box-shadow: none;
}

.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-low);
}

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

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

  .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;
  }
}

/* ---- Shared pieces of the front page --------------------------------------- */

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border-radius: 999px;
  background: var(--primary-container);
  color: var(--on-primary-container);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0;
}

.kicker .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--verified);
}

.section-ink .kicker,
.cta .kicker {
  background: rgb(255 255 255 / 0.14);
  color: #ffffff;
}

h2 {
  font-size: clamp(32px, 4.2vw, 48px);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.035em;
}

h2:lang(th) {
  line-height: 1.3;
  letter-spacing: 0;
}

.head {
  max-width: 720px;
}

.head h2,
.head .page-title {
  margin-top: 16px;
}

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

.section {
  padding: 64px 0;
}

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

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

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

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

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  background: var(--surface-low);
  color: var(--on-surface);
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
}

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

.chip-glass {
  background: rgb(255 255 255 / 0.18);
  border: 1px solid rgb(255 255 255 / 0.28);
  color: #ffffff;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

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

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

.verified-badge {
  display: inline-grid;
  place-items: center;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--verified);
  color: #ffffff;
  flex: none;
}

.verified-badge .ico {
  width: 11px;
  height: 11px;
}

/* ---- Hero: the copy, then the photos ------------------------------------- */

.hero {
  padding: 32px 0 48px;
  overflow-x: clip;
}

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

  .hero .wrap {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 56px;
    align-items: center;
  }
}

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

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--verified);
}

h1 {
  margin-top: 18px;
  font-size: clamp(44px, 7vw, 80px);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.04em;
}

h1:lang(th) {
  line-height: 1.25;
  letter-spacing: 0;
}

h1 .line {
  display: block;
}

h1 .accent {
  color: var(--primary-text);
}

.lead {
  max-width: 34em;
  margin-top: 22px;
  color: var(--on-surface-variant);
  font-size: 19px;
  line-height: 1.55;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.stores {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.store {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px 10px 14px;
  border: 1px solid var(--outline-variant);
  border-radius: 999px;
  background: var(--surface);
  color: var(--on-surface);
  text-decoration: none;
  line-height: 1.15;
}

.store span {
  display: flex;
  flex-direction: column;
  font-size: 15px;
  font-weight: 700;
}

.store small {
  font-size: 11px;
  font-weight: 600;
  color: var(--on-surface-variant);
}

a.store:hover {
  border-color: var(--on-surface);
}

.store.is-soon {
  opacity: 0.7;
}

.proof {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.proof-faces {
  display: flex;
}

.proof-faces img,
.proof-faces span {
  width: 44px;
  height: 44px;
  border: 3px solid var(--surface);
  border-radius: 50%;
  object-fit: cover;
}

.proof-faces img + img,
.proof-faces img + span {
  margin-left: -14px;
}

.proof-faces span {
  display: grid;
  place-items: center;
  background: var(--on-surface);
  color: var(--surface);
  font-size: 13px;
  font-weight: 800;
}

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

.proof li .ico {
  width: 18px;
  height: 18px;
  color: var(--verified);
}

/* The photo stage: one big portrait with two smaller pictures and three
   floating pieces of the app around it. Sizes are fractions of the box so
   it keeps its shape from a phone to a wide screen. */
.stage {
  position: relative;
  width: 100%;
  max-width: 560px;
  aspect-ratio: 1 / 1.08;
  margin: 40px auto 0;
}

@media (min-width: 1000px) {
  .stage {
    margin-top: 0;
  }
}

.stage img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.stage-main {
  position: absolute;
  left: 8%;
  top: 4%;
  width: 62%;
  height: 78%;
  overflow: hidden;
  border-radius: 32px;
  background: var(--surface-high);
  box-shadow: var(--shadow-float);
}

.stage-main::after {
  content: "";
  position: absolute;
  inset: 55% 0 0;
  background: linear-gradient(to top, rgb(15 15 20 / 0.85), rgb(15 15 20 / 0));
}

.stage-main .chip {
  position: absolute;
  left: 16px;
  top: 16px;
  z-index: 1;
}

.stage-main .caption {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  z-index: 1;
  color: #ffffff;
}

.stage-main .name {
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.stage-main .meta {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 4px;
  font-size: 14px;
  font-weight: 600;
  color: rgb(255 255 255 / 0.85);
}

.stage-main .meta .dot {
  background: var(--online);
}

.stage-side {
  position: absolute;
  overflow: hidden;
  border-radius: 28px;
  background: var(--surface-high);
}

.stage-side-top {
  right: 0;
  top: 0;
  width: 46%;
  height: 52%;
}

.stage-side-bottom {
  left: 0;
  bottom: 0;
  width: 46%;
  height: 36%;
}

.float {
  position: absolute;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 16px;
  background: var(--sticker-bg);
  color: var(--on-surface);
  font-size: 14px;
  font-weight: 700;
  box-shadow: var(--shadow-float);
  white-space: nowrap;
}

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

.float-match {
  right: 2%;
  top: 58%;
  padding: 12px 14px;
  border-radius: 20px;
  white-space: normal;
}

.float-match .faces {
  display: flex;
  flex: none;
}

.float-match img {
  width: 40px;
  height: 40px;
  border: 2px solid var(--sticker-bg);
  border-radius: 50%;
  object-fit: cover;
}

.float-match img + img {
  margin-left: -12px;
}

.float-match span {
  display: flex;
  flex-direction: column;
}

.float-match small {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--on-surface-variant);
}

.float-chip {
  left: 0;
  top: 36%;
}

.float-plan {
  right: 0;
  bottom: 6%;
  background: var(--on-surface);
  color: var(--surface);
}

.float-plan .ico {
  color: var(--inverse-primary);
}

@media (max-width: 479px) {
  .float {
    padding: 8px 12px;
    font-size: 13px;
  }

  .float-chip {
    display: none;
  }

  .float-match {
    right: 0;
    top: 64%;
  }

  .float-match img {
    width: 32px;
    height: 32px;
  }

  .float-match small {
    display: none;
  }
}

/* ---- Hero motion: the copy rises in, the photos pop in and drift, the app's
   pieces pop in and bob, the online dot pulses, the match heart beats and
   small hearts float up. CSS only; the animations use the separate
   translate, scale and rotate properties so two can run on one element, and
   every rest state is the visible one, so reduced motion (which switches all
   animation off, below) shows the finished page. */

@keyframes hero-rise {
  from {
    opacity: 0;
    translate: 0 18px;
  }
}

@keyframes hero-pop {
  from {
    opacity: 0;
    scale: 0.6;
  }

  60% {
    opacity: 1;
    scale: 1.05;
  }
}

@keyframes hero-bob {
  to {
    translate: 0 -8px;
  }
}

@keyframes hero-drift {
  to {
    translate: 0 10px;
  }
}

@keyframes hero-zoom {
  to {
    scale: 1.08;
  }
}

@keyframes hero-sway {
  0%,
  100% {
    rotate: 0deg;
  }

  50% {
    rotate: -1.2deg;
  }
}

@keyframes hero-pulse {
  0% {
    box-shadow: 0 0 0 0 rgb(57 217 138 / 0.65);
  }

  70%,
  100% {
    box-shadow: 0 0 0 8px rgb(57 217 138 / 0);
  }
}

@keyframes hero-beat {
  0%,
  40%,
  100% {
    scale: 1;
  }

  10% {
    scale: 1.3;
  }

  25% {
    scale: 1.12;
  }
}

@keyframes hero-heart-up {
  0% {
    opacity: 0;
    translate: 0 0;
    scale: 0.5;
  }

  15% {
    opacity: 1;
  }

  100% {
    opacity: 0;
    translate: 14px -160px;
    scale: 1.15;
  }
}

.hero .badge,
.hero h1 .line,
.hero .lead,
.hero .actions,
.hero .stores,
.hero .proof {
  animation: hero-rise 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

.hero h1 .line:nth-child(1) {
  animation-delay: 0.08s;
}

.hero h1 .line:nth-child(2) {
  animation-delay: 0.16s;
}

.hero h1 .line:nth-child(3) {
  animation-delay: 0.24s;
}

.hero .lead {
  animation-delay: 0.34s;
}

.hero .actions {
  animation-delay: 0.42s;
}

.hero .stores {
  animation-delay: 0.5s;
}

.hero .proof {
  animation-delay: 0.58s;
}

.stage-main {
  transform-origin: 50% 100%;
  animation:
    hero-pop 0.9s cubic-bezier(0.2, 0.8, 0.2, 1) 0.15s both,
    hero-sway 9s ease-in-out 1.2s infinite;
}

.stage-main > img {
  animation: hero-zoom 18s ease-in-out infinite alternate;
}

.stage-side-top {
  animation:
    hero-rise 0.8s ease-out 0.35s both,
    hero-drift 7s ease-in-out 1.2s infinite alternate;
}

.stage-side-bottom {
  animation:
    hero-rise 0.8s ease-out 0.5s both,
    hero-bob 8s ease-in-out 1.4s infinite alternate;
}

.float-chip {
  animation:
    hero-pop 0.6s cubic-bezier(0.2, 0.8, 0.2, 1) 0.9s both,
    hero-bob 5s ease-in-out 1.6s infinite alternate;
}

.float-match {
  animation:
    hero-pop 0.7s cubic-bezier(0.2, 0.8, 0.2, 1) 1.3s both,
    hero-bob 6s ease-in-out 2s infinite alternate-reverse;
}

.float-plan {
  animation:
    hero-pop 0.6s cubic-bezier(0.2, 0.8, 0.2, 1) 1.7s both,
    hero-bob 5.5s ease-in-out 2.4s infinite alternate;
}

.stage-main .meta .dot {
  animation: hero-pulse 2s ease-out 1.2s infinite;
}

.float-match .faces {
  position: relative;
}

.float-match .match-heart {
  position: absolute;
  left: 50%;
  bottom: -6px;
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  margin-left: -10px;
  border: 2px solid var(--sticker-bg);
  border-radius: 50%;
  background: var(--primary);
  color: #ffffff;
  animation: hero-beat 2.4s ease-in-out 2s infinite;
}

.float .match-heart .ico {
  width: 10px;
  height: 10px;
  color: #ffffff;
}

.hearts {
  position: absolute;
  left: 60%;
  bottom: 22%;
  z-index: 3;
  width: 1px;
  height: 1px;
  pointer-events: none;
}

.hearts .ico {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 22px;
  height: 22px;
  color: var(--primary-bright);
  opacity: 0;
  animation: hero-heart-up 3.6s ease-out 2.2s infinite;
}

.hearts .ico:nth-child(2) {
  left: 16px;
  width: 16px;
  height: 16px;
  animation-delay: 3.4s;
}

.hearts .ico:nth-child(3) {
  left: -14px;
  width: 18px;
  height: 18px;
  animation-delay: 4.6s;
}

/* ---- Trust strip ------------------------------------------------------------ */

.trust {
  display: grid;
  gap: 16px;
  margin: 0;
  padding: 28px 0;
  border-top: 1px solid var(--outline-variant);
  border-bottom: 1px solid var(--outline-variant);
  list-style: none;
}

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

@media (min-width: 1000px) {
  .trust {
    grid-template-columns: repeat(4, 1fr);
  }
}

.trust li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 15px;
  font-weight: 700;
}

.trust-ico {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  flex: none;
  border-radius: 14px;
}

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

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

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

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

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

/* ---- How it works: three cards ------------------------------------------------ */

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

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

.step {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 380px;
  padding: 26px;
  border: 1px solid var(--outline-variant);
  border-radius: 28px;
  background: var(--surface);
}

.step-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.step-n {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--on-surface);
  color: var(--surface);
  font-size: 15px;
  font-weight: 800;
}

.step-1 .step-n {
  background: var(--primary);
  color: var(--on-primary);
}

.step-time {
  color: var(--on-surface-variant);
  font-size: 13px;
  font-weight: 700;
}

.step h3 {
  font-size: 24px;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.step p {
  color: var(--on-surface-variant);
  font-size: 15px;
  line-height: 1.55;
}

.step-art {
  margin-top: auto;
}

.art-field {
  display: flex;
  align-items: center;
  height: 56px;
  padding: 0 18px;
  border: 2px solid var(--primary);
  border-radius: 16px;
  font-size: 17px;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.art-selfie {
  position: relative;
  height: 150px;
  overflow: hidden;
  border-radius: 18px;
  background: var(--surface-high);
}

.art-selfie img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 15%;
}

.art-ring {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 96px;
  height: 120px;
  translate: -50% -50%;
  border: 3px solid rgb(255 255 255 / 0.9);
  border-radius: 48px;
}

.art-selfie .chip {
  position: absolute;
  left: 12px;
  bottom: 12px;
  background: var(--verified);
  color: #ffffff;
}

.art-photos {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.art-photos img,
.art-photos span {
  aspect-ratio: 3 / 4;
  width: 100%;
  border-radius: 14px;
  object-fit: cover;
}

.art-photos span {
  display: grid;
  place-items: center;
  border: 2px dashed var(--primary-bright);
  color: var(--primary-bright);
}

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

.steps-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  margin-top: 28px;
}

.steps-cta p {
  color: var(--on-surface-variant);
  font-size: 15px;
  font-weight: 600;
}

/* ---- People near you: a grid of verified cards --------------------------------- */

.people-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
}

.people-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.people-filters .chip {
  min-height: 36px;
  padding: 0 14px;
}

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

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

.person {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border-radius: 24px;
  background: var(--surface-high);
}

.person img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 20%;
}

.person::after {
  content: "";
  position: absolute;
  inset: 45% 0 0;
  background: linear-gradient(to top, rgb(15 15 20 / 0.85), rgb(15 15 20 / 0));
}

.person .chip {
  position: absolute;
  left: 12px;
  top: 12px;
  z-index: 1;
}

.person-meta {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 14px;
  z-index: 1;
  color: #ffffff;
}

.person-name {
  display: block;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1.15;
}

.person-sub {
  display: block;
  margin-top: 2px;
  font-size: 13px;
  font-weight: 600;
  color: rgb(255 255 255 / 0.85);
}

/* ---- Why: four photo tiles and four small cards --------------------------------- */

.bento {
  display: grid;
  gap: 20px;
  margin-top: 40px;
}

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

/* The photo starts below a dark band that holds the app card, so the card
   never covers a face; a fade joins the band to the photo, and the bottom
   darkens under the text. */
.tile {
  position: relative;
  min-height: 540px;
  overflow: hidden;
  border-radius: 30px;
  background: var(--phone);
  color: #ffffff;
}

@media (min-width: 800px) {
  .tile {
    min-height: 460px;
  }
}

.tile > img {
  position: absolute;
  left: 0;
  right: 0;
  top: 34%;
  width: 100%;
  height: 66%;
  object-fit: cover;
  object-position: 50% 20%;
}

@media (min-width: 800px) {
  .tile > img {
    top: 30%;
    height: 70%;
  }
}

.tile::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgb(15 15 20 / 1) 0%, rgb(15 15 20 / 1) 32%, rgb(15 15 20 / 0) 46%, rgb(15 15 20 / 0.12) 62%, rgb(15 15 20 / 0.92) 100%);
}

.tile-text {
  position: absolute;
  left: 28px;
  right: 28px;
  bottom: 28px;
  z-index: 2;
}

.tile h3 {
  font-size: clamp(22px, 2.6vw, 28px);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.tile p {
  max-width: 420px;
  margin-top: 6px;
  color: rgb(255 255 255 / 0.82);
  font-size: 15px;
  line-height: 1.5;
}

.over {
  position: absolute;
  right: 20px;
  top: 24px;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: min(260px, calc(100% - 40px));
  padding: 14px;
  border-radius: 18px;
  background: var(--sticker-bg);
  color: var(--on-surface);
  font-size: 14px;
  font-weight: 700;
  box-shadow: var(--shadow-float);
}

.over-label {
  color: var(--on-surface-variant);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.over .check-line {
  display: flex;
  align-items: center;
  gap: 8px;
}

.over .check-line .ico {
  width: 18px;
  height: 18px;
  color: var(--verified);
}

.bubble {
  max-width: 100%;
  padding: 8px 12px;
  border-radius: 14px 14px 14px 4px;
  background: var(--surface-low);
  font-size: 14px;
  font-weight: 500;
}

.bubble-out {
  align-self: flex-end;
  border-radius: 14px 14px 4px 14px;
  background: var(--primary);
  color: var(--on-primary);
}

.over .bubble-note {
  padding: 0 4px;
  color: var(--on-surface-variant);
  font-size: 12.5px;
  font-weight: 600;
}

.over .plan-map {
  display: block;
  width: calc(100% + 28px);
  height: 72px;
  margin: -14px -14px 0;
  border-radius: 18px 18px 0 0;
  background: var(--surface-low);
}

.plan-map .road {
  stroke: var(--outline-variant);
}

.plan-map .pin {
  fill: var(--primary);
}

.over .plan-line {
  display: flex;
  align-items: center;
  gap: 10px;
}

.over .plan-line span {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
}

.over .plan-line small {
  color: var(--on-surface-variant);
  font-size: 12px;
  font-weight: 600;
}

.over .faces {
  display: flex;
  flex: none;
}

.over .faces img {
  width: 28px;
  height: 28px;
  border: 2px solid var(--sticker-bg);
  border-radius: 50%;
  object-fit: cover;
}

.over .faces img + img {
  margin-left: -10px;
}

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

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

@media (min-width: 1000px) {
  .more {
    grid-template-columns: repeat(4, 1fr);
  }
}

.more li {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 22px;
  border-radius: 24px;
  background: var(--surface-low);
}

.more h3 {
  font-size: 18px;
  font-weight: 800;
  line-height: 1.2;
}

.more p {
  color: var(--on-surface-variant);
  font-size: 14.5px;
  line-height: 1.5;
}

.more-ico {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 14px;
}

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

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

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

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

/* ---- Real people, real plans: a dark band with a photo ------------------- */ */

.promise {
  padding: 0;
}

.promise-box {
  display: grid;
  overflow: hidden;
  border-radius: 36px;
  background: var(--inverse-surface);
  color: var(--inverse-on-surface);
}

@media (min-width: 900px) {
  .promise-box {
    grid-template-columns: 1.1fr 0.9fr;
  }
}

.promise-copy {
  padding: 40px 28px;
}

@media (min-width: 900px) {
  .promise-copy {
    padding: 64px 56px;
  }
}

.promise .kicker {
  background: rgb(255 255 255 / 0.14);
  color: #ffffff;
}

.promise-title {
  margin-top: 16px;
  max-width: 14em;
}

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

.stats li {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 18px 20px;
  border-radius: 20px;
  background: rgb(255 255 255 / 0.08);
}

.stat-big {
  font-size: clamp(26px, 3vw, 34px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.05;
}

.stat-label {
  color: var(--inverse-muted);
  font-size: 14px;
  font-weight: 600;
}

.promise-photo {
  position: relative;
  min-height: 280px;
}

.promise-photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (min-width: 900px) {
  .promise-photo::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(to right, var(--inverse-surface), rgb(15 15 20 / 0));
    width: 40%;
  }
}

/* ---- Intents and filters ------------------------------------------------------ */

.split {
  display: grid;
  gap: 36px;
}

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

.intents {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

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

.intent {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--surface-low);
  font-size: 15px;
  font-weight: 700;
}

.intent-1 {
  background: var(--primary);
  color: var(--on-primary);
}

.check {
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  flex: none;
  border-radius: 50%;
  background: var(--verified);
  color: #ffffff;
}

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

.intent-1 .check {
  background: #ffffff;
  color: var(--primary);
}

.filters-card {
  padding: 22px 24px;
  border: 1px solid var(--outline-variant);
  border-radius: 24px;
  background: var(--surface);
}

.filters-label {
  font-size: 16px;
  font-weight: 800;
}

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

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

/* ---- Safety: a dark card with a photo and three points ---------------------- */

.safety-box {
  display: grid;
  overflow: hidden;
  border-radius: 36px;
  background: var(--inverse-surface);
  color: var(--inverse-on-surface);
}

@media (min-width: 900px) {
  .safety-box {
    grid-template-columns: 1.1fr 0.9fr;
  }
}

.safety-copy {
  padding: 40px 28px;
}

@media (min-width: 900px) {
  .safety-copy {
    padding: 64px 56px;
  }
}

.safety-copy .head-lead {
  color: var(--inverse-muted);
}

.safety {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.safety li {
  display: flex;
  gap: 14px;
}

.safety h3 {
  font-size: 17px;
  font-weight: 800;
  line-height: 1.3;
}

.safety p {
  margin-top: 2px;
  color: var(--inverse-muted);
  font-size: 15px;
  line-height: 1.5;
}

.safety-ico {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  flex: none;
  border-radius: 14px;
}

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

.safety-amber {
  background: rgb(255 227 163 / 0.18);
  color: #ffe1a3;
}

.safety-sky {
  background: rgb(207 230 255 / 0.18);
  color: #cfe6ff;
}

.safety-rose {
  background: rgb(255 143 171 / 0.2);
  color: #ff8fab;
}

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

.checks li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px 8px 10px;
  border-radius: 999px;
  background: rgb(255 255 255 / 0.1);
  font-size: 14px;
  font-weight: 600;
}

.checks .check {
  width: 20px;
  height: 20px;
  background: var(--verified);
}

.safety-photo {
  position: relative;
  min-height: 280px;
}

.safety-photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (min-width: 900px) {
  .safety-photo::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    width: 40%;
    background: linear-gradient(to right, var(--inverse-surface), rgb(15 15 20 / 0));
  }
}

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

.faq {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq details {
  border-radius: 22px;
  background: var(--surface-low);
}

.faq details[open] {
  background: var(--surface-c);
}

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

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

.faq-ico {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  flex: none;
  border-radius: 50%;
  background: var(--surface);
  color: var(--on-surface);
  transition: rotate 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 22px;
  color: var(--on-surface-variant);
}

/* ---- Final call: a photo with the stores ---------------------------------------- */

.cta {
  padding: 0 0 64px;
}

@media (min-width: 1000px) {
  .cta {
    padding-bottom: 96px;
  }
}

.cta-box {
  position: relative;
  overflow: hidden;
  padding: 72px 24px;
  border-radius: 36px;
  background: var(--phone);
  color: #ffffff;
  text-align: center;
}

@media (min-width: 900px) {
  .cta-box {
    padding: 112px 56px;
  }
}

.cta-box > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Darkest behind the words in the middle, lighter at the edges, so the couple and the bay show (decision 170). */
.cta-box::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 70% at 50% 50%, rgb(15 15 20 / 0.72), rgb(15 15 20 / 0.38));
}

.cta-box h2,
.cta-box p {
  text-shadow: 0 2px 16px rgb(0 0 0 / 0.45);
}

.cta-box > * {
  position: relative;
  z-index: 1;
}

.cta-mark {
  width: 56px;
  height: 50px;
  margin: 0 auto;
  color: var(--inverse-primary);
}

.cta h2 {
  margin-top: 18px;
  color: #ffffff;
}

.cta p {
  max-width: 34em;
  margin: 14px auto 0;
  color: rgb(255 255 255 / 0.82);
  font-size: 18px;
}

.cta .stores {
  justify-content: center;
  margin-top: 28px;
}

.cta .store {
  border-color: transparent;
  background: #ffffff;
  color: #0f0f14;
}

.cta .store small {
  color: #6b6b75;
}

/* ---- Inner pages (legal, help, delete, report, contact) ------------------------ */

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

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

.narrow {
  max-width: 820px;
}
/* The page for an address the site does not have (decision 352). */
.notfound-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 28px 0 0;
}

.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: 104px;
  }
}

.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-low);
  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: 800;
  line-height: 1.05;
  letter-spacing: -0.035em;
}

.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.02em;
}

.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;
  font-weight: 400;
}

.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: 1px solid var(--outline-variant);
  border-radius: 28px;
  background: var(--surface);
}

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

.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;
  letter-spacing: -0.01em;
}

.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-low);
  color: var(--on-surface);
  text-decoration: none;
}

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

.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-low);
}

.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-low);
  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-text);
  font-weight: 600;
  text-decoration: none;
}

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

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

.foot {
  padding: 64px 0 32px;
  border-top: 1px solid var(--outline-variant);
  background: var(--surface);
}

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

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

.foot-brand p {
  max-width: 300px;
  margin-top: 12px;
  color: var(--on-surface-variant);
  font-size: 15px;
  font-weight: 500;
}

.foot-col h2 {
  margin: 0 0 12px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  line-height: 1.4;
  text-transform: uppercase;
  color: var(--on-surface-variant);
}

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

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

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

.foot-col a:hover {
  color: var(--primary-text);
  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,
  .person,
  .more 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);
  }
}

/* ---- More motion (decision 170). CSS only, like the hero. The parts tied to
   scrolling need animation-timeline (Chrome, Edge, Safari 26); other browsers
   simply show the page still. Every rest state is the finished page, so
   reduced motion (below, which switches all animation off) shows it as is. */

/* Buttons lift a little; the arrow nudges forward. */
.btn:hover {
  transform: translateY(-2px);
}

.btn:active {
  transform: translateY(0) scale(0.98);
}

.btn .ico {
  transition: translate 0.2s ease;
}

.btn:hover .ico {
  translate: 3px 0;
}

/* Step 1: a caret blinks after the name being typed. */
.art-field::after {
  content: "";
  flex: none;
  width: 2px;
  height: 22px;
  margin-left: 3px;
  background: var(--primary);
  animation: caret 1.1s steps(1) infinite;
}

@keyframes caret {
  50% {
    opacity: 0;
  }
}

/* Step 2: a light passes over the selfie, the face ring breathes. */
.art-selfie::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  z-index: 1;
  height: 40%;
  background: linear-gradient(rgb(255 255 255 / 0), rgb(255 255 255 / 0.3) 85%, rgb(255 255 255 / 0.85));
  opacity: 0;
  pointer-events: none;
  animation: scan 3.4s ease-in-out 0.6s infinite;
}

@keyframes scan {
  0% {
    opacity: 1;
    translate: 0 -100%;
  }

  60% {
    opacity: 1;
    translate: 0 260%;
  }

  61%,
  100% {
    opacity: 0;
    translate: 0 260%;
  }
}

.art-ring {
  animation: ring 2.6s ease-in-out infinite;
}

@keyframes ring {
  50% {
    scale: 1.06;
    border-color: rgb(255 255 255 / 0.55);
  }
}

/* People: the photo comes a little closer under the pointer. */
.person img {
  transition: scale 0.6s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.person:hover img {
  scale: 1.06;
}

/* The plan card's pin pulses. */
.plan-map .pin {
  transform-box: fill-box;
  transform-origin: center;
  animation: pin 2.2s ease-in-out infinite;
}

@keyframes pin {
  50% {
    scale: 1.25;
  }
}

/* The small icons nod when their card is hovered. */
.more li:hover .more-ico,
.safety li:hover .safety-ico {
  animation: nod 0.6s ease;
}

@keyframes nod {
  30% {
    rotate: -10deg;
    scale: 1.1;
  }

  60% {
    rotate: 8deg;
  }
}

/* The final call: the photo drifts closer, the heart beats. */
.cta-box > img {
  animation: hero-zoom 20s ease-in-out infinite alternate;
}

.cta-mark {
  animation: hero-beat 2.4s ease-in-out 1s infinite;
}

/* The photos in the promise band and the safety card stay inside their frame while they move. */
.promise-photo,
.safety-photo {
  overflow: hidden;
}

/* FAQ answers slide open (browsers that can animate to "auto"). */
@supports (interpolate-size: allow-keywords) {
  .faq {
    interpolate-size: allow-keywords;
  }

  .faq details::details-content {
    block-size: 0;
    overflow: hidden;
    transition: block-size 0.3s ease, content-visibility 0.3s allow-discrete;
  }

  .faq details[open]::details-content {
    block-size: auto;
  }
}

/* As the page scrolls: headings rise in, icons and checks pop, the step photos
   fan in, the map's roads draw themselves, the app's pieces on the tiles come
   in one by one, the tile photos move a little slower than the page and the
   big photos settle from close up. */
@supports (animation-timeline: view()) {
  .head .kicker,
  .head h2,
  .head .head-lead,
  .promise-title,
  .cta-box h2,
  .cta-box p {
    animation: rise linear both;
    animation-timeline: view();
    animation-range: entry 0% entry 40%;
  }

  .head h2,
  .cta-box p {
    animation-range: entry 8% entry 48%;
  }

  .head .head-lead {
    animation-range: entry 16% entry 56%;
  }

  .trust li,
  .safety li {
    animation: slide-in linear both;
    animation-timeline: view();
    animation-range: entry 0% entry 45%;
  }

  .trust-ico,
  .step-n,
  .check,
  .more-ico,
  .safety-ico,
  .stat-big {
    animation: pop linear both;
    animation-timeline: view();
    animation-range: entry 10% entry 60%;
  }

  .art-photos img,
  .art-photos span {
    animation: fan linear both;
    animation-timeline: view();
    animation-range: entry 0% entry 60%;
  }

  .art-photos img:nth-child(2) {
    animation-range: entry 10% entry 70%;
  }

  .art-photos img:nth-child(3) {
    animation-range: entry 20% entry 80%;
  }

  .art-photos span {
    animation-range: entry 30% entry 90%;
  }

  .over > * {
    animation: rise linear both;
    animation-timeline: view();
    animation-range: entry 20% entry 70%;
  }

  .over > :nth-child(2) {
    animation-range: entry 30% entry 80%;
  }

  .over > :nth-child(3) {
    animation-range: entry 40% entry 90%;
  }

  .over > :nth-child(4) {
    animation-range: entry 50% entry 100%;
  }

  .plan-map .road {
    stroke-dasharray: 400;
    animation: draw linear both;
    animation-timeline: view();
    animation-range: entry 0% cover 45%;
  }

  .tile > img {
    animation: drift linear both;
    animation-timeline: view();
    animation-range: cover 0% cover 100%;
  }

  .promise-photo img,
  .safety-photo img {
    animation: settle linear both;
    animation-timeline: view();
    animation-range: entry 0% cover 55%;
  }

  .intent:nth-child(2),
  .filters li:nth-child(even) {
    animation-range: entry 8% entry 44%;
  }

  .intent:nth-child(3),
  .filters li:nth-child(3n) {
    animation-range: entry 16% entry 52%;
  }

  .intent:nth-child(4) {
    animation-range: entry 24% entry 60%;
  }

  .filters li {
    animation: pop linear both;
    animation-timeline: view();
    animation-range: entry 0% entry 36%;
  }

  .person:nth-child(4n + 2) {
    animation-range: entry 6% entry 42%;
  }

  .person:nth-child(4n + 3) {
    animation-range: entry 12% entry 48%;
  }

  .person:nth-child(4n) {
    animation-range: entry 18% entry 54%;
  }
}

@keyframes slide-in {
  from {
    opacity: 0;
    translate: -28px 0;
  }

  to {
    opacity: 1;
    translate: 0 0;
  }
}

@keyframes pop {
  from {
    opacity: 0;
    scale: 0.5;
  }

  70% {
    opacity: 1;
    scale: 1.12;
  }

  to {
    opacity: 1;
    scale: 1;
  }
}

@keyframes fan {
  from {
    opacity: 0;
    translate: -60% 12px;
    rotate: -10deg;
  }

  to {
    opacity: 1;
    translate: 0 0;
    rotate: 0deg;
  }
}

@keyframes draw {
  from {
    stroke-dashoffset: 400;
  }

  to {
    stroke-dashoffset: 0;
  }
}

@keyframes drift {
  from {
    translate: 0 -12px;
    scale: 1.1;
  }

  to {
    translate: 0 12px;
    scale: 1.1;
  }
}

@keyframes settle {
  from {
    scale: 1.18;
  }

  to {
    scale: 1;
  }
}

@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-low);
  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;
}

/* ---- Cookie choice (decision 259): only for a flavour with Google Analytics,
   hidden until consent.js shows it. Not a modal: the page stays usable behind
   it. A bar along the bottom on phones, a small card in the bottom corner on
   wider screens. Accept and Decline look exactly the same. */

.consent {
  position: fixed;
  inset: auto 0 0;
  z-index: 25;
  display: grid;
  gap: 14px;
  padding: 18px 16px calc(18px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--outline-variant);
  border-radius: 24px 24px 0 0;
  background: var(--surface);
  color: var(--on-surface);
  box-shadow: var(--shadow-float);
  font-size: 15px;
  line-height: 1.5;
  animation: consent-in 0.3s ease-out both;
}

.consent[hidden] {
  display: none;
}

.consent-actions {
  display: flex;
  gap: 10px;
}

.consent-actions .btn {
  flex: 1 1 0;
  padding: 11px 18px;
  font-size: 15px;
}

@media (min-width: 640px) {
  .consent {
    inset: auto auto 24px 24px;
    width: min(400px, calc(100% - 48px));
    padding: 20px;
    border: 1px solid var(--outline-variant);
    border-radius: 24px;
  }
}

@keyframes consent-in {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
}

/* Cookie settings in the footer: a button that looks like the links beside it. */
.foot-link {
  padding: 0;
  border: 0;
  background: none;
  color: var(--on-surface);
  font: inherit;
  font-size: 15px;
  font-weight: 500;
  text-align: start;
  cursor: pointer;
}

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