/* GaugeWright.com — marketing site for GaugeBench
   Palette + type mirror the GaugeWright brand SSOT (hub: brand/palette.css,
   brand/typography.css). Navy-led (dark), serif-voice. */

:root {
  /* brand (from the logo) */
  --navy: #0e2d50;
  --blue: #1f61c4;
  --gold: #c6952f;
  --red:  #b5342b;

  /* surfaces & text — navy-led (the brand's dark theme, used site-wide) */
  --bg: #0c1a2e;
  --panel: #12233b;
  --edge: #24344e;
  --ink: #e6ebf2;
  --muted: #8b98ab;

  /* interactive accent (lightened for contrast on navy) */
  --accent: #4f8fe6;
  --accent-hover: #6ba3ee;
  --accent-strong: #2a6fce;
  --on-accent: #08111e;

  /* semantic status — reuse brand gold/red, lightened for dark */
  --success: #7fd6a6;
  --warn: #e0b24e;
  --bad: #e0655c;

  /* type: serif carries the UI's voice, sans carries reading */
  --serif: "STIX Two Text", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, ui-serif, serif;
  --sans: "Figtree", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "Inconsolata", ui-monospace, "SF Mono", Menlo, monospace;

  --max: 1040px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

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

/* Serif is the voice: headings + interactive chrome */
h1, h2, h3,
.hero h1, section h2, .card h3, .door h3, .doc h1, .doc h2, .doc h3,
.brand, .nav a, .btn, .faq summary {
  font-family: var(--serif);
}

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

code, .mono {
  font-family: var(--mono);
}

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---- Header ---- */
.site-header {
  border-top: 3px solid transparent;
  border-image: linear-gradient(90deg, var(--blue), var(--gold) 55%, var(--red)) 1;
  border-bottom: 1px solid var(--edge);
  position: sticky;
  top: 0;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px);
  z-index: 10;
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 20px;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.brand:hover { text-decoration: none; }
.brand .mark {
  width: 30px;
  height: 30px;
  object-fit: contain;
  display: inline-block;
}
.nav { display: flex; align-items: center; gap: 26px; }
.nav a { color: var(--muted); font-weight: 600; font-size: 16px; }
.nav a:hover { color: var(--ink); text-decoration: none; }

/* ---- Buttons ---- */
.btn {
  display: inline-block;
  padding: 10px 20px;
  border-radius: 9px;
  font-weight: 600;
  font-size: 16px;
  border: 1px solid var(--edge);
  color: var(--ink);
  background: var(--panel);
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s, color 0.15s;
}
.btn:hover { text-decoration: none; border-color: var(--muted); }
.btn-primary {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--on-accent);
}
.btn-primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); }

/* ---- Hero ---- */
.hero { padding: 80px 0 76px; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 40px;
  align-items: center;
}
.hero .eyebrow {
  color: var(--gold);
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 12.5px;
  margin-bottom: 18px;
}
.hero h1 {
  font-size: 58px;
  line-height: 1.04;
  margin: 0 0 22px;
  max-width: 600px;
  font-weight: 400;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
.hero p.lede {
  font-size: 20px;
  color: var(--muted);
  max-width: 560px;
  margin: 0 0 34px;
}
.hero .cta { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-art { display: flex; justify-content: center; }
.hero-art img {
  width: 100%;
  max-width: 380px;
  height: auto;
  filter: drop-shadow(0 22px 44px rgba(0, 0, 0, 0.5));
  animation: float 6s ease-in-out infinite;
}
@keyframes float { 50% { transform: translateY(-10px); } }
@media (prefers-reduced-motion: reduce) { .hero-art img { animation: none; } }

/* ---- Sections ---- */
section { padding: 56px 0; }
section h2 {
  font-size: 32px;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 0 0 8px;
}
/* signature gold hairline under marketing section headings (not doc pages) */
section .wrap > h2::after {
  content: "";
  display: block;
  width: 46px;
  height: 2px;
  margin-top: 16px;
  background: linear-gradient(90deg, var(--gold), transparent);
}
.section-lede { color: var(--muted); margin: 20px 0 36px; max-width: 640px; }

.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.card {
  background: var(--panel);
  border: 1px solid var(--edge);
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
  transition: border-color 0.15s, transform 0.15s;
}
.card:hover {
  border-color: color-mix(in srgb, var(--accent) 45%, var(--edge));
  transform: translateY(-2px);
}
.card h3 { margin: 0 0 8px; font-size: 19px; font-weight: 600; }
.card p { margin: 0; color: var(--muted); font-size: 15.5px; }
.card .ico {
  width: 34px; height: 34px; border-radius: 8px;
  background: color-mix(in srgb, var(--accent) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 14px; font-size: 18px;
}

.band {
  border-top: 1px solid var(--edge);
  border-bottom: 1px solid var(--edge);
  background: color-mix(in srgb, var(--navy) 4%, var(--bg));
}

/* ---- Download page ---- */
.dl-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 32px;
}
.dl-card {
  background: var(--panel);
  border: 1px solid var(--edge);
  border-radius: 12px;
  padding: 28px 24px;
  text-align: center;
  box-shadow: 0 1px 2px rgba(14, 45, 80, 0.04);
}
.dl-card .os { font-size: 17px; font-weight: 600; margin: 12px 0 4px; font-family: var(--serif); }
.dl-card .fmt { color: var(--muted); font-size: 14px; margin-bottom: 18px; }
.dl-card .glyph { font-size: 34px; }
.note {
  margin-top: 28px;
  padding: 16px 18px;
  border: 1px solid var(--edge);
  border-left: 3px solid var(--warn);
  border-radius: 8px;
  background: var(--panel);
  color: var(--muted);
  font-size: 15px;
}
.note strong { color: var(--ink); }

/* ---- Footer ---- */
.site-footer {
  border-top: 1px solid var(--edge);
  padding: 36px 0;
  color: var(--muted);
  font-size: 14px;
  background: color-mix(in srgb, var(--navy) 4%, var(--bg));
}
.site-footer .wrap {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 32px;
}
.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--ink); }
.foot-col { display: flex; flex-direction: column; gap: 8px; }
.foot-h {
  color: var(--ink);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  margin-bottom: 4px;
}
.foot-col .muted-line { color: var(--muted); }

/* ---- Audience doors ---- */
.doors {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.door {
  background: var(--panel);
  border: 1px solid var(--edge);
  border-radius: 14px;
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: 0 1px 2px rgba(14, 45, 80, 0.04);
}
.door h3 { margin: 0; font-size: 23px; font-weight: 600; letter-spacing: -0.01em; }
.door p { margin: 0; color: var(--muted); }
.door .eyebrow {
  color: var(--gold);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 12px;
}
.door .door-cta { margin-top: auto; padding-top: 8px; }

/* ---- Status pill ---- (sans: it's data, not voice) */
.status {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 2px 9px;
  border-radius: 999px;
  border: 1px solid var(--edge);
  color: var(--muted);
  white-space: nowrap;
}
.status.shipped { color: var(--success); border-color: color-mix(in srgb, var(--success) 40%, transparent); background: color-mix(in srgb, var(--success) 9%, transparent); }
.status.built { color: var(--accent); border-color: color-mix(in srgb, var(--accent) 40%, transparent); background: color-mix(in srgb, var(--accent) 9%, transparent); }
.status.roadmap { color: var(--warn); border-color: color-mix(in srgb, var(--warn) 40%, transparent); background: color-mix(in srgb, var(--warn) 10%, transparent); }
.status.none { color: var(--bad); border-color: color-mix(in srgb, var(--bad) 40%, transparent); background: color-mix(in srgb, var(--bad) 9%, transparent); }

/* ---- FAQ ---- */
.faq details {
  border: 1px solid var(--edge);
  border-radius: 10px;
  background: var(--panel);
  padding: 0 18px;
  margin-bottom: 10px;
}
.faq summary {
  cursor: pointer;
  padding: 16px 0;
  font-weight: 600;
  font-size: 18px;
  color: var(--ink);
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before { content: "+ "; color: var(--accent); font-weight: 700; }
.faq details[open] summary::before { content: "– "; }
.faq details[open] summary { border-bottom: 1px solid var(--edge); }
.faq details p { color: var(--muted); margin: 14px 0; font-family: var(--sans); }

/* ---- Long-form doc pages ---- */
.doc { max-width: 760px; margin: 0 auto; padding: 8px 0 24px; }
.doc h1 { font-size: 40px; font-weight: 600; letter-spacing: -0.02em; margin: 0 0 8px; }
.doc h2 { font-size: 25px; font-weight: 600; margin: 40px 0 12px; }
.doc h3 { font-size: 19px; font-weight: 600; margin: 24px 0 8px; }
.doc p, .doc li { color: var(--ink); }
.doc p { margin: 0 0 14px; }
.doc ul { padding-left: 22px; margin: 0 0 16px; }
.doc li { margin-bottom: 8px; }
.doc em { color: var(--muted); }
.doc code { background: color-mix(in srgb, var(--navy) 5%, var(--bg)); border: 1px solid var(--edge); border-radius: 5px; padding: 1px 5px; font-size: 14px; }
.doc table { width: 100%; border-collapse: collapse; margin: 8px 0 18px; font-size: 15px; }
.doc th, .doc td { text-align: left; padding: 9px 12px; border: 1px solid var(--edge); vertical-align: top; }
.doc th { background: color-mix(in srgb, var(--navy) 4%, var(--bg)); font-weight: 600; font-family: var(--serif); }
.doc hr { border: none; border-top: 1px solid var(--edge); margin: 32px 0; }
.doc-tools { display: flex; gap: 10px; flex-wrap: wrap; margin: 4px 0 28px; }

/* ---- Figures / inline SVG diagrams ---- */
.figure { margin: 18px 0 24px; }
.figure svg { width: 100%; height: auto; display: block; background: var(--panel); border: 1px solid var(--edge); border-radius: 10px; }
.figure figcaption { color: var(--muted); font-size: 13px; margin-top: 8px; text-align: center; }
.dfd-zone { fill: color-mix(in srgb, var(--accent) 5%, transparent); stroke: var(--edge); stroke-dasharray: 5 4; }
.dfd-zone-bad { fill: color-mix(in srgb, var(--bad) 6%, transparent); stroke: color-mix(in srgb, var(--bad) 50%, transparent); stroke-dasharray: 5 4; }
.dfd-box { fill: var(--panel); stroke: var(--edge); }
.dfd-box-accent { fill: color-mix(in srgb, var(--accent) 10%, var(--panel)); stroke: var(--accent); }
.dfd-box-bad { fill: color-mix(in srgb, var(--bad) 10%, var(--panel)); stroke: var(--bad); }
.dfd-t { fill: var(--ink); font-family: var(--sans); font-size: 13px; }
.dfd-t-sm { fill: var(--muted); font-family: var(--sans); font-size: 11px; }
.dfd-t-zone { fill: var(--muted); font-family: var(--mono); font-size: 11px; letter-spacing: 0.04em; }
.dfd-line { stroke: var(--accent); stroke-width: 1.5; fill: none; marker-end: url(#arrow); }
.dfd-line-bad { stroke: var(--bad); stroke-width: 1.5; fill: none; marker-end: url(#arrow-bad); }
.dfd-arrow { fill: var(--accent); }
.dfd-arrow-bad { fill: var(--bad); }

/* ---- Print: clean PDF from doc pages ---- */
@media print {
  .site-header, .site-footer, .doc-tools { display: none !important; }
  body { background: #fff; color: #111; font-size: 12pt; }
  .doc { max-width: none; }
  .doc h1, .doc h2, .doc h3, .doc p, .doc li, .doc td, .doc th { color: #111; }
  .doc code, .doc th { background: #f4f4f4; border-color: #ccc; }
  .doc th, .doc td { border-color: #ccc; }
  .doc em { color: #555; }
  section { padding: 0; }
  a { color: #111; text-decoration: none; }
  .status { border-color: #999; color: #333; background: #fff; }
  .status.shipped, .status.built, .status.roadmap, .status.none { background: #fff; color: #111; }
  .figure svg { background: #fff; border-color: #ccc; }
  .dfd-zone { fill: #f6f8fc; stroke: #bbb; }
  .dfd-zone-bad { fill: #fdf2f2; stroke: #d99; }
  .dfd-box { fill: #fff; stroke: #999; }
  .dfd-box-accent { fill: #eef4ff; stroke: #5a82d0; }
  .dfd-box-bad { fill: #fdeeee; stroke: #c55; }
  .dfd-t { fill: #111; }
  .dfd-t-sm, .dfd-t-zone { fill: #555; }
  .dfd-line { stroke: #3f6fd0; }
  .dfd-line-bad { stroke: #c55; }
  .dfd-arrow { fill: #3f6fd0; }
  .dfd-arrow-bad { fill: #c55; }
}

/* ---- Responsive ---- */
@media (max-width: 820px) {
  .grid, .dl-grid, .doors { grid-template-columns: 1fr; }
  .hero-grid { grid-template-columns: 1fr; text-align: center; gap: 20px; }
  .hero-art { order: -1; }
  .hero-art img { max-width: 220px; }
  .hero h1 { font-size: 40px; margin-left: auto; margin-right: auto; }
  .hero p.lede { font-size: 18px; margin-left: auto; margin-right: auto; }
  .hero .cta { justify-content: center; }
  .nav { gap: 16px; }
  .nav .nav-hide { display: none; }
}

/* ---- Display headings: STIX Two Text regular (400) for an editorial feel ---- */
.hero h1, section h2, .card h3, .door h3,
.doc h1, .doc h2, .doc h3, .dl-card .os { font-weight: 400; }

/* ============================================================
   Company-level components (company home · solutions · pricing)
   ============================================================ */

/* Products dropdown in the top nav */
.menu { position: relative; display: inline-flex; }
.menu-btn {
  font-family: var(--serif);
  background: none; border: none; padding: 0;
  color: var(--muted); font-weight: 600; font-size: 16px;
  cursor: pointer; display: inline-flex; align-items: center; gap: 5px;
}
.menu-btn:hover, .menu:focus-within .menu-btn { color: var(--ink); }
.menu-btn .caret { font-size: 9px; transition: transform 0.15s; }
.menu:hover .menu-btn .caret, .menu:focus-within .menu-btn .caret { transform: rotate(180deg); }
.menu-panel {
  position: absolute; top: calc(100% + 14px); left: -14px;
  min-width: 290px; padding: 8px;
  background: var(--panel); border: 1px solid var(--edge); border-radius: 12px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity 0.15s, transform 0.15s, visibility 0.15s;
}
.menu:hover .menu-panel, .menu:focus-within .menu-panel { opacity: 1; visibility: visible; transform: translateY(0); }
.menu-panel a { display: block; padding: 11px 12px; border-radius: 8px; color: var(--ink); font-family: var(--sans); }
.menu-panel a:hover { background: color-mix(in srgb, var(--accent) 12%, transparent); text-decoration: none; }
.menu-panel .mi-t { display: block; font-family: var(--serif); font-weight: 600; font-size: 16px; }
.menu-panel .mi-d { display: block; color: var(--muted); font-size: 13px; margin-top: 2px; }
.menu::after { content: ""; position: absolute; top: 100%; left: 0; right: 0; height: 16px; } /* hover bridge */
.nav .btn { padding: 8px 16px; font-size: 15px; }

/* Credibility strip under the statement */
.trust-strip { border-top: 1px solid var(--edge); border-bottom: 1px solid var(--edge); background: color-mix(in srgb, var(--navy) 4%, var(--bg)); }
.trust-strip .wrap { display: flex; flex-wrap: wrap; gap: 12px 30px; padding-top: 20px; padding-bottom: 20px; }
.trust-strip .ti { color: var(--muted); font-size: 14.5px; display: inline-flex; align-items: center; gap: 9px; }
.trust-strip .ti::before { content: ""; width: 6px; height: 6px; border-radius: 999px; background: var(--gold); flex: none; }

/* Product showcase (reuses .doors grid) */
.doors.prod .door { gap: 14px; }
.doors.prod .door-head { display: flex; align-items: center; gap: 12px; }
.doors.prod .door-head h3 { font-size: 24px; }
.doors.prod .door .lede { color: var(--muted); margin: 0; }

/* Pricing */
.price-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 32px; }
.price-card { background: var(--panel); border: 1px solid var(--edge); border-radius: 14px; padding: 28px 24px; display: flex; flex-direction: column; }
.price-card.featured { border-color: color-mix(in srgb, var(--accent) 55%, var(--edge)); box-shadow: 0 0 0 1px color-mix(in srgb, var(--accent) 30%, transparent); }
.price-card .tier { font-family: var(--serif); font-size: 21px; font-weight: 400; }
.price-card .price { font-family: var(--serif); font-size: 34px; font-weight: 400; margin: 8px 0 2px; }
.price-card .price small { font-size: 15px; color: var(--muted); font-family: var(--sans); }
.price-card .price-sub { color: var(--muted); font-size: 14px; margin-bottom: 6px; }
.price-card ul { list-style: none; padding: 0; margin: 16px 0 22px; display: flex; flex-direction: column; gap: 9px; }
.price-card li { color: var(--ink); font-size: 15px; padding-left: 22px; position: relative; }
.price-card li::before { content: "✓"; position: absolute; left: 0; color: var(--accent); font-weight: 700; }
.price-card .btn { margin-top: auto; text-align: center; }

/* Closing / centered CTA band */
.cta-band { text-align: center; border-top: 1px solid var(--edge); background: color-mix(in srgb, var(--navy) 4%, var(--bg)); }
.cta-band h2::after, .center-head h2::after { margin-left: auto; margin-right: auto; }
.cta-band .cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-top: 24px; }
.cta-band .section-lede, .center-head .section-lede { margin-left: auto; margin-right: auto; text-align: center; }
.center-head { text-align: center; }

/* Product-page brand sublabel ("GaugeBench" · by GaugeWright) */
.brand-row { display: flex; align-items: center; gap: 9px; }
.by { color: var(--muted); font-weight: 400; font-size: 12.5px; font-family: var(--sans); }
.by:hover { color: var(--ink); }

@media (max-width: 820px) {
  .price-grid { grid-template-columns: 1fr; }
  .nav .menu { display: none; }
  .trust-strip .wrap { gap: 10px 20px; }
}
