/* Hush site — "Braise" palette, no external requests. */
:root {
  --bg: #14110e;
  --bg-2: #1a1714;
  --surface: #1f1b16;
  --surface-2: #26211b;
  --line: #342d25;
  --line-2: #463c31;
  --text: #eeeae4;
  --bright: #fffaf2;
  --dim: #b3a998;
  --muted: #7a7166;
  --accent: #d7af87;
  --accent-hi: #f6dcb4;
  --copper: #b5815a;
  --green: #afd787;
  --red: #d78787;
  --amber: #ffd787;
  --radius: 14px;
  --sans: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, Consolas, "DejaVu Sans Mono", "Liberation Mono", monospace;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: var(--sans); font-size: 17px; line-height: 1.6;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hi); }
h1, h2, h3 { color: var(--bright); line-height: 1.12; margin: 0; letter-spacing: -0.02em; text-wrap: balance; }
h1 { font-size: clamp(38px, 5.4vw, 68px); font-weight: 700; }
h2 { font-size: clamp(30px, 3.8vw, 46px); font-weight: 700; margin-bottom: 18px; }
h3 { font-size: 20px; font-weight: 650; letter-spacing: -0.01em; }
p { margin: 0 0 14px; }
em { font-style: normal; color: var(--accent-hi); }
code, kbd { font-family: var(--mono); font-size: .88em; background: var(--surface-2); border: 1px solid var(--line); border-radius: 6px; padding: 1px 6px; color: var(--accent-hi); }
kbd { box-shadow: 0 1px 0 var(--line-2); }
.sr-only, .hp { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { width: min(1120px, 100% - 48px); margin-inline: auto; }
.wrap.narrow { width: min(660px, 100% - 48px); }
.center { text-align: center; }
.fine { font-size: 14px; color: var(--muted); }
.eyebrow { font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); font-weight: 600; margin-bottom: 14px; display: flex; align-items: center; gap: 10px; }
.eyebrow.center { justify-content: center; }
.ember { background: linear-gradient(180deg, var(--accent-hi), var(--accent) 55%, var(--copper)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--amber); box-shadow: 0 0 0 0 rgba(255, 215, 135, .6); animation: pulse 2.4s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(255, 215, 135, 0); } 100% { box-shadow: 0 0 0 0 rgba(255, 215, 135, 0); } }

/* ambient glow that follows the pointer */
.glow { position: fixed; inset: 0; pointer-events: none; z-index: 0;
  background: radial-gradient(520px 420px at var(--gx, 70%) var(--gy, 12%), rgba(215, 175, 135, .12), transparent 70%); transition: background-position .2s; }
main, header, footer { position: relative; z-index: 1; }

/* nav */
.nav { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 14px max(24px, calc((100% - 1120px) / 2)); background: linear-gradient(180deg, rgba(20,17,14,.92), rgba(20,17,14,.7)); backdrop-filter: blur(12px); border-bottom: 1px solid transparent; transition: border-color .3s; }
.nav.scrolled { border-color: var(--line); }
.brand { display: flex; align-items: center; gap: 10px; color: var(--bright); font-weight: 700; font-size: 22px; letter-spacing: -0.03em; }
.brand:hover { color: var(--bright); }
.nav nav { display: flex; align-items: center; gap: 26px; font-size: 15px; }
.nav nav a:not(.btn) { color: var(--dim); }
.nav nav a:not(.btn):hover { color: var(--bright); }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; cursor: pointer; font: inherit; font-weight: 650; color: #1a1410; padding: 13px 22px; border-radius: 11px;
  background: linear-gradient(180deg, var(--accent-hi), var(--accent)); box-shadow: 0 1px 0 rgba(255,255,255,.35) inset, 0 8px 24px -8px rgba(215,175,135,.55); transition: transform .15s, box-shadow .2s, filter .2s; white-space: nowrap; }
.btn:hover { color: #1a1410; transform: translateY(-1px); filter: brightness(1.05); box-shadow: 0 1px 0 rgba(255,255,255,.4) inset, 0 12px 30px -8px rgba(215,175,135,.7); }
.btn:active { transform: translateY(0); }
.btn:disabled { opacity: .6; cursor: progress; }
.btn-small { padding: 8px 15px; font-size: 14px; border-radius: 9px; }
.btn-big { width: 100%; padding: 16px 22px; font-size: 17px; }
.link { background: none; border: 0; color: var(--accent); font: inherit; cursor: pointer; padding: 0; text-decoration: underline; text-underline-offset: 3px; }

/* hero */
.hero { width: min(1180px, 100% - 48px); margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 56px; align-items: center; padding: 64px 0 96px; min-height: min(calc(100vh - 70px), 820px); }
.hero > * { min-width: 0; }
.mark-anim { width: 74px; height: auto; margin-bottom: 26px; filter: drop-shadow(0 10px 30px rgba(215, 175, 135, .25)); overflow: visible; }
.lead { font-size: clamp(18px, 1.6vw, 21px); color: var(--dim); max-width: 36em; margin: 22px 0 30px; }
.waitlist-inline { display: flex; gap: 10px; max-width: 480px; }
.waitlist-inline input { flex: 1; min-width: 0; }
input[type=email], input[name=website], select {
  font: inherit; color: var(--bright); background: var(--surface); border: 1px solid var(--line-2); border-radius: 11px; padding: 13px 15px; width: 100%; transition: border-color .2s, box-shadow .2s; }
input::placeholder { color: var(--muted); }
input:focus-visible, select:focus-visible, button:focus-visible, a:focus-visible, summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
input[type=email]:focus, select:focus { border-color: var(--accent); box-shadow: 0 0 0 4px rgba(215, 175, 135, .14); }
.badges { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 10px; padding: 0; margin: 26px 0 0; }
.badges li { font-size: 13px; color: var(--dim); border: 1px solid var(--line); border-radius: 99px; padding: 4px 12px; background: rgba(255,255,255,.02); }

/* terminals */
.term, .frame { background: #1a1612; border: 1px solid var(--line-2); border-radius: var(--radius); overflow: hidden;
  box-shadow: 0 30px 80px -30px rgba(0,0,0,.8), 0 0 0 1px rgba(255,255,255,.02) inset, 0 0 60px -20px rgba(215,175,135,.18); }
.term-bar { display: flex; align-items: center; gap: 7px; padding: 11px 14px; background: linear-gradient(180deg, #2a241d, #221d17); border-bottom: 1px solid var(--line); }
.term-bar i { width: 11px; height: 11px; border-radius: 50%; background: #4a4036; }
.term-bar i:nth-child(1) { background: #d78787; } .term-bar i:nth-child(2) { background: #ffd787; } .term-bar i:nth-child(3) { background: #afd787; }
.term-bar span { margin-left: 10px; font-size: 12.5px; color: var(--muted); font-family: var(--mono); }
.term-body, pre.tui-pre, pre.cli-pre, pre.plain { font-family: var(--mono); font-variant-ligatures: none; margin: 0; white-space: pre; color: var(--text); }
.term-body { padding: 18px 20px 22px; font-size: clamp(11.5px, 1.05vw, 14px); line-height: 1.55; height: 470px; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; }
.term-body .ln { display: block; flex: none; min-height: 1.55em; white-space: pre; }
.term-body .ln:has(.prompt) { white-space: pre-wrap; word-break: break-all; }
.term-body .prompt { color: var(--accent); }
.term-body .caret { display: inline-block; width: .6em; height: 1.1em; background: var(--accent); vertical-align: -2px; margin-left: 1px; animation: blink 1s steps(2) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.term-body .fade { animation: lineIn .35s ease both; }
@keyframes lineIn { from { opacity: 0; transform: translateY(4px); } }
.demo-note { margin: 14px 4px 0; font-size: 13px; color: var(--muted); text-align: center; }

.frame { container-type: inline-size; margin: 0; }
.frame figcaption { padding: 10px 16px 14px; font-size: 13px; color: var(--muted); border-top: 1px solid var(--line); background: #17130f; }
pre.tui-pre { padding: 12px 12px 14px; font-size: calc((100cqw - 24px) / 62.6); line-height: 1.165; overflow: hidden; background: #171310; }
pre.cli-pre { padding: 16px 18px 20px; font-size: min(14px, calc(100cqw / 62)); line-height: 1.5; overflow-x: auto; background: #171310; }
pre.plain { font-size: 14px; line-height: 1.65; padding: 16px 18px; background: #171310; border: 1px solid var(--line); border-radius: 10px; overflow-x: auto; }
.c { color: var(--muted); } .red { color: var(--red); } .green { color: var(--green); } .amber { color: var(--amber); }

/* problem */
.band { padding: 96px 0; border-block: 1px solid var(--line); background: linear-gradient(180deg, var(--bg-2), var(--bg)); }
.band h2 { text-align: center; max-width: 18em; margin-inline: auto; margin-bottom: 44px; }
.vs { display: grid; grid-template-columns: 1fr auto 1fr; gap: 24px; align-items: stretch; }
.vs-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.vs-card.bad { border-color: rgba(215, 135, 135, .25); }
.vs-card.good { border-color: rgba(175, 215, 135, .28); box-shadow: 0 0 60px -30px rgba(175, 215, 135, .3); }
.vs-card h3 { margin-bottom: 14px; }
.vs-card p { color: var(--dim); font-size: 15.5px; margin: 16px 0 0; }
.vs-arrow { align-self: center; font-size: 30px; color: var(--accent); }

/* how */
.how { padding: 110px 0 40px; }
.how h2.center, .features h2.center, .gallery h2.center, .roadmap h2.center { max-width: 17em; margin-inline: auto; margin-bottom: 56px; }
.step { display: grid; grid-template-columns: minmax(0, .7fr) minmax(0, 1.6fr); gap: 48px; align-items: center; margin-bottom: 110px; }
.step.flip { grid-template-columns: minmax(0, 1.6fr) minmax(0, .7fr); }
.step.flip .step-text { order: 2; }
.num { font-family: var(--mono); font-size: 14px; color: var(--accent); letter-spacing: .1em; }
.step h3 { font-size: clamp(26px, 2.6vw, 34px); margin: 8px 0 14px; }
.step p { color: var(--dim); }

/* features */
.features { padding: 70px 0 110px; }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.card { background: linear-gradient(180deg, var(--surface), var(--bg-2)); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; transition: transform .25s, border-color .25s, box-shadow .25s; }
.card:hover { transform: translateY(-4px); border-color: var(--line-2); box-shadow: 0 20px 50px -25px rgba(215,175,135,.35); }
.card svg { width: 30px; height: 30px; fill: none; stroke: var(--accent); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 16px; }
.card p { color: var(--dim); font-size: 15.5px; margin: 8px 0 0; }

/* gallery */
.gallery { padding: 40px 0 110px; }
.tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-bottom: 26px; }
.tabs button { font: inherit; font-size: 14px; color: var(--dim); background: var(--surface); border: 1px solid var(--line); border-radius: 99px; padding: 8px 18px; cursor: pointer; transition: all .2s; }
.tabs button:hover { color: var(--bright); border-color: var(--line-2); }
.tabs button[aria-selected=true] { color: #1a1410; background: linear-gradient(180deg, var(--accent-hi), var(--accent)); border-color: transparent; font-weight: 650; }
.panel { max-width: 1020px; margin-inline: auto; animation: lineIn .4s ease both; }
.panel[hidden] { display: none; }
.gallery .fine { margin-top: 20px; }

/* security */
.security { padding: 100px 0; background: linear-gradient(180deg, var(--bg), var(--bg-2)); border-block: 1px solid var(--line); }
.security p { color: var(--dim); }
.security .fine { color: var(--muted); }
.two { display: grid; grid-template-columns: 1fr 1.2fr; gap: 56px; align-items: start; }
.cols { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.cols > div { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 24px; }
.cols h3 { font-size: 16px; margin-bottom: 12px; letter-spacing: .02em; }
.cols h3.ok { color: var(--green); } .cols h3.warn { color: var(--amber); }
.cols ul { margin: 0; padding-left: 18px; color: var(--dim); font-size: 15px; }
.cols li { margin-bottom: 8px; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 64px; text-align: center; }
.stats b { display: block; font-size: clamp(32px, 4vw, 50px); font-weight: 700; letter-spacing: -.03em; color: var(--accent-hi); }
.stats span { color: var(--muted); font-size: 14px; }

/* roadmap */
.roadmap { padding: 110px 0; }
.timeline { list-style: none; margin: 0 auto; padding: 0 0 0 28px; max-width: 700px; border-left: 2px solid var(--line-2); }
.timeline li { position: relative; padding: 0 0 34px 22px; }
.timeline li::before { content: ""; position: absolute; left: -37px; top: 6px; width: 14px; height: 14px; border-radius: 50%; background: var(--bg); border: 2px solid var(--line-2); }
.timeline li.done::before { background: var(--accent); border-color: var(--accent-hi); box-shadow: 0 0 18px rgba(215,175,135,.6); }
.timeline b { display: block; color: var(--bright); font-size: 18px; margin-bottom: 4px; }
.timeline span { color: var(--dim); }

/* join */
.join { padding: 110px 0 120px; background: radial-gradient(700px 360px at 50% 0, rgba(215,175,135,.12), transparent 70%), var(--bg-2); border-top: 1px solid var(--line); }
.join .lead { margin-inline: auto; margin-bottom: 36px; }
.waitlist { background: var(--surface); border: 1px solid var(--line-2); border-radius: 18px; padding: 28px; display: grid; gap: 18px; box-shadow: 0 40px 90px -40px rgba(0,0,0,.9); }
.field label { display: block; font-size: 14px; color: var(--dim); margin-bottom: 7px; }
.field small { color: var(--muted); }
select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 14px) 50%; background-size: 6px 6px; background-repeat: no-repeat; }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; color: var(--dim); cursor: pointer; }
.check input { margin-top: 4px; width: 18px; height: 18px; accent-color: var(--accent); flex: none; }
.form-msg { margin: 0; min-height: 1.5em; font-size: 15px; text-align: center; }
.form-msg.ok { color: var(--green); } .form-msg.err { color: var(--red); }

/* footer */
.foot { border-top: 1px solid var(--line); padding: 34px 0 44px; color: var(--muted); font-size: 14px; }
.foot-row { display: flex; flex-wrap: wrap; gap: 14px 30px; justify-content: space-between; align-items: center; }
.foot p { margin: 0; }
.foot .brand { font-size: 18px; color: var(--dim); }

/* privacy page */
.doc { width: min(760px, 100% - 48px); margin: 56px auto 100px; }
.doc h1 { font-size: clamp(32px, 4vw, 44px); margin-bottom: 8px; }
.doc h2 { font-size: 22px; margin: 36px 0 10px; }
.doc p, .doc li { color: var(--dim); }

/* reveal on scroll */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .8s cubic-bezier(.2,.7,.2,1), transform .8s cubic-bezier(.2,.7,.2,1); transition-delay: var(--d, 0ms); }
.js .reveal.in { opacity: 1; transform: none; }

/* logo intro: the hand rises, the finger reaches the lips, the keyhole draws */
.mark-anim .m-outline { stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 1.1s cubic-bezier(.6,0,.2,1) .1s forwards, fade-out .5s ease 1.1s forwards; }
.mark-anim .m-body { opacity: 0; animation: fade-in .7s ease .8s forwards; }
.mark-anim .m-lips { transform-box: fill-box; transform-origin: center; transform: scale(.2); opacity: 0; animation: lips .6s cubic-bezier(.2,.9,.3,1.3) 1.35s forwards; }
.mark-anim .m-stripe { opacity: 0; animation: fade-in .4s ease 1.9s forwards; }
.mark-anim .m-hand { transform: translateY(260px); animation: rise .8s cubic-bezier(.2,.8,.2,1) 1.1s forwards; }
.mark-anim .m-finger { transform-box: fill-box; transform-origin: bottom; transform: translateY(380px); opacity: 0; animation: finger .9s cubic-bezier(.2,.9,.25,1.15) 1.55s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes fade-out { to { opacity: 0; } }
@keyframes fade-in { to { opacity: 1; } }
@keyframes lips { to { transform: scale(1); opacity: 1; } }
@keyframes rise { to { transform: translateY(0); } }
@keyframes finger { to { transform: translateY(0); opacity: 1; } }

@media (max-width: 980px) {
  .hero { grid-template-columns: minmax(0, 1fr); gap: 44px; padding-top: 40px; min-height: 0; }
  .step, .step.flip { grid-template-columns: minmax(0, 1fr); gap: 26px; margin-bottom: 80px; }
  .step.flip .step-text { order: 0; }
  .grid { grid-template-columns: repeat(2, 1fr); }
  .two { grid-template-columns: minmax(0, 1fr); gap: 34px; }
  .vs { grid-template-columns: minmax(0, 1fr); } .vs-arrow { transform: rotate(90deg); justify-self: center; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .nav nav a:not(.btn) { display: none; }
  .grid, .cols { grid-template-columns: minmax(0, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); gap: 28px 12px; }
  .waitlist-inline { flex-direction: column; }
  .term-body { height: 400px; font-size: 11.5px; }
  pre.tui-pre { font-size: 8.6px; overflow-x: auto; }
  .frame figcaption::after { content: ' Swipe to scroll.'; }
  .band, .security, .roadmap, .join { padding-block: 72px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-delay: 0s !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
  .mark-anim .m-outline { stroke-dashoffset: 0; opacity: 0; }
  html { scroll-behavior: auto; }
}
