/* Silicove site. Idea: everything is measured against one 32 GB Mac mini.
   Tokens first; nothing below this block uses a literal colour or font. */
:root {
  --ground: #0B1514;      /* deep night behind Vee */
  --surface: #132322;
  --ink: #E4F0F0;
  --quiet: #A3BDB9;
  --line: #5E8F89;
  --hair: #24403D;
  --accent: #4FC7BA;      /* Vee's teal */
  --accent-ink: #0C1818;
  --link: #7FD8CC;
  --cove: #072624;        /* the deep water Vee floats in */
  --cove-ink: #E4F0F0;
  --cove-quiet: #A9CFC8;
  --cell-off: #1B4A46;
  --cell-on: #5ED1C2;
  --code-bg: #061A19;
  --code-ink: #E4F0F0;
  --ok: #4CC89C;
  --bad: #FF7B70;
  --focus: #E4F0F0;
  --shade: rgba(0, 0, 0, .4);
  --select-bg: #2F6763;
  --g-line: #0C1818; --g-body: #D8F0F0; --g-shade: #A8E4D8;   /* fixed: Vee keeps her colours */
  --f-display: "Pixelify Sans", "Courier New", monospace;
  --f-body: "Figtree", "Segoe UI", "Helvetica Neue", sans-serif;
  --f-code: "JetBrains Mono", ui-monospace, Menlo, Consolas, monospace;
  --r1: 14px;
  --r2: 8px;
  --s1: 8px; --s2: 16px; --s3: 24px; --s4: 40px; --s5: 72px;
  --wrap: 1120px;
  color-scheme: dark;   /* one theme only: dark */
}

/* base */
[hidden] { display: none !important; }
html, body { overflow-x: clip; }
body { margin: 0; background: var(--ground); color: var(--ink); font: 400 17px/1.55 var(--f-body); -webkit-font-smoothing: antialiased; font-synthesis: none; }
::selection { background: var(--select-bg); color: var(--ink); }
input, select, textarea { caret-color: var(--accent); accent-color: var(--accent); }
html { scrollbar-color: var(--line) var(--ground); }
img { max-width: 100%; height: auto; }
h1, h2, h3 { font-family: var(--f-display); font-weight: 600; color: inherit; line-height: 1.1; margin: 0; text-wrap: balance; overflow-wrap: break-word; min-width: 0; letter-spacing: 0; }
h1 { font-size: clamp(40px, 6vw, 72px); }
h2 { font-size: clamp(28px, 3.6vw, 42px); }
h3 { font-size: 22px; }
p { margin: 0; text-wrap: pretty; max-width: 65ch; }
ul { margin: 0; padding: 0; }
a { color: var(--link); text-decoration-line: underline; text-decoration-color: currentColor; text-decoration-thickness: 1px; text-underline-offset: 3px; transition: text-decoration-color .15s ease; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
code, pre { font-family: var(--f-code); font-size: 15px; }
.num { font-variant-numeric: tabular-nums; }
.wrap { max-width: var(--wrap); margin-inline: auto; padding-left: max(20px, env(safe-area-inset-left, 0px)); padding-right: max(20px, env(safe-area-inset-right, 0px)); }
.skip { position: absolute; left: 12px; top: -60px; z-index: 20; background: var(--surface); color: var(--ink); padding: 12px 16px; border: 2px solid var(--line); border-radius: var(--r2); }
.skip:focus { top: 12px; }

/* header */
.top { background: var(--cove); color: var(--cove-ink); }
.top .wrap { display: flex; align-items: center; gap: var(--s3); min-height: 72px; flex-wrap: wrap; padding-block: 8px; }
.word { display: inline-flex; align-items: center; gap: 10px; color: var(--cove-ink); text-decoration: none; font: 600 24px/1 var(--f-display); min-height: 44px; }

.top nav { display: flex; gap: 4px 18px; flex-wrap: wrap; margin-right: auto; }
.top nav a { color: var(--cove-ink); text-decoration-color: transparent; min-height: 44px; display: inline-flex; align-items: center; font-weight: 500; }
.top nav a:hover { text-decoration-color: var(--cove-quiet); }
.top nav a[aria-current="page"] { text-decoration-color: var(--cove-ink); text-decoration-thickness: 2px; font-weight: 700; }
.top .acts { display: flex; gap: 10px; align-items: center; }
.top :focus-visible { outline-color: var(--cove-ink); }

/* buttons: one primary style */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 20px; border-radius: var(--r2); border: 2px solid var(--line); background: var(--surface); color: var(--ink); font: 600 16px/1.1 var(--f-body); text-decoration: none; cursor: pointer; transition: transform .12s cubic-bezier(0.23, 1, 0.32, 1), background-color .15s ease; }
.btn:hover { background: var(--ground); }
.btn:active { transform: scale(.97); }
.btn.go { background: var(--accent); color: var(--accent-ink); border-color: var(--accent-ink); }
.btn.go:hover { background: var(--cell-on); }
.on-cove .btn:not(.go), .top .btn:not(.go) { background: transparent; color: var(--cove-ink); border-color: var(--cove-ink); }
.on-cove .btn:not(.go):hover, .top .btn:not(.go):hover { background: var(--cell-off); }
.icon { width: 48px; padding: 0; }
.icon svg { width: 20px; height: 20px; }

/* page blocks */
main section { padding-block: var(--s5); }
main section + section { border-top: 2px solid var(--hair); }
.head { display: grid; gap: var(--s2); margin-bottom: var(--s4); max-width: 68ch; }
.head p { color: var(--quiet); font-size: 19px; }
.lede { font-size: 20px; }
.more { margin-top: var(--s3); font-weight: 600; }
.quiet { color: var(--quiet); }
.split { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: var(--s4); align-items: start; }
@media (max-width: 860px) { .split { grid-template-columns: minmax(0, 1fr); } }
.stack { display: grid; gap: var(--s2); }

/* hero */
.hero { background: var(--cove); color: var(--cove-ink); padding-block: var(--s4) var(--s5); }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: var(--s4); align-items: center; }
.hero .lede { color: var(--cove-quiet); margin-top: var(--s2); }
.hero .ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: var(--s3); }
.hero .fine { color: var(--cove-quiet); font-size: 15px; margin-top: var(--s2); }
.hero a:not(.btn) { color: var(--cove-ink); }
@media (max-width: 860px) { .hero .wrap { grid-template-columns: minmax(0, 1fr); } }

/* signature: the machine's 32 GB, one cell per GB */
.machine { display: grid; gap: var(--s2); justify-items: start; }
.vee-float { width: clamp(120px, 16vw, 180px); image-rendering: pixelated; margin-left: 12%; }
.mem { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 6px; width: 100%; max-width: 440px; padding: 14px; border: 2px solid var(--cove-quiet); border-radius: var(--r1); }
.mem i { aspect-ratio: 1; background: var(--cell-off); border: 2px solid var(--cell-off); transition: background-color .15s ease, transform .2s cubic-bezier(0.23, 1, 0.32, 1); }
.mem i.on { background: var(--cell-on); border-color: var(--cove-ink); }
.mem-cap { color: var(--cove-quiet); font-size: 15px; max-width: 440px; min-height: 3.2em; }
.mem-cap b { color: var(--cove-ink); }
.pick { display: flex; flex-wrap: wrap; gap: 8px; }
.pick button { min-height: 44px; padding: 0 14px; border-radius: var(--r2); border: 2px solid var(--cove-quiet); background: transparent; color: var(--cove-ink); font: 600 15px/1 var(--f-body); cursor: pointer; transition: transform .12s cubic-bezier(0.23, 1, 0.32, 1), background-color .15s ease; }
.pick button:active { transform: scale(.97); }
.pick button[aria-pressed="true"] { background: var(--cell-on); color: var(--accent-ink); border-color: var(--cove-ink); }
.pick button:focus-visible { outline-color: var(--cove-ink); }
.js .mem.fill i { opacity: 0; transform: scale(.95); }
.js .mem.fill.go i { opacity: 1; transform: none; transition: opacity .3s cubic-bezier(0.23, 1, 0.32, 1), transform .3s cubic-bezier(0.23, 1, 0.32, 1); transition-delay: calc(var(--k) * 18ms); }

/* code */
pre.code { background: var(--code-bg); color: var(--code-ink); border-radius: var(--r1); padding: 18px 20px; margin: 0; overflow-x: auto; line-height: 1.6; }
pre.code .c { color: var(--cove-quiet); }

/* tables */
.tbl { overflow-x: auto; border: 2px solid var(--line); border-radius: var(--r1); background: var(--surface); }
table { border-collapse: collapse; width: 100%; min-width: 560px; font-size: 16px; }
th, td { text-align: left; padding: 14px 16px; border-bottom: 1px solid var(--hair); vertical-align: top; }
th { font: 600 15px/1.3 var(--f-body); color: var(--quiet); }
tbody tr:last-child td { border-bottom: 0; }
td.n, th.n { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
tr.us td { font-weight: 600; }
tr.us td:first-child { color: var(--ink); }
tr.group th { font: 600 14px/1.3 var(--f-body); letter-spacing: .04em; color: var(--quiet); background: var(--ground); padding-block: 12px; }
tr.small td, tr.small th { font-size: 15px; padding-block: 10px; }
.ph { border: 2px dashed var(--quiet); border-radius: var(--r1); padding: var(--s3); color: var(--quiet); display: grid; place-items: center; text-align: center; min-height: 160px; background: var(--surface); }
.ph.founder { min-height: 220px; max-width: 260px; width: 100%; justify-self: center; }
.cap { color: var(--quiet); font-size: 15px; margin-top: var(--s2); }
.tbl .btn { min-height: 44px; padding: 0 14px; font-size: 15px; white-space: nowrap; }

/* lists of facts */
.facts { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s3) var(--s4); }
.facts li { display: grid; gap: 6px; align-content: start; }
.facts h3 { font-size: 22px; }
.facts p { color: var(--quiet); }
@media (max-width: 700px) { .facts { grid-template-columns: minmax(0, 1fr); } }
.plain { list-style: none; display: grid; gap: 12px; }
.plain li { padding-left: 22px; position: relative; }
.plain li::before { content: ""; position: absolute; left: 0; top: .55em; width: 10px; height: 10px; background: var(--accent); }

/* panel: one surface, one radius */
.panel { background: var(--surface); border: 2px solid var(--line); border-radius: var(--r1); padding: var(--s3); display: grid; gap: var(--s2); box-shadow: 0 8px 24px var(--shade); }
.panel h2 { font-size: 28px; }
.two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s3); }
@media (max-width: 760px) { .two { grid-template-columns: minmax(0, 1fr); } }

/* calculator */
.calc { display: grid; gap: var(--s3); }
.seg { display: flex; flex-wrap: wrap; gap: 8px; }
.seg button { min-height: 44px; padding: 0 14px; border-radius: var(--r2); border: 2px solid var(--line); background: var(--surface); color: var(--ink); font: 600 15px/1 var(--f-body); cursor: pointer; transition: transform .12s cubic-bezier(0.23, 1, 0.32, 1), background-color .15s ease; }
.seg button:active { transform: scale(.97); }
.seg button[aria-pressed="true"] { background: var(--accent); color: var(--accent-ink); }
.slider { display: grid; gap: 6px; }
.slider label { font-weight: 600; }
.slider input { width: 100%; min-height: 44px; }
.bars { display: grid; gap: var(--s2); }
.bar-lab { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.bar-lab b { font-variant-numeric: tabular-nums; }
.bar { height: 22px; border: 2px solid var(--line); border-radius: var(--r2); overflow: hidden; background: var(--ground); }
.bar i { display: block; height: 100%; width: 100%; transform-origin: left; transition: transform .25s cubic-bezier(0.77, 0, 0.175, 1); }
.bar.us i { background: var(--accent); }
.bar.them i { background: var(--quiet); }
.verdict { font: 600 24px/1.2 var(--f-display); }

/* faq */
.faq { display: grid; gap: 12px; max-width: 820px; }
.faq details { background: var(--surface); border: 2px solid var(--line); border-radius: var(--r1); }
.faq summary { cursor: pointer; padding: 16px 20px; min-height: 44px; font: 600 19px/1.3 var(--f-body); list-style: none; display: flex; justify-content: space-between; gap: 16px; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font: 600 24px/1 var(--f-display); color: var(--link); }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { padding: 0 20px 18px; color: var(--quiet); }

/* form */
form.join { display: grid; gap: var(--s3); }
.field { display: grid; gap: 8px; }
.field label { font-weight: 600; }
.field input, .field select { font: 17px var(--f-body); min-height: 48px; padding: 0 14px; border-radius: var(--r2); border: 2px solid var(--line); background: var(--ground); color: var(--ink); width: 100%; min-width: 0; }
.field .err { color: var(--bad); font-size: 15px; min-height: 1.4em; }
.done { display: flex; gap: 14px; align-items: center; }
.done img { width: 72px; image-rendering: pixelated; }
.vee { image-rendering: pixelated; display: block; }

/* footer */
footer { background: var(--cove); color: var(--cove-quiet); padding-block: var(--s4); font-size: 15px; }
footer .wrap { display: grid; gap: var(--s2); }
footer nav { display: flex; flex-wrap: wrap; gap: 4px 20px; }
footer a { color: var(--cove-ink); min-height: 44px; display: inline-flex; align-items: center; }
footer :focus-visible { outline-color: var(--cove-ink); }
.strip { display: grid; grid-template-columns: repeat(32, minmax(0, 1fr)); gap: 3px; max-width: 320px; }
.strip i { aspect-ratio: 1; background: var(--cell-off); }
.strip i:nth-child(-n+12) { background: var(--cell-on); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0s !important; transition-delay: 0s !important; animation: none !important; }
  .js .mem.fill i { opacity: 1; transform: none; }
}

/* wordmark ghost, drawn from Vee's sprite */
.ghost { width: 32px; height: 30px; flex: none; }
.ghost .gl { fill: var(--g-line); } .ghost .gb { fill: var(--g-body); } .ghost .gs { fill: var(--g-shade); }
