/* Colors and type from mobile/src/theme/tokens.ts and type.ts (canvas DS-Foundations). */
@font-face { font-family: 'Bricolage'; font-weight: 400; font-display: swap; src: url('/fonts/bricolage-regular.woff2') format('woff2'); }
@font-face { font-family: 'Bricolage'; font-weight: 500; font-display: swap; src: url('/fonts/bricolage-medium.woff2') format('woff2'); }
@font-face { font-family: 'Bricolage'; font-weight: 600; font-display: swap; src: url('/fonts/bricolage-semibold.woff2') format('woff2'); }
@font-face { font-family: 'Bricolage'; font-weight: 700; font-display: swap; src: url('/fonts/bricolage-bold.woff2') format('woff2'); }
@font-face { font-family: 'Bricolage Display'; font-weight: 800; font-display: swap; src: url('/fonts/bricolage-display-extrabold.woff2') format('woff2'); }

:root {
  color-scheme: light dark;
  --background: #F6F5F2;
  --surface: #FFFFFF;
  --surface-sunken: #ECEAE6;
  --line: #DDDAD5;
  --ink: #17161A;
  --ink-muted: #5E5A63;
  --ink-subtle: #8D8992;
  --ink-inverse: #F6F5F2;
  --me: #FF6B3D;
  --me-text: #B8401F;
  --partner: #1F7A8C;
  --me-soft: #FFE3D8;
  --partner-soft: #D6EEF1;
  --art: #F3EEE5;
  --font: 'Bricolage', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --display: 'Bricolage Display', var(--font);
  --gutter: 20px;
  --radius: 20px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --background: #121114;
    --surface: #1D1C21;
    --surface-sunken: #0C0B0E;
    --line: #34323A;
    --ink: #F3F1EE;
    --ink-muted: #A9A5AE;
    --ink-subtle: #6E6A73;
    --ink-inverse: #17161A;
    --me: #FF7A52;
    --me-text: #FF7A52;
    --partner: #46B6C6;
    --me-soft: #3A2219;
    --partner-soft: #15333A;
    --art: #27262C;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--background);
  color: var(--ink);
  font: 400 16px/1.45 var(--font);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--me-text); }
:focus-visible { outline: 2px solid var(--partner); outline-offset: 3px; border-radius: 6px; }

.wrap { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 var(--gutter); }

/* Header + footer */
.top { padding: 20px 0; }
.top .wrap { display: flex; align-items: center; justify-content: space-between; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 700; font-size: 20px; letter-spacing: -0.02em; }
.brand:hover { color: inherit; }
.brand svg { width: 30px; height: 30px; flex: none; }
main { flex: 1; }
.foot { padding: 28px 0 36px; color: var(--ink-muted); font-size: 14px; }
.foot .wrap { display: flex; flex-wrap: wrap; gap: 8px 24px; align-items: center; justify-content: space-between; border-top: 1px solid var(--line); padding-top: 24px; }
.foot nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.foot a { text-decoration: none; }
.foot a:hover { text-decoration: underline; color: var(--ink); }

/* Type */
.eyebrow { font-size: 12px; line-height: 16px; letter-spacing: 0.08em; text-transform: uppercase; font-weight: 600; color: var(--ink-muted); margin: 0 0 14px; }
.display { font-family: var(--display); font-weight: 800; font-size: clamp(38px, 6vw, 60px); line-height: 1.03; letter-spacing: -0.035em; margin: 0 0 20px; text-wrap: balance; }
.lede { font-size: clamp(17px, 2vw, 19px); line-height: 1.5; color: var(--ink-muted); margin: 0 0 28px; max-width: 34em; }
.me { color: var(--me-text); }
.partner { color: var(--partner); }

/* Hero (landing + invite) */
.hero { display: grid; gap: 40px; align-items: center; padding-top: 24px; padding-bottom: 56px; }
@media (min-width: 860px) {
  .hero { grid-template-columns: 1.15fr 0.85fr; gap: 64px; padding-top: 40px; padding-bottom: 72px; }
}
.art { background: var(--art); border-radius: 28px; overflow: hidden; aspect-ratio: 4 / 5; display: grid; place-items: center; max-width: min(440px, 80vw); width: 100%; justify-self: center; }
.art img { width: 100%; height: 100%; object-fit: cover; }
.art.contain img { object-fit: contain; width: 78%; height: auto; }

/* Store buttons (not links until the apps are live) */
.stores { display: flex; flex-wrap: wrap; gap: 12px; margin: 0; padding: 0; list-style: none; }
.store { display: inline-flex; flex-direction: column; justify-content: center; flex: 1 1 0; min-width: 0; max-width: 200px; min-height: 56px; padding: 8px 14px; border-radius: 14px; border: 1.5px dashed var(--line); background: var(--surface); color: var(--ink); cursor: default; user-select: none; }
.store small { font-size: 10.5px; line-height: 14px; letter-spacing: 0.05em; white-space: nowrap; text-transform: uppercase; font-weight: 600; color: var(--ink-subtle); }
.store span { font-size: 18px; line-height: 22px; font-weight: 700; letter-spacing: -0.01em; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 54px; padding: 0 26px; border-radius: 999px; background: var(--ink); color: var(--ink-inverse); font: 600 17px/1 var(--font); text-decoration: none; border: 0; }
.btn:hover { color: var(--ink-inverse); opacity: 0.9; }
.btn-quiet { background: transparent; color: var(--ink); border: 1.5px solid var(--line); cursor: pointer; }
.btn-quiet:hover { color: var(--ink); opacity: 1; background: var(--surface); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin: 0 0 28px; }

/* Feature line under the landing hero copy */
.points { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 32px; padding: 0; list-style: none; }
.points li { padding: 7px 14px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-size: 14px; font-weight: 500; }

/* Invite */
.code { display: inline-flex; flex-direction: column; gap: 4px; padding: 14px 20px; border-radius: 16px; background: var(--surface-sunken); margin: 0 0 24px; }
.code small { font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; font-weight: 600; color: var(--ink-muted); }
.code strong { font-size: 26px; letter-spacing: 0.14em; font-weight: 700; font-variant-numeric: tabular-nums; }
.note { color: var(--ink-muted); font-size: 15px; margin: 0 0 16px; max-width: 34em; }
[hidden] { display: none !important; }

/* Legal + support pages */
.prose { max-width: 700px; padding-top: 24px; padding-bottom: 64px; }
.prose h1 { font-family: var(--display); font-weight: 800; font-size: clamp(34px, 5vw, 46px); line-height: 1.05; letter-spacing: -0.03em; margin: 0 0 10px; }
.prose .updated { color: var(--ink-muted); margin: 0 0 32px; font-size: 15px; }
.prose h2 { font-size: 22px; line-height: 1.25; letter-spacing: -0.015em; font-weight: 700; margin: 40px 0 10px; }
.prose h3 { font-size: 17px; font-weight: 600; margin: 24px 0 6px; }
.prose p, .prose li { color: var(--ink); }
.prose ul { padding-left: 1.2em; }
.prose li { margin: 6px 0; }
.prose .summary { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 22px; margin: 0 0 8px; }
.prose .summary ul { margin: 8px 0 0; }
.prose table { width: 100%; border-collapse: collapse; font-size: 15px; margin: 12px 0; display: block; overflow-x: auto; }
.prose th, .prose td { text-align: left; vertical-align: top; padding: 10px 12px 10px 0; border-bottom: 1px solid var(--line); }
.prose th { font-weight: 600; white-space: nowrap; }
.mail { display: inline-block; font-size: clamp(20px, 3.4vw, 28px); font-weight: 700; letter-spacing: -0.02em; margin: 4px 0 20px; color: var(--me-text); word-break: break-all; }
.faq h3 { margin-top: 28px; }
