@font-face {
  font-family: "Satoshi";
  src: url("/fonts/Satoshi-Variable.woff2") format("woff2");
  font-weight: 300 900;
  font-display: swap;
}
@font-face {
  font-family: "Geist Mono";
  src: url("/fonts/GeistMono-Variable.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --bg: #f5f5f7;
  --ink: #0a0a0a;
  --muted: #8a8a8f;
  --pale: #bdbdc2;
  --line: rgba(10, 10, 10, .08);
  --surface: #ffffff;
  --ease: cubic-bezier(.16, 1, .3, 1);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0a0a0a;
    --ink: #f5f5f7;
    --muted: #8a8a8f;
    --pale: #4a4a4f;
    --line: rgba(245, 245, 247, .1);
    --surface: #161618;
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 17px/1.6 "Satoshi", -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
.mono { font-family: "Geist Mono", ui-monospace, monospace; font-size: 12px; letter-spacing: .02em; color: var(--muted); }

main { max-width: 640px; margin: 0 auto; padding: 72px 24px 56px; }

/* ---------- Home ---------- */
.hero { text-align: center; }
.hero .icon { width: 88px; height: 88px; border-radius: 20px; display: block; margin: 0 auto 32px; }
.hero h1 {
  font-weight: 600;
  font-size: clamp(36px, 8vw, 56px);
  line-height: 1.04;
  letter-spacing: -.04em;
  margin: 0 0 20px;
}
.hero h1 .pale { color: var(--pale); }
.hero .lede { color: var(--muted); max-width: 440px; margin: 0 auto 32px; font-weight: 450; }

.btn {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--ink); color: var(--bg);
  text-decoration: none; font-weight: 500; font-size: 16px;
  padding: 14px 24px; border-radius: 999px;
  transition: transform .16s var(--ease), opacity .16s var(--ease);
}
.btn:active { transform: scale(.96); }
.btn[aria-disabled="true"] { background: transparent; color: var(--muted); box-shadow: inset 0 0 0 1px var(--line); cursor: default; }
.btn[aria-disabled="true"]:active { transform: none; }

/* Lock screen */
.phone {
  margin: 64px auto 0;
  width: 300px; max-width: 100%;
  height: 300px;
  -webkit-mask-image: linear-gradient(#000 70%, transparent);
  mask-image: linear-gradient(#000 70%, transparent);
  border-radius: 44px 44px 0 0;
  background: var(--surface);
  box-shadow: 0 0 0 1px var(--line);
  padding: 36px 22px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.phone .date { font-size: 15px; font-weight: 500; color: var(--muted); }
.phone .time { font-size: 84px; font-weight: 600; letter-spacing: -.045em; line-height: 1; margin: 2px 0 26px; }
.widget {
  text-align: left;
  border-radius: 20px;
  padding: 14px 16px;
  background: var(--bg);
  min-height: 92px;
}
.widget .row { display: flex; justify-content: space-between; align-items: baseline; }
.widget .fr { font-size: 22px; font-weight: 600; letter-spacing: -.02em; line-height: 1.2; }
.widget .en { font-size: 14px; color: var(--muted); margin-top: 2px; }
.widget .swap { display: block; will-change: transform, filter, opacity; }
.widget .swap.out { animation: morph-out .42s var(--ease) forwards; }
.widget .swap.in { animation: morph-in .55s var(--ease) both; }
@keyframes morph-in  { from { opacity: 0; transform: scale(.86); filter: blur(4px); } to { opacity: 1; transform: none; filter: none; } }
@keyframes morph-out { to   { opacity: 0; transform: scale(1.1); filter: blur(3px); } }

.facts {
  list-style: none; padding: 0; margin: 24px 0 0;
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px;
  background: var(--line); border-radius: 20px; overflow: hidden;
  box-shadow: 0 0 0 1px var(--line);
}
.facts li { background: var(--surface); padding: 20px; }
.facts .num { font-family: "Geist Mono", ui-monospace, monospace; font-size: 22px; font-weight: 400; letter-spacing: -.02em; display: block; }
.facts .label { font-size: 14px; color: var(--muted); }

.price { text-align: center; margin: 64px auto 0; max-width: 460px; }
.price h2 { font-size: 24px; font-weight: 600; letter-spacing: -.03em; margin: 0 0 10px; }
.price p { color: var(--muted); margin: 0; }

.legal { text-align: center; font-size: 13px; color: var(--muted); max-width: 460px; margin: 64px auto 0; }

/* ---------- Inner pages ---------- */
.top { display: flex; align-items: center; gap: 12px; margin-bottom: 48px; text-decoration: none; width: max-content; }
.top img { width: 32px; height: 32px; border-radius: 8px; }
.top span { font-weight: 600; letter-spacing: -.02em; font-size: 18px; }
.page h1 { font-size: clamp(32px, 7vw, 44px); font-weight: 600; letter-spacing: -.04em; line-height: 1.08; margin: 0 0 8px; }
.page .updated { margin: 0 0 40px; }
.page h2 { font-size: 19px; font-weight: 600; letter-spacing: -.02em; margin: 40px 0 8px; }
.page p, .page li { font-weight: 450; }
.page ul { padding-left: 20px; }
.page li { margin: 6px 0; }
.page strong { font-weight: 600; }
.page a { text-underline-offset: 3px; text-decoration-color: var(--pale); }
.page .lead { font-size: 19px; }

.faq { margin-top: 40px; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; padding: 20px 0;
  font-weight: 600; letter-spacing: -.015em; display: flex; justify-content: space-between; gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: "Geist Mono", monospace; font-weight: 400; color: var(--muted); transition: transform .2s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: -6px 0 20px; color: var(--muted); }

/* ---------- Footer ---------- */
footer {
  margin-top: 80px; padding-top: 24px; border-top: 1px solid var(--line);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
}
footer nav { display: flex; gap: 20px; }
footer a { text-decoration: none; font-size: 14px; color: var(--muted); transition: color .16s var(--ease); }
footer a:hover, footer a[aria-current] { color: var(--ink); }

/* ---------- Entrance ---------- */
.rise { animation: morph-rise .6s var(--ease) both; animation-delay: calc(var(--i, 0) * 60ms); }
@keyframes morph-rise { from { opacity: 0; transform: translateY(8px) scale(.98); filter: blur(6px); } to { opacity: 1; transform: none; filter: none; } }

@media (max-width: 480px) {
  main { padding: 48px 16px 40px; }
  .facts { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
