/* Vippi landing — design system from visual reference (tokens, glass, bento).
   Comments in English. */

:root {
  --primary: #007AFF;
  --primary-dark: #0056b3;
  --success: #34C759;
  --urgency: #FF3B30;
  --ink: #0B1220;
  --ink-2: #3C4257;
  --ink-3: #6B7280;
  --bg: #F5F6FA;
  --paper: #FFFFFF;
  --tint-blue: #EEF3FE;
  --tint-blue-2: #E4EDFD;
  --tint-green: #E7F8ED;
  --tint-amber: #FEF3E2;
  --amber: #F0930B;
  --purple: #6B4EE6;
  --tint-purple: #EEEBFB;
  --radius-btn: 12px;
  --radius-card: 20px;
  --radius-hero: 28px;
  --shadow-sm: 0 1px 2px rgba(11, 18, 32, 0.04), 0 2px 8px rgba(11, 18, 32, 0.04);
  --shadow-md: 0 4px 12px rgba(11, 18, 32, 0.05), 0 12px 32px rgba(11, 18, 32, 0.06);
  --shadow-lg: 0 8px 24px rgba(11, 18, 32, 0.08), 0 30px 60px rgba(11, 18, 32, 0.1);
  --shadow-primary: 0 10px 30px rgba(0, 122, 255, 0.28);
  --border-soft: rgba(11, 18, 32, 0.05);
  --border-mid: rgba(11, 18, 32, 0.1);
  --nav-bg: rgba(245, 246, 250, 0.72);
  --cta-bg: #0B1220;
  --cta-ink: #F5F6FA;
  --cta-muted: rgba(245, 246, 250, 0.72);
  --footer-bg: #EEF0F6;
  --field-bg: #FFFFFF;
  --field-border: rgba(11, 18, 32, 0.12);
  --max: 1200px;
}

html.dark {
  --ink: #F5F6FA;
  --ink-2: #C5CAD6;
  --ink-3: #8B93A7;
  --bg: #0B1220;
  --paper: #151B2B;
  --tint-blue: #132038;
  --tint-blue-2: #1A2A45;
  --tint-green: #132A1C;
  --tint-amber: #2A2212;
  --tint-purple: #1E1A30;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.2), 0 2px 8px rgba(0, 0, 0, 0.18);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.25), 0 12px 32px rgba(0, 0, 0, 0.28);
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.35), 0 30px 60px rgba(0, 0, 0, 0.4);
  --border-soft: rgba(255, 255, 255, 0.06);
  --border-mid: rgba(255, 255, 255, 0.12);
  --nav-bg: rgba(11, 18, 32, 0.78);
  --cta-bg: #060A12;
  --cta-ink: #F5F6FA;
  --cta-muted: rgba(245, 246, 250, 0.7);
  --footer-bg: #0A101C;
  --field-bg: #1A2133;
  --field-border: rgba(255, 255, 255, 0.12);
  --primary-dark: #4DA2FF;
}

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

html {
  scroll-behavior: smooth;
}

html.reduce-motion,
html.reduce-motion * {
  scroll-behavior: auto !important;
  transition: none !important;
  animation: none !important;
}

body {
  font-family: "Inter", -apple-system, system-ui, sans-serif;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
  overflow-x: hidden;
}

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

a {
  color: inherit;
}

ul {
  list-style: none;
}

button,
input {
  font-family: inherit;
}

.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;
}

.sr-only:focus {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 200;
  width: auto;
  height: auto;
  margin: 0;
  clip: auto;
  padding: 10px 16px;
  background: var(--primary);
  color: #fff;
  border-radius: var(--radius-btn);
  font-weight: 600;
  text-decoration: none;
}

.is-hidden {
  display: none !important;
}

/* ---------- NAV ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px clamp(20px, 5vw, 64px);
  background: var(--nav-bg);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--border-soft);
}

.brand {
  display: flex;
  align-items: center;
  gap: 9px;
  font-weight: 700;
  font-size: 20px;
  letter-spacing: -0.02em;
  text-decoration: none;
  color: var(--ink);
}

.brand-mark {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: linear-gradient(135deg, #4da2ff, #007aff);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 15px;
  box-shadow: 0 4px 10px rgba(0, 122, 255, 0.35);
  flex-shrink: 0;
}

.brand picture {
  display: contents;
}

.brand-logo {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  object-fit: contain;
  box-shadow: 0 4px 10px rgba(0, 122, 255, 0.2);
  flex-shrink: 0;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
}

.nav-link {
  color: var(--ink-2);
  text-decoration: none;
  font-weight: 500;
  font-size: 15px;
  transition: color 0.2s ease;
}

.nav-link:hover {
  color: var(--ink);
}

/* Login link next to primary CTA — compact text on mobile, ghost button on desktop */
.nav-login {
  font-family: inherit;
  font-weight: 500;
  font-size: 14px;
  color: var(--ink-2);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 6px;
  white-space: nowrap;
  transition: color 0.2s ease;
  background: none;
  border: none;
  box-shadow: none;
}

.nav-login:hover {
  color: var(--primary);
}

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-btn);
  border: 1px solid var(--border-mid);
  background: var(--paper);
  color: var(--ink-2);
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: transform 0.15s ease, border-color 0.2s ease;
}

.icon-btn:hover {
  border-color: rgba(11, 18, 32, 0.18);
  color: var(--ink);
}

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

.icon-btn .icon-sun {
  display: none;
}

html.dark .icon-btn .icon-moon {
  display: none;
}

html.dark .icon-btn .icon-sun {
  display: block;
}

/* ---------- BUTTONS ---------- */
.btn {
  font-family: inherit;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  border: none;
  border-radius: var(--radius-btn);
  transition: transform 0.15s ease, box-shadow 0.25s ease, border-color 0.2s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  line-height: 1.2;
}

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

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

.btn-primary {
  background: linear-gradient(135deg, #1e8cff, #007aff);
  color: #fff;
  padding: 11px 20px;
  box-shadow: var(--shadow-primary);
}

.btn-primary:hover:not(:disabled) {
  box-shadow: 0 14px 36px rgba(0, 122, 255, 0.36);
}

.btn-ghost {
  background: var(--paper);
  color: var(--ink);
  padding: 11px 20px;
  border: 1px solid var(--border-mid);
  box-shadow: var(--shadow-sm);
}

.btn-ghost:hover {
  border-color: rgba(11, 18, 32, 0.18);
}

.btn-block {
  width: 100%;
  padding: 14px 24px;
  font-size: 16px;
}

/* ---------- HERO (from reference — do not alter structure) ---------- */
.hero {
  position: relative;
  padding: clamp(48px, 7vw, 96px) clamp(20px, 5vw, 64px) clamp(60px, 8vw, 110px);
  overflow: hidden;
}

/* mesh gradient real */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(60% 55% at 15% 8%, rgba(0, 122, 255, 0.16), transparent 60%),
    radial-gradient(50% 50% at 92% 12%, rgba(90, 200, 250, 0.18), transparent 62%),
    radial-gradient(55% 60% at 78% 85%, rgba(52, 199, 89, 0.1), transparent 60%),
    radial-gradient(40% 45% at 40% 100%, rgba(0, 122, 255, 0.08), transparent 55%);
}

html.dark .hero::before {
  background:
    radial-gradient(60% 55% at 15% 8%, rgba(0, 122, 255, 0.22), transparent 60%),
    radial-gradient(50% 50% at 92% 12%, rgba(90, 200, 250, 0.12), transparent 62%),
    radial-gradient(55% 60% at 78% 85%, rgba(52, 199, 89, 0.08), transparent 60%),
    radial-gradient(40% 45% at 40% 100%, rgba(0, 122, 255, 0.1), transparent 55%);
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(30px, 4vw, 64px);
  align-items: center;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(0, 122, 255, 0.22);
  color: var(--primary-dark);
  font-weight: 600;
  font-size: 13.5px;
  padding: 7px 14px;
  border-radius: 100px;
  margin-bottom: 22px;
  box-shadow: var(--shadow-sm);
}

html.dark .badge {
  background: rgba(21, 27, 43, 0.8);
}

.badge .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 0 3px rgba(0, 122, 255, 0.18);
}

h1 {
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.04;
  letter-spacing: -0.035em;
  font-weight: 800;
  margin-bottom: 14px;
}

h1 .grad {
  background: linear-gradient(120deg, #007aff 20%, #00c2ff 90%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.slogan {
  color: var(--primary);
  font-weight: 700;
  font-size: clamp(17px, 2vw, 21px);
  margin-bottom: 18px;
  letter-spacing: -0.01em;
}

html.dark .slogan {
  color: #4da2ff;
}

.lede {
  color: var(--ink-2);
  font-size: clamp(15.5px, 1.5vw, 17.5px);
  max-width: 520px;
  margin-bottom: 30px;
}

.hero-cta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 22px;
}

.hero-cta .btn {
  padding: 14px 24px;
  font-size: 16px;
}

.hero-meta {
  color: var(--ink-3);
  font-size: 14px;
}

.hero-meta b {
  color: var(--ink-2);
  font-weight: 600;
}

/* ---------- PHONE ---------- */
.phone-wrap {
  display: flex;
  justify-content: center;
  position: relative;
}

.phone-glow {
  position: absolute;
  width: 78%;
  height: 78%;
  top: 11%;
  left: 11%;
  background: radial-gradient(circle, rgba(0, 122, 255, 0.3), transparent 70%);
  filter: blur(50px);
  z-index: 0;
}

.phone {
  position: relative;
  z-index: 1;
  width: min(320px, 80vw);
  aspect-ratio: 9 / 19.2;
  background: #0b1220;
  border-radius: 44px;
  padding: 11px;
  box-shadow: var(--shadow-lg), inset 0 0 0 2px rgba(255, 255, 255, 0.06);
}

.phone-screen {
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, #fbfcfe, #f1f5fb);
  border-radius: 34px;
  overflow: hidden;
  position: relative;
  padding: 16px 14px;
}

html.dark .phone-screen {
  background: linear-gradient(180deg, #1a2133, #121826);
}

.notch {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 34%;
  height: 22px;
  background: #0b1220;
  border-radius: 0 0 16px 16px;
  z-index: 5;
}

.status {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-2);
  padding: 2px 6px 12px;
}

.copilot-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.cp-avatar {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  background: linear-gradient(135deg, #1e8cff, #007aff);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  box-shadow: 0 4px 10px rgba(0, 122, 255, 0.3);
}

.cp-title {
  font-weight: 700;
  font-size: 15px;
}

.cp-sub {
  font-size: 11.5px;
  color: var(--ink-3);
}

.card-mini {
  background: var(--paper);
  border-radius: 16px;
  padding: 12px;
  margin-bottom: 10px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-soft);
  display: flex;
  gap: 11px;
  align-items: flex-start;
}

.cm-icon {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
}

.cm-icon.blue {
  background: var(--tint-blue);
  color: var(--primary);
}

.cm-icon.green {
  background: var(--tint-green);
  color: var(--success);
}

.cm-icon.amber {
  background: var(--tint-amber);
  color: var(--amber);
}

.cm-title {
  font-weight: 600;
  font-size: 13.5px;
  line-height: 1.3;
}

.cm-sub {
  font-size: 11.5px;
  color: var(--ink-3);
  margin-top: 1px;
}

.chip {
  display: inline-block;
  margin-top: 6px;
  font-size: 10.5px;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: 7px;
}

.chip.green {
  background: var(--tint-green);
  color: #1e8e3e;
}

.chip.blue {
  background: var(--tint-blue);
  color: var(--primary-dark);
}

.stats {
  display: flex;
  gap: 8px;
  margin-top: 4px;
}

.stat {
  flex: 1;
  background: var(--paper);
  border-radius: 13px;
  padding: 10px 8px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-soft);
}

.stat.hl {
  background: linear-gradient(135deg, #eaf7ee, #e7f8ed);
}

html.dark .stat.hl {
  background: linear-gradient(135deg, #132a1c, #1a3324);
}

.stat b {
  display: block;
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.stat.blue b {
  color: var(--primary);
}

.stat.green b {
  color: var(--success);
}

.stat span {
  font-size: 10.5px;
  color: var(--ink-3);
  font-weight: 500;
}

/* ---------- SECTIONS ---------- */
.section {
  padding: clamp(50px, 7vw, 90px) clamp(20px, 5vw, 64px);
  position: relative;
}

.section.tinted {
  background: linear-gradient(180deg, var(--tint-blue) 0%, var(--bg) 100%);
}

.section.alt {
  background: linear-gradient(180deg, var(--bg) 0%, var(--tint-blue) 50%, var(--bg) 100%);
}

.sec-inner {
  max-width: var(--max);
  margin: 0 auto;
}

.kicker {
  color: var(--primary);
  font-weight: 700;
  font-size: 13.5px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

html.dark .kicker {
  color: #4da2ff;
}

h2 {
  font-size: clamp(28px, 3.6vw, 42px);
  letter-spacing: -0.03em;
  font-weight: 800;
  margin-bottom: 14px;
}

.sec-lede {
  color: var(--ink-2);
  font-size: clamp(15px, 1.6vw, 17px);
  max-width: 640px;
  margin-bottom: 40px;
}

/* ---------- BENTO / TILES ---------- */
.bento {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 18px;
}

.tile {
  background: var(--paper);
  border-radius: var(--radius-card);
  padding: 26px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-soft);
  position: relative;
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.tile:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.tile.feat {
  grid-column: span 4;
}

.tile.side {
  grid-column: span 2;
}

.tile.half {
  grid-column: span 3;
}

.tile.third {
  grid-column: span 2;
}

.tile.wide {
  grid-column: span 6;
}

.tile-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  /* Stronger blue than --primary for AA contrast on tile backgrounds */
  color: #0056b3;
  margin-bottom: 14px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

html.dark .tile-label {
  color: #7ab8ff;
}

.tile-ico {
  width: 44px;
  height: 44px;
  border-radius: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.ico-blue {
  background: linear-gradient(135deg, #e4edfd, #eef3fe);
  color: var(--primary);
}

.ico-green {
  background: linear-gradient(135deg, #e7f8ed, #effbf2);
  color: var(--success);
}

.ico-purple {
  background: linear-gradient(135deg, #eeebfb, #f4f1fe);
  color: var(--purple);
}

.ico-amber {
  background: linear-gradient(135deg, #fef3e2, #fff8ee);
  color: var(--amber);
}

html.dark .ico-blue {
  background: linear-gradient(135deg, #1a2a45, #132038);
}

html.dark .ico-green {
  background: linear-gradient(135deg, #1a3324, #132a1c);
}

html.dark .ico-purple {
  background: linear-gradient(135deg, #2a2440, #1e1a30);
}

html.dark .ico-amber {
  background: linear-gradient(135deg, #3a2e14, #2a2212);
}

.tile h3 {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 9px;
}

.tile p {
  color: var(--ink-2);
  font-size: 14.5px;
  line-height: 1.6;
}

.tile-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 16px;
}

.tag {
  font-size: 12px;
  font-weight: 600;
  color: var(--primary-dark);
  background: var(--tint-blue);
  padding: 5px 11px;
  border-radius: 8px;
}

.feat-visual {
  margin-top: 20px;
  background: linear-gradient(135deg, #f7faff, #eef3fe);
  border-radius: 14px;
  padding: 16px;
  border: 1px solid rgba(0, 122, 255, 0.1);
  display: flex;
  gap: 12px;
  align-items: center;
}

html.dark .feat-visual {
  background: linear-gradient(135deg, #151b2b, #132038);
  border-color: rgba(0, 122, 255, 0.2);
}

.fv-dot {
  width: 40px;
  height: 40px;
  border-radius: 11px;
  background: linear-gradient(135deg, #1e8cff, #007aff);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 4px 10px rgba(0, 122, 255, 0.3);
}

.fv-text {
  font-size: 13px;
  color: var(--ink-2);
  font-style: italic;
  line-height: 1.5;
}

/* ---------- HOW IT WORKS ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.step-num {
  display: block;
  font-size: clamp(40px, 5vw, 52px);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--primary);
  opacity: 0.22;
  margin-bottom: 12px;
}

/* ---------- COMPARE ---------- */
.compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

/* Fixed-size marks: flex:0 0 22px so icons never stretch full width */
.cmp-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 4px;
}

.cmp-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.cmp-item span:last-child {
  font-size: 15px;
  line-height: 1.5;
  color: var(--ink-2);
}

.cmp-mark {
  flex: 0 0 22px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 1px;
}

.cmp-x {
  background: #efeff2;
  color: #8a8a8e;
}

.cmp-check {
  background: #e7f8ed;
  color: #1e8e3e;
}

/* CTA bullets still use .mark */
.mark {
  width: 22px;
  height: 22px;
  border-radius: 7px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
}

.mark-x {
  background: rgba(11, 18, 32, 0.06);
  color: var(--ink-3);
}

html.dark .mark-x {
  background: rgba(255, 255, 255, 0.08);
}

.mark-check {
  background: var(--tint-green);
  color: var(--success);
}

.tile.highlight {
  background: rgba(0, 122, 255, 0.05);
  border-color: rgba(0, 122, 255, 0.22);
  box-shadow: var(--shadow-md), 0 0 0 1px rgba(0, 122, 255, 0.06);
}

html.dark .tile.highlight {
  background: rgba(0, 122, 255, 0.1);
  border-color: rgba(0, 122, 255, 0.28);
}

.tile.highlight .tile-label {
  color: #0056b3;
}

.tile.highlight h3 {
  color: var(--primary);
}

html.dark .tile.highlight .tile-label {
  color: #7ab8ff;
}

html.dark .tile.highlight h3 {
  color: #4da2ff;
}

.eco-block {
  margin-top: 18px;
}

/* ---------- FAQ ---------- */
.faq-wrap {
  max-width: 760px;
  margin: 0 auto;
  background: var(--paper);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-soft);
  overflow: hidden;
}

.faq-item {
  border-bottom: 1px solid var(--border-soft);
}

.faq-item:last-child {
  border-bottom: none;
}

.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 18px 22px;
  font-weight: 600;
  font-size: 15.5px;
  letter-spacing: -0.01em;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: var(--ink);
  transition: background 0.15s ease;
}

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

.faq-item summary::after {
  content: "";
  width: 10px;
  height: 10px;
  border-right: 2px solid var(--ink-3);
  border-bottom: 2px solid var(--ink-3);
  transform: rotate(45deg);
  flex-shrink: 0;
  transition: transform 0.2s ease;
  margin-top: -4px;
}

.faq-item[open] summary::after {
  transform: rotate(225deg);
  margin-top: 4px;
}

.faq-item summary:hover {
  background: rgba(0, 122, 255, 0.03);
}

.faq-answer {
  padding: 0 22px 20px;
  color: var(--ink-2);
  font-size: 14.5px;
  line-height: 1.65;
}

.faq-answer a {
  color: var(--primary);
  font-weight: 600;
  text-decoration: none;
}

.faq-answer a:hover {
  text-decoration: underline;
}

/* ---------- CTA / FORM ---------- */
.section.cta {
  background:
    radial-gradient(70% 80% at 15% 20%, rgba(0, 122, 255, 0.35), transparent 55%),
    radial-gradient(50% 50% at 90% 80%, rgba(52, 199, 89, 0.12), transparent 55%),
    var(--cta-bg);
  color: var(--cta-ink);
}

.section.cta .kicker {
  color: #7cb8ff;
}

.section.cta h2 {
  color: #fff;
}

.section.cta .sec-lede {
  color: var(--cta-muted);
}

.cta-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(28px, 4vw, 56px);
  align-items: start;
}

.cta-bullets {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 8px;
  margin-bottom: 28px;
}

.cta-bullets li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  color: var(--cta-muted);
  font-size: 15px;
}

.cta-bullets .mark-check {
  background: rgba(52, 199, 89, 0.18);
}

.cta-login {
  color: var(--cta-muted);
  font-size: 14px;
}

.cta-login a {
  color: #7cb8ff;
  font-weight: 600;
  text-decoration: none;
}

.cta-login a:hover {
  text-decoration: underline;
}

.form-card {
  background: var(--paper);
  color: var(--ink);
  border-radius: var(--radius-card);
  padding: 28px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-soft);
  position: relative;
}

.field {
  margin-bottom: 16px;
}

.field-label {
  display: block;
  font-size: 13.5px;
  font-weight: 600;
  margin-bottom: 7px;
  color: var(--ink);
}

.field-label .optional {
  font-weight: 400;
  color: var(--ink-3);
}

.field-input {
  width: 100%;
  padding: 12px 14px;
  font-size: 15px;
  border-radius: 12px;
  border: 1px solid var(--field-border);
  background: var(--field-bg);
  color: var(--ink);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  outline: none;
}

.field-input::placeholder {
  color: var(--ink-3);
}

.field-input:focus {
  border-color: rgba(0, 122, 255, 0.55);
  box-shadow: 0 0 0 3px rgba(0, 122, 255, 0.15);
}

.field-input.is-invalid {
  border-color: var(--urgency);
  box-shadow: 0 0 0 3px rgba(255, 59, 48, 0.12);
}

.field-error {
  margin-top: 6px;
  font-size: 12.5px;
  color: var(--urgency);
  min-height: 0;
}

.field-error:empty {
  display: none;
}

.hp {
  position: absolute;
  left: -9999px;
  opacity: 0;
  height: 0;
  width: 0;
  overflow: hidden;
}

.form-status {
  margin-top: 12px;
  font-size: 14px;
  text-align: center;
  min-height: 1.25rem;
}

.form-status.is-error {
  color: var(--urgency);
}

.form-status.is-success {
  color: var(--success);
}

.form-success {
  text-align: center;
  padding: 24px 8px;
}

.form-success-ico {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--tint-green);
  color: var(--success);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}

.form-success h3 {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}

.form-success p {
  color: var(--ink-2);
  font-size: 14.5px;
}

.btn-loading {
  display: none;
  align-items: center;
  gap: 8px;
}

.btn.is-loading .btn-label {
  display: none;
}

.btn.is-loading .btn-loading {
  display: inline-flex;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.spin {
  animation: spin 0.8s linear infinite;
}

/* ---------- FOOTER ---------- */
.footer {
  background: var(--footer-bg);
  border-top: 1px solid var(--border-soft);
  padding: clamp(40px, 6vw, 72px) clamp(20px, 5vw, 64px) 28px;
}

.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
}

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

.footer-brand p {
  margin-top: 14px;
  color: var(--ink-2);
  font-size: 14px;
  line-height: 1.6;
  max-width: 320px;
}

.footer h3 {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 14px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a,
.footer-links span {
  color: var(--ink-2);
  font-size: 14.5px;
  text-decoration: none;
  transition: color 0.15s ease;
}

.footer-links a:hover {
  color: var(--ink);
}

.footer-links a.with-ico {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.footer-bottom {
  margin-top: 40px;
  padding-top: 22px;
  border-top: 1px solid var(--border-soft);
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  justify-content: space-between;
  /* Lighter than --ink-3 for AA contrast on dark footer bg */
  color: var(--ink-2);
  font-size: 12.5px;
}

html.dark .footer-bottom {
  /* ~#A8B0C2 on #0A101C ≥ 4.5:1 */
  color: #a8b0c2;
}

/* ---------- REVEAL ---------- */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

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

html.reduce-motion .reveal {
  opacity: 1;
  transform: none;
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 860px) {
  .hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .badge,
  .hero-cta {
    justify-content: center;
  }

  .lede {
    margin-left: auto;
    margin-right: auto;
  }

  .phone-wrap {
    margin-top: 20px;
  }

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

  .tile.feat,
  .tile.side,
  .tile.half,
  .tile.third,
  .tile.wide {
    grid-column: span 1;
  }

  .nav-links {
    display: none;
  }

  .nav {
    gap: 8px;
  }

  .nav-right {
    gap: 6px;
    flex-shrink: 0;
  }

  /* Primary CTA stays filled; slightly tighter padding so logo + login + CTA fit */
  .nav-right .btn-primary {
    padding: 10px 14px;
    font-size: 14px;
  }

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

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

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

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

  .footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 480px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }

  /* Ingresar stays visible as compact text link (never footer-only) */
  .nav-right .nav-login {
    display: inline-flex;
    font-size: 13.5px;
    padding: 0 4px;
  }

  .nav-right .btn-primary {
    padding: 10px 12px;
    font-size: 13.5px;
  }
}

/* Desktop: Ingresar as ghost button beside primary (nav-links also list it) */
@media (min-width: 861px) {
  .nav-login {
    font-weight: 600;
    font-size: 15px;
    color: var(--ink);
    background: var(--paper);
    padding: 11px 20px;
    border: 1px solid var(--border-mid);
    border-radius: var(--radius-btn);
    box-shadow: var(--shadow-sm);
    min-height: unset;
  }

  .nav-login:hover {
    border-color: rgba(11, 18, 32, 0.18);
    color: var(--ink);
  }
}
