/* hookinlet marketing site. Design tokens live in tokens.css. */

/* Fonts are self-hosted (SIL Open Font License; see public/fonts/LICENSE-*.txt): no request to a third party. */
@font-face { font-family: "Geist"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url("/fonts/geist-latin-wght-normal.woff2") format("woff2-variations"); }
@font-face { font-family: "JetBrains Mono"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("/fonts/jetbrains-mono-latin-400-normal.woff2") format("woff2"); }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p { margin: 0; }
pre { margin: 0; font: inherit; }

.mono { font-family: var(--font-mono); }
.small { font-size: 12px; }
.muted { color: var(--muted); }
.acc { color: var(--accent); }
.dim { color: var(--code-dim); }
.strong { font-weight: 600; }
.between { display: flex; justify-content: space-between; }
.baseline { align-items: baseline; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.skip {
  position: absolute; left: 16px; top: -48px; z-index: 10;
  padding: 8px 12px; border-radius: var(--r-md);
  background: var(--accent); color: var(--on-accent); text-decoration: none;
}
.skip:focus { top: 12px; }

.wrap { max-width: var(--content-max); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }

/* nav */
.site-header { border-bottom: 1px solid var(--line); }
.nav { min-height: 64px; display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; text-decoration: none; }
.nav-links { display: flex; gap: 20px; font-size: 14px; flex-wrap: wrap; }
.nav-links a, .foot-links a { color: var(--ink-2); text-decoration: none; }
.nav-links a:hover, .foot-links a:hover { color: var(--ink); text-decoration: underline; }
.gh-link {
  margin-left: auto; display: inline-flex; align-items: center; gap: 8px;
  min-height: 36px; padding: 0 12px; border: 1px solid var(--line); border-radius: var(--r-md);
  font-size: 14px; color: var(--ink); text-decoration: none;
}
.gh-link svg, .btn svg { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; }

/* buttons */
.btn {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 20px;
  border-radius: var(--r-md); font: inherit; font-size: 15px; font-weight: 500;
  text-decoration: none; cursor: pointer;
}
.btn-primary { background: var(--accent); color: var(--on-accent); border: 0; }
.btn-primary:hover { filter: brightness(1.08); }
.btn-outline { border: 1px solid var(--line); background: var(--surface); color: var(--ink); padding: 0 18px; }
.btn-outline:hover { border-color: var(--muted); }
.btn-row { display: flex; gap: 12px; flex-wrap: wrap; }

/* hero */
.hero { padding-top: 88px; padding-bottom: 96px; display: flex; flex-wrap: wrap; gap: 56px; align-items: center; }
.hero-copy { flex: 1 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.chip {
  display: inline-flex; align-self: flex-start; align-items: center; gap: 8px; padding: 4px 10px;
  border: 1px solid var(--line); border-radius: var(--r-sm); font-size: 12px; color: var(--muted);
}
.dot { width: 6px; height: 6px; border-radius: 3px; background: var(--tide); display: inline-block; }
h1 { font-size: clamp(38px, 5.6vw, 60px); line-height: 1.04; font-weight: 600; letter-spacing: -0.04em; }
.lede { font-size: 18px; line-height: 1.6; color: var(--ink-2); max-width: 34em; }

/* hero terminal: always dark */
.term {
  flex: 1 1 480px; min-width: 0; background: var(--term-bg); border: 1px solid var(--term-line);
  border-radius: var(--r-lg); overflow: hidden; color: var(--term-ink);
}
.term-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; padding: 8px; border-bottom: 1px solid var(--term-line); }
.tabs { display: flex; flex-wrap: wrap; gap: 4px; }
.tabs button {
  min-height: 32px; padding: 0 12px; border-radius: 6px; border: 0; cursor: pointer;
  font-family: var(--font-mono); font-size: 12px; background: transparent; color: var(--term-dim);
}
.tabs button[aria-selected="true"] { background: var(--term-line); color: var(--term-ink); box-shadow: inset 0 -2px 0 var(--term-acc); }
.tabs button:focus-visible { outline-color: var(--term-acc); }
.term-inbox { margin-left: auto; padding-right: 8px; font-size: 12px; color: var(--term-dim); }
.term-body {
  padding: 20px; overflow-x: auto; font-family: var(--font-mono); font-size: 13px; line-height: 1.7; white-space: pre;
}
.term-body[hidden] { display: none; }
.term-body:focus-visible { outline-offset: -2px; outline-color: var(--term-acc); }
.term .dim { color: var(--term-dim); }
.term .acc { color: var(--term-acc); }

/* sections */
.band { border-top: 1px solid var(--line); }
.surface { background: var(--surface); }
.section { padding-top: 96px; padding-bottom: 96px; display: flex; flex-direction: column; gap: 40px; }
.head { display: flex; flex-direction: column; gap: 12px; }
.head.narrow { max-width: 40em; }
.eyebrow { font-size: 12px; color: var(--accent); }
h2 { font-size: clamp(28px, 3.4vw, 36px); line-height: 1.15; font-weight: 600; letter-spacing: -0.025em; }
.sub { color: var(--ink-2); }
.head-split { display: flex; flex-wrap: wrap; gap: 24px 56px; align-items: flex-end; }
.head-split .head { flex: 1 1 420px; min-width: 0; }
.head-note { flex: 1 1 300px; min-width: 0; color: var(--ink-2); font-size: 15px; }

/* diagram */
.diagram { display: flex; gap: 16px; align-items: stretch; }
.dcard {
  flex: 1 1 220px; min-width: 0; border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 20px; display: flex; flex-direction: column; gap: 10px; background: var(--bg);
}
.dcard-mid { flex: 1.4 1 300px; border: 1.5px solid var(--ink); gap: 12px; }
.pills { display: flex; flex-direction: column; gap: 6px; font-size: 13px; }
.pills div { padding: 6px 10px; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--surface); }
.log {
  display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--r-md);
  overflow: hidden; font-size: 13px; background: var(--surface);
}
.log > div { display: flex; gap: 12px; padding: 7px 12px; color: var(--muted); border-bottom: 1px solid var(--line); }
.log > div:last-child { border-bottom: 0; }
.log .latest { background: var(--wash); color: var(--ink); }
.log .seq { width: 36px; }
.grow { flex: 1; }
.note { font-size: 13px; color: var(--muted); }
.conn {
  flex: 0 0 auto; display: flex; flex-direction: column; justify-content: center; align-items: center;
  gap: 8px; padding: 0 4px; color: var(--muted); font-size: 11px;
}
.conn svg { fill: none; stroke: currentColor; stroke-width: 1.5; }
@media (max-width: 960px) {
  .diagram { flex-direction: column; }
  .dcard, .dcard-mid { flex: 1 1 auto; }
  .conn { flex-direction: row; padding: 14px 0; }
  .conn svg { transform: rotate(90deg); }
}

/* at a glance */
.glance {
  padding-top: 40px; padding-bottom: 40px; display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 32px;
}
.glance > div { display: flex; flex-direction: column; gap: 4px; }
.glance .small { font-size: 13px; }
.stat { font-size: 28px; font-weight: 600; letter-spacing: -0.03em; }

/* consume */
.cards3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 16px; }
.ccard {
  border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden;
  display: flex; flex-direction: column; background: var(--surface);
}
.ccard-head { padding: 20px 20px 16px; display: flex; flex-direction: column; gap: 6px; }
.ccard-head h3 { font-size: 20px; font-weight: 600; letter-spacing: -0.01em; }
.ccard-head p { font-size: 14px; color: var(--ink-2); }
.ccard .code { flex: 1; border-top: 1px solid var(--line); }

.code {
  background: var(--code-bg); color: var(--code-ink); padding: 18px 20px; overflow-x: auto;
  font-family: var(--font-mono); font-size: 12.5px; line-height: 1.7; white-space: pre;
}
.code .acc { color: var(--code-acc); }

/* features: a grid of short items, then the config example */
.features { display: flex; flex-direction: column; gap: 32px; }
.feat-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); gap: 0 40px; }
.feat { padding: 20px 0; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 6px; }
.feat h3 { font-size: 17px; font-weight: 600; }
.feat p { font-size: 14px; color: var(--ink-2); }
code { font-family: var(--font-mono); font-size: 13px; background: var(--sunken); padding: 1px 5px; border-radius: var(--r-sm); }
.yaml {
  max-width: 560px; min-width: 0; border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 20px; font-size: 13px; line-height: 1.75;
}

/* plans */
.plans { display: flex; flex-wrap: wrap; gap: 16px; align-items: stretch; }
.plan {
  flex: 1 1 360px; min-width: 0; border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 28px; display: flex; flex-direction: column; gap: 16px; background: var(--surface);
}
.plan-cloud { flex: 1.2 1 420px; border: 1.5px solid var(--ink); }
.plan h3 { font-size: 22px; font-weight: 600; letter-spacing: -0.015em; }
.plan > p { color: var(--ink-2); font-size: 15px; }
.wrapflex { gap: 12px; flex-wrap: wrap; }
.badge { font-size: 12px; padding: 3px 8px; border-radius: var(--r-sm); background: var(--wash); color: var(--accent); }
.checks { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 8px; font-size: 14px; }
.checks li { display: flex; gap: 10px; }
.inline-code { margin-top: auto; border-radius: var(--r-md); padding: 14px 16px; }

/* waitlist call to action */
.wl-cta { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.wl-cta .small { font-size: 13px; flex: 1 1 260px; }

/* footer */
.site-footer { border-top: 1px solid var(--line); background: var(--surface); }
.foot { padding-top: 40px; padding-bottom: 48px; display: flex; flex-wrap: wrap; gap: 24px; align-items: center; }
.foot-links { display: flex; gap: 20px; flex-wrap: wrap; font-size: 14px; }
.copy { margin-left: auto; }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
@media (max-width: 600px) {
  .hero { padding-top: 56px; padding-bottom: 64px; }
  .section { padding-top: 64px; padding-bottom: 64px; }
}

/* legal pages */
.prose { max-width: 44rem; padding-top: 64px; padding-bottom: 96px; }
.prose h1 { font-size: clamp(32px, 4.5vw, 44px); margin: 12px 0 8px; }
.prose p, .prose p { margin: 12px 0; }
.prose a { color: var(--accent); }

/* console showcase: the screenshot is always dark, like the hero terminal */
.console { flex-direction: row; flex-wrap: wrap; gap: 40px 56px; align-items: center; }
.console-copy { flex: 1 1 300px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.shot { flex: 1.7 1 440px; min-width: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.shot img { width: 100%; height: auto; border: 1px solid var(--term-line); border-radius: var(--r-lg); background: var(--term-bg); }
.shot figcaption { text-align: right; }

@media (max-width: 560px) { .term-inbox { display: none; } }

/* 404 page */
.notfound { min-height: 100vh; display: grid; place-items: center; }
.notfound main { padding: 24px; }
.notfound h1 { font-size: clamp(22px, 4vw, 30px); letter-spacing: -0.02em; }
.notfound a { color: var(--accent); }
