/* ════════════════════════════════════════════════════════════════════
   comenzar.css — /comenzar/ getting-started landing page
   Scoped under .com-page. Reuses main.css tokens + pillar.css how-steps.
   ════════════════════════════════════════════════════════════════════ */

/* ── Scroll reveal (armed via <html class="com-js"> by comenzar.js) ── */
.com-js [data-reveal] {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: var(--reveal-delay, 0ms);
}
.com-js [data-reveal].is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .com-js [data-reveal] { opacity: 1; transform: none; transition: none; }
}

/* ── Hero ─────────────────────────────────────────────────────────── */
.com-hero {
  position: relative;
  overflow: hidden;
  background: var(--cream);
  border-bottom: 1px solid var(--line);
  padding: clamp(48px, 7vw, 96px) 0 clamp(56px, 7vw, 96px);
}
.com-hero::before {
  content: "";
  position: absolute; inset: 0;
  background:
    linear-gradient(rgba(15, 46, 34, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15, 46, 34, 0.035) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: radial-gradient(ellipse 90% 75% at 30% 0%, black 45%, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse 90% 75% at 30% 0%, black 45%, transparent 78%);
  pointer-events: none;
}
.com-hero::after {
  content: "";
  position: absolute; inset: 0; pointer-events: none; opacity: 0.045;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.92' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  mix-blend-mode: multiply;
}
.com-hero-blob { position: absolute; border-radius: 50%; filter: blur(56px); pointer-events: none; }
.com-hero-blob--1 { width: 560px; height: 420px; right: -140px; top: -100px; background: radial-gradient(ellipse at 50% 50%, rgba(201, 119, 59, 0.18), transparent 68%); }
.com-hero-blob--2 { width: 460px; height: 340px; left: -100px; bottom: 0; background: radial-gradient(ellipse at 50% 50%, rgba(15, 46, 34, 0.08), transparent 70%); }

.com-hero-grid {
  position: relative; z-index: 1;
  max-width: var(--container); margin: 0 auto; padding: 0 24px;
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 48px; align-items: center;
}

.com-kicker {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 11px; letter-spacing: 0.13em; text-transform: uppercase; font-weight: 700; color: var(--accent);
}
.com-kicker::before { content: ""; width: 26px; height: 1px; background: var(--accent); opacity: 0.45; }

.com-hero h1 {
  font-size: clamp(34px, 4.4vw, 54px); line-height: 1.03; letter-spacing: -0.03em;
  font-weight: 800; color: var(--pine); margin-top: 16px; text-wrap: balance;
}
.com-hero h1 i { font-style: normal; color: var(--accent); }
.com-hero-sub { font-size: clamp(15.5px, 1.6vw, 17.5px); line-height: 1.6; color: var(--muted); margin-top: 16px; max-width: 540px; }
.com-hero-actions { display: flex; gap: 10px; margin-top: 24px; flex-wrap: wrap; }
.com-hero-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.com-hero-chips span {
  font-size: 11.5px; font-weight: 600; letter-spacing: 0.02em; color: var(--pine);
  background: white; border: 1px solid var(--line); padding: 6px 11px; border-radius: 999px;
  display: inline-flex; align-items: center; gap: 6px;
}
.com-hero-chips svg { width: 13px; height: 13px; color: var(--accent); }

/* ── Hero setup progress card ─────────────────────────────────────── */
.com-hero-visual { position: relative; display: flex; justify-content: center; }

.com-setup-card {
  width: 100%; max-width: 440px;
  background: white; border: 1px solid var(--line); border-radius: 18px;
  box-shadow: 0 24px 60px rgba(15, 46, 34, 0.14), 0 0 0 1px var(--line);
  padding: 22px 24px 18px;
  transform: rotate(0.6deg);
}
.com-setup-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.com-setup-title { font-size: 16px; font-weight: 800; letter-spacing: -0.02em; color: var(--pine); }
.com-setup-sub { font-size: 11.5px; color: var(--muted); margin-top: 3px; }
.com-setup-pct {
  font-size: 20px; font-weight: 800; letter-spacing: -0.02em; color: var(--pine);
  font-variant-numeric: tabular-nums;
}
.com-setup-bar {
  height: 6px; border-radius: 999px; background: var(--cream-3); margin: 14px 0 6px; overflow: hidden;
}
.com-setup-bar span {
  display: block; height: 100%; width: 0%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--pine-3), #2a7a4a);
  transition: width 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}
.com-setup-steps { display: flex; flex-direction: column; }
.com-setup-step {
  display: flex; gap: 14px; align-items: flex-start;
  padding: 13px 4px;
  border-bottom: 1px solid var(--line);
  opacity: 0.55;
  transition: opacity 0.4s ease;
}
.com-setup-step:last-child { border-bottom: none; }
.com-setup-check {
  flex: 0 0 26px; width: 26px; height: 26px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--cream-3); color: transparent;
  transition: background 0.35s ease, color 0.2s ease;
}
.com-setup-check svg { width: 14px; height: 14px; }
.com-setup-body { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.com-setup-day {
  font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; font-weight: 700; color: var(--muted);
}
.com-setup-body strong { font-size: 14px; font-weight: 700; letter-spacing: -0.01em; color: var(--text); line-height: 1.25; }
.com-setup-desc { font-size: 12px; color: var(--muted); line-height: 1.45; }

.com-setup-step.is-done { opacity: 1; }
.com-setup-step.is-done .com-setup-check { background: var(--pine); color: #8fd8a8; }
.com-setup-step.is-done .com-setup-day { color: var(--accent); }
.com-setup-step--final.is-done .com-setup-check { background: var(--accent); color: white; }
.com-setup-step--final.is-done strong { color: var(--pine); }

.com-hero-badge {
  position: absolute; right: -8px; bottom: -34px; z-index: 2;
  display: flex; align-items: center; gap: 10px;
  background: var(--pine); color: white;
  border-radius: 14px; padding: 12px 16px;
  box-shadow: 0 18px 44px rgba(15, 46, 34, 0.28);
  transform: rotate(-2deg) scale(0.9); opacity: 0;
  transition: opacity 0.5s ease, transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
  max-width: 250px;
}
.com-hero-badge svg { width: 20px; height: 20px; color: #8fd8a8; flex: 0 0 20px; }
.com-hero-badge strong { display: block; font-size: 13px; letter-spacing: -0.01em; line-height: 1.15; }
.com-hero-badge span { display: block; font-size: 10.5px; opacity: 0.75; margin-top: 2px; }
.com-hero-badge.is-on { opacity: 1; transform: rotate(-2deg) scale(1); }

/* ── Includes strip ───────────────────────────────────────────────── */
.com-includes { background: white; border-bottom: 1px solid var(--line); padding: 20px 0; }
.com-includes-inner {
  max-width: 1080px; margin: 0 auto; padding: 0 24px;
  display: flex; align-items: center; gap: 18px; flex-wrap: wrap; justify-content: center;
}
.com-includes-label { font-size: 12px; font-weight: 700; letter-spacing: 0.04em; color: var(--muted); text-transform: uppercase; }
.com-includes-pills { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.com-includes-pill {
  font-size: 12.5px; font-weight: 600; color: var(--pine);
  background: rgba(234, 242, 236, 0.55); border: 1px solid var(--line);
  padding: 7px 13px; border-radius: 999px;
  display: inline-flex; align-items: center; gap: 6px;
}
.com-includes-pill svg { width: 12px; height: 12px; color: var(--pine-3); }

/* ── Sections ─────────────────────────────────────────────────────── */
.com-section { padding: clamp(56px, 7vw, 88px) 0; background: white; border-bottom: 1px solid var(--line); }
.com-section--alt { background: var(--cream); }
.com-container { max-width: 1080px; margin: 0 auto; padding: 0 24px; }
.com-container--narrow { max-width: 860px; }
.com-section-head { text-align: center; margin: 0 auto 44px; max-width: 720px; }
.com-section-head .com-kicker { justify-content: center; }
.com-section-head .com-kicker::after { content: ""; width: 26px; height: 1px; background: var(--accent); opacity: 0.45; }
.com-section-head h2 { font-size: clamp(27px, 3.6vw, 38px); letter-spacing: -0.025em; line-height: 1.08; font-weight: 800; color: var(--pine); margin-top: 12px; text-wrap: balance; }
.com-section-head h2 i { font-style: normal; color: var(--accent); }
.com-section-head p { font-size: 15.5px; color: var(--muted); margin-top: 12px; line-height: 1.6; }

/* ── Stats row ────────────────────────────────────────────────────── */
.com-stats {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px;
  background: var(--line); border: 1px solid var(--line); border-radius: 16px; overflow: hidden;
  box-shadow: 0 12px 32px rgba(15, 46, 34, 0.06);
  margin-top: 48px;
}
.com-stat { background: white; padding: 26px 24px; text-align: center; }
.com-stat-value { font-size: clamp(30px, 3.2vw, 40px); font-weight: 800; letter-spacing: -0.03em; color: var(--pine); line-height: 1; font-variant-numeric: tabular-nums; }
.com-stat-label { font-size: 12px; color: var(--muted); line-height: 1.45; margin-top: 8px; max-width: 220px; margin-left: auto; margin-right: auto; }

/* ── Setup grid (white-glove checklist) ───────────────────────────── */
.com-setup-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.com-setup-item {
  background: white; border: 1px solid var(--line); border-radius: 14px;
  padding: 24px 22px;
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.3s ease, border-color 0.3s ease;
}
.com-setup-item:hover {
  transform: translateY(-3px);
  border-color: var(--line-2);
  box-shadow: 0 14px 36px rgba(15, 46, 34, 0.09);
}
.com-setup-icon {
  width: 40px; height: 40px; border-radius: 11px;
  display: grid; place-items: center;
  background: linear-gradient(145deg, #0f2e22 0%, #1e5a3a 60%, #2a7a4a 100%);
  color: #8fd8a8; margin-bottom: 14px;
}
.com-setup-icon svg { width: 19px; height: 19px; }
.com-setup-item h3 { font-size: 15.5px; font-weight: 700; letter-spacing: -0.015em; color: var(--pine); }
.com-setup-item p { font-size: 13.5px; color: var(--muted); line-height: 1.55; margin-top: 7px; }

/* ── Timeline (first week) ────────────────────────────────────────── */
.com-timeline { position: relative; display: flex; flex-direction: column; gap: 18px; }
.com-timeline::before {
  content: ""; position: absolute; left: 118px; top: 18px; bottom: 18px; width: 2px;
  background: linear-gradient(180deg, var(--line) 0%, var(--pine-3) 70%, var(--accent) 100%);
  border-radius: 2px;
}
.com-tl-item { display: grid; grid-template-columns: 96px 44px 1fr; align-items: start; }
.com-tl-rail { display: contents; }
.com-tl-day {
  grid-column: 1;
  justify-self: end;
  font-size: 11px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--pine); background: var(--cream);
  border: 1px solid var(--line); border-radius: 999px; padding: 5px 12px;
  margin-top: 12px; white-space: nowrap;
}
.com-tl-dot {
  grid-column: 2; justify-self: center;
  width: 12px; height: 12px; border-radius: 50%;
  background: white; border: 3px solid var(--pine-3);
  margin-top: 17px; position: relative; z-index: 1;
}
.com-tl-card {
  grid-column: 3;
  background: white; border: 1px solid var(--line); border-radius: 14px;
  padding: 18px 22px; position: relative;
  transition: box-shadow 0.3s ease, border-color 0.3s ease;
}
.com-tl-card:hover { border-color: var(--line-2); box-shadow: 0 10px 28px rgba(15, 46, 34, 0.07); }
.com-tl-card h3 { font-size: 16px; font-weight: 700; letter-spacing: -0.015em; color: var(--pine); }
.com-tl-card p { font-size: 13.5px; color: var(--muted); line-height: 1.55; margin-top: 6px; }
.com-tl-item--final .com-tl-day { background: var(--pine); color: white; border-color: var(--pine); }
.com-tl-item--final .com-tl-dot { border-color: var(--accent); }
.com-tl-item--final .com-tl-card {
  border-color: rgba(201, 119, 59, 0.35);
  background: linear-gradient(180deg, white 0%, rgba(234, 242, 236, 0.35) 100%);
}
.com-tl-flag {
  display: inline-flex; align-items: center; gap: 6px;
  margin-top: 10px;
  font-size: 10.5px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase;
  color: white; background: var(--accent); border-radius: 999px; padding: 5px 11px;
}
.com-tl-flag svg { width: 12px; height: 12px; }

/* ── Final CTA ────────────────────────────────────────────────────── */
.com-cta { position: relative; overflow: hidden; background: var(--pine); color: white; padding: clamp(64px, 8vw, 104px) 0; }
.com-cta::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 60% 55% at 15% 0%, rgba(201, 119, 59, 0.22), transparent 62%),
    radial-gradient(ellipse 55% 50% at 90% 100%, rgba(143, 216, 168, 0.12), transparent 60%);
}
.com-cta::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0.05;
  background:
    linear-gradient(rgba(255, 255, 255, 0.5) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.5) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, black 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, black 30%, transparent 75%);
}
.com-cta-inner { position: relative; z-index: 1; max-width: 780px; margin: 0 auto; padding: 0 24px; text-align: center; }
.com-cta-pill {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 11px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase;
  color: white; background: rgba(255, 255, 255, 0.1); border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px; padding: 8px 16px; margin-bottom: 22px;
}
.com-cta-pill svg { width: 14px; height: 14px; color: #8fd8a8; }
.com-cta h2 { font-size: clamp(30px, 4.2vw, 44px); font-weight: 800; letter-spacing: -0.03em; line-height: 1.05; color: white; text-wrap: balance; }
.com-cta h2 i { font-style: normal; color: var(--accent); }
.com-cta p { font-size: 15.5px; line-height: 1.65; color: rgba(255, 255, 255, 0.82); max-width: 560px; margin: 18px auto 0; }
.com-cta-actions { display: flex; gap: 12px; justify-content: center; margin-top: 30px; flex-wrap: wrap; }
.com-cta .btn-primary { background: white; color: var(--pine); border-color: white; padding: 13px 24px; font-size: 14.5px; }
.com-cta .btn-primary:hover { background: #e8f0e8; }
.com-cta .btn-ghost { background: rgba(255, 255, 255, 0.08); color: white; border: 1.5px solid rgba(255, 255, 255, 0.45); padding: 13px 24px; font-size: 14.5px; }
.com-cta .btn-ghost:hover { background: rgba(255, 255, 255, 0.16); border-color: white; }

/* ── Responsive ───────────────────────────────────────────────────── */
@media (max-width: 980px) {
  .com-hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .com-hero-copy { text-align: center; display: flex; flex-direction: column; align-items: center; }
  .com-hero-sub { margin-left: auto; margin-right: auto; }
  .com-hero-actions, .com-hero-chips { justify-content: center; }
  .com-hero-visual { padding-bottom: 24px; }
  .com-hero-badge { right: 0; bottom: -26px; }
  .com-setup-grid { grid-template-columns: repeat(2, 1fr); }
  .com-stats { grid-template-columns: 1fr; }
  .com-stat { padding: 20px 24px; }
}

@media (max-width: 640px) {
  .com-hero { padding-top: 40px; }
  .com-hero-grid { padding: 0 16px; }
  .com-setup-card { transform: none; padding: 18px 18px 14px; }
  .com-setup-desc { display: none; }
  .com-hero-badge { position: static; margin: 14px auto 0; transform: none; }
  .com-hero-badge.is-on { transform: none; }
  .com-setup-grid { grid-template-columns: 1fr; }
  .com-timeline::before { left: 84px; }
  .com-tl-item { grid-template-columns: 64px 36px 1fr; }
  .com-tl-day { font-size: 9.5px; padding: 4px 9px; }
  .com-includes-inner { flex-direction: column; gap: 10px; }
}

/* ── Reduced motion ───────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  .com-setup-step { opacity: 1; transition: none; }
  .com-setup-step .com-setup-check { background: var(--pine); color: #8fd8a8; transition: none; }
  .com-setup-step--final .com-setup-check { background: var(--accent); color: white; }
  .com-setup-step .com-setup-day { color: var(--accent); }
  .com-setup-bar span { transition: none; }
  .com-hero-badge { opacity: 1; transform: rotate(-2deg); transition: none; }
}
