:root {
  --ac-ink: #101417;
  --ac-ink-soft: #2a3438;
  --ac-paper: #f7f8f5;
  --ac-paper-warm: #eef3ee;
  --ac-surface: #ffffff;
  --ac-line: #d8e0dd;
  --ac-muted: #5f6f74;
  --ac-green: #2fbf71;
  --ac-green-dark: #2f8f5b;
  --ac-blue: #2f73ff;
  --ac-amber: #f2b84b;
  --ac-red: #e5534b;
  --ac-low-bg: #fff0ef;
  --ac-low-border: #f1b8b4;
  --ac-mid-bg: #fff7e4;
  --ac-mid-border: #edcf87;
  --ac-high-bg: #eefaf2;
  --ac-high-border: #9bd5b2;
  --ac-shadow: 0 24px 70px rgba(16, 20, 23, 0.12);
  --ac-radius-sm: 6px;
  --ac-radius-md: 8px;
  --ac-radius-lg: 14px;
  --ac-max: 1180px;
  --ac-font-sans: Inter, Geist, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --ac-font-mono: "IBM Plex Mono", "Geist Mono", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ac-ink);
  background:
    linear-gradient(rgba(47, 115, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(47, 115, 255, 0.03) 1px, transparent 1px),
    var(--ac-paper);
  background-size: 32px 32px;
  font-family: var(--ac-font-sans);
  line-height: 1.5;
  letter-spacing: 0;
}

body.dark-page {
  background: var(--ac-ink);
  color: var(--ac-paper);
}

a {
  color: inherit;
}

img,
svg {
  max-width: 100%;
}

.wrap {
  width: min(var(--ac-max), calc(100% - 40px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(216, 224, 221, 0.76);
  background: rgba(247, 248, 245, 0.9);
  backdrop-filter: blur(16px);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  gap: 22px;
}

.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: inherit;
  font-weight: 850;
  text-decoration: none;
}

.brand-link img {
  width: 38px;
  height: 38px;
  border-radius: 8px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 18px;
  color: var(--ac-muted);
  font-size: 14px;
  font-weight: 750;
}

.nav-links a {
  text-decoration: none;
}

.button,
button.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: var(--ac-radius-sm);
  font: 800 14px/1 var(--ac-font-sans);
  text-decoration: none;
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.button.primary {
  border-color: var(--ac-green);
  background: var(--ac-green);
  color: #07120c;
  box-shadow: 0 12px 28px rgba(47, 191, 113, 0.22);
}

.button.secondary {
  border-color: var(--ac-line);
  background: var(--ac-surface);
  color: var(--ac-ink);
}

.button.dark {
  border-color: var(--ac-ink);
  background: var(--ac-ink);
  color: #fff;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-1px);
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  max-width: 100%;
  margin-bottom: 14px;
  padding: 7px 10px;
  border: 1px solid var(--ac-line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  color: var(--ac-green-dark);
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.eyebrow::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--ac-green);
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 18px;
  font-size: clamp(46px, 8vw, 88px);
  line-height: 0.96;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 14px;
  font-size: clamp(30px, 4.4vw, 52px);
  line-height: 1.04;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 9px;
  font-size: 20px;
  line-height: 1.16;
  letter-spacing: 0;
}

.lead {
  color: var(--ac-muted);
  font-size: clamp(18px, 2vw, 22px);
  line-height: 1.55;
}

.muted {
  color: var(--ac-muted);
}

.mono {
  font-family: var(--ac-font-mono);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.section {
  padding: 86px 0;
}

.section.tight {
  padding: 56px 0;
}

.grid-2 {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, .8fr);
  gap: 42px;
  align-items: start;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.panel {
  border: 1px solid var(--ac-line);
  border-radius: var(--ac-radius-md);
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 18px 52px rgba(16, 20, 23, 0.08);
}

.card {
  min-height: 100%;
  padding: 22px;
  border: 1px solid var(--ac-line);
  border-radius: var(--ac-radius-md);
  background: rgba(255, 255, 255, 0.82);
}

.card p,
.check-list li {
  color: var(--ac-muted);
}

.check-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.check-list li {
  position: relative;
  padding-left: 24px;
}

.check-list li::before {
  content: "";
  position: absolute;
  top: .65em;
  left: 0;
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: var(--ac-green);
}

.report-preview {
  overflow: hidden;
  border: 1px solid var(--ac-line);
  border-radius: var(--ac-radius-md);
  background: var(--ac-surface);
  box-shadow: var(--ac-shadow);
}

.report-preview-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 18px;
  border-bottom: 1px solid var(--ac-line);
  background: linear-gradient(180deg, #ffffff, #f4f7f4);
}

.report-score {
  padding: 18px;
  background: var(--ac-ink);
  color: #fff;
}

.report-score strong {
  display: block;
  font-size: 46px;
  line-height: 1;
}

.score-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  padding: 18px;
}

.score-tile {
  padding: 14px;
  border: 1px solid;
  border-radius: var(--ac-radius-sm);
  min-height: 96px;
}

.score-tile span {
  display: block;
  color: var(--ac-ink-soft);
  font-size: 13px;
  font-weight: 800;
}

.score-tile strong {
  display: block;
  margin-top: 16px;
  font-size: 28px;
}

.score-low {
  background: var(--ac-low-bg);
  border-color: var(--ac-low-border);
  color: var(--ac-red);
}

.score-mid {
  background: var(--ac-mid-bg);
  border-color: var(--ac-mid-border);
  color: #9a640f;
}

.score-high {
  background: var(--ac-high-bg);
  border-color: var(--ac-high-border);
  color: var(--ac-green-dark);
}

.journey-strip {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

.journey-step {
  padding: 16px;
  border: 1px solid var(--ac-line);
  border-radius: var(--ac-radius-md);
  background: rgba(255, 255, 255, 0.82);
}

.journey-step .mono {
  color: var(--ac-muted);
}

.form-card {
  padding: 28px;
}

.field {
  margin-bottom: 18px;
}

label,
.label {
  display: block;
  margin-bottom: 8px;
  font-weight: 850;
}

input,
select,
textarea {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--ac-line);
  border-radius: var(--ac-radius-sm);
  padding: 12px 13px;
  background: #fff;
  color: var(--ac-ink);
  font: inherit;
}

textarea {
  min-height: 118px;
  resize: vertical;
}

.choice-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.choice {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 13px;
  border: 1px solid var(--ac-line);
  border-radius: var(--ac-radius-sm);
  background: rgba(255, 255, 255, 0.82);
}

.choice input {
  width: auto;
  min-height: auto;
  margin-top: 4px;
}

.result-box {
  margin-top: 20px;
  padding: 18px;
  border: 1px solid var(--ac-line);
  border-radius: var(--ac-radius-md);
  background: var(--ac-surface);
}

.result-box[hidden] {
  display: none;
}

.dark-band {
  background: var(--ac-ink);
  color: #fff;
}

.dark-band .muted,
.dark-band .lead {
  color: #c7d0d4;
}

.dark-band .card {
  border-color: rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
}

.dark-band .card p {
  color: #c7d0d4;
}

.page-hero {
  padding: 76px 0 58px;
}

.simple-main {
  min-height: 70vh;
  padding: 72px 0;
}

.simple-panel {
  max-width: 860px;
  padding: clamp(28px, 6vw, 54px);
}

.panel-action {
  margin-top: 22px;
}

.price-line {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: baseline;
  margin: 22px 0;
}

.price-line strong {
  font-size: clamp(42px, 6vw, 68px);
  line-height: 1;
}

.fine-print {
  color: var(--ac-muted);
  font-size: 13px;
  line-height: 1.55;
}

@media (max-width: 940px) {
  .nav {
    min-height: auto;
    padding: 14px 0;
  }

  .nav-links a:not(.button) {
    display: none;
  }

  .grid-2,
  .grid-3,
  .grid-4,
  .journey-strip {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 62px 0;
  }
}

@media (max-width: 680px) {
  .wrap {
    width: min(var(--ac-max), calc(100% - 28px));
  }

  h1 {
    font-size: clamp(42px, 15vw, 66px);
  }

  .choice-grid,
  .score-grid {
    grid-template-columns: 1fr;
  }

  .report-preview-head {
    display: grid;
  }

  .button {
    width: 100%;
  }

  .nav .button {
    width: auto;
    white-space: nowrap;
  }

  .module-row {
    grid-template-columns: 1fr;
    gap: 4px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
