/* Kesin website — shared styles for every page (Black Card, October 22 2026;
   design.md is the authority, the app's dark palette as shipped). The home
   page adds its own hero, ticker, showcase and pricing styles inline;
   everything a second page might need lives here, so the pages stay one
   design. The layout is the September 29 site's (user, October 22: keep the
   layout, change the look).

   The rules:
   · a charcoal ground with a fine grain and the black card's brushed lines
     (user, October 22: "brushed", a little stronger than the first try);
     titanium for buttons and accents;
   · green and red only for money, each exchange in its colour;
   · Geist, self-hosted (screens.css declares it; no third-party requests);
   · sections rise gently into view (off under Reduce Motion). */

@font-face{font-family:"Geist";font-weight:300;font-display:swap;src:url(fonts/Geist_300Light.woff2) format("woff2")}
@font-face{font-family:"Geist";font-weight:400;font-display:swap;src:url(fonts/Geist_400Regular.woff2) format("woff2")}
@font-face{font-family:"Geist";font-weight:500;font-display:swap;src:url(fonts/Geist_500Medium.woff2) format("woff2")}
@font-face{font-family:"Geist";font-weight:600;font-display:swap;src:url(fonts/Geist_600SemiBold.woff2) format("woff2")}

:root{
  --void:#0A0A0B; --base:#0F0F11; --depth:#141416; --surface:#18181B; --raised:#202024;
  --accent:#DCDDE1; --action:#DCDDE1; --glow:#DCDDE1; --pale:#DCDDE1; --ti:#DCDDE1; --ti-dim:#8F9198;
  --text:#F4F4F1; --t2:#A2A2A9; --t3:#86868E; --pos:#3FD08A; --pos-soft:rgba(63,208,138,.13); --neg:#FF6B6B; --amber:#F2A93B;
  --line:rgba(255,255,255,.08); --line2:rgba(255,255,255,.12);
  --kalshi:#2FD69A; --kalshi-bg:transparent; --poly:#4C7DFF; --poly-bg:transparent;
  --sans:"Geist",-apple-system,BlinkMacSystemFont,"SF Pro Text","Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif;
  --grain:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .5 0'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
  /* The black card's brushed titanium: 1-px lines every 3 px. --brush-hi
     for the top of a page, --brush across the rest. */
  --brush:repeating-linear-gradient(90deg,rgba(255,255,255,.02) 0 1px,transparent 1px 3px);
  --brush-hi:repeating-linear-gradient(90deg,rgba(255,255,255,.036) 0 1px,transparent 1px 3px);
  color-scheme:dark;
}
*{box-sizing:border-box;margin:0;padding:0}
html{scroll-behavior:smooth;background:var(--base)}
body{background:var(--brush),var(--base);color:var(--text);font:16px/1.6 var(--sans);-webkit-font-smoothing:antialiased;overflow-x:hidden}
/* The grain over the whole page, as on the app's ground. */
body::before{content:"";position:fixed;inset:0;background-image:var(--grain);opacity:.06;pointer-events:none;z-index:100}
a{color:inherit;text-decoration:none}
.num{font-variant-numeric:tabular-nums}
.pos{color:var(--pos)} .neg{color:var(--neg)}
.wrap{width:100%;max-width:1080px;margin:0 auto;padding:0 24px}
.wrap.narrow{max-width:760px}
@media (max-width:640px){.wrap{padding:0 16px}}
h1,h2,h3{font-weight:600}
.label{display:inline-block;font-size:12px;font-weight:600;letter-spacing:.08em;text-transform:uppercase;color:var(--t2)}
.note{font-size:13px;color:var(--t3)}
:focus-visible{outline:2px solid var(--glow);outline-offset:3px;border-radius:6px}

/* ── Top bar ─────────────────────────────────────────────────────────────── */
header{position:sticky;top:0;z-index:50;background:rgba(15,15,17,.82);backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px);border-bottom:1px solid var(--line)}
.nav{display:flex;align-items:center;justify-content:space-between;height:64px}
.brand{display:inline-flex;align-items:center;font-size:21px;font-weight:600;letter-spacing:-.03em}
.nav-links{display:flex;gap:30px;align-items:center}
.nav-links a{font-size:14px;color:var(--t2)}
.nav-links a:hover,.nav-links a[aria-current=page]{color:var(--text)}
.nav-links a.btn{color:#0A0A0B}
.nav-links a.btn:hover{color:#0A0A0B}
@media (max-width:720px){.nav-links a:not(.btn){display:none}}

/* ── Buttons ─────────────────────────────────────────────────────────────── */
.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;height:40px;padding:0 16px;border-radius:10px;font-weight:600;font-size:14px;
  background:linear-gradient(180deg,#F1F1F3,#CFD0D4);color:#0A0A0B;border:0;box-shadow:inset 0 1px 0 rgba(255,255,255,.7);transition:filter .15s}
.btn:hover{filter:brightness(1.06)}
.btn.ghost{background:transparent;border:1px solid var(--line2);color:var(--text);box-shadow:none}
.btn.ghost:hover{border-color:rgba(255,255,255,.3);background:rgba(255,255,255,.03)}
.btn.lg{height:52px;padding:0 22px;font-size:15px;border-radius:14px}
/* The App Store badge's layout. Swap in Apple's official badge artwork
   before publishing (Apple's marketing guidelines). */
.store{display:inline-flex;align-items:center;gap:10px;height:52px;padding:0 18px 0 14px;border-radius:12px;background:#000;color:#fff;border:1px solid rgba(255,255,255,.3)}
.store:hover{border-color:rgba(255,255,255,.55)}
.store svg{width:22px;height:27px}
.store span{display:flex;flex-direction:column;line-height:1.05;text-align:left}
.store small{font-size:10.5px;font-weight:500}
.store b{font-size:20px;font-weight:600;letter-spacing:-.02em}

/* Midnight Blue's stars are retired (Black Card has none). */
.stars{display:none}

/* ── Sections ────────────────────────────────────────────────────────────── */
section.s{padding:100px 0;border-top:1px solid var(--line)}
.head{text-align:center;margin-bottom:56px}
.head h2{font-size:clamp(30px,4vw,42px);letter-spacing:-.035em;line-height:1.1;margin-top:14px}
.head p{color:var(--t2);margin:14px auto 0;max-width:560px;font-size:17px}

/* The body of a page: Midnight Blue's faint grid is retired; the grain
   (body::before) is the texture now. The class stays for the markup. */
.gridzone{position:relative}
.gridzone>*{position:relative;z-index:1}
.gridzone>section{border-top:0}

/* Motion: blocks marked .reveal rise into view once (site.js). */
.js .reveal{opacity:0;transform:translateY(28px);transition:opacity .8s cubic-bezier(.2,.7,.2,1),transform .8s cubic-bezier(.2,.7,.2,1)}
.js .reveal.in{opacity:1;transform:none}

/* ── Page head (every page but home) ─────────────────────────────────────── */
.page-head{position:relative;overflow:hidden;padding:96px 0 56px;
  background:var(--brush-hi),radial-gradient(60% 90% at 50% -30%,rgba(255,255,255,.07),rgba(255,255,255,.015) 55%,transparent 80%),linear-gradient(180deg,#1C1C1F,var(--base))}
.page-head h1{font-size:clamp(38px,5.5vw,56px);letter-spacing:-.04em;line-height:1.05;margin-top:12px}
.page-head .lead{color:var(--t2);font-size:18px;margin-top:16px;max-width:620px}
.page-head .updated{margin-top:14px;font-size:13px;color:var(--t3)}

/* ── FAQ ─────────────────────────────────────────────────────────────────── */
.faq{max-width:760px;margin:0 auto}
details{border-bottom:1px solid var(--line);padding:20px 0}
details:first-child{border-top:1px solid var(--line)}
summary{cursor:pointer;font-size:18px;font-weight:600;list-style:none;display:flex;justify-content:space-between;align-items:center;gap:16px}
summary::-webkit-details-marker{display:none}
summary::after{content:"+";color:var(--ti-dim);font-size:22px;font-weight:400;line-height:1}
details[open] summary::after{content:"−"}
details p{color:var(--t2);font-size:15.5px;margin-top:12px}
details p b{color:var(--text);font-weight:600}
details a,.prose a,.card a{color:var(--text);text-decoration:underline;text-decoration-color:rgba(255,255,255,.3);text-underline-offset:3px}
details a:hover,.prose a:hover,.card a:hover{text-decoration-color:var(--text)}

/* ── Cards and long-form text (support, privacy, terms) ──────────────────── */
.card{position:relative;background:var(--surface);border:1px solid var(--line);border-radius:18px;padding:24px;box-shadow:inset 0 1px 0 rgba(255,255,255,.05)}
.card.accent{border-top:2px solid var(--ti)}
.card .kicker{display:block;font-size:12px;font-weight:600;letter-spacing:.08em;text-transform:uppercase;color:var(--ti-dim);margin-bottom:10px}
.prose{padding-top:8px;padding-bottom:40px} /* top/bottom only: a shorthand here zeroed .wrap's side padding, so long-form text touched the screen edge on phones (fixed October 10) */
.prose h2{font-size:22px;letter-spacing:-.02em;line-height:1.3;margin:48px 0 12px}
.prose h2 .n{display:inline-block;min-width:32px;font-size:14px;color:var(--ti-dim);font-variant-numeric:tabular-nums;vertical-align:2px}
.prose p,.prose li{color:var(--t2);font-size:16px;line-height:1.7}
.prose p{margin-bottom:14px}
.prose ul{margin:0 0 14px;padding-left:22px}
.prose li{margin-bottom:8px}
.prose li::marker{color:var(--t3)}
.prose b{color:var(--text);font-weight:600}
.prose .card{margin:24px 0}
.prose .card p:last-child{margin-bottom:0}
.prose .caps{font-size:15px}

/* ── Guides (long-form articles, October 2026) ───────────────────────────── */
.prose h3{font-size:18px;letter-spacing:-.01em;line-height:1.35;margin:30px 0 8px}
.prose ol{margin:0 0 14px;padding-left:24px}
.prose ol li::marker{color:var(--ti-dim);font-variant-numeric:tabular-nums}
.tbl{margin:22px 0 26px;border:1px solid var(--line);border-radius:18px;overflow-x:auto;-webkit-overflow-scrolling:touch}
.tbl table{width:100%;border-collapse:collapse;font-size:15px;line-height:1.55}
.tbl th,.tbl td{padding:12px 16px;text-align:left;vertical-align:top;border-bottom:1px solid var(--line)}
.tbl thead th{background:var(--surface);color:var(--text);font-weight:600;font-size:14px}
.tbl tbody th{color:var(--text);font-weight:600;width:30%}
.tbl td{color:var(--t2)}
.tbl tr:last-child th,.tbl tr:last-child td{border-bottom:0}
/* A comparison table (three columns) stacks on phones: each row becomes the
   row label, then each cell under its column name (data-label). */
@media (max-width:640px){
  .tbl.compare thead{display:none}
  .tbl.compare table,.tbl.compare tbody,.tbl.compare tr,.tbl.compare th,.tbl.compare td{display:block;width:auto}
  .tbl.compare tr{border-bottom:1px solid var(--line);padding:6px 0}
  .tbl.compare tr:last-child{border-bottom:0}
  .tbl.compare th,.tbl.compare td{border:0;padding:6px 16px}
  .tbl.compare td::before{content:attr(data-label);display:block;font-size:12px;font-weight:600;letter-spacing:.06em;text-transform:uppercase;color:var(--t2);margin-bottom:2px}
}
.prose .sources{font-size:14px}
.prose .sources li{font-size:14px;color:var(--t3)}
.guide-cta{display:flex;gap:18px;align-items:center;justify-content:space-between;flex-wrap:wrap}
.guide-cta p{margin:0!important}
.guide-list{display:grid;gap:12px;margin:16px 0 0}
.guide-list a{display:block;padding:16px 18px;border:1px solid var(--line);border-radius:16px;background:var(--surface);text-decoration:none;color:var(--text);font-weight:600}
.guide-list a span{display:block;font-weight:400;font-size:14px;color:var(--t2);margin-top:4px}
.guide-list a:hover{border-color:rgba(255,255,255,.28)}

/* ── Footer ──────────────────────────────────────────────────────────────── */
footer{border-top:1px solid var(--line);padding:56px 0 40px;background:var(--brush),var(--void)}
.ftop{display:flex;justify-content:space-between;gap:40px;flex-wrap:wrap}
.flinks{display:flex;gap:56px;flex-wrap:wrap}
.fcol h4{font-size:12px;font-weight:600;letter-spacing:.08em;text-transform:uppercase;color:var(--t3);margin-bottom:14px}
.fcol a{display:block;font-size:14px;color:var(--t2);margin-bottom:9px}
.fcol a:hover{color:var(--text)}
.disc{margin-top:44px;padding-top:24px;border-top:1px solid var(--line);font-size:12px;color:var(--t3);line-height:1.7}

@media (prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  .js .reveal{opacity:1;transform:none;transition:none}
}
