/* ---------------------------------------------------------------
   Dumbbell marketing site
   Dark theme matching the app: near-black surfaces, red/orange
   accent gradient (from the app icon), green for "on track" states.
------------------------------------------------------------------ */

:root {
  --bg: #0a0a0c;
  --bg-raised: #141417;
  --bg-card: #17171b;
  --border: rgba(255, 255, 255, 0.08);
  --text: #f5f5f7;
  --text-secondary: rgba(245, 245, 247, 0.68);
  --text-tertiary: rgba(245, 245, 247, 0.45);
  --accent: #ff3b30;
  --accent-2: #ff7a1a;
  --gradient: linear-gradient(135deg, #ff9a1a 0%, #ff3d5c 55%, #e0146f 100%);
  --green: #34c759;
  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-sm: 10px;
  --max-width: 1120px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI",
    Roboto, Helvetica, Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
}

.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: auto;
}
.skip-link:focus {
  left: 12px;
  top: 12px;
  background: var(--bg-card);
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  z-index: 100;
}

h1,
h2,
h3 {
  font-family: var(--font);
  letter-spacing: -0.02em;
  margin: 0;
}

h2 {
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  font-weight: 800;
  text-align: center;
}

.section-sub {
  text-align: center;
  color: var(--text-secondary);
  max-width: 560px;
  margin: 12px auto 0;
  font-size: 1.05rem;
}

section {
  padding: 88px 0;
}

/* ---------------- Buttons ---------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.15s ease, opacity 0.15s ease;
  white-space: nowrap;
}
.btn:hover {
  transform: translateY(-1px);
}
.btn-primary {
  background: var(--gradient);
  color: #fff;
}
.btn-small {
  padding: 9px 18px;
  font-size: 0.92rem;
}

/* App Store badge */
.appstore-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #fff;
  color: #0a0a0c;
  border-radius: 12px;
  padding: 10px 18px;
  text-decoration: none;
  font-weight: 600;
  transition: transform 0.15s ease, opacity 0.15s ease;
}
.appstore-badge:hover {
  transform: translateY(-1px);
  opacity: 0.92;
}
.appstore-badge-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
  font-size: 1.05rem;
}
.appstore-badge-text small {
  font-size: 0.62rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: rgba(10, 10, 12, 0.65);
}
.appstore-badge-dark {
  background: var(--text);
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: saturate(180%) blur(20px);
  background: rgba(10, 10, 12, 0.72);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.1rem;
  text-decoration: none;
  color: var(--text);
}
.brand-mark {
  border-radius: 8px;
}

.site-nav {
  display: flex;
  gap: 28px;
  font-size: 0.95rem;
}
.site-nav a {
  text-decoration: none;
  color: var(--text-secondary);
  transition: color 0.15s ease;
}
.site-nav a:hover {
  color: var(--text);
}

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

.hero {
  position: relative;
  overflow: hidden;
  padding-top: 96px;
  padding-bottom: 40px;
}

.hero-glow {
  position: absolute;
  inset: -30% -10% auto -10%;
  height: 620px;
  background: radial-gradient(
    60% 60% at 50% 0%,
    rgba(255, 61, 92, 0.35),
    rgba(255, 122, 26, 0.12) 45%,
    transparent 70%
  );
  filter: blur(10px);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 48px;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--accent-2);
  margin: 0 0 14px;
}

.hero h1 {
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  font-weight: 800;
  line-height: 1.06;
}

.hero-sub {
  margin: 20px 0 30px;
  font-size: 1.12rem;
  color: var(--text-secondary);
  max-width: 480px;
}

.hero-ctas {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-note {
  font-size: 0.88rem;
  color: var(--text-tertiary);
}

.hero-art {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 520px;
}

.phone {
  position: absolute;
  width: 260px;
  border-radius: 34px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 40px 80px -20px rgba(0, 0, 0, 0.6);
}

.phone-back {
  transform: rotate(-6deg) translate(-58px, 18px) scale(0.94);
  opacity: 0.85;
  filter: brightness(0.75);
}

.phone-front {
  transform: rotate(4deg) translate(46px, -14px);
}

/* ---------------- Platform strip ---------------- */

.platforms {
  padding: 22px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--bg-raised);
}
.platforms-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 18px;
  font-size: 0.92rem;
  color: var(--text-secondary);
  text-align: center;
}
.platforms-inner strong {
  color: var(--text);
}
.platforms .dot {
  color: var(--text-tertiary);
}

/* ---------------- Features ---------------- */

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 56px;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 26px 24px;
}

.feature-icon {
  width: 46px;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  font-size: 1.35rem;
  background: color-mix(in srgb, var(--tint) 18%, transparent);
  margin-bottom: 16px;
}

.feature-card h3 {
  font-size: 1.08rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.feature-card p {
  color: var(--text-secondary);
  font-size: 0.96rem;
  margin: 0;
}

/* ---------------- Screenshots ---------------- */

.screenshots {
  overflow: hidden;
}

.screenshot-strip {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  padding: 48px 24px 12px;
  scroll-snap-type: x proximity;
  scrollbar-width: thin;
}
.screenshot-strip::-webkit-scrollbar {
  height: 8px;
}
.screenshot-strip::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 8px;
}

.screenshot-strip figure {
  flex: 0 0 auto;
  width: 236px;
  margin: 0;
  scroll-snap-align: center;
}

.screenshot-strip img {
  width: 100%;
  border-radius: 22px;
  border: 1px solid var(--border);
  box-shadow: 0 24px 48px -16px rgba(0, 0, 0, 0.55);
}

.screenshot-strip figcaption {
  margin-top: 14px;
  text-align: center;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

/* ---------------- Callout ---------------- */

.callout {
  background: var(--gradient);
}
.callout-inner {
  text-align: center;
}
.callout h2 {
  color: #fff;
}
.callout p {
  color: rgba(255, 255, 255, 0.9);
  max-width: 560px;
  margin: 14px auto 0;
  font-size: 1.05rem;
}

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

.faq .wrap {
  max-width: 720px;
}

.faq details {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 18px 20px;
  margin-top: 12px;
}
.faq summary {
  cursor: pointer;
  font-weight: 600;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.faq summary::after {
  content: "+";
  font-size: 1.4rem;
  color: var(--text-tertiary);
  transition: transform 0.2s ease;
  margin-left: 12px;
}
.faq details[open] summary::after {
  transform: rotate(45deg);
}
.faq details p {
  margin: 14px 0 0;
  color: var(--text-secondary);
}
.faq details p a {
  color: var(--accent-2);
  text-decoration: underline;
}

/* ---------------- Final CTA ---------------- */

.final-cta-inner {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}
.final-cta p {
  color: var(--text-secondary);
  margin: 0;
  font-size: 1.05rem;
}

/* ---------------- Footer ---------------- */

.site-footer {
  border-top: 1px solid var(--border);
  padding: 40px 0;
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
}
.footer-brand img {
  border-radius: 6px;
}
.footer-links {
  display: flex;
  gap: 20px;
  font-size: 0.9rem;
}
.footer-links a {
  text-decoration: none;
  color: var(--text-secondary);
}
.footer-links a:hover {
  color: var(--text);
}
.footer-copy {
  width: 100%;
  text-align: center;
  color: var(--text-tertiary);
  font-size: 0.82rem;
  margin: 8px 0 0;
}

/* ---------------- Responsive ---------------- */

@media (max-width: 900px) {
  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 860px) {
  .site-nav {
    display: none;
  }
  .hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero-sub {
    margin-left: auto;
    margin-right: auto;
  }
  .hero-ctas {
    justify-content: center;
  }
  .hero-art {
    min-height: 380px;
    margin-top: 24px;
  }
  .phone {
    width: 210px;
  }
  .phone-back {
    transform: rotate(-6deg) translate(-40px, 14px) scale(0.94);
  }
  .phone-front {
    transform: rotate(4deg) translate(34px, -10px);
  }
}

@media (max-width: 560px) {
  section {
    padding: 64px 0;
  }
  .feature-grid {
    grid-template-columns: 1fr;
  }
  .footer-inner {
    flex-direction: column;
    text-align: center;
  }
}

/* Simple pages (privacy/support) */
.page-content {
  max-width: 680px;
  margin: 0 auto;
  padding: 140px 24px 100px;
}
.page-content h1 {
  font-size: 2.2rem;
  margin-bottom: 8px;
}
.page-content .updated {
  color: var(--text-tertiary);
  font-size: 0.9rem;
  margin-bottom: 40px;
}
.page-content h2 {
  text-align: left;
  font-size: 1.3rem;
  margin-top: 36px;
  margin-bottom: 10px;
}
.page-content p,
.page-content li {
  color: var(--text-secondary);
  font-size: 1rem;
}
.page-content a {
  color: var(--accent-2);
}
