:root {
  --color-primary: #75d7a3;
  --color-secondary: #202020;
  --color-tertiary: #ffffff;
  --color-surface: #f5f5f5;
  --color-on-surface: #202020;
  --color-muted: #666666;
  --color-placeholder: #999999;
  --color-border: #e0e0e0;
  --color-secondary-fill: #ececec;
  --color-park: #e9efe9;
  --color-water: #e6eef2;

  --font: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, sans-serif;

  --radius-lg: 28px;
  --radius-xl: 36px;
  --radius-full: 100px;

  --space-md: 16px;
  --space-xxl: 120px;

  --shadow-nav: 0 8px 28px rgba(32, 32, 32, 0.08);
  --shadow-phone: 0 24px 60px rgba(32, 32, 32, 0.14);

  --content: 1120px;
  --nav-offset: 96px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-offset);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font);
  background: var(--color-tertiary);
  color: var(--color-on-surface);
  line-height: 1.5;
  overflow-x: hidden;
}

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

a {
  color: inherit;
}

button,
input {
  font-family: inherit;
}

:focus-visible {
  outline: 2px solid var(--color-secondary);
  outline-offset: 3px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: 12px;
  z-index: 100;
  background: var(--color-secondary);
  color: #fff;
  padding: 8px 14px;
  border-radius: 12px;
  transform: translateY(-140%);
}

.skip-link:focus {
  transform: none;
}

/* Type */
.eyebrow {
  margin: 0 0 var(--space-md);
  font-size: 12px;
  font-weight: 600;
  line-height: 16px;
  letter-spacing: 0.2px;
  text-transform: uppercase;
  color: var(--color-muted);
}

.headline-display {
  margin: 0;
  font-size: clamp(36px, 6vw, 64px);
  font-weight: 800;
  line-height: 1.06;
  letter-spacing: -1.2px;
}

.headline-lg {
  margin: 0;
  font-size: clamp(28px, 4.4vw, 44px);
  font-weight: 800;
  line-height: 1.18;
  letter-spacing: -0.8px;
}

.lead {
  margin: var(--space-md) 0 0;
  font-size: clamp(16px, 2vw, 22px);
  font-weight: 400;
  line-height: 1.45;
  letter-spacing: -0.2px;
  color: var(--color-muted);
}

.lead-break {
  display: none;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
  border: 0;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.btn-ghost {
  background: var(--color-secondary-fill);
  color: var(--color-secondary);
  border-radius: var(--radius-lg);
  padding: 12px 24px;
  font-size: 14px;
  font-weight: 600;
  min-width: 112px;
  min-height: 48px;
}

.btn-ghost:hover {
  background: #e2e2e2;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* Layout */
.wrap {
  width: min(calc(100% - 48px), var(--content));
  margin-inline: auto;
}

.section {
  padding: var(--space-xxl) 0;
}

.section-surface {
  background: var(--color-surface);
}

.section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 48px;
}

.section-head p {
  margin: 12px 0 0;
  font-size: 16px;
  line-height: 26px;
  color: var(--color-muted);
}

/* Nav */
.nav-wrap {
  position: fixed;
  top: 20px;
  left: 0;
  right: 0;
  z-index: 50;
  display: flex;
  justify-content: center;
  padding: 0 16px;
  pointer-events: none;
}

.nav {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 24px;
  width: min(100%, 920px);
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  padding: 8px 8px 8px 20px;
  min-height: 64px;
}

.nav.is-scrolled {
  box-shadow: var(--shadow-nav);
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 800;
  letter-spacing: -0.3px;
  flex-shrink: 0;
}

.nav-brand img {
  width: 28px;
  height: 28px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

.nav-links a {
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  color: var(--color-muted);
  padding: 8px 12px;
  border-radius: var(--radius-full);
}

.nav-links a:hover {
  color: var(--color-secondary);
  background: var(--color-surface);
}

/* Hamburger toggle */
.nav-toggle {
  display: none;
  margin-left: auto;
  width: 48px;
  height: 48px;
  border: 0;
  background: transparent;
  border-radius: 50%;
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  flex-shrink: 0;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  border-radius: 2px;
  background: var(--color-secondary);
}

/* Mobile fullscreen menu */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: var(--color-tertiary);
  display: flex;
  flex-direction: column;
  padding: 20px;
}

.mobile-menu[hidden] {
  display: none;
}

.mobile-menu-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
}

.mobile-menu-close {
  width: 48px;
  height: 48px;
  border: 0;
  background: var(--color-surface);
  border-radius: 50%;
  color: var(--color-secondary);
  display: grid;
  place-items: center;
  cursor: pointer;
}

.mobile-menu-links {
  display: flex;
  flex-direction: column;
  justify-content: center;
  flex: 1;
  gap: 8px;
}

.mobile-menu-links a {
  text-decoration: none;
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -0.8px;
  color: var(--color-secondary);
  padding: 12px 4px;
}

body.menu-open {
  overflow: hidden;
}

/* Hero */
.hero {
  padding: 148px 0 80px;
  background: var(--color-primary);
}

.hero .lead {
  color: #1c4f38;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas:
    "copy phone"
    "actions phone";
  grid-template-rows: auto auto;
  column-gap: 72px;
  row-gap: 32px;
  align-items: center;
}

.hero-copy {
  grid-area: copy;
  max-width: 560px;
}

.hero .phone {
  grid-area: phone;
  grid-row: 1 / 3;
  align-self: center;
}

.hero-actions {
  grid-area: actions;
}

.store {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  background: var(--color-secondary);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 12px 20px 12px 16px;
  min-width: 200px;
  text-align: left;
  cursor: default;
}

.store-copy {
  display: flex;
  flex-direction: column;
}

.store-label {
  display: block;
  font-size: 11px;
  font-weight: 500;
  opacity: 0.7;
  line-height: 1;
}

.store-name {
  display: block;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.2px;
  margin-top: 3px;
}

.store-soon {
  background: var(--color-secondary-fill);
  color: var(--color-secondary);
}

/* Phone mockup — Tracker home */
.phone {
  width: 300px;
  height: 620px;
  background: var(--color-secondary);
  border-radius: 48px;
  padding: 10px;
  box-shadow: var(--shadow-phone);
  position: relative;
  flex-shrink: 0;
}

.phone-screen {
  height: 100%;
  background: var(--color-surface);
  border-radius: 38px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  position: relative;
}

.phone-island {
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 92px;
  height: 26px;
  background: var(--color-secondary);
  border-radius: 20px;
  z-index: 2;
}

.phone-status {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 22px 0;
  font-size: 12px;
  font-weight: 600;
  height: 44px;
}

.phone-time {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.phone-status-icons {
  display: flex;
  gap: 5px;
  align-items: center;
}

.app-header {
  display: flex;
  align-items: center;
  padding: 4px 20px 8px;
}

.app-header img {
  width: 44px;
  height: 44px;
}

.app-body {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  min-height: 0;
}

.app-map-img {
  width: 100%;
  height: auto;
  max-height: 100%;
  object-fit: contain;
  display: block;
}

.app-menu-img {
  width: 100%;
  height: auto;
  display: block;
  padding: 8px 16px 20px;
}

/* Story */
.story .wrap {
  width: min(calc(100% - 48px), var(--content));
}

.story-kicker {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 48px;
}

.story-kicker p:last-child {
  margin: 12px 0 0;
  font-size: 16px;
  line-height: 26px;
  color: var(--color-muted);
}

.chat-phone {
  width: 300px;
  max-width: 100%;
  margin: 0 auto 48px;
}

.chat-phone-stage {
  transition: opacity 0.45s ease, transform 0.45s ease;
}

.chat-phone.is-away .chat-phone-stage {
  opacity: 0;
  transform: translateY(16px);
}

.chat-phone-frame {
  background: var(--color-secondary);
  border-radius: 48px;
  padding: 10px;
  box-shadow: var(--shadow-phone);
}

.chat-phone-screen {
  background: #fff;
  border-radius: 38px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  position: relative;
  height: 600px;
}

.chat-island {
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 88px;
  height: 24px;
  background: var(--color-secondary);
  border-radius: 20px;
  z-index: 2;
}

.chat-status {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 20px 0;
  font-size: 12px;
  font-weight: 600;
  height: 42px;
}

.chat-status-icons {
  display: flex;
  gap: 6px;
  align-items: center;
}

.chat-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 12px 12px 8px;
  border-bottom: 1px solid var(--color-border);
  color: var(--color-secondary);
}

.chat-back {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
}

.chat-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--color-primary);
  color: var(--color-secondary);
  display: grid;
  place-items: center;
  font-size: 14px;
  font-weight: 800;
}

.chat-name {
  display: block;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.1;
}

.chat-presence {
  display: block;
  font-size: 11px;
  color: var(--color-muted);
  font-weight: 400;
}

.chat-thread {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 16px 12px;
  background: var(--color-surface);
  min-height: 248px;
}

.chat-row {
  display: flex;
}

.chat-row[hidden] {
  display: none !important;
}

.chat-row-in {
  justify-content: flex-start;
}

.chat-row-out {
  justify-content: flex-end;
}

.chat-bubble {
  margin: 0;
  max-width: 78%;
  padding: 10px 14px;
  font-size: 15px;
  line-height: 20px;
  font-weight: 500;
}

.chat-bubble-in {
  background: #fff;
  color: var(--color-secondary);
  border: 1px solid var(--color-border);
  border-radius: 18px 18px 18px 6px;
}

.chat-bubble-out {
  background: var(--color-primary);
  color: var(--color-secondary);
  border-radius: 18px 18px 6px 18px;
}

.chat-dots {
  display: flex;
  align-items: center;
  gap: 4px;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: 16px 16px 16px 6px;
  padding: 12px 14px;
}

.chat-dots-out {
  background: var(--color-primary);
  border: 0;
  border-radius: 16px 16px 6px 16px;
}

.chat-dots span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-muted);
  animation: chat-dot 1s ease-in-out infinite;
}

.chat-dots-out span {
  background: var(--color-secondary);
}

.chat-dots span:nth-child(2) {
  animation-delay: 0.15s;
}

.chat-dots span:nth-child(3) {
  animation-delay: 0.3s;
}

@keyframes chat-dot {
  0%,
  80%,
  100% {
    opacity: 0.28;
    transform: translateY(0);
  }
  40% {
    opacity: 1;
    transform: translateY(-2px);
  }
}

.chat-composer {
  padding: 10px 12px 8px;
  background: #fff;
  border-top: 1px solid var(--color-border);
}

.chat-input {
  display: block;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  padding: 10px 16px;
  font-size: 13px;
  color: var(--color-placeholder);
  min-height: 40px;
}

.chat-input.is-typing {
  color: var(--color-secondary);
}

.chat-home {
  display: flex;
  justify-content: center;
  padding: 8px 0 10px;
  background: #fff;
}

.chat-home span {
  width: 108px;
  height: 4px;
  border-radius: 100px;
  background: var(--color-secondary);
  opacity: 0.18;
}

@media (prefers-reduced-motion: reduce) {
  .chat-phone-stage {
    transition: none;
  }

  .chat-dots span {
    animation: none;
    opacity: 0.5;
  }
}

.story-origin h3 {
  margin: 0 0 16px;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.3px;
}

.story-origin {
  display: flex;
  align-items: center;
  justify-content: center;
  width: min(100%, 920px);
  margin: 0 auto 48px;
  gap: 20px;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 32px 40px;
  text-align: left;
}

.story-origin > div {
  width: 100%;
}

.story-origin p {
  margin: 0;
  font-size: 15px;
  line-height: 24px;
  color: var(--color-muted);
}

.story-origin p + p {
  margin-top: 16px;
}

/* INE / por qué */
.ine-section .section-head {
  max-width: 680px;
}

.ine-focus {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 48px;
  align-items: center;
  background: #f4fbf7;
  border: 1px solid #d7efe3;
  border-radius: var(--radius-lg);
  padding: 40px 48px;
  margin-bottom: 16px;
}

.ine-donut {
  position: relative;
  width: 196px;
  height: 196px;
}

.ine-donut svg {
  width: 100%;
  height: 100%;
  display: block;
  transform: rotate(-90deg);
}

.ine-donut-track,
.ine-donut-value {
  fill: none;
  stroke-width: 12;
}

.ine-donut-track {
  stroke: #dceee5;
}

.ine-donut-value {
  stroke: var(--color-primary);
  stroke-linecap: round;
  stroke-dasharray: 147.8 301.6;
  stroke-dashoffset: 0;
  transition: stroke-dashoffset 1.1s ease;
}

.ine-section.js-animate:not(.is-in) .ine-donut-value {
  stroke-dashoffset: 147.8;
}

.ine-donut-center {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.ine-donut-center strong {
  font-size: 40px;
  font-weight: 800;
  letter-spacing: -1px;
  line-height: 1;
}

.ine-donut-center span {
  margin-top: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--color-muted);
}

.ine-kicker {
  margin: 0 0 8px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.2px;
  text-transform: uppercase;
  color: var(--color-muted);
}

.ine-focus-copy h3 {
  margin: 0 0 12px;
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.5px;
  line-height: 1.2;
}

.ine-focus-copy > p {
  margin: 0;
  font-size: 16px;
  line-height: 26px;
  color: var(--color-muted);
  max-width: 460px;
}

.ine-dots {
  display: flex;
  gap: 8px;
  margin-top: 24px;
}

.ine-dots span {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #dceee5;
}

.ine-dots span.is-on {
  background: var(--color-primary);
}

.ine-dots-caption {
  margin: 10px 0 0 !important;
  font-size: 13px !important;
  font-weight: 600;
  line-height: 18px !important;
  color: var(--color-secondary) !important;
}

.ine-charts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}

.ine-card {
  margin: 0;
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  padding: 28px;
}

.ine-card figcaption {
  margin: 0 0 6px;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.3px;
}

.ine-card-lead {
  margin: 0 0 24px;
  font-size: 14px;
  line-height: 22px;
  color: var(--color-muted);
}

.ine-bars {
  display: grid;
  gap: 16px;
}

.ine-bar-row {
  display: grid;
  grid-template-columns: 108px 1fr 48px;
  gap: 12px;
  align-items: center;
}

.ine-bar-label {
  font-size: 13px;
  font-weight: 600;
  line-height: 1.2;
  color: var(--color-secondary);
}

.ine-bar-track {
  height: 12px;
  border-radius: var(--radius-full);
  background: #e8e8e8;
  overflow: hidden;
  min-width: 0;
}

.ine-bar-fill {
  display: block;
  height: 100%;
  width: var(--pct);
  border-radius: inherit;
  background: var(--color-secondary);
  transition: width 1s ease;
}

.ine-bar-row.is-focus .ine-bar-fill {
  background: var(--color-primary);
}

.ine-section.js-animate:not(.is-in) .ine-bar-fill {
  width: 0;
}

.ine-bar-n {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: -0.2px;
  text-align: right;
}

.ine-stack-card {
  margin-bottom: 40px;
}

.ine-stack {
  display: flex;
  height: 28px;
  border-radius: var(--radius-full);
  overflow: hidden;
  background: #e8e8e8;
}

.ine-stack-seg {
  display: block;
  height: 100%;
  width: var(--pct);
  flex: 0 0 auto;
  transition: width 1s ease;
}

.ine-section.js-animate:not(.is-in) .ine-stack-seg {
  width: 0;
}

.ine-stack-seg.is-muy-seguro,
.ine-swatch.is-muy-seguro {
  background: #c8efd9;
}

.ine-stack-seg.is-seguro,
.ine-swatch.is-seguro {
  background: var(--color-primary);
}

.ine-stack-seg.is-inseguro,
.ine-swatch.is-inseguro {
  background: #bdbdbd;
}

.ine-stack-seg.is-muy-inseguro,
.ine-swatch.is-muy-inseguro {
  background: var(--color-secondary);
}

.ine-legend {
  list-style: none;
  margin: 16px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
}

.ine-legend li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--color-muted);
}

.ine-legend strong {
  color: var(--color-secondary);
  font-weight: 700;
}

.ine-swatch {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

.ine-close {
  max-width: 680px;
  margin: 0 auto;
  text-align: center;
}

.ine-source {
  margin: 0;
  font-size: 13px;
  line-height: 20px;
  color: var(--color-placeholder);
}

.ine-source a {
  color: var(--color-muted);
  text-underline-offset: 3px;
}

.ine-source a:hover {
  color: var(--color-secondary);
}

/* Steps */
#como-funciona .steps-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 28px 24px;
}

.step {
  padding: 8px 8px 0;
  min-width: 0;
}

.step-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--color-primary);
  color: var(--color-secondary);
  display: grid;
  place-items: center;
  margin-bottom: 20px;
}

.step-icon svg {
  display: block;
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
}

.step-icon svg * {
  fill: none;
  stroke: currentColor;
}

.step h3 {
  margin: 0 0 8px;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.2px;
}

.step p {
  margin: 0;
  font-size: 14px;
  line-height: 20px;
  color: var(--color-muted);
}

/* Features */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 24px;
}

.section-surface .card {
  background: #fff;
}

.card h3 {
  margin: 0 0 8px;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.2px;
}

.card p {
  margin: 0;
  font-size: 14px;
  line-height: 20px;
  color: var(--color-muted);
}

.card-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--color-surface);
  color: var(--color-secondary);
  display: grid;
  place-items: center;
  margin-bottom: 16px;
}

.card-icon svg {
  display: block;
}

/* Premium */
.plans {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  max-width: 880px;
  margin: 0 auto;
}

.plan {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 32px;
}

.plan-featured {
  border-color: var(--color-primary);
}

.plan-badge {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.2px;
  text-transform: uppercase;
  background: var(--color-primary);
  color: var(--color-secondary);
  border-radius: var(--radius-full);
  padding: 4px 10px;
  margin-bottom: 16px;
}

.plan h3 {
  margin: 0 0 8px;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.4px;
}

.plan > p {
  margin: 0 0 24px;
  font-size: 14px;
  line-height: 20px;
  color: var(--color-muted);
}

.plan ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}

.plan li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  line-height: 20px;
}

.plan li svg {
  flex-shrink: 0;
  margin-top: 2px;
}

.waitlist-band {
  max-width: 880px;
  margin: 16px auto 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 32px;
}

.waitlist-copy h3 {
  margin: 0 0 8px;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.4px;
}

.waitlist-copy p {
  margin: 0;
  font-size: 14px;
  line-height: 22px;
  color: var(--color-muted);
}

.waitlist-action {
  min-width: 0;
}

.waitlist {
  display: flex;
  gap: 8px;
}

.waitlist[hidden],
.waitlist-success[hidden],
.waitlist-error[hidden] {
  display: none !important;
}

.waitlist input {
  flex: 1;
  min-width: 0;
  height: 48px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  padding: 0 16px;
  font-size: 14px;
  color: var(--color-secondary);
  background: var(--color-surface);
}

.waitlist input::placeholder {
  color: var(--color-placeholder);
}

.waitlist input:disabled,
.waitlist button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.waitlist-success,
.waitlist-error {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  line-height: 20px;
}

.waitlist-error {
  margin-top: 10px;
  color: #b42318;
}

.waitlist-success {
  color: var(--color-secondary);
}

/* Legal pages */
.legal {
  padding: 148px 0 80px;
}

.legal-article {
  max-width: 720px;
  margin: 0 auto;
}

.legal-article h1 {
  margin: 0;
  font-size: clamp(28px, 4.4vw, 44px);
  font-weight: 800;
  letter-spacing: -0.8px;
  line-height: 1.18;
}

.legal-updated {
  margin: 12px 0 24px;
  font-size: 13px;
  color: var(--color-placeholder);
}

.legal-note {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 16px 20px;
  font-size: 14px;
  line-height: 22px;
  color: var(--color-muted);
  margin: 0 0 32px;
}

.legal-note strong {
  color: var(--color-secondary);
}

.legal-article h2 {
  margin: 32px 0 12px;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.3px;
}

.legal-article p,
.legal-article li {
  font-size: 15px;
  line-height: 24px;
  color: var(--color-muted);
}

.legal-article p {
  margin: 0 0 16px;
}

.legal-article ul {
  margin: 0 0 16px;
  padding-left: 20px;
}

.legal-article li {
  margin-bottom: 8px;
}

.legal-article a {
  color: var(--color-secondary);
  text-underline-offset: 3px;
}

.legal-article strong {
  color: var(--color-secondary);
}

.legal-contact {
  display: inline-block;
  margin: 8px 0 16px;
  padding: 12px 20px;
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  font-size: 15px;
  font-weight: 600;
  color: var(--color-secondary);
}

.legal-empty {
  text-align: center;
  padding: 80px 0;
}

.legal-empty p {
  margin: 16px 0 0;
}

/* FAQ */
.faq-list {
  max-width: 720px;
  margin: 0 auto;
  display: grid;
  gap: 10px;
}

.faq-item {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 4px 20px;
}

.faq-item summary {
  cursor: pointer;
  list-style: none;
  font-size: 16px;
  font-weight: 600;
  padding: 16px 28px 16px 0;
  position: relative;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "";
  position: absolute;
  right: 0;
  top: 50%;
  width: 10px;
  height: 10px;
  border-right: 2px solid var(--color-secondary);
  border-bottom: 2px solid var(--color-secondary);
  transform: translateY(-70%) rotate(45deg);
}

.faq-item[open] summary::after {
  transform: translateY(-30%) rotate(225deg);
}

.faq-item p {
  margin: 0 0 18px;
  font-size: 14px;
  line-height: 20px;
  color: var(--color-muted);
  max-width: 58ch;
}

.faq-item a {
  color: var(--color-secondary);
  text-underline-offset: 3px;
}

/* Footer */
.footer {
  border-top: 1px solid var(--color-border);
  padding: 48px 0 32px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  margin-bottom: 12px;
}

.footer-brand img {
  width: 28px;
  height: 28px;
}

.footer p {
  margin: 0;
  font-size: 14px;
  line-height: 20px;
  color: var(--color-muted);
  max-width: 32ch;
}

.footer h4 {
  margin: 0 0 12px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.2px;
  text-transform: uppercase;
  color: var(--color-placeholder);
}

.footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.footer a {
  font-size: 14px;
  color: var(--color-muted);
  text-decoration: none;
}

.footer a:hover {
  color: var(--color-secondary);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer-copy {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid var(--color-border);
  font-size: 13px;
  color: var(--color-placeholder);
}

/* Responsive */
@media (max-width: 960px) {
  .hero-grid {
    grid-template-columns: 1fr;
    grid-template-areas:
      "copy"
      "phone"
      "actions";
    grid-template-rows: auto;
    row-gap: 40px;
    justify-items: center;
    text-align: center;
  }

  .hero .phone {
    grid-row: auto;
  }

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

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

  #como-funciona .steps-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px 16px;
  }

  .nav-links a {
    padding: 8px 8px;
    font-size: 13px;
  }

  .features-grid {
    grid-template-columns: 1fr 1fr;
  }

  .ine-focus {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
    gap: 28px;
    padding: 32px 28px;
  }

  .ine-focus-copy > p {
    max-width: none;
  }

  .ine-dots {
    justify-content: center;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 720px) {
  .nav-links {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }

  .wrap,
  .story .wrap {
    width: min(calc(100% - 32px), var(--content));
  }

  .section {
    padding: 80px 0;
  }

  .hero,
  .legal {
    padding: 120px 0 56px;
  }

  .lead-break {
    display: inline;
  }

  .hero-actions {
    flex-wrap: nowrap;
    width: 100%;
    gap: 10px;
  }

  .hero-actions .store {
    flex: 1;
    min-width: 0;
    justify-content: center;
    padding: 12px 10px;
  }

  .plans {
    grid-template-columns: 1fr;
  }

  .waitlist-band {
    padding: 28px;
  }

  .story-origin {
    flex-direction: column;
  }

  .ine-charts {
    grid-template-columns: 1fr;
  }

  .ine-bar-row {
    grid-template-columns: 96px 1fr 44px;
    gap: 8px;
  }

  .waitlist {
    flex-direction: column;
  }

  .waitlist input {
    flex: none;
    width: 100%;
    height: 48px;
  }

  .waitlist button {
    width: 100%;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}

@media (max-width: 560px) {
  #como-funciona .steps-grid,
  .features-grid {
    grid-template-columns: 1fr;
  }

  #como-funciona .step,
  .features-grid .card {
    text-align: center;
  }

  #como-funciona .step-icon,
  .features-grid .card-icon {
    margin-left: auto;
    margin-right: auto;
  }

  .ine-focus {
    padding: 28px 20px;
  }

  .ine-donut {
    width: 164px;
    height: 164px;
  }

  .ine-donut-center strong {
    font-size: 32px;
  }

  .ine-focus-copy h3 {
    font-size: 22px;
  }

  .ine-bar-row {
    grid-template-columns: 1fr auto;
    gap: 6px 10px;
  }

  .ine-bar-label {
    grid-column: 1 / -1;
  }

  .phone {
    width: 260px;
    height: 544px;
    border-radius: 42px;
  }

  .chat-phone {
    width: 260px;
  }

  .chat-phone-frame {
    border-radius: 42px;
  }

  .chat-phone-screen {
    height: 524px;
    border-radius: 32px;
  }
}

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

  .btn,
  .ine-bar-fill,
  .ine-stack-seg,
  .ine-donut-value {
    transition: none;
  }
}
