/* App pages, in the landing's visual language: warm paper, black ink, Instrument Serif headlines,
   Geist Mono text, hairline frames with corner marks, black buttons. The logo blue is the one accent. */
@font-face { font-family: "Instrument Serif"; font-style: normal; font-weight: 400; font-display: swap; src: url("/fonts/instrument-serif.woff2") format("woff2"); }
@font-face { font-family: "Instrument Serif"; font-style: italic; font-weight: 400; font-display: swap; src: url("/fonts/instrument-serif-italic.woff2") format("woff2"); }
@font-face { font-family: "Geist Mono"; font-weight: 400; font-display: swap; src: url("/fonts/geist-mono-400.woff2") format("woff2"); }
@font-face { font-family: "Geist Mono"; font-weight: 500; font-display: swap; src: url("/fonts/geist-mono-500.woff2") format("woff2"); }
@font-face { font-family: "Geist Mono"; font-weight: 600; font-display: swap; src: url("/fonts/geist-mono-600.woff2") format("woff2"); }

:root {
  /* the palette: deep and bright greens, lime highlight, terracotta pot, sand */
  --bg: #f6f1e4; --paper: #fffcf3; --ink: #0e3a24; --text: #16301f; --muted: #5f6d5c; --line: rgba(14, 58, 36, .12); --line2: rgba(14, 58, 36, .26);
  --lime: #0b8a4b; --lime2: #007a3d;          /* brand green (names kept so page markup stays the same) */
  --hi: #c2f520;                              /* lime highlight */
  --yes: #0a7f45; --yes-bg: rgba(10, 127, 69, .08); --no: #c0522a; --no-bg: rgba(192, 82, 42, .08);
  --accent: #0b8a4b; --warn: #a45a14; --panel: var(--paper); --panel-solid: var(--paper);
  --serif: "Instrument Serif", Georgia, "Times New Roman", serif;
  --mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}
* { box-sizing: border-box; }
html { background: var(--bg); }
body { margin: 0; min-height: 100vh; color: var(--text); background: var(--bg); font: 14px/1.6 var(--mono); -webkit-font-smoothing: antialiased; }
main, footer, header { position: relative; z-index: 1; }
a { color: inherit; }
.mono { font-family: var(--mono); font-size: .92em; }
.muted { color: var(--muted); }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 40px; }

/* ---- shell: fixed sidebar on desktop; top bar + bottom tabs on phones ---- */
body { padding-left: 252px; }
.sidebar { position: fixed; inset: 0 auto 0 0; width: 252px; z-index: 30; display: flex; flex-direction: column; gap: 22px; padding: 26px 18px 20px;
  background: var(--paper); border-right: 1px solid var(--line); overflow-y: auto; }
.brand { display: flex; align-items: center; gap: 9px; text-decoration: none; font: 600 22px var(--mono); letter-spacing: -.02em; color: var(--ink); padding: 0 8px; }
.brand img, .brand svg { width: 32px; height: 32px; object-fit: contain; }
.side-nav { display: grid; gap: 3px; }
.side-link { display: flex; align-items: center; gap: 12px; padding: 11px 12px; text-decoration: none; color: var(--muted); font-size: 14px; border: 1px solid transparent; transition: color .2s, background .2s, border-color .2s; }
.side-link svg { flex: none; }
.side-link:hover { color: var(--ink); background: rgba(14, 58, 36, .05); }
.side-link.on { color: var(--ink); background: var(--hi); border-color: rgba(14, 58, 36, .18); font-weight: 600; }
.side-foot { margin-top: auto; display: grid; gap: 12px; }
.side-ca { border: 1px solid var(--line); background: var(--bg); padding: 12px; display: grid; gap: 6px; font-size: 11px; }
.side-ca .muted { text-transform: uppercase; letter-spacing: .08em; }
.side-ca code { color: var(--lime2); font-size: 14px; }
.side-ca-btns { display: flex; gap: 6px; }
.cabtn { padding: 6px 9px; font-size: 11px; flex: 1; }
.wallet { font: 500 14px var(--mono); background: var(--lime); color: #fff; border: 1px solid var(--lime); padding: 13px 16px; cursor: pointer; width: 100%; }
.wallet:hover { background: var(--ink); border-color: var(--ink); }
.wallet.on { background: var(--paper); color: var(--ink); border-color: var(--line2); }
.navx { display: grid; place-items: center; width: 40px; height: 40px; border: 1px solid var(--line2); color: var(--ink); background: var(--paper); }
.navx:hover { border-color: var(--ink); }
.mtop, .tabbar { display: none; }

/* ---- buttons ---- */
button, .btn {
  font: 500 13px var(--mono); cursor: pointer; text-decoration: none; letter-spacing: 0;
  border: 1px solid var(--line2); background: var(--paper); color: var(--ink); padding: 13px 20px; border-radius: 0;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; transition: border-color .25s, background .25s, color .25s;
}
button:hover, .btn:hover { border-color: var(--ink); }
button:disabled { opacity: .45; cursor: default; }
.btn-primary { background: var(--lime); border-color: var(--lime); color: #fff; }
.btn-primary:hover { background: var(--ink); border-color: var(--ink); color: #fff; }
.btn::after, .btn-primary.arrow::after { content: "↗"; font-size: 13px; }
.more { display: inline-flex; align-items: center; gap: 16px; text-decoration: none; font-size: 14px; }
.more .box { width: 50px; height: 50px; border: 1px solid var(--line2); display: grid; place-items: center; background: var(--paper); }
.more .box svg * { stroke: var(--ink) !important; stroke-opacity: .8; }
.more > span:last-child::before { content: "•"; margin-right: 8px; }

/* ---- hero ---- */
.hero { padding: 48px 0 22px; }
.tag { display: inline-block; background: var(--hi); color: var(--ink); font: 500 11px var(--mono); padding: 4px 8px; letter-spacing: .04em; text-transform: uppercase; margin-bottom: 20px; }
.hero h1, h1.big { font: 400 clamp(44px, 5.4vw, 84px)/.95 var(--serif); letter-spacing: -.02em; margin: 0 0 20px; color: var(--ink); }
.hero h1 em { font-style: italic; color: var(--lime); }
.hero p { color: var(--muted); font-size: 15px; max-width: 560px; margin: 0 0 30px; }
.hero .actions { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.stats { display: flex; flex-wrap: wrap; margin: 44px 0 0; border-top: 1px solid var(--line); }
.stat { padding: 18px 44px 0 0; min-width: 170px; }
.stat span { display: block; color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: .1em; margin-bottom: 2px; }
.stat b { font: 400 40px/1.1 var(--serif); color: var(--ink); }
h2 { font: 500 11px var(--mono); text-transform: uppercase; letter-spacing: .14em; margin: 56px 0 18px; color: var(--muted); display: flex; align-items: center; gap: 14px; }
h2::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.card h2 { margin-top: 28px; }

/* ---- cards: paper panels with the landing's corner marks ---- */
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.card { position: relative; background: var(--paper); border: 1px solid var(--line); padding: 24px; }
.card::before, .card::after { content: ""; position: absolute; width: 11px; height: 11px; pointer-events: none;
  background: linear-gradient(var(--line2), var(--line2)) center / 1px 100% no-repeat, linear-gradient(var(--line2), var(--line2)) center / 100% 1px no-repeat; }
.card::before { top: -6px; left: -6px; } .card::after { bottom: -6px; right: -6px; }
.coinhead { display: flex; gap: 14px; align-items: center; text-decoration: none; }
.coinhead img { width: 48px; height: 48px; object-fit: cover; background: var(--bg); flex: none; border: 1px solid var(--line); }
.coinhead .sym { font: 400 28px/1 var(--serif); color: var(--ink); }
.coinhead .mc { margin-left: auto; text-align: right; white-space: nowrap; }
.coinhead .mc b { display: block; font: 400 26px/1.1 var(--serif); color: var(--ink); }

.market { border-top: 1px solid var(--line); margin-top: 18px; padding-top: 16px; }
.market .q { font: 400 21px/1.2 var(--serif); margin-bottom: 8px; color: var(--ink); }
.market .meta { display: flex; gap: 14px; font-size: 12px; color: var(--muted); margin-bottom: 11px; flex-wrap: wrap; }
.bar { height: 2px; background: var(--line); overflow: hidden; margin-bottom: 12px; }
.bar i { display: block; height: 100%; background: var(--lime); }
.bar { background: rgba(192, 82, 42, .15) !important; }
.sides { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.side { padding: 12px 14px; border: 1px solid var(--line2); font: 500 13px var(--mono); text-transform: uppercase; letter-spacing: .04em; display: flex; justify-content: space-between; align-items: center; background: var(--paper); }
.side.yes { color: var(--yes); background: var(--yes-bg); border-color: rgba(10, 127, 69, .32); }
.side.no { color: var(--no); background: var(--no-bg); border-color: rgba(192, 82, 42, .32); }
button.side:hover { filter: none; border-color: currentColor; }
.side.sel.yes { border-color: var(--yes); box-shadow: inset 0 0 0 1px var(--yes); } .side.sel.no { border-color: var(--no); box-shadow: inset 0 0 0 1px var(--no); }
.side.closed { opacity: .4; cursor: default; }
.side small { font-size: 14px; letter-spacing: 0; color: var(--ink); }

.pill { display: inline-block; padding: 3px 7px; font: 500 10.5px var(--mono); letter-spacing: .05em; text-transform: uppercase; border: 1px solid var(--line2); }
.pill.yes, .pill.won { color: #fff; background: var(--yes); border-color: var(--yes); }
.pill.no, .pill.lost { color: var(--no); border-color: var(--no); }
.pill.void, .pill.open { color: var(--warn); border-color: rgba(154, 98, 0, .45); }

.betbox { margin-top: 12px; background: var(--bg); border: 1px solid var(--line); padding: 14px; display: none; }
.betbox.show { display: block; animation: rise .35s ease; }
@keyframes rise { from { opacity: 0; transform: translateY(6px); } }
.betbox .row { display: flex; gap: 8px; }
input, textarea { font: 14px var(--mono); color: var(--ink); background: var(--paper); border: 1px solid var(--line2); border-radius: 0; padding: 13px 14px; width: 100%; transition: border-color .25s; }
input:focus, textarea:focus { outline: none; border-color: var(--lime); box-shadow: 0 0 0 3px rgba(194, 245, 32, .35); }
input::placeholder, textarea::placeholder { color: #a3a3a0; }
.chips { display: flex; gap: 6px; margin: 10px 0; flex-wrap: wrap; }
.chips button { padding: 6px 11px; font-size: 12px; }
.payout { display: flex; justify-content: space-between; margin: 10px 0 4px; font-size: 13px; }
.payout b { color: var(--yes); font-weight: 600; }
.status { white-space: pre-wrap; font-size: 13px; color: var(--muted); margin-top: 10px; }
.status.err { color: var(--no); } .status.ok { color: var(--yes); }

form.launch { display: grid; gap: 18px; max-width: 700px; }
form.launch label { display: grid; gap: 8px; font: 500 11px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
form.launch .two { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.note { background: var(--paper); border: 1px solid var(--line); border-left: 3px solid var(--no); padding: 16px 18px; color: var(--muted); font-size: 13px; line-height: 1.8; }
.note b { color: var(--ink); font-weight: 600; }

table { width: 100%; border-collapse: collapse; font-size: 13px; }
th, td { text-align: left; padding: 12px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { color: var(--muted); font-weight: 500; font-size: 10.5px; text-transform: uppercase; letter-spacing: .1em; }
tr:last-child td { border-bottom: 0; }
.tablewrap { overflow-x: auto; }

.tokenhead { display: flex; gap: 18px; align-items: center; margin: 44px 0 10px; flex-wrap: wrap; }
.tokenhead img { width: 72px; height: 72px; object-fit: cover; background: var(--paper); border: 1px solid var(--line); }
.tokenhead h1 { margin: 0; font: 400 60px/1 var(--serif); color: var(--ink); }
.tokenhead h1 .muted { font: 400 16px var(--mono) !important; }
.chart { width: 100%; height: 160px; display: block; margin-top: 12px; }
.two-col { display: grid; grid-template-columns: 1.35fr 1fr; gap: 20px; align-items: start; }
.empty { color: var(--muted); padding: 44px; text-align: center; border: 1px dashed var(--line2); background: var(--paper); }
.prose h2 { margin-top: 34px; } .prose p { color: #3a3a38; line-height: 1.8; } .prose b { color: var(--ink); font-weight: 600; }
footer { color: var(--muted); font-size: 12px; padding: 56px 0 44px; margin-top: 90px; border-top: 1px solid var(--line); }
footer .wrap { display: flex; gap: 30px; justify-content: space-between; flex-wrap: wrap; align-items: flex-end; }
footer .legal { max-width: 560px; line-height: 1.7; }
footer a { color: var(--ink); text-decoration: none; }

/* creator tax picker */
.taxes { display: flex; gap: 6px; flex-wrap: wrap; align-items: stretch; }
.taxes button { padding: 12px 16px; min-width: 58px; }
.taxes button.on { background: var(--lime); border-color: var(--lime); color: #fff; }
.taxes input { width: 110px; padding: 11px 12px; }

/* coins launched only for testing / demo recording */
.pill.test { color: var(--warn); border-color: rgba(164, 90, 20, .45); background: rgba(164, 90, 20, .07); vertical-align: middle; font-size: 10px; }
.tokenhead h1 .pill.test { font-size: 11px; }
.testnote { margin: 14px 0 6px; padding: 12px 16px; border: 1px solid rgba(154, 98, 0, .35); background: rgba(154, 98, 0, .05); color: #3a3a38; font-size: 13px; }
.testnote b { color: var(--ink); font-weight: 600; }



/* phones: open-in-wallet sheet */
.wsheet { position: fixed; inset: 0; z-index: 200; background: rgba(20, 20, 18, .45); backdrop-filter: blur(4px); display: flex; align-items: flex-end; justify-content: center; animation: rise .25s ease; }
.wsheet-box { position: relative; width: 100%; max-width: 480px; background: var(--paper); border: 1px solid var(--line2); padding: 26px 20px calc(22px + env(safe-area-inset-bottom)); }
.wsheet-box p { color: #3a3a38; font-size: 13px; margin: 0 0 16px; }
.wsheet-app { width: 100%; margin-bottom: 8px; }
.wsheet-app::after { content: "↗"; }
.wsheet-copy { width: 100%; margin: 6px 0 14px; border-style: dashed; }
.wsheet-x { position: absolute; top: 10px; right: 10px; width: 36px; height: 36px; padding: 0; font-size: 22px; border: 0; background: none; }
@media (min-width: 861px) { .wsheet { align-items: center; } }

@media (max-width: 860px) {
  body { padding-left: 0; padding-bottom: 74px; }
  .sidebar { display: none; }
  .mtop { display: flex; align-items: center; gap: 10px; position: sticky; top: 0; z-index: 30; padding: 10px 16px; background: rgba(246, 241, 228, .94); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
  .mtop .brand { padding: 0; font-size: 20px; margin-right: auto; }
  .mtop .wallet { width: auto; padding: 10px 14px; font-size: 13px; }
  .tabbar { display: grid; grid-template-columns: repeat(6, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; background: var(--paper); border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom); }
  .tab { display: grid; justify-items: center; gap: 3px; padding: 9px 2px 8px; text-decoration: none; color: var(--muted); font-size: 10px; text-align: center; }
  .tab.on { color: var(--ink); background: var(--hi); font-weight: 600; }
  .tab span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
  .wrap { padding: 0 20px; }
  .two-col, .grid { grid-template-columns: 1fr; }
  form.launch .two { grid-template-columns: 1fr; }
  .stat { padding-right: 26px; min-width: 130px; }
  .stat b { font-size: 32px; }
  .two-col { display: flex; flex-direction: column; }
  .two-col > #mk { order: 1; }
  .two-col > div:first-child { display: contents; }
  .two-col > div:first-child > .card:first-child { order: 0; }
  .two-col > div:first-child > h2, .two-col > div:first-child > .tablewrap { order: 2; }
  .two-col > div:first-child > .tablewrap { width: 100%; }
  .hero h1, h1.big { font-size: clamp(44px, 13vw, 64px); }
  .tokenhead h1 { font-size: 44px; }
  .tokenhead > div:last-child { margin-left: 0 !important; }
  input, textarea { font-size: 16px; }
  .sides .side { padding: 14px 12px; }
  table { font-size: 12px; } th, td { padding: 10px 6px; }
}
@media (max-width: 380px) { .tab { font-size: 9px; } }

::selection { background: var(--hi); color: var(--ink); }
.stat b, .coinhead .mc b { color: var(--ink); }

/* ---- home + markets blocks ---- */
.statrow { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 26px 0 0; }
.statbox { background: var(--paper); border: 1px solid var(--line); padding: 16px 18px; }
.statbox span { display: block; color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: .1em; }
.statbox b { font: 400 34px/1.15 var(--serif); color: var(--ink); }
.toolbar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin: 0 0 16px; }
.toolbar input { max-width: 300px; padding: 11px 13px; }
.seg { display: inline-flex; border: 1px solid var(--line2); background: var(--paper); }
.seg button { border: 0; background: none; padding: 11px 14px; font-size: 12px; color: var(--muted); }
.seg button.on { background: var(--ink); color: #fff; }
.split { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 28px; align-items: center; }
.split > * { min-width: 0; }
#featured > img { width: 100%; height: auto; display: block; border: 1px solid var(--line); }
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
main { min-width: 0; overflow-x: clip; }
.step { background: var(--paper); border: 1px solid var(--line); padding: 0 0 20px; }
.step img { width: 100%; aspect-ratio: 1.5; object-fit: cover; display: block; border-bottom: 1px solid var(--line); }
.step .n { display: block; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin: 16px 20px 4px; }
.step h3 { font: 400 30px/1.05 var(--serif); margin: 0 20px 8px; color: var(--ink); }
.step p { margin: 0 20px; color: var(--muted); font-size: 13px; }
.quote { font: italic 400 clamp(28px, 3.4vw, 46px)/1.1 var(--serif); color: var(--ink); text-align: center; padding: 44px 10px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin: 56px 0 0; }
details.faq { border-bottom: 1px solid var(--line); padding: 16px 0; }
details.faq summary { cursor: pointer; font: 400 22px/1.2 var(--serif); color: var(--ink); list-style: none; display: flex; justify-content: space-between; gap: 16px; }
details.faq summary::after { content: "+"; font: 400 22px var(--mono); color: var(--muted); }
details.faq[open] summary::after { content: "–"; }
details.faq p { color: var(--muted); margin: 10px 0 0; max-width: 720px; }
.cta { text-align: center; padding: 64px 0 10px; }
.cta h2 { display: block; font: 400 clamp(40px, 5vw, 68px)/1 var(--serif); letter-spacing: -.01em; text-transform: none; color: var(--ink); margin: 0 0 12px; }
.cta h2::after { content: none; }
.cta .actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 22px; }
@media (max-width: 1100px) { .grid { grid-template-columns: 1fr; } .statrow { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 860px) { .split, .steps { grid-template-columns: minmax(0, 1fr); } .statbox b { font-size: 28px; } .toolbar input { max-width: none; } }

/* ================= landing page (/) : full width, top nav, no sidebar ================= */
body.landing { padding-left: 0; padding-bottom: 0; }
.lwrap { max-width: 1160px; margin: 0 auto; padding: 0 32px; }
.lnav { position: sticky; top: 0; z-index: 40; background: rgba(246, 241, 228, .9); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid transparent; transition: border-color .3s; }
.lnav.stuck { border-color: var(--line); }
.lnav .lwrap { display: flex; align-items: center; gap: 12px; height: 78px; }
.lnav .brand { padding: 0; font-size: 24px; }
.lnav-links { display: flex; gap: 30px; margin: 0 auto; }
.lnav-links a { text-decoration: none; font-size: 14px; color: var(--text); position: relative; padding: 6px 0; }
.lnav-links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--lime); transform: scaleX(0); transform-origin: left; transition: transform .3s; }
.lnav-links a:hover::after { transform: scaleX(1); }
.lnav .btn-primary { padding: 13px 22px; font-size: 14px; }
.btn.big { padding: 17px 28px; font-size: 15px; }

.lhero { text-align: center; padding: 84px 0 56px; }
.lhero .tag { margin-bottom: 26px; }
.lhero h1 { font: 400 clamp(52px, 8.4vw, 124px)/.92 var(--serif); letter-spacing: -.025em; color: var(--ink); margin: 0 0 26px; }
.lhero h1 em { font-style: italic; color: var(--lime); }
.lhero p { font-size: 17px; color: var(--muted); max-width: 620px; margin: 0 auto 34px; }
.lhero .actions, .lcta .actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.lhero-stats { display: grid; grid-template-columns: repeat(4, 1fr); max-width: 860px; margin: 64px auto 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.lhero-stats > div { padding: 22px 10px; border-left: 1px solid var(--line); }
.lhero-stats > div:first-child { border-left: 0; }
.lhero-stats b { display: block; font: 400 44px/1 var(--serif); color: var(--ink); }
.lhero-stats span { font-size: 11px; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }

.lband { background: var(--paper); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 56px 0; }
.lpreview { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: center; }
.lpreview-art img { width: 100%; height: auto; display: block; border: 1px solid var(--line); }
.lpreview-card .card { box-shadow: 0 24px 60px rgba(14, 58, 36, .1); }

.lsec { padding: 96px 0 0; }
.lhead { text-align: center; max-width: 760px; margin: 0 auto 44px; }
.lhead h2 { display: block; font: 400 clamp(36px, 4.6vw, 62px)/1 var(--serif); letter-spacing: -.015em; text-transform: none; color: var(--ink); margin: 0 0 14px; }
.lhead h2::after { content: none; }
.lhead p { color: var(--muted); font-size: 15px; margin: 0; }
.lhead a { color: var(--lime2); }
.lfeat { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: center; padding: 34px 0; border-top: 1px solid var(--line); }
.lfeat.rev img { order: 2; }
.lfeat img { width: 100%; max-width: 460px; height: auto; justify-self: center; border: 1px solid var(--line); display: block; }
.lfeat h3 { font: 400 clamp(34px, 3.8vw, 52px)/1 var(--serif); color: var(--ink); margin: 0 0 14px; }
.lfeat p { color: var(--muted); font-size: 15px; max-width: 440px; margin: 0 0 22px; }
.lquote { margin-top: 96px; padding: 72px 0; background: var(--ink); color: #f6f1e4; text-align: center; font: italic 400 clamp(30px, 4.2vw, 58px)/1.08 var(--serif); }
.lquote span { display: block; font: 500 13px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--hi); margin-top: 22px; font-style: normal; }
.lfaq { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 56px; align-items: start; }
.lcta { text-align: center; padding: 110px 0 100px; }
.lcta h2 { display: block; font: 400 clamp(52px, 7vw, 104px)/.95 var(--serif); letter-spacing: -.02em; text-transform: none; color: var(--ink); margin: 0 0 14px; }
.lcta h2::after { content: none; }
.lcta p { color: var(--muted); margin: 0 0 30px; font-size: 16px; }
.lfoot { margin: 0; padding: 56px 0 44px; background: var(--paper); border-top: 1px solid var(--line); }
.lfoot .lwrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 48px; }
.lfoot .brand { padding: 0; margin-bottom: 14px; }
.lfoot .legal { max-width: 440px; line-height: 1.7; margin: 0 0 14px; }
.lfoot-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; align-content: start; }
.lfoot-cols > div { display: grid; gap: 9px; align-content: start; }
.lfoot-cols b { font: 500 11px var(--mono); text-transform: uppercase; letter-spacing: .12em; color: var(--muted); margin-bottom: 4px; }
.lfoot-cols a { color: var(--ink); text-decoration: none; font-size: 14px; }
.lfoot-cols a:hover { text-decoration: underline; }
.lfoot-cols code { color: var(--lime2); font-size: 14px; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
@media (max-width: 860px) {
  .lwrap { padding: 0 20px; }
  .lnav .lwrap { height: 64px; gap: 8px; }
  .lnav-links { display: none; }
  .lnav .brand { margin-right: auto; font-size: 21px; }
  .lnav .btn-primary { padding: 11px 14px; font-size: 13px; }
  .lhero { padding: 52px 0 40px; }
  .lhero-stats { grid-template-columns: repeat(2, 1fr); margin-top: 44px; }
  .lhero-stats > div:nth-child(3) { border-left: 0; }
  .lhero-stats > div:nth-child(n+3) { border-top: 1px solid var(--line); }
  .lhero-stats b { font-size: 36px; }
  .lpreview, .lfeat, .lfaq, .lfoot .lwrap { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .lfeat.rev img { order: 0; }
  .lsec { padding-top: 64px; } .lquote { margin-top: 64px; padding: 52px 0; } .lcta { padding: 72px 0 64px; }
  .btn.big { padding: 15px 22px; }
  .lfoot-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ================= landing scroll animations ================= */
/* .anim is set on <html> by script, so without JS (or with reduced motion) everything just shows */
.anim [data-rv] { opacity: 0; transform: translate3d(0, 34px, 0); transition: opacity .9s cubic-bezier(.16, 1, .3, 1), transform .9s cubic-bezier(.16, 1, .3, 1); transition-delay: var(--d, 0s); will-change: opacity, transform; }
.anim [data-rv="left"] { transform: translate3d(-48px, 0, 0); }
.anim [data-rv="right"] { transform: translate3d(48px, 0, 0); }
.anim [data-rv="zoom"] { transform: scale(.94); }
.anim [data-rv].in { opacity: 1; transform: none; }
/* hero entrance on load */
.anim .lhero > .lwrap > * { opacity: 0; transform: translateY(22px); animation: rise-in 1s cubic-bezier(.16, 1, .3, 1) forwards; }
.anim .lhero > .lwrap > :nth-child(2) { animation-delay: .1s; }
.anim .lhero > .lwrap > :nth-child(3) { animation-delay: .22s; }
.anim .lhero > .lwrap > :nth-child(4) { animation-delay: .34s; }
.anim .lhero > .lwrap > :nth-child(5) { animation-delay: .46s; }
@keyframes rise-in { to { opacity: 1; transform: none; } }
.lhero h1 em { display: inline-block; }
.anim .lhero h1 em { animation: hunch-wiggle 1.4s cubic-bezier(.16, 1, .3, 1) .5s both; }
@keyframes hunch-wiggle { 0% { transform: translateY(.18em) rotate(-4deg); opacity: 0; } 60% { transform: translateY(-.04em) rotate(1.5deg); opacity: 1; } 100% { transform: none; } }
/* gentle parallax on the art (transform set by script) */
[data-px] { transition: transform .1s linear; }
.lfeat img, .lpreview-art img, .step img { transition: transform .6s cubic-bezier(.16, 1, .3, 1); }
.step:hover img { transform: scale(1.04); }
.step { overflow: hidden; transition: transform .4s cubic-bezier(.16, 1, .3, 1), box-shadow .4s; }
.step:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(14, 58, 36, .1); }
/* scroll progress bar under the nav */
.lprogress { position: absolute; left: 0; bottom: -1px; height: 2px; width: 100%; background: var(--lime); transform-origin: left; transform: scaleX(0); }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .anim [data-rv], .anim .lhero > .lwrap > *, .anim .lhero h1 em { opacity: 1 !important; transform: none !important; animation: none !important; transition: none !important; }
  [data-px] { transform: none !important; }
}
