/* ============================================================================
   Forma Agent — landing
   Visual direction: light-luxury medical-tech.
   Off-white canvas · deep navy ink · coral decisive accent · emerald = WhatsApp.
   Fraunces (editorial display serif) + Inter (UI/body).
   ============================================================================ */

/* ── Design tokens ─────────────────────────────────────────────────────────── */
:root {
  /* Brand palette (OKLCH) — harmonized with dashboard-v2 (#0D1B2A / #E11D48) */
  --ink:            oklch(22% 0.035 255);     /* near-navy text on light       */
  --navy:           oklch(24% 0.045 256);     /* #0D1B2A family — dark surfaces */
  --navy-deep:      oklch(19% 0.04 256);
  --navy-soft:      oklch(30% 0.05 256);
  --coral:          oklch(58% 0.21 17);       /* #E11D48 accent                 */
  --coral-strong:   oklch(52% 0.21 17);
  --coral-tint:     oklch(95% 0.03 17);
  --emerald:        oklch(60% 0.13 162);      /* WhatsApp / success (accents)  */
  --emerald-btn:    oklch(53% 0.14 162);      /* button bg: AA on white text   */
  --emerald-btn-h:  oklch(48% 0.13 162);      /* button hover                  */
  --emerald-strong: oklch(54% 0.13 162);
  --emerald-tint:   oklch(95% 0.04 162);

  /* Neutrals / surfaces */
  --canvas:         oklch(98.6% 0.004 250);   /* page background (off-white)   */
  --surface:        oklch(100% 0 0);          /* cards                          */
  --surface-2:      oklch(97% 0.006 250);     /* alt sections                   */
  --line:           oklch(91% 0.008 255);     /* hairlines                      */
  --line-strong:    oklch(86% 0.01 255);
  --muted:          oklch(52% 0.015 256);     /* secondary text                 */
  --muted-soft:     oklch(63% 0.014 256);
  --on-navy:        oklch(97% 0.006 250);
  --on-navy-muted:  oklch(72% 0.018 256);

  /* Typography */
  --font-display: 'Fraunces', Georgia, 'Times New Roman', serif;
  --font-sans:    'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;

  /* Fluid type scale — deliberate contrast (1.25 → wider at hero) */
  --t-eyebrow: 0.78rem;
  --t-body:    clamp(1rem, 0.96rem + 0.2vw, 1.075rem);
  --t-lead:    clamp(1.075rem, 1rem + 0.45vw, 1.3rem);
  --t-h3:      clamp(1.2rem, 1.1rem + 0.5vw, 1.4rem);
  --t-h2:      clamp(1.9rem, 1.4rem + 2.1vw, 3rem);
  --t-h1:      clamp(2.5rem, 1.5rem + 4.4vw, 4.6rem);

  /* Spacing rhythm — NOT uniform; named by role */
  --space-section: clamp(4.5rem, 3rem + 6vw, 8.5rem);
  --gutter:        clamp(1.15rem, 0.6rem + 2.4vw, 2.5rem);
  --shell-max:     1180px;

  /* Radii — varied on purpose */
  --r-xs: 8px;
  --r-sm: 12px;
  --r-md: 18px;
  --r-lg: 26px;
  --r-pill: 999px;

  /* Elevation — soft, layered */
  --shadow-1: 0 1px 2px rgba(13, 27, 42, 0.05), 0 2px 8px rgba(13, 27, 42, 0.04);
  --shadow-2: 0 6px 18px rgba(13, 27, 42, 0.07), 0 2px 6px rgba(13, 27, 42, 0.05);
  --shadow-3: 0 24px 56px rgba(13, 27, 42, 0.16), 0 8px 20px rgba(13, 27, 42, 0.1);
  --shadow-coral: 0 10px 26px oklch(58% 0.21 17 / 0.32);
  --shadow-emerald: 0 10px 26px oklch(54% 0.13 162 / 0.32);

  /* Motion */
  --dur: 220ms;
  --dur-slow: 420ms;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ── Reset & base ──────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  font-size: var(--t-body);
  line-height: 1.6;
  color: var(--ink);
  background: var(--canvas);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

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

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.01em;
  color: var(--ink);
  text-wrap: balance;
}

p { text-wrap: pretty; }

:focus-visible {
  outline: 3px solid var(--coral);
  outline-offset: 3px;
  border-radius: 4px;
}

.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: 12px; top: -60px; z-index: 200;
  background: var(--navy); color: var(--on-navy);
  padding: 10px 16px; border-radius: var(--r-xs);
  font-weight: 600; transition: top var(--dur) var(--ease);
}
.skip-link:focus { top: 12px; }

.shell {
  width: 100%;
  max-width: var(--shell-max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ── Buttons ───────────────────────────────────────────────────────────────── */
.btn {
  --_bg: var(--navy);
  --_fg: var(--on-navy);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55em;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.96rem;
  letter-spacing: -0.005em;
  line-height: 1;
  padding: 0.82em 1.35em;
  border-radius: var(--r-pill);
  background: var(--_bg);
  color: var(--_fg);
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform var(--dur) var(--ease),
              box-shadow var(--dur) var(--ease),
              background var(--dur) var(--ease),
              color var(--dur) var(--ease),
              border-color var(--dur) var(--ease);
  will-change: transform;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-lg { font-size: 1.04rem; padding: 1.02em 1.7em; }

.btn-whatsapp {
  --_bg: var(--emerald-btn);
  --_fg: oklch(99% 0.01 162);
  box-shadow: var(--shadow-emerald);
}
.btn-whatsapp:hover { --_bg: var(--emerald-btn-h); box-shadow: 0 14px 32px oklch(50% 0.13 162 / 0.42); }

.btn-ghost {
  --_bg: transparent;
  --_fg: var(--ink);
  border-color: var(--line-strong);
}
.btn-ghost:hover { --_bg: var(--surface); border-color: var(--ink); box-shadow: var(--shadow-1); }

.btn-outline {
  --_bg: transparent;
  --_fg: var(--ink);
  border-color: var(--line-strong);
}
.btn-outline:hover { --_bg: var(--ink); --_fg: var(--on-navy); border-color: var(--ink); }

.ico-wa { flex: none; }

/* ── Header / nav ──────────────────────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: oklch(98.6% 0.004 250 / 0.82);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.site-header.is-scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 1px 0 rgba(13,27,42,0.02), var(--shadow-1);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  height: 72px;
}

.brand { display: inline-flex; align-items: center; gap: 0.6rem; }
.brand-mark { display: inline-flex; filter: drop-shadow(0 4px 10px rgba(13,27,42,0.18)); }
.brand-name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.34rem;
  letter-spacing: -0.025em;
  color: var(--ink);
}
.brand-name-accent { color: var(--coral); }

.site-nav { display: none; gap: 1.9rem; }
.site-nav a {
  font-size: 0.94rem;
  font-weight: 500;
  color: var(--muted);
  position: relative;
  padding: 0.4rem 0;
  transition: color var(--dur) var(--ease);
}
.site-nav a::after {
  content: "";
  position: absolute; left: 0; bottom: -2px;
  width: 100%; height: 2px;
  background: var(--coral);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--dur) var(--ease);
}
.site-nav a:hover { color: var(--ink); }
.site-nav a:hover::after { transform: scaleX(1); }

.header-cta { display: none; }

@media (min-width: 880px) {
  .site-nav { display: flex; }
  .header-cta { display: inline-flex; }
}

/* ── Hero ──────────────────────────────────────────────────────────────────── */
.hero {
  position: relative;
  padding-top: clamp(3rem, 2rem + 5vw, 6rem);
  padding-bottom: var(--space-section);
  overflow: hidden;
}
.hero-glow {
  position: absolute;
  inset: -20% -10% auto -10%;
  height: 720px;
  background:
    radial-gradient(50% 60% at 78% 18%, oklch(58% 0.21 17 / 0.1), transparent 70%),
    radial-gradient(48% 55% at 12% 8%, oklch(54% 0.13 162 / 0.09), transparent 68%);
  pointer-events: none;
  z-index: 0;
}
.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  gap: clamp(2.5rem, 1rem + 5vw, 4.5rem);
  align-items: center;
}
@media (min-width: 980px) {
  .hero-grid { grid-template-columns: 1.05fr 0.95fr; }
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: var(--t-eyebrow);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--coral-strong);
  background: var(--coral-tint);
  padding: 0.4rem 0.85rem;
  border-radius: var(--r-pill);
  margin-bottom: 1.3rem;
}
.eyebrow-dark { color: var(--coral-strong); }
.dot-live {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--emerald);
  box-shadow: 0 0 0 3px oklch(60% 0.13 162 / 0.22);
  animation: pulse 2.4s var(--ease) infinite;
}

#hero-title {
  font-size: var(--t-h1);
  font-weight: 500;
  letter-spacing: -0.025em;
}
#hero-title .hl {
  display: block;
  color: var(--coral);
  font-style: italic;
  font-weight: 400;
}

.hero-lead {
  margin-top: 1.5rem;
  font-size: var(--t-lead);
  color: var(--muted);
  max-width: 38ch;
}
.hero-lead strong { color: var(--ink); font-weight: 600; }

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 2.2rem;
}

.hero-trust {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.8rem;
  margin-top: 2.4rem;
  padding-top: 1.6rem;
  border-top: 1px solid var(--line);
  font-size: 0.92rem;
  color: var(--muted);
}
.hero-trust strong { color: var(--ink); font-weight: 700; }
.hero-trust li { position: relative; padding-left: 1.1rem; }
.hero-trust li::before {
  content: "";
  position: absolute; left: 0; top: 0.62em;
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--coral);
}

/* Hero visual — phone mockup */
.hero-visual { position: relative; display: flex; justify-content: center; }

.phone {
  position: relative;
  width: min(330px, 86vw);
  background: var(--navy);
  border-radius: 34px;
  padding: 12px;
  box-shadow: var(--shadow-3), 0 0 0 1px oklch(24% 0.045 256 / 0.6) inset;
  z-index: 2;
}
.phone-bar {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.7rem 0.6rem 0.85rem;
  color: var(--on-navy);
}
.phone-avatar {
  width: 38px; height: 38px; border-radius: 50%;
  display: grid; place-items: center;
  background: linear-gradient(140deg, var(--emerald), var(--emerald-strong));
  color: #fff; font-weight: 700; font-family: var(--font-display);
}
.phone-id { display: flex; flex-direction: column; line-height: 1.2; margin-right: auto; }
.phone-name { font-weight: 600; font-size: 0.92rem; }
.phone-status { font-size: 0.72rem; color: var(--emerald); }
.phone-icons { color: var(--on-navy-muted); }

.phone-thread {
  background:
    linear-gradient(oklch(95% 0.012 150 / 0.6), oklch(95% 0.012 150 / 0.6)),
    var(--surface);
  border-radius: 24px;
  padding: 1rem 0.85rem 1.15rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  min-height: 420px;
}
.bubble {
  max-width: 84%;
  padding: 0.58rem 0.8rem;
  border-radius: 16px;
  font-size: 0.85rem;
  line-height: 1.4;
  box-shadow: 0 1px 1px rgba(13,27,42,0.06);
  animation: bubble-in var(--dur-slow) var(--ease) backwards;
}
.bubble.in {
  align-self: flex-start;
  background: var(--surface);
  border-top-left-radius: 5px;
  color: var(--ink);
}
.bubble.out {
  align-self: flex-end;
  background: oklch(92% 0.06 150);
  border-top-right-radius: 5px;
  color: oklch(28% 0.05 160);
}
.bubble.out strong { color: oklch(22% 0.06 160); }
.bubble:nth-child(2) { animation-delay: 0.08s; }
.bubble:nth-child(3) { animation-delay: 0.16s; }
.bubble:nth-child(4) { animation-delay: 0.24s; }
.bubble:nth-child(5) { animation-delay: 0.32s; }
.bubble:nth-child(6) { animation-delay: 0.4s; }

.slot-row { display: flex; flex-wrap: wrap; gap: 0.35rem; margin-top: 0.5rem; }
.slot {
  font-size: 0.74rem; font-weight: 600;
  padding: 0.3rem 0.55rem; border-radius: var(--r-pill);
  background: var(--surface); color: oklch(40% 0.05 160);
  border: 1px solid oklch(80% 0.06 160);
}
.slot-pick { background: var(--emerald); color: #fff; border-color: transparent; }

.bubble-tag {
  display: block;
  margin-top: 0.5rem;
  font-size: 0.68rem;
  font-weight: 600;
  color: oklch(45% 0.04 160);
  letter-spacing: 0.01em;
}

.typing {
  align-self: flex-start;
  display: inline-flex; gap: 4px;
  background: var(--surface);
  padding: 0.6rem 0.7rem; border-radius: 16px; border-top-left-radius: 5px;
  box-shadow: 0 1px 1px rgba(13,27,42,0.06);
}
.typing span {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--muted-soft);
  animation: typing 1.3s var(--ease) infinite;
}
.typing span:nth-child(2) { animation-delay: 0.18s; }
.typing span:nth-child(3) { animation-delay: 0.36s; }

.float-card {
  position: absolute;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  padding: 0.6rem 0.8rem;
  box-shadow: var(--shadow-2);
  animation: float 6s var(--ease) infinite;
}
.float-card .fc-ico {
  width: 30px; height: 30px; border-radius: 9px;
  display: grid; place-items: center;
  background: var(--coral-tint); color: var(--coral-strong);
  font-size: 0.95rem; font-weight: 700;
}
.float-card .fc-ico-emerald { background: var(--emerald-tint); color: var(--emerald-strong); }
.fc-k { display: block; font-size: 0.78rem; font-weight: 700; color: var(--ink); line-height: 1.2; }
.fc-v { display: block; font-size: 0.7rem; color: var(--muted); }
.float-card-b { animation-delay: 1.6s; }
/* Single-column hero (< 980px): keep floats tucked inside so they never
   approach the viewport edge. The negative-offset overhang is reserved for
   the 2-column desktop layout where the visual has its own column. */
.float-card-a { top: 12%; left: 0; }
.float-card-b { bottom: 12%; right: 0; }
@media (min-width: 980px) {
  .float-card-a { top: 16%; left: -4%; }
  .float-card-b { bottom: 14%; right: -6%; }
}

/* ── Strip (problem → promise) ─────────────────────────────────────────────── */
.strip {
  background: var(--navy);
  color: var(--on-navy);
  padding-block: clamp(3.2rem, 2rem + 4vw, 5rem);
}
.strip-title {
  color: var(--on-navy);
  font-size: clamp(1.5rem, 1.1rem + 1.6vw, 2.3rem);
  max-width: 22ch;
  margin-bottom: 2.4rem;
}
.strip-grid {
  display: grid;
  gap: 1.6rem;
  margin-bottom: 2rem;
}
@media (min-width: 760px) { .strip-grid { grid-template-columns: repeat(3, 1fr); gap: 2.4rem; } }
.strip-item {
  color: var(--on-navy-muted);
  font-size: 0.98rem;
  line-height: 1.5;
  padding-top: 1.2rem;
  border-top: 1px solid oklch(40% 0.04 256);
}
.strip-num {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(2.1rem, 1.4rem + 2.4vw, 3rem);
  font-weight: 500;
  color: var(--on-navy);
  letter-spacing: -0.02em;
  margin-bottom: 0.3rem;
}
.strip-item:nth-child(3) .strip-num { color: oklch(72% 0.16 162); }
.strip-foot {
  color: var(--on-navy);
  font-size: var(--t-lead);
  max-width: 56ch;
  font-weight: 500;
}

/* ── Section scaffolding ───────────────────────────────────────────────────── */
.section { padding-block: var(--space-section); }
.surface-alt { background: var(--surface-2); }

.section-head { max-width: 60ch; margin: 0 auto clamp(2.5rem, 1.5rem + 3vw, 4rem); text-align: center; }
.section-head-left { margin-inline: 0; text-align: left; }
.section-head h2 { font-size: var(--t-h2); }
.section-sub {
  margin-top: 1rem;
  font-size: var(--t-lead);
  color: var(--muted);
}

/* ── Features ──────────────────────────────────────────────────────────────── */
.feature-grid {
  list-style: none;
  display: grid;
  gap: 1.15rem;
  grid-template-columns: 1fr;
}
@media (min-width: 620px) { .feature-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 940px) { .feature-grid { grid-template-columns: repeat(3, 1fr); } }

.feature-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 1.7rem 1.6rem 1.8rem;
  box-shadow: var(--shadow-1);
  transition: transform var(--dur) var(--ease),
              box-shadow var(--dur) var(--ease),
              border-color var(--dur) var(--ease);
  overflow: hidden;
}
.feature-card::after {
  content: "";
  position: absolute; inset: 0 0 auto 0; height: 3px;
  background: linear-gradient(90deg, var(--coral), oklch(64% 0.18 30));
  transform: scaleX(0); transform-origin: left;
  transition: transform var(--dur-slow) var(--ease);
}
.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-2);
  border-color: var(--line-strong);
}
.feature-card:hover::after { transform: scaleX(1); }

/* Editorial accent: the lead card spans 2 cols on wide screens and goes dark */
@media (min-width: 940px) {
  .feature-card-lead { grid-column: span 1; }
}
.feature-card-lead {
  background: linear-gradient(160deg, var(--navy-deep), var(--navy));
  border-color: transparent;
  color: var(--on-navy);
}
.feature-card-lead .feat-ico { background: oklch(40% 0.05 256 / 0.5); color: oklch(80% 0.1 162); }

.feat-ico {
  display: inline-flex;
  width: 46px; height: 46px;
  align-items: center; justify-content: center;
  border-radius: 13px;
  background: var(--surface-2);
  color: var(--navy-soft);
  margin-bottom: 1.1rem;
}
.feat-ico-coral { background: var(--coral-tint); color: var(--coral-strong); }
.feature-card h3 { font-size: var(--t-h3); margin-bottom: 0.55rem; }
.feature-card p { color: var(--muted); font-size: 0.98rem; }
.feature-card p strong { color: var(--ink); font-weight: 600; }

/* Lead (dark) card overrides — placed after .feature-card p and given a
   stronger selector so they win the cascade regardless of source order. */
.features .feature-card-lead h3 { color: var(--on-navy); }
.features .feature-card-lead p { color: var(--on-navy-muted); }
.features .feature-card-lead p strong { color: var(--on-navy); }

/* ── How it works ──────────────────────────────────────────────────────────── */
.how { background: var(--surface-2); }
.steps {
  list-style: none;
  display: grid;
  gap: 1.15rem;
  grid-template-columns: 1fr;
  counter-reset: step;
}
@media (min-width: 640px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .steps { grid-template-columns: repeat(4, 1fr); } }

.step {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 1.7rem 1.5rem;
  box-shadow: var(--shadow-1);
}
.step-num {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 500;
  line-height: 1;
  color: var(--coral);
  opacity: 0.92;
  display: block;
  margin-bottom: 0.9rem;
  letter-spacing: -0.03em;
}
.step h3 { font-size: 1.15rem; margin-bottom: 0.5rem; }
.step p { color: var(--muted); font-size: 0.94rem; }
/* Connector line between steps on wide screens */
@media (min-width: 1000px) {
  .step:not(:last-child)::after {
    content: "";
    position: absolute; top: 2.7rem; right: -0.65rem;
    width: 1.3rem; height: 2px;
    background: var(--line-strong);
    z-index: 1;
  }
}

.how-note {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem 0.8rem;
  margin-top: 2.4rem;
  padding: 1.1rem 1.3rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 4px solid var(--coral);
  border-radius: var(--r-sm);
  font-size: 0.95rem;
  color: var(--muted);
}
.how-note strong { color: var(--ink); }
.how-note-badge {
  font-size: 0.7rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--coral-strong); background: var(--coral-tint);
  padding: 0.25rem 0.6rem; border-radius: var(--r-pill);
}

/* ── Pricing ───────────────────────────────────────────────────────────────── */
.plan-grid {
  display: grid;
  gap: 1.15rem;
  grid-template-columns: 1fr;
  align-items: stretch;
}
@media (min-width: 600px) { .plan-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .plan-grid { grid-template-columns: repeat(4, 1fr); } }

.plan {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 1.7rem 1.5rem 1.6rem;
  box-shadow: var(--shadow-1);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.plan:hover { transform: translateY(-4px); box-shadow: var(--shadow-2); }

.plan-featured {
  background: linear-gradient(168deg, var(--navy-deep), var(--navy));
  border-color: transparent;
  color: var(--on-navy);
  box-shadow: var(--shadow-3);
}
@media (min-width: 1040px) { .plan-featured { transform: translateY(-12px); } }
@media (min-width: 1040px) { .plan-featured:hover { transform: translateY(-16px); } }

.plan-badge {
  position: absolute; top: -0.8rem; left: 50%; transform: translateX(-50%);
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.04em;
  color: #fff; background: var(--coral);
  padding: 0.35rem 0.9rem; border-radius: var(--r-pill);
  box-shadow: var(--shadow-coral);
  white-space: nowrap;
}

.plan-head { padding-bottom: 1.2rem; margin-bottom: 1.2rem; border-bottom: 1px solid var(--line); }
.plan-featured .plan-head { border-bottom-color: oklch(40% 0.04 256); }
.plan-name { font-size: 1.45rem; }
.plan-featured .plan-name { color: var(--on-navy); }
.plan-for { font-size: 0.85rem; color: var(--muted); margin-top: 0.15rem; }
.plan-featured .plan-for { color: var(--on-navy-muted); }
.plan-price {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1;
  margin-top: 1.1rem;
  color: var(--ink);
}
.plan-featured .plan-price { color: var(--on-navy); }
.plan-price-quote { font-size: 2rem; }
.plan-cur { font-size: 1.4rem; vertical-align: 0.7rem; margin-right: 0.05rem; color: var(--muted); }
.plan-per { font-family: var(--font-sans); font-size: 0.95rem; font-weight: 500; color: var(--muted); }
.plan-featured .plan-per, .plan-featured .plan-cur { color: var(--on-navy-muted); }
.plan-setup { font-size: 0.82rem; color: var(--muted-soft); margin-top: 0.5rem; }
.plan-featured .plan-setup { color: var(--on-navy-muted); }

.plan-feats {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  margin-bottom: 1.6rem;
  flex: 1;
}
.plan-feats li {
  position: relative;
  padding-left: 1.6rem;
  font-size: 0.92rem;
  color: var(--muted);
}
.plan-feats li::before {
  content: "";
  position: absolute; left: 0; top: 0.15rem;
  width: 16px; height: 16px;
  background: var(--emerald-tint);
  border-radius: 50%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='%23059669' d='M6.6 11.4 3.3 8.1l1.1-1.1 2.2 2.2 4.9-4.9 1.1 1.1z'/%3E%3C/svg%3E");
  background-size: 16px 16px;
}
.plan-featured .plan-feats li { color: var(--on-navy-muted); }
.plan-featured .plan-feats li::before {
  background-color: oklch(40% 0.05 256 / 0.6);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='%2334d399' d='M6.6 11.4 3.3 8.1l1.1-1.1 2.2 2.2 4.9-4.9 1.1 1.1z'/%3E%3C/svg%3E");
}
.plan-sla {
  margin-top: 0.3rem; padding-top: 0.7rem;
  border-top: 1px dashed var(--line-strong);
  font-weight: 600; color: var(--ink) !important;
}
.plan-featured .plan-sla { color: var(--on-navy) !important; border-top-color: oklch(40% 0.04 256); }

.plan-cta { width: 100%; }
.plan-featured .btn-outline { --_fg: var(--on-navy); border-color: oklch(60% 0.04 256); }
.plan-featured .btn-outline:hover { --_bg: var(--on-navy); --_fg: var(--navy); border-color: var(--on-navy); }

.pricing-foot {
  text-align: center; margin-top: 2.2rem;
  color: var(--muted); font-size: 0.98rem;
}
.pricing-foot a { color: var(--coral-strong); font-weight: 600; border-bottom: 1px solid currentColor; }
.pricing-foot a:hover { color: var(--coral); }

/* ── Diferenciales ─────────────────────────────────────────────────────────── */
.diff-shell {
  display: grid;
  gap: clamp(2.5rem, 1rem + 4vw, 4rem);
  align-items: center;
}
@media (min-width: 940px) { .diff-shell { grid-template-columns: 0.95fr 1.05fr; } }

.diff-copy .section-sub { max-width: 46ch; }
.diff-points {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 2rem;
}
.diff-points li {
  position: relative;
  padding-left: 2rem;
  color: var(--muted);
  font-size: 0.98rem;
}
.diff-points li strong { color: var(--ink); font-weight: 600; }
.diff-points li::before {
  content: "";
  position: absolute; left: 0; top: 0.1rem;
  width: 1.25rem; height: 1.25rem;
  border-radius: 50%;
  background: var(--coral-tint);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath fill='%23E11D48' d='M8.2 14.3 4.5 10.6l1.2-1.2 2.5 2.5 6-6 1.2 1.2z'/%3E%3C/svg%3E");
  background-size: 20px 20px;
}

.diff-table-wrap {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-2);
  overflow: hidden;
  /* On narrow screens, let the comparison table scroll horizontally
     instead of clipping the (important) Forma Agent column. */
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.diff-table {
  width: 100%;
  min-width: 420px; /* keeps columns legible; wrap scrolls if narrower */
  border-collapse: collapse;
  font-size: 0.88rem;
}
.diff-table th, .diff-table td { padding: 0.85rem 0.7rem; text-align: center; }
@media (max-width: 420px) {
  .diff-table th, .diff-table td { padding: 0.7rem 0.5rem; }
}
.diff-table thead th {
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--muted);
  background: var(--surface-2);
  border-bottom: 1px solid var(--line);
}
.diff-table .dt-feature { text-align: left; }
.diff-table tbody th {
  text-align: left;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.86rem;
  color: var(--ink);
}
.diff-table tbody tr { border-bottom: 1px solid var(--line); }
.diff-table tbody tr:last-child { border-bottom: 0; }
.diff-table td { color: var(--muted); }
.diff-table .dt-us {
  background: var(--coral-tint);
  color: var(--ink);
  font-weight: 600;
}
.diff-table thead .dt-us { background: var(--coral); color: #fff; }
.diff-table tbody tr:last-child .dt-us strong { color: var(--coral-strong); font-size: 1rem; }

.mark { font-weight: 700; }
.mark.yes { color: var(--emerald-strong); }
.mark.no { color: var(--muted-soft); }

/* ── FAQ ───────────────────────────────────────────────────────────────────── */
.faq-shell {
  display: grid;
  gap: clamp(1.5rem, 0.5rem + 3vw, 3.5rem);
}
@media (min-width: 880px) { .faq-shell { grid-template-columns: 0.7fr 1.3fr; align-items: start; } }
.faq .section-head-left { margin-bottom: 0; }

.faq-list { display: flex; flex-direction: column; gap: 0.7rem; }
.faq-item {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 0.3rem 1.3rem;
  box-shadow: var(--shadow-1);
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.faq-item[open] { border-color: var(--line-strong); box-shadow: var(--shadow-2); }
.faq-item summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.05rem 0;
  font-weight: 600;
  font-size: 1.02rem;
  color: var(--ink);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "";
  flex: none;
  width: 22px; height: 22px;
  background:
    linear-gradient(var(--coral), var(--coral)) center/12px 2px no-repeat,
    linear-gradient(var(--coral), var(--coral)) center/2px 12px no-repeat;
  transition: transform var(--dur) var(--ease);
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p {
  color: var(--muted);
  font-size: 0.96rem;
  padding-bottom: 1.15rem;
  max-width: 64ch;
}

/* ── Final CTA ─────────────────────────────────────────────────────────────── */
.cta-final {
  background:
    radial-gradient(60% 120% at 80% 0%, oklch(58% 0.21 17 / 0.22), transparent 60%),
    radial-gradient(50% 120% at 10% 100%, oklch(54% 0.13 162 / 0.2), transparent 60%),
    var(--navy-deep);
  color: var(--on-navy);
  padding-block: clamp(4rem, 2.5rem + 5vw, 7rem);
}
.cta-inner { text-align: center; max-width: 46ch; margin-inline: auto; }
.cta-inner h2 { color: var(--on-navy); font-size: var(--t-h2); }
.cta-inner > p { margin-top: 1.1rem; color: var(--on-navy-muted); font-size: var(--t-lead); }
.cta-inner .btn { margin-top: 2.2rem; }
.cta-alt { margin-top: 1.3rem; font-size: 0.92rem; color: var(--on-navy-muted); }
.cta-alt a { color: var(--on-navy); border-bottom: 1px solid oklch(60% 0.04 256); }
.cta-alt a:hover { border-bottom-color: var(--on-navy); }

/* ── Footer (business identity) ────────────────────────────────────────────── */
.site-footer { background: var(--navy); color: var(--on-navy-muted); padding-top: clamp(3rem, 2rem + 3vw, 4.5rem); }
.footer-grid {
  display: grid;
  gap: 2.5rem;
  grid-template-columns: 1fr;
  padding-bottom: 2.5rem;
}
@media (min-width: 720px) { .footer-grid { grid-template-columns: 1.4fr 0.8fr 1.2fr; gap: 3rem; } }

.brand-footer .brand-name { color: var(--on-navy); }
.footer-tagline { margin-top: 1rem; font-size: 0.92rem; max-width: 34ch; color: var(--on-navy-muted); }

.footer-nav, .footer-business { display: flex; flex-direction: column; }
.footer-nav h3, .footer-business h3 {
  font-family: var(--font-sans);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--on-navy);
  margin-bottom: 1.1rem;
}
.footer-nav a {
  font-size: 0.92rem;
  color: var(--on-navy-muted);
  padding: 0.3rem 0;
  width: fit-content;
  transition: color var(--dur) var(--ease);
}
.footer-nav a:hover { color: var(--on-navy); }

.footer-business { font-style: normal; }
.biz-dl { display: grid; grid-template-columns: auto 1fr; gap: 0.5rem 1rem; font-size: 0.9rem; }
.biz-dl dt { color: var(--on-navy-muted); font-weight: 500; white-space: nowrap; }
.biz-dl dd { color: var(--on-navy); font-weight: 500; }
.biz-dl dd a { border-bottom: 1px solid oklch(45% 0.04 256); transition: border-color var(--dur) var(--ease); }
.biz-dl dd a:hover { border-bottom-color: var(--on-navy); }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem 1.5rem;
  align-items: center;
  justify-content: space-between;
  padding-block: 1.5rem;
  border-top: 1px solid oklch(34% 0.04 256);
}
.footer-legal { font-size: 0.8rem; color: var(--on-navy-muted); max-width: 70ch; }
.footer-contact { display: flex; gap: 0.7rem; font-size: 0.85rem; }
.footer-contact a { color: var(--on-navy); }
.footer-contact a:hover { color: var(--coral); }
.footer-contact span { color: oklch(45% 0.04 256); }

/* ── Reveal-on-scroll (progressive, JS toggles .in-view) ───────────────────── */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity var(--dur-slow) var(--ease), transform var(--dur-slow) var(--ease); }
.reveal.in-view { opacity: 1; transform: none; }

/* ── Keyframes ─────────────────────────────────────────────────────────────── */
@keyframes pulse { 0%, 100% { box-shadow: 0 0 0 3px oklch(60% 0.13 162 / 0.22); } 50% { box-shadow: 0 0 0 6px oklch(60% 0.13 162 / 0); } }
@keyframes bubble-in { from { opacity: 0; transform: translateY(8px) scale(0.98); } to { opacity: 1; transform: none; } }
@keyframes typing { 0%, 60%, 100% { transform: translateY(0); opacity: 0.45; } 30% { transform: translateY(-4px); opacity: 1; } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }

/* ── Reduced motion ────────────────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  .btn:hover, .feature-card:hover, .plan:hover { transform: none; }
}
