/* ==========================================================================
   AutoLink — autolinknow.com public site

   Brand tokens are the SAME values the operator console's "Showroom" theme uses
   (web/src/theme/tokens.css), so the site and the product read as one thing.

   The orange trap, inherited from the previous site and deliberately not repeated:
   white text on the vivid brand orange #FF6B2C is 2.8:1, below WCAG AA. The vivid
   orange is used here only as a non-text accent (rules, marks, borders). Anything
   carrying white text uses --brand-orange-ink #C2410C (5.2:1), which is the same
   decision the console made for the same reason.
   ========================================================================== */

:root {
  --navy: #0b1f3a;
  --navy-700: #13304f;
  --navy-300: #5a6b85;
  --blue: #1b4b8f;
  --orange: #ff6b2c;        /* accent only — never behind white text */
  --orange-ink: #c2410c;    /* AA-safe with white text */
  --hairline: #dde2eb;

  --page: #ffffff;
  --page-alt: #f6f8fb;
  --page-cool: #eef1f6;
  --ink: #0b1f3a;
  --ink-body: #26344a;
  --ink-muted: #566376;

  --radius: 12px;
  --radius-lg: 18px;
  --maxw: 1120px;
  --gutter: 24px;

  --shadow-sm: 0 1px 2px rgba(11, 31, 58, 0.06), 0 1px 3px rgba(11, 31, 58, 0.08);
  --shadow-md: 0 4px 6px -1px rgba(11, 31, 58, 0.07), 0 10px 20px -6px rgba(11, 31, 58, 0.12);

  --font-display: 'Poppins', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-body: 'Inter', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
}

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

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

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

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--ink);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 0.5em;
}
h1 { font-size: clamp(2.1rem, 5.2vw, 3.6rem); font-weight: 700; }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.4rem); font-weight: 650; }
h3 { font-size: 1.18rem; font-weight: 650; }
p { margin: 0 0 1em; }
a { color: var(--blue); }

.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding-inline: var(--gutter);
}

.eyebrow {
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--orange-ink);
  margin: 0 0 0.75rem;
}
.section-head { max-width: 46rem; margin-bottom: 2.5rem; }
.section-head p { color: var(--ink-muted); font-size: 1.05rem; margin-bottom: 0; }

/* ---- buttons ---------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-size: 0.97rem;
  font-weight: 600;
  padding: 0.78rem 1.4rem;
  border-radius: var(--radius);
  border: 1px solid transparent;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.btn-primary { background: var(--orange-ink); color: #fff; }
.btn-primary:hover { background: #a5340a; }
.btn-secondary { background: var(--page); color: var(--navy); border-color: var(--hairline); }
.btn-secondary:hover { background: var(--page-alt); border-color: #b4c1d5; }
.btn-ghost-light { background: transparent; color: #fff; border-color: rgba(255, 255, 255, 0.4); }
.btn-ghost-light:hover { background: rgba(255, 255, 255, 0.12); border-color: rgba(255, 255, 255, 0.7); }

:where(a, button, summary):focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 2px;
  border-radius: 6px;
}

/* ---- header ----------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--hairline);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  min-height: 70px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.22rem;
  color: var(--navy);
  text-decoration: none;
  letter-spacing: -0.02em;
}
.brand .mark { flex: none; }

.nav { display: flex; align-items: center; gap: 1.75rem; margin-left: auto; }
.nav a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--ink-body);
  text-decoration: none;
}
.nav a:hover { color: var(--navy); }
.header-cta { display: flex; align-items: center; gap: 0.75rem; }

.nav-toggle {
  display: none;
  margin-left: auto;
  background: none;
  border: 1px solid var(--hairline);
  border-radius: 10px;
  padding: 0.5rem 0.65rem;
  cursor: pointer;
  color: var(--navy);
}

/* ---- hero ------------------------------------------------------------- */
.hero {
  position: relative;
  background:
    radial-gradient(1100px 520px at 78% -12%, rgba(27, 75, 143, 0.55), transparent 62%),
    linear-gradient(170deg, var(--navy) 0%, #0e2847 58%, var(--navy-700) 100%);
  color: #fff;
  overflow: hidden;
}
.hero::after {
  content: '';
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--orange) 0%, var(--blue) 55%, transparent 100%);
}
.hero .wrap { padding-block: clamp(4rem, 10vw, 7rem); }
.hero-inner { max-width: 44rem; }
.hero h1 { color: #fff; }
.hero .eyebrow { color: #ffb48c; }
.hero-lede {
  font-size: clamp(1.05rem, 2vw, 1.22rem);
  color: #c9d6e8;
  max-width: 38rem;
  margin-bottom: 2rem;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.85rem; }
.hero-note {
  margin: 1.75rem 0 0;
  font-size: 0.9rem;
  color: #93a7c2;
}

/* ---- generic sections -------------------------------------------------- */
section { padding-block: clamp(3.5rem, 7vw, 5.5rem); }
.section-alt { background: var(--page-alt); border-block: 1px solid var(--hairline); }
.section-cool { background: var(--page-cool); border-block: 1px solid var(--hairline); }

.grid { display: grid; gap: 1.25rem; }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(265px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(215px, 1fr)); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2.5rem; }

.card {
  background: var(--page);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
  padding: 1.6rem;
  box-shadow: var(--shadow-sm);
}
.card h3 { margin-bottom: 0.4rem; }
.card p { color: var(--ink-muted); font-size: 0.97rem; margin-bottom: 0; }
.card .icon {
  width: 42px; height: 42px;
  display: grid; place-items: center;
  border-radius: 11px;
  background: #fff3ec;
  color: var(--orange-ink);
  margin-bottom: 1rem;
}

/* ---- steps ------------------------------------------------------------- */
.step { position: relative; padding-top: 2.6rem; }
.step-n {
  position: absolute;
  top: 0; left: 0;
  width: 2rem; height: 2rem;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--navy);
  color: #fff;
  font-family: var(--font-display);
  font-size: 0.92rem;
  font-weight: 650;
}
.step h3 { margin-bottom: 0.35rem; }
.step p { color: var(--ink-muted); font-size: 0.97rem; margin-bottom: 0; }

/* ---- split ------------------------------------------------------------- */
.split { align-items: start; }
.checklist { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.9rem; }
.checklist li { display: flex; gap: 0.7rem; align-items: flex-start; }
.checklist svg { flex: none; margin-top: 0.3rem; color: var(--orange-ink); }
.checklist strong { color: var(--ink); font-weight: 600; }
.checklist span { color: var(--ink-muted); }

.panel {
  background: var(--navy);
  color: #d7e2f1;
  border-radius: var(--radius-lg);
  padding: 2rem;
}
.panel h3 { color: #fff; }
.panel p { color: #b7c7dd; }
.panel .btn { margin-top: 0.5rem; }

/* ---- contact ----------------------------------------------------------- */
.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.25rem; }
.contact-item h3 { font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink-muted); font-weight: 600; margin-bottom: 0.4rem; }
.contact-item p, .contact-item a { font-size: 1.02rem; color: var(--ink); text-decoration: none; margin: 0; }
.contact-item a:hover { color: var(--orange-ink); text-decoration: underline; }

/* ---- footer ------------------------------------------------------------ */
.site-footer {
  background: var(--navy);
  color: #9fb2cb;
  padding-block: 3rem 2rem;
  font-size: 0.93rem;
}
.site-footer .brand { color: #fff; margin-bottom: 0.75rem; }
.footer-top { display: grid; grid-template-columns: minmax(240px, 1.5fr) repeat(auto-fit, minmax(150px, 1fr)); gap: 2rem; }
.site-footer h4 {
  font-family: var(--font-display);
  color: #fff;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 0 0 0.9rem;
}
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.55rem; }
.site-footer a { color: #9fb2cb; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-bottom {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  font-size: 0.86rem;
  color: #7e93ae;
}
.disclosure { max-width: 60ch; }

/* ---- mobile ------------------------------------------------------------ */
@media (max-width: 860px) {
  .nav-toggle { display: inline-flex; }
  .nav {
    display: none;
    position: absolute;
    inset-inline: 0;
    top: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--page);
    border-bottom: 1px solid var(--hairline);
    padding: 0.5rem var(--gutter) 1.25rem;
    box-shadow: var(--shadow-md);
  }
  .nav[data-open='true'] { display: flex; }
  .nav a { padding: 0.8rem 0; border-bottom: 1px solid var(--hairline); }
  .nav .header-cta { flex-direction: column; align-items: stretch; padding-top: 1rem; }
  .nav .header-cta .btn { width: 100%; }
  .site-header .wrap { position: relative; }
  .header-cta.desktop-only { display: none; }
}
@media (min-width: 861px) {
  .nav .header-cta.mobile-only { display: none; }
}

/* ---- classes replacing former inline styles (so the CSP needs no 'unsafe-inline') ---- */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
}
.skip-link:focus-visible {
  left: 12px;
  top: 12px;
}
.hero-link { color: #ffb48c; }
.panel-note { font-size: 0.92rem; color: #93a7c2; }
.footer-blurb { max-width: 34ch; }
