/* Five short pages instead of one long scroll: Home, Privacy, Foldables, Open source, Whitepaper.
   One call to action, in the hero, joined with the counter. True black like the app, soft lime as the only colour. */
:root {
  --ground: #000; --s1: #0C0C0C; --s2: #161616; --line: #2A2A2A;
  --ink: #F2F2EC; --muted: #A3A39B; --lime: #C3DB56; --on-lime: #0B0D00; --amber: #FFA726;
  --paper: #F4F1E6; --paper-2: #E9E4D3; --typed: #1F1E1A; --stamp: #9E2B25;
  --f-ui: "Geist", -apple-system, "SF Pro Text", Roboto, system-ui, sans-serif;
  --f-code: "JetBrains Mono", ui-monospace, Menlo, monospace;
  --f-type: "Courier Prime", "Courier New", Courier, monospace;
  --f-stamp: "Special Elite", "Courier Prime", "Courier New", monospace;
  color-scheme: dark;
}
* { box-sizing: border-box; }
header { padding-top: env(safe-area-inset-top, 0px); }
body { margin: 0; background: var(--ground); color: var(--ink); font: 17px/1.55 var(--f-ui); min-height: 100svh; display: flex; flex-direction: column; }
a { color: inherit; }
h1, h2, h3 { font-weight: 600; letter-spacing: -0.03em; line-height: 1.05; margin: 0; text-wrap: balance; }
p { margin: 0; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--lime); outline-offset: 3px; }
.frame { width: 100%; max-width: 1280px; margin: 0 auto; padding-left: max(24px, env(safe-area-inset-left, 0px)); padding-right: max(24px, env(safe-area-inset-right, 0px)); }


/* nav */
nav.top { display: flex; align-items: center; gap: 28px; padding-block: 22px; flex-wrap: wrap; }
.brand { display: inline-flex; align-items: center; gap: 14px; font-weight: 600; font-size: 28.5px; letter-spacing: -0.025em; text-decoration: none; margin-right: auto; }
.brand img { width: 42px; height: 42px; }
.links { display: flex; gap: 24px; font-size: 15px; }
.links a { text-decoration: none; color: var(--muted); padding: 4px 0; border-bottom: 2px solid transparent; }
.links a:hover { color: var(--ink); }
.links a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--lime); }
@media (max-width: 760px) {
  nav.top { gap: 12px; padding-block: 16px; }
  .links { width: 100%; overflow-x: auto; gap: 16px; font-size: 14px; scrollbar-width: none; }
  .links a { white-space: nowrap; }
}

main { flex: 1; }
.pg { display: none; padding-bottom: 96px; }
.pg.on { display: block; animation: in .35s ease; }
@keyframes in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.kicker { color: var(--lime); font: 500 14px var(--f-code); margin-bottom: 18px; }
.h1 { font-size: clamp(40px, 5.2vw, 76px); }
.h2 { font-size: clamp(30px, 3.4vw, 46px); }
.lede { font-size: 19px; max-width: 54ch; margin-top: 20px; }
.muted { color: var(--muted); }
.next { display: inline-flex; gap: 8px; align-items: center; margin-top: 64px; font-size: 17px; text-decoration: none; border-bottom: 1px solid var(--line); padding-bottom: 4px; }
.next:hover { border-color: var(--lime); }

.btn { display: inline-flex; align-items: center; gap: 10px; border: 0; cursor: pointer; text-decoration: none; font-weight: 600; font-size: 16px; padding: 14px 22px; transition: transform .15s ease, background-color .15s ease; }
.btn:active { transform: scale(.97); }
.btn-lime { background: var(--lime); color: var(--on-lime); }
.btn-lime:hover { background: #D3E86C; }
.btn-lime:disabled { opacity: .5; cursor: default; }

/* home */
.home { display: grid; grid-template-columns: 6fr 6fr; gap: 56px; align-items: center; padding-top: clamp(24px, 6vh, 72px); }
.home h1 { font-size: clamp(44px, 5.4vw, 80px); }
.home .sub { font-size: 19px; margin-top: 22px; max-width: 42ch; }
.want { margin-top: 40px; display: grid; gap: 14px; justify-items: start; }
.want .n { font: 600 clamp(44px, 4.4vw, 64px)/1 var(--f-ui); letter-spacing: -0.04em; font-variant-numeric: tabular-nums; }
.want .n small { display: block; font-size: 16px; font-weight: 400; letter-spacing: 0; color: var(--muted); margin-top: 8px; }
.want .note { color: var(--muted); font-size: 14px; }
.stage { background: var(--lime); clip-path: polygon(80px 0, 100% 0, 100% 100%, 0 100%, 0 80px); padding: 44px 0 0 44px; height: 560px; overflow: hidden; }
.facts { margin-top: 88px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.facts a { padding: 22px 22px 0 0; text-decoration: none; display: grid; gap: 6px; }
.facts b { font-weight: 600; font-size: 17px; }
.facts span { color: var(--muted); font-size: 15px; }
.facts a:hover b { color: var(--lime); }
@media (max-width: 900px) {
  .home { grid-template-columns: 1fr; gap: 40px; }
  .stage { margin-inline: calc(-1 * max(24px, env(safe-area-inset-left, 0px))); padding: 36px 0 0 20px; height: 440px; clip-path: polygon(60px 0, 100% 0, 100% 100%, 0 100%, 0 60px); }
  .facts { grid-template-columns: 1fr 1fr; gap: 0 16px; margin-top: 56px; }
  .facts a { padding-bottom: 18px; }
}

/* the working app fragment */
.app { width: 520px; max-width: calc(100vw - 40px); background: var(--ground); color: var(--ink); padding: 18px; font-family: -apple-system, Roboto, system-ui, sans-serif; position: relative; }
.app .bar { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.app .bar img { width: 26px; height: 26px; }
.app .bar span { font-size: 21px; font-weight: 600; flex: 1; }
.app .sq { width: 36px; height: 36px; border: 1px solid var(--line); border-radius: 8px; display: grid; place-items: center; }
.app .sq svg { width: 18px; height: 18px; }
.app .row { display: flex; align-items: center; justify-content: space-between; border: 1px solid var(--line); border-radius: 10px; background: var(--s1); padding: 12px 14px; margin-bottom: 10px; font-size: 15px; }
.acct { display: grid; grid-template-columns: 40px 1fr auto; gap: 2px 12px; align-items: start; background: var(--s1); border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px 10px; margin-bottom: 10px; cursor: pointer; text-align: left; width: 100%; }
.acct.sel { border-color: var(--lime); }
.badge { grid-row: span 2; width: 40px; height: 40px; border-radius: 9px; display: grid; place-items: center; font-weight: 600; color: #fff; font-size: 17px; }
.acct .nm { font-size: 15px; font-weight: 500; }
.acct .nm i { font-style: normal; color: var(--muted); }
.acct .sec { font: 13px var(--f-code); color: var(--muted); }
.acct .code { grid-column: 2 / 4; font: 500 30px/1.2 var(--f-code); font-variant-numeric: tabular-nums; }
.acct .code.low { color: var(--amber); }
.ticks { grid-column: 1 / 4; display: grid; grid-template-columns: repeat(30, 1fr); gap: 3px; margin-top: 8px; }
.ticks i { height: 3px; background: var(--line); }
.ticks i.on { background: var(--lime); }
.ticks.low i.on { background: var(--amber); }
.switch { width: 46px; height: 26px; border: 1px solid var(--line); background: var(--s2); position: relative; cursor: pointer; padding: 0; border-radius: 13px; }
.switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 9px; background: var(--muted); transition: transform .18s ease, background-color .18s; }
.switch[aria-checked="true"] { background: var(--lime); border-color: var(--lime); }
.switch[aria-checked="true"]::after { transform: translateX(20px); background: var(--on-lime); }
.toast { position: absolute; left: 50%; transform: translateX(-50%); bottom: 30px; background: var(--ink); color: var(--ground); padding: 10px 14px; font-size: 14px; opacity: 0; transition: opacity .2s; pointer-events: none; white-space: nowrap; border-radius: 8px; }
.toast.on { opacity: 1; }

/* privacy */
.cmp { margin-top: 48px; display: grid; grid-template-columns: 4fr 3fr 3fr 2fr; }
.cmp > div { padding: 16px 16px; font-size: 16px; display: flex; align-items: center; min-width: 0; border-bottom: 1px solid var(--line); }
.cmp .hd { font-weight: 600; color: var(--muted); font-size: 14px; }
.cmp .cap { font-size: 18px; font-weight: 500; padding-left: 0; }
.cmp .us { color: var(--lime); font-weight: 600; }
@media (max-width: 860px) {
  .cmp { grid-template-columns: 1fr; }
  .cmp .hd { display: none; }
  .cmp > div { display: block; border: 0; padding: 4px 0; }
  .cmp .cap { padding-top: 22px; border-top: 1px solid var(--line); }
  .cmp > div[data-h]::before { content: attr(data-h); display: block; font-size: 13px; font-weight: 600; color: var(--muted); }
}
.steps3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: 40px; }
.steps3 > div { background: var(--s1); padding: 22px; display: grid; gap: 12px; align-content: start; }
.steps3 h3 { font-size: 21px; letter-spacing: -0.02em; }
.steps3 .n { font: 500 13px var(--f-code); color: var(--lime); }
.kit { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px 10px; background: var(--paper); color: var(--typed); padding: 12px; font: 13.5px/1.5 var(--f-type); }
.kit b { font-weight: 400; color: #8a857a; margin-right: 3px; }
.pinpad { display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; }
.pinpad i { height: 40px; border: 1px solid var(--line); display: grid; place-items: center; font: 500 20px var(--f-code); font-style: normal; }
.mini { border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; font-size: 14px; display: grid; gap: 2px; }
.mini.on { border-color: var(--lime); }
.split { display: grid; grid-template-columns: 5fr 7fr; gap: 56px; margin-top: 96px; align-items: start; }
.list { display: grid; gap: 22px; }
.list b { display: block; font-weight: 600; font-size: 18px; margin-bottom: 4px; }
@media (max-width: 900px) { .steps3, .split { grid-template-columns: 1fr; } .split { gap: 28px; margin-top: 72px; } }

/* foldables */
.fold { display: grid; grid-template-columns: 3fr 7fr; gap: 32px; align-items: end; margin-top: 48px; }
.fold figure { margin: 0; display: grid; gap: 10px; }
.fold img { display: block; width: 100%; height: auto; background: var(--s1); }
.fold figcaption { color: var(--muted); font-size: 14px; }
.notes3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; margin-top: 48px; }
.notes3 h3 { font-size: 19px; letter-spacing: -0.02em; margin-bottom: 6px; }
@media (max-width: 900px) { .fold, .notes3 { grid-template-columns: 1fr; } .fold figure:first-child img { max-width: 300px; } }

/* open source */
.os { display: grid; grid-template-columns: 7fr 5fr; gap: 56px; align-items: start; }
.repo { background: var(--s1); border: 1px solid var(--line); font: 14px/1.7 var(--f-code); }
.repo .hd { display: flex; justify-content: space-between; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--line); color: var(--muted); flex-wrap: wrap; }
.repo .hd b { color: var(--ink); font-weight: 500; }
.repo ul { list-style: none; margin: 0; padding: 8px 16px 14px; }
.repo li { display: grid; grid-template-columns: 22px 1fr auto; gap: 8px; padding: 6px 0; border-bottom: 1px dashed #1f1f1f; }
.repo li:last-child { border: 0; }
.repo li span:last-child { color: var(--muted); }
.repo li.closed { color: var(--muted); }
.repo .ft { padding: 12px 16px; border-top: 1px solid var(--line); color: var(--lime); }
.can { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 40px; margin-top: 72px; }
.can b { display: block; font-size: 18px; font-weight: 600; margin-bottom: 4px; }
@media (max-width: 900px) { .os, .can { grid-template-columns: 1fr; } }

/* whitepaper */
.wp-head { display: flex; justify-content: space-between; align-items: end; gap: 32px; flex-wrap: wrap; }
.book-wrap { margin-top: 40px; display: grid; gap: 16px; justify-items: center; }
.book { position: relative; width: min(1080px, 100%); aspect-ratio: 1.42; perspective: 2600px; outline-offset: 6px; container-type: inline-size; }
@media (max-width: 760px) { .book { aspect-ratio: 0.56; } }
.sheet { position: absolute; top: 0; height: 100%; width: 50%; background: var(--paper); color: var(--typed); overflow: hidden; }
.sheet.left { left: 0; box-shadow: inset -18px 0 24px -20px rgba(0,0,0,.35); } .sheet.right { left: 50%; box-shadow: inset 18px 0 24px -20px rgba(0,0,0,.35); }
@media (max-width: 760px) { .sheet { width: 100%; box-shadow: none !important; } .sheet.left { display: none; } .sheet.right { left: 0; } }
.page { position: absolute; inset: 0; padding: 7% 8%; font: 1.52cqw/1.55 var(--f-type); overflow: hidden; color: var(--typed); }
.page::before { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5; background-image: var(--grain); mix-blend-mode: multiply; }
.page h4 { font: 400 2.2cqw/1.2 var(--f-stamp); margin: 0 0 0.6em; }
.page p { margin: 0 0 10px; }
.page .folio { position: absolute; bottom: 4.5%; left: 8%; right: 8%; display: flex; justify-content: space-between; font-size: 0.85em; color: #6d685c; }
.page table { border-collapse: collapse; width: 100%; font-size: 0.88em; line-height: 1.4; }
.page td, .page th { text-align: left; vertical-align: top; padding: 5px 6px 5px 0; border-bottom: 1px dashed #b9b2a0; }
.cover { display: grid; align-content: space-between; height: 100%; }
.cover .t { font: 400 3.8cqw/1.08 var(--f-stamp); }
.stampbox { border: 3px solid var(--stamp); color: var(--stamp); font: 400 1.25em var(--f-stamp); padding: 6px 12px; transform: rotate(-6deg); justify-self: start; opacity: .85; display: inline-block; }
.leaf { position: absolute; top: 0; left: 50%; width: 50%; height: 100%; transform-origin: left center; transform-style: preserve-3d; transition: transform .9s cubic-bezier(.3,.7,.2,1); z-index: 5; pointer-events: none; }
.leaf.back { left: 0; transform-origin: right center; }
.leaf .face { position: absolute; inset: 0; background: var(--paper); backface-visibility: hidden; overflow: hidden; }
.leaf .face.b { transform: rotateY(180deg); background: var(--paper-2); }
.ctrls { display: flex; gap: 12px; align-items: center; justify-content: center; }
.ctrls button { background: transparent; border: 1px solid var(--line); padding: 11px 18px; cursor: pointer; }
.ctrls button:disabled { opacity: .35; cursor: default; }
.ctrls .pgn { font: 14px var(--f-code); color: var(--muted); min-width: 80px; text-align: center; }
.page table.toc td { border: 0; padding: 2px 6px 2px 0; }
.page table.toc td:first-child { width: 2.2em; }
canvas.pencil { width: 100%; height: auto; display: block; margin: 6px 0 8px; }
@media (max-width: 760px) {
  .page { font-size: 3.6cqw; line-height: 1.5; padding: 8% 7% 12%; }
  .page h4 { font-size: 5.6cqw; } .cover .t { font-size: 8.4cqw; }
  .page .folio span:first-child { display: none; }
}

.legal { max-width: 760px; }
.legal h3 { font-size: 22px; letter-spacing: -0.02em; margin: 40px 0 10px; }
.legal p, .legal li { margin: 0 0 12px; }
.legal ul { padding-left: 20px; margin: 0; }
.legal .muted { margin-top: 12px; }
.legal .todo { background: var(--s2); color: var(--amber); padding: 0 6px; }
.ptab { border-collapse: collapse; width: 100%; font-size: 15px; margin: 8px 0 16px; }
.ptab th, .ptab td { text-align: left; vertical-align: top; padding: 10px 12px 10px 0; border-bottom: 1px solid var(--line); }
.ptab th { color: var(--muted); font-weight: 600; font-size: 14px; }
@media (max-width: 640px) { .ptab, .ptab tbody, .ptab tr, .ptab td { display: block; } .ptab tr:first-child { display: none; } .ptab tr { border-bottom: 1px solid var(--line); padding: 8px 0; } .ptab td { border: 0; padding: 2px 0; } .ptab td:first-child { font-weight: 600; } }
footer { border-top: 1px solid var(--line); }
footer .frame { display: flex; gap: 12px 28px; flex-wrap: wrap; padding-block: 22px calc(22px + env(safe-area-inset-bottom, 0px)); font-size: 14px; color: var(--muted); }
footer a { text-decoration: none; } footer a:hover { color: var(--ink); }
footer span:first-child { margin-right: auto; }

@media (prefers-reduced-motion: reduce) { .pg.on { animation: none; } .leaf { transition: none; } }
