/* Home (V5, founder-approved 2026-10-07). Uses ui.css for the top bar and buttons. One idea per section. */
@font-face { font-family: "Bricolage Grotesque"; src: url("/fonts/BricolageGrotesque-300-800-normal.woff2") format("woff2"); font-weight: 300 800; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url("/fonts/jetbrains-mono-500-latin.woff2") format("woff2"); font-weight: 500; font-display: swap; }
body.home { --ink: #0b0b10; --s1h: #14131b; --s2h: #1c1b24; --lh: #272630; --paper: #f5f3ee; --mh: #9a98a6; --vio: #6b4dff; --lime: #c6ff3d; --sky: #3cd3ff;
  --dsp: "Bricolage Grotesque", ui-sans-serif, -apple-system, "Segoe UI", sans-serif; --mn: "JetBrains Mono", ui-monospace, Menlo, monospace;
  background: var(--ink); color: var(--paper); font-family: var(--dsp); }
.home .ui-top { background: #0b0b10; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
main { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.center { text-align: center; }
.small { font-size: 14px; }

/* Shared section rhythm: centred title, one line, one visual. */
.sec { padding-top: 96px; }
.hd { text-align: center; max-width: 720px; margin: 0 auto 34px; }
.hd h2 { margin: 0; font-weight: 800; font-size: clamp(30px, 4vw, 48px); letter-spacing: -.03em; line-height: 1.05; text-wrap: balance; }
.hd p { margin: 12px auto 0; color: var(--mh); font-size: 18px; max-width: 52ch; }
.eyebrow { display: inline-block; font: 500 12px var(--mn); letter-spacing: .08em; text-transform: uppercase; color: var(--acc); margin-bottom: 12px; }
.b1 { display: inline-block; background: var(--acc); color: var(--ink); font-weight: 800; font-size: 17px; padding: 16px 26px; border-radius: 999px; box-shadow: 0 10px 30px -10px rgba(247, 147, 26, .65); transition: transform .15s; }
.b1:hover { transform: translateY(-2px); }
.b2 { display: inline-block; border: 1px solid var(--lh); font-weight: 700; font-size: 17px; padding: 15px 24px; border-radius: 999px; }

/* Hero */
.hero { padding-top: 56px; text-align: center; }
.pill { display: inline-flex; align-items: center; gap: 8px; font: 500 12.5px var(--mn); border: 1px solid var(--lh); background: var(--s1h); border-radius: 999px; padding: 6px 12px; color: #d9d7e2; }
.pill i { width: 7px; height: 7px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 10px var(--lime); }
.hero h1 { margin: 22px auto 18px; max-width: 15ch; font-weight: 800; font-size: clamp(42px, 7vw, 88px); line-height: .96; letter-spacing: -.045em; text-wrap: balance; }
.hero h1 span { color: var(--acc); }
.lead { margin: 0 auto; max-width: 34ch; color: #d4d2dc; font-size: clamp(18px, 2.2vw, 22px); }
.cta { margin-top: 30px; display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; }
.fine { margin: 14px 0 0; color: var(--mh); font-size: 14px; }
.eth { margin: 6px 0 0; font: 500 12.5px var(--mn); color: #77758a; }
.shot { position: relative; margin: 56px auto 0; max-width: 920px; }
.shot::before { content: ""; position: absolute; inset: -12% 0 -4%; background: radial-gradient(50% 55% at 50% 45%, rgba(247, 147, 26, .33), transparent 70%); filter: blur(10px); z-index: 0; pointer-events: none; }
.br { position: relative; z-index: 1; background: #111018; border: 1px solid var(--lh); border-radius: 18px; overflow: hidden; box-shadow: 0 40px 80px -30px #000; text-align: left; }
.bar { display: flex; align-items: center; gap: 10px; padding: 11px 14px; background: #1a1922; border-bottom: 1px solid var(--lh); }
.dots { display: flex; gap: 6px; }
.dots i { width: 11px; height: 11px; border-radius: 50%; background: #ff5f57; }
.dots i + i { background: #febc2e; }
.dots i + i + i { background: #28c840; }
.dots.ghost { visibility: hidden; }
.url { flex: 1; max-width: 480px; margin: 0 auto; display: flex; align-items: center; gap: 8px; background: #0d0c13; border-radius: 999px; padding: 4px 4px 4px 16px; border: 1px solid rgba(247, 147, 26, .4); box-shadow: 0 0 0 4px rgba(247, 147, 26, .08); }
.url input { flex: 1; min-width: 0; border: 0; background: transparent; color: #e9e7f2; font: 500 14px var(--mn); text-align: center; outline: none; }
.url input::placeholder { color: #e9e7f2; }
.url button { border: 0; border-radius: 999px; background: var(--acc); color: var(--ink); font: 700 13px var(--dsp); padding: 6px 14px; cursor: pointer; }
.url:focus-within { border-color: var(--acc); }
.view { position: relative; height: 440px; background: #0c0f0a; }
.view iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.tryname { position: relative; z-index: 1; margin: 16px 0 0; color: #cfcdd8; font-size: 15px; }
.tryname b { color: var(--acc); }
.status { position: relative; z-index: 1; margin: 8px 0 0; min-height: 1em; color: var(--mh); font-size: 14px; }
.status.bad { color: var(--bad); }
.result { position: relative; z-index: 1; margin: 12px auto 0; max-width: 560px; display: grid; gap: 6px; text-align: left; background: var(--s1h); border-color: var(--lh); }
.result-kicker { font: 600 12px var(--mn); color: var(--mh); text-transform: uppercase; letter-spacing: .08em; }
.result h2 { margin: 0; font-size: 22px; overflow-wrap: anywhere; }
.result p { margin: 0; }
.result-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 8px; }

/* One name, three things */
.do { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.d { background: var(--s1h); border: 1px solid var(--lh); border-radius: 22px; padding: 26px; display: flex; flex-direction: column; gap: 8px; }
.d .v { display: flex; align-items: center; gap: 6px; height: 20px; font: 500 12px var(--mn); letter-spacing: .08em; text-transform: uppercase; }
.d h3 { margin: 0; font-size: 24px; letter-spacing: -.02em; }
.d p { margin: 0; color: #bdbbc8; }
.d a { margin-top: auto; padding-top: 10px; font-weight: 700; }
.d.o .v, .d.o a { color: var(--sky); }
.d.p .v, .d.p a { color: var(--acc); }
.d.r .v, .d.r a { color: var(--lime); }
.beta { font: 500 11px/1 var(--mn); color: var(--ink); background: var(--lime); border-radius: 6px; padding: 3px 6px; }

/* Live sites carousel */
.rail { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent); mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent); }
.track { display: flex; gap: 16px; width: max-content; animation: slide 70s linear infinite; }
.rail:hover .track, .rail:focus-within .track { animation-play-state: paused; }
@keyframes slide { to { transform: translateX(-50%); } }
.site { display: block; width: 300px; border-radius: 18px; overflow: hidden; background: var(--s1h); border: 1px solid var(--lh); flex: none; }
.site img, .site .text-art { display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; }
.site .text-art { display: grid; place-items: center; background: linear-gradient(135deg, #2a2933, #14131b); font: 600 16px var(--mn); color: #cfcdd8; }
.site .dn { display: block; padding: 12px 16px; text-align: center; font: 500 14px var(--mn); color: #e9e7f2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#sites .center { margin-top: 18px; }

/* Why Bitcoin */
.three { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.why { background: var(--s1h); border: 1px solid var(--lh); border-radius: 22px; padding: 26px; }
.why .big { display: block; font-weight: 800; font-size: 44px; letter-spacing: -.03em; line-height: 1; }
.why h3 { margin: 14px 0 6px; font-size: 19px; }
.why p { margin: 0; color: #bdbbc8; font-size: 15.5px; }
.why.w1 .big { color: var(--acc); }
.why.w2 .big { color: var(--sky); }
.why.w3 .big { color: var(--lime); }

/* Templates */
.tabs { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; margin: -10px 0 26px; }
.tabs button { border: 1px solid var(--lh); background: var(--s1h); color: #cfcdd8; border-radius: 999px; padding: 9px 18px; font: 700 15px var(--dsp); cursor: pointer; }
.tabs button span { font: 500 12px var(--mn); color: var(--mh); margin-left: 4px; }
.tabs button[aria-pressed="true"] { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.tabs button[aria-pressed="true"] span { color: #55545f; }
/* One row of full-size cards that scrolls sideways: no ragged last row, whatever the family size. */
.galwrap { position: relative; }
.gal { display: flex; gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding: 0 4px; padding: 4px 4px 14px; scrollbar-width: none; }
.gal::-webkit-scrollbar { display: none; }
.tc { display: grid; gap: 12px; flex: 0 0 236px; scroll-snap-align: start; }
.tc[hidden] { display: none; }
.tc .ph { display: block; position: relative; border-radius: 22px; border: 5px solid #1f1e27; overflow: hidden; aspect-ratio: 3 / 4; background: var(--s1h); transition: transform .2s, border-color .2s; }
.tc:hover .ph { transform: translateY(-4px); border-color: #34333f; }
.tc .ph iframe { position: absolute; top: 0; left: 0; width: 390px; height: 520px; border: 0; transform-origin: 0 0; pointer-events: none; }
.tc b { text-align: center; font-size: 15px; }
.gnav { position: absolute; top: calc(50% - 40px); width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--lh); background: rgba(20, 19, 27, .92); color: var(--paper); font-size: 20px; line-height: 1; cursor: pointer; z-index: 2; }
.gnav.prev { left: -14px; } .gnav.next { right: -14px; }
.gnav[disabled] { opacity: 0; pointer-events: none; }
@media (max-width: 760px) { .tc { flex-basis: 72%; } .gnav { display: none; } }

/* Try with your name */
.try { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 40px; align-items: center; background: var(--vio); border-radius: 32px; padding: clamp(28px, 5vw, 56px); }
.try h2 { margin: 0; font-weight: 800; font-size: clamp(30px, 4vw, 46px); letter-spacing: -.03em; line-height: 1.05; }
.try p { color: #e6e0ff; font-size: 17px; margin: 12px 0 0; max-width: 42ch; }
.try label { display: block; font: 500 12px var(--mn); text-transform: uppercase; letter-spacing: .06em; margin: 18px 0 6px; color: #e6e0ff; }
.try .in { display: block; width: 100%; max-width: 420px; border: 0; border-radius: 14px; padding: 14px 16px; min-height: 0; font: 600 17px var(--dsp); color: var(--ink); background: #fff; }
.try .in:focus-visible { outline: 3px solid var(--lime); outline-offset: 2px; }
.try .b1 { margin-top: 24px; background: var(--lime); box-shadow: none; }
.phone { width: 100%; max-width: 330px; aspect-ratio: 330 / 600; border-radius: 34px; border: 8px solid var(--ink); overflow: hidden; justify-self: center; box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .55); background: #0b0a24; }
.phone iframe { width: 100%; height: 100%; border: 0; }

/* One year of a website */
.bars { display: grid; gap: 16px; background: var(--s1h); border: 1px solid var(--lh); border-radius: 24px; padding: 28px; }
.row { display: grid; grid-template-columns: 220px minmax(0, 1fr) 160px; gap: 18px; align-items: center; }
.lbl { font-weight: 700; }
.lbl small { display: block; font-weight: 500; font-size: 13px; color: var(--mh); }
.trk { height: 14px; border-radius: 999px; background: var(--s2h); overflow: hidden; }
.trk i { display: block; height: 100%; min-width: 6px; border-radius: 999px; background: #5b5a68; }
.trk .w100 { width: 100%; } .trk .w38 { width: 38%; } .trk .w24 { width: 24%; } .trk .w5 { width: 5%; }
.row b { text-align: right; font-size: 17px; font-variant-numeric: tabular-nums; }
.row.us .trk i { background: var(--acc); }
.row.us b { color: var(--acc); font-size: 22px; }
.punch { text-align: center; margin: 26px auto 0; font-weight: 800; font-size: clamp(22px, 2.8vw, 30px); letter-spacing: -.02em; max-width: 26ch; }

/* Questions */
.qs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-bottom: 18px; }
.q { background: var(--s1h); border: 1px solid var(--lh); border-radius: 20px; padding: 22px; }
.q h3 { margin: 0 0 8px; font-size: 17.5px; }
.q p { margin: 0; color: #bdbbc8; font-size: 15px; }

/* End */
.end { margin: 110px 0 56px; text-align: center; border-radius: 36px; padding: clamp(48px, 8vw, 96px) 24px; background: radial-gradient(70% 120% at 50% 0%, #f7931a, #c96a00); }
.end h2 { margin: 0; color: var(--ink); font-weight: 800; font-size: clamp(44px, 8vw, 104px); letter-spacing: -.05em; line-height: .92; }
.end p { margin: 16px auto 0; color: #2b1a05; font-weight: 600; font-size: 18px; max-width: 40ch; }
.end .b1 { margin-top: 28px; background: var(--ink); color: var(--paper); box-shadow: none; }

@media (max-width: 860px) {
  .do, .three, .qs { grid-template-columns: minmax(0, 1fr); }
  .try { grid-template-columns: minmax(0, 1fr); }
  .view { height: 380px; }
  .sec { padding-top: 72px; }
}
@media (max-width: 760px) {
  main { padding: 0 16px; }
  .row { grid-template-columns: minmax(0, 1fr) auto; }
  .trk { grid-column: 1 / -1; grid-row: 2; }
  .site { width: 250px; }
  .dots.ghost { display: none; }
  .bar { padding: 9px 10px; }
}
@media (prefers-reduced-motion: reduce) { .track { animation: none; } .rail { overflow-x: auto; } }

.url { min-height: 44px; }
.url #name, .url button { min-height: 44px; }
.tc b { font: 600 14px/1 var(--f); color: var(--t); text-align: center; margin-top: 8px; }
.tryname { text-wrap: pretty; max-width: 28ch; margin-inline: auto; }
.tabs button { min-height: 44px; }
.trk .w5 { min-width: 8px; }
.why p { min-height: 4.8em; }
@media (max-width: 760px) { .row .lbl { grid-column: 1 / -1; } .row b { grid-column: 2; grid-row: 2; } .row .trk { grid-column: 1; grid-row: 2; } }

/* Launch mode: "soon" copy shows until /api/config says publishing (or receive) is open. */
.when-open, .when-recv { display: none; }
body.pub-open .when-open { display: inline; }
body.pub-open .when-soon { display: none; }
body.recv-open .when-recv { display: inline; }
body.recv-open .rs { display: none; }
.soon { font: 500 11px/1 var(--mn); color: var(--ink); background: var(--acc); border-radius: 6px; padding: 3px 6px; letter-spacing: .02em; text-transform: none; }
.notify { margin: 30px auto 0; max-width: 460px; display: grid; gap: 8px; text-align: left; }
.notify label { font-weight: 700; color: #2b1a05; }
.nrow { display: flex; gap: 8px; }
.notify .in { flex: 1; min-width: 0; min-height: 48px; border: 0; border-radius: 999px; padding: 0 18px; background: #fff; color: var(--ink); font: 600 15px var(--dsp); }
.notify button { min-height: 48px; border: 0; border-radius: 999px; padding: 0 20px; background: var(--ink); color: var(--paper); font: 700 15px var(--dsp); cursor: pointer; }
.notify button[disabled] { opacity: .6; cursor: progress; }
.nmsg { margin: 0; min-height: 1.2em; color: #2b1a05; font-weight: 600; font-size: 14px; }
.nmsg.bad { color: #6e0f00; }
@media (max-width: 480px) { .nrow { flex-direction: column; } }

/* Languages */
.langhint { position: fixed; z-index: 50; left: 50%; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); display: flex; align-items: center; gap: 12px; padding: 10px 10px 10px 18px; border-radius: 999px; background: var(--paper); color: var(--ink); box-shadow: 0 20px 40px -10px rgba(0, 0, 0, .6); font-weight: 600; font-size: 14px; max-width: calc(100vw - 32px); }
.langhint a { background: var(--ink); color: var(--paper); border-radius: 999px; padding: 8px 14px; white-space: nowrap; }
.langhint button { border: 0; background: none; font-size: 20px; line-height: 1; width: 32px; height: 32px; cursor: pointer; color: var(--ink); }
.why .casey { color: var(--paper); border-bottom: 1px solid var(--lime); }
.why .casey:hover { color: var(--lime); }
/* Chinese and Japanese headlines: break at the comma, not mid-word. */
:lang(zh) .hero h1, :lang(ja) .hero h1 { max-width: none; font-size: clamp(34px, 6.4vw, 80px); line-height: 1.12; letter-spacing: -.02em; }
:lang(zh) .hero h1 span, :lang(ja) .hero h1 span { display: block; }
:lang(ja) .hero h1 { word-break: auto-phrase; font-size: clamp(28px, 6vw, 72px); }
