/* 0xWills — shared design system (dark, pastel, clean sans)
   Used by every page. The homepage adds css/home.css on top. */

@font-face { font-family: "Inter"; src: url("/fonts/inter.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url("/fonts/mono.woff2") format("woff2"); font-weight: 400; font-display: swap; }

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #0E0E11;
  --bg-2: #16161B;
  --bg-3: #1E1E25;
  --ink: #F1EEF7;
  --ink-2: #C9C4D6;
  --muted: #8C879A;
  --line: rgba(241, 238, 247, 0.12);
  --lav: #CDB4F5;
  --lav-2: #B497EE;
  --lav-ink: #17121F;
  --mint: #9EE6D3;
  --butter: #F2E39B;
  --peach: #F4B9A0;
  --rose: #F09CC0;
  --ok: #8FE3B0;
  --warn: #FF9E7A;
  --pixel: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --pixel-2: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Menlo, monospace;
  --r: 14px;
}

html { scroll-behavior: auto; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

/* never let anything widen the page sideways on phones */
html { overflow-x: hidden; overflow-x: clip; } /* hidden = fallback for older iPhones */
body { overflow-x: clip; }

body {
  background: var(--bg); color: var(--ink);
  font-family: var(--sans); font-size: 17px; line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
::selection { background: var(--lav); color: var(--lav-ink); }
a { color: var(--lav); text-underline-offset: 3px; }
a:hover { color: #E3D4FA; }
img { max-width: 100%; display: block; }
code, .mono { font-family: var(--mono); font-size: .9em; }

/* film grain + soft glows: painted as ordinary backgrounds (no extra layers, no blur filters) */
:root { --noise: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 .07 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>"); }
body {
  background-color: var(--bg);
  background-image: var(--noise),
    radial-gradient(520px 520px at 0% 0%, rgba(127,214,200,.16), transparent 70%),
    radial-gradient(480px 480px at 100% 45%, rgba(180,151,238,.10), transparent 70%);
  background-repeat: repeat, no-repeat, no-repeat;
}
.grain, .glow { display: none; }

/* ---------- bracket labels ---------- */
.br { font-family: var(--sans); font-size: .78rem; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2); white-space: nowrap; }
.br::before { content: "[ "; color: var(--muted); }
.br::after { content: " ]"; color: var(--muted); }

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 80;
  display: flex; align-items: center; justify-content: space-between;
  background: rgba(14,14,17,.92); box-shadow: 0 1px 0 var(--line);
  padding: 18px clamp(16px, 3.5vw, 44px);
  transition: background .3s, box-shadow .3s;
}
.nav.solid { background: rgba(14,14,17,.92); box-shadow: 0 1px 0 var(--line); }
.wordmark { font-family: var(--pixel); font-weight: 700; font-size: 1.12rem; letter-spacing: -.01em; text-decoration: none; color: var(--ink); display: inline-flex; align-items: center; }
.wordmark span { color: var(--lav); }
.wordmark:hover { color: var(--ink); }
.nav-links { display: flex; gap: 22px; align-items: center; }
.nav-links a { text-decoration: none; color: var(--ink-2); font-size: .9rem; font-weight: 500; letter-spacing: 0; }
.nav-links a.btn { color: var(--lav-ink); }
.nav-links a:not(.btn)::before { content: "[ "; color: var(--muted); }
.nav-links a:not(.btn)::after { content: " ]"; color: var(--muted); }
.nav-links a:hover, .nav-links a.active { color: var(--lav); }
@media (max-width: 860px) { .nav-links a:not(.btn) { display: none; } }

/* ---------- buttons ---------- */
.btn, .cta-btn {
  display: inline-flex; align-items: center; gap: 10px; cursor: pointer;
  font: 600 .9rem/1 var(--pixel); letter-spacing: 0; text-decoration: none;
  padding: 14px 18px; border-radius: 0; border: 1.5px solid var(--lav);
  background: var(--lav); color: var(--lav-ink) !important;
  box-shadow: 4px 4px 0 rgba(205,180,245,.28);
  transition: transform .15s, box-shadow .15s, background .2s;
}
.btn:hover, .cta-btn:hover { transform: translate(-1px, -1px); box-shadow: 6px 6px 0 rgba(205,180,245,.35); background: #DCCBF8; }
.btn.small { padding: 10px 16px; font-size: .86rem; box-shadow: 3px 3px 0 rgba(205,180,245,.25); }
.btn.ghost { background: transparent; color: var(--lav) !important; }
.btn.ghost:hover { background: rgba(205,180,245,.1); }

/* ---------- inner pages ---------- */
.page, .container, .page-wrap {
  position: relative; z-index: 1;
  max-width: 800px; margin: 0 auto;
  padding: clamp(56px, 8vw, 96px) clamp(20px, 5vw, 32px) 96px;
}
.page-wrap.wide { max-width: 1120px; }
.page-tag, .section-tag { font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); margin-bottom: 22px; display: block; }
.page-tag::before, .section-tag::before { content: "[ "; color: var(--muted); }
.page-tag::after, .section-tag::after { content: " ]"; color: var(--muted); }

h1 { font-family: var(--pixel); font-weight: 700; letter-spacing: -.03em; line-height: 1.14; font-size: clamp(2.2rem, 5vw, 3.6rem); margin-bottom: 22px; }
h1 em, h2 em { font-style: normal; background: var(--lav); color: var(--lav-ink); padding: 0 .14em; box-shadow: 0 0 0 2px var(--lav); }
h2 { font-family: var(--pixel); font-weight: 700; font-size: clamp(1.4rem, 2.6vw, 1.9rem); line-height: 1.2; letter-spacing: -.02em; margin: 54px 0 14px; }
h3 { font-family: var(--pixel-2); font-weight: 650; letter-spacing: -.01em; font-size: 1.2rem; line-height: 1.3; margin: 30px 0 10px; }
p { margin-bottom: 16px; color: var(--ink-2); }
strong { color: var(--ink); font-weight: 600; }
ul, ol { margin: 0 0 20px 22px; color: var(--ink-2); }
li { margin-bottom: 8px; padding-left: 4px; }
li::marker { color: var(--lav); }
.lead { font-size: 1.18rem; line-height: 1.6; color: var(--ink-2); max-width: 36em; }
.last-updated { font-family: var(--mono); font-size: .8rem; color: var(--muted); margin-bottom: 32px; }

.highlight-box, .honest-box, .callout {
  background: var(--bg-2); border: 1px solid var(--line); border-left: 3px solid var(--lav);
  padding: 20px 22px; margin: 28px 0;
}
.highlight-box p, .honest-box p, .callout p { margin: 0; }
.honest-box { border-left-color: var(--mint); }

.founder-card { display: grid; grid-template-columns: 140px 1fr; gap: 28px; align-items: start; background: var(--bg-2); border: 1px solid var(--line); padding: 26px; margin: 40px 0; }
.founder-photo-wrap { width: 140px; height: 140px; overflow: hidden; background: var(--bg-3); border: 2px solid var(--lav); box-shadow: 5px 5px 0 rgba(205,180,245,.25); }
.founder-photo { width: 100%; height: 100%; object-fit: cover; filter: grayscale(.25) contrast(1.05); }
.founder-name { font-family: var(--pixel); font-weight: 700; font-size: 1.4rem; line-height: 1.2; letter-spacing: -.02em; }
.founder-role { font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; color: var(--lav); margin: 6px 0 12px; }
.founder-bio { margin: 0; }
@media (max-width: 560px) { .founder-card { grid-template-columns: 1fr; } }

.principles { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 20px 0 8px; }
.principle { background: var(--bg-2); border: 1px solid var(--line); padding: 18px 20px; }
.principle strong { display: block; font-family: var(--pixel-2); font-weight: 650; font-size: 1.05rem; margin-bottom: 4px; }
.principle span { font-size: .95rem; color: var(--ink-2); }
@media (max-width: 560px) { .principles { grid-template-columns: 1fr; } }

.cta-box { margin: 56px 0 0; padding: 36px 32px; background: var(--bg-2); border: 1.5px solid var(--lav); box-shadow: 8px 8px 0 rgba(205,180,245,.18); }
.cta-box h2 { margin: 0 0 10px; }
.cta-box p { margin-bottom: 22px; }

.blog-hero { max-width: 760px; margin-bottom: 48px; }
.blog-hero p { font-size: 1.1rem; }
.post-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 18px; }
.post-card { display: flex; flex-direction: column; gap: 10px; text-decoration: none; color: var(--ink); background: var(--bg-2); border: 1px solid var(--line); padding: 24px; transition: transform .2s, border-color .2s, box-shadow .2s; }
.post-card:hover { transform: translate(-2px, -2px); border-color: var(--lav); box-shadow: 6px 6px 0 rgba(205,180,245,.22); color: var(--ink); }
.post-card h2 { margin: 0; font-size: 1.05rem; line-height: 1.35; }
.post-card p { margin: 0; font-size: .95rem; }
.post-card .tag { align-self: flex-start; font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; color: var(--lav-ink); background: var(--mint); padding: 4px 8px; }
.read-more { margin-top: auto; font-family: var(--pixel); font-weight: 600; font-size: .9rem; color: var(--lav); }

.article-header { margin-bottom: 36px; padding-bottom: 28px; border-bottom: 1px solid var(--line); }
.article-header h1 { font-size: clamp(1.8rem, 4vw, 2.7rem); }
.article-author { font-size: .92rem; color: var(--muted); margin-bottom: 10px; }
.article-meta { display: flex; gap: 18px; font-family: var(--mono); font-size: .8rem; color: var(--muted); }
.article-body { font-size: 1.05rem; }
.article-body h2 { margin-top: 48px; }
.article-body table { width: 100%; border-collapse: collapse; margin: 24px 0; font-size: .93rem; background: var(--bg-2); }
.article-body th, .article-body td { border-bottom: 1px solid var(--line) !important; padding: 12px !important; text-align: left; color: var(--ink-2) !important; background: transparent !important; }
.article-body th { color: var(--ink) !important; background: var(--bg-3) !important; }
.article-body tr *[style*="color"] { color: inherit !important; }
.faq-item { border-top: 1px solid var(--line); padding: 4px 0 6px; }
.faq-item h3 { margin-top: 18px; font-size: 1.05rem; }
.article-disclaimer { margin-top: 48px; padding: 18px 20px; background: var(--bg-2); font-size: .86rem; color: var(--muted); }
.related-posts { margin-top: 44px; }
.related-posts h2 { margin-top: 0; font-size: 1.1rem; }
.related-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.related-list li { margin: 0; padding: 0; border-bottom: 1px solid var(--line); }
.related-list a { display: block; padding: 14px 0; text-decoration: none; color: var(--ink); }
.related-list a::after { content: " →"; color: var(--lav); }

/* ---------- footer ---------- */
.site-footer { position: relative; z-index: 1; padding: 40px clamp(20px, 5vw, 64px); border-top: 1px solid var(--line); font-size: .82rem; color: var(--muted); }
.site-footer .wrap { max-width: 1200px; margin: 0 auto; display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.site-footer .wrap > span:last-child { display: flex; flex-wrap: wrap; gap: 8px 16px; }
.site-footer a { text-decoration: none; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; font-size: .74rem; }
.site-footer a:hover { color: var(--lav); }

/* ---------- waitlist (shared script) ---------- */
.waitlist-form { display: flex; gap: 0; margin-top: 18px; max-width: 480px; border: 1.5px solid var(--lav); box-shadow: 5px 5px 0 rgba(205,180,245,.22); }
.waitlist-form input { flex: 1; min-width: 0; font: 400 1rem var(--sans); color: var(--ink); padding: 14px 16px; border: 0; background: rgba(14,14,17,.7); }
.waitlist-form input::placeholder { color: var(--muted); }
.waitlist-form input:focus { outline: none; background: rgba(205,180,245,.08); }
.waitlist-form button { font: 600 .9rem var(--pixel); letter-spacing: 0; border: 0; padding: 0 18px; background: var(--lav); color: var(--lav-ink); cursor: pointer; white-space: nowrap; }
.waitlist-form button:hover { background: #DCCBF8; }
.waitlist-form button:disabled { opacity: .6; cursor: wait; }
.success-msg { display: none; margin-top: 18px; max-width: 480px; padding: 14px 16px; border: 1px solid var(--mint); color: var(--mint); font-family: var(--pixel-2); font-weight: 500; }
.waitlist-error { margin-top: 12px; max-width: 480px; padding: 11px 14px; border: 1px solid var(--warn); color: var(--warn); font-size: .88rem; }
.waitlist-error[hidden] { display: none; }
.waitlist-modal { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 16px; }
.waitlist-modal[hidden] { display: none; }
.waitlist-modal-backdrop { position: absolute; inset: 0; background: rgba(8,8,10,.7); backdrop-filter: blur(4px); }
.waitlist-modal-dialog { position: relative; width: min(500px, 100%); background: var(--bg-2); border: 1.5px solid var(--lav); box-shadow: 10px 10px 0 rgba(205,180,245,.2); padding: 34px 30px 28px; }
.waitlist-modal-dialog h2 { margin: 0 0 10px; font-size: 1.6rem; }
.waitlist-modal-tag { font-size: .74rem; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); margin-bottom: 14px; }
.waitlist-modal-tag::before { content: "[ "; color: var(--muted); } .waitlist-modal-tag::after { content: " ]"; color: var(--muted); }
.waitlist-modal-lead { color: var(--ink-2); font-size: .95rem; }
.waitlist-modal-close { position: absolute; top: 10px; right: 14px; border: 0; background: none; font: 400 1.4rem var(--pixel); cursor: pointer; color: var(--muted); }
.waitlist-modal-success { margin-top: 18px; padding: 14px; border: 1px solid var(--mint); color: var(--mint); }
.waitlist-modal-note { margin-top: 12px; font-size: .8rem; color: var(--muted); }
@media (max-width: 420px) { .waitlist-form { flex-direction: column; } .waitlist-form button { padding: 14px; } }
