/* TDom website: shared base for every page (tokens, nav, buttons, footer, document pages). */
@font-face {
  font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url(/assets/fonts/inter-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;
}
:root {
  --bg: #000;
  --panel: rgba(255, 255, 255, 0.055);
  --panel-2: rgba(255, 255, 255, 0.09);
  --line: rgba(255, 255, 255, 0.1);
  --ink: #f5f5f7;
  --ink-2: #a1a1a6;
  --ink-3: #86868b;
  --l-bg: #f5f5f7;
  --l-card: #fff;
  --l-ink: #1d1d1f;
  --l-ink-2: #6e6e73;
  --mint: #38d48f;
  --mint-ink: #0f7a4c;
  --dim: #86868b;
  --max: 1160px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", "Segoe UI", system-ui, sans-serif;
  --font-display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Inter", "Segoe UI", system-ui, sans-serif;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --shadow: 0 1px 2px rgba(10, 10, 10, .05), 0 12px 32px -22px rgba(10, 10, 10, .28);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 60px; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--font); font-size: 17px; line-height: 1.55; letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
::selection { background: rgba(56, 212, 143, 0.35); }
h1, h2, h3 { font-family: var(--font-display); margin: 0; letter-spacing: -0.035em; text-wrap: balance; }
p { text-wrap: pretty; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.dim { color: var(--dim); }
.ico { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 200; padding: 10px 16px; border-radius: 999px; background: #fff; color: #000; }
.skip:focus { left: 12px; }

/* Navigation: dark glass, light glass over light sections (set by script). */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 100; height: 52px;
  background: rgba(10, 10, 12, 0.7);
  -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px);
  transition: background .4s, color .4s;
}
.nav.is-light { background: rgba(250, 250, 252, 0.76); color: var(--l-ink); }
.nav .wrap { display: flex; align-items: center; gap: 30px; height: 100%; }
.logo { display: flex; align-items: center; gap: 9px; min-height: 44px; font-weight: 650; font-size: 17px; letter-spacing: -0.015em; text-decoration: none; }
.logo img { width: 26px; height: 26px; border-radius: 22.5%; }
.nav-links { display: flex; gap: 28px; margin-left: auto; }
.nav-links a { text-decoration: none; font-size: 13.5px; opacity: .78; transition: opacity .2s; }
.nav-links a:hover, .nav-links a[aria-current] { opacity: 1; }
.nav .btn { padding: 7px 15px; min-height: 34px; font-size: 13.5px; }
@media (pointer: coarse) { .nav .btn { min-height: 40px; padding: 10px 18px; font-size: 15px; } }
body.has-nav-space { padding-top: 52px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 15px 26px; border-radius: 999px; border: 0; text-decoration: none; cursor: pointer;
  font: 600 16px/1 var(--font); letter-spacing: -0.01em; white-space: nowrap;
  transition: transform .25s var(--ease), background .25s, box-shadow .25s, color .25s;
}
a.btn:hover { transform: translateY(-1px); }
a.btn:active { transform: translateY(0) scale(.98); }
.btn:focus-visible { outline: 2px solid var(--mint); outline-offset: 3px; }
.btn .ico { width: 19px; height: 19px; }
.btn .apple { width: 17px; height: 17px; fill: currentColor; stroke: none; margin-top: -2px; }
.btn-white { background: #fff; color: #000; }
.btn-white:hover { background: #e8e8ed; }
.btn-glass { background: rgba(255, 255, 255, 0.1); color: #fff; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18); }
.btn-glass:hover { background: rgba(255, 255, 255, 0.16); }
.btn-dark { background: #1d1d1f; color: #fff; }
.btn-dark:hover { background: #000; }
.btn-line { background: transparent; color: var(--l-ink); box-shadow: inset 0 0 0 1.5px rgba(0, 0, 0, .16); }
.btn-line:hover { box-shadow: inset 0 0 0 1.5px rgba(0, 0, 0, .32); }
/* Shown until the App Store listing is live; deploy-site.sh --live swaps it for a link. */
.btn-soon { cursor: default; }
.btn-soon small { font-weight: 500; opacity: .62; }
.btn .short { display: none; }
.cta-row { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 30px; }
.req { color: var(--ink-3); font-size: 14px; margin: 16px 0 0; }

/* Footer */
footer { background: #000; color: var(--ink-2); font-size: 13px; padding: 34px 0 40px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 14px 26px; align-items: center; }
footer nav { display: flex; flex-wrap: wrap; gap: 22px; margin-left: auto; }
footer a { color: var(--ink-2); text-decoration: none; }
footer a:hover { color: var(--ink); }
footer .legal { flex-basis: 100%; color: var(--ink-3); font-size: 12px; margin: 6px 0 0; }
.host { display: inline-flex; align-items: center; }
.host a { display: inline-flex; align-items: center; gap: 5px; margin-left: 6px; color: var(--ink); }
.host svg { width: 14px; height: 14px; fill: currentColor; }
.host a:hover { opacity: .75; }

/* Document pages (privacy, support, terms) */
.doc { max-width: 780px; margin: 0 auto; padding: 72px 24px 64px; }
.doc-head { text-align: center; }
.doc .eyebrow-text { color: var(--mint); font-weight: 650; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; }
.doc h1 { font-size: clamp(38px, 6vw, 56px); line-height: 1.05; font-weight: 700; margin: 14px 0 12px; }
.doc .stamp { color: var(--ink-3); font-size: 15px; margin: 0 0 8px; }
.doc .summary { margin: 34px 0 10px; padding: 24px 26px; border-radius: 18px; background: var(--panel); box-shadow: inset 0 0 0 1px var(--line); color: var(--ink-2); }
.doc .summary strong { color: var(--ink); }
.doc h2 { font-size: 24px; font-weight: 650; letter-spacing: -0.02em; margin: 52px 0 12px; }
.doc h3 { font-size: 18px; font-weight: 650; margin: 30px 0 8px; }
.doc p, .doc li { color: var(--ink-2); }
.doc ul, .doc ol { padding-left: 22px; }
.doc li { margin-bottom: 8px; }
.doc strong { color: var(--ink); font-weight: 600; }
.doc a { color: var(--mint); text-decoration: underline; text-decoration-color: rgba(56, 212, 143, .45); text-underline-offset: 3px; }
.doc a:hover { text-decoration-color: var(--mint); }
.doc a.btn { color: #fff; text-decoration: none; }
.doc a.btn-white { color: #000; }
/* Table rows are cards, not ruled lines. */
.doc table { width: 100%; border-collapse: separate; border-spacing: 0 6px; margin: 14px 0; font-size: 15px; }
.doc th, .doc td { text-align: left; padding: 12px 14px; vertical-align: top; }
.doc th { color: var(--ink); font-weight: 600; }
.doc td { color: var(--ink-2); background: var(--panel); }
.doc td:first-child { border-radius: 12px 0 0 12px; color: var(--ink); width: 34%; }
.doc td:last-child { border-radius: 0 12px 12px 0; }
.contact-card { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; margin: 30px 0; padding: 24px 26px; border-radius: 18px; background: var(--panel); box-shadow: inset 0 0 0 1px var(--line); }
.contact-card div { flex: 1 1 240px; }
.contact-card b { display: block; font-size: 18px; color: var(--ink); }
.contact-card span { color: var(--ink-2); font-size: 15px; }
/* FAQ: each question is its own card. */
.faq { display: grid; gap: 8px; text-align: left; }
.faq details { border-radius: 18px; background: var(--panel); box-shadow: inset 0 0 0 1px var(--line); padding: 0 22px; }
.faq summary { cursor: pointer; list-style: none; padding: 18px 40px 18px 0; font-size: 17px; font-weight: 600; letter-spacing: -0.015em; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 4px; top: 50%; width: 9px; height: 9px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; opacity: .45; transform: translateY(-70%) rotate(45deg); transition: transform .3s var(--ease); }
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq details p { margin: -4px 0 18px; color: var(--ink-2); font-size: 16px; }
.faq a { color: var(--mint); }

/* 404 */
.lost { min-height: calc(100svh - 52px - 120px); display: grid; place-content: center; text-align: center; padding: 60px 24px; }
.lost .needle { width: 120px; height: 120px; margin: 0 auto 28px; border-radius: 22.5%; }
.lost h1 { font-size: clamp(42px, 7vw, 72px); line-height: 1.02; font-weight: 700; }
.lost p { color: var(--ink-2); font-size: 19px; max-width: 520px; margin: 18px auto 0; }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; } }
@media (max-width: 760px) {
  body { font-size: 16px; }
  .nav-links { display: none; }
  .nav .btn { margin-left: auto; }
  footer .wrap { flex-direction: column; text-align: center; row-gap: 6px; }
  footer nav { margin-left: 0; justify-content: center; gap: 4px 20px; }
  footer nav a { display: inline-flex; align-items: center; min-height: 44px; }
  footer .wrap > span { order: 2; }
  footer .legal { order: 3; }
  .host a { min-height: 44px; }
  .doc td:first-child { width: 40%; }
}
/* Phones: a pair of buttons sits side by side as equal halves, with shorter labels. */
@media (max-width: 560px) {
  .cta-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
  .cta-row > .btn:only-child { grid-column: 1 / -1; }
  .cta-row .btn { min-width: 0; padding: 15px 10px; font-size: 15px; gap: 7px; }
  .btn .long { display: none; }
  .btn .short { display: inline; }
}
