:root {
  --bg: #f4f7fb;
  --text: #102239;
  --muted: #4d617a;
  --line: #d4deeb;
  --accent: #ff6a2f;
  --accent-2: #00a7b5;
  --panel: #ffffff;
  --panel-soft: #f8fbff;
  --success-bg: #e9faf3;
  --success-text: #0b7d64;
  --warn-bg: #fff4ea;
  --warn-text: #b6541e;
  --radius: 22px;
  --radius-sm: 15px;
  --shadow: 0 18px 28px rgba(27, 53, 92, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Rubik", "Segoe UI", sans-serif;
  color: var(--text);
  font-size: 16px;
  background:
    radial-gradient(700px 290px at -10% 0%, #d7f9fb 0%, transparent 60%),
    radial-gradient(900px 350px at 120% -10%, #ffe8d8 0%, transparent 65%),
    var(--bg);
}

.layer {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(120deg, rgba(255, 106, 47, 0.05), rgba(0, 167, 181, 0.06));
  clip-path: polygon(0 0, 100% 0, 100% 18%, 0 46%);
}

.top,
.wrap {
  width: min(1120px, 92vw);
  margin: 0 auto;
}

.top {
  padding: 0.9rem 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.logo,
h1,
h2,
h3 {
  font-family: "Sora", "Rubik", sans-serif;
}

.logo {
  font-size: clamp(1.55rem, 2.6vw, 2.2rem);
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
}

.back-link,
.nav-link {
  text-decoration: none;
  color: var(--muted);
  font-weight: 600;
}

.header-cta,
.primary-link,
.panel-cta,
.step-link {
  display: inline-block;
  text-decoration: none;
  font-weight: 700;
  border-radius: 12px;
  min-height: 44px;
  padding: 0.82rem 1rem;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.header-cta,
.primary-link,
.panel-cta {
  color: #fff;
  background: linear-gradient(135deg, var(--accent), #d54a16);
  box-shadow: 0 10px 20px rgba(255, 106, 47, 0.22);
}

.step-link {
  color: var(--text);
  border: 1px solid var(--line);
  background: #fff;
}

.header-cta:hover,
.primary-link:hover,
.panel-cta:hover,
.step-link:hover {
  transform: translateY(-1px);
}

.hero,
.section,
.cta-band,
.result-hero {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(170deg, #ffffff, #f8fbff);
  box-shadow: var(--shadow);
}

.hero,
.section,
.result-hero {
  padding: clamp(1rem, 2.8vw, 2rem);
  margin-bottom: 0.85rem;
}

.tag,
.section-tag,
.eyebrow {
  margin: 0;
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-2);
  font-weight: 700;
}

h1 {
  margin: 0.45rem 0;
  font-size: clamp(1.65rem, 6vw, 3rem);
  line-height: 1.08;
  max-width: 14ch;
}

h2 {
  margin: 0.36rem 0 0;
  font-size: clamp(1.16rem, 4vw, 1.95rem);
  line-height: 1.16;
}

.lead,
.copy,
.section-intro {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.hero-grid,
.spotlight-grid,
.demo-grid,
.offer-grid,
.result-grid {
  display: grid;
  gap: 1rem;
}

.hero-panel,
.card,
.mini-card,
.report-card,
.survey-group,
.result-card,
.status-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--panel);
  padding: 0.9rem;
}

.hero-panel,
.result-card {
  align-self: start;
}

.metric,
.report-line,
.panel-row,
.result-row {
  display: flex;
  justify-content: space-between;
  gap: 0.85rem;
  padding: 0.52rem 0;
  border-bottom: 1px solid #e4ebf4;
  font-size: 0.93rem;
}

.metric:last-child,
.report-line:last-child,
.panel-row:last-child,
.result-row:last-child {
  border-bottom: 0;
}

.metric span,
.report-line span,
.panel-row span,
.result-row span {
  color: var(--muted);
}

.report-line.total,
.result-row.total {
  font-weight: 800;
}

.grid-3,
.grid-2 {
  display: grid;
  gap: 0.75rem;
  margin-top: 0.85rem;
}

.card p,
.mini-card p,
.status-card p,
.result-card p,
.copy-block p {
  margin: 0.55rem 0 0;
  color: var(--muted);
  line-height: 1.56;
}

.status-chip {
  display: inline-block;
  border-radius: 999px;
  padding: 0.3rem 0.62rem;
  font-size: 0.78rem;
  font-weight: 700;
}

.status-chip.warn {
  color: var(--warn-text);
  background: var(--warn-bg);
}

.status-chip.ok {
  color: var(--success-text);
  background: var(--success-bg);
}

.list {
  margin: 0.68rem 0 0;
  padding-left: 1.1rem;
  color: var(--muted);
  line-height: 1.58;
}

.journey {
  margin-top: 0.85rem;
  display: grid;
  gap: 0.75rem;
}

.journey-step {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--panel);
  padding: 0.9rem;
}

.journey-step span {
  display: inline-block;
  color: var(--accent-2);
  font-weight: 800;
  margin-bottom: 0.36rem;
}

.journey-step p {
  margin: 0.5rem 0 0;
  color: var(--muted);
  line-height: 1.54;
}

.cta-band {
  padding: 0.9rem 1rem;
  margin-bottom: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.cta-band p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
  max-width: 54ch;
}

.form-shell {
  margin-top: 0.85rem;
  display: grid;
  gap: 0.85rem;
}

.progress-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--panel);
  padding: 0.9rem;
}

.progress-top {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  font-size: 0.92rem;
}

.progress-top span {
  color: var(--muted);
}

.progress-track {
  margin-top: 0.7rem;
  width: 100%;
  height: 8px;
  border-radius: 999px;
  background: #e6eef7;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  width: 48%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent-2), var(--accent));
}

.survey-stack {
  display: grid;
  gap: 0.85rem;
}

.survey-group h3 {
  margin: 0;
  font-size: 0.98rem;
}

.question-list {
  margin-top: 0.7rem;
  display: grid;
  gap: 0.62rem;
}

.question {
  border: 1px solid #e1e9f3;
  border-radius: 13px;
  padding: 0.78rem;
  background: var(--panel-soft);
}

.question strong {
  display: block;
  margin-bottom: 0.48rem;
  line-height: 1.4;
  font-size: 0.95rem;
}

.choice-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.choice {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--text);
  min-height: 40px;
  padding: 0.5rem 0.72rem;
  font-size: 0.84rem;
  display: inline-flex;
  align-items: center;
}

.choice.active {
  border-color: #f2b28f;
  background: #fff4ec;
  color: #9d4718;
}

.result-hero {
  display: grid;
  gap: 1rem;
}

.badge {
  display: inline-block;
  width: fit-content;
  border-radius: 999px;
  padding: 0.38rem 0.68rem;
  font-size: 0.8rem;
  font-weight: 700;
}

.badge.warn {
  background: var(--warn-bg);
  color: var(--warn-text);
}

.badge.ok {
  background: var(--success-bg);
  color: var(--success-text);
}

.offer-grid {
  margin-top: 0.85rem;
}

.offer-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--panel);
  padding: 0.9rem;
}

.offer-card.featured {
  background: linear-gradient(150deg, #fff8f3, #f7fbff);
}

.offer-card p {
  margin: 0.55rem 0 0;
  color: var(--muted);
  line-height: 1.56;
}

.offer-card b {
  display: inline-block;
  margin-top: 0.7rem;
  font-size: 1rem;
}

.compact-stack {
  display: grid;
  gap: 0.75rem;
  margin-top: 0.85rem;
}

.compact-band {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--panel);
  padding: 0.9rem;
}

.compact-band h3 {
  margin: 0;
  font-size: 0.98rem;
}

.compact-band p {
  margin: 0.45rem 0 0;
  color: var(--muted);
  line-height: 1.5;
}

.reveal {
  opacity: 0;
  transform: translateY(12px);
  animation: rise 0.7s ease forwards;
}

.top.reveal { animation-delay: 0.04s; }
.hero.reveal,
.result-hero.reveal { animation-delay: 0.1s; }
.section.reveal { animation-delay: 0.18s; }
.cta-band.reveal { animation-delay: 0.26s; }

@keyframes rise {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (min-width: 900px) {
  .hero-grid,
  .demo-grid,
  .result-grid {
    grid-template-columns: 1.2fr 0.85fr;
    align-items: start;
  }

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

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

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

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

  .form-shell {
    grid-template-columns: 0.78fr 1.22fr;
    align-items: start;
  }

  .result-hero {
    grid-template-columns: 1.12fr 0.88fr;
    align-items: start;
  }
}

@media (max-width: 780px) {
  .top,
  .cta-band {
    flex-direction: column;
    align-items: flex-start;
  }

  .top {
    padding-top: 0.75rem;
  }

  .hero,
  .section,
  .result-hero {
    border-radius: 18px;
  }

  .hero-panel,
  .card,
  .mini-card,
  .report-card,
  .survey-group,
  .result-card,
  .status-card,
  .offer-card,
  .compact-band {
    border-radius: 14px;
  }
}
