/* HalfTri — landing page (index.html). Shared tokens live in style.css. */

:root {
  --ink: #06141d;
  --navy-2: #0a2638;
  --teal: #2fb8a6;
  --blue: #3d82f6;
  --orange: #f4a043;
  --purple: #9b7cf0;
  --phone-radius: 46px;
}

html[data-lang="es"] .en,
html[data-lang="en"] .es { display: none !important; }

.home { overflow-x: hidden; }

/* Nav over the dark hero */
.home .nav {
  position: fixed; left: 0; right: 0;
  background: transparent; border-bottom-color: transparent;
  backdrop-filter: none; -webkit-backdrop-filter: none;
  transition: background .3s ease, border-color .3s ease;
}
.home .nav .brand, .home .nav .nav-links a { color: #fff; }
.home .nav.scrolled {
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  border-bottom-color: var(--border);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
}
.home .nav.scrolled .brand { color: var(--text); }
.home .nav.scrolled .nav-links a { color: var(--text-2); }
.lang-toggle {
  border: 1px solid rgba(255,255,255,.25); background: rgba(255,255,255,.08);
  color: #fff; font: inherit; font-size: .85rem; font-weight: 600;
  padding: 5px 12px; border-radius: 999px; cursor: pointer;
}
.home .nav.scrolled .lang-toggle { color: var(--text); border-color: var(--border); background: var(--card); }

/* ── Hero ─────────────────────────────────────────────── */
.hero-x {
  position: relative; color: #fff; isolation: isolate;
  background:
    radial-gradient(60% 50% at 15% 10%, rgba(47,184,166,.35), transparent 70%),
    radial-gradient(50% 45% at 90% 20%, rgba(61,130,246,.35), transparent 70%),
    radial-gradient(60% 60% at 50% 110%, rgba(244,160,67,.18), transparent 70%),
    linear-gradient(180deg, var(--ink) 0%, var(--navy) 100%);
  padding: 120px 20px 0;
}
.hero-x::after { /* soft wave into the page background */
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 120px; z-index: -1;
  background: linear-gradient(180deg, transparent, var(--bg));
}
.hero-inner { max-width: 1100px; margin: 0 auto; text-align: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px; border-radius: 999px;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14);
  font-size: .85rem; font-weight: 600; letter-spacing: .02em;
}
.eyebrow i { width: 8px; height: 8px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 12px var(--teal); }
.hero-x h1 {
  font-size: clamp(2.6rem, 7.5vw, 5rem); line-height: 1.02; letter-spacing: -0.035em;
  margin: 22px auto 18px; max-width: 900px;
}
.grad {
  background: linear-gradient(90deg, #5ee0cf, #7fb2ff 50%, #ffc07a);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-x .lead { font-size: clamp(1.05rem, 2.2vw, 1.3rem); color: rgba(255,255,255,.78); max-width: 640px; margin: 0 auto; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 30px; }
.btn {
  display: inline-flex; align-items: center; gap: 10px; padding: 14px 22px; border-radius: 16px;
  font-weight: 650; font-size: 1rem; transition: transform .15s ease, opacity .15s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn-light { background: #fff; color: var(--ink); }
.btn-ghost { color: #fff; border: 1px solid rgba(255,255,255,.28); }
.btn svg { width: 20px; height: 20px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 22px; }
.chips span { font-size: .85rem; color: rgba(255,255,255,.75); }
.chips span + span::before { content: "·"; margin-right: 8px; color: rgba(255,255,255,.4); }

.hero-phones {
  position: relative; margin: 56px auto 0; height: clamp(420px, 62vw, 640px); max-width: 980px;
}
.hero-phones .phone { position: absolute; left: 50%; bottom: -60px; }
.hero-phones .p-center { width: clamp(220px, 30vw, 300px); transform: translateX(-50%); z-index: 3; }
.hero-phones .p-left { width: clamp(190px, 25vw, 260px); transform: translateX(-138%) rotate(-7deg); bottom: -110px; z-index: 2; }
.hero-phones .p-right { width: clamp(190px, 25vw, 260px); transform: translateX(38%) rotate(7deg); bottom: -110px; z-index: 2; }

/* ── Phone frame ──────────────────────────────────────── */
.phone {
  aspect-ratio: 640 / 1391; border-radius: var(--phone-radius);
  padding: 9px; background: linear-gradient(145deg, #2a3440, #0b1016);
  box-shadow: 0 40px 80px -20px rgba(0,0,0,.55), 0 0 0 1px rgba(255,255,255,.06) inset;
}
.phone img { width: 100%; height: 100%; object-fit: cover; object-position: top; border-radius: calc(var(--phone-radius) - 9px); display: block; background: #f2f4f6; }

/* ── Stats band ───────────────────────────────────────── */
.stats {
  position: relative; z-index: 5; max-width: 980px; margin: 90px auto 0; padding: 0 20px;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px;
}
.stat { background: var(--card); border: 1px solid var(--border); border-radius: 22px; padding: 22px 16px; text-align: center; box-shadow: 0 10px 30px -18px rgba(15,51,77,.35); }
.stat b { display: block; font-size: clamp(1.8rem, 4vw, 2.5rem); letter-spacing: -0.03em; line-height: 1.1; }
.stat span { color: var(--text-2); font-size: .92rem; }
.stat:nth-child(1) b { color: var(--blue); }
.stat:nth-child(2) b { color: var(--teal); }
.stat:nth-child(3) b { color: var(--orange); }
.stat:nth-child(4) b { color: var(--purple); }

/* ── Feature sections ─────────────────────────────────── */
.section { max-width: 1100px; margin: 0 auto; padding: clamp(72px, 10vw, 120px) 20px 0; }
.split { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: clamp(32px, 6vw, 80px); }
.split.reverse .copy { order: 2; }
.kicker { font-size: .85rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.k-teal { color: var(--teal); } .k-blue { color: var(--blue); } .k-orange { color: var(--orange); } .k-purple { color: var(--purple); }
.copy h2 { font-size: clamp(2rem, 4.5vw, 3rem); line-height: 1.06; letter-spacing: -0.03em; margin: 10px 0 16px; }
.copy > p { color: var(--text-2); font-size: 1.08rem; }
.points { list-style: none; margin-top: 22px; display: grid; gap: 12px; }
.points li { display: flex; gap: 12px; align-items: flex-start; color: var(--text-2); }
.points li i {
  flex: none; width: 34px; height: 34px; border-radius: 11px; display: grid; place-items: center;
  font-style: normal; font-size: 1.05rem; background: var(--accent-soft);
}
.points li strong { color: var(--text); display: block; }

.duo { position: relative; height: clamp(460px, 50vw, 620px); }
.duo .phone { position: absolute; width: 46%; max-width: 270px; }
.duo .a { left: 2%; top: 0; transform: rotate(-3deg); }
.duo .b { right: 2%; top: 12%; transform: rotate(3deg); }

/* Phase bar (pure CSS, mirrors the app) */
.phasebar { display: flex; gap: 4px; margin-top: 24px; height: 14px; }
.phasebar span { border-radius: 6px; }
.phasebar-legend { display: flex; justify-content: space-between; font-size: .8rem; color: var(--muted); margin-top: 8px; }

/* Exercise carousel */
.trio { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(16px, 2.5vw, 32px); margin-top: 48px; }
.trio figure { text-align: center; }
.trio .phone { width: min(100%, 280px); margin: 0 auto; }
.trio figcaption { margin-top: 18px; }
.trio figcaption b { display: block; font-size: 1.1rem; }
.trio figcaption span { color: var(--text-2); font-size: .95rem; }
.center-copy { text-align: center; max-width: 720px; margin: 0 auto; }
.center-copy h2 { font-size: clamp(2rem, 4.5vw, 3rem); line-height: 1.06; letter-spacing: -0.03em; margin: 10px 0 14px; }
.center-copy p { color: var(--text-2); font-size: 1.08rem; }

.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.tags span { padding: 7px 13px; border-radius: 999px; background: var(--card); border: 1px solid var(--border); font-size: .9rem; color: var(--text-2); }

/* ── Price / CTA ──────────────────────────────────────── */
.price {
  max-width: 1060px; margin: clamp(80px, 11vw, 130px) auto 0; padding: clamp(40px, 6vw, 64px) 24px;
  border-radius: 36px; text-align: center; color: #fff; position: relative; overflow: hidden;
  background:
    radial-gradient(50% 80% at 0% 0%, rgba(47,184,166,.35), transparent 70%),
    radial-gradient(50% 80% at 100% 100%, rgba(61,130,246,.35), transparent 70%),
    linear-gradient(135deg, var(--ink), var(--navy));
}
.price img.icon { width: 88px; height: 88px; border-radius: 22px; box-shadow: 0 16px 40px rgba(0,0,0,.4); }
.price h2 { font-size: clamp(2rem, 5vw, 3.2rem); letter-spacing: -0.03em; line-height: 1.05; margin: 22px 0 12px; }
.price p { color: rgba(255,255,255,.78); max-width: 560px; margin: 0 auto; font-size: 1.08rem; }
.price .hero-cta { margin-top: 26px; }
.checks { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 22px; margin-top: 26px; font-size: .95rem; color: rgba(255,255,255,.85); }
.checks span::before { content: "✓"; color: #5ee0cf; margin-right: 6px; font-weight: 700; }

/* ── FAQ ──────────────────────────────────────────────── */
.faq { max-width: 760px; margin: 0 auto; padding: clamp(72px, 10vw, 110px) 20px 80px; }
.faq h2 { text-align: center; font-size: clamp(1.8rem, 4vw, 2.4rem); letter-spacing: -0.02em; margin-bottom: 24px; }
.faq details { background: var(--card); border: 1px solid var(--border); border-radius: 18px; padding: 18px 20px; }
.faq details + details { margin-top: 10px; }
.faq summary { cursor: pointer; font-weight: 650; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--muted); font-size: 1.3rem; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--text-2); margin-top: 10px; }

.disclaimer { max-width: 960px; margin: 0 auto; padding: 0 20px 24px; color: var(--muted); font-size: .8rem; text-align: center; }

/* ── Reveal on scroll ─────────────────────────────────── */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn:hover { transform: none; }
}

/* ── Responsive ───────────────────────────────────────── */
@media (max-width: 860px) {
  .split { grid-template-columns: 1fr; }
  .trio { grid-template-columns: repeat(2, 1fr); row-gap: 48px; }
  .split.reverse .copy { order: 0; }
  .stats { grid-template-columns: repeat(2, 1fr); margin-top: 70px; }
  .duo { height: auto; aspect-ratio: 1 / 1.25; max-width: 460px; margin: 0 auto; width: 100%; }
}
@media (max-width: 620px) {
  .home .nav .nav-links a:not(.keep) { display: none; }
  .hero-x { padding-top: 104px; }
  .hero-phones { height: 440px; margin-top: 44px; }
  .hero-phones .p-center { width: 210px; }
  .hero-phones .p-left, .hero-phones .p-right { width: 170px; bottom: -90px; }
  .hero-phones .p-left { transform: translateX(-118%) rotate(-7deg); }
  .hero-phones .p-right { transform: translateX(18%) rotate(7deg); }
  .trio { grid-template-columns: repeat(2, 1fr); gap: 32px 14px; }
  .trio .phone { width: 100%; --phone-radius: 30px; padding: 6px; }
  .trio figcaption b { font-size: 1rem; }
  .trio figcaption span { font-size: .85rem; }
  .duo .a { left: 0; } .duo .b { right: 0; }
}
