/* fixvis marketing site: layout tokens, base type, site chrome and design-system components.
   Colours come only from tokens.css (RB-0, generated); this file never names a hex.
   Component rules are ported from the brand bundle's components.css; grids and chrome from
   artboard 08 (site home) and BRAND-SPEC §3/§6. Link order in every page head:
   fonts.css → tokens.css → site.css → page CSS. */

:root {
  --font-display: "Bricolage Grotesque", "Instrument Sans", system-ui, sans-serif;
  --font-ui: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --font-arabic: "IBM Plex Sans Arabic", "Noto Sans Arabic", Tahoma, sans-serif;
  --font-sans: var(--font-ui);
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-6: 24px;
  --space-8: 32px;
  --space-12: 48px;
  --space-24: 96px;
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 14px;
  --radius-full: 999px;
}

/* ---------- Base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  background: var(--surface);
  color: var(--ink);
  font: 400 17px / 1.6 var(--font-ui);
  -webkit-font-smoothing: antialiased;
}
a {
  color: var(--bronze);
}
a:hover {
  color: var(--ink);
}
h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  color: var(--ink);
  margin: 0;
}
img {
  max-width: 100%;
}
:focus-visible {
  outline: 2px solid transparent;
  box-shadow: var(--focus-ring);
  border-radius: var(--radius-sm);
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- Layout ---------- */
.wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding-left: max(24px, env(safe-area-inset-left, 0px));
  padding-right: max(24px, env(safe-area-inset-right, 0px));
}
.band {
  padding-block: 96px;
}
.band-espresso {
  background: var(--espresso);
  color: var(--bone);
}
.band-espresso h1,
.band-espresso h2,
.band-espresso h3,
.band-espresso h4 {
  color: var(--bone);
}
.band-espresso p {
  color: var(--on-espresso-body);
}
.band-espresso a:not(.fx-btn) {
  color: var(--bone);
}
.band-espresso .eyebrow {
  color: var(--gold);
}
.grid-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: 56px;
  align-items: center;
}
.three {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}
.four {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}
.split {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 56px;
  align-items: start;
}
.split84 {
  display: grid;
  grid-template-columns: minmax(0, 8fr) minmax(0, 4fr);
  gap: 56px;
  align-items: start;
}
.tablebox {
  overflow-x: auto;
}

/* ---------- Type scale (BRAND-SPEC §3) ---------- */
.eyebrow {
  margin: 0;
  font: 600 12px / 16px var(--font-ui);
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--bronze);
}
.display-xl {
  font: 800 72px / 72px var(--font-display);
  letter-spacing: -.035em;
  text-wrap: balance;
}
.h1 {
  font: 800 64px / 64px var(--font-display);
  letter-spacing: -.04em;
  text-wrap: balance;
}
.h2 {
  font: 800 48px / 52px var(--font-display);
  letter-spacing: -.03em;
  text-wrap: balance;
}
.heading {
  font: 700 28px / 34px var(--font-display);
  letter-spacing: -.015em;
}
.lead {
  font: 400 20px / 30px var(--font-ui);
  color: var(--ink-muted);
}
.title {
  font: 600 18px / 26px var(--font-ui);
}
.body-sm {
  font: 400 14px / 21px var(--font-ui);
}

/* ---------- Surfaces ---------- */
.card {
  background: var(--surface-raised);
  box-shadow: inset 0 0 0 1px var(--line);
  border-radius: var(--radius-lg);
  padding: 24px;
}
.panel-gold {
  background: var(--gold-soft);
  box-shadow: inset 0 0 0 2px var(--gold);
  border-radius: var(--radius-lg);
}
.icon {
  width: 24px;
  height: 24px;
  flex: none;
  color: var(--bronze);
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.shot {
  border-radius: var(--radius-md);
  box-shadow: inset 0 0 0 1px var(--line), var(--shadow-float);
  overflow: hidden;
  background: var(--surface-raised);
}
.shot img {
  display: block;
  width: 100%;
  height: auto;
}

/* ---------- Hallmark glyph ---------- */
.fx-hm {
  display: inline-block;
  vertical-align: -2px;
  flex: none;
}
.fx-hm-tag {
  fill: var(--gold);
}
.fx-hm-check {
  stroke: var(--on-gold);
}

/* ---------- Button ---------- */
.fx-btn {
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  line-height: 20px;
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
}
.fx-btn-md {
  padding: 9px var(--space-4);
}
.fx-btn-lg {
  padding: 13px 22px;
  font-size: 16px;
}
.fx-btn-sm {
  padding: 5px var(--space-3);
  font-size: 13px;
}
.fx-btn-primary,
.fx-btn-primary:hover {
  background: var(--gold);
  color: var(--on-gold);
}
.fx-btn-primary:hover {
  filter: brightness(1.05);
}
.fx-btn-secondary,
.fx-btn-secondary:hover {
  background: var(--surface-raised);
  color: var(--ink);
  border-color: var(--line-strong);
}
.fx-btn-secondary:hover {
  background: var(--surface-sunk);
}
.fx-btn-quiet {
  background: transparent;
  color: var(--bronze);
  padding-left: 0;
  padding-right: 0;
}
.fx-btn-quiet:hover {
  color: var(--bronze);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.fx-btn-dark,
.fx-btn-dark:hover {
  background: var(--espresso);
  color: var(--bone);
}
.fx-btn-on-espresso,
.fx-btn-on-espresso:hover {
  background: transparent;
  color: var(--bone);
  box-shadow: inset 0 0 0 1px var(--espresso-outline);
}
.fx-btn:focus-visible {
  outline: 2px solid transparent;
  box-shadow: var(--focus-ring);
}
.fx-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* ---------- Badge (severity is red only) ---------- */
.fx-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  line-height: 20px;
  padding: 0 var(--space-2);
  border-radius: var(--radius-sm);
  background: var(--surface-sunk);
  color: var(--ink);
}
.fx-badge-critical {
  background: var(--critical);
  color: var(--on-critical);
}
.fx-badge-high {
  background: var(--critical-soft);
  color: var(--critical);
}
.fx-badge-medium {
  background: var(--surface-sunk);
  color: var(--ink);
}
.fx-badge-low {
  background: transparent;
  color: var(--ink-muted);
  box-shadow: inset 0 0 0 1px var(--line-strong);
}
.fx-badge-gold {
  background: var(--gold-soft);
  color: var(--bronze);
}
.fx-badge-good {
  background: var(--good-soft);
  color: var(--good);
}
.fx-badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

/* ---------- Stamp ---------- */
.fx-stamp {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  line-height: 18px;
  padding: 3px 8px 3px 6px;
  border-radius: var(--radius-sm);
}
.fx-stamp-verified {
  background: var(--gold-soft);
  color: var(--bronze);
  box-shadow: inset 0 0 0 1px var(--gold);
}
.fx-stamp-waiting {
  background: transparent;
  color: var(--ink-muted);
  box-shadow: none;
  outline: 1px dashed var(--line-strong);
  outline-offset: -1px;
}

/* ---------- Domain field ---------- */
.fx-field {
  display: flex;
  gap: var(--space-2);
  padding: 6px;
  background: var(--surface-raised);
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  max-width: 560px;
  box-shadow: var(--shadow-float);
}
.fx-field-input {
  flex: 1 1 auto;
  min-width: 0;
  font: inherit;
  font-size: 17px;
  color: var(--ink);
  background: transparent;
  border: 0;
  padding: 0 var(--space-3);
}
.fx-field-input::placeholder {
  color: var(--ink-muted);
}
.fx-field-input:focus {
  outline: none;
}
.fx-field:focus-within {
  box-shadow: var(--focus-ring);
}

/* ---------- Score tile ---------- */
.fx-score {
  background: var(--surface-raised);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: var(--space-4);
  min-width: 220px;
}
.fx-score-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink-muted);
}
.fx-score-row {
  display: flex;
  align-items: baseline;
  gap: var(--space-3);
  margin-top: var(--space-1);
}
.fx-score-value {
  font-family: var(--font-display);
  font-size: 40px;
  line-height: 44px;
  font-weight: 800;
  letter-spacing: -.02em;
  font-variant-numeric: tabular-nums;
}
.fx-score-delta {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
}
.fx-score-delta.is-up {
  color: var(--good);
}
.fx-score-delta.is-down {
  color: var(--critical);
}
.fx-score-range {
  position: relative;
  height: 8px;
  margin-top: var(--space-3);
  background: var(--surface-sunk);
  border-radius: var(--radius-full);
}
.fx-score-band {
  position: absolute;
  top: 0;
  bottom: 0;
  background: var(--gold-soft);
  box-shadow: inset 0 0 0 1px var(--gold);
  border-radius: var(--radius-full);
}
.fx-score-tick {
  position: absolute;
  top: -4px;
  width: 3px;
  height: 16px;
  margin-left: -1.5px;
  background: var(--ink);
  border-radius: 2px;
}
.fx-score-meta {
  margin-top: var(--space-2);
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-muted);
}

/* ---------- Fix card ---------- */
.fx-card {
  background: var(--surface-raised);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: var(--space-4);
  display: grid;
  gap: var(--space-2);
  max-width: 340px;
}
.fx-card-top {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}
.fx-card-area {
  font-size: 12px;
  color: var(--ink-muted);
}
.fx-card-title {
  margin: 0;
  font-family: var(--font-ui);
  font-size: 16px;
  line-height: 22px;
  font-weight: 600;
  text-wrap: balance;
}
.fx-card-why {
  margin: 0;
  font-size: 14px;
  line-height: 21px;
  color: var(--ink-muted);
}
.fx-card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
  margin-top: var(--space-1);
  flex-wrap: wrap;
}
.fx-card-owner {
  font-size: 12px;
  color: var(--ink-muted);
}

/* ---------- Site header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}
.site-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  padding-block: 18px;
}
.site-logo {
  display: flex;
  flex: none;
}
.site-logo img {
  display: block;
  height: 30px;
  width: auto;
}
.navlinks {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  flex: 1 1 auto;
  font-size: 15px;
  font-weight: 500;
}
.navlinks a {
  color: var(--ink);
  text-decoration: none;
}
.navlinks a:hover {
  color: var(--bronze);
}
.navlinks a[aria-current="page"],
.navmenu-panel a[aria-current="page"] {
  color: var(--bronze);
}
.navcta {
  display: flex;
  gap: 16px;
  align-items: center;
  margin-left: auto;
}
.site-nav .login {
  color: var(--ink);
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
}
.site-nav .login:hover {
  color: var(--bronze);
}
.navmenu {
  display: none;
  position: relative;
}
.navmenu summary {
  list-style: none;
  cursor: pointer;
  width: 44px;
  height: 44px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  border-radius: var(--radius-md);
  background: var(--surface-raised);
  box-shadow: inset 0 0 0 1px var(--line-strong);
}
.navmenu summary::-webkit-details-marker {
  display: none;
}
.navmenu summary span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
}
.navmenu-panel {
  position: absolute;
  right: 0;
  top: 52px;
  min-width: 220px;
  background: var(--surface-raised);
  border-radius: var(--radius-lg);
  box-shadow: inset 0 0 0 1px var(--line), var(--shadow-float);
  padding: 8px;
  display: flex;
  flex-direction: column;
}
.navmenu-panel a {
  display: flex;
  align-items: center;
  padding: 12px 14px;
  border-radius: 6px;
  font-size: 15px;
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
  min-height: 44px;
}
.navmenu-panel a:hover {
  background: var(--surface-sunk);
  color: var(--ink);
}
@media (max-width: 900px) {
  .navlinks,
  .site-nav .login {
    display: none;
  }
  .navmenu {
    display: block;
  }
}
@media (max-width: 400px) {
  .site-nav {
    gap: 12px;
  }
  .navcta {
    gap: 8px;
  }
  .site-logo img {
    height: 24px;
    width: auto;
  }
  .site-nav .fx-btn {
    padding: 5px 12px;
    font-size: 13px;
  }
}

/* ---------- Site footer ---------- */
.site-footer {
  background: var(--espresso);
  color: var(--on-espresso-muted);
  border-top: 1px solid var(--espresso-line);
  font-size: 14px;
  line-height: 24px;
}
.site-footer-in {
  padding-block: 40px;
  display: flex;
  flex-wrap: wrap;
  gap: 24px 48px;
  justify-content: space-between;
  align-items: flex-start;
}
.foot-brand {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 320px;
}
.foot-brand img {
  display: block;
  height: 28px;
  width: auto;
  align-self: flex-start;
}
.foot-brand p {
  margin: 0;
}
.foot-cols {
  display: flex;
  gap: 48px;
  flex-wrap: wrap;
}
.foot-col {
  display: flex;
  flex-direction: column;
}
.foot-h {
  margin: 0;
  color: var(--bone);
  font-weight: 600;
}
.site-footer a {
  color: var(--on-espresso-muted);
  text-decoration: none;
}
.site-footer a:hover {
  color: var(--bone);
}
.foot-bot {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  padding-block: 16px 32px;
  border-top: 1px solid var(--espresso-line);
}

/* ---------- Responsive (artboard 08 breakpoints) ---------- */
@media (max-width: 960px) {
  .grid-hero,
  .split,
  .split84 {
    grid-template-columns: 1fr;
  }
  .three {
    grid-template-columns: 1fr;
  }
  .four {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .band {
    padding-block: 56px;
  }
  .h1 {
    font-size: 46px;
    line-height: 48px;
  }
  .h2 {
    font-size: 34px;
    line-height: 38px;
  }
}
@media (max-width: 560px) {
  .wrap {
    padding-left: max(16px, env(safe-area-inset-left, 0px));
    padding-right: max(16px, env(safe-area-inset-right, 0px));
  }
  .four {
    grid-template-columns: 1fr;
  }
  .foot-cols {
    gap: 24px 32px;
  }
}
