:root {
  color-scheme: light;
  --ink: #17202a;
  --muted: #5d6875;
  --line: #dce3e8;
  --panel: #ffffff;
  --soft: #f5f8f6;
  --teal: #087f8c;
  --green: #3b8f62;
  --coral: #d85c47;
  --yellow: #d59b27;
  --plum: #6f4c8f;
  --shadow: 0 18px 45px rgba(23, 32, 42, 0.11);
}

* {
  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;
  background:
    linear-gradient(180deg, rgba(245, 248, 246, 0.92), rgba(255, 255, 255, 1) 520px),
    #ffffff;
  color: var(--ink);
}

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

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px clamp(18px, 5vw, 72px);
  background: rgba(255, 255, 255, 0.9);
  border-bottom: 1px solid rgba(220, 227, 232, 0.85);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  min-width: 250px;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 8px;
  background: var(--ink);
  color: #fff;
  font-weight: 800;
  letter-spacing: 0;
}

.brand strong,
.brand small {
  display: block;
  line-height: 1.2;
}

.brand small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.78rem;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
}

.nav-links a {
  padding: 9px 12px;
  border-radius: 8px;
  color: var(--muted);
  font-size: 0.94rem;
  font-weight: 700;
  text-decoration: none;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  background: var(--soft);
  color: var(--ink);
  outline: none;
}

main {
  overflow: hidden;
}

.hero-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  align-items: center;
  gap: clamp(28px, 5vw, 72px);
  min-height: calc(100svh - 82px);
  padding: clamp(40px, 7vw, 92px) clamp(18px, 5vw, 72px) 38px;
  border-bottom: 1px solid var(--line);
}

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

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

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  max-width: 820px;
  margin: 0;
  font-size: clamp(2.45rem, 6.2vw, 5.6rem);
  line-height: 0.96;
  letter-spacing: 0;
}

h2 {
  margin: 0;
  font-size: clamp(1.75rem, 3.1vw, 3rem);
  line-height: 1.05;
  letter-spacing: 0;
}

h3 {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.25;
}

.hero-intro,
.section-heading p {
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.65;
}

.hero-intro {
  max-width: 660px;
  margin: 24px 0 0;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 44px;
  padding: 11px 16px;
  border: 1px solid transparent;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 800;
  text-decoration: none;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

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

.button.primary {
  background: var(--teal);
  color: #fff;
  box-shadow: 0 10px 24px rgba(8, 127, 140, 0.22);
}

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

.button.quiet {
  background: #f0f5f3;
  color: var(--ink);
}

.hero-visual {
  position: relative;
  min-height: 400px;
  border-radius: 12px;
  background:
    radial-gradient(circle at 18% 22%, rgba(216, 92, 71, 0.2), transparent 28%),
    radial-gradient(circle at 84% 18%, rgba(213, 155, 39, 0.22), transparent 25%),
    linear-gradient(140deg, #e8f3ee, #ffffff 54%, #f8eee9);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.hero-visual img {
  width: 100%;
  height: 100%;
  min-height: 400px;
  object-fit: cover;
  display: block;
}

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

.stats-strip article {
  min-height: 124px;
  padding: 24px clamp(18px, 4vw, 42px);
  background: #fff;
}

.stats-strip span {
  display: block;
  color: var(--ink);
  font-size: clamp(1.85rem, 3vw, 2.5rem);
  font-weight: 900;
  line-height: 1;
}

.stats-strip p {
  margin: 10px 0 0;
  color: var(--muted);
  font-weight: 700;
}

.section-block {
  padding: clamp(54px, 7vw, 96px) clamp(18px, 5vw, 72px);
  border-bottom: 1px solid var(--line);
}

.section-block.split {
  display: grid;
  grid-template-columns: minmax(260px, 0.85fr) minmax(320px, 1.15fr);
  gap: clamp(28px, 5vw, 68px);
  align-items: start;
}

.section-heading {
  max-width: 650px;
}

.section-heading.compact {
  max-width: 820px;
  margin-bottom: 28px;
}

.tool-panel,
.table-wrap,
.timeline article,
.toolkit-grid article {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 14px 32px rgba(23, 32, 42, 0.07);
}

.tool-panel {
  padding: clamp(18px, 4vw, 30px);
}

.progress-topline {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.label {
  display: block;
  margin-bottom: 7px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.progress-topline strong {
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1;
}

.progress-track {
  height: 18px;
  margin-top: 24px;
  background: #edf1ef;
  border-radius: 999px;
  overflow: hidden;
}

.progress-fill {
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, var(--coral), var(--yellow), var(--green), var(--teal));
  border-radius: inherit;
  transition: width 260ms ease;
}

.progress-note {
  margin: 10px 0 22px;
  color: var(--muted);
  font-weight: 700;
}

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

.embed-form {
  margin-top: 24px;
}

.grid-form + .grid-form {
  margin-top: 22px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

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

input,
select,
textarea {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid #cfd9dd;
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
}

textarea {
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--teal);
  outline: 3px solid rgba(8, 127, 140, 0.14);
}

.span-2 {
  grid-column: 1 / -1;
}

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

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 680px;
}

th,
td {
  padding: 16px 18px;
  text-align: left;
  border-bottom: 1px solid var(--line);
}

th {
  color: var(--muted);
  font-size: 0.78rem;
  text-transform: uppercase;
}

td:last-child,
th:last-child {
  text-align: right;
  font-weight: 900;
}

tr:last-child td {
  border-bottom: 0;
}

.signup-band {
  background:
    linear-gradient(90deg, rgba(8, 127, 140, 0.08), transparent 42%),
    #fbfcfa;
}

.signup-mode {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin-bottom: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}

.mode-tab {
  min-height: 42px;
  border: 0;
  background: #fff;
  color: var(--muted);
  cursor: pointer;
  font-weight: 900;
}

.mode-tab.active {
  background: var(--ink);
  color: #fff;
}

.google-frame {
  min-height: 410px;
}

.google-frame p {
  display: grid;
  place-items: center;
  min-height: 280px;
  margin: 0;
  border: 1px dashed #b8c7cc;
  border-radius: 8px;
  color: var(--muted);
  text-align: center;
}

.google-frame iframe {
  display: none;
  width: 100%;
  min-height: 560px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.google-frame.has-link p {
  display: none;
}

.google-frame.has-link iframe {
  display: block;
}

.hidden {
  display: none;
}

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

.toolkit-grid article {
  padding: 22px;
}

.toolkit-grid p,
.timeline p {
  color: var(--muted);
  line-height: 1.55;
}

.icon-dot {
  display: block;
  width: 15px;
  height: 15px;
  margin-bottom: 20px;
  border-radius: 50%;
}

.icon-dot.teal {
  background: var(--teal);
}

.icon-dot.coral {
  background: var(--coral);
}

.icon-dot.yellow {
  background: var(--yellow);
}

.icon-dot.green {
  background: var(--green);
}

.timeline {
  display: grid;
  gap: 14px;
}

.timeline article {
  position: relative;
  padding: 22px 22px 22px 82px;
}

.timeline span {
  position: absolute;
  left: 22px;
  top: 22px;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: #edf6f1;
  color: var(--green);
  font-weight: 900;
}

.toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 40;
  max-width: min(360px, calc(100vw - 36px));
  padding: 12px 14px;
  border-radius: 8px;
  background: var(--ink);
  color: #fff;
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: opacity 180ms ease, transform 180ms ease;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

.site-footer {
  padding: 26px clamp(18px, 5vw, 72px);
  color: var(--muted);
  background: #fff;
}

@media (max-width: 980px) {
  .site-header,
  .hero-shell,
  .section-block.split {
    grid-template-columns: 1fr;
  }

  .site-header {
    align-items: flex-start;
  }

  .hero-shell {
    min-height: auto;
  }

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

@media (max-width: 680px) {
  .site-header {
    position: static;
    padding: 16px;
  }

  .brand {
    min-width: 0;
  }

  .nav-links {
    justify-content: flex-start;
  }

  .hero-shell,
  .section-block {
    padding-left: 16px;
    padding-right: 16px;
  }

  .hero-visual,
  .hero-visual img {
    min-height: 300px;
  }

  .stats-strip,
  .toolkit-grid,
  .progress-topline,
  .grid-form,
  .signup-form,
  .embed-form {
    grid-template-columns: 1fr;
  }

  .span-2 {
    grid-column: auto;
  }

  .stats-strip article {
    min-height: 108px;
  }
}
