:root {
  color-scheme: light;
  --ink: #17211d;
  --muted: #5a6560;
  --line: #d9e0dc;
  --paper: #fbfcfa;
  --panel: #ffffff;
  --accent: #0f766e;
  --accent-strong: #0b4f4a;
  --gold: #b7791f;
  --rose: #b4234a;
  --blue: #2563eb;
  --shadow: 0 20px 50px rgba(23, 33, 29, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

a {
  color: inherit;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px clamp(20px, 5vw, 72px);
  border-bottom: 1px solid var(--line);
  background: rgba(251, 252, 250, 0.92);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 700;
}

.brand-mark {
  width: 22px;
  height: 22px;
  border: 6px solid var(--accent);
  border-radius: 50%;
  box-shadow: inset 0 0 0 3px var(--paper);
}

nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  color: var(--muted);
  font-size: 0.95rem;
}

nav a {
  text-decoration: none;
}

main {
  overflow: hidden;
}

.intro {
  min-height: calc(100vh - 68px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.72fr);
  align-items: center;
  gap: clamp(32px, 6vw, 84px);
  padding: clamp(48px, 8vw, 96px) clamp(20px, 5vw, 72px);
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--accent-strong);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

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

h1 {
  max-width: 900px;
  font-size: clamp(3rem, 7vw, 6.8rem);
}

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

.lede {
  max-width: 720px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  line-height: 1.6;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.button {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}

.button.primary {
  border-color: var(--accent);
  color: #fff;
  background: var(--accent);
}

.button.secondary {
  background: var(--panel);
}

.radar-panel {
  min-height: 520px;
  display: grid;
  align-content: end;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(150deg, rgba(15, 118, 110, 0.12), transparent 48%),
    linear-gradient(20deg, rgba(37, 99, 235, 0.13), transparent 45%),
    var(--panel);
  box-shadow: var(--shadow);
}

.radar-orbit {
  position: relative;
  min-height: 330px;
  border: 1px solid rgba(15, 118, 110, 0.24);
  border-radius: 50%;
}

.radar-orbit::before,
.radar-orbit::after {
  content: "";
  position: absolute;
  inset: 16%;
  border: 1px solid rgba(15, 118, 110, 0.24);
  border-radius: 50%;
}

.radar-orbit::after {
  inset: 33%;
}

.radar-orbit span {
  position: absolute;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--accent);
}

.radar-orbit span:nth-child(1) {
  top: 18%;
  left: 62%;
}

.radar-orbit span:nth-child(2) {
  top: 58%;
  left: 20%;
  background: var(--gold);
}

.radar-orbit span:nth-child(3) {
  right: 18%;
  bottom: 18%;
  background: var(--blue);
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 20px;
}

.metric-grid div {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
}

.metric-grid strong,
#score {
  display: block;
  font-size: 2rem;
  line-height: 1;
}

.metric-grid span,
.score-label {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.8rem;
}

.band,
.deadline-section,
.guide-section {
  padding: clamp(48px, 7vw, 86px) clamp(20px, 5vw, 72px);
}

.band {
  background: #eef5f1;
}

.section-head {
  max-width: 780px;
  margin-bottom: 28px;
}

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

fieldset {
  min-height: 250px;
  margin: 0;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

legend {
  padding: 0 4px;
  font-weight: 800;
}

label {
  display: flex;
  gap: 10px;
  margin-top: 16px;
  color: var(--muted);
  line-height: 1.4;
}

input {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  accent-color: var(--accent);
}

.lead-form {
  display: grid;
  gap: 14px;
}

.lead-form label {
  display: grid;
  gap: 8px;
  margin: 0;
  color: var(--ink);
  font-weight: 800;
}

.lead-form input,
.lead-form select,
.lead-form textarea {
  width: 100%;
  min-height: 46px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  color: var(--ink);
  font: inherit;
}

.lead-form textarea {
  min-height: 110px;
  resize: vertical;
}

.lead-form p {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.hidden-field {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.lead-context {
  padding: 14px;
  border: 1px solid rgba(15, 118, 110, 0.24);
  border-radius: 8px;
  background: rgba(15, 118, 110, 0.08);
  color: var(--accent-strong);
  font-weight: 800;
  line-height: 1.35;
}

.scanner .button {
  grid-column: 1 / -1;
  width: fit-content;
}

.result {
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
  margin-top: 24px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

#summary {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.result-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.result-cta {
  width: fit-content;
}

#actions {
  grid-column: 2;
  margin: 0;
  padding-left: 20px;
  color: var(--muted);
  line-height: 1.55;
}

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

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

.guide-grid a {
  min-height: 120px;
  display: flex;
  align-items: flex-end;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  color: var(--accent-strong);
  font-weight: 800;
  line-height: 1.3;
  text-decoration: none;
}

.deadline-card {
  min-height: 310px;
  display: flex;
  flex-direction: column;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.status {
  width: fit-content;
  padding: 6px 10px;
  border-radius: 999px;
  color: #fff;
  background: var(--accent);
  font-size: 0.78rem;
  font-weight: 800;
}

.status.active {
  background: var(--rose);
}

.deadline-card h3 {
  margin: 18px 0 6px;
  font-size: 1.35rem;
}

.deadline-card time {
  color: var(--accent-strong);
  font-weight: 800;
}

.deadline-card p {
  color: var(--muted);
  line-height: 1.55;
}

.deadline-card a {
  margin-top: auto;
  color: var(--accent-strong);
  font-weight: 800;
}

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

.price-card {
  min-height: 300px;
  display: grid;
  align-content: start;
  gap: 16px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.price-card.featured {
  border-color: rgba(15, 118, 110, 0.5);
  box-shadow: var(--shadow);
}

.price-card h3 {
  margin: 0;
  font-size: clamp(3rem, 6vw, 5rem);
  line-height: 1;
}

.price-card p {
  max-width: 520px;
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.comparison-table {
  display: grid;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: var(--panel);
}

.comparison-table div {
  display: grid;
  grid-template-columns: 0.8fr 1.3fr 1.1fr 0.8fr;
}

.comparison-table div:first-child {
  background: #eef5f1;
}

.comparison-table span,
.comparison-table strong {
  padding: 16px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  line-height: 1.45;
}

.comparison-table span:last-child,
.comparison-table strong:last-child {
  border-right: 0;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(280px, 0.6fr);
  gap: 32px;
  align-items: start;
}

.split p {
  max-width: 680px;
  color: var(--muted);
  line-height: 1.6;
}

.template-list {
  display: grid;
  gap: 10px;
}

.template-list a {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  font-weight: 800;
  text-decoration: none;
}

footer {
  padding: 24px clamp(20px, 5vw, 72px);
  color: var(--muted);
  border-top: 1px solid var(--line);
}

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

  .intro,
  .scanner,
  .deadline-grid,
  .guide-grid,
  .pricing-grid,
  .split,
  .result {
    grid-template-columns: 1fr;
  }

  .comparison-table div {
    grid-template-columns: 1fr;
  }

  .comparison-table span,
  .comparison-table strong {
    border-right: 0;
  }

  .intro {
    min-height: 0;
  }

  .radar-panel {
    min-height: 400px;
  }

  #actions {
    grid-column: auto;
  }
}

@media (max-width: 560px) {
  nav {
    width: 100%;
    justify-content: space-between;
  }

  h1 {
    font-size: 2.7rem;
  }

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