/* ============================================================
   Gymbie — gymbie.app
   ============================================================ */

:root {
  --blue: #2463EB;
  --blue-dark: #1a4fc7;
  --ink: #111318;
  --grey: #5c6370;
  --grey-light: #f5f7fb;
  --white: #ffffff;
  --radius: 14px;
  --shadow: 0 12px 40px rgba(17, 19, 24, 0.12);
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

/* Anchored sections land below the sticky header */
section[id], #get-the-app { scroll-margin-top: 84px; }

body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

.container {
  width: min(1200px, 92%);
  margin: 0 auto;
}

.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  clip: rect(0 0 0 0); overflow: hidden; white-space: nowrap;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 12px 26px;
  border: none;
  border-radius: 999px;
  font-family: var(--font);
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  transition: transform .15s ease, background .15s ease, box-shadow .15s ease;
}
.btn-primary {
  background: var(--blue);
  color: var(--white);
  box-shadow: 0 6px 20px rgba(36, 99, 235, .35);
}
.btn-primary:hover { background: var(--blue-dark); transform: translateY(-2px); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(17, 19, 24, .06);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 32px;
  padding: 16px 0;
}
.logo { width: 180px; height: auto; }
.main-nav {
  display: flex;
  gap: 28px;
  margin-left: auto;
}
.nav-link {
  color: var(--ink);
  text-decoration: none;
  font-weight: 700;
  font-size: 1rem;
  transition: color .15s ease;
}
.nav-link:hover, .nav-link.active { color: var(--blue); }
.header-cta { padding: 10px 22px; font-size: .95rem; }
.nav-toggle { display: none; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  color: var(--white);
}
.hero-bg {
  position: absolute;
  inset: 0;
  background: url('/assets/hero-bg.jpg') center 30% / cover no-repeat;
  z-index: -2;
}
.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgba(8, 10, 16, .72) 0%, rgba(8, 10, 16, .35) 55%, rgba(8, 10, 16, .55) 100%);
}
.hero-fade {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 90px;
  background: linear-gradient(to bottom, transparent, var(--white));
  pointer-events: none;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  align-items: center;
  gap: 40px;
  padding: 90px 0 120px;
}
.hero h1 {
  font-size: clamp(2.6rem, 6vw, 4.6rem);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -.02em;
  text-shadow: 0 4px 30px rgba(0, 0, 0, .4);
}
.hero-sub {
  margin-top: 22px;
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  font-weight: 600;
  max-width: 460px;
  text-shadow: 0 2px 16px rgba(0, 0, 0, .5);
}

/* Store badges */
.store-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}
.store-badge {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 20px;
  background: var(--ink);
  color: var(--white);
  border: 1.5px solid rgba(255, 255, 255, .25);
  border-radius: 12px;
  text-decoration: none;
  transition: transform .15s ease, background .15s ease;
}
.store-badge:hover { transform: translateY(-2px); background: #000; }
.store-badge svg { width: 28px; height: 28px; flex: none; }
.store-badge span {
  display: flex;
  flex-direction: column;
  font-weight: 700;
  font-size: 1.05rem;
  line-height: 1.15;
}
.store-badge small {
  font-size: .68rem;
  font-weight: 600;
  opacity: .8;
  text-transform: uppercase;
  letter-spacing: .04em;
}

/* ---------- Phone mockup + animation ---------- */
.hero-phone {
  display: flex;
  justify-content: center;
}
.phone {
  position: relative;
  width: min(320px, 72vw);
  aspect-ratio: 320 / 650;
  background: #16181d;
  border-radius: 44px;
  padding: 12px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .55), inset 0 0 0 2px rgba(255, 255, 255, .08);
  animation: phoneFloat 7s ease-in-out infinite;
}
.phone-notch {
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  width: 40%;
  height: 22px;
  background: #16181d;
  border-radius: 0 0 16px 16px;
  z-index: 2;
}
.phone-screen {
  width: 100%;
  height: 100%;
  border-radius: 34px;
  overflow: hidden;
  background: #f4f6fa;
}
/* ----- Live app UI demo inside the phone -----
   Matched to the real Gymbie app screen. */
.app-ui {
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
  background: #fff;
  font-family: 'Poppins', var(--font);
  font-size: 12px;
  line-height: 1.4;
  color: #16181d;
  overflow: hidden;
}
.app-scroll {
  flex: 1;
  padding: 42px 14px 10px;
  transition: transform 1.1s cubic-bezier(.45, 0, .2, 1);
  will-change: transform;
}
.app-topbar {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}
.app-topbar strong { font-size: 15px; font-weight: 700; letter-spacing: -.01em; }
.app-back {
  width: 30px; height: 30px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid #ececf1;
  display: grid; place-items: center;
  font-size: 15px;
  flex: none;
}
.app-minimize {
  margin-left: auto;
  color: #2463EB;
  font-weight: 600;
  font-size: 11.5px;
  display: flex;
  align-items: center;
  gap: 5px;
}
.ico-clock { width: 13px; height: 13px; color: #2463EB; }
.app-session {
  display: flex;
  flex-direction: column;
  gap: 3px;
  margin-bottom: 12px;
}
.app-session-label { color: #9aa0ad; font-size: 12px; }
.app-timer {
  font-weight: 700;
  font-size: 13.5px;
  font-variant-numeric: tabular-nums;
  display: flex;
  align-items: center;
  gap: 6px;
  color: #16181d;
}
.ico-stopwatch { width: 15px; height: 15px; }
.app-btn {
  border-radius: 14px;
  text-align: center;
  padding: 11px 10px;
  font-weight: 600;
  font-size: 12.5px;
  margin: 6px 0;
}
.app-btn-danger { background: #fef6f7; color: #ee2842; }
.app-btn-danger-soft { background: #fef6f7; color: #ee2842; margin-top: 12px; }
.app-btn-soft { background: #f4f7fe; color: #2463EB; }
.app-btn-primary {
  background: #2b50e5;
  color: #fff;
  border-radius: 999px;
}
.app-finish {
  margin: 8px 12px 14px;
  box-shadow: 0 4px 14px rgba(36, 99, 235, .3);
}
.ex-card {
  background: #fff;
  border: 1px solid #ececf1;
  border-radius: 16px;
  padding: 13px 13px 14px;
  margin: 12px 0;
}
.ex-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  font-size: 13px;
}
.ex-head strong { font-weight: 700; letter-spacing: -.01em; }
.ex-chev { width: 16px; height: 16px; color: #9aa0ad; flex: none; }
.ex-details {
  color: #2463EB;
  font-size: 11.5px;
  font-weight: 600;
  margin: 2px 0 4px;
  display: flex;
  align-items: center;
  gap: 4px;
}
.ex-details-chev { font-size: 14px; line-height: 1; }
.ex-notes {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #f4f4f6;
  border-radius: 12px;
  padding: 9px 12px;
  font-weight: 600;
  font-size: 12.5px;
  margin: 8px 0 12px;
}
.ex-notes-label { display: flex; align-items: center; gap: 8px; font-weight: 700; }
.ico-clipboard { width: 15px; height: 15px; color: #16181d; }
.ex-notes-plus { font-size: 16px; font-weight: 500; color: #16181d; }
.set-table { display: flex; flex-direction: column; gap: 8px; }
.set-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  gap: 10px;
  align-items: center;
  text-align: center;
}
.set-row-head { color: #9aa0ad; font-size: 12px; font-weight: 500; }
.set-row span {
  background: #f0f3fa;
  color: #6a7183;
  border-radius: 10px;
  padding: 7px 0;
  font-weight: 600;
  transition: background .4s ease, color .4s ease;
}
.set-row-head span { background: none; padding: 0; font-weight: 500; color: #9aa0ad; }
.set-row.done span { background: #2b50e5; color: #fff; }

/* Done column: tinted pill holding a small rounded-square checkbox */
.set-row .set-check {
  background: #f0f3fa;
  display: grid;
  place-items: center;
  padding: 5px 0;
}
.set-row .set-check i {
  font-style: normal;
  width: 18px; height: 18px;
  border-radius: 6px;
  background: #dde1ea;
  color: transparent;
  display: grid;
  place-items: center;
  font-size: 11px;
  line-height: 1;
  transition: background .3s ease, color .3s ease;
}
.set-row.done .set-check { background: #eaf7ee; }
.set-row.done .set-check i {
  background: #1e9e3e;
  color: #fff;
  animation: checkPop .45s cubic-bezier(.3, 1.6, .5, 1);
}
@keyframes checkPop {
  0% { transform: scale(.6); }
  100% { transform: scale(1); }
}

@keyframes phoneFloat {
  0%, 100% { transform: translateY(0) rotate(0.4deg); }
  50%      { transform: translateY(-14px) rotate(-0.4deg); }
}

/* ---------- Feature trio ---------- */
.features-trio { padding: 90px 0 70px; }
.trio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.trio-card {
  background: var(--grey-light);
  border-radius: var(--radius);
  padding: 38px 32px;
  transition: transform .2s ease, box-shadow .2s ease;
}
.trio-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.trio-icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: var(--blue);
  color: var(--white);
  display: grid;
  place-items: center;
  margin-bottom: 22px;
}
.trio-icon svg { width: 30px; height: 30px; }
.trio-card h2 {
  font-size: 1.35rem;
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 12px;
}
.trio-card p { color: var(--grey); }

/* ---------- Banner ---------- */
.banner {
  position: relative;
  padding: 130px 0;
  color: var(--white);
  overflow: hidden;
}
.banner-bg {
  position: absolute;
  inset: 0;
  background: url('/assets/section-bg.jpg') center / cover no-repeat;
  z-index: -1;
}
.banner-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(8, 10, 16, .6);
}
.banner-inner { position: relative; max-width: 620px; }
.banner h2 {
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: -.02em;
}
.banner p {
  margin-top: 18px;
  font-size: 1.2rem;
  font-weight: 600;
}

/* ---------- Features showcase ---------- */
.showcase { padding: 90px 0 70px; }
.show-row {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
  margin-bottom: 72px;
}
.show-row-flip .show-img { order: 2; }
.show-row-flip .show-copy { order: 1; }
.show-img img {
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  filter: drop-shadow(0 16px 26px rgba(17, 19, 24, .18));
}
.show-copy h3 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 900;
  letter-spacing: -.01em;
  line-height: 1.15;
  margin-bottom: 14px;
}
.show-copy p { color: var(--grey); font-size: 1.05rem; }
.show-copy ul {
  margin-top: 18px;
  list-style: none;
}
.show-copy li {
  position: relative;
  padding: 6px 0 6px 34px;
  font-weight: 600;
}
.show-copy li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  width: 20px;
  height: 20px;
  border-radius: 6px;
  background-color: var(--blue);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23fff' d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/%3E%3C/svg%3E");
  background-position: center;
  background-size: 13px;
  background-repeat: no-repeat;
}
.mini-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  margin-top: 8px;
}
.detail-card {
  border: 1.5px solid rgba(17, 19, 24, .08);
  border-radius: var(--radius);
  padding: 34px 32px;
  transition: border-color .2s ease, transform .2s ease;
}
.detail-card:hover { border-color: var(--blue); transform: translateY(-6px); }
.detail-card h3 {
  font-size: 1.35rem;
  font-weight: 800;
  margin-bottom: 12px;
}
.detail-card p { color: var(--grey); }

/* ---------- About ---------- */
.about { padding: 20px 0 90px; }
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}
.about-card {
  background: var(--ink);
  color: var(--white);
  border-radius: var(--radius);
  padding: 46px 40px;
}
.about-card h2 {
  font-size: 2rem;
  font-weight: 900;
  margin-bottom: 14px;
  color: var(--blue);
}
.about-card p { font-size: 1.08rem; opacity: .92; }

/* ---------- FAQ ---------- */
.faq { padding: 90px 0; }
.section-title {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 900;
  text-align: center;
  margin-bottom: 42px;
  letter-spacing: -.01em;
}
.faq-list { max-width: 760px; margin: 0 auto; }
.faq-item {
  border-bottom: 1.5px solid rgba(17, 19, 24, .1);
  padding: 6px 0;
}
.faq-item summary {
  cursor: pointer;
  font-weight: 800;
  font-size: 1.1rem;
  padding: 16px 8px;
  list-style: none;
  position: relative;
  padding-right: 40px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--blue);
  transition: transform .2s ease;
}
.faq-item[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq-item p { padding: 0 8px 20px; color: var(--grey); }

/* ---------- Landing pages ---------- */
.lp-hero {
  background: linear-gradient(135deg, #f4f7fd 0%, #e7eefc 100%);
  padding: 70px 0 64px;
  text-align: center;
}
.lp-hero .eyebrow {
  display: inline-block;
  font-weight: 700;
  font-size: .85rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 14px;
}
.lp-hero h1 {
  font-size: clamp(2.1rem, 5vw, 3.4rem);
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: -.02em;
  max-width: 900px;
  margin: 0 auto;
}
.lp-hero .lead {
  margin: 20px auto 0;
  max-width: 620px;
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  color: #444b59;
}
.lp-hero .store-badges { justify-content: center; margin-top: 30px; }
.lp-section { padding: 68px 0; }
.lp-section-alt { background: var(--grey-light); }
.lp-narrow { max-width: 760px; margin: 0 auto; }
.lp-narrow > p { color: var(--grey); font-size: 1.08rem; margin-bottom: 18px; }
.lp-cta {
  text-align: center;
  background: linear-gradient(135deg, var(--blue) 0%, #1741a6 100%);
  color: #fff;
  padding: 70px 0;
}
.lp-cta h2 { font-size: clamp(1.7rem, 4vw, 2.4rem); font-weight: 900; }
.lp-cta p { margin: 12px auto 0; max-width: 560px; opacity: .92; }
.lp-cta .store-badges { justify-content: center; margin-top: 28px; }
.lp-crosslinks {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
  margin-top: 26px;
}
.lp-crosslinks a {
  color: #fff;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--ink);
  color: var(--white);
  padding: 56px 0 40px;
}
.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  text-align: center;
}
.footer-logo { width: 160px; filter: brightness(0) invert(1); }
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 26px;
  justify-content: center;
}
.footer-nav a {
  color: rgba(255, 255, 255, .75);
  text-decoration: none;
  font-weight: 600;
  font-size: .95rem;
}
.footer-nav a:hover { color: var(--white); }
.footer-copy { color: rgba(255, 255, 255, .45); font-size: .88rem; }

/* ---------- Scroll reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .7s ease, transform .7s ease;
}
.reveal-delay { transition-delay: .15s; }
.reveal-delay2 { transition-delay: .3s; }
.reveal.visible { opacity: 1; transform: none; }

/* Respect reduced motion for decorative effects; the in-phone demo
   (timer + set ticks) is the product demo and stays on. */
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .phone { animation: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero { min-height: auto; }
  .hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 28px;
    padding: 48px 0 80px;
  }
  .hero-sub { margin-left: auto; margin-right: auto; }
  .store-badges { justify-content: center; }
  .hero-phone { margin-top: 8px; }
  .trio-grid { grid-template-columns: 1fr; gap: 18px; }
  .about-grid { grid-template-columns: 1fr; gap: 18px; }
  .features-trio { padding: 60px 0 44px; }
  .banner { padding: 90px 0; }
  .showcase { padding: 60px 0 50px; }
  .show-row {
    grid-template-columns: 1fr;
    gap: 24px;
    margin-bottom: 56px;
    text-align: left;
  }
  .show-row-flip .show-img { order: 1; }
  .show-row-flip .show-copy { order: 2; }
  .show-img img { max-width: 400px; }
  .mini-grid { grid-template-columns: 1fr; gap: 18px; }
  .about { padding: 0 0 60px; }
  .faq { padding: 60px 0; }
  .trio-card, .detail-card { padding: 30px 24px; }
  .about-card { padding: 34px 28px; }
}

@media (max-width: 760px) {
  .main-nav { display: none; }
  .header-inner { gap: 12px; padding: 12px 0; }
  /* Keep the conversion CTA visible on mobile, just more compact */
  .header-cta {
    display: inline-block;
    margin-left: auto;
    padding: 9px 16px;
    font-size: .88rem;
    white-space: nowrap;
  }
  .nav-toggle {
    display: flex;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
  }
  .nav-toggle span {
    width: 24px;
    height: 3px;
    background: var(--ink);
    border-radius: 2px;
    transition: transform .2s ease, opacity .2s ease;
  }
  .nav-toggle.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  .nav-toggle.open span:nth-child(2) { opacity: 0; }
  .nav-toggle.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
  .main-nav.open {
    display: flex;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    background: var(--white);
    padding: 12px 6% 16px;
    gap: 0;
    border-bottom: 1px solid rgba(17, 19, 24, .08);
    box-shadow: 0 16px 30px rgba(17, 19, 24, .1);
  }
  /* Comfortable 44px+ tap targets in the mobile menu */
  .main-nav.open .nav-link { padding: 13px 4px; border-bottom: 1px solid rgba(17, 19, 24, .05); }
  .main-nav.open .nav-link:last-child { border-bottom: none; }
  .logo { width: 132px; }
  section[id], #get-the-app { scroll-margin-top: 72px; }
}

@media (max-width: 480px) {
  .hero h1 { font-size: 2.5rem; }
  /* Slightly smaller in-phone UI so nothing wraps in the narrower frame */
  .app-ui { font-size: 11px; }
  .app-topbar { gap: 8px; }
  .app-topbar strong { font-size: 12.5px; white-space: nowrap; }
  .app-minimize { font-size: 10.5px; }
  .app-scroll { padding-top: 36px; }
  .hero-inner { padding: 36px 0 64px; }
  .phone { width: min(272px, 80vw); }
  .store-badges { gap: 10px; }
  .store-badge { padding: 9px 16px; flex: 1 1 45%; justify-content: center; max-width: 220px; }
  .banner { padding: 70px 0; }
  .banner p { font-size: 1.05rem; }
  .faq-item summary { font-size: 1rem; padding: 15px 36px 15px 4px; }
  .footer-nav { gap: 14px 20px; }
  .footer-logo { width: 130px; }
  .site-footer { padding: 40px 0 32px; }
}
