:root {
  --ink: #111827;
  --muted: #5f6b7a;
  --line: #dbe3ea;
  --paper: #f8faf7;
  --white: #ffffff;
  --teal: #0f766e;
  --teal-dark: #0b4f4a;
  --amber: #c07a16;
  --soft: #e8f3ef;
  --danger: #9f1d1d;
  --shadow: 0 22px 70px rgba(17, 24, 39, .12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
}

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px clamp(20px, 4vw, 56px);
  background: rgba(248, 250, 247, .88);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(17, 24, 39, .08);
}

.site-header.compact {
  position: static;
}

.brand {
  text-decoration: none;
  font-weight: 900;
  font-size: 1.08rem;
}

nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 18px;
  color: var(--muted);
  font-size: .95rem;
}

nav a {
  text-decoration: none;
}

nav a:hover {
  color: var(--teal-dark);
}

.hero {
  position: relative;
  min-height: calc(100svh - 72px);
  display: grid;
  align-items: center;
  overflow: hidden;
  padding: clamp(72px, 10vw, 132px) clamp(20px, 6vw, 80px);
  color: #fff;
}

.hero-image,
.hero-shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-image {
  object-fit: cover;
  transform: scale(1.02);
}

.hero-shade {
  background:
    linear-gradient(90deg, rgba(4, 20, 22, .92) 0%, rgba(7, 31, 33, .78) 38%, rgba(7, 31, 33, .18) 72%),
    linear-gradient(180deg, rgba(4, 20, 22, .18), rgba(4, 20, 22, .5));
}

.hero-content {
  position: relative;
  max-width: 720px;
  animation: heroIn .8s ease-out both;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--amber);
  font-size: .78rem;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: #ffd38b;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.04;
  letter-spacing: 0;
}

h1 {
  font-size: clamp(3.2rem, 8vw, 7.4rem);
}

h2 {
  font-size: clamp(2rem, 4.2vw, 4.4rem);
}

h3 {
  font-size: 1.25rem;
}

.hero-line {
  max-width: 620px;
  margin: 24px 0 0;
  font-size: clamp(1.15rem, 2vw, 1.45rem);
  color: rgba(255, 255, 255, .88);
}

.hero-actions,
.section-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 13px 20px;
  border: 0;
  border-radius: 6px;
  background: var(--teal);
  color: #fff;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
  transition: transform .2s ease, background .2s ease, box-shadow .2s ease;
}

.button:hover {
  transform: translateY(-2px);
  background: var(--teal-dark);
  box-shadow: 0 12px 30px rgba(15, 118, 110, .24);
}

.button.ghost {
  background: rgba(255, 255, 255, .14);
  border: 1px solid rgba(255, 255, 255, .36);
}

.trust-note {
  max-width: 620px;
  margin: 20px 0 0;
  color: rgba(255, 255, 255, .74);
  font-size: .96rem;
}

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

.strip div {
  padding: clamp(24px, 4vw, 44px);
  background: #fff;
}

.strip strong,
.strip span {
  display: block;
}

.strip span {
  margin-top: 8px;
  color: var(--muted);
}

.check-section,
.explain-section,
.steps-section,
.faq-section,
.recommendation-section,
.result-hero,
.score-section {
  padding: clamp(56px, 8vw, 104px) clamp(20px, 6vw, 80px);
}

.check-section {
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(320px, 1fr);
  gap: clamp(32px, 6vw, 88px);
  align-items: start;
  background: var(--white);
}

.section-copy {
  max-width: 620px;
}

.section-copy.wide {
  max-width: 900px;
}

.section-copy p:not(.eyebrow) {
  color: var(--muted);
  font-size: 1.08rem;
}

.check-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  padding: clamp(20px, 4vw, 34px);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.check-form.small {
  max-width: 420px;
  grid-template-columns: 1fr;
}

label {
  display: grid;
  gap: 8px;
  color: var(--ink);
  font-weight: 800;
  font-size: .92rem;
}

input {
  width: 100%;
  min-height: 48px;
  border: 1px solid #cbd5df;
  border-radius: 6px;
  padding: 12px 13px;
  font: inherit;
  color: var(--ink);
  background: #fff;
}

input:focus {
  outline: 3px solid rgba(15, 118, 110, .16);
  border-color: var(--teal);
}

.consent {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 20px 1fr;
  align-items: start;
  color: var(--muted);
  font-weight: 500;
}

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

.check-form .button {
  grid-column: 1 / -1;
}

.explain-section {
  background: #eef7f4;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  margin-top: 36px;
  background: rgba(17, 24, 39, .12);
}

.feature-grid article {
  min-height: 260px;
  padding: 28px;
  background: #fff;
}

.feature-grid span,
.next-steps strong {
  color: var(--teal);
  font-weight: 900;
}

.feature-grid p {
  color: var(--muted);
}

.steps-section {
  background: var(--ink);
  color: #fff;
}

.steps-section .section-copy p,
.steps-section .next-steps span {
  color: rgba(255, 255, 255, .72);
}

.next-steps {
  display: grid;
  gap: 1px;
  max-width: 980px;
  margin: 36px 0 0;
  padding: 0;
  list-style: none;
  background: rgba(255, 255, 255, .14);
}

.next-steps li {
  display: grid;
  grid-template-columns: minmax(180px, .4fr) minmax(0, 1fr);
  gap: 18px;
  padding: 22px 0;
  background: var(--ink);
}

.faq-section {
  background: #fff;
}

details {
  max-width: 920px;
  border-top: 1px solid var(--line);
  padding: 22px 0;
}

details:last-child {
  border-bottom: 1px solid var(--line);
}

summary {
  cursor: pointer;
  font-weight: 900;
  font-size: 1.12rem;
}

details p {
  max-width: 780px;
  color: var(--muted);
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 18px;
  padding: 28px clamp(20px, 6vw, 80px);
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.site-footer strong {
  color: var(--ink);
}

.result-page {
  background: #fff;
}

.result-hero {
  background: linear-gradient(135deg, #f8faf7 0%, #e6f2ef 100%);
}

.result-domain {
  color: var(--muted);
  font-size: 1.1rem;
}

.score-panel {
  display: grid;
  grid-template-columns: auto minmax(0, 680px);
  gap: 30px;
  align-items: center;
  margin-top: 36px;
}

.score-circle {
  --score: 0;
  width: 180px;
  height: 180px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background:
    radial-gradient(circle at center, #fff 57%, transparent 58%),
    conic-gradient(var(--teal) calc(var(--score) * 1%), #dbe3ea 0);
  box-shadow: var(--shadow);
}

.score-circle strong,
.score-circle span {
  grid-area: 1 / 1;
}

.score-circle strong {
  margin-top: -18px;
  font-size: 3rem;
}

.score-circle span {
  margin-top: 48px;
  color: var(--muted);
  font-weight: 800;
}

.score-section {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1px;
  padding-top: 1px;
  padding-bottom: 1px;
  background: var(--line);
}

.score-section article {
  padding: 24px;
  background: #fff;
}

.score-section span,
.score-section strong {
  display: block;
}

.score-section span {
  color: var(--muted);
}

.score-section strong {
  margin-top: 8px;
  font-size: 1.6rem;
}

.mini-bar {
  height: 8px;
  margin-top: 16px;
  background: #e5e9ee;
  border-radius: 999px;
  overflow: hidden;
}

.mini-bar i {
  display: block;
  height: 100%;
  background: var(--teal);
}

.recommendation-section {
  background: #fff;
}

.recommendation-list {
  display: grid;
  gap: 18px;
  margin-top: 34px;
}

.recommendation-list article {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  gap: 20px;
  padding: 24px 0;
  border-top: 1px solid var(--line);
}

.step {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--soft);
  color: var(--teal-dark);
  font-weight: 900;
}

.plain-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.plain-grid p {
  margin: 0;
  padding: 16px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
}

.plain-grid strong {
  display: block;
  margin-bottom: 8px;
  color: var(--ink);
}

.result-steps .notice,
.notice {
  max-width: 920px;
  margin-top: 28px;
  padding: 16px 18px;
  border: 1px solid rgba(192, 122, 22, .32);
  border-radius: 8px;
  background: rgba(192, 122, 22, .08);
  color: var(--ink);
}

.error-state {
  min-height: 64svh;
}

.admin-wrap {
  max-width: 760px;
  margin: 0 auto;
  padding: 60px 24px;
}

.admin-wrap.wide {
  max-width: 1180px;
}

.lead-table-wrap {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
}

th,
td {
  padding: 14px 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

th {
  color: var(--muted);
  font-size: .86rem;
}

small {
  color: var(--muted);
}

.reveal {
  opacity: 1;
}

.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .55s ease, transform .55s ease;
}

.js .reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes heroIn {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 1040px) {
  .strip,
  .feature-grid,
  .score-section {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .check-section,
  .score-panel {
    grid-template-columns: 1fr;
  }

  .plain-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .site-header {
    position: static;
    align-items: flex-start;
    flex-direction: column;
  }

  nav {
    justify-content: flex-start;
  }

  .hero {
    min-height: auto;
    padding-top: 88px;
    padding-bottom: 88px;
  }

  .strip,
  .feature-grid,
  .score-section,
  .check-form {
    grid-template-columns: 1fr;
  }

  .next-steps li {
    grid-template-columns: 1fr;
  }

  .score-circle {
    width: 150px;
    height: 150px;
  }

  .recommendation-list article {
    grid-template-columns: 1fr;
  }
}
