/* Geesh product page. Gym Buddies. Light only: there is no dark
   variant and no preference query. Colours are the app's DESIGN.md light
   tokens. Coral and blue come only from the supplied backdrop. */
:root {
  color-scheme: light;
  --page: #FBFAFD;
  --tint: #F8F7FC;
  --surface: #FFFFFF;
  --raised: #F2EEFA;
  --border: #E7E0EF;
  --control: #8E7FA6;
  --ink: #171321;
  --muted: #746F80;
  --primary: #7C3AED;
  --primary-fill: #6D28D9;
  --success: #15803D;
  --caption: 12px;
  --small: 14px;
  --detail-shadow: 0 16px 32px rgba(23, 19, 33, 0.08);
  --phone-shadow: 0 20px 24px rgba(23, 19, 33, 0.14);
  --serif: ui-serif, "New York", "Iowan Old Style", "Charter", Georgia, "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --gutter: 16px;
  --max: 1200px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font: 17px/1.6 var(--sans);
  overflow-x: clip;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); }
:focus-visible { outline: 3px solid var(--primary); outline-offset: 3px; border-radius: 8px; }
h1, h2, h3 { margin: 0; color: var(--ink); }
h1, h2 { font-family: var(--serif); font-weight: 700; letter-spacing: -0.02em; }
h3 { font-size: 20px; line-height: 1.3; font-weight: 650; }
p { margin: 0; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
@media (min-width: 768px) { :root { --gutter: 40px; } }

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 30;
  background: var(--primary-fill); color: #fff; padding: 12px 16px; border-radius: 12px;
}
.skip:focus { top: 12px; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: rgba(251, 250, 253, 0.92);
  backdrop-filter: saturate(1.4) blur(12px);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid var(--border);
}
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; }
.brand {
  display: inline-flex; align-items: center; gap: 10px; min-height: 44px;
  color: var(--ink); text-decoration: none; font-weight: 800; font-size: 22px; letter-spacing: -0.01em;
}
.brand img { width: 40px; height: 40px; }
.site-nav { display: flex; align-items: center; gap: 4px; }
.site-nav a:not(.button) {
  color: var(--ink); text-decoration: none; font-weight: 600; font-size: 16px;
  padding: 10px 14px; border-radius: 10px; min-height: 44px; display: inline-flex; align-items: center;
}
.site-nav a:not(.button):hover { background: var(--raised); }
.menu-toggle {
  display: none; width: 44px; height: 44px; border: 1px solid var(--border); border-radius: 12px;
  background: var(--surface); cursor: pointer; align-items: center; justify-content: center;
}
.menu-icon, .menu-icon::before, .menu-icon::after {
  display: block; width: 18px; height: 2px; background: var(--ink); border-radius: 2px; position: relative;
}
.menu-icon::before, .menu-icon::after { content: ""; position: absolute; left: 0; }
.menu-icon::before { top: -6px; }
.menu-icon::after { top: 6px; }

@media (max-width: 767px) {
  .menu-toggle { display: inline-flex; }
  .site-nav {
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 2px;
    padding: 8px var(--gutter) 16px;
    background: var(--page); border-bottom: 1px solid var(--border);
    display: none;
  }
  .site-nav.is-open { display: flex; }
  .site-nav a:not(.button) { padding: 12px 8px; }
  .site-nav .button { margin-top: 8px; }
}

/* Buttons */
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 26px; border-radius: 14px;
  background: var(--primary-fill); color: #fff; text-decoration: none;
  font-weight: 650; font-size: 17px; border: 1px solid var(--primary-fill);
}
.button:hover { background: #5B21B6; border-color: #5B21B6; }
.button-small { min-height: 44px; padding: 0 18px; font-size: 16px; border-radius: 12px; }
/* Soon in the App Store: the button's look, but not a link, so nothing invites a
   tap that goes nowhere. Becomes the App Store link at launch. */
.button-soon, .button-soon:hover { background: var(--primary-fill); border-color: var(--primary-fill); cursor: default; }
.button-outline { background: var(--surface); color: var(--primary); border-color: var(--control); }
.button-outline:hover { background: var(--raised); border-color: var(--primary); }
.text-link { font-weight: 650; display: inline-flex; min-height: 44px; align-items: center; }

/* Hero */
.hero { position: relative; overflow: hidden; padding: 48px 0 72px; }
.hero-backdrop {
  position: absolute; z-index: 0; pointer-events: none;
  width: min(1100px, 120vw); right: -18%; top: 0; opacity: 0.95;
}
.hero-grid { position: relative; z-index: 1; display: grid; gap: 48px; align-items: center; }
.eyebrow {
  color: var(--primary); font-weight: 700; font-size: 13px; letter-spacing: 0.18em; text-transform: uppercase;
  margin-bottom: 18px;
}
h1 { font-size: clamp(44px, 5.2vw, 64px); line-height: 0.98; }
.lead { font-size: clamp(18px, 2.2vw, 22px); line-height: 1.5; color: var(--muted); margin-top: 22px; max-width: 34em; }
.actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }
.support-line { margin-top: 20px; color: var(--muted); font-size: 15px; }
.hero-phones { display: flex; justify-content: center; align-items: center; gap: 16px; min-width: 0; }
@media (min-width: 1024px) {
  .hero { padding: 72px 0 96px; }
  .hero-grid { grid-template-columns: 1.15fr 1fr; }
  .hero-backdrop { right: -6%; top: -4%; width: 820px; }
}
@media (max-width: 767px) {
  .actions .button { flex: 1 1 100%; }
}

/* Full screens share one transparent device frame. Focused app details
   share one card treatment, without repeating the adjacent page copy. */
figure { margin: 0; }
figure img { width: 100%; height: auto; object-fit: contain; }
.phone { width: 100%; max-width: 260px; }
.phone img { filter: drop-shadow(var(--phone-shadow)); }
.product-detail { width: 100%; max-width: 560px; justify-self: center; }
.product-detail img { border-radius: 24px; filter: drop-shadow(var(--detail-shadow)); }
.buddy-detail img, #selfies .product-detail img { background: var(--surface); }
.product-detail figcaption { margin: 18px 8px 0; color: var(--muted); font-size: var(--caption); line-height: 1.5; text-align: center; }
.buddy-detail { max-width: 440px; }
.hero-phones .hero-social { flex: 1.2 1 0; max-width: 310px; min-width: 0; }
.hero-phones .hero-workout { flex: 1 1 0; max-width: 260px; min-width: 0; margin-top: 40px; }
.hero-social figcaption { text-align: left; }
@media (max-width: 767px) {
  .hero-phones { gap: 8px; }
  .hero-phones .hero-workout { margin-top: 24px; }
  .hero-social figcaption { margin-left: 4px; margin-right: 0; }
  .product-detail img { border-radius: 18px; }
}

/* Sections */
.section { padding: 80px 0; }
.section[id], details[id] { scroll-margin-top: 96px; }
.section-tint { background: var(--tint); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
h2 { font-size: clamp(36px, 6vw, 60px); line-height: 1.04; max-width: 16em; }
.display { font-size: clamp(40px, 7vw, 72px); }
.note { margin-top: 28px; color: var(--muted); font-size: 15px; }
.note > .badge { margin-right: 8px; }
.badge {
  display: inline-flex; align-items: center; min-height: 26px; padding: 0 10px; border-radius: 999px;
  background: var(--raised); color: var(--primary); font: 700 12px/1 var(--sans);
  letter-spacing: 0.08em; text-transform: uppercase; vertical-align: middle;
}
h3 .badge { margin-left: 8px; }

.benefits { list-style: none; margin: 48px 0 0; padding: 0; display: grid; gap: 36px; }
.benefits li { display: grid; grid-template-columns: 72px 1fr; gap: 20px; align-items: start; }
.benefits h3 { font-family: var(--serif); font-size: 24px; font-weight: 700; }
.benefits p { margin-top: 8px; color: var(--muted); }
@media (min-width: 1024px) {
  .benefits { grid-template-columns: repeat(3, 1fr); gap: 0; }
  .benefits li { padding: 0 32px; border-left: 1px solid var(--border); }
  .benefits li:first-child { padding-left: 0; border-left: 0; }
}

.split { display: grid; gap: 48px; align-items: center; }
.split-copy p + p { margin-top: 18px; }
.split-copy > p:not(.lead):not(.note) { color: var(--muted); margin-top: 18px; max-width: 34em; }
@media (min-width: 1024px) {
  .split { grid-template-columns: 1.1fr 0.9fr; gap: 72px; }
  .split-reverse { grid-template-columns: 1fr 1fr; }
  /* Image first on wide screens, for rhythm; text stays first on a phone. */
  .split-flip { grid-template-columns: 1fr 1fr; }
  .split-flip > figure { order: -1; }
}

.features { display: grid; gap: 48px; margin-top: 48px; }
.feature figure { margin: 0 auto 28px; max-width: 260px; }
@media (max-width: 767px) {
  .section { padding: 64px 0; }
  .feature figure { max-width: 240px; }
  .feature { max-width: 520px; width: 100%; margin: 0 auto; }
}
.feature p { margin-top: 10px; color: var(--muted); }
@media (min-width: 768px) { .features { grid-template-columns: repeat(3, 1fr); gap: 32px; } }

/* An accessible editorial example, distinct from captured app screens. */
.permission-card {
  width: 100%; max-width: 560px; justify-self: center; padding: 32px;
  border: 1px solid var(--border); border-radius: 28px;
  background: var(--surface); box-shadow: var(--detail-shadow);
}
.connection-flow { display: grid; grid-template-columns: 1fr 40px 1.4fr; gap: 16px; align-items: center; padding-bottom: 28px; border-bottom: 1px solid var(--border); }
.connection-app { display: flex; align-items: center; gap: 10px; }
.connection-app img { width: 40px; height: 40px; flex: none; }
.connection-link { width: 40px; color: var(--control); }
.connection-assistant { display: flex; flex-direction: column; }
.connection-assistant span { font-size: var(--small); color: var(--muted); }
.permission-card figcaption { margin-top: 28px; color: var(--muted); font-size: var(--caption); font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; }
.permission-list { margin: 12px 0 0; }
.permission-list > div { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--border); }
.permission-list dt { font-size: var(--small); }
.permission-list dd { margin: 0; flex: none; font-size: var(--small); color: var(--muted); }
.permission-list .permission-allowed { color: var(--success); }
.permission-footnote { margin-top: 24px; color: var(--muted); font-size: var(--small); }
@media (max-width: 479px) {
  .permission-card { padding: 24px 20px; }
  .connection-flow { grid-template-columns: 1fr 28px 1.3fr; gap: 8px; }
  .connection-link { width: 28px; }
  .connection-app { gap: 6px; }
  .connection-app img { width: 32px; height: 32px; }
  .connection-assistant strong { font-size: var(--small); }
}

.plans { display: grid; gap: 20px; margin-top: 44px; }
.plan { background: var(--surface); border: 1px solid var(--border); border-radius: 24px; padding: 28px; }
.plan h3 { font-family: var(--serif); font-size: 28px; font-weight: 700; }
.plan p { margin-top: 12px; color: var(--muted); }
.plan-premium { border-color: var(--control); box-shadow: 0 18px 48px rgba(109, 40, 217, 0.08); }
@media (min-width: 768px) { .plans { grid-template-columns: 1fr 1fr; } }

.narrow { max-width: 860px; }
.faq { margin-top: 36px; border-top: 1px solid var(--border); }
.faq details { border-bottom: 1px solid var(--border); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  min-height: 64px; padding: 14px 0; font-weight: 650; font-size: 19px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; width: 12px; height: 12px;
  border-right: 2px solid var(--primary); border-bottom: 2px solid var(--primary);
  transform: rotate(45deg) translateY(-3px);
}
.faq details[open] summary::after { transform: rotate(-135deg) translateY(-3px); }
.faq details p { padding: 0 0 20px; color: var(--muted); max-width: 40em; }
@media (prefers-reduced-motion: no-preference) { .faq summary::after { transition: transform 0.2s ease; } }

.closing { padding: 96px 0; text-align: center; }
.closing h2 { margin: 0 auto 36px; max-width: 18em; font-size: clamp(32px, 5vw, 52px); }

/* Footer, light like the rest */
.site-footer { border-top: 1px solid var(--border); background: var(--tint); padding: 28px 0; }
.footer-row { display: flex; flex-wrap: wrap; gap: 16px 32px; align-items: center; justify-content: space-between; }
.footer-brand { display: inline-flex; align-items: center; gap: 10px; color: var(--muted); font-size: 15px; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 4px 8px; }
.site-footer nav a {
  color: var(--ink); text-decoration: none; font-size: 15px; font-weight: 600;
  min-height: 44px; display: inline-flex; align-items: center; padding: 0 8px; border-radius: 8px;
}
.site-footer nav a:hover { background: var(--raised); }
