/* GymDid landing page
   Palette taken from the app itself: slate blues from the dark theme,
   the pale blue of the day cards, the green of the "ready for the next set"
   band, and the red of the app icon. */

:root {
  --ink: #16232E;
  --ink-2: #22394A;
  --slate: #284357;
  --paper: #FFFFFF;
  --paper-2: #F2F7F9;
  --card: #D1E3F3;
  --green: #6FA22F;
  --green-soft: #DAECC4;
  --red: #D9291B;
  --red-dark: #B31F13;
  --text: #16232E;
  --text-soft: #4C6373;
  --text-invert: #F4F9FB;
  --text-invert-soft: #A8C2D2;
  --line: #DCE7EC;
  --radius: 16px;
  --radius-sm: 10px;
  --wrap: 1140px;
  --shadow: 0 18px 40px -22px rgba(16, 35, 46, .45);
  --shadow-lg: 0 30px 60px -30px rgba(16, 35, 46, .55);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3 { line-height: 1.15; letter-spacing: -.02em; margin: 0 0 .5em; }
h1 { font-size: clamp(2.1rem, 5.2vw, 3.4rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.3rem); font-weight: 750; }
p { margin: 0 0 1em; }

a { color: var(--red-dark); }

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

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 0 0 8px 0;
}
.skip:focus { left: 0; }

/* ---------- language switching ---------- */
html[data-lang="en"] .i-pl,
html[data-lang="pl"] .i-en { display: none; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .88);
  backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 20px; height: 66px; }
.brand {
  display: flex; align-items: center; gap: 10px;
  font-weight: 800; font-size: 1.15rem; color: var(--ink); text-decoration: none;
  letter-spacing: -.02em;
}
.brand img { border-radius: 9px; }
.nav { display: flex; gap: 20px; margin-left: auto; }
.nav a {
  color: var(--text-soft); text-decoration: none; font-size: .95rem; font-weight: 550;
  padding: 6px 0; border-bottom: 2px solid transparent;
}
.nav a:hover { color: var(--ink); border-bottom-color: var(--red); }

.lang-switch { display: flex; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; }
.lang-switch button {
  border: 0; background: transparent; cursor: pointer;
  font: inherit; font-size: .82rem; font-weight: 700; letter-spacing: .04em;
  color: var(--text-soft); padding: 7px 13px;
}
.lang-switch button[aria-pressed="true"] { background: var(--ink); color: #fff; }

/* ---------- hero ---------- */
.hero {
  background:
    radial-gradient(1000px 520px at 88% -12%, rgba(209, 227, 243, .95), transparent 62%),
    linear-gradient(180deg, var(--paper) 0%, var(--paper-2) 100%);
  padding: clamp(46px, 7vw, 92px) 0 clamp(40px, 6vw, 78px);
  overflow: hidden;
}
.hero-grid {
  display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr);
  gap: clamp(28px, 5vw, 62px); align-items: center;
}
.eyebrow {
  text-transform: uppercase; letter-spacing: .11em; font-size: .78rem; font-weight: 750;
  color: var(--red-dark); margin: 0 0 14px;
}
.lead { font-size: clamp(1.03rem, 1.5vw, 1.16rem); color: var(--text-soft); max-width: 46ch; }

.hero-shot { justify-self: center; }
.hero-shot img {
  width: min(310px, 78vw); border-radius: 26px;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(22, 35, 46, .1);
}

/* ---------- store buttons ---------- */
.stores { display: flex; flex-wrap: wrap; gap: 12px; margin: 26px 0 22px; }
.stores.center { justify-content: center; margin-bottom: 0; }
.store-btn {
  display: inline-flex; align-items: center; gap: 12px;
  background: var(--ink); color: #fff; text-decoration: none;
  padding: 11px 20px 11px 17px; border-radius: 12px;
  transition: transform .15s ease, background .15s ease;
}
.store-btn:hover { background: var(--ink-2); transform: translateY(-1px); }
.store-btn svg { flex: none; }
.store-btn-text { display: flex; flex-direction: column; line-height: 1.15; text-align: left; }
.store-btn-text small { font-size: .68rem; text-transform: uppercase; letter-spacing: .07em; opacity: .8; }
.store-btn-text strong { font-size: 1.06rem; font-weight: 650; letter-spacing: -.01em; }

/* App Store button state, driven by body[data-appstore] */
.appstore-live { display: none; }
body[data-appstore="live"] .appstore-live { display: block; }
body[data-appstore="live"] .appstore-pre { display: none; }
body[data-appstore="pending"] #btn-appstore {
  background: transparent; color: var(--text-soft);
  border: 1px dashed var(--line); pointer-events: none;
}

.trust { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 0; }
.trust li {
  font-size: .85rem; font-weight: 600; color: var(--text-soft);
  background: #fff; border: 1px solid var(--line);
  padding: 5px 12px; border-radius: 999px;
}

/* ---------- strip ---------- */
.strip { background: var(--ink); color: var(--text-invert); }
.strip-inner { padding: 26px 22px; }
.strip p {
  margin: 0; text-align: center; font-size: clamp(1rem, 1.9vw, 1.2rem);
  font-weight: 500; color: var(--text-invert-soft); max-width: 62ch; margin-inline: auto;
}

/* ---------- feature blocks ---------- */
.feature { padding: clamp(50px, 7vw, 92px) 0; }
.feature.alt { background: var(--paper-2); }
.feature-grid {
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  gap: clamp(28px, 5vw, 64px); align-items: center;
}
.feature-grid.reverse .feature-copy { order: 2; }
.feature-shot { justify-self: center; }
.feature-shot img {
  width: min(290px, 74vw); border-radius: 24px;
  box-shadow: var(--shadow); border: 1px solid rgba(22, 35, 46, .1);
}
.feature-copy p { color: var(--text-soft); max-width: 52ch; }
.note {
  font-size: .95rem; border-left: 3px solid var(--green);
  padding-left: 14px; margin-top: 20px;
}

.ticks { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 11px; }
.ticks li { position: relative; padding-left: 30px; color: var(--text); }
.ticks li::before {
  content: ""; position: absolute; left: 2px; top: .52em;
  width: 15px; height: 8px; border-left: 2.5px solid var(--green);
  border-bottom: 2.5px solid var(--green); transform: rotate(-45deg);
}

.tags { list-style: none; padding: 0; margin: 18px 0 0; display: flex; flex-wrap: wrap; gap: 9px; }
.tags li {
  background: var(--green-soft); color: #33500F; font-size: .88rem; font-weight: 600;
  padding: 6px 14px; border-radius: 999px;
}

/* ---------- video ---------- */
.video-section { background: var(--ink); color: var(--text-invert); padding: clamp(50px, 7vw, 88px) 0; }
.video-section h2 { text-align: center; }
.section-lead {
  text-align: center; color: var(--text-invert-soft); max-width: 58ch; margin: 0 auto 34px;
}
.video-card {
  max-width: 780px; margin: 0 auto; border-radius: var(--radius); overflow: hidden;
  background: linear-gradient(140deg, var(--slate), var(--ink-2));
  border: 1px solid rgba(168, 194, 210, .22); box-shadow: var(--shadow-lg);
}
.video-play {
  width: 100%; aspect-ratio: 16 / 9; border: 0; cursor: pointer;
  background: transparent; color: var(--text-invert); font: inherit;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px;
  padding: 24px; text-align: center;
}
.play-icon {
  width: 74px; height: 74px; border-radius: 50%;
  background: var(--red); position: relative;
  box-shadow: 0 10px 30px -8px rgba(217, 41, 27, .7);
  transition: transform .18s ease;
}
.play-icon::after {
  content: ""; position: absolute; left: 52%; top: 50%; transform: translate(-50%, -50%);
  border-left: 22px solid #fff; border-top: 13px solid transparent; border-bottom: 13px solid transparent;
}
.video-play:hover .play-icon { transform: scale(1.06); }
.video-label { font-size: 1.12rem; font-weight: 650; }
.video-hint { font-size: .85rem; color: var(--text-invert-soft); max-width: 42ch; }
.video-card iframe { width: 100%; aspect-ratio: 16 / 9; border: 0; display: block; }

/* ---------- faq ---------- */
.faq { padding: clamp(50px, 7vw, 92px) 0; background: var(--paper-2); }
.faq h2 { text-align: center; margin-bottom: 34px; }
.faq details {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm);
  margin: 0 auto 12px; max-width: 800px; padding: 4px 20px;
}
.faq summary {
  cursor: pointer; font-weight: 650; padding: 14px 0; list-style: none;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; font-size: 1.5rem; font-weight: 400; color: var(--text-soft); line-height: 1;
}
.faq details[open] summary::after { content: "\2212"; }
.faq details p { color: var(--text-soft); margin: 0 0 14px; }

/* ---------- cta ---------- */
.cta {
  background: linear-gradient(150deg, var(--ink) 0%, var(--slate) 100%);
  color: var(--text-invert); padding: clamp(52px, 7vw, 88px) 0;
}
.cta-inner { text-align: center; }
.cta p { color: var(--text-invert-soft); max-width: 46ch; margin: 0 auto 26px; }
.cta .store-btn { background: var(--red); }
.cta .store-btn:hover { background: var(--red-dark); }

/* ---------- footer ---------- */
.site-footer { background: var(--ink); color: var(--text-invert-soft); padding: 44px 0 30px; font-size: .92rem; }
.footer-inner {
  display: flex; flex-wrap: wrap; gap: 26px; justify-content: space-between; align-items: flex-start;
  padding-bottom: 26px; border-bottom: 1px solid rgba(168, 194, 210, .16);
}
.footer-brand { display: flex; gap: 13px; align-items: flex-start; max-width: 42ch; }
.footer-brand img { border-radius: 8px; }
.footer-brand strong { display: block; color: var(--text-invert); font-size: 1.05rem; }
.footer-links { display: flex; flex-wrap: wrap; gap: 20px; }
.footer-links a { color: var(--text-invert-soft); text-decoration: none; border-bottom: 1px solid transparent; }
.footer-links a:hover { color: var(--text-invert); border-bottom-color: var(--red); }
.footer-legal { padding-top: 22px; }
.footer-legal p { font-size: .84rem; line-height: 1.6; max-width: 90ch; }
.footer-legal strong { color: var(--text-invert); }
.copyright { opacity: .7; }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .nav { display: none; }
  .hero-grid,
  .feature-grid { grid-template-columns: 1fr; }
  .feature-grid.reverse .feature-copy { order: 0; }
  .hero-copy, .feature-copy { text-align: left; }
  .lead, .feature-copy p { max-width: none; }
  /* Headline first on a phone - the screenshot pushed the pitch below the fold. */
  .hero-shot img { width: min(250px, 62vw); }
  .feature-shot img { width: min(250px, 62vw); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

/* ---------- dark mode ---------- */
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #101B23;
    --paper-2: #16232E;
    --text: #EEF5F8;
    --text-soft: #A8C2D2;
    --line: #2A3F4E;
    --card: #22394A;
  }
  body { background: var(--paper); color: var(--text); }
  .site-header { background: rgba(16, 27, 35, .9); }
  .brand { color: var(--text); }
  .nav a:hover { color: var(--text); }
  .lang-switch button[aria-pressed="true"] { background: var(--red); }
  .hero {
    background:
      radial-gradient(1000px 520px at 88% -12%, rgba(40, 67, 87, .9), transparent 62%),
      linear-gradient(180deg, var(--paper) 0%, var(--paper-2) 100%);
  }
  .trust li { background: #16232E; }
  .store-btn { background: var(--red); }
  .store-btn:hover { background: var(--red-dark); }
  .faq details { background: #101B23; }
  .tags li { background: #2B4318; color: var(--green-soft); }
  a { color: #FF7A6B; }
}

/* ---------- document pages (privacy policy) ---------- */
.doc { padding: clamp(38px, 6vw, 72px) 0 clamp(50px, 7vw, 80px); background: var(--paper); }
.doc-wrap { max-width: 780px; }
.doc h1 { font-size: clamp(1.9rem, 4vw, 2.6rem); }
.doc h2 {
  font-size: clamp(1.15rem, 2vw, 1.35rem); margin-top: 2.2em;
  padding-top: 1.1em; border-top: 1px solid var(--line);
}
.doc p, .doc li { color: var(--text-soft); }
.doc ul { padding-left: 1.2em; margin: 0 0 1em; display: grid; gap: .5em; }
.doc a { font-weight: 550; }
.doc-meta { font-size: .9rem; color: var(--text-soft); margin-top: -.4em; }
.doc-summary {
  background: var(--green-soft); border-radius: var(--radius-sm);
  padding: 18px 22px; margin: 26px 0 8px;
}
.doc-summary p { margin: 0; color: #33500F; }
.doc-summary strong { color: #24390A; }
.doc-back { margin-top: 2.6em; }
.policy-link { margin-bottom: .4em; }
.policy-link a { color: var(--text-invert); text-decoration: none; border-bottom: 1px solid rgba(168,194,210,.4); }
.policy-link a:hover { border-bottom-color: var(--red); }

@media (prefers-color-scheme: dark) {
  .doc-summary { background: #2B4318; }
  .doc-summary p, .doc-summary strong { color: var(--green-soft); }
}

.contact-line { font-size: .86rem; margin-bottom: .6em; }
.contact-line a { color: var(--text-invert); text-decoration: none; border-bottom: 1px solid rgba(168, 194, 210, .4); }
.contact-line a:hover { border-bottom-color: var(--red); }
