/* ============================================================
   Personal Gym landing — page-specific components.
   Loaded after css/base.css + css/themes/personalgym.css. Uses theme
   tokens only; nothing here affects the other apps' pages.
   ============================================================ */

/* Language toggle rendered as links (one static page per language). */
a.lang-btn { text-decoration: none; }

/* Five nav links (one more than the other landings): keep them on one line
   and hand over to the logo + CTA earlier than the kernel's 720px cut. */
.nav-logo,
.nav-links a { white-space: nowrap; }
@media (max-width: 900px) {
  .nav-links { display: none; }
}

.pg-store-note {
  margin: -0.9rem 0 1.6rem;
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

/* ============ Highlights band ============ */
.pg-highlights-band {
  border-block: 1px solid var(--stroke);
  background: var(--color-surface);
}
.pg-highlights {
  list-style: none;
  margin: 0;
  padding: 1.75rem 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}
.pg-highlight {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  height: 100%;
  padding: 0.9rem;
  border-radius: 18px;
  text-decoration: none;
  color: inherit;
  transition: background var(--duration-fast) ease;
}
.pg-highlight:hover { background: var(--color-accent-soft); }
.pg-highlight:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 2px; }
.pg-highlight .bento-icon { flex-shrink: 0; margin: 0; }
.pg-highlight-text { display: flex; flex-direction: column; gap: 0.2rem; }
.pg-highlight-text strong {
  font-family: var(--font-display);
  font-size: 1rem;
  line-height: 1.25;
  color: var(--color-text);
}
.pg-highlight-text span {
  font-size: 0.88rem;
  line-height: 1.45;
  color: var(--color-text-muted);
}

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

/* ============ Feature rows ============ */
.pg-feature-section--alt { background: var(--color-surface); border-block: 1px solid var(--stroke); }

.pg-feature {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  align-items: center;
  gap: clamp(2rem, 5vw, 5rem);
}
.pg-feature--reverse .pg-feature-copy { order: 2; }
.pg-feature--reverse .pg-feature-visual { order: 1; }

.pg-feature-copy h2 { font-size: var(--text-h2); font-weight: 700; }
.pg-feature-copy .section-sub { max-width: 34rem; }

.pg-feature-visual { display: flex; justify-content: center; }
.pg-feature-visual .phone { width: clamp(220px, 24vw, 290px); }

.pg-checks {
  list-style: none;
  margin: 1.5rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.75rem;
}
.pg-checks li {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  font-weight: 500;
}
.pg-check {
  flex-shrink: 0;
  margin-top: 0.2rem;
  padding: 3px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--color-accent-soft);
  color: var(--color-accent-strong);
}

/* ============ Apple Watch (dark band) ============ */
.pg-watch-section {
  background:
    radial-gradient(90% 120% at 50% 0%, var(--color-cta-glow-2), transparent 60%),
    var(--color-ink);
  color: var(--color-text-on-ink);
}
.pg-watch-section .eyebrow {
  color: var(--color-coral);
  background: var(--color-coral-soft);
}
.pg-watch-section .section-sub { color: var(--color-text-on-ink-muted); }
.pg-watch-section .pg-check { background: var(--color-coral-soft); color: var(--color-coral); }

.pg-watch {
  position: relative;
  width: clamp(180px, 22vw, 260px);
  padding: 12px;
  border-radius: 30% / 25%;
  background: linear-gradient(145deg, #3a3e45, #16181c);
  box-shadow: 0 28px 60px rgba(0, 0, 0, 0.55), inset 0 0 0 1.5px rgba(255, 255, 255, 0.08);
}
/* Digital Crown and side button. */
.pg-watch::before,
.pg-watch::after {
  content: "";
  position: absolute;
  right: -5px;
  width: 6px;
  border-radius: 3px;
  background: #4a4e56;
}
.pg-watch::before { top: 24%; height: 16%; }
.pg-watch::after { top: 48%; height: 12%; }
.pg-watch img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 24% / 20%;
}

/* ============ More (card grid) ============ */
.pg-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.1rem;
}
.pg-card {
  background: var(--color-surface);
  border: 1px solid var(--stroke);
  border-radius: var(--radius-card);
  padding: 1.7rem 1.6rem;
  box-shadow: var(--shadow-card);
}
.pg-card h3 { font-size: 1.12rem; margin-bottom: 0.4em; }
.pg-card p { margin: 0; font-size: 0.95rem; color: var(--color-text-muted); }

/* ============ Screens tour (horizontal scroller) ============ */
.pg-tour {
  list-style: none;
  margin: 0;
  padding: 1rem max(1.25rem, calc((100vw - var(--container)) / 2)) 1.5rem;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: clamp(190px, 21vw, 240px);
  gap: clamp(1rem, 2vw, 1.75rem);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: max(1.25rem, calc((100vw - var(--container)) / 2));
  scrollbar-width: thin;
}
.pg-tour:focus-visible { outline: 2px solid var(--color-accent); outline-offset: -2px; }
.pg-tour-item { scroll-snap-align: start; }
.pg-tour .shot .phone { max-width: none; }
.pg-tour .shot figcaption { font-size: 0.9rem; line-height: 1.35; }

/* ============ Privacy ============ */
.pg-privacy {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}
.pg-privacy .section-head { margin-bottom: 0; }
.pg-text-link {
  font-weight: 600;
  color: var(--color-accent-strong);
  text-decoration: none;
}
.pg-text-link:hover { text-decoration: underline; }
.pg-text-link:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 3px; border-radius: 4px; }

.pg-privacy-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1rem;
}
.pg-privacy-item {
  display: flex;
  gap: 0.9rem;
  padding: 1.3rem 1.4rem;
  background: var(--color-surface);
  border: 1px solid var(--stroke);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
}
.pg-privacy-item h3 { font-size: 1.02rem; margin-bottom: 0.25em; }
.pg-privacy-item p { margin: 0; font-size: 0.93rem; color: var(--color-text-muted); }

/* ============ FAQ ============ */
.pg-faq-list {
  max-width: 48rem;
  margin-inline: auto;
  display: grid;
  gap: 0.75rem;
}
.pg-faq-item {
  background: var(--color-surface);
  border: 1px solid var(--stroke);
  border-radius: 16px;
  box-shadow: var(--shadow-card);
}
.pg-faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 1.35rem;
  cursor: pointer;
  list-style: none;
}
.pg-faq-item summary::-webkit-details-marker { display: none; }
.pg-faq-item summary::after {
  content: "+";
  flex-shrink: 0;
  font: 600 1.35rem/1 var(--font-body);
  color: var(--color-accent-strong);
  transition: transform var(--duration-fast) ease;
}
.pg-faq-item[open] summary::after { transform: rotate(45deg); }
.pg-faq-item summary:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 2px; border-radius: 16px; }
.pg-faq-item summary h3 { margin: 0; font-size: 1.02rem; letter-spacing: -0.01em; }
.pg-faq-item p {
  margin: 0;
  padding: 0 1.35rem 1.25rem;
  color: var(--color-text-muted);
  font-size: 0.95rem;
}

/* ============ CTA + footer extras ============ */
.pg-cta-note {
  margin: 1.25rem 0 0;
  font-size: 0.88rem;
  color: var(--color-text-on-ink-muted);
}
.pg-disclaimer {
  margin: 0;
  padding: 0 0 2rem;
  font-size: 0.78rem;
  line-height: 1.55;
  color: var(--color-text-on-ink-faint);
}

/* ============ Responsive ============ */
@media (max-width: 960px) {
  .pg-store-note { text-align: center; }
  .hero-copy .store-badges { justify-content: center; }
  .pg-highlights { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .pg-feature,
  .pg-privacy { grid-template-columns: 1fr; }
  .pg-feature-copy { text-align: center; }
  .pg-feature-copy .section-sub { margin-inline: auto; }
  .pg-checks { max-width: 30rem; margin-inline: auto; text-align: left; }
  .pg-feature--reverse .pg-feature-copy,
  .pg-feature--reverse .pg-feature-visual { order: 0; }

  .pg-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 720px) {
  .pg-cards { grid-template-columns: 1fr; }
}

@media (max-width: 420px) {
  .pg-highlights { grid-template-columns: 1fr; }
  .pg-watch::before, .pg-watch::after { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .pg-faq-item summary::after { transition: none; }
}
