:root {
  --bg: #e8eef6;
  --bg-2: #f4f7fb;
  --card: #ffffff;
  --line: #d0dae8;
  --text: #152033;
  --muted: #4b5568;
  --blue: #2563eb;
  --blue-2: #1d4ed8;
  --green: #047857;
  --green-2: #059669;
  --amber: #d97706;
  --red: #dc2626;
  --radius: 1.25rem;
  --shadow: 0 16px 36px rgba(21, 32, 51, 0.1);
  --max: 1120px;
  --header-h: 4.25rem;
  --font: "DM Sans", system-ui, sans-serif;
  --display: "Outfit", var(--font);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

.landing {
  overflow-x: clip;
}

html:has(.landing) {
  scroll-snap-type: y proximity;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
}

a {
  color: var(--blue-2);
}

.wrap {
  width: min(var(--max), calc(100% - 2rem));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(16px);
  background: rgba(232, 238, 246, 0.92);
  border-bottom: 1px solid var(--line);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4.25rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  color: inherit;
  text-decoration: none;
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: -0.03em;
}

.brand img {
  width: 36px;
  height: 36px;
}

.brand span {
  font-size: 1.15rem;
}

.powered {
  display: block;
  font-size: 0.68rem;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: 0.02em;
}

.nav {
  display: flex;
  align-items: center;
  gap: 1.1rem;
}

.nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
}

.nav a:hover {
  color: var(--text);
}

.nav .btn {
  padding: 0.55rem 0.95rem;
  font-size: 0.92rem;
}

.nav .btn-login {
  color: var(--text);
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: none;
}

.nav .btn-login:hover {
  background: var(--bg-2);
  color: var(--text);
}

.nav .btn-login svg {
  width: 1.1rem;
  height: 1.1rem;
}

.nav .btn-primary {
  color: #fff;
  background: #1e3a5f;
  box-shadow: none;
}

.nav .btn-primary:hover {
  background: #152a45;
  color: #fff;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  border: 0;
  border-radius: 0.9rem;
  padding: 0.85rem 1.2rem;
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.12s ease, background 0.12s ease;
}

.btn:active {
  transform: scale(0.97);
}

.btn-primary {
  background: #1e3a5f;
  color: #fff;
  box-shadow: none;
}

.btn-primary:hover {
  background: #152a45;
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--line);
}

.btn-lg {
  min-height: 3.4rem;
  padding-inline: 1.5rem;
  font-size: 1.05rem;
}

.hero,
.panel--hero {
  background:
    radial-gradient(800px 360px at 90% 0%, rgba(37, 99, 235, 0.18), transparent 55%),
    radial-gradient(640px 280px at 0% 40%, rgba(5, 150, 105, 0.12), transparent 50%);
}

.panel {
  min-height: calc(100svh - var(--header-h));
  min-height: calc(100dvh - var(--header-h));
  display: flex;
  flex-direction: column;
  justify-content: center;
  box-sizing: border-box;
  padding: 1.1rem 0 4.6rem;
  scroll-snap-align: start;
  scroll-margin-top: var(--header-h);
}

.panel--hero {
  justify-content: center;
}

.panel--alt {
  background: var(--bg-2);
  border-block: 1px solid var(--line);
  justify-content: flex-start;
}

@media (min-width: 900px) {
  .panel--alt {
    justify-content: center;
  }
}

.panel--last {
  justify-content: space-between;
  padding-bottom: 0;
  gap: 1.5rem;
}

.panel--last .site-footer {
  padding-bottom: max(1.5rem, env(safe-area-inset-bottom));
}

.scroll-hint {
  position: fixed;
  left: 50%;
  bottom: max(1.15rem, env(safe-area-inset-bottom));
  z-index: 30;
  width: 3rem;
  height: 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  color: var(--text);
  box-shadow: 0 0 0 1px var(--line);
  backdrop-filter: blur(8px);
  text-decoration: none;
  transform: translateX(-50%);
  transition: opacity 0.3s ease;
}

.scroll-hint.is-hidden {
  opacity: 0;
  pointer-events: none;
}

.scroll-hint__icon {
  width: 1.75rem;
  height: 1.75rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.25;
  stroke-linecap: round;
  stroke-linejoin: round;
  animation: scroll-hint-pulse 1.45s ease-in-out infinite;
}

@keyframes scroll-hint-pulse {
  0%,
  100% {
    transform: translateY(0);
    opacity: 0.55;
  }
  50% {
    transform: translateY(7px);
    opacity: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .scroll-hint__icon {
    animation: none;
  }
}

@media (max-width: 799px) {
  h1 {
    font-size: clamp(1.7rem, 7.2vw, 2.35rem);
  }

  .panel .lede {
    font-size: 1.02rem;
    margin: 0 0 0.65rem;
  }

  .how-list {
    gap: 0.75rem;
  }

  .how-list li {
    padding: 1rem 1.05rem;
  }

  .trial-points {
    margin: 0.7rem 0 0;
    gap: 0.5rem;
  }

  .trial-points li {
    padding: 0.55rem 0.7rem;
  }

  .panel .hero-grid {
    gap: 1rem;
  }

  .panel .form {
    padding: 1rem;
  }

  .btn-lg {
    min-height: 3rem;
  }
}

.hero-grid {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}

@media (min-width: 900px) {
  .hero-grid {
    grid-template-columns: 1.05fr 0.95fr;
  }
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 0.85rem;
  padding: 0.35rem 0.75rem;
  border: 1px solid #bfdbfe;
  border-radius: 999px;
  background: #eff6ff;
  color: #1d4ed8;
  font-size: 0.78rem;
  font-weight: 600;
}

h1,
h2,
h3 {
  font-family: var(--display);
  letter-spacing: -0.04em;
  line-height: 1.12;
  margin: 0 0 0.75rem;
}

h1 {
  font-size: clamp(2.1rem, 5vw, 3.6rem);
}

h2 {
  font-size: clamp(1.7rem, 3.2vw, 2.4rem);
}

.lede {
  font-size: 1.12rem;
  color: var(--muted);
  max-width: 38rem;
}

.taglines {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1.1rem 0 1.4rem;
}

.pill {
  border: 1px solid var(--line);
  background: var(--bg-2);
  color: var(--text);
  border-radius: 999px;
  padding: 0.35rem 0.75rem;
  font-size: 0.82rem;
  font-weight: 600;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 1.35rem 0 0;
}

.fine {
  color: var(--muted);
  font-size: 0.88rem;
}

.audience {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 1.25rem;
}

.audience span {
  font-size: 0.8rem;
  color: var(--muted);
}

.phone {
  width: min(360px, 100%);
  margin-inline: auto;
  background: #fff;
  border: 8px solid #e7e5e4;
  border-radius: 2rem;
  box-shadow: var(--shadow);
  overflow: hidden;
  box-sizing: border-box;
}

.phone-bar {
  display: flex;
  justify-content: space-between;
  padding: 0.7rem 0.9rem 0.4rem;
  font-size: 0.72rem;
  color: var(--muted);
}

.phone-card {
  margin: 0.5rem 0.7rem 1rem;
  padding: 0.9rem;
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: #fafaf9;
}

.phone-card h3 {
  font-size: 1.05rem;
}

.metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.4rem;
  margin: 0.75rem 0;
  text-align: center;
}

.metrics b {
  display: block;
  font-size: 1.15rem;
}

.metrics span {
  font-size: 0.65rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.count-row {
  display: flex;
  gap: 0.35rem;
  align-items: center;
  width: 100%;
  min-width: 0;
}

.count-row button,
.count-row input[type="number"] {
  box-sizing: border-box;
  height: 2.75rem;
}

.count-row button {
  flex: 0 0 2.75rem;
  width: 2.75rem;
  height: 2.75rem !important;
  min-height: 2.75rem;
  max-height: 2.75rem;
  padding: 0 !important;
  border-radius: 0.7rem;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--text);
  font-size: 1.15rem;
  font-weight: 700;
  cursor: pointer;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.count-row .zero {
  background: #fef2f2;
  border-color: #fecaca;
  color: #b91c1c;
}

.count-row input[type="number"] {
  flex: 1 1 0;
  min-width: 0;
  width: auto;
  height: 2.75rem !important;
  padding: 0 0.2rem !important;
  line-height: 2.5rem;
  border-radius: 0.7rem;
  border: 2px solid var(--blue);
  background: #fff;
  color: var(--text);
  text-align: center;
  font-size: 1.15rem;
  font-weight: 800;
  -moz-appearance: textfield;
  appearance: textfield;
}

.count-row input[type="number"]::-webkit-inner-spin-button,
.count-row input[type="number"]::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.count-row .wide {
  flex: 1 1 100%;
  width: 100%;
  height: 2.75rem;
}

.plus {
  background: var(--blue) !important;
  border-color: transparent !important;
  color: #fff !important;
  height: 2.75rem !important;
  width: 2.75rem !important;
}

.trial-points {
  display: grid;
  gap: 0.65rem;
  margin: 1.15rem 0 1.25rem;
}

.trial-points li {
  list-style: none;
  margin: 0;
  padding: 0.7rem 0.85rem;
  border: 1px solid #bbf7d0;
  border-radius: 0.9rem;
  background: #f0fdf4;
}

.trial-points strong {
  display: block;
  font-size: 0.95rem;
  color: #065f46;
}

.trial-points span {
  display: block;
  font-size: 0.88rem;
  color: var(--muted);
  margin-top: 0.15rem;
}

.hero-form {
  background: var(--card);
  box-shadow: var(--shadow);
}

.how-list {
  display: grid;
  gap: 1rem;
  margin: 0;
  padding: 0;
}

@media (min-width: 800px) {
  .how-list {
    grid-template-columns: 1fr 1fr;
  }
}

.how-list li {
  list-style: none;
  padding: 1.15rem 1.2rem;
  border: 1px solid var(--line);
  border-radius: 0.9rem;
  background: var(--card);
}

.how-list h3 {
  font-size: 1.12rem;
  margin: 0 0 0.45rem;
}

.how-list p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.more {
  margin-top: 0;
}

.more h2 {
  font-size: 1.35rem;
}

.carousel {
  margin-top: 0.85rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  overflow: hidden;
}

.carousel__track {
  position: relative;
  min-height: 11.5rem;
}

.carousel__slide {
  display: none;
  padding: 1.25rem 1.35rem 0.5rem;
}

.carousel__slide.is-active {
  display: block;
}

.carousel__slide h3 {
  font-size: 1.15rem;
  margin-bottom: 0.55rem;
}

.carousel__slide ul {
  margin: 0;
  padding-left: 1.15rem;
  color: var(--muted);
}

.carousel__slide li {
  margin-bottom: 0.4rem;
}

.carousel__nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.65rem 1rem 1rem;
}

.carousel__btn {
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 0.7rem;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--text);
  font-size: 1.1rem;
  cursor: pointer;
}

.carousel__dots {
  display: flex;
  gap: 0.4rem;
}

.carousel__dots button {
  width: 0.55rem;
  height: 0.55rem;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: #cbd5e1;
  cursor: pointer;
}

.carousel__dots button.is-on {
  background: #1e3a5f;
}

.section {
  padding: 2.75rem 0;
}

.section.alt {
  background: var(--bg-2);
  border-block: 1px solid var(--line);
}

.grid-2,
.grid-3,
.cards {
  display: grid;
  gap: 1rem;
}

@media (min-width: 760px) {
  .grid-2 {
    grid-template-columns: 1fr 1fr;
  }
  .grid-3,
  .cards {
    grid-template-columns: repeat(3, 1fr);
  }
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.25rem 1.3rem;
}

.card h3 {
  font-size: 1.15rem;
}

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

.old-new {
  display: grid;
  gap: 0.65rem;
}

.old-new li {
  list-style: none;
}

.old-new ul {
  margin: 0;
  padding: 0;
}

.compare-bad {
  color: #b91c1c;
}

.compare-good {
  color: var(--green);
}

.price-grid {
  display: grid;
  gap: 1rem;
}

@media (min-width: 700px) {
  .price-grid {
    grid-template-columns: 1.2fr 1fr;
  }
}

.price {
  padding: 1.6rem;
}

.price .amt {
  font-family: var(--display);
  font-size: 3rem;
  letter-spacing: -0.05em;
}

.price .amt small {
  font-size: 1rem;
  color: var(--muted);
}

.form {
  display: grid;
  gap: 0.7rem;
}

.form label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--muted);
}

.form input,
.form select,
.form textarea {
  width: 100%;
  padding: 0.8rem 0.9rem;
  border-radius: 0.8rem;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--text);
  font: inherit;
}

.form-row {
  display: grid;
  gap: 0.7rem;
}

@media (min-width: 600px) {
  .form-row {
    grid-template-columns: 1fr 1fr;
  }
}

.note {
  padding: 0.8rem 0.9rem;
  border-radius: 0.8rem;
  background: #ecfdf5;
  color: #065f46;
  display: none;
}

.note.show {
  display: block;
}

.site-footer {
  padding: 2.2rem 0 3rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.9rem;
}

.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
}

.demo-layout {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 900px) {
  .demo-layout {
    grid-template-columns: 1fr 1fr;
  }
}

.paper {
  position: relative;
  min-height: 280px;
  padding: 1.1rem;
  background: #f8fafc;
  color: #0f172a;
  border-radius: 0.8rem;
  font-family: "Courier New", monospace;
  overflow: hidden;
}

.paper h4 {
  margin: 0 0 0.6rem;
  font-family: var(--display);
}

.scan-line {
  position: absolute;
  left: 0;
  right: 0;
  height: 8px;
  background: linear-gradient(180deg, transparent, rgba(5, 150, 105, 0.55), transparent);
  animation: none;
  pointer-events: none;
}

.scan-line.run {
  animation: scan 1.6s linear;
}

@keyframes scan {
  from {
    top: 0;
  }
  to {
    top: 100%;
  }
}

.parsed li {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.45rem 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.9rem;
}

.po-bar {
  margin-top: 0.8rem;
  height: 10px;
  border-radius: 999px;
  background: #e7e5e4;
  overflow: hidden;
}

.po-bar > span {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--blue), var(--green));
  transition: width 0.25s ease;
}

.hidden-mobile {
  display: none;
}

@media (min-width: 800px) {
  .hidden-mobile {
    display: flex;
  }
}

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--line);
  color: var(--text);
  border-radius: 0.6rem;
  padding: 0.4rem 0.55rem;
}

@media (max-width: 799px) {
  .nav-toggle {
    display: inline-flex;
  }
  .nav {
    display: none;
    position: absolute;
    inset: 4.25rem 1rem auto;
    flex-direction: column;
    align-items: stretch;
    padding: 0.8rem;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 1rem;
  }
  .nav.open {
    display: flex;
  }
}
