:root {
  --ink: #121827;
  --navy: #283371;
  --blue: #283371;
  --amber: #ffbd59;
  --green: #15845f;
  --paper: #ffffff;
  --soft: #f5f7fb;
  --muted: #5d6a82;
  --line: #dce2ee;
  --shadow: 0 22px 55px rgba(18, 24, 39, 0.12);
  --radius: 8px;
  --page-x: 20px;
  --content: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Space Grotesk", Arial, sans-serif;
  color: var(--ink);
  background: var(--soft);
}

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

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

.site-header {
  position: relative;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  width: min(100%, calc(var(--content) + (var(--page-x) * 2)));
  margin: 0 auto;
  padding: 10px var(--page-x);
  border-bottom: 1px solid rgba(220, 226, 238, 0.86);
  background: rgba(245, 247, 251, 0.94);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  font-family: "Sora", Arial, sans-serif;
  color: var(--navy);
  font-weight: 800;
}

.brand-logo {
  width: 180px;
  height: 180px;
  object-fit: contain;
}

.brand-name {
  font-size: 1.18rem;
}

.menu-toggle {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  color: var(--navy);
  cursor: pointer;
}

.menu-toggle span {
  width: 20px;
  height: 2px;
  margin: 0 auto;
  background: currentColor;
}

.site-nav {
  position: absolute;
  top: 108px;
  right: var(--page-x);
  left: var(--page-x);
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: var(--shadow);
}

.site-nav.is-open {
  display: flex;
}

.site-nav a {
  padding: 12px;
  border-radius: 6px;
  color: var(--muted);
  font-weight: 700;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--navy);
  background: #edf2ff;
  outline: none;
}

.hero-section {
  position: relative;
  min-height: 760px;
  color: var(--navy);
  background:
    url("./assets/hero-banner.png") center center / cover no-repeat,
    var(--amber);
}

.hero-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(255, 189, 89, 0.94) 0%, rgba(255, 189, 89, 0.82) 34%, rgba(255, 189, 89, 0.1) 66%);
  pointer-events: none;
}

.hero-inner,
.split-section,
.signup-section,
.metric-band,
.site-footer {
  width: min(100%, calc(var(--content) + (var(--page-x) * 2)));
  margin: 0 auto;
  padding-right: var(--page-x);
  padding-left: var(--page-x);
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  align-items: center;
  min-height: 760px;
  padding-top: 70px;
  padding-bottom: 64px;
}

.hero-copy {
  max-width: 610px;
}

.hero-section .eyebrow {
  color: var(--navy);
}

.eyebrow {
  display: inline-block;
  margin: 0 0 14px;
  color: var(--amber);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: "Sora", Arial, sans-serif;
  letter-spacing: 0;
  line-height: 1.06;
}

p,
li {
  line-height: 1.65;
  overflow-wrap: anywhere;
}

.hero-copy h1 {
  max-width: 720px;
  font-size: 3rem;
}

.hero-copy p {
  max-width: 690px;
  color: rgba(40, 51, 113, 0.86);
}

.definition {
  margin: 22px 0 0;
  padding-left: 16px;
  border-left: 4px solid var(--amber);
}

.definition strong {
  color: var(--navy);
}

.hero-actions,
.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-top: 24px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  background: var(--navy);
  color: var(--paper);
  font-weight: 800;
  text-align: center;
  cursor: pointer;
}

.button:hover,
.button:focus-visible {
  background: #1d2656;
  outline: none;
}

.button-secondary {
  border-color: rgba(40, 51, 113, 0.24);
  background: rgba(255, 255, 255, 0.62);
  color: var(--navy);
}

.button-secondary:hover,
.button-secondary:focus-visible {
  background: rgba(255, 255, 255, 0.86);
}

.metric-band span,
.graph-heading span,
.line-metrics span {
  display: block;
  color: var(--blue);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.metric-band {
  display: grid;
  padding-top: 18px;
  padding-bottom: 18px;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}

.metric-band article {
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.metric-band article:last-child {
  border-bottom: 0;
}

.metric-band strong {
  display: block;
  margin-top: 6px;
  font-family: "Sora", Arial, sans-serif;
  font-size: 2rem;
}

.metric-band p {
  margin: 8px 0 0;
  color: var(--muted);
}

.split-section {
  display: grid;
  gap: 34px;
  align-items: center;
  padding-top: 72px;
  padding-bottom: 72px;
  border-bottom: 1px solid var(--line);
}

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

.section-copy h2,
.signup-copy h2 {
  font-size: 2.12rem;
}

.section-copy p,
.signup-copy p,
.source-note {
  color: var(--muted);
}

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

.simple-list li {
  position: relative;
  padding-left: 24px;
  color: #34405a;
  font-weight: 600;
}

.simple-list li::before {
  content: "";
  position: absolute;
  top: 0.72em;
  left: 0;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--amber);
}

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

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

.screenshot-collage img,
.phone-pair img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: var(--shadow);
}

.screenshot-collage img:nth-child(2),
.screenshot-collage img:nth-child(4) {
  transform: translateY(28px);
}

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

.phone-pair img:nth-child(2) {
  transform: translateY(36px);
}

.graph-card {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: var(--shadow);
}

.graph-heading {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-start;
  margin-bottom: 20px;
}

.graph-heading strong {
  max-width: 18ch;
  font-family: "Sora", Arial, sans-serif;
  font-size: 1.3rem;
  text-align: right;
}

.bar-comparison {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  min-height: 300px;
  align-items: end;
}

.bar-comparison div {
  display: grid;
  grid-template-rows: auto auto minmax(150px, 1fr);
  gap: 8px;
  height: 100%;
}

.bar-comparison span {
  color: var(--muted);
  font-weight: 800;
}

.bar-comparison strong {
  font-family: "Sora", Arial, sans-serif;
  font-size: 1.8rem;
}

.bar-comparison em {
  display: block;
  align-self: end;
  width: 100%;
  border-radius: 6px 6px 0 0;
  background: var(--blue);
}

.bar-comparison .accent {
  background: var(--amber);
}

.graph-card p {
  margin: 18px 0 0;
  color: var(--muted);
}

.roi-calculator {
  display: grid;
  gap: 18px;
}

.roi-input-grid {
  display: grid;
  gap: 12px;
}

.roi-input-grid label {
  display: grid;
  gap: 8px;
}

.roi-input-grid span {
  color: var(--navy);
  font-size: 0.9rem;
  font-weight: 800;
}

.roi-input-grid input,
.roi-input-grid select {
  width: 100%;
  padding: 13px 14px;
  border: 1px solid #cfd7e6;
  border-radius: var(--radius);
  background: var(--paper);
  color: var(--ink);
  outline: none;
}

.roi-input-grid input:focus,
.roi-input-grid select:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(40, 51, 113, 0.12);
}

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

.roi-output-grid article {
  min-width: 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fbfcff;
}

.roi-output-grid span {
  display: block;
  color: var(--blue);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.roi-output-grid strong {
  display: block;
  margin-top: 6px;
  font-family: "Sora", Arial, sans-serif;
  font-size: 1.45rem;
  overflow-wrap: anywhere;
}

.funnel-stack {
  display: grid;
  gap: 12px;
}

.funnel-stack div {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  min-width: 210px;
  padding: 14px;
  border-radius: var(--radius);
  background: #eef3ff;
}

.funnel-stack div:nth-child(4),
.funnel-stack div:nth-child(5) {
  background: #fff4dd;
}

.funnel-stack span {
  color: var(--muted);
  font-weight: 800;
}

.funnel-stack strong {
  color: var(--navy);
}

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

.line-metrics article {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fbfcff;
}

.line-metrics strong {
  display: block;
  margin-top: 6px;
  font-family: "Sora", Arial, sans-serif;
  font-size: 1.7rem;
}

.trend-bars {
  display: flex;
  align-items: end;
  gap: 10px;
  height: 220px;
  margin-top: 22px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.trend-bars div {
  flex: 1;
  min-width: 24px;
  border-radius: 6px 6px 0 0;
  background: linear-gradient(180deg, var(--green), #8cdbbc);
}

.source-note {
  margin-top: 18px;
  padding: 12px 14px;
  border-left: 4px solid var(--amber);
  background: rgba(255, 255, 255, 0.72);
}

.signup-section {
  display: grid;
  gap: 32px;
  align-items: start;
  padding-top: 74px;
  padding-bottom: 74px;
}

.signup-copy {
  max-width: 540px;
}

.signup-form {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: var(--shadow);
}

.field-grid {
  display: grid;
  gap: 14px;
}

.signup-form label {
  display: grid;
  gap: 8px;
}

.signup-form label span {
  color: var(--navy);
  font-weight: 800;
}

.signup-form input,
.signup-form select,
.signup-form textarea {
  width: 100%;
  padding: 14px;
  border: 1px solid #cfd7e6;
  border-radius: var(--radius);
  background: var(--paper);
  color: var(--ink);
  outline: none;
}

.signup-form input:focus,
.signup-form select:focus,
.signup-form textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(64, 88, 199, 0.12);
}

.field-block {
  margin-top: 14px;
}

.consent-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 18px 0;
}

.consent-row input {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  margin-top: 3px;
}

.consent-row span {
  color: var(--muted);
  font-weight: 600;
}

.honeypot {
  position: absolute;
  left: -9999px;
}

.form-note {
  flex-basis: 100%;
  margin: 0;
  color: var(--muted);
}

.form-status {
  min-height: 24px;
  margin: 16px 0 0;
  font-weight: 800;
}

.form-status.is-success {
  color: #087f5b;
}

.form-status.is-error {
  color: #b42318;
}

.site-footer {
  padding-top: 24px;
  padding-bottom: 42px;
  color: var(--muted);
}

[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 620ms ease,
    transform 620ms ease;
}

[data-reveal="fade"] {
  transform: none;
}

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

@media (min-width: 720px) {
  :root {
    --page-x: 28px;
  }

  .hero-copy h1 {
    font-size: 4.05rem;
  }

  .section-copy h2,
  .signup-copy h2 {
    font-size: 2.75rem;
  }

  .metric-band {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 26px;
  }

  .metric-band article:nth-last-child(-n + 2) {
    border-bottom: 0;
  }

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

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

@media (min-width: 1020px) {
  .site-header {
    min-height: 120px;
  }

  .brand {
    flex: 0 0 33.333%;
  }

  .brand-logo {
    width: 180px;
    height: 180px;
  }

  .brand-name {
    font-size: 1.35rem;
  }

  .menu-toggle {
    display: none;
  }

  .site-nav {
    position: static;
    display: flex;
    flex: 1 1 auto;
    flex-direction: row;
    justify-content: flex-end;
    gap: 6px;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
  }

  .site-nav a {
    padding: 10px 12px;
  }

  .hero-inner {
    grid-template-columns: minmax(0, 1fr) minmax(360px, 0.72fr);
  }

  .hero-copy h1 {
    font-size: 4.8rem;
  }

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

  .metric-band article {
    padding: 22px 20px;
    border-right: 1px solid var(--line);
    border-bottom: 0;
  }

  .metric-band article:last-child {
    border-right: 0;
  }

  .split-section {
    grid-template-columns: minmax(0, 1fr) minmax(0, 0.92fr);
    gap: 62px;
  }

  .split-section.info-first {
    grid-template-columns: minmax(0, 0.92fr) minmax(0, 1fr);
  }

  .signup-section {
    grid-template-columns: minmax(0, 0.74fr) minmax(0, 1.26fr);
    gap: 52px;
  }
}

@media (max-width: 719px) {
  .brand-logo {
    width: 104px;
    height: 104px;
  }

  .site-nav {
    top: 94px;
  }

  .hero-section {
    min-height: 660px;
    background-position: 62% center;
  }

  .hero-section::before {
    background:
      linear-gradient(180deg, rgba(255, 189, 89, 0.96) 0%, rgba(255, 189, 89, 0.9) 48%, rgba(255, 189, 89, 0.76) 100%),
      linear-gradient(90deg, rgba(255, 255, 255, 0.64) 0%, rgba(255, 255, 255, 0.42) 58%, rgba(255, 189, 89, 0.2) 100%);
  }

  .hero-inner {
    min-height: 0;
    padding-top: 52px;
    padding-bottom: 58px;
  }

  .hero-copy h1 {
    font-size: 2.42rem;
  }

  .hero-copy p {
    color: rgba(40, 51, 113, 0.94);
  }

  .hero-actions .button,
  .form-actions .button {
    width: 100%;
  }

  .screenshot-collage,
  .phone-pair,
  .line-metrics,
  .roi-output-grid {
    grid-template-columns: 1fr;
  }

  .screenshot-collage img:nth-child(2),
  .screenshot-collage img:nth-child(4),
  .phone-pair img:nth-child(2) {
    transform: none;
  }

  .graph-heading {
    display: grid;
  }

  .graph-heading strong {
    text-align: left;
  }

  .bar-comparison {
    min-height: 250px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
