/* ==========================================================================
   Typmax marketing site — shared stylesheet
   Recreated from the Claude Design handoff (min · typ · max).
   Design tokens and component classes reproduce the prototype's exact values.
   ========================================================================== */

:root {
  /* Paper / ink */
  --bg:        #FBFAF7;
  --ink:       #111310;
  --accent:    #C05621;
  --muted:     #55594F;
  --faint:     #6E7268;   /* AA on paper/panel at small sizes (was #8B8F84 = 3.16:1) */

  /* Lines / panels */
  --border:      #E4E2D9;
  --border-soft: #EFEDE6;
  --dash:        #D8D5C9;
  --panel:       #F6F4EE;
  --panel2:      #EEECE4;
  --white:       #FFFFFF;

  /* Dark section */
  --d-bg:      #111310;
  --d-text:    #FBFAF7;
  --d-sub:     #B7BAB0;
  --d-faint:   #8B8F84;
  --d-mute:    #83877C;
  --d-panel:   #191D1A;
  --d-panel2:  #141814;
  --d-input:   #0E110F;
  --d-border:  #2A2E28;
  --d-border2: #343931;
  --d-border3: #4A4F46;

  /* Semantic verdicts */
  --pass:      #14713F;  --pass-bg:   #E6F1E9;
  --fail:      #A6231B;  --fail-bg:   #F8E6E3;
  --review:    #4C3FA8;  --review-bg: #EAE7F8;
  --warn:      #8A6400;  --warn-bg:   #F6E7DC;
  --plan-bg:   #EFEDE6;

  --mono: 'IBM Plex Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  --sans: Archivo, system-ui, -apple-system, Segoe UI, sans-serif;

  --max: 1200px;
  --pad: 28px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16.5px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-wrap: pretty;
}

a { color: var(--ink); text-decoration: none; }
a:hover { color: var(--accent); }
/* height:auto is load-bearing: the width/height ATTRS give the browser an
   aspect ratio to reserve space with (kills CLS), but without this a CSS
   width:100% would be paired with the literal pixel height and squash it. */
img { max-width: 100%; height: auto; }

::selection { background: var(--ink); color: var(--bg); }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
/* On dark sections and the waitlist form --ink equals the background (1:1) — use a light ring. */
.band-dark :focus-visible,
.field :focus-visible,
.btn-onDark:focus-visible,
.btn-light:focus-visible { outline-color: var(--d-text); }

/* ---- Animations ---------------------------------------------------------- */
@keyframes type   { from { width: 0 } to { width: 100% } }
@keyframes caret  { 50% { opacity: 0 } }
@keyframes rise   { from { opacity: 0; transform: translateY(6px) } to { opacity: 1; transform: none } }
@keyframes reveal { from { clip-path: inset(0 100% 0 0) } to { clip-path: inset(0 0 0 0) } }
@keyframes sweep  { from { transform: scaleX(0) } to { transform: scaleX(1) } }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; } html { scroll-behavior: auto; } }

/* ---- Layout -------------------------------------------------------------- */
.container { max-width: var(--max); margin: 0 auto; padding: 0 var(--pad); }
.page { min-height: 100vh; display: flex; flex-direction: column; }
main { flex: 1; }
.section { border-bottom: 1px solid var(--border); }
.dotgrid {
  background:
    radial-gradient(circle at 1px 1px, var(--border) 1px, transparent 0) 0 0 / 24px 24px,
    var(--bg);
}

/* ---- Typography helpers -------------------------------------------------- */
.mono   { font-family: var(--mono); }
.muted  { color: var(--muted); }
.faint  { color: var(--faint); }
.accent { color: var(--accent); }

.eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--faint);
  display: flex;
  align-items: center;
  gap: 10px;
}
.eyebrow .tick { width: 26px; height: 1px; background: var(--accent); }

.klabel {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--faint);
}

/* Headings — weight/spacing shared, size set per class */
.head { margin: 0; font-weight: 700; letter-spacing: -.03em; line-height: 1.05; }
.head--hero { letter-spacing: -.035em; line-height: 1.03; }

.t-display { font-size: clamp(40px, 5.4vw, 68px); line-height: 1.02; letter-spacing: -.035em; }
.t-h1      { font-size: clamp(34px, 4.6vw, 56px); }
.t-h1-lg   { font-size: clamp(34px, 4.6vw, 58px); }
.t-xl      { font-size: clamp(28px, 3.4vw, 44px); }
.t-lg      { font-size: clamp(26px, 3.2vw, 40px); }
.t-md      { font-size: clamp(26px, 3vw, 38px); }
.t-sm      { font-size: clamp(24px, 2.8vw, 34px); }
.t-xs      { font-size: clamp(24px, 2.8vw, 32px); }
.t-wait    { font-size: clamp(30px, 3.6vw, 46px); }

.ch { margin: 0; font-weight: 600; letter-spacing: -.02em; }

.lede { color: var(--muted); }
.balance { text-wrap: balance; }

/* ---- Buttons ------------------------------------------------------------- */
.btn {
  display: inline-block;
  font-weight: 600;
  font-size: 15px;
  padding: 13px 22px;
  border-radius: 2px;
  border: 1px solid transparent;
  cursor: pointer;
  font-family: inherit;
  transition: background .15s ease, border-color .15s ease, color .15s ease;
}
.btn-dark  { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.btn-dark:hover  { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn-line  { border-color: #C9C6BA; color: var(--ink); background: transparent; }
.btn-line:hover  { border-color: var(--ink); color: var(--ink); }
.btn-light { background: var(--bg); color: var(--ink); border-color: var(--bg); }
.btn-light:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn-onDark { border-color: var(--d-border3); color: var(--d-text); background: transparent; }
.btn-onDark:hover { border-color: var(--accent); color: var(--accent); }

/* orange underlined inline link */
.link-accent {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--accent);
  border-bottom: 1px solid #E4C0A8;
  padding-bottom: 2px;
}
.link-accent:hover { color: var(--accent); border-color: var(--accent); }

/* ---- Hairline grids (1px separators via gap over a bg) ------------------- */
.hair {
  display: grid;
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 3px;
  overflow: hidden;
}
.hair.flush { border-radius: 0; border: none; }         /* edge-to-edge strip */
.cols-2 { grid-template-columns: repeat(2, 1fr); }
.cols-3 { grid-template-columns: repeat(3, 1fr); }
.cols-4 { grid-template-columns: repeat(4, 1fr); }
.cols-5 { grid-template-columns: repeat(5, 1fr); }

.cell        { background: var(--white); }
.cell.paper  { background: var(--bg); }
.cell.panel  { background: var(--panel); }
/* Cell that is itself a link (e.g. the About contact rows): tint on hover, keep ink text. */
a.cell:hover { background: var(--panel); color: var(--ink); }

/* ---- Badges / verdict pills --------------------------------------------- */
.badge {
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: .1em;
  padding: 2px 7px;
  border-radius: 2px;
  font-weight: 500;
  white-space: nowrap;
}
.badge-lg { font-size: 10px; letter-spacing: .14em; text-transform: uppercase; padding: 3px 8px; }
.v-pass   { background: var(--pass-bg);   color: var(--pass); }
.v-fail   { background: var(--fail-bg);   color: var(--fail); }
.v-review { background: var(--review-bg); color: var(--review); }
.v-warn   { background: var(--warn-bg);   color: var(--warn); }
.v-plan   { background: var(--plan-bg);   color: var(--faint); }
.v-live   { background: var(--warn-bg);   color: var(--accent); }

/* ---- Split layouts ------------------------------------------------------- */
.two      { display: grid; gap: 56px; }
.two-57   { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
.two-75   { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.two-eq   { grid-template-columns: 1fr 1fr; }
.autofit  { display: grid; grid-template-columns: repeat(auto-fit, minmax(330px, 1fr)); gap: 40px; }
.autofit-sm { display: grid; grid-template-columns: repeat(auto-fit, minmax(255px, 1fr)); gap: 20px; }

/* ---- Nav ----------------------------------------------------------------- */
.nav {
  position: sticky; top: 0; z-index: 20;
  background: rgba(251, 250, 247, .9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: var(--max); margin: 0 auto; padding: 0 var(--pad);
  height: 62px; display: flex; align-items: center; gap: 32px;
}
.brand { display: flex; align-items: center; gap: 10px; flex: none; }
.brand-logo { height: 20px; width: auto; display: block; }
.nav-links {
  flex: 1; min-width: 0; display: flex; gap: 18px;
  font-family: var(--mono); font-size: 11px; letter-spacing: .05em;
  text-transform: uppercase; color: var(--faint);
  white-space: nowrap;
}
.nav-links a { color: inherit; }
.nav-links a[aria-current="page"] { color: var(--ink); }
.nav-cta { flex: none; }
.nav-cta .btn { font-family: var(--mono); font-size: 11px; letter-spacing: .05em; text-transform: uppercase; padding: 9px 14px; }
.nav-toggle { display: none; }

/* ---- Footer -------------------------------------------------------------- */
.footer { border-top: 1px solid var(--border); background: var(--bg); }
.footer-inner {
  max-width: var(--max); margin: 0 auto; padding: 44px var(--pad) 56px;
  display: grid; grid-template-columns: minmax(0, 2fr) repeat(3, minmax(0, 1fr)); gap: 40px;
}
.footer-col { display: grid; gap: 8px; align-content: start; font-size: 14px; }
.footer-col a { color: var(--muted); }
.footer-col a:hover { color: var(--accent); }
.footer-head {
  font-family: var(--mono); font-size: 10.5px; letter-spacing: .14em;
  text-transform: uppercase; color: var(--faint); margin-bottom: 2px;
}

/* ---- Dark CTA band ------------------------------------------------------- */
.band-dark { border-bottom: 1px solid var(--border); background: var(--d-bg); color: var(--d-text); }
.band-dark .sub { color: var(--d-sub); }
.band-inner {
  max-width: var(--max); margin: 0 auto; padding: 80px var(--pad);
  display: flex; gap: 40px; align-items: center; justify-content: space-between; flex-wrap: wrap;
}

/* ---- Waitlist form (on dark) -------------------------------------------- */
.field { display: grid; gap: 6px; font-size: 13.5px; color: var(--d-sub); }
.field input, .field textarea {
  font: inherit; font-size: 15px; padding: 11px 13px;
  border: 1px solid var(--d-border2); border-radius: 2px;
  background: var(--d-input); color: var(--d-text); width: 100%;
}
.field textarea { min-height: 66px; resize: vertical; }
.field ::placeholder { color: var(--d-mute); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---- Responsive ---------------------------------------------------------- */
@media (max-width: 960px) {
  .cols-4, .cols-5 { grid-template-columns: repeat(2, 1fr); }
  .cols-3 { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (max-width: 820px) {
  .two-57, .two-75, .two-eq { grid-template-columns: 1fr; gap: 40px; }
}
@media (max-width: 720px) {
  :root { --pad: 20px; }
  /* Collapse the desktop link row into a toggled menu */
  .nav-links {
    position: absolute; top: 62px; left: 0; right: 0;
    flex-direction: column; gap: 0;
    background: var(--bg); border-bottom: 1px solid var(--border);
    padding: 6px 0; font-size: 13px;
  }
  .nav-links a { padding: 11px var(--pad); }
  .nav:not(.open) .nav-links { display: none; }
  .nav-toggle {
    display: inline-flex; align-items: center; justify-content: center;
    margin-left: auto; width: 40px; height: 40px; flex: none;
    border: 1px solid var(--border); border-radius: 2px; background: transparent; cursor: pointer;
  }
  .nav-toggle svg { display: block; }
  /* The wide lockup + hamburger + CTA overflowed the viewport; the menu already
     exposes the waitlist, so drop the CTA and trim the lockup. */
  .nav-cta { display: none; }
  .brand-logo { height: 18px; }
}
@media (max-width: 560px) {
  .cols-2, .cols-3, .cols-4, .cols-5 { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
  .band-inner { padding: 60px var(--pad); }
}
