/* Styles for the redesigned TrueFlow /support landing page.
   Loaded alongside public-pages.css, which still supplies the base
   reset, footer, and shared typographic tokens. */

:root {
  --tf-ink: #111318;
  --tf-muted: #4B5563;
  --tf-subtle: #6B7280;
  --tf-border: #E7EAF0;
  --tf-bg: #F7F8FA;
  --tf-gold: #f5c842;
  --tf-gold-dark: #B8860B;
  --tf-cream-tint: #FBF3E3;
  --tf-radius-lg: 20px;
  --tf-radius-md: 14px;
  --tf-container: 1120px;
}

.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: -48px;
  background: var(--tf-ink);
  color: #fff;
  padding: 10px 16px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  z-index: 100;
  transition: top 0.15s;
}
.skip-link:focus { top: 12px; }

*:focus-visible {
  outline: 2px solid var(--tf-ink);
  outline-offset: 2px;
  border-radius: 4px;
}

.container {
  max-width: var(--tf-container);
  margin: 0 auto;
  padding: 0 20px;
}

/* ---------- Header / nav ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(247, 248, 250, 0.92);
  backdrop-filter: saturate(160%) blur(8px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s, box-shadow 0.2s;
}
html { scroll-padding-top: 37px; }
section[id] { scroll-margin-top: 37px; }
.site-header.is-scrolled {
  border-bottom-color: var(--tf-border);
  box-shadow: 0 1px 0 rgba(17, 19, 24, 0.02);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 14px;
  padding-bottom: 14px;
}

.brand-mark {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--tf-ink);
  text-decoration: none;
  flex-shrink: 0;
}
.brand-mark img { width: 26px; height: 26px; border-radius: 7px; display: block; }

.main-nav { display: none; }
.main-nav ul {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 28px;
}
.main-nav a {
  font-size: 14px;
  font-weight: 600;
  color: var(--tf-muted);
  text-decoration: none;
  transition: color 0.15s;
}
.main-nav a:hover, .main-nav a:focus-visible { color: var(--tf-ink); }

.btn-header-cta {
  display: inline-flex;
  align-items: center;
  padding: 10px 18px;
  border-radius: 12px;
  background: var(--tf-gold);
  color: var(--tf-ink);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: transform 0.12s, opacity 0.12s;
}
.btn-header-cta:hover { opacity: 0.9; }
.btn-header-cta:active { transform: scale(0.97); }

@media (min-width: 900px) {
  .main-nav { display: block; }
}

/* ---------- Sections & alternating light/dark bands ---------- */

.tf-section {
  padding: 56px 0;
  background: #fff;
}
.tf-section-dark { background: var(--tf-ink); }

.section-head {
  max-width: 560px;
  margin: 0 0 32px;
}
.section-head.centered { margin-left: auto; margin-right: auto; text-align: center; }

.section-head h2 {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--tf-ink);
  margin-bottom: 10px;
}
.section-head p {
  font-size: 15px;
  color: var(--tf-muted);
}
.tf-section-dark .section-head h2 { color: #fff; }
.tf-section-dark .section-head p { color: rgba(255,255,255,0.68); }
.tf-section-dark .client-feature-list strong { color: #fff; }
.tf-section-dark .client-feature-list p { color: rgba(255,255,255,0.6); }
.tf-section-dark .tile-icon-gold { background: rgba(245,200,66,0.14); color: var(--tf-gold); }

/* ---------- Hero ---------- */

.tf-hero {
  padding: 48px 0 40px;
  position: relative;
}
.hero-inner { text-align: center; position: relative; z-index: 1; }

.tf-hero-dark {
  background: var(--tf-ink);
  overflow: hidden;
}

.eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  color: var(--tf-subtle);
  letter-spacing: 0.03em;
  margin-bottom: 12px;
}
.tf-hero-dark .eyebrow { color: rgba(255,255,255,0.55); }

.tf-hero h1 {
  font-size: 34px;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.12;
  color: var(--tf-ink);
  margin-bottom: 16px;
}
.tf-hero-dark h1 { color: #fff; }
.tf-hero h1 .accent { color: var(--tf-gold); }

.tf-hero .lede {
  font-size: 16px;
  color: var(--tf-muted);
  max-width: 480px;
  margin: 0 auto 22px;
}
.tf-hero-dark .lede { color: rgba(255,255,255,0.68); }

.tf-hero .hero-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}
.tf-hero .hero-sub-line {
  display: block;
  font-size: 13px;
  color: var(--tf-subtle);
  font-weight: 600;
  margin-bottom: 20px;
}
.tf-hero-dark .hero-sub-line { color: rgba(255,255,255,0.5); }

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: 14px;
  background: transparent;
  color: var(--tf-ink);
  border: 1.5px solid var(--tf-border);
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  transition: border-color 0.15s, background 0.15s;
}
.btn-secondary:hover { background: #fff; border-color: #cfd4dc; }
.tf-hero-dark .btn-secondary {
  color: #fff;
  border-color: rgba(255,255,255,0.28);
}
.tf-hero-dark .btn-secondary:hover { background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.4); }

.hero-feature-strip {
  display: none;
}
.tf-hero-dark .hero-feature-strip strong { color: #fff; }
.tf-hero-dark .hero-feature-strip .desc { color: rgba(255,255,255,0.55); }
.tf-hero-dark .hero-feature-icon { background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.08); color: var(--tf-gold); }

/* Decorative glow behind the hero phones — anchored to hero-art so it never drifts */
.hero-art {
  position: relative;
  margin-top: 32px;
  display: flex;
  justify-content: center;
}
.hero-glow {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 130%;
  aspect-ratio: 1;
  background: radial-gradient(circle, rgba(245,200,66,0.32) 0%, rgba(245,200,66,0.12) 45%, rgba(245,200,66,0) 72%);
  filter: blur(10px);
  pointer-events: none;
  z-index: 0;
}
.hero-phones-img {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 360px;
  height: auto;
  transition: transform 0.35s ease;
}
.hero-art:hover .hero-phones-img { transform: translateY(-4px) scale(1.015); }

/* Decorative ECG line for the TrueFlow Pro section */
.tf-section-decor { position: relative; overflow: hidden; z-index: 0; }
.pro-ecg {
  position: absolute;
  left: 0;
  top: 50%;
  width: 100%;
  height: auto;
  transform: translateY(-50%);
  opacity: 0.22;
  pointer-events: none;
  z-index: -1;
}

@media (max-width: 620px) {
  .pro-ecg { opacity: 0.12; }
}

@media (min-width: 760px) {
  .tf-hero h1 { font-size: 46px; }
  .tf-hero .lede { font-size: 17px; }
}

@media (min-width: 1000px) {
  .hero-inner {
    display: grid;
    grid-template-columns: minmax(0, 500px) minmax(0, 1fr);
    align-items: center;
    gap: 40px;
    text-align: left;
  }
  .tf-hero .lede { margin-left: 0; max-width: 460px; }
  .tf-hero .hero-actions { flex-direction: row; justify-content: flex-start; }
  .tf-hero .hero-sub-line { text-align: left; }
  .hero-art { justify-content: flex-end; margin-top: 0; }
  .hero-phones-img { max-width: 460px; }

  .hero-feature-strip {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px 22px;
    margin-top: 8px;
    list-style: none;
    max-width: 460px;
  }
  .hero-feature-strip li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
  }
  .hero-feature-strip strong {
    display: block;
    font-size: 13.5px;
    font-weight: 700;
    color: var(--tf-ink);
    margin-bottom: 2px;
  }
  .hero-feature-strip .desc {
    font-size: 12.5px;
    color: var(--tf-muted);
    font-weight: 400;
  }
  .hero-feature-icon {
    flex-shrink: 0;
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: var(--tf-cream-tint);
    color: var(--tf-gold-dark);
    display: flex;
    align-items: center;
    justify-content: center;
  }
}

/* ---------- Client section (For Clients) ---------- */

.eyebrow-pink { color: #1B8F5C; }

.client-layout {
  display: grid;
  gap: 32px;
}

.client-feature-list {
  list-style: none;
  display: grid;
  gap: 22px;
}
.client-feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}
.client-feature-list strong {
  display: block;
  font-size: 16px;
  font-weight: 700;
  color: var(--tf-ink);
  margin-bottom: 3px;
}
.client-feature-list p {
  font-size: 13.5px;
  color: var(--tf-muted);
  line-height: 1.5;
}

.tile-icon-pink {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: #DDF3E7;
  color: #1B8F5C;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.showcase-blob-wrap {
  display: flex;
  justify-content: center;
}

@media (min-width: 900px) {
  .client-layout {
    grid-template-columns: minmax(0, 460px) minmax(0, 420px);
    align-items: start;
    justify-content: center;
    gap: 40px;
  }
  .client-feature-list { padding-top: 18px; }
  .showcase-blob-wrap {
    position: relative;
    z-index: 0;
    padding: 16px 0;
  }
  .showcase-blob-wrap::before {
    content: "";
    position: absolute;
    inset: 6% 10%;
    border-radius: 44px;
    z-index: -1;
  }
  .showcase-blob-wrap.blob-green::before { background: #CDEEDC; transform: rotate(-3deg); }
  .showcase-blob-wrap.blob-gold::before { background: #FBECC7; transform: rotate(3deg); }
  .showcase-blob-wrap .showcase-slide img {
    max-width: 280px;
    border-radius: 26px;
  }
}

/* ---------- Coach section (For Coaches) ---------- */

.eyebrow-gold { color: var(--tf-gold-dark); }

.coach-layout {
  display: grid;
  gap: 32px;
}

.tile-icon-gold {
  background: #FBECC7;
  color: var(--tf-gold-dark);
}

@media (min-width: 900px) {
  .coach-layout {
    grid-template-columns: minmax(0, 420px) minmax(0, 460px);
    align-items: start;
    justify-content: center;
    gap: 40px;
  }
  .coach-layout .showcase-blob-wrap { order: -1; }
  .coach-feature-list { padding-top: 18px; }
}

/* ---------- Showcase carousel ---------- */

.showcase {
  position: relative;
}

.showcase-viewport {
  overflow: hidden;
  border-radius: var(--tf-radius-lg);
}

.showcase-track {
  display: flex;
  scroll-snap-type: x mandatory;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.showcase-track::-webkit-scrollbar { display: none; }

.showcase-slide {
  flex: 0 0 100%;
  scroll-snap-align: center;
  display: flex;
  justify-content: center;
}
.showcase-slide img {
  width: 100%;
  max-width: 300px;
  height: auto;
  display: block;
}

.showcase-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 14px;
}

.showcase-arrow {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--tf-border);
  background: #fff;
  color: var(--tf-ink);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  box-shadow: 0 6px 16px -6px rgba(17,19,24,0.25);
}
.showcase-arrow[data-showcase-prev] { left: -6px; }
.showcase-arrow[data-showcase-next] { right: -6px; }
.showcase-arrow:hover { background: var(--tf-bg); }
.showcase-arrow:disabled { opacity: 0.35; cursor: default; }

.showcase-dots {
  display: flex;
  gap: 7px;
}
.showcase-dots button {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  border: none;
  background: var(--tf-border);
  padding: 0;
  cursor: pointer;
}
.showcase-dots button[aria-current="true"] {
  background: var(--tf-gold-dark);
  width: 18px;
  border-radius: 4px;
  transition: width 0.15s;
}

@media (min-width: 480px) {
  .showcase-arrow[data-showcase-prev] { left: 4px; }
  .showcase-arrow[data-showcase-next] { right: 4px; }
}

@media (min-width: 900px) {
  .showcase-slide img { max-width: 320px; }
}

/* ---------- How it works ---------- */

.steps-list {
  display: grid;
  gap: 20px;
  counter-reset: step;
}
.step-item {
  display: flex;
  gap: 14px;
}
.step-badge {
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--tf-ink);
  color: var(--tf-gold);
  font-size: 14px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}
.step-item h3 {
  font-size: 15px;
  font-weight: 700;
  color: var(--tf-ink);
  margin-bottom: 3px;
}
.step-item p {
  font-size: 13.5px;
  color: var(--tf-muted);
  line-height: 1.5;
}

@media (min-width: 900px) {
  .steps-list {
    grid-template-columns: repeat(4, 1fr);
  }
  .step-item { flex-direction: column; }
  .step-connector {
    display: block;
    height: 1px;
    background: var(--tf-border);
    margin: 17px 0 0;
    position: relative;
    top: -17px;
  }
}

/* ---------- Pricing ---------- */

.pricing-card {
  background: #fff;
  border: 1px solid var(--tf-border);
  border-radius: var(--tf-radius-lg);
  padding: 28px 24px;
  max-width: 420px;
  margin: 0 auto;
  text-align: center;
}
.pricing-card .plan-note {
  font-size: 15px;
  font-weight: 700;
  color: var(--tf-ink);
  margin-bottom: 16px;
}
.pricing-features {
  list-style: none;
  text-align: left;
  display: grid;
  gap: 10px;
  margin: 18px 0 22px;
}
.pricing-features li {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  font-size: 13.5px;
  color: var(--tf-ink);
  font-weight: 600;
}
.pricing-features li svg { flex-shrink: 0; margin-top: 2px; color: var(--tf-gold-dark); }

.pricing-fx-note {
  font-size: 12px;
  color: var(--tf-subtle);
  margin-top: 12px;
}

/* ---------- FAQ ---------- */

.faq-list { max-width: 720px; margin: 0 auto; }

.faq-item {
  border-bottom: 1px solid var(--tf-border);
}
.faq-item summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 2px;
  font-size: 14.5px;
  font-weight: 700;
  color: var(--tf-ink);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .faq-icon {
  flex-shrink: 0;
  width: 20px; height: 20px;
  border-radius: 50%;
  border: 1px solid var(--tf-border);
  display: flex; align-items: center; justify-content: center;
  transition: transform 0.15s;
}
.faq-item[open] summary .faq-icon { transform: rotate(45deg); }

.faq-item .faq-answer {
  padding: 0 2px 16px;
  font-size: 13.5px;
  color: var(--tf-muted);
  line-height: 1.6;
  max-width: 62ch;
}
.faq-item .faq-answer a { color: var(--tf-ink); font-weight: 700; text-decoration: underline; text-decoration-color: var(--tf-gold); }

.faq-more {
  text-align: center;
  margin-top: 18px;
}
.faq-more button {
  background: none;
  border: none;
  font-size: 13px;
  font-weight: 700;
  color: var(--tf-ink);
  text-decoration: underline;
  text-decoration-color: var(--tf-gold);
  cursor: pointer;
  padding: 6px;
}
.faq-extra[hidden] { display: none; }

.faq-help {
  text-align: center;
  margin-top: 36px;
  padding-top: 28px;
  border-top: 1px solid var(--tf-border);
}
.faq-help h3 { font-size: 15px; font-weight: 800; color: var(--tf-ink); margin-bottom: 6px; }
.faq-help p { font-size: 13.5px; color: var(--tf-muted); }

/* ---------- Get TrueFlow ---------- */

.get-trueflow {
  background: var(--tf-ink);
  color: #fff;
  text-align: center;
  padding: 56px 0;
}
/* clear the sticky header (~71px) when scrolled to via the Get TrueFlow buttons */
section.get-trueflow { scroll-margin-top: 72px; }
.get-trueflow h2 {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
}
.get-trueflow p {
  font-size: 14.5px;
  color: rgba(255,255,255,0.65);
  max-width: 440px;
  margin: 0 auto 26px;
}

.store-badges {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
@media (min-width: 520px) {
  .store-badges { flex-direction: row; justify-content: center; }
}

.store-badge {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.18);
  background: rgba(255,255,255,0.04);
  width: 250px;
  flex-shrink: 0;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s, background 0.15s;
}
.app-store-badge-link,
.google-play-badge-link {
  --badge-h: 48px; /* visible height of both badges */
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}
.app-store-badge-img {
  height: var(--badge-h);
  width: auto;
  display: block;
}
/* Google's PNG is 646x250 with 41px of transparent padding on every side
   (visible badge 564x168). Scale so the VISIBLE badge is --badge-h tall,
   then pull the padding back with negative margins so spacing matches. */
.google-play-badge-img {
  height: calc(var(--badge-h) * 250 / 168);
  width: auto;
  display: block;
  margin: calc(var(--badge-h) * -41 / 168);
}
.store-badge-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.store-badge .store-badge-label {
  display: block;
  font-size: 10.5px;
  color: rgba(255,255,255,0.55);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  white-space: nowrap;
}
.store-badge .store-badge-name {
  display: block;
  font-size: 14.5px;
  font-weight: 700;
  white-space: nowrap;
}
.store-badge svg { flex-shrink: 0; color: var(--tf-gold); }

/* ---------- Back to top ---------- */

.back-to-top {
  position: fixed;
  right: 16px;
  bottom: 16px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--tf-ink);
  color: #fff;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
  transition: opacity 0.18s, transform 0.18s;
  z-index: 30;
}
.back-to-top.is-visible {
  opacity: 0.9;
  transform: translateY(0);
  pointer-events: auto;
}
.back-to-top:hover { opacity: 1; }

@media (prefers-reduced-motion: reduce) {
  .back-to-top,
  .showcase-dots button,
  .site-header,
  .hero-phones-img { transition: none; }
  .hero-art:hover .hero-phones-img { transform: none; }
  html { scroll-behavior: auto; }
}
