@import url("https://fonts.googleapis.com/css2?family=Atkinson+Hyperlegible:wght@400;700&family=IBM+Plex+Mono:wght@400;500;700&family=IBM+Plex+Sans:wght@400;500;600;700&display=swap");

:root {
  color-scheme: light;
  --paper: #eff3f6;
  --paper-strong: #ffffff;
  --ink: #0d1116;
  --muted: #595e64;
  --line: #dbdee3;
  --accent: #b75e2b;
  --accent-strong: #9c470e;
  --good: #286b51;
  --warn: #96520f;
  --danger: #8f3340;
  --radius: 16px;
  --shadow-lg: 0 18px 48px rgb(13 17 22 / 9%);
  --shadow-sm: 0 12px 30px rgb(13 17 22 / 7%);
}

html {
  scroll-behavior: smooth;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.65rem 0.9rem;
  border-radius: 10px;
  background: var(--ink);
  color: #ffffff;
  font-weight: 700;
  transform: translateY(-150%);
}

.skip-link:focus {
  transform: translateY(0);
}

body {
  min-width: 320px;
  background: var(--paper);
  color: var(--ink);
  font-family: "Atkinson Hyperlegible", ui-sans-serif, system-ui, sans-serif;
  line-height: 1.55;
  text-rendering: optimizeLegibility;
}

button,
input,
select,
textarea {
  font: inherit;
}

h1,
h2,
h3,
.brand-link,
.topbar-cta,
.primary-cta,
.secondary-cta,
.secondary-link,
.checker-form button {
  font-family: "IBM Plex Sans", ui-sans-serif, system-ui, sans-serif;
}

h1,
h2,
h3 {
  color: var(--ink);
  font-weight: 500;
  letter-spacing: -0.035em;
}

:focus-visible {
  outline: 3px solid var(--accent-strong) !important;
  outline-offset: 3px !important;
}

.tool-shell,
.hub-shell,
.gi-footer-shell {
  width: min(calc(100% - (2 * clamp(1rem, 4vw, 2rem))), 1180px);
  max-width: none;
  padding-inline: 0;
}

.tool-hero,
.hub-hero {
  padding: 1.25rem 0 clamp(3.5rem, 7vw, 5.5rem);
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(circle at 78% 18%, rgb(183 94 43 / 7%), transparent 32%),
    var(--paper);
  color: var(--ink);
}

.tool-topbar,
.hub-topbar {
  min-height: 48px;
  padding: 0;
  border: 0;
  background: transparent;
  backdrop-filter: none;
}

.tool-breadcrumbs {
  margin-top: clamp(2rem, 5vw, 3rem);
  color: var(--muted);
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.75rem;
}

.tool-breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.tool-breadcrumbs li {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

.tool-breadcrumbs a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  color: var(--ink);
  font-weight: 500;
  text-decoration: underline;
  text-decoration-color: rgb(183 94 43 / 30%);
  text-underline-offset: 0.22em;
}

.tool-breadcrumbs a:hover {
  color: var(--accent-strong);
  text-decoration-color: currentColor;
}

.breadcrumb-separator {
  margin-inline: 0.6rem;
  color: #858b91;
}

.brand-lockup {
  gap: 0.1rem;
}

.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--ink);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.025em;
}

.brand-link img {
  display: block;
  width: 34px;
  height: 34px;
}

.brand-subline,
.back-link {
  color: var(--muted);
}

.back-link {
  font-weight: 600;
}

.back-link:hover,
.brand-link:hover {
  color: var(--accent-strong);
}

.topbar-actions {
  gap: 0.75rem;
}

.topbar-note {
  border-color: var(--line);
  background: rgb(250 252 254 / 76%);
  color: var(--muted);
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-weight: 500;
}

.topbar-note::before {
  background: var(--good);
  box-shadow: 0 0 0 4px rgb(40 107 81 / 12%);
}

.topbar-cta,
.primary-cta,
.checker-form button {
  border: 1px solid var(--accent-strong);
  border-radius: 12px;
  background: var(--accent);
  box-shadow: none;
  color: #ffffff;
  font-weight: 600;
}

.topbar-cta:hover,
.primary-cta:hover,
.checker-form button:hover {
  background: var(--accent-strong);
}

.secondary-cta {
  border: 1px solid #bfc5ca;
  border-radius: 12px;
  background: #ffffff;
  color: var(--ink);
  font-weight: 600;
}

.secondary-cta:hover {
  border-color: var(--accent);
  color: var(--accent-strong);
}

.tool-hero-grid,
.hub-hero-grid {
  gap: clamp(2rem, 6vw, 5rem);
  padding: clamp(3.5rem, 8vw, 6.5rem) 0 0;
}

.tool-breadcrumbs + .tool-hero-grid {
  padding-top: clamp(1.5rem, 4vw, 2.5rem);
}

.tool-hero-grid--simple {
  grid-template-columns: minmax(0, 760px);
}

.tool-hero-grid--simple h1 {
  max-width: 14ch;
  margin-top: 0;
}

.tool-hero-grid--simple .hero-copy {
  max-width: 56ch;
}

.eyebrow,
.card-label,
.section-kicker,
.tool-status,
.roadmap-label {
  color: var(--accent-strong);
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.09em;
}

h1 {
  max-width: 13ch;
  margin-top: 0.7rem;
  font-size: clamp(2.7rem, 5.8vw, 4.75rem);
  line-height: 0.98;
}

.hero-copy,
.section-copy {
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.65;
}

.hero-copy a {
  color: var(--accent-strong);
  text-underline-offset: 0.16em;
}

.hero-points {
  color: #33383e;
}

.hero-points li::before,
.side-list li::before {
  width: 6px;
  height: 6px;
  background: var(--accent);
}

.hero-card,
.tool-form-card,
.tool-side-card,
.result-panel,
.cta-banner,
.tool-card,
.strategy-card,
.roadmap-card,
.faq-item {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #ffffff;
  box-shadow: var(--shadow-sm);
}

.hero-card {
  padding: clamp(1.2rem, 2.5vw, 1.7rem);
  border-color: var(--line);
  background: rgb(250 252 254 / 92%);
  box-shadow: var(--shadow-lg);
  color: var(--ink);
}

.hero-kpis div {
  border-color: var(--line);
  border-radius: 12px;
  background: #ffffff;
}

.hero-kpis span {
  color: var(--muted);
  font-family: "IBM Plex Mono", ui-monospace, monospace;
}

.hero-kpis strong,
.hero-note {
  color: var(--ink);
}

.tools-section,
.roadmap-section,
.cta-section,
.faq-section,
.tool-form-section,
.tool-faq-section {
  padding-block: clamp(3.75rem, 7vw, 5.5rem);
}

.roadmap-section {
  border-color: var(--line);
  background: #f4f7f9;
}

.tool-card,
.strategy-card,
.roadmap-card,
.tool-form-card,
.tool-side-card,
.result-panel,
.cta-banner {
  padding: clamp(1.15rem, 2.5vw, 1.6rem);
}

.tool-card:hover {
  border-color: #bfc5ca;
  box-shadow: var(--shadow-lg);
}

.tool-card.live::before {
  background: var(--accent);
}

.secondary-link {
  color: var(--accent-strong);
}

.cta-banner {
  background: #ffffff;
}

.cta-banner .secondary-cta {
  border-color: #bfc5ca;
  background: #ffffff;
  color: var(--ink);
  box-shadow: none;
}

.checker-form label {
  color: var(--ink);
}

.checker-form input,
.lead-capture-form input {
  min-height: 48px;
  border-color: #bfc5ca;
  border-radius: 12px;
  background: #ffffff;
  color: var(--ink);
}

.checker-form input:focus,
.lead-capture-form input:focus {
  border-color: var(--accent);
  outline: 3px solid rgb(156 71 14 / 16%);
}

.lead-capture-panel {
  border-color: var(--line);
  border-radius: var(--radius);
  background: #fafcfe;
}

.lead-capture-field input:focus-visible {
  border-color: var(--accent);
  outline: 3px solid rgb(156 71 14 / 16%);
}

.lead-capture-form button {
  border: 1px solid var(--accent-strong);
  border-radius: 12px;
  background: var(--accent);
  box-shadow: none;
  color: #ffffff;
  font-family: "IBM Plex Sans", ui-sans-serif, system-ui, sans-serif;
  font-weight: 600;
}

.lead-capture-form button:hover {
  background: var(--accent-strong);
}

.form-message a {
  color: currentColor;
  font-weight: 700;
  text-underline-offset: 0.16em;
}

.result-row,
.signal-row,
.opportunity-item,
.summary-item,
.limit-item {
  min-width: 0;
  border-color: var(--line);
  background: #fafcfe;
}

.results-grid,
.result-panel,
.result-list,
.signal-list {
  min-width: 0;
}

.signal-detail,
.rule-preview,
.result-panel p,
.opportunity-item p,
.summary-item p {
  overflow-wrap: anywhere;
}

.status-pill,
.bot-badge,
.hint-badge {
  border: 1px solid currentColor;
  background: transparent;
}

.gi-footer {
  margin-top: 0;
  border-color: #242a31;
  background: #0d1116;
  color: #fafcfe;
}

.gi-footer strong {
  font-family: "IBM Plex Sans", ui-sans-serif, system-ui, sans-serif;
}

.gi-footer-brand p,
.gi-footer-column p,
.gi-footer a,
.gi-footer-meta p,
.gi-footer-meta-links a {
  color: #bfc5ca;
}

.gi-footer-column h3 {
  color: #fafcfe;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
}

.gi-footer a:hover {
  color: #ffffff;
}

@media (max-width: 760px) {
  .tool-topbar,
  .hub-topbar {
    align-items: flex-start;
  }

  .brand-subline,
  .topbar-note {
    display: none;
  }

  .tool-topbar-links,
  .topbar-actions {
    gap: 0.55rem;
  }

  .back-link {
    font-size: 0.875rem;
  }

  .topbar-cta {
    min-height: 40px;
    padding: 0.55rem 0.75rem;
    font-size: 0.875rem;
  }

  .tool-hero-grid,
  .hub-hero-grid {
    padding-top: 3.5rem;
  }

  .tool-breadcrumbs + .tool-hero-grid {
    padding-top: 1.25rem;
  }

  .tool-breadcrumbs {
    margin-top: 1.5rem;
  }

  .tool-breadcrumbs ol {
    align-items: flex-start;
  }

  .tool-breadcrumbs li {
    min-height: 44px;
  }

  .tool-breadcrumbs a {
    min-height: 44px;
  }

  .breadcrumb-separator {
    margin-inline: 0.4rem;
  }

  h1 {
    font-size: clamp(2.55rem, 13vw, 3.45rem);
  }

  .hero-copy,
  .section-copy {
    font-size: 1rem;
  }

  .primary-cta,
  .secondary-cta {
    width: 100%;
  }

  .checker-input-row {
    grid-template-columns: 1fr;
  }

  .results-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .result-panel {
    min-width: 0;
  }

  .checker-form button {
    min-height: 48px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
