:root {
  --bg: #f7f9fc;
  --surface: #ffffff;
  --surface-soft: #f2f5fa;
  --text: #1f2937;
  --muted: #5f6b7a;
  --line: #dde4ee;
  --primary: #22a86a;
  --primary-dark: #1a8c58;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  font-family: Inter, "Segoe UI", Roboto, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
}

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

.container {
  width: min(1040px, 92vw);
  margin: 0 auto;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  font-size: 1.08rem;
  letter-spacing: 0.05em;
}

.brand img {
  width: 22px;
  height: 22px;
  display: block;
  transform-origin: center;
  animation: logo-symmetric-wobble 3s ease-in-out infinite;
}

@keyframes logo-symmetric-wobble {
  0%,
  72%,
  100% {
    transform: rotate(0deg);
  }
  80% {
    transform: rotate(-10deg);
  }
  88% {
    transform: rotate(10deg);
  }
}

.hero {
  padding: 48px 0 30px;
}

.hero-simple {
  text-align: center;
}

.eyebrow {
  margin: 0 0 8px;
  color: #3e7bc2;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
}

h1 {
  margin: 0;
  font-size: clamp(2rem, 4.6vw, 3rem);
  line-height: 1.1;
  letter-spacing: -0.01em;
}

.lead {
  margin: 12px auto 0;
  max-width: 62ch;
  color: var(--muted);
  font-size: 1.06rem;
  line-height: 1.7;
}

.hero-image {
  margin: 24px auto 0;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: 0 16px 38px rgba(40, 52, 73, 0.14);
}

.hero-image img {
  width: 100%;
  display: block;
}

.cta-row {
  margin-top: 18px;
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  border: 1px solid transparent;
  border-radius: 10px;
  padding: 11px 16px;
  font-weight: 700;
  cursor: pointer;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
}

.btn-primary:hover {
  background: var(--primary-dark);
}

.btn-secondary,
.btn-ghost {
  background: #fff;
  border-color: var(--line);
  color: var(--text);
}

.quick-points {
  margin: 16px 0 0;
  list-style: none;
  padding: 0;
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}

.quick-points li {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 11px;
  font-size: 0.9rem;
  color: #334155;
}

.section {
  padding: 42px 0;
}

.section.alt {
  background: var(--surface-soft);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

h2 {
  margin: 0 0 12px;
  font-size: clamp(1.4rem, 2.8vw, 2rem);
}

p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.cards {
  margin-top: 14px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px;
}

.card h3 {
  margin: 0 0 8px;
  font-size: 1rem;
}

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

.benefits div {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 12px;
}

.signup-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  align-items: start;
}

.form-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px;
  display: grid;
  gap: 11px;
}

label {
  display: grid;
  gap: 6px;
  font-size: 0.93rem;
  color: #334155;
}

.consent-row {
  grid-template-columns: auto 1fr;
  align-items: start;
  gap: 10px;
}

.consent-row input[type="checkbox"] {
  margin-top: 3px;
}

input,
select {
  width: 100%;
  border: 1px solid #cfd8e4;
  border-radius: 8px;
  padding: 10px 11px;
  font-size: 0.95rem;
  color: #1f2937;
  background: #fff;
}

input::placeholder {
  color: #90a0b5;
}

.small {
  font-size: 0.87rem;
}

.form-message {
  min-height: 1.2em;
}

.footer {
  border-top: 1px solid var(--line);
  padding: 18px 0 26px;
  background: #fff;
}

.toast {
  position: fixed;
  right: 16px;
  bottom: 18px;
  z-index: 60;
  max-width: 420px;
  background: #1f2937;
  color: #fff;
  border-radius: 12px;
  padding: 12px 14px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.2);
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: opacity 0.2s ease-out, transform 0.2s ease-out;
}

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

.toast.success {
  background: #1f7a4e;
}

.toast.info {
  background: #1f3d7a;
}

.toast.error {
  background: #8f1d35;
}

.legal-section {
  padding-top: 24px;
}

.legal-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px;
}

.legal-card h2 {
  margin-bottom: 10px;
  font-size: 1.1rem;
}

.legal-card p + p {
  margin-top: 10px;
}

.mobile-sticky-cta {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: 10px;
  z-index: 40;
  background: var(--primary);
  color: #fff;
  border-radius: 12px;
  padding: 12px 14px;
  text-align: center;
  font-weight: 700;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.16);
  transform: translateY(120%);
  transition: transform 0.25s ease-out;
}

body.show-mobile-cta .mobile-sticky-cta {
  transform: translateY(0);
}

.js .reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.35s ease-out, transform 0.4s ease-out;
}

.js .reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 900px) {
  .cards,
  .benefits,
  .signup-grid {
    grid-template-columns: 1fr;
  }

  .toast {
    left: 12px;
    right: 12px;
    bottom: 74px;
    max-width: none;
  }
}

@media (min-width: 901px) {
  .mobile-sticky-cta {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .js .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .brand img {
    animation: none;
  }
}
