@font-face {
  font-family: 'Unifont';
  src: url('unifont.woff2') format('woff2');
  font-display: swap;
}

:root {
  color-scheme: dark;
  --bg: #0a0a0a;
  --fg: #ededed;
  --dim: #a0a0a0;
  --mute: #666;
  --line: #1a1a1a;
  --accent: #30d158;
  --glow: rgba(48,209,88,0.08);
  --card: #0f0f0f;
  --radius: 12px;
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Inter', system-ui, sans-serif;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
::selection { background: var(--accent); color: var(--bg); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.g { color: var(--accent); }
.d { color: var(--dim); }
.m { color: var(--mute); }
html, body { background: var(--bg); color: var(--fg); }
body {
  line-height: 1.6; font-size: 15px;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
p { margin: 10px 0; }
ul { margin: 0; padding-left: 18px; }
a { color: var(--fg); text-decoration: none; transition: color 0.15s; }
a:hover { color: #fff; }
code, pre { font-family: 'SF Mono', ui-monospace, 'Cascadia Code', Menlo, monospace; font-size: 13px; }
code {
  background: rgba(255,255,255,0.07); padding: 2px 7px; border-radius: 5px;
  border: 1px solid rgba(255,255,255,0.04);
}
pre code { background: none; padding: 0; border: none; }
pre {
  background: var(--card); border: 1px solid var(--line); border-left: 2px solid var(--accent);
  padding: 16px 20px; border-radius: var(--radius); overflow-x: auto;
  line-height: 1.7; margin: 16px 0;
}

/* thin dark scrollbar */
* { scrollbar-width: thin; scrollbar-color: #222 transparent; }
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #222; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #333; }

/* page entrance */
@keyframes fadeUp { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
main { animation: fadeUp .4s ease-out both; }

/* --- nav ----------------------------------------------------------------- */
nav {
  display: flex; flex-wrap: wrap; align-items: center;
  padding: 14px 32px; border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 100;
  background: rgba(10,10,10,0.92); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 4px 24px rgba(0,0,0,.4);
}
nav .logo {
  font-family: 'Unifont', 'SF Mono', ui-monospace, Menlo, monospace;
  font-weight: 600; font-size: 18px; display: flex; align-items: center; gap: 8px;
  text-decoration: none; color: inherit; transition: opacity .15s;
}
nav .logo:hover { opacity: .8; }
nav .logo .g { color: var(--accent); font-size: 23px; }
.menu-toggle {
  background: none; border: none; padding: 6px;
  cursor: pointer; color: var(--mute); filter: none;
  font-family: 'Unifont', 'SF Mono', ui-monospace, Menlo, monospace;
  font-size: 20px; line-height: 1; border-radius: 0;
  transition: none; margin-left: auto;
}
.menu-toggle:hover { color: var(--fg); }
.menu-toggle:active { transform: none; }
#logo-text { transition: color .2s; }
#logo-text.grayed { color: var(--mute); }

/* --- nav tree ------------------------------------------------------------ */
.nav-tree {
  display: none; flex-basis: 100%; flex-direction: column;
  padding: 2px 0 0;
  font-family: 'Unifont', 'SF Mono', ui-monospace, Menlo, monospace;
}
.nav-tree.open { display: flex; }
.nav-tree a {
  font-size: 18px; font-weight: 600; color: var(--dim);
  text-decoration: none; padding: 0; line-height: 1.5;
}
.nav-tree a:hover { color: var(--fg); }
.branch { color: var(--mute); }
.nav-tree .branch { color: var(--fg); }

/* --- layout -------------------------------------------------------------- */
main { max-width: 780px; margin: 0 auto; padding: 80px 32px 120px; }

/* --- terminal page layout (all viewports) -------------------------------- */
body:has(.term) {
  height: 100vh; height: 100dvh;
  overflow: hidden; display: flex; flex-direction: column;
}
body:has(.term) nav { flex-shrink: 0; }
body:has(.term) main {
  max-width: 480px; margin: 0 auto; padding: 20px 16px 16px;
  flex: 1 1 0; min-height: 0; width: 100%;
  overflow-y: auto; overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
}
body:has(.term) main > section { padding: 0 0 12px; }
body:has(.term) footer { position: relative; flex-shrink: 0; }

h1 {
  font-size: 18px; line-height: 1.3; letter-spacing: -0.01em;
  font-weight: 600; margin-bottom: 16px; position: relative;
}
h1 em { color: var(--dim); font-style: normal; font-weight: 400; }

/* --- terminal widget ----------------------------------------------------- */
.term {
  background: var(--card); border: 1px solid var(--line);
  border-radius: 8px; overflow: hidden;
  box-shadow: none;
}
.term-bar {
  display: flex; align-items: center; gap: 7px; padding: 10px 14px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255,255,255,.02) 0%, transparent 100%);
}
.term-bar .dot {
  width: 11px; height: 11px; border-radius: 50%; display: block;
  transition: transform .15s, filter .15s; cursor: pointer;
}
.term-bar .dot:nth-child(1) { background: #ff5f57; }
.term-bar .dot:nth-child(2) { background: #febc2e; }
.term-bar .dot:nth-child(3) { background: #28c840; }
.term-bar .dot:hover { transform: scale(1.25); filter: brightness(1.2); }
.term-body {
  padding: 14px 16px;
  font-family: 'Unifont', 'SF Mono', ui-monospace, Menlo, monospace;
  font-size: 16px; line-height: 1.7;
}

.prompt {
  display: flex; align-items: center; flex-wrap: nowrap; gap: 0;
  min-width: 0; position: relative; cursor: text;
}
.prompt .g { color: var(--accent); margin-right: .5ch; background-color: transparent; position: relative; z-index: 0; }
.prompt input[type="text"],
.prompt input[type="email"] {
  min-width: 0; width: 0; flex: 0 0 auto; background: none; border: none;
  color: var(--fg); font-family: 'Unifont', 'SF Mono', ui-monospace, Menlo, monospace;
  font-size: 16px; outline: none; caret-color: transparent; padding: 0;
  position: relative; z-index: 2;
}

.block-cursor {
  display: inline-block; width: 1ch; height: 1.2em;
  background: #facc15; flex-shrink: 0;
  position: relative; z-index: 0; vertical-align: text-bottom;
  pointer-events: none;
}
.prompt .block-cursor { margin-left: 0; }
.prompt.blink-off .block-cursor { background: transparent; }

.enter-btn {
  background: rgba(48,209,88,.15); border: 1px solid var(--accent); border-radius: 5px;
  color: #fff; font-family: 'Unifont', 'SF Mono', ui-monospace, Menlo, monospace;
  font-size: 11px; padding: 4px 12px; cursor: pointer; transition: all .2s;
  white-space: nowrap; line-height: 1; display: inline-flex; align-items: center; justify-content: center;
  height: 28px;
}
.enter-btn:hover { color: var(--fg); border-color: var(--accent); background: rgba(48,209,88,.06); }
.enter-btn:active { transform: scale(.97); }
.enter-btn-err { color: #ef4444 !important; border-color: #ef4444 !important; background: rgba(239,68,68,.06) !important; }
.enter-btn-warn { color: #facc15 !important; border-color: #facc15 !important; background: rgba(250,204,21,.06) !important; }

@keyframes spin { to { transform: rotate(360deg); } }
.spinner {
  display: inline-block; width: 12px; height: 12px;
  border: 1.5px solid rgba(255,255,255,.25); border-top-color: #fff;
  border-radius: 50%; animation: spin .6s linear infinite;
  vertical-align: middle;
}

.type-cursor {
  display: inline-block; width: 1ch; height: 1em;
  background: #facc15; vertical-align: baseline;
  pointer-events: none; margin-bottom: -0.15em;
  align-self: flex-end;
}

pre.out.copied-blur {
  filter: blur(3px); transition: filter .2s;
  pointer-events: none;
}

pre.out {
  font-family: 'Unifont', 'SF Mono', ui-monospace, Menlo, monospace;
  font-size: 16px; font-weight: normal;
  color: #b4b4bc; white-space: pre-wrap; word-wrap: break-word; line-height: 1.55; transition: color .15s;
  margin: 0; background: none; border: none; border-left: none;
  padding: 0; border-radius: 0; overflow-x: auto;
}
pre.out * {
  font-family: inherit; font-weight: inherit; font-size: inherit;
}
.out .br  { color: #ef4444; display: inline; }
.out .bg  { color: var(--accent); }
.out .lbl { color: var(--dim); }
.out .wrap { display: block; white-space: normal; word-wrap: break-word; }
.out .val { color: var(--accent); }
.out .hi  { color: var(--fg); }

#email-row { margin-top: 12px; }

.term-foot {
  font-family: 'Unifont', 'SF Mono', ui-monospace, Menlo, monospace; font-size: 11px;
  color: var(--mute); display: flex; align-items: center; justify-content: flex-end;
  gap: 12px; padding: 8px 0 0;
}

/* --- typography ---------------------------------------------------------- */
h2 {
  font-size: 26px; letter-spacing: -0.03em; margin-top: 56px; margin-bottom: 14px;
  font-weight: 700; scroll-margin-top: 80px;
}
h3 {
  font-size: 17px; margin-top: 36px; margin-bottom: 12px; font-weight: 600;
  scroll-margin-top: 80px;
}
section p { color: var(--dim); }
section p a { color: var(--accent); text-decoration: none; transition: color .15s; }
section p a:hover { color: #5ee87a; text-decoration: underline; text-underline-offset: 3px; }
section p strong { color: var(--fg); font-weight: 600; }
h4 { margin: 0 0 8px; font-weight: 600; }

.fine { color: var(--mute); font-size: 12px; margin-top: 10px; line-height: 1.5; }

/* --- buttons ------------------------------------------------------------- */
button {
  background: var(--accent); color: #fff; border: 0; border-radius: 8px;
  padding: 10px 20px; font-weight: 600; cursor: pointer; font-size: 14px;
  transition: all 0.15s ease;
}
button:hover:not(.menu-toggle):not(.enter-btn) { filter: brightness(1.2); }
button:active:not(.menu-toggle):not(.enter-btn) { transform: scale(0.98); }
button.ghost {
  background: transparent; color: var(--dim); border: 1px solid var(--line);
}
button.ghost:hover { border-color: var(--dim); color: var(--fg); filter: none; }

/* --- cards --------------------------------------------------------------- */
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}
.card:hover { border-color: #2a2a2a; box-shadow: 0 2px 16px rgba(0,0,0,.25); }
.card.pop { border-color: var(--accent); }
.card.pop:hover { box-shadow: 0 0 0 1px var(--glow), 0 4px 24px var(--glow); }
.card ul { padding-left: 0; color: var(--dim); margin: 0; list-style: none; }
.card li::before { content: '\2013\00a0'; color: var(--mute); }
.card li { margin: 8px 0; font-size: 14px; }
.card h4 { color: var(--dim); font-size: 13px; text-transform: uppercase; letter-spacing: 0.06em; }

/* --- page chrome (legal, contact, engage) -------------------------------- */
.legal h3 {
  color: var(--fg); font-size: 16px; margin: 32px 0 10px; font-weight: 600;
  letter-spacing: -0.01em;
}
.legal h3::first-letter { color: var(--accent); }
.legal p { color: var(--dim); font-size: 15px; line-height: 1.75; margin: 0 0 14px; }
.legal a { color: var(--accent); }
.legal a:hover { text-decoration: underline; text-underline-offset: 3px; }
.note {
  color: var(--mute); font-size: 14px; line-height: 1.75;
  border-left: 2px solid rgba(48,209,88,.3); padding: 4px 0 4px 16px; margin: 16px 0 60px;
}
.footnote { margin: 18px 0 60px; }
.footnote p { margin: 0 0 10px; }
.footnote p:last-child { margin-bottom: 0; }
.footnote a { color: var(--dim); }
.footnote a:hover { color: var(--fg); }
.footnote-links { padding-top: 6px; color: var(--mute); }

/* --- engage / pricing card ----------------------------------------------- */
.price-card { padding: 26px 28px 24px; gap: 0; }
.kicker {
  font-size: 12px; color: var(--mute); letter-spacing: .18em;
  margin-bottom: 18px; text-transform: uppercase;
}
.slider-block { margin-bottom: 24px; }
.slider-label { font-size: 14px; color: var(--dim); margin-bottom: 12px; }
.comp-slider {
  -webkit-appearance: none; appearance: none;
  display: block; width: 100%; height: 4px; background: var(--line);
  border-radius: 2px; outline: none; cursor: pointer; margin: 0;
}
.comp-slider::-webkit-slider-thumb {
  -webkit-appearance: none; width: 18px; height: 18px; border-radius: 50%;
  background: var(--accent); cursor: grab; transition: transform .12s, box-shadow .12s;
}
.comp-slider::-moz-range-thumb {
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--accent); cursor: grab; border: none;
}
.comp-slider:hover::-webkit-slider-thumb { transform: scale(1.15); box-shadow: 0 0 0 6px var(--glow); }
.comp-slider:active::-webkit-slider-thumb { cursor: grabbing; }
.slider-ticks {
  display: flex; justify-content: space-between;
  font-family: 'SF Mono', ui-monospace, Menlo, monospace; font-size: 11px;
  color: var(--mute); margin-top: 8px; padding: 0 2px; font-variant-numeric: tabular-nums;
}
.offer-row {
  display: grid; grid-template-columns: 1fr 1fr; gap: 0;
  border: 1px solid var(--line); border-radius: 8px; margin: 4px 0 18px; overflow: hidden;
}
.offer-col { padding: 16px 18px; border-right: 1px solid var(--line); }
.offer-col:last-child { border-right: none; }
.offer-lbl {
  font-size: 11px; color: var(--mute); letter-spacing: .14em;
  text-transform: uppercase; margin-bottom: 8px;
}
.offer-val {
  font-family: 'SF Mono', ui-monospace, Menlo, monospace; font-size: 18px;
  font-weight: 700; color: var(--fg); letter-spacing: -.01em; line-height: 1.15;
  font-variant-numeric: tabular-nums;
}
.offer-val.price-big { color: var(--accent); }
.offer-sub { font-size: 13px; color: var(--mute); margin-top: 6px; }
#comp-count { font-family: 'SF Mono', ui-monospace, Menlo, monospace; font-size: 16px; color: var(--fg); font-weight: 600; }
@media (max-width: 480px) {
  .offer-row { grid-template-columns: 1fr; }
  .offer-col { border-right: none; border-bottom: 1px solid var(--line); }
  .offer-col:last-child { border-bottom: none; }
}

.cta-row { display: flex; align-items: center; flex-wrap: wrap; gap: 14px; margin: 6px 0 22px; }
.cta-solid {
  display: inline-block; font-size: 15px; font-weight: 600;
  color: #06140b; background: var(--accent);
  padding: 13px 24px; border-radius: 6px; border: 1px solid var(--accent);
  text-decoration: none; cursor: pointer;
  transition: background .12s, transform .08s, box-shadow .12s;
}
.cta-solid:hover { filter: brightness(1.15); box-shadow: 0 0 0 4px var(--glow); }
.cta-solid:active { transform: translateY(1px); }
.cta-solid:disabled { opacity: .55; cursor: progress; }
.cta-trust { font-size: 13px; color: var(--mute); flex: 1 1 220px; }
.cta-trust .g { color: var(--accent); }

.intake-status { font-size: 14px; color: var(--mute); min-height: 1.2em; }
.intake-status.intake-err { color: #f87171; }

.card-section { border-top: 1px solid var(--line); padding: 16px 0 4px; }
.card-section-head {
  font-size: 11px; color: var(--mute); letter-spacing: .14em;
  text-transform: uppercase; margin-bottom: 10px;
}
.deliverables { color: var(--dim); font-size: 14px; }
.deliverables details { border-bottom: 1px solid var(--line); }
.deliverables details:last-child { border-bottom: none; }
.deliverables summary {
  list-style: none; cursor: pointer; padding: 9px 0; line-height: 1.5;
  display: flex; align-items: baseline; gap: .7ch;
}
.deliverables summary::-webkit-details-marker { display: none; }
.deliverables summary::before {
  content: '+'; color: var(--accent); font-family: 'SF Mono', ui-monospace, Menlo, monospace;
  font-size: 14px; width: 1ch; flex: none;
}
.deliverables details[open] > summary::before { content: '\2212'; }
.deliverables .d-body {
  color: var(--mute); font-size: 13px; line-height: 1.75;
  padding: 8px 12px 12px calc(1ch + .7ch);
  background: rgba(255,255,255,.035); border-radius: 4px; margin: -2px 0 8px;
}
.deliverables .d-body a { color: var(--accent); text-decoration: none; }
.deliverables .d-body a:hover { text-decoration: underline; }
.deliverables .d { color: var(--mute); }

.format-chips { display: flex; flex-wrap: wrap; gap: 6px; padding-bottom: 2px; }
.chip {
  font-family: 'SF Mono', ui-monospace, Menlo, monospace; font-size: 12px;
  color: var(--fg); background: rgba(48,209,88,.06); border: 1px solid var(--line);
  padding: 5px 11px; border-radius: 999px; white-space: nowrap;
}
.chip-ghost { color: var(--mute); background: transparent; border-style: dashed; }


/* --- footer -------------------------------------------------------------- */
footer {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 50;
  border-top: 1px solid var(--line);
  background: rgba(10,10,10,.92); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  padding: 10px 32px;
  font-family: 'Unifont', 'SF Mono', ui-monospace, Menlo, monospace;
}
.x-link {
  color: var(--mute); text-decoration: none; font-weight: 600; font-size: 13px;
  transition: color .2s;
  font-family: 'Unifont', 'SF Mono', ui-monospace, Menlo, monospace;
}
.x-link:hover { color: #1d9bf0; }
.notice { color: #444; font-size: 10px; font-weight: 500; letter-spacing: .02em; }

/* --- menu active state --------------------------------------------------- */
body.menu-active main { filter: blur(6px); pointer-events: none; }
body.menu-active .block-cursor { background: transparent; }

/* --- turnstile modal ----------------------------------------------------- */
.cf-overlay {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(0,0,0,.75); backdrop-filter: blur(8px);
  display: flex; align-items: center; justify-content: center;
  animation: fadeUp .2s ease-out;
}
.cf-modal {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 32px 36px;
  display: flex; flex-direction: column; align-items: center; gap: 20px;
  box-shadow: 0 0 0 1px rgba(255,255,255,.03), 0 16px 48px rgba(0,0,0,.6);
}
.cf-title {
  font-family: 'SF Mono', ui-monospace, Menlo, monospace;
  font-size: 13px; color: var(--mute); letter-spacing: .02em;
}


/* --- responsive (non-terminal pages only) -------------------------------- */
@media (max-width: 640px) {
  html, body { overflow-x: hidden; height: 100%; }
  body { display: flex; flex-direction: column; height: 100%; }

  main { flex: 1; min-height: 0; max-width: 100%; padding: 20px 16px 72px; margin: 0; }
  main .deliverables summary { font-size: 13px; }
  main .deliverables .d-body { font-size: 12px; }
  main .card { padding: 20px 16px; }
  main .price-card { padding: 20px 16px; }
  main .cta-solid { padding: 12px 20px; font-size: 14px; }
  main .legal p { font-size: 14px; }
  main .legal h3 { font-size: 15px; }

  h1 { font-size: 16px; }
  nav { padding: 12px 16px; }
  footer { padding: 12px 16px; }

  .sheet { max-height: calc(100vh - 260px); -webkit-overflow-scrolling: touch; }
  .catalog th, .catalog td { padding: 6px 8px; font-size: 10px; }
  .catalog .act input[type="email"] { width: 90px; font-size: 9px; padding: 3px 6px; }
  .catalog .act button { font-size: 9px; padding: 3px 6px; }

  .contact-form { max-width: 100%; }
  .slider-block { padding: 0; }
  .slider-ticks { font-size: 10px; }
  .offer-row { flex-direction: column; gap: 16px; }

  .pipeline { flex-wrap: wrap; gap: 6px; justify-content: center; }
  .pipeline-arrow { font-size: 14px; }
  .steps { gap: 16px; }
  .step { padding: 16px; }
  .closer { padding: 24px 0; }
}
