/* Hush website. Same tokens as the app (porcelain / graphite, one cobalt accent).
   No web fonts, no trackers, no third-party requests. */

:root {
  --ground: #E4E5E8;
  --surface: #F6F6F7;
  --raised: #FFFFFF;
  --sunken: #EDEEF0;
  --line: #DFE0E3;
  --line-strong: #C8CACF;
  --ink: #17181C;
  --muted: #62666E;
  --faint: #A3A7AE;
  --accent: #1F63DA;
  --accent-ink: #1A56C0;
  --accent-soft: #E5EDFB;
  --on-accent: #FFFFFF;
  --warn: #A8502C;
  --shadow: 0 0 0 .5px rgba(0,0,0,.14), 0 32px 80px rgba(20,24,32,.16), 0 4px 12px rgba(20,24,32,.06);
  --grid: color-mix(in srgb, var(--ink) 7%, transparent);
  --grid-strong: color-mix(in srgb, var(--ink) 9%, transparent);
  --glow: color-mix(in srgb, var(--accent) 16%, transparent);
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "PingFang SC", "Hiragino Sans GB", "Helvetica Neue", "Microsoft YaHei", sans-serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --ground: #0D0E10;
    --surface: #18191C;
    --raised: #222327;
    --sunken: #121315;
    --line: #2A2B30;
    --line-strong: #3A3C42;
    --ink: #ECEDEF;
    --muted: #8E929A;
    --faint: #55585F;
    --accent: #3A80F0;
    --accent-ink: #86B2FF;
    --accent-soft: #17243B;
    --warn: #D08360;
    --shadow: 0 0 0 .5px rgba(255,255,255,.10), 0 32px 80px rgba(0,0,0,.5), 0 4px 12px rgba(0,0,0,.3);
  }
}

/* The privacy band is always graphite. */
.dark {
  --ground: #0D0E10; --surface: #18191C; --raised: #222327; --sunken: #121315;
  --line: #2A2B30; --line-strong: #3A3C42; --ink: #ECEDEF; --muted: #8E929A; --faint: #55585F;
  --accent: #3A80F0; --accent-ink: #86B2FF; --accent-soft: #17243B;
  color-scheme: dark;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { font-family: var(--sans); color: var(--ink); background: var(--surface); line-height: 1.5; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
img { display: block; }
.mono { font-family: var(--mono); }
.n { color: var(--accent-ink); }
.y { color: var(--muted); }
.wrap { max-width: 1280px; margin: 0 auto; padding: 0 40px; }
.grid-2 > *, .grid-dev > *, .grid-3 > *, .grid-5 > * { min-width: 0; }
.icon { width: 40px; height: 40px; }
.icon-sm { width: 24px; height: 24px; }
.icon-xs { width: 16px; height: 16px; }

/* Buttons: layered like a physical key: top highlight, hairline edge, tinted drop shadow. */
.btn { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 9px; height: 48px; padding: 0 22px 0 20px; border-radius: 12px; font-size: 15px; font-weight: 500; letter-spacing: -.005em; white-space: nowrap; cursor: pointer; transition: transform .18s cubic-bezier(.2,.8,.2,1), box-shadow .18s ease, background-color .18s ease, filter .18s ease; -webkit-tap-highlight-color: transparent; }
.btn svg { width: 17px; height: 17px; flex: none; }
.btn small { font-weight: 450; font-size: 12px; font-family: var(--mono); padding: 2px 7px; border-radius: 6px; }
.btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.btn:active { transform: translateY(1px) scale(.985); transition-duration: .06s; }

.btn-primary {
  color: var(--on-accent);
  background: linear-gradient(180deg, color-mix(in srgb, var(--accent) 86%, white) 0%, var(--accent) 55%, color-mix(in srgb, var(--accent) 88%, black) 100%);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.28),
    inset 0 -1px 0 rgba(0,0,0,.18),
    0 0 0 1px color-mix(in srgb, var(--accent) 70%, black),
    0 1px 2px rgba(20,40,90,.25),
    0 8px 20px -6px color-mix(in srgb, var(--accent) 70%, transparent);
  text-shadow: 0 -1px 0 rgba(0,0,0,.18);
}
.btn-primary small { background: rgba(255,255,255,.16); box-shadow: inset 0 0 0 .5px rgba(255,255,255,.25); text-shadow: none; }
.btn-primary:hover {
  transform: translateY(-1px);
  filter: brightness(1.05) saturate(1.05);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.32),
    inset 0 -1px 0 rgba(0,0,0,.18),
    0 0 0 1px color-mix(in srgb, var(--accent) 70%, black),
    0 2px 4px rgba(20,40,90,.22),
    0 14px 28px -8px color-mix(in srgb, var(--accent) 80%, transparent);
}
.btn-primary:active { box-shadow: inset 0 1px 3px rgba(0,0,0,.25), 0 0 0 1px color-mix(in srgb, var(--accent) 70%, black); filter: none; }

.btn-secondary {
  color: var(--ink);
  background: linear-gradient(180deg, var(--raised) 0%, color-mix(in srgb, var(--raised) 92%, var(--sunken)) 100%);
  box-shadow:
    inset 0 1px 0 color-mix(in srgb, white 70%, transparent),
    0 0 0 .5px var(--line-strong),
    0 1px 2px rgba(20,24,32,.08),
    0 6px 16px -8px rgba(20,24,32,.18);
}
.btn-secondary:hover { transform: translateY(-1px); box-shadow: inset 0 1px 0 color-mix(in srgb, white 70%, transparent), 0 0 0 .5px var(--line-strong), 0 2px 4px rgba(20,24,32,.08), 0 12px 24px -10px rgba(20,24,32,.25); }
.btn-secondary:active { box-shadow: inset 0 1px 2px rgba(20,24,32,.12), 0 0 0 .5px var(--line-strong); }
.btn-sm { height: 32px; padding: 0 14px; border-radius: 9px; font-size: 13px; }
@media (prefers-color-scheme: dark) {
  .btn-secondary { box-shadow: inset 0 1px 0 rgba(255,255,255,.06), 0 0 0 .5px var(--line-strong), 0 1px 2px rgba(0,0,0,.4), 0 6px 16px -8px rgba(0,0,0,.6); }
  .btn-secondary:hover { box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 0 0 .5px var(--line-strong), 0 2px 4px rgba(0,0,0,.4), 0 12px 24px -10px rgba(0,0,0,.7); }
}
@media (prefers-reduced-motion: reduce) { .btn, .card { transition: none; } .btn:hover, .card:hover { transform: none; } }

/* Grid backgrounds: hairline squares that fade out toward the edges. */
.gridded { position: relative; isolation: isolate; }
.gridded::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 48px 48px;
  background-position: center -1px;
  -webkit-mask-image: radial-gradient(ellipse 75% 70% at 50% 40%, #000 35%, transparent 100%);
          mask-image: radial-gradient(ellipse 75% 70% at 50% 40%, #000 35%, transparent 100%);
}
/* Every fourth line a little stronger, like graph paper. */
.gridded.major::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: linear-gradient(var(--grid-strong) 1px, transparent 1px), linear-gradient(90deg, var(--grid-strong) 1px, transparent 1px);
  background-size: 192px 192px;
  background-position: center -1px;
  -webkit-mask-image: radial-gradient(ellipse 60% 55% at 50% 40%, #000 20%, transparent 100%);
          mask-image: radial-gradient(ellipse 60% 55% at 50% 40%, #000 20%, transparent 100%);
}
.glow { position: absolute; z-index: -1; pointer-events: none; border-radius: 50%; background: radial-gradient(circle, var(--glow) 0%, transparent 65%); }

/* Sticky navigation */
.nav { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--ground) 78%, transparent); -webkit-backdrop-filter: saturate(1.4) blur(14px); backdrop-filter: saturate(1.4) blur(14px); border-bottom: .5px solid color-mix(in srgb, var(--line-strong) 60%, transparent); }

/* Keys and chips */
kbd, .key { display: inline-flex; align-items: center; justify-content: center; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 6px; background: var(--raised); box-shadow: 0 0 0 .5px var(--line-strong), 0 1px 0 var(--line-strong); font-family: var(--mono); font-size: 11px; color: var(--muted); white-space: nowrap; }
.chip { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px; border-radius: 7px; background: var(--raised); box-shadow: 0 0 0 .5px var(--line-strong); font-size: 12px; color: var(--muted); white-space: nowrap; }
.chip.on { color: var(--ink); }
.chip.on::before { content: ""; width: 12px; height: 12px; border-radius: 3px; background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M3 6.2 5 8.2 9 3.8' fill='none' stroke='white' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/12px no-repeat; }
.chip.off::before { content: ""; width: 12px; height: 12px; border-radius: 3px; box-shadow: inset 0 0 0 1px var(--line-strong); }
.pill { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px 0 7px; border-radius: 13px; background: var(--raised); box-shadow: 0 0 0 1px var(--line); font-size: 12px; color: var(--muted); white-space: nowrap; }
.pill.on { box-shadow: 0 0 0 1px var(--accent); color: var(--ink); }
.pill.ghost { background: none; box-shadow: none; }
.pill img { width: 15px; height: 15px; }

/* Strength meter */
.meter { display: flex; gap: 4px; flex: 1; }
.meter i { flex: 1; height: 3px; border-radius: 2px; background: var(--line); }
.meter[data-level="4"] i, .meter[data-level="3"] i:nth-child(-n+3) { background: var(--accent); }
.meter[data-level="2"] i:nth-child(-n+2) { background: var(--muted); }
.meter[data-level="1"] i:first-child { background: var(--warn); }

/* Header */
.top { display: flex; align-items: center; gap: 12px; height: 64px; }
.top .brand { display: flex; align-items: center; gap: 10px; font-size: 19px; font-weight: 600; letter-spacing: -.01em; }
.top .brand img { width: 34px; height: 34px; }
.top .version { height: 22px; padding: 0 9px; border-radius: 11px; background: var(--raised); box-shadow: 0 0 0 .5px var(--line-strong); display: inline-flex; align-items: center; font: 11px var(--mono); color: var(--muted); }
.top nav { margin-left: auto; display: flex; gap: 24px; font-size: 14px; color: var(--muted); }
.top nav a:hover { color: var(--ink); }

/* Hero */
.hero { background: var(--ground); overflow: hidden; }
.hero .glow { width: 900px; height: 900px; right: -220px; top: -120px; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 520px) 1fr; gap: 64px; align-items: center; padding: 96px 0 40px; }
.hero h1 { font-size: 62px; font-weight: 500; line-height: 1.12; letter-spacing: -.025em; }
.hero p.lead { margin-top: 26px; font-size: 19px; line-height: 1.65; color: var(--muted); }
.hero .actions { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 12px; }
.hero .facts { margin-top: 22px; display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: 12px; color: var(--muted); }
.hero-visual { position: relative; padding-top: 52px; }
.hotkey { position: absolute; left: -12px; top: 0; display: flex; align-items: center; gap: 6px; padding: 10px 14px; border-radius: 14px; background: var(--raised); box-shadow: 0 0 0 .5px var(--line-strong), 0 10px 30px rgba(20,24,32,.10); font-size: 13px; color: var(--muted); }
.hotkey span { margin-left: 4px; }
.toast { position: absolute; right: -8px; bottom: -58px; display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-radius: 14px; background: var(--raised); box-shadow: 0 0 0 .5px var(--line-strong), 0 14px 36px rgba(20,24,32,.14); font-size: 13px; }
.toast img { width: 22px; height: 22px; }

/* The app panel mock-up */
.panel { width: 620px; max-width: 100%; border-radius: 14px; background: var(--surface); box-shadow: var(--shadow); overflow: hidden; }
.panel .modes { display: flex; align-items: center; justify-content: space-between; padding: 12px 14px; }
.tabs { display: flex; gap: 2px; }
.tab { display: inline-flex; align-items: center; gap: 7px; height: 30px; padding: 0 11px 0 8px; border-radius: 8px; font-size: 13px; color: var(--muted); white-space: nowrap; }
.tab img { width: 18px; height: 18px; opacity: .55; filter: saturate(.2); }
.tab.on { background: var(--raised); color: var(--ink); box-shadow: 0 0 0 .5px var(--line-strong), 0 1px 2px rgba(0,0,0,.06); }
.tab.on img { opacity: 1; filter: none; }
.preset { display: flex; align-items: center; gap: 7px; font-size: 12px; color: var(--muted); }
.stage { margin: 0 14px; padding: 30px 24px; border-radius: 10px; background: var(--sunken); box-shadow: inset 0 0 0 .5px var(--line); display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.stage .secret { font-family: var(--mono); font-size: 30px; letter-spacing: .04em; line-height: 1.1; white-space: nowrap; overflow: hidden; }
.stage button { width: 34px; height: 34px; border: 0; border-radius: 8px; background: var(--raised); box-shadow: 0 0 0 .5px var(--line-strong); display: flex; align-items: center; justify-content: center; cursor: pointer; }
.stage button img { width: 20px; height: 20px; }
.stage button:hover { background: var(--surface); }
.strength { padding: 18px 28px 22px; display: flex; align-items: center; gap: 14px; }
.strength img { width: 30px; height: 30px; }
.strength .rows { flex: 1; display: flex; flex-direction: column; gap: 8px; }
.strength .labels { display: flex; justify-content: space-between; align-items: baseline; font-size: 12px; color: var(--muted); }
.strength b { font-size: 13px; color: var(--ink); font-weight: 500; }
.options { border-top: .5px solid var(--line-strong); padding: 18px 28px 20px; display: flex; flex-direction: column; gap: 14px; }
.slider { display: flex; align-items: center; gap: 16px; font-size: 12px; color: var(--muted); }
.slider .track { flex: 1; position: relative; height: 4px; border-radius: 2px; background: var(--line); }
.slider .track::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: var(--fill, 26%); border-radius: 2px; background: var(--accent); }
.slider .track::after { content: ""; position: absolute; left: var(--fill, 26%); top: 50%; width: 18px; height: 18px; margin: -9px 0 0 -9px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 .5px rgba(0,0,0,.2), 0 1px 3px rgba(0,0,0,.18); }
.slider .value { width: 36px; height: 24px; display: flex; align-items: center; justify-content: center; border-radius: 6px; background: var(--raised); box-shadow: 0 0 0 .5px var(--line-strong); font: 13px var(--mono); color: var(--ink); }
.charsets { display: flex; flex-wrap: wrap; gap: 6px; padding-left: 56px; }
.hints { display: flex; align-items: center; justify-content: space-between; padding: 10px 18px; border-top: .5px solid var(--line-strong); background: var(--sunken); font-size: 12px; color: var(--muted); }
.hints > div { display: flex; gap: 16px; }
.hint { display: inline-flex; align-items: center; gap: 6px; }
.hint.primary kbd { background: var(--accent); color: var(--on-accent); box-shadow: none; }
.hint.primary { color: var(--ink); }

/* Stats under the hero */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; border-top: .5px solid var(--line-strong); padding: 36px 0 64px; margin-top: 56px; }
.stats strong { display: block; font-size: 40px; font-weight: 500; letter-spacing: -.02em; }
.stats .accent { color: var(--accent-ink); }
.stats span { font-size: 13px; color: var(--muted); }

/* Sections */
section.block { padding: 120px 0 0; }
.head { display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; margin-bottom: 48px; }
.head h2, h2.solo { font-size: 44px; font-weight: 500; letter-spacing: -.02em; line-height: 1.15; }
h2.solo { margin-bottom: 48px; }
.head p { max-width: 440px; font-size: 15px; line-height: 1.7; color: var(--muted); }
.card { padding: 28px; border-radius: 18px; background: var(--raised); box-shadow: 0 0 0 .5px var(--line-strong), 0 1px 2px rgba(20,24,32,.04); display: flex; flex-direction: column; gap: 8px; transition: transform .25s cubic-bezier(.2,.8,.2,1), box-shadow .25s ease; }
.card:hover { transform: translateY(-2px); box-shadow: 0 0 0 .5px var(--line-strong), 0 14px 34px -14px rgba(20,24,32,.22); }
.card h3 { font-size: 19px; font-weight: 500; letter-spacing: -.01em; }
.card > img { margin-bottom: 6px; }
.card p { font-size: 13px; line-height: 1.6; color: var(--muted); }
.card .demo { margin-top: auto; padding-top: 18px; display: flex; flex-direction: column; gap: 8px; }
.big h3 { font-size: 28px; letter-spacing: -.015em; }
.sunk { padding: 14px; border-radius: 12px; background: var(--sunken); display: flex; flex-direction: column; gap: 10px; }

.grid-5 { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.grid-dev { display: grid; grid-template-columns: 1.25fr 1fr; gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }

.mode { padding: 22px; gap: 14px; border-radius: 16px; }
.mode .title { display: flex; align-items: center; gap: 9px; font-size: 15px; font-weight: 500; }
.mode .sample { min-height: 60px; font-family: var(--mono); font-size: 15px; line-height: 1.5; word-break: break-all; }
.mode .sample.pin { font-size: 26px; letter-spacing: .18em; display: flex; align-items: center; }
.mode .sample.keytext { font-size: 13px; }
.mode .note { font-size: 12px; color: var(--muted); }

.shortcuts { display: grid; grid-template-columns: auto 1fr; column-gap: 20px; row-gap: 14px; align-items: center; font-size: 13px; margin-top: 20px; }
.shortcuts .keys { display: flex; gap: 4px; align-items: center; color: var(--faint); }

.menubar-card { position: relative; border-radius: 24px; background: var(--ground); box-shadow: inset 0 0 0 .5px var(--line-strong); overflow: hidden; display: flex; flex-direction: column; }
.menubar { height: 28px; display: flex; align-items: center; justify-content: flex-end; gap: 16px; padding: 0 16px; background: color-mix(in srgb, var(--raised) 55%, transparent); border-bottom: .5px solid var(--line-strong); font-size: 13px; }
.dots { display: inline-flex; align-items: center; gap: 3px; height: 20px; padding: 0 7px; border-radius: 5px; background: color-mix(in srgb, var(--ink) 12%, transparent); }
.dots i { display: block; border-radius: 50%; background: var(--ink); }
.dots.plain { background: var(--raised); width: 40px; justify-content: center; }
.quick { margin: 6px 20px 0 auto; width: 384px; max-width: calc(100% - 40px); padding: 10px; border-radius: 14px; background: var(--surface); box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 12px; }
.quick .tabs { justify-content: space-between; }
.quick .stage { margin: 0; padding: 18px 14px 16px; flex-direction: column; align-items: stretch; gap: 14px; }
.quick .secret { font-size: 21px; letter-spacing: .02em; }
.quick .row { display: flex; align-items: center; gap: 10px; font-size: 12px; }
.quick .btns { display: grid; grid-template-columns: 1fr auto; gap: 8px; }
.quick .btns span { height: 34px; border-radius: 8px; display: flex; align-items: center; justify-content: center; padding: 0 14px; font-size: 13px; font-weight: 500; }
.quick .btns .p { background: var(--accent); color: var(--on-accent); }
.quick .btns .s { background: var(--raised); box-shadow: 0 0 0 .5px var(--line-strong); }
.quick .pills { display: flex; flex-wrap: wrap; gap: 6px; padding-top: 10px; border-top: .5px solid var(--line); }
.banner { display: flex; align-items: center; gap: 8px; padding: 9px 10px; border-radius: 9px; background: var(--accent-soft); color: var(--accent-ink); font-size: 12px; }
.banner span { flex: 1; }
.banner b { font-weight: 500; }
.menubar-card .copy { padding: 36px 40px 40px; margin-top: auto; display: flex; flex-direction: column; gap: 10px; }
.menubar-card .states { display: flex; flex-wrap: wrap; gap: 12px 28px; margin-top: 10px; font-size: 12px; color: var(--muted); }
.menubar-card .states > span { display: flex; align-items: center; gap: 10px; }

.preset-row { display: flex; align-items: center; gap: 11px; height: 44px; padding: 0 10px; border-radius: 9px; }
.preset-row.hover { background: var(--raised); box-shadow: 0 0 0 .5px var(--line); }
.preset-row img { width: 22px; height: 22px; }
.preset-row div { flex: 1; display: flex; flex-direction: column; }
.preset-row b { font-size: 13px; font-weight: 400; }
.preset-row small { font-size: 11px; color: var(--muted); }
.list { display: flex; flex-direction: column; gap: 1px; padding: 4px; border-radius: 12px; background: var(--surface); box-shadow: inset 0 0 0 .5px var(--line); }

.large { margin-top: 24px; padding: 40px; border-radius: 24px; background: var(--raised); box-shadow: 0 0 0 .5px var(--line-strong); display: grid; grid-template-columns: 300px 1fr 220px; gap: 40px; align-items: center; }
.groups { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.groups div { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.groups span { font: 34px var(--mono); padding: 12px 14px; border-radius: 12px; background: var(--sunken); }
.groups small { font: 11px var(--mono); color: var(--faint); }
.qr { display: flex; flex-direction: column; align-items: center; gap: 10px; font-size: 12px; color: var(--muted); }
.qr img { width: 180px; height: 180px; padding: 10px; border-radius: 12px; background: #fff; box-shadow: 0 0 0 .5px var(--line-strong); image-rendering: pixelated; }

.privacy { margin-top: 120px; padding: 110px 0; background: var(--ground); color: var(--ink); overflow: hidden; }
.privacy .glow { width: 1000px; height: 700px; left: 50%; top: -260px; margin-left: -500px; }
.privacy .card { background: var(--surface); }

.terminal { border-radius: 20px; overflow: hidden; background: #141518; box-shadow: 0 0 0 .5px var(--line-strong), 0 20px 50px rgba(20,24,32,.14); }
.terminal .bar { height: 38px; display: flex; align-items: center; gap: 8px; padding: 0 16px; background: #1D1E22; color: #8E929A; font-size: 12px; }
.terminal .bar i { width: 11px; height: 11px; border-radius: 50%; background: #3A3C42; }
.terminal .bar span { flex: 1; text-align: center; margin-right: 40px; }
.terminal pre { padding: 24px 26px 28px; font: 14px/1.9 var(--mono); color: #ECEDEF; white-space: pre-wrap; word-break: break-all; }
.terminal .p { color: #55585F; }
.terminal .c { color: #8E929A; }
.terminal .d { color: #86B2FF; }
.code { padding: 12px 14px; border-radius: 10px; background: var(--sunken); font: 12px/1.8 var(--mono); word-break: break-all; }
.tag-soft { height: 32px; padding: 0 12px; border-radius: 9px; background: var(--accent-soft); color: var(--accent-ink); display: inline-flex; align-items: center; font-size: 12px; }
.swatches { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.swatches div { padding: 14px 12px; border-radius: 10px; font: 14px var(--mono); }

.closing { margin-top: 120px; padding: 130px 0 70px; background: var(--ground); text-align: center; overflow: hidden; }
.closing .glow { width: 760px; height: 760px; left: 50%; top: -120px; margin-left: -380px; }
.closing img.logo { width: 96px; height: 96px; margin: 0 auto 26px; }
.closing h2 { font-size: 52px; font-weight: 500; letter-spacing: -.025em; line-height: 1.15; }
.closing p.sub { margin-top: 20px; font-size: 19px; color: var(--muted); }
.closing .actions { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.closing .install { margin: 28px auto 0; max-width: 560px; font-size: 13px; line-height: 1.7; color: var(--muted); }
footer { padding: 48px 0 40px; font-size: 12px; line-height: 1.8; color: var(--faint); text-align: center; background: var(--ground); }
footer a { color: var(--muted); text-decoration: underline; text-underline-offset: 2px; }

/* Responsive */
@media (max-width: 1180px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-visual { max-width: 640px; }
  .grid-5 { grid-template-columns: repeat(3, 1fr); }
  .grid-2, .grid-dev, .large { grid-template-columns: 1fr; }
  .large { justify-items: start; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 760px) {
  .wrap { padding: 0 20px; }
  .top nav { display: none; }
  .hero h1 { font-size: 40px; }
  .hero p.lead { font-size: 16px; }
  .hero-visual { zoom: .56; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stats strong { font-size: 30px; }
  .head { flex-direction: column; align-items: flex-start; }
  .head h2, h2.solo, .closing h2 { font-size: 32px; }
  .grid-5, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .quick { zoom: .85; }
  .groups span { font-size: 28px; }
  section.block { padding-top: 80px; }
}
[id] { scroll-margin-top: 80px; }

/* Legal pages */
.legal { padding: 72px 0 96px; background: var(--ground); }
.legal::before { -webkit-mask-image: radial-gradient(ellipse 80% 40% at 50% 0%, #000 20%, transparent 100%); mask-image: radial-gradient(ellipse 80% 40% at 50% 0%, #000 20%, transparent 100%); }
.legal article { max-width: 720px; margin: 0 auto; padding: 48px 52px; border-radius: 20px; background: var(--raised); box-shadow: 0 0 0 .5px var(--line-strong), 0 20px 50px -24px rgba(20,24,32,.25); font-size: 15px; line-height: 1.75; }
.legal h1 { font-size: 36px; font-weight: 500; letter-spacing: -.02em; }
.legal .updated { margin-top: 6px; font-size: 13px; color: var(--muted); }
.legal .summary { margin-top: 24px; padding: 14px 16px; border-radius: 12px; background: var(--accent-soft); color: var(--accent-ink); font-weight: 500; }
.legal h2 { margin-top: 40px; font-size: 21px; font-weight: 500; letter-spacing: -.01em; }
.legal h3 { margin-top: 22px; font-size: 15px; font-weight: 600; }
.legal p, .legal ul { margin-top: 8px; color: color-mix(in srgb, var(--ink) 82%, var(--muted)); }
.legal ul { padding-left: 20px; }
.legal li + li { margin-top: 6px; }
.legal a { color: var(--accent-ink); text-decoration: underline; text-underline-offset: 2px; }
@media (max-width: 760px) { .legal article { padding: 32px 22px; } .legal h1 { font-size: 28px; } }
