@font-face {
  font-family: "Inter";
  src: url("/fonts/inter-var.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
/* Wordmark: SF Pro Rounded on Apple devices (system font), Nunito Bold elsewhere. */
@font-face {
  font-family: "Nunito";
  src: url("/fonts/nunito-700.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}

/* Dark is the default, like the app. Light only through the header switch (data-theme="light"). */
:root {
  --bg: #0A0908;
  --bg-warm: #1A130B;
  --surface: #14110E;
  --border: #2A241D;
  --text: #F5F2EE;
  --dim: #A39C93;
  --orange: #F7931A;
  --orange-mid: #D88218;
  --orange-deep: #B9701A;
  --line: #FFFFFF;
  --pulse: #FFFFFF;
  --up: #34C759;
  --shadow: rgba(0, 0, 0, 0.55);
  --stage-top: #1E1710;
  --stage-bottom: #110E0B;
  --stage-glow: rgba(247, 147, 26, 0.26);
  --stage-line: rgba(255, 196, 128, 0.10);
  --card: #15120F;
  --card-line: #2C251D;
  --radius: 22px;
  --font-mark: ui-rounded, "SF Pro Rounded", "Nunito", system-ui, sans-serif;
  color-scheme: dark;
}
:root[data-theme="light"] {
  --bg: #F6F3EE; --bg-warm: #F3E6D3; --surface: #FFFFFF; --border: #E5DED3;
  --text: #18181B; --dim: #6B6B73; --line: #18181B; --pulse: #18181B; --up: #1F9D47;
  --shadow: rgba(120, 72, 10, 0.28);
  --stage-top: #F2E6D4; --stage-bottom: #E8D7BE; --stage-glow: rgba(247, 147, 26, 0.30); --stage-line: rgba(120, 72, 10, 0.10);
  --card: #FFFFFF; --card-line: #E5DED3;
  color-scheme: light;
}

/* Screenshots: one set per theme, never mixed. */
.only-light { display: none !important; }
:root[data-theme="light"] .only-light { display: block !important; }
:root[data-theme="light"] .only-dark { display: none !important; }

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
  background: var(--bg);
  background-image: radial-gradient(120% 60% at 50% 0%, var(--bg-warm) 0%, var(--bg) 60%);
  background-repeat: no-repeat;
  color: var(--text);
  font: 400 17px/1.55 "Inter", system-ui, -apple-system, sans-serif;
  font-feature-settings: "tnum" 1, "cv11" 1;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration-color: var(--orange); text-underline-offset: 3px; }
a:hover { color: var(--orange); }
h1, h2 { letter-spacing: -0.025em; line-height: 1.1; margin: 0 0 16px; font-weight: 700; text-wrap: balance; }
h1 { font-size: clamp(40px, 7vw, 68px); }
h2 { font-size: clamp(28px, 4.2vw, 42px); }
p { margin: 0 0 14px; }
:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; border-radius: 6px; }

/* Logo: symbol plus wordmark, no tile (brand board D9). The pulse is white on dark and ink on light.
   Symbol height H, gap 0.3 H, wordmark cap height 0.5 H. At 32 px and below the pulse uses the small-size cut (96). */
.symbol { display: block; flex: none; width: auto; height: 30px; }
.symbol .f1 { fill: var(--orange); }
.symbol .f2 { fill: var(--orange-mid); }
.symbol .f3 { fill: var(--orange-deep); }
.symbol .pulse { fill: none; stroke: var(--pulse); stroke-width: 96; stroke-linejoin: round; stroke-linecap: round; }
.wordmark { font-family: var(--font-mark); font-weight: 700; letter-spacing: -0.01em; }

.top, main, .foot { width: min(1120px, 100%); margin-inline: auto; }

.top { display: flex; align-items: center; justify-content: space-between; padding-block: 20px; }
.brand { display: inline-flex; align-items: center; gap: 9px; font-size: 21px; line-height: 1; text-decoration: none; }
.brand:hover { color: inherit; }

.theme-toggle {
  display: inline-grid; place-items: center; width: 40px; height: 40px; padding: 0;
  border: 1px solid var(--border); border-radius: 999px; background: var(--surface); color: var(--text); cursor: pointer;
}
.theme-toggle:hover { border-color: var(--orange); color: var(--orange); }
.theme-toggle svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.theme-toggle .icon-moon { display: none; }
:root[data-theme="light"] .theme-toggle .icon-moon { display: block; }
:root[data-theme="light"] .theme-toggle .icon-sun { display: none; }

.eyebrow { color: var(--orange); font-weight: 600; font-size: 14px; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 12px; }
.lede { font-size: clamp(18px, 2.2vw, 21px); color: var(--dim); max-width: 36ch; }

.hero { display: grid; grid-template-columns: 1fr; gap: 40px; align-items: center; padding-block: 32px 56px; }
.cta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 18px; margin-top: 28px; }
.button { display: inline-flex; align-items: center; gap: 9px; background: var(--orange); color: #09090B; font-weight: 650; padding: 14px 22px; border-radius: 14px; text-decoration: none; }
a.button:hover { color: #09090B; filter: brightness(1.08); }
.button.ghost { background: transparent; color: var(--text); box-shadow: inset 0 0 0 1px var(--border); }
a.button.ghost:hover { color: var(--text); box-shadow: inset 0 0 0 1px var(--orange); filter: none; }
.button .gh { width: 18px; height: 18px; fill: currentColor; flex: none; }
.cta-note { color: var(--dim); font-size: 15px; }

/* Stage: a warm panel the screens sit on. Phones rise from the bottom edge in an orange iPhone frame. */
.stage {
  position: relative; overflow: hidden; margin: 0; min-width: 0;
  border-radius: 32px; border: 1px solid var(--stage-line);
  background:
    radial-gradient(70% 60% at 50% 0%, var(--stage-glow), transparent 70%),
    linear-gradient(180deg, var(--stage-top), var(--stage-bottom));
}
/* Height follows the phone up to 560px, so a narrow phone still meets the bottom edge. */
.stage.phone { display: grid; justify-items: center; padding-top: 48px; max-height: 560px; }
/* Proportions follow the drawn iPhone 17 Pro Max in the launch film (1320 px screen, 168 px corner, 46 px bezel). */
.device {
  --w: min(300px, 70vw);
  --metal: calc(var(--w) * 0.0135);
  --black: calc(var(--w) * 0.024);
  --r: calc(var(--w) * 0.127);
  position: relative; width: var(--w); padding: var(--metal) var(--metal) 0;
  border-radius: calc(var(--r) + var(--black) + var(--metal)) calc(var(--r) + var(--black) + var(--metal)) 0 0;
  background: linear-gradient(115deg, #FFB27A 0%, #D9621E 14%, #7A2C08 38%, #D9621E 60%, #7A2C08 82%, #FFB27A 100%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.35), 0 30px 80px -20px var(--shadow);
}
/* Side buttons: action and volume on the left, side button on the right. */
.device::before, .device::after {
  content: ""; position: absolute; width: calc(var(--metal) * 1.6); border-radius: 3px;
  background-repeat: no-repeat;
}
.device::before {
  left: calc(var(--metal) * -1.2); top: calc(var(--w) * 0.41); height: calc(var(--w) * 0.62);
  background-image: linear-gradient(90deg, #7A2C08, #FFB27A 35%, #C4561A 70%, #7A2C08), linear-gradient(90deg, #7A2C08, #FFB27A 35%, #C4561A 70%, #7A2C08), linear-gradient(90deg, #7A2C08, #FFB27A 35%, #C4561A 70%, #7A2C08);
  background-size: 100% 15%, 100% 27%, 100% 27%;
  background-position: 0 0, 0 39%, 0 100%;
}
.device::after {
  right: calc(var(--metal) * -1.2); top: calc(var(--w) * 0.66); height: calc(var(--w) * 0.24);
  background: linear-gradient(270deg, #7A2C08, #FFB27A 35%, #C4561A 70%, #7A2C08);
}
.device img, .device video {
  display: block; width: 100%; height: auto;
  border: var(--black) solid #030303; border-bottom: 0;
  border-radius: calc(var(--r) + var(--black)) calc(var(--r) + var(--black)) 0 0;
}
/* Hero: the app's latest-block card, live, with the block-found celebration (blockfound.js). */
.stage.found { display: grid; align-content: center; justify-items: center; gap: 22px; padding: 40px clamp(16px, 6%, 48px); overflow: visible; }
.bf-card {
  --flare: 0;
  position: relative; isolation: isolate; width: min(460px, 100%); padding: 22px 24px 16px;
  background: var(--card); border: 1px solid var(--card-line); border-radius: 24px;
  box-shadow: inset 0 0 0 2.5px rgba(247, 147, 26, var(--flare)), 0 0 calc(28px * var(--flare)) rgba(247, 147, 26, calc(0.7 * var(--flare))), 0 30px 70px -30px var(--shadow);
  will-change: transform;
}
.bf-card p { margin: 0; }
.bf-flare {
  --r: 80px;
  position: absolute; inset: 0; z-index: -1; border-radius: inherit; opacity: 0; pointer-events: none;
  background: radial-gradient(circle var(--r) at 56% 72%, rgba(247, 147, 26, 0.55), rgba(247, 147, 26, 0.15) 50%, transparent 100%);
}
.bf-top { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.bf-height { position: relative; padding-left: 20px; font-family: var(--font-mark); font-weight: 800; font-size: clamp(34px, 5vw, 46px); line-height: 1.1; letter-spacing: -0.01em; white-space: nowrap; }
.bf-height::before { content: ""; position: absolute; left: 0; top: 50%; width: 10px; height: 10px; margin-top: -5px; border-radius: 50%; background: var(--up); }
.bf-height span { display: inline-block; }
.bf-height .roll { animation: roll 0.8s cubic-bezier(0.34, 1.56, 0.64, 1); }
.bf-price { font-family: var(--font-mark); font-weight: 700; font-size: clamp(18px, 2.4vw, 22px); white-space: nowrap; }
.bf-since { color: var(--dim); font-size: 16px; margin-top: 4px !important; }
.bf-line { position: relative; margin: 18px 0 6px; }
.bf-line svg { display: block; width: 100%; height: 40px; overflow: visible; }
.bf-line path { fill: none; stroke: var(--orange); stroke-linecap: round; stroke-linejoin: round; }
.bf-base { stroke-width: 2.5; opacity: 0.35; }
.bf-trail { stroke-width: 3; stroke-dasharray: 0 3; }
.bf-trail-glow { stroke-width: 5; stroke-dasharray: 0 3; }
.bf-ring { fill: none; stroke: var(--orange); opacity: 0; }
.bf-label { position: absolute; right: 0; top: -14px; color: var(--orange); font-size: 13px; font-weight: 800; letter-spacing: 0.01em; opacity: 0; transform-origin: right center; }
.bf-updated { text-align: right; color: var(--dim); font-size: 12px; opacity: 0.75; }
.bf-chain { list-style: none; margin: 0; padding: 0; width: min(460px, 100%); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.bf-chain li {
  display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-rows: auto auto auto; column-gap: 10px; align-items: center;
  padding: 12px; border-radius: 16px; background: var(--card); border: 1px solid var(--card-line); min-width: 0;
  transition: transform 0.6s cubic-bezier(0.34, 1.4, 0.64, 1), opacity 0.5s ease;
}
.bf-chain li.enter { transform: translateX(-40%) scale(0.9); opacity: 0; }
.bf-cube { grid-row: 1 / 4; width: 26px; height: auto; }
.bf-cube .f1 { fill: var(--orange); } .bf-cube .f2 { fill: var(--orange-mid); } .bf-cube .f3 { fill: var(--orange-deep); }
.bf-chain b { font-weight: 650; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bf-chain .pool { color: var(--orange); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bf-chain .when { color: var(--dim); font-size: 12px; white-space: nowrap; }
@media (max-width: 559px) {
  .bf-chain { gap: 8px; }
  .bf-chain li { grid-template-columns: minmax(0, 1fr); justify-items: start; row-gap: 2px; padding: 10px 12px; }
  .bf-cube { grid-row: auto; width: 22px; margin-bottom: 6px; }
}
@media (min-width: 860px) { .stage.found { min-height: 480px; padding-block: 48px; } }
.bf-mode { margin: 0; min-height: 26px; display: inline-flex; align-items: center; gap: 8px; padding: 4px 12px; border-radius: 999px; font-size: 13px; font-weight: 600; color: var(--dim); border: 1px solid var(--card-line); background: color-mix(in srgb, var(--card) 70%, transparent); }
.bf-mode:empty { visibility: hidden; }
.bf-mode::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--up); }
.bf-fallback { display: none; margin: 0; }
.found[data-state="fallback"] { align-content: start; padding-bottom: 0; min-height: 0; max-height: 600px; overflow: hidden; }
.found[data-state="fallback"] > :not(.bf-fallback) { display: none; }
.found[data-state="fallback"] .bf-fallback { display: block; }
.bf-fallback .device { --w: min(320px, 72vw); }
.found[data-state="loading"] .bf-height span, .found[data-state="loading"] .bf-since { color: transparent; }
@keyframes roll { 0% { transform: translateY(70%); opacity: 0; } 100% { transform: none; opacity: 1; } }

/* Widgets, cut out along their own corners. */
.stage.widgets { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; padding: 36px clamp(20px, 5%, 40px); align-content: center; }
.stage.widgets img { display: block; width: 100%; height: auto; filter: drop-shadow(0 18px 30px var(--shadow)); }
.stage.widgets .w-large, .stage.widgets .w-block { grid-column: 1 / -1; }

.live { border: 1px solid var(--border); background: var(--surface); border-radius: var(--radius); padding: 24px; margin-bottom: 96px; }
.live-title { font-size: 15px; font-weight: 600; letter-spacing: 0; color: var(--dim); display: flex; align-items: center; gap: 10px; margin-bottom: 18px; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--dim); }
.live[data-state="ok"] .dot { background: var(--up); animation: beat 2.4s infinite; }
.live[data-state="stale"] .dot { background: var(--orange); }
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin: 0; }
.stats div { min-width: 0; }
.stats dt { color: var(--dim); font-size: 14px; }
.stats dd { margin: 4px 0 0; font-size: clamp(24px, 4vw, 34px); font-weight: 650; color: var(--orange); letter-spacing: -0.02em; white-space: nowrap; }
.stats small { font-size: 14px; color: var(--dim); font-weight: 500; letter-spacing: 0; }
.live-note { color: var(--dim); font-size: 13px; margin: 18px 0 0; }
.live-note:empty { display: none; }
.live.bump .stats dd[data-k="height"] { animation: pop 0.9s ease-out; }

.feature { display: grid; gap: 40px; align-items: center; margin-bottom: 104px; }
.feature-copy { min-width: 0; }
.feature-copy p { color: var(--dim); max-width: 46ch; }
.points { list-style: none; padding: 0; margin: 8px 0 0; display: grid; gap: 12px; max-width: 46ch; }
.points li { color: var(--dim); padding-left: 22px; position: relative; }
.points li::before { content: ""; position: absolute; left: 0; top: 0.55em; width: 10px; height: 10px; border-radius: 3px; background: var(--orange); }
.points strong { color: var(--text); font-weight: 600; }

/* Open source and data: two warm panels to close the page. */
.open { display: grid; gap: 18px; margin-bottom: 96px; }
.open .panel {
  display: grid; gap: 14px; align-content: start; justify-items: start; padding: clamp(24px, 4vw, 36px);
  border-radius: 28px; border: 1px solid var(--stage-line); background: linear-gradient(180deg, var(--stage-top), var(--stage-bottom));
}
.open .panel h2, .open .panel p { margin: 0; }
.open .panel .eyebrow { margin: 0; }
.open .panel p:not(.eyebrow) { color: var(--dim); max-width: 46ch; }
.open .panel .button { margin-top: 6px; }

.foot { border-top: 1px solid var(--border); padding-block: 32px 48px; color: var(--dim); font-size: 15px; }
.foot .brand { color: var(--text); margin-bottom: 14px; gap: 7px; font-size: 17px; }
.foot .symbol { height: 24px; }
.foot a { color: var(--text); }
.foot .fine { font-size: 13px; margin: 0; }

.notfound { padding-block: 120px; text-align: center; }
.notfound p { color: var(--dim); }

@media (max-width: 859px) { .hide-sm { display: none; } }
@media (min-width: 860px) {
  .hero { grid-template-columns: 1fr 1fr; gap: 64px; padding-block: 48px 80px; }
  .stats { grid-template-columns: repeat(4, 1fr); }
  .live { padding: 28px 32px; }
  .feature { grid-template-columns: 1fr 1fr; gap: 64px; }
  .feature.flip .feature-copy { order: 2; }
  .open { grid-template-columns: 1fr 1fr; }
  .feature.wide { grid-template-columns: 0.8fr 1.2fr; }
  .feature.wide.flip { grid-template-columns: 1.2fr 0.8fr; }
  .stage.widgets { grid-template-columns: 1.05fr 0.5fr 0.5fr; grid-template-rows: auto auto; padding: 48px; gap: 18px; }
  .stage.widgets .w-large { grid-column: 1; grid-row: 1 / 3; align-self: center; }
  .stage.widgets .w-price { grid-column: 2; grid-row: 1; align-self: end; }
  .stage.widgets .w-fees { grid-column: 3; grid-row: 1; align-self: end; }
  .stage.widgets .w-block { grid-column: 2 / 4; grid-row: 2; align-self: start; }
}

@keyframes beat {
  0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--up) 60%, transparent); }
  70% { box-shadow: 0 0 0 9px transparent; }
  100% { box-shadow: 0 0 0 0 transparent; }
}
@keyframes pop { 0% { color: var(--text); } 100% { color: var(--orange); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; }
}

/* Legal pages (privacy): one readable column. */
.legal { max-width: 720px; padding-block: 56px 72px; }
.legal h1 { font-size: clamp(34px, 5vw, 48px); }
.legal h2 { font-size: 22px; letter-spacing: -0.01em; margin-top: 36px; }
.legal .updated, .legal .lede { color: var(--dim); }
.legal ul { padding-left: 22px; margin: 0 0 14px; }
.legal li { margin-bottom: 6px; }
.foot .fine + .fine { margin-top: 6px; }
