/* Hebb site. The rules are in design.md; this file enforces them.
   Derived from the "Hebb Landing" artboard — values are copied, not reinvented. */

:root {
  --ink: #0a1f33;
  --accent: #5b4bff;
  --accent-press: #4a3ae6;
  --mark-to: #00b8d9;
  --muted: #94a3b8;
  --faint: #dde4ee;
  --rule: #e2e8f0;
  --paper: #fff;
  --wash: #f7f9fc;
  --measure: 720px;
  --pad: 72px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }

body { margin: 0; }

a { color: var(--ink); text-decoration: none; }
a:hover { color: var(--accent); }

.stage {
  width: 100%; max-width: 1440px; min-height: 100vh; margin: 0 auto;
  background: var(--paper); color: var(--ink);
  font-family: 'Inter', -apple-system, 'Segoe UI', Helvetica, sans-serif;
  display: flex; flex-direction: column; overflow: hidden; position: relative;
  font-feature-settings: 'ss01','cv05','cv11';
}

/* --- the gradient field ------------------------------------------------- */
/* Decorative only. The double mask is what makes it dissolve instead of end. */
.field {
  position: absolute; top: 0; right: 0; width: 58%; height: 720px;
  overflow: hidden; pointer-events: none; user-select: none;
  -webkit-mask-image: linear-gradient(104deg, transparent 10%, rgba(0,0,0,.3) 30%, #000 64%), linear-gradient(#000 58%, transparent 96%);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(104deg, transparent 10%, rgba(0,0,0,.3) 30%, #000 64%), linear-gradient(#000 58%, transparent 96%);
  mask-composite: intersect;
}
.field img { position: absolute; top: -70px; left: -10%; width: 118%; height: 1000px; opacity: .8; max-width: none; }
.field--inner { width: 46%; height: 380px; }
.field--inner img { top: -40px; height: 620px; opacity: .72; }

/* --- nav ---------------------------------------------------------------- */
.nav { position: relative; z-index: 2; display: flex; align-items: center; gap: 44px; padding: 0 var(--pad); height: 80px; }
.brand { display: flex; align-items: center; gap: 11px; }
.brand-mark { width: 22px; height: 22px; border-radius: 7px; background: linear-gradient(140deg, var(--accent), var(--mark-to)); flex-shrink: 0; }
.brand-name { font-size: 19px; font-weight: 600; letter-spacing: -.021em; }
.nav-links { display: flex; gap: 28px; font-size: 15px; font-weight: 500; letter-spacing: -.008em; }
.nav-links a[aria-current="page"] { color: var(--accent); }
.nav-right { margin-left: auto; display: flex; align-items: center; gap: 22px; }
.signin { font-size: 15px; font-weight: 500; }

/* --- buttons ------------------------------------------------------------ */
.btn { display: inline-flex; align-items: center; gap: 8px; border-radius: 999px; font-weight: 500; letter-spacing: -.008em; white-space: nowrap; }
.btn-primary { background: var(--accent); color: #fff; padding: 11px 19px; font-size: 15px; }
.btn-primary:hover { color: #fff; background: var(--accent-press); }
.btn-lg { padding: 16px 28px; font-size: 18px; gap: 10px; letter-spacing: -.01em; }
.btn-ghost { border: 2px solid var(--ink); background: var(--paper); padding: 14px 26px; font-size: 18px; gap: 10px; letter-spacing: -.01em; }
.btn-ghost:hover { border-color: var(--accent); }
.btn-sm { padding: 9px 17px; font-size: 14px; }

/* --- home hero ---------------------------------------------------------- */
.hero { position: relative; z-index: 2; flex-grow: 1; display: flex; align-items: center; gap: 80px; padding: 56px var(--pad); }
.hero-copy { width: 660px; flex-shrink: 0; }
.eyebrow { font-size: 15px; font-weight: 500; letter-spacing: -.008em; }
.eyebrow b { color: var(--accent); font-weight: 600; }
.hero h1 { font-size: 66px; line-height: 1.13; letter-spacing: -.021em; font-weight: 600; margin: 26px 0 0; }
.hero h1 em { color: var(--accent); font-style: normal; }
.sub { font-size: 21px; line-height: 1.5; font-weight: 450; letter-spacing: -.012em; margin: 26px 0 0; max-width: 560px; }
.cta { display: flex; align-items: center; gap: 16px; margin-top: 38px; flex-wrap: wrap; }

/* --- the retention grid (signature object — do not restyle) ------------- */
.panels { display: flex; gap: 40px; }
.panel-label { font-size: 14px; font-weight: 600; letter-spacing: -.008em; }
.panel-label.is-accent { color: var(--accent); }
.grid { display: grid; grid-template-columns: repeat(10, minmax(0,1fr)); gap: 5px; width: 245px; margin: 15px 0 0; }
.grid i { height: 20px; border-radius: 3px; display: block; }
.panel-note { font-size: 15px; font-weight: 500; letter-spacing: -.01em; margin-top: 16px; line-height: 1.45; }

/* --- inner pages -------------------------------------------------------- */
.page { position: relative; z-index: 2; flex-grow: 1; padding: 64px var(--pad) 88px; }
.page-head { max-width: var(--measure); }
.page h1 { font-size: 44px; line-height: 1.16; letter-spacing: -.021em; font-weight: 600; margin: 14px 0 0; }
.lede { font-size: 21px; line-height: 1.5; font-weight: 450; letter-spacing: -.012em; margin: 22px 0 0; }

.prose { max-width: var(--measure); font-size: 17px; line-height: 1.62; letter-spacing: -.006em; }
.prose > * + * { margin-top: 26px; }
.prose h2 { font-size: 27px; line-height: 1.24; letter-spacing: -.018em; font-weight: 600; margin-top: 52px; }
.prose h3 { font-size: 19px; line-height: 1.35; letter-spacing: -.012em; font-weight: 600; margin-top: 38px; }
.prose a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.prose a:hover { text-decoration-thickness: 2px; }
.prose ul, .prose ol { padding-left: 22px; }
.prose li + li { margin-top: 9px; }
.prose strong { font-weight: 600; }
/* Prose stays at the measure (design.md); only tables break out of it. */
.prose .table-wrap { width: min(1080px, 100%); max-width: none; }

code, kbd, pre { font-family: ui-monospace, SFMono-Regular, 'SF Mono', Menlo, monospace; }
code { font-size: .92em; background: var(--wash); border: 1px solid var(--rule); border-radius: 5px; padding: 1px 5px; }
pre { background: var(--wash); border: 1px solid var(--rule); border-radius: 12px; padding: 18px 20px; overflow-x: auto; font-size: 14px; line-height: 1.6; }
pre code { background: none; border: 0; padding: 0; font-size: inherit; }

.card { border: 1px solid var(--rule); border-radius: 14px; padding: 26px; }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 18px; }
.card h3 { margin: 0 0 10px; font-size: 19px; font-weight: 600; letter-spacing: -.012em; }
.card p { margin: 0; font-size: 16px; line-height: 1.55; }

table { border-collapse: collapse; width: 100%; font-size: 15px; }
thead th { background: var(--wash); font-size: 14px; font-weight: 600; letter-spacing: -.008em; text-align: left; padding: 11px 14px; border-bottom: 1px solid var(--rule); }
tbody td { padding: 11px 14px; border-bottom: 1px solid var(--rule); }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }
.table-wrap { overflow-x: auto; border: 1px solid var(--rule); border-radius: 12px; }
.table-wrap table { border-radius: 12px; overflow: hidden; }
.table-wrap tbody tr:last-child td { border-bottom: 0; }

.note { border-left: 3px solid var(--accent); padding: 4px 0 4px 18px; }
.note.is-loss { border-left-color: var(--muted); }

/* --- the embedded paper ------------------------------------------------- */
.reader { border: 1px solid var(--rule); border-radius: 14px; overflow: hidden; background: var(--wash); }
.reader-bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 13px 18px; border-bottom: 1px solid var(--rule); background: var(--paper); font-size: 14px; font-weight: 500; flex-wrap: wrap; }
.reader object, .reader iframe { display: block; width: 100%; height: min(78vh, 900px); border: 0; }
.reader-fallback { padding: 40px 26px; text-align: center; font-size: 16px; line-height: 1.6; }

/* --- footer ------------------------------------------------------------- */
.footbar {
  position: relative; z-index: 2; display: flex; align-items: center; justify-content: space-between;
  gap: 24px; padding: 0 var(--pad); min-height: 92px; border-top: 1px solid var(--rule);
  font-size: 15px; font-weight: 500; letter-spacing: -.008em;
}
.models { display: flex; align-items: center; gap: 30px; flex-wrap: wrap; }
.models-list { display: flex; gap: 26px; font-weight: 600; flex-wrap: wrap; }

/* --- responsive. The artboard is 1440x900; the same design reflows below. */
@media (max-width: 1280px) {
  :root { --pad: 40px; }
  .hero { gap: 48px; }
  .hero-copy { width: auto; flex: 1 1 520px; }
  .hero h1 { font-size: 54px; }
}
@media (max-width: 1024px) {
  .hero { flex-direction: column; align-items: flex-start; gap: 56px; }
  .hero-copy { flex: none; width: 100%; }
  .field { width: 82%; opacity: .75; }
  .field--inner { width: 100%; }
  .nav-links { display: none; }
  .footbar { flex-direction: column; align-items: flex-start; justify-content: center; padding-top: 22px; padding-bottom: 22px; gap: 14px; }
}
@media (max-width: 760px) {
  :root { --pad: 24px; }
  .nav { gap: 16px; }
  .hero h1 { font-size: 40px; }
  .page h1 { font-size: 33px; }
  .sub, .lede { font-size: 18px; }
  .signin { display: none; }
  .panels { gap: 28px; width: 100%; }
  .grid { width: 100%; }
  .grid i { height: 16px; }
  .field { height: 520px; width: 100%; opacity: .6; }
  .page { padding-top: 40px; }
  .reader object, .reader iframe { height: 62vh; }
}
@media (max-width: 460px) {
  .hero h1 { font-size: 33px; }
  .panels { flex-direction: column; }
  .btn-lg, .btn-ghost { width: 100%; justify-content: center; }
}

@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

@media print {
  .field, .nav-right, .footbar { display: none; }
  .stage { max-width: none; }
}
