/* Handled — site. Its own look, taken from the app's Wallet design: vivid cards
   that stack, bold rounded type, and lime only for "done". System fonts and
   no third-party requests, in keeping with an app that collects nothing. */

:root {
  --night: #0b0b0d;
  --night-2: #151518;
  --night-3: #1f1f23;
  --paper: #f2f2f5;
  --card: #ffffff;
  --ink: #111114;
  --ink-soft: #4a4a52;
  --muted: #6b6b73;
  --line: #e4e4ea;
  --lime: #c6f432;
  --lime-edge: #4e7a0c;
  --coral: #da3418;
  --blue: #2563eb;
  --violet: #7c4deb;
  --green: #12863d;
  --amber: #f5b000;
  --teal: #0e7f86;
  --round: ui-rounded, "SF Pro Rounded", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #0b0b0d;
    --card: #1c1c1f;
    --ink: #f5f5f7;
    --ink-soft: #c9c9d0;
    --muted: #a1a1aa;
    --line: #2c2c31;
    --lime-edge: #c6f432;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: hidden; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 17px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--round); font-weight: 800; letter-spacing: -0.025em; line-height: 1.02; margin: 0; }
p { margin: 0.6rem 0 0; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 clamp(16px, 4vw, 44px); }
.kicker { font-size: 0.8rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
/* Lime is a fill, never text on a light background. */
.hl { background: var(--lime); color: #111114; padding: 0 0.14em; border-radius: 0.16em; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--lime); color: #111114; padding: 0.5rem 1rem; border-radius: 999px; z-index: 50; }
.skip:focus { left: 12px; }
:focus-visible { outline: 3px solid var(--lime); outline-offset: 3px; border-radius: 6px; }

/* ---------- Top bar: floating glass pill ---------- */
.bar { position: sticky; top: 12px; z-index: 20; margin-top: 12px; }
.bar .wrap { display: flex; }
.pill {
  margin: 0 auto; display: flex; align-items: center; gap: 0.4rem; width: 100%;
  padding: 0.45rem 0.45rem 0.45rem 0.7rem; border-radius: 999px;
  background: color-mix(in srgb, var(--night) 72%, transparent);
  backdrop-filter: blur(18px) saturate(160%); -webkit-backdrop-filter: blur(18px) saturate(160%);
  border: 1px solid rgba(255, 255, 255, 0.1); color: #f5f5f7;
}
.logo { display: flex; align-items: center; gap: 0.55rem; font-family: var(--round); font-weight: 800; font-size: 1.12rem; text-decoration: none; margin-right: auto; }
.logo img { width: 32px; height: 32px; border-radius: 8px; }
.pill nav { display: flex; gap: 0.2rem; }
.pill nav a { text-decoration: none; font-weight: 600; font-size: 0.93rem; padding: 0.45rem 0.85rem; border-radius: 999px; color: #d0d0d6; }
.pill nav a:hover, .pill nav a[aria-current="page"] { background: rgba(255, 255, 255, 0.1); color: #fff; }
.pill .get { background: var(--lime); color: #111114; font-weight: 700; }
.pill .get:hover { background: #d4fa5a; color: #111114; }
@media (max-width: 700px) { .pill nav a.opt { display: none; } }

/* ---------- Hero: night, with a fanned wallet ---------- */
.hero { background: var(--night); color: #f5f5f7; margin-top: -68px; padding: calc(68px + clamp(3rem, 8vw, 6.5rem)) 0 clamp(4rem, 9vw, 7rem); position: relative; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: auto -20% -55% 30%; height: 90%;
  background: radial-gradient(closest-side, rgba(198, 244, 50, 0.16), transparent 70%);
  pointer-events: none;
}
.hero .wrap { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; position: relative; }
.hero .wrap > * { min-width: 0; }
.hero h1 { font-size: clamp(3rem, 8.4vw, 6.2rem); }
.hero h1 .dim { color: #8d8d96; }
.hero .lede { font-size: clamp(1.1rem, 1.7vw, 1.32rem); color: #c9c9d0; max-width: 34rem; margin-top: 1.4rem; }
.actions { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: 2rem; align-items: center; }
.button {
  display: inline-flex; align-items: center; gap: 0.6rem; text-decoration: none;
  padding: 0.95rem 1.45rem; border-radius: 999px; font-weight: 700; font-size: 1.02rem;
  transition: transform 0.15s ease, background 0.15s ease;
}
.button svg { width: 22px; height: 22px; }
.button.lime { background: var(--lime); color: #111114; }
.button.lime:hover { transform: translateY(-1px); background: #d4fa5a; }
.button.glass { background: rgba(255, 255, 255, 0.08); color: #f5f5f7; border: 1px solid rgba(255, 255, 255, 0.14); }
.button.glass:hover { background: rgba(255, 255, 255, 0.14); }
/* The App Store page does not exist until the app is live. */
.button.soon { cursor: default; }
.button.soon:hover { transform: none; background: var(--lime); }
.facts { display: flex; flex-wrap: wrap; gap: 0.5rem 1.4rem; margin-top: 2rem; padding: 0; list-style: none; color: #a1a1aa; font-size: 0.93rem; font-weight: 600; }
.facts li { display: flex; align-items: center; gap: 0.45rem; }
.facts li::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--lime); }

.wallet { position: relative; height: clamp(430px, 44vw, 500px); perspective: 1200px; }
.wcard {
  position: absolute; left: 50%; width: min(340px, 86%); border-radius: 26px; padding: 1.2rem 1.3rem 1.3rem;
  color: #fff; box-shadow: 0 28px 60px -26px rgba(0, 0, 0, 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.18);
  transform-origin: 50% 120%;
}
.wcard .top { display: flex; justify-content: space-between; align-items: center; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.04em; opacity: 0.9; }
.wcard .who { font-family: var(--round); font-weight: 800; font-size: 1.15rem; margin-top: 1.1rem; }
.wcard .big { font-family: var(--round); font-weight: 800; font-size: clamp(2.3rem, 4.4vw, 3rem); line-height: 1; margin-top: 0.35rem; font-variant-numeric: tabular-nums; }
.wcard .sub { font-size: 0.85rem; opacity: 0.85; margin-top: 0.5rem; }
.ring { width: 28px; height: 28px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, 0.85); }
.ring.done { border: 0; background: var(--lime) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23111114' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.2 4.2L19 7'/%3E%3C/svg%3E") center/16px no-repeat; box-shadow: 0 0 0 4px rgba(198, 244, 50, 0.25); }
.c1 { top: 0; background: linear-gradient(155deg, #9a74f2, var(--violet)); transform: translateX(-50%) rotate(-9deg) translateY(10px); }
.c2 { top: 112px; background: linear-gradient(155deg, #4b83f3, var(--blue)); transform: translateX(-50%) rotate(4deg); }
.c3 { top: 226px; background: linear-gradient(155deg, #ef5a3e, var(--coral)); transform: translateX(-50%) rotate(-2deg); animation: lift 5s ease-in-out infinite alternate; }
@keyframes lift { from { translate: 0 0; } to { translate: 0 -12px; } }

/* ---------- How it works: numbered strip ---------- */
.steps { background: var(--night-2); color: #f5f5f7; padding: clamp(3rem, 6vw, 4.5rem) 0; border-top: 1px solid rgba(255, 255, 255, 0.06); }
.steps ol { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(1rem, 3vw, 2.5rem); counter-reset: step; }
.steps li { counter-increment: step; position: relative; padding-top: 3.2rem; }
.steps li::before {
  content: counter(step, decimal-leading-zero); position: absolute; top: 0; left: 0;
  font-family: var(--round); font-weight: 800; font-size: 2rem; color: #3a3a40;
}
.steps li:last-child::before { color: var(--lime); }
.steps h3 { font-size: 1.35rem; }
.steps p { color: #a1a1aa; font-size: 0.98rem; }

/* ---------- Section heads ---------- */
.section { padding: clamp(4rem, 9vw, 7rem) 0 0; }
.head { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem 3rem; align-items: end; margin-bottom: clamp(2rem, 4vw, 3rem); }
.head h2 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
.head p { color: var(--ink-soft); font-size: 1.1rem; margin: 0; }

/* ---------- Bento ---------- */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); grid-auto-rows: minmax(190px, auto); gap: 1rem; }
.tile { background: var(--card); border: 1px solid var(--line); border-radius: 28px; padding: 1.6rem; position: relative; overflow: hidden; display: flex; flex-direction: column; }
.tile h3 { font-size: 1.4rem; margin-top: auto; }
.tile p { color: var(--ink-soft); font-size: 0.98rem; }
.tile .icon { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; color: #fff; margin-bottom: 1.6rem; }
.tile .icon svg { width: 24px; height: 24px; }
.span-2 { grid-column: span 2; } .span-3 { grid-column: span 3; } .span-4 { grid-column: span 4; } .row-2 { grid-row: span 2; }
.tile.color { color: #fff; border: 0; }
.tile.color p { color: rgba(255, 255, 255, 0.86); }
.tile.coral { background: linear-gradient(155deg, #e5492e, var(--coral)); }
.tile.blue { background: linear-gradient(155deg, #3b74f0, var(--blue)); }
.tile.dark { background: var(--night); color: #f5f5f7; border: 0; }
.tile.dark p { color: #a1a1aa; }
/* A window onto the top of a screen: a fixed height, so the tile never grows tall. */
.tile .shot { width: 62%; max-width: 250px; height: 280px; overflow: hidden; margin: auto auto -1.6rem; border-radius: 30px 30px 0 0; padding: 8px 8px 0; background: #16161a; box-shadow: 0 -10px 40px -20px rgba(0, 0, 0, 0.6); }
.tile .shot img { width: 100%; height: auto; border-radius: 23px 23px 0 0; }
.bg-coral { background: var(--coral); } .bg-blue { background: var(--blue); } .bg-violet { background: var(--violet); }
.bg-green { background: var(--green); } .bg-teal { background: var(--teal); } .bg-amber { background: var(--amber); color: #111114; }
.ask { margin-top: 1.2rem; display: grid; gap: 0.5rem; }
.ask span { display: inline-block; justify-self: start; background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.12); border-radius: 999px; padding: 0.35rem 0.85rem; font-size: 0.9rem; color: #e4e4ea; }
.ask .a { background: var(--lime); color: #111114; border: 0; font-weight: 600; }

/* ---------- Screens rail ---------- */
.rail { display: grid; grid-auto-flow: column; grid-auto-columns: clamp(200px, 22vw, 250px); gap: 1.4rem; overflow-x: auto; scroll-snap-type: x mandatory; padding: 0.5rem clamp(16px, 4vw, 44px) 1.5rem; scrollbar-width: thin; }
.rail figure { margin: 0; scroll-snap-align: start; }
.device { aspect-ratio: 1320 / 2868; background: #16161a; border-radius: 36px; padding: 8px; box-shadow: 0 24px 50px -26px rgba(0, 0, 0, 0.5); }
.device img { width: 100%; height: 100%; object-fit: cover; border-radius: 29px; }
.rail figcaption { margin-top: 0.9rem; font-weight: 700; }
.rail figcaption small { display: block; color: var(--muted); font-weight: 500; }

/* ---------- Privacy statement ---------- */
.vow { margin-top: clamp(4rem, 9vw, 7rem); background: var(--night); color: #f5f5f7; padding: clamp(3.5rem, 8vw, 6rem) 0; }
.vow h2 { font-size: clamp(2.6rem, 7vw, 5.2rem); max-width: 14ch; }
.vow .lede { color: #c9c9d0; font-size: 1.15rem; max-width: 40rem; margin-top: 1.2rem; }
.vow-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-top: 2.5rem; }
.vow-grid div { background: var(--night-3); border: 1px solid rgba(255, 255, 255, 0.08); border-radius: 22px; padding: 1.4rem; }
.vow-grid strong { font-family: var(--round); font-size: 1.2rem; display: block; }
.vow-grid p { color: #a1a1aa; font-size: 0.96rem; }
.vow a { color: var(--lime); font-weight: 600; }

/* ---------- Help ---------- */
.help { display: grid; grid-template-columns: 1fr 1.4fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.help aside { position: sticky; top: 96px; }
.contact { margin-top: 1.5rem; background: var(--card); border: 1px solid var(--line); border-radius: 22px; padding: 1.3rem 1.4rem; }
.contact a { font-weight: 700; text-decoration: none; border-bottom: 2px solid var(--lime); }
.qa details { border-bottom: 1px solid var(--line); }
.qa summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 1rem; padding: 1.15rem 0; font-weight: 700; font-size: 1.05rem; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after { content: ""; flex: none; width: 26px; height: 26px; border-radius: 50%; background: var(--card) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236b6b73' stroke-width='2.6' stroke-linecap='round'%3E%3Cpath d='M12 6v12M6 12h12'/%3E%3C/svg%3E") center/14px no-repeat; border: 1px solid var(--line); transition: transform 0.2s; }
.qa details[open] summary::after { transform: rotate(45deg); }
.qa details p { color: var(--ink-soft); margin: 0 0 1.2rem; }

/* ---------- Footer ---------- */
.foot { margin-top: clamp(4rem, 9vw, 7rem); background: var(--night); color: #a1a1aa; padding: 3rem 0 3.5rem; font-size: 0.95rem; }
.foot .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1.2rem 2rem; align-items: center; }
.foot nav { display: flex; flex-wrap: wrap; gap: 0.6rem 1.5rem; }
.foot a { color: #e4e4ea; text-decoration: none; }
.foot a:hover { color: var(--lime); }
.foot .logo { color: #f5f5f7; margin: 0; }

/* ---------- Document pages ---------- */
.doc-top { background: var(--night); color: #f5f5f7; margin-top: -68px; padding: calc(68px + clamp(2.5rem, 6vw, 4.5rem)) 0 clamp(2.5rem, 5vw, 3.5rem); }
.doc-top h1 { font-size: clamp(2.6rem, 7vw, 4.6rem); }
.doc-top p { color: #a1a1aa; }
.doc-top .tag { display: inline-block; margin-top: 1.4rem; background: var(--lime); color: #111114; font-weight: 700; padding: 0.55rem 1rem; border-radius: 14px; }
.doc { display: grid; grid-template-columns: 230px 1fr; gap: clamp(2rem, 5vw, 4rem); padding-top: clamp(2rem, 5vw, 3.5rem); align-items: start; }
.doc .toc { position: sticky; top: 96px; display: grid; gap: 0.1rem; font-size: 0.95rem; }
.doc .toc a { text-decoration: none; color: var(--muted); padding: 0.4rem 0.8rem; border-radius: 10px; }
.doc .toc a:hover { background: var(--card); color: var(--ink); }
.prose { max-width: 44rem; }
.prose section { background: var(--card); border: 1px solid var(--line); border-radius: 22px; padding: 1.3rem 1.5rem 1.4rem; margin-bottom: 1rem; scroll-margin-top: 96px; }
.prose h2 { font-size: 1.35rem; letter-spacing: -0.015em; }
.prose p, .prose li { color: var(--ink-soft); }
.prose ul { padding-left: 1.2rem; margin: 0.6rem 0 0; }
.prose li + li { margin-top: 0.35rem; }
.prose a { font-weight: 600; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero .wrap, .head, .help { grid-template-columns: 1fr; }
  .wallet { height: 470px; margin-top: 1rem; }
  .steps ol { grid-template-columns: repeat(2, 1fr); row-gap: 2rem; }
  .bento { grid-template-columns: repeat(2, 1fr); }
  .span-2, .span-3, .span-4 { grid-column: span 2; }
  .row-2 { grid-row: auto; }
  .vow-grid { grid-template-columns: 1fr; }
  .help aside { position: static; }
  .doc { grid-template-columns: 1fr; }
  .doc .toc { position: static; display: flex; flex-wrap: wrap; }
}
@media (max-width: 560px) {
  .steps ol { grid-template-columns: 1fr; }
  .bento { grid-template-columns: 1fr; }
  .span-2, .span-3, .span-4 { grid-column: auto; }
  .wallet { height: 400px; }
  .c2 { top: 100px; } .c3 { top: 200px; }
  .pill nav a { padding: 0.45rem 0.65rem; }
}
