/* Snapwalk Calorie Walk Debt — shared design tokens (exact palette) */
:root {
  --primary: #0B8276;
  --on-primary: #FFFFFF;
  --secondary: #0E8276;
  --on-secondary: #FFFFFF;
  --accent: #C35406;
  --on-accent: #FFFFFF;
  --background: #ECFEFF;
  --foreground: #164E63;
  --card: #F0F8F7;
  --card-foreground: #164E63;
  --muted: #E8F1F6;
  --muted-foreground: #5C6A7F;
  --border: #A5F3FC;
  --destructive: #DC2626;
  --on-destructive: #FFFFFF;
  --ring: #0D9488;

  /* Primary lightness scale (one hue) */
  --primary-900: #065F56;
  --primary-700: #0B8276;
  --primary-500: #0E8276;
  --primary-300: #5EEAD4;
  --primary-200: #99F6E4;
  --primary-100: #CCFBF1;
  --primary-50: #ECFEFF;

  --font-heading: "Poppins", sans-serif;
  --font-body: "Nunito Sans", sans-serif;

  --radius: 10px;
  --radius-lg: 16px;
  --max-width: 1024px;
  /* Negative spread keeps the drop BELOW — without it blur leaks a top halo */
  --shadow-soft: 0 16px 40px -14px color-mix(in srgb, var(--primary) 22%, transparent);
  --transition-press: 150ms ease;
}

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

html {
  scroll-behavior: smooth;
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .reveal {
    opacity: 1 !important;
    transform: none !important;
  }

  .hero__mock-plate {
    animation: none !important;
  }
}

body {
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--foreground);
  background:
    radial-gradient(ellipse 90% 55% at 8% -8%, var(--primary-100), transparent 55%),
    radial-gradient(ellipse 70% 45% at 100% 0%, color-mix(in srgb, var(--primary-200) 40%, var(--background)), transparent 50%),
    linear-gradient(180deg, var(--background) 0%, #E0F7F6 50%, var(--primary-100) 100%);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

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

a {
  color: var(--primary);
  text-decoration-thickness: 1.5px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--primary-900);
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-heading);
  line-height: 1.2;
  font-weight: 700;
  color: var(--foreground);
}

p {
  color: var(--foreground);
}

ul {
  list-style: none;
}

.container {
  width: 100%;
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: 1.25rem;
}

:focus-visible {
  outline: 3px solid var(--ring);
  outline-offset: 3px;
}

/* —— Buttons —— */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 44px;
  min-width: 44px;
  padding: 0.75rem 1.35rem;
  border-radius: var(--radius);
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition:
    transform var(--transition-press),
    background-color var(--transition-press),
    border-color var(--transition-press),
    box-shadow var(--transition-press);
}

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

.btn:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  transform: none;
}

.btn--primary {
  background: var(--primary);
  color: var(--on-primary);
  border-color: var(--primary);
  box-shadow: 0 8px 24px -12px color-mix(in srgb, var(--primary) 55%, transparent);
}

.btn--primary:hover:not(:disabled) {
  background: var(--primary-900);
  color: var(--on-primary);
  border-color: var(--primary-900);
}

/* Accent = one job only: the conversion CTA */
.btn--accent {
  background: var(--accent);
  color: var(--on-accent);
  border-color: var(--accent);
  box-shadow: 0 8px 24px -12px color-mix(in srgb, var(--accent) 50%, transparent);
}

.btn--accent:hover:not(:disabled) {
  background: color-mix(in srgb, var(--accent) 88%, #000);
  color: var(--on-accent);
  border-color: color-mix(in srgb, var(--accent) 88%, #000);
}

.btn--secondary {
  background: transparent;
  color: var(--primary);
  border-color: var(--primary);
}

.btn--secondary:hover:not(:disabled) {
  background: var(--primary-100);
  color: var(--primary-900);
}

.btn--block {
  width: 100%;
}

/* —— Navbar —— */
.navbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--background) 88%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.navbar__inner {
  width: 100%;
  max-width: var(--max-width);
  margin-inline: auto;
  padding: 0.65rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 64px;
}

.navbar__brand {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
  color: var(--foreground);
  text-decoration: none;
  line-height: 1.25;
}

.navbar__brand span {
  font-weight: 600;
  color: var(--primary);
}

.navbar__brand:hover {
  color: var(--primary-900);
  text-decoration: none;
}

.navbar__toggle {
  display: none;
  min-height: 44px;
  min-width: 44px;
  padding: 0.5rem 0.85rem;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--foreground);
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
}

.navbar__menu {
  display: flex;
  align-items: center;
  gap: 0.5rem 1rem;
}

.navbar__links {
  display: flex;
  align-items: center;
  gap: 0.15rem;
}

.navbar__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.45rem 0.85rem;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--foreground);
  text-decoration: none;
  border-radius: var(--radius);
}

.navbar__link:hover,
.navbar__link[aria-current="page"] {
  background: var(--primary-100);
  color: var(--primary-900);
  text-decoration: none;
}

.navbar__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.5rem 1.1rem;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--on-accent);
  background: var(--accent);
  border-radius: var(--radius);
  text-decoration: none;
  border: 2px solid var(--accent);
}

.navbar__cta:hover {
  background: color-mix(in srgb, var(--accent) 88%, #000);
  color: var(--on-accent);
  text-decoration: none;
}

@media (max-width: 720px) {
  .navbar__toggle {
    display: inline-flex;
    align-items: center;
  }

  .navbar__menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0.35rem;
    padding: 0.75rem 1.25rem 1.1rem;
    background: var(--background);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-soft);
  }

  .navbar__menu.is-open {
    display: flex;
  }

  .navbar__links {
    flex-direction: column;
    align-items: stretch;
  }

  .navbar__link,
  .navbar__cta {
    width: 100%;
    justify-content: flex-start;
  }
}

/* —— Hero —— */
.hero {
  position: relative;
  padding: 2.75rem 0 3rem;
  overflow: hidden;
}

.hero__plane {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(165deg, color-mix(in srgb, var(--primary) 12%, transparent) 0%, transparent 48%),
    repeating-linear-gradient(
      -12deg,
      transparent,
      transparent 28px,
      color-mix(in srgb, var(--primary) 4%, transparent) 28px,
      color-mix(in srgb, var(--primary) 4%, transparent) 29px
    );
  pointer-events: none;
}

.hero__grid {
  position: relative;
  display: grid;
  gap: 2.5rem;
  align-items: center;
}

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

.hero__brand {
  font-family: var(--font-heading);
  font-size: clamp(1.35rem, 3vw, 1.75rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--primary-900);
  margin-bottom: 0.85rem;
}

.hero__brand span {
  color: var(--primary);
  font-weight: 700;
}

.hero__title {
  font-size: clamp(1.65rem, 3.6vw, 2.35rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 0.85rem;
  max-width: 22ch;
}

.hero__subtitle {
  font-size: 1.05rem;
  color: var(--muted-foreground);
  max-width: 36rem;
  margin-bottom: 0;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 0.75rem 1rem;
  margin-top: 1.5rem;
}

.hero__cta-wrap {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.4rem;
}

.friction {
  margin: 0;
  font-size: 0.85rem;
  color: var(--muted-foreground);
  max-width: 18rem;
}

.hero__visual {
  position: relative;
  min-height: 280px;
}

.hero-mock {
  width: 100%;
  max-width: 360px;
  margin-inline: auto;
  filter: drop-shadow(0 20px 36px -16px color-mix(in srgb, var(--primary-900) 35%, transparent));
}

.hero__mock-plate {
  transform-origin: center;
  animation: plate-breathe 4.5s ease-in-out infinite;
}

@keyframes plate-breathe {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.02);
  }
}

/* —— Sections —— */
.section {
  padding: 3.25rem 0;
}

.section--muted {
  background: color-mix(in srgb, var(--muted) 65%, transparent);
  border-block: 1px solid var(--border);
}

.section__head {
  margin-bottom: 1.75rem;
  max-width: 40rem;
}

.section__title {
  font-size: clamp(1.45rem, 2.8vw, 2rem);
  letter-spacing: -0.03em;
  margin-bottom: 0.65rem;
}

.section__subtitle {
  color: var(--muted-foreground);
  font-size: 1.05rem;
  max-width: 38rem;
}

/* Feature list — Swiss rows, not card grid */
.feature-list {
  display: grid;
  gap: 0;
  border-top: 2px solid var(--primary);
}

.feature-list__item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  align-items: start;
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--border);
}

.feature-list__index {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  color: var(--primary);
  min-width: 2rem;
  padding-top: 0.15rem;
}

.feature-list__text {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 600;
  font-family: var(--font-heading);
  line-height: 1.4;
  color: var(--card-foreground);
}

.feature-list__body {
  margin: 0.35rem 0 0;
  font-weight: 400;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--muted-foreground);
  line-height: 1.55;
}

/* Proof / mock strip */
.proof {
  display: grid;
  gap: 1.5rem;
  margin-top: 2rem;
}

@media (min-width: 800px) {
  .proof {
    grid-template-columns: 1fr 1fr;
    align-items: center;
  }
}

.proof__panel {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  box-shadow: var(--shadow-soft);
}

.proof__panel h3 {
  font-size: 1.05rem;
  margin-bottom: 0.75rem;
}

.debt-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}

.debt-table th,
.debt-table td {
  text-align: left;
  padding: 0.65rem 0.5rem;
  border-bottom: 1px solid var(--border);
}

.debt-table th {
  font-family: var(--font-heading);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted-foreground);
  font-weight: 600;
}

.debt-table td {
  font-weight: 600;
  color: var(--foreground);
}

.debt-table tr:last-child td {
  border-bottom: none;
}

.debt-table .debt-table__range {
  color: var(--primary-900);
}

.debt-bar {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.debt-bar__row {
  display: grid;
  gap: 0.35rem;
}

.debt-bar__label {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  font-weight: 600;
  font-family: var(--font-heading);
}

.debt-bar__track {
  height: 12px;
  border-radius: 999px;
  background: var(--muted);
  overflow: hidden;
}

.debt-bar__fill {
  height: 100%;
  border-radius: 999px;
  background: var(--primary);
}

.debt-bar__fill--soft {
  background: var(--primary-300);
}

/* —— Signup form —— */
.signup {
  max-width: 28rem;
  margin-inline: auto;
  display: grid;
  gap: 0.9rem;
  text-align: left;
}

.signup__pre {
  text-align: center;
  font-size: 0.95rem;
  color: var(--muted-foreground);
  margin-bottom: 0.25rem;
}

.signup label {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--foreground);
}

.signup input,
.signup select {
  min-height: 48px;
  padding: 0.65rem 0.9rem;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--foreground);
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  width: 100%;
}

.signup input:hover,
.signup select:hover {
  border-color: var(--primary-300);
}

.signup input:focus,
.signup select:focus {
  border-color: var(--primary);
}

.signup__actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.4rem;
  margin-top: 0.25rem;
}

.signup__actions .btn {
  width: 100%;
}

.signup__error {
  margin: 0;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--destructive);
  text-align: center;
}

.signup__error[hidden],
.signup__success[hidden] {
  display: none;
}

.signup__success {
  margin: 0;
  padding: 0.85rem 1rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.95rem;
  text-align: center;
  background: var(--primary-100);
  color: var(--primary-900);
  border: 1px solid var(--primary);
}

.signup__fineprint {
  margin: 0;
  text-align: center;
  font-size: 0.82rem;
  color: var(--muted-foreground);
}

/* —— Legal pages —— */
.legal {
  flex: 1;
  padding: 2.75rem 0 4rem;
}

.legal__inner {
  max-width: 42rem;
  margin-inline: auto;
}

.legal__inner h1 {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  margin-bottom: 0.5rem;
}

.legal__inner .effective {
  color: var(--muted-foreground);
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
}

.legal__inner h2 {
  font-size: 1.2rem;
  margin: 1.75rem 0 0.65rem;
}

.legal__inner p,
.legal__inner li {
  color: var(--foreground);
  margin-bottom: 0.75rem;
}

.legal__inner ul {
  list-style: disc;
  padding-left: 1.25rem;
  margin-bottom: 0.75rem;
}

.legal__inner li {
  margin-bottom: 0.45rem;
}

.legal__inner strong {
  font-weight: 700;
}

/* —— Footer —— */
.footer {
  margin-top: auto;
  background: var(--primary-900);
  color: var(--primary-100);
  padding: 2rem 0;
}

.footer__inner {
  width: 100%;
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: 1.25rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 1.5rem;
}

.footer__brand {
  font-family: var(--font-heading);
  font-weight: 700;
  color: #FFFFFF;
  text-decoration: none;
}

.footer__brand:hover {
  color: var(--primary-200);
  text-decoration: none;
}

.footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.25rem;
}

.footer__link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--primary-100);
  font-weight: 600;
  font-size: 0.92rem;
  text-decoration: none;
}

.footer__link:hover {
  color: #FFFFFF;
  text-decoration: underline;
}

.footer__copyright {
  margin: 0;
  width: 100%;
  font-size: 0.88rem;
  color: var(--primary-200);
}

/* —— Motion —— */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

.reveal--delay-1 {
  transition-delay: 0.08s;
}

.reveal--delay-2 {
  transition-delay: 0.16s;
}

main {
  flex: 1;
}
