/* ============================================================
   RopeFlow landing — style.css
   Sections: tokens / base / nav / buttons / hero / phone /
             section heads / features / split layouts / hex badges /
             freestyle / watch badges / pricing / faq / closing CTA /
             footer / responsive
   ============================================================ */

/* ---------- tokens ---------- */
:root {
  --bg: #0A0B09; --surface: #151815; --surface2: #1E221D; --surface3: #272B26;
  --lime: #C8F231; --lime-dim: rgba(200, 242, 49, 0.15);
  --purple: #A78BFA; --pink: #F25FA8; --orange: #FF9F0A; --yellow: #FFD60A;
  --text: #FFFFFF; --text2: #9BA197; --text3: #5E635B; --on-accent: #0A0B09;
  --separator: rgba(255, 255, 255, 0.08);
  --radius: 20px; --radius-lg: 28px;
}

/* ---------- base ---------- */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg); color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text",
    "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased; line-height: 1.5;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

.container { max-width: 1080px; margin: 0 auto; padding: 0 24px; }
.section { padding: 96px 0; }

/* Reveal animations */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.visible { opacity: 1; transform: none; }
/* cards also animate border-color on hover, on top of the reveal transition */
.card.reveal, .price-card.reveal {
  transition: opacity 0.6s ease, transform 0.6s ease, border-color 0.25s ease;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal, .card.reveal, .price-card.reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(10, 11, 9, 0.72);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom-color: var(--separator);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
}
.nav-brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 17px; letter-spacing: -0.01em; }
.nav-brand img { width: 30px; height: 30px; border-radius: 8px; }
.nav-links { display: flex; align-items: center; gap: 32px; }
.nav-links a {
  font-size: 14px; color: var(--text2); font-weight: 500;
  transition: color 0.2s ease;
}
.nav-links a:hover { color: var(--text); }
.nav-cta {
  font-size: 13px; font-weight: 600; color: var(--on-accent);
  background: var(--lime); padding: 8px 16px; border-radius: 100px;
  transition: opacity 0.2s ease;
}
.nav-cta:hover { opacity: 0.85; }

/* ---------- buttons ---------- */
.btn-store {
  display: inline-flex; align-items: center; gap: 11px;
  background: #000; border: 1px solid var(--separator);
  border-radius: 100px; padding: 12px 26px 12px 22px;
  transition: border-color 0.25s ease, transform 0.25s ease;
}
.btn-store:hover { border-color: rgba(255, 255, 255, 0.24); transform: translateY(-1px); }
.btn-store svg { width: 26px; height: 26px; flex-shrink: 0; fill: var(--text); }
.btn-store-text { display: flex; flex-direction: column; text-align: left; line-height: 1.15; }
.btn-store-text small { font-size: 11px; font-weight: 400; color: var(--text2); letter-spacing: 0.01em; }
.btn-store-text strong { font-size: 19px; font-weight: 600; letter-spacing: -0.01em; color: var(--text); }

/* ---------- hero ---------- */
.hero { position: relative; padding: 168px 0 40px; overflow: hidden; }
.hero-grid {
  display: grid; grid-template-columns: 1.05fr 0.95fr;
  align-items: center; gap: 48px;
}
.eyebrow {
  font-size: 13px; font-weight: 600; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--lime); margin-bottom: 20px;
}
.hero h1 {
  font-size: clamp(44px, 6.5vw, 72px); font-weight: 700;
  letter-spacing: -0.035em; line-height: 1.02; margin-bottom: 24px;
}
.hero h1 .accent { color: var(--lime); }
.hero-sub {
  font-size: 18px; color: var(--text2); line-height: 1.6;
  max-width: 44ch; margin-bottom: 36px;
}
.hero-note { font-size: 13px; color: var(--text2); margin-top: 16px; }

/* phone column + glow */
.hero-visual { position: relative; display: flex; justify-content: center; }
.hero-glow {
  position: absolute; top: 50%; left: 50%;
  width: 760px; height: 760px; transform: translate(-50%, -46%);
  background: radial-gradient(circle,
    rgba(200, 242, 49, 0.17) 0%,
    rgba(200, 242, 49, 0.06) 38%,
    transparent 68%);
  pointer-events: none;
}

/* ---------- phone ---------- */
.phone {
  position: relative; width: 300px;
  background: #16181A;
  border: 10px solid var(--surface3);
  border-radius: 54px;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.06),
    0 30px 80px rgba(0, 0, 0, 0.55),
    0 8px 24px rgba(0, 0, 0, 0.4);
}
.phone img { width: 100%; border-radius: 44px; }
.phone::after {
  /* Dynamic Island */
  content: ""; position: absolute; top: 12px; left: 50%;
  transform: translateX(-50%);
  width: 84px; height: 25px; border-radius: 100px;
  background: #060706;
}

/* ---------- section heads ---------- */
.section-head { max-width: 620px; margin-bottom: 56px; }
.section-head .eyebrow { margin-bottom: 14px; }
.section-head h2, .split-copy h2 {
  font-size: clamp(30px, 4.2vw, 44px); font-weight: 700;
  letter-spacing: -0.03em; line-height: 1.08;
}
.section-sub {
  font-size: 17px; color: var(--text2); line-height: 1.6;
  margin-top: 16px; max-width: 52ch;
}
.soon-pill {
  display: inline-block; vertical-align: 0.5em;
  font-size: 11px; font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--lime);
  background: var(--lime-dim); border-radius: 100px;
  padding: 5px 12px; margin-left: 12px; white-space: nowrap;
}

/* ---------- features ---------- */
.features-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
}
.card {
  background: var(--surface); border: 1px solid var(--separator);
  border-radius: var(--radius-lg); padding: 28px;
}
.card:hover { border-color: rgba(255, 255, 255, 0.16); }
.features-grid .card:nth-child(2) { transition-delay: 0.06s; }
.features-grid .card:nth-child(3) { transition-delay: 0.12s; }
.features-grid .card:nth-child(5) { transition-delay: 0.06s; }
.features-grid .card:nth-child(6) { transition-delay: 0.12s; }
.card-icon {
  display: flex; align-items: center; justify-content: center;
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--lime-dim); color: var(--lime); margin-bottom: 20px;
}
.card-icon svg { width: 24px; height: 24px; }
.card h3 { font-size: 17px; font-weight: 600; letter-spacing: -0.015em; margin-bottom: 8px; }
.card p { font-size: 14px; color: var(--text2); line-height: 1.6; }

/* ---------- split layouts (training / progress / watch) ---------- */
.split {
  display: grid; grid-template-columns: 1fr 1fr;
  align-items: center; gap: 64px;
}
.split-visual { display: flex; justify-content: center; }
.split-copy .eyebrow { margin-bottom: 14px; }
.split-sub {
  font-size: 16px; color: var(--text2); line-height: 1.65;
  margin-top: 18px; max-width: 46ch;
}
.check-list { list-style: none; margin-top: 26px; display: flex; flex-direction: column; gap: 16px; }
.check-list li {
  position: relative; padding-left: 36px;
  font-size: 15px; color: var(--text2); line-height: 1.55;
}
.check-list li::before {
  content: ""; position: absolute; left: 0; top: 1px;
  width: 21px; height: 21px; border-radius: 50%;
  background: var(--lime-dim);
}
.check-list li::after {
  content: ""; position: absolute; left: 6px; top: 7px;
  width: 8px; height: 4.5px;
  border-left: 1.8px solid var(--lime); border-bottom: 1.8px solid var(--lime);
  transform: rotate(-45deg);
}

/* ---------- hex badges (progress decoration) ---------- */
.hex-row { display: flex; align-items: center; gap: 14px; margin-top: 34px; }
.hex {
  display: flex; align-items: center; justify-content: center;
  color: var(--on-accent); flex-shrink: 0;
  clip-path: polygon(50% 0%, 94% 25%, 94% 75%, 50% 100%, 6% 75%, 6% 25%);
}
.hex svg { width: 42%; height: 42%; }
.hex-sm { width: 46px; height: 51px; }
.hex-md { width: 56px; height: 62px; }
.hex-lg { width: 68px; height: 75px; }
.hex-lime { background: var(--lime); }
.hex-lime2 { background: var(--yellow); }
.hex-purple { background: var(--purple); }
.hex-pink { background: var(--pink); }
.hex-orange { background: var(--orange); }

/* ---------- freestyle ---------- */
.tier-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.tier-card {
  position: relative; overflow: hidden;
  background: var(--surface); border: 1px solid var(--separator);
  border-radius: var(--radius-lg); padding: 30px 28px 28px;
}
.tier-card::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px;
}
.tier-beginner::before { background: var(--lime); }
.tier-intermediate::before { background: var(--purple); }
.tier-advanced::before { background: var(--pink); }
.tier-grid .tier-card:nth-child(2) { transition-delay: 0.06s; }
.tier-grid .tier-card:nth-child(3) { transition-delay: 0.12s; }
.tier-card h3 { font-size: 19px; font-weight: 600; letter-spacing: -0.015em; }
.tier-beginner h3 { color: var(--lime); }
.tier-intermediate h3 { color: var(--purple); }
.tier-advanced h3 { color: var(--pink); }
.tier-count { font-size: 13px; color: var(--text2); margin: 4px 0 18px; }
.tier-chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; }
.tier-chips li {
  font-size: 12.5px; font-weight: 500; color: var(--text2);
  background: var(--surface2); border: 1px solid var(--separator);
  border-radius: 100px; padding: 6px 12px; white-space: nowrap;
}

/* ---------- watch badges ---------- */
.badge-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.badge-pill {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 600; color: var(--text);
  background: var(--surface2); border: 1px solid var(--separator);
  border-radius: 100px; padding: 9px 16px;
}
.badge-pill svg { width: 16px; height: 16px; color: var(--lime); }

/* ---------- pricing ---------- */
.free-card {
  display: grid; grid-template-columns: 240px 1fr; gap: 44px; align-items: center;
  background: var(--surface); border: 1px solid var(--separator);
  border-radius: var(--radius-lg); padding: 32px 36px; margin-bottom: 44px;
}
.price-plan {
  font-size: 13px; font-weight: 600; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--text2);
}
.price-value { font-size: 38px; font-weight: 700; letter-spacing: -0.03em; margin-top: 6px; }
.price-value span { font-size: 14px; font-weight: 500; letter-spacing: 0; color: var(--text2); }
.free-list { margin-top: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 14px 28px; }

.pro-strip { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 20px; }
.pro-strip-label {
  font-size: 12px; font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--lime); margin-right: 6px;
}

.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.price-card {
  position: relative;
  background: var(--surface); border: 1px solid var(--separator);
  border-radius: var(--radius-lg); padding: 30px 28px;
}
.price-card:hover { border-color: rgba(255, 255, 255, 0.16); }
.pricing-grid .price-card:nth-child(2) { transition-delay: 0.06s; }
.pricing-grid .price-card:nth-child(3) { transition-delay: 0.12s; }
.price-note { font-size: 13px; color: var(--text2); margin-top: 10px; }
.price-badge {
  position: absolute; top: 26px; right: 24px;
  font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--lime); background: var(--on-accent);
  border-radius: 100px; padding: 5px 12px;
}
.price-featured {
  background: var(--lime); border-color: var(--lime); color: var(--on-accent);
  scale: 1.045;
  box-shadow: 0 24px 64px rgba(200, 242, 49, 0.16), 0 6px 20px rgba(0, 0, 0, 0.3);
}
.price-featured:hover { border-color: var(--lime); }
.price-featured .price-plan,
.price-featured .price-value span,
.price-featured .price-note { color: color-mix(in srgb, var(--on-accent) 62%, transparent); }
.pricing-disclaimer { font-size: 12.5px; color: var(--text2); margin-top: 30px; max-width: 62ch; }

/* ---------- faq ---------- */
.faq-list { max-width: 720px; display: flex; flex-direction: column; gap: 12px; }
.faq-item {
  background: var(--surface); border: 1px solid var(--separator);
  border-radius: var(--radius);
  transition: border-color 0.2s ease;
}
.faq-item:hover, .faq-item[open] { border-color: rgba(255, 255, 255, 0.16); }
.faq-item summary {
  position: relative; cursor: pointer; list-style: none;
  padding: 19px 60px 19px 24px;
  font-size: 16px; font-weight: 600; letter-spacing: -0.01em; line-height: 1.4;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+"; position: absolute; right: 20px; top: 50%; translate: 0 -50%;
  width: 26px; height: 26px; display: grid; place-items: center;
  font-size: 21px; font-weight: 300; color: var(--text2); line-height: 1;
  transition: rotate 0.25s ease, color 0.2s ease;
}
.faq-item[open] summary::after { rotate: 45deg; color: var(--lime); }
.faq-item p {
  padding: 0 56px 20px 24px; margin-top: -4px;
  font-size: 15px; color: var(--text2); line-height: 1.65; max-width: 62ch;
}

/* ---------- closing CTA ---------- */
.cta-final {
  position: relative; overflow: hidden; text-align: center;
  padding: 140px 0 48px;
}
.cta-glow {
  position: absolute; top: 55%; left: 50%;
  width: 900px; height: 640px; transform: translate(-50%, -50%);
  background: radial-gradient(ellipse,
    rgba(200, 242, 49, 0.14) 0%,
    rgba(200, 242, 49, 0.05) 40%,
    transparent 68%);
  pointer-events: none;
}
.cta-final .container { position: relative; }
.cta-final h2 {
  font-size: clamp(38px, 5.4vw, 60px); font-weight: 700;
  letter-spacing: -0.035em; line-height: 1.05;
}
.cta-sub { font-size: 17px; color: var(--text2); margin: 18px 0 36px; }

/* ---------- footer ---------- */
.footer { border-top: 1px solid var(--separator); padding: 48px 0 56px; margin-top: 96px; }
.footer-inner { display: flex; flex-direction: column; gap: 24px; }
.footer-top { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; }
.footer-brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 15px; }
.footer-brand img { width: 26px; height: 26px; border-radius: 7px; }
.footer-links { display: flex; gap: 24px; }
.footer-links a { font-size: 13px; color: var(--text2); transition: color 0.2s ease; }
.footer-links a:hover { color: var(--text); }
.footer-bottom {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 8px;
  font-size: 12px; color: var(--text2);
}
.footer-bottom a { color: var(--text2); transition: color 0.2s ease; }
.footer-bottom a:hover { color: var(--text); }

/* ---------- legal & support pages ---------- */
.nav-back {
  font-size: 14px; font-weight: 500; color: var(--text2);
  transition: color 0.2s ease; white-space: nowrap;
}
.nav-back:hover { color: var(--text); }

.legal { max-width: 720px; margin: 0 auto; padding: 152px 24px 16px; }
.legal h1 {
  font-size: clamp(34px, 5vw, 48px); font-weight: 700;
  letter-spacing: -0.03em; line-height: 1.06;
}
.legal .last-updated,
.legal .page-tagline { font-size: 14px; color: var(--text2); margin-top: 14px; }
.legal .legal-intro { margin-top: 28px; }
.legal h2 {
  font-size: 22px; font-weight: 600; letter-spacing: -0.02em;
  line-height: 1.25; margin: 46px 0 14px;
}
.legal p { font-size: 15px; color: var(--text2); line-height: 1.7; margin-bottom: 14px; }
.legal ul { margin: 0 0 14px; padding-left: 22px; display: flex; flex-direction: column; gap: 10px; }
.legal li { font-size: 15px; color: var(--text2); line-height: 1.7; }
.legal li::marker { color: var(--lime); }
.legal strong { color: var(--text); font-weight: 600; }
.legal a { color: var(--lime); transition: opacity 0.2s ease; }
.legal a:hover { opacity: 0.8; }
.legal .faq-list { margin-top: 8px; }

.support-card {
  background: var(--surface); border: 1px solid var(--separator);
  border-radius: var(--radius-lg); padding: 34px 32px;
  margin: 36px 0 56px;
}
.support-card h2 { margin: 0 0 10px; font-size: 22px; font-weight: 600; letter-spacing: -0.02em; }
.support-card p { margin-bottom: 0; }
a.btn-mail {
  display: inline-flex; align-items: center; gap: 9px;
  background: var(--lime); color: var(--on-accent);
  font-size: 15px; font-weight: 600; letter-spacing: -0.01em;
  border-radius: 100px; padding: 13px 24px; margin-top: 22px;
  transition: opacity 0.2s ease, transform 0.25s ease;
}
a.btn-mail:hover { opacity: 0.85; transform: translateY(-1px); }
a.btn-mail svg { width: 18px; height: 18px; }

/* ---------- responsive ---------- */
@media (max-width: 860px) {
  .section { padding: 72px 0; }
  .nav-links a:not(.nav-cta) { display: none; }

  .hero { padding: 128px 0 24px; }
  .hero-grid { grid-template-columns: 1fr; gap: 56px; text-align: center; }
  .hero-sub { margin-left: auto; margin-right: auto; }
  .hero-visual { order: 2; }
  .hero-glow { width: 560px; height: 560px; }
  .phone { width: 264px; border-radius: 48px; }
  .phone img { border-radius: 38px; }

  .section-head { margin-bottom: 40px; }
  .features-grid { grid-template-columns: 1fr; gap: 16px; }
  .features-grid .card, .tier-grid .tier-card { transition-delay: 0s; }

  .split { grid-template-columns: 1fr; gap: 48px; }
  .split-copy { order: 1; }
  .split-visual { order: 2; }
  .split .phone { width: 264px; }
  .split .phone img { border-radius: 38px; }

  .tier-grid { grid-template-columns: 1fr; gap: 16px; }

  .soon-pill { vertical-align: 0.35em; margin-left: 10px; }

  .free-card { grid-template-columns: 1fr; gap: 22px; padding: 26px; margin-bottom: 36px; }
  .free-list { grid-template-columns: 1fr; gap: 14px; }
  .pricing-grid { grid-template-columns: 1fr; gap: 16px; }
  .pricing-grid .price-card { transition-delay: 0s; }
  .price-featured { order: -1; scale: none; }

  .cta-final { padding: 104px 0 24px; }
  .cta-glow { width: 560px; height: 500px; }

  .footer-top, .footer-bottom { flex-direction: column; justify-content: center; }
  .footer-inner { align-items: center; text-align: center; }

  .legal { padding-top: 116px; }
  .legal h2 { margin-top: 38px; }
  .support-card { padding: 26px 24px; margin: 30px 0 44px; }
}
