:root {
  --font: ui-rounded, "SF Pro Rounded", system-ui, -apple-system, "Segoe UI", sans-serif;
  --peach: #f8dfcc;
  --paper: #f7f3f0;
  --paper-bright: #fcfaf9;
  --ink: #3a3633;
  --ink-secondary: rgba(58, 54, 51, 0.7);
  --dark-deep: #24211f;
  --scrim: rgba(36, 33, 31, 0.4);
  --margin: 64px;
}
* { box-sizing: border-box; margin: 0; }
html, body { min-height: 100%; }
html { overflow-x: hidden; }
body { font-family: var(--font); color: var(--ink); -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
:focus-visible { outline: 2px solid var(--dark-deep); outline-offset: 4px; border-radius: 4px; }

.links { display: flex; gap: 24px; font-size: 16px; line-height: 20px; }
.links a { display: inline-block; padding: 12px 0; margin: -12px 0; }

/* ---------- Home: one screen ---------- */
.home { background: var(--peach); min-height: 100vh; min-height: 100svh; overflow: hidden; position: relative;
  display: flex; flex-direction: column; padding: var(--margin); }
.intro { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: flex-start; gap: 24px; }
.intro h1 { font-size: 28px; line-height: 34px; font-weight: 700; color: #000; }
.button { display: inline-flex; align-items: center; height: 56px; padding: 0 24px; border: 0; cursor: pointer;
  border-radius: 999px; background: var(--dark-deep); color: #fff; font: 700 24px/28px var(--font); }
.button:hover { text-decoration: none; opacity: 0.9; }

/* The character video: 760 of 1440 wide, 60 from the right, 69 above the top (Figma 816:416453). */
.character { position: absolute; z-index: 1; width: 52.78vw; aspect-ratio: 1; right: 4.17vw; top: -4.79vw;
  pointer-events: none;
  /* Soften the left and bottom edges so the video's own background melts into the page. */
  -webkit-mask-image: linear-gradient(to right, transparent, #000 12%), linear-gradient(to top, transparent, #000 12%);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(to right, transparent, #000 12%), linear-gradient(to top, transparent, #000 12%);
  mask-composite: intersect; }
.character video { width: 100%; height: 100%; object-fit: cover; display: block; }

.foot { margin-top: auto; position: relative; z-index: 2; padding-top: 36px; }
.foot .links { margin-bottom: 36px; }
.wordmark { display: block; width: 100%; height: auto; }

/* ---------- Get the app (desktop) ---------- */
dialog.get-app { margin: auto; border: 0; padding: 0; border-radius: 32px; background: var(--paper-bright);
  color: var(--ink); text-align: center; }
dialog.get-app::backdrop { background: var(--scrim); }
dialog.get-app[open] { animation: appear .2s ease-out; }
dialog.get-app .card { padding: 40px; display: flex; flex-direction: column; align-items: center; gap: 24px; }
dialog.get-app::backdrop { animation: fade .2s ease-out; }
@keyframes appear { from { opacity: 0; transform: scale(.96); } }
@keyframes fade { from { opacity: 0; } }
.qr { position: relative; width: 240px; height: 240px; }
.qr img { width: 100%; height: 100%; display: block; }
.qr span { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); background: var(--paper-bright);
  padding: 6px 8px; font: 700 16px/20px var(--font); color: var(--dark-deep); white-space: nowrap; }
.badge img { display: block; height: 56px; width: auto; }

/* ---------- Legal pages ---------- */
.legal { background: var(--paper); min-height: 100vh; min-height: 100svh; padding: var(--margin); }
.legal header { display: flex; justify-content: space-between; align-items: center; }
.legal header img { width: 152px; height: auto; display: block; }
.legal header .links { color: var(--ink-secondary); }
.legal main { max-width: 640px; margin: 96px auto 0; padding-bottom: 64px; }
.legal h1 { font-size: 80px; line-height: 96px; font-weight: 800; color: var(--ink); margin-bottom: 32px; }
.legal main p, .legal main li { font-size: 20px; line-height: 24px; color: var(--ink-secondary); }
.legal main p { margin-bottom: 24px; }

/* ---------- Phone (Figma 822:211151 and 822:211167) ---------- */
@media (max-width: 719px) {
  :root { --margin: 24px; }
  .home { padding-top: 32px; }
  .character { width: auto; height: 123vw; aspect-ratio: auto; right: 0; left: 0; top: 196px; overflow: hidden;
    -webkit-mask-image: linear-gradient(to bottom, transparent, #000 10%, #000 88%, transparent), linear-gradient(to right, transparent, #000 8%);
    mask-image: linear-gradient(to bottom, transparent, #000 10%, #000 88%, transparent), linear-gradient(to right, transparent, #000 8%); }
  .character video { width: 123vw; height: 123vw; }
  .foot { padding-top: 24px; }
  .foot .links { margin-bottom: 24px; }
  .legal { padding-top: 32px; }
  .legal header img { width: 120px; }
  .legal main { margin-top: 64px; }
}
@media (prefers-reduced-motion: reduce) {
  dialog.get-app[open], dialog.get-app::backdrop { animation: none; }
}
