/* ==========================================================================
   Anywhere Gains — styles
   Mobile-first. Breakpoints: 640 (small tablet), 800, 1000, 1100, 1200.
   ========================================================================== */

/* ---------- Tokens ---------- */
:root {
  --bg: #0b0b0c;
  --surface: #141416;
  --surface-raised: #1a1a1d;
  --line: #27272b;
  --text: #f5f5f4;
  --muted: #a3a3a8;
  --accent: #ff5a1f;
  --accent-hover: #ff7440;
  --on-accent: #0b0b0c;
  --danger: #f87171;

  /* Inter from Google Fonts (linked in index.html); system sans-serif if it can't load, e.g. offline */
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --r-sm: 10px;
  --r-md: 14px;
  --r-lg: 22px;
  --r-pill: 999px;

  --shell: 1120px;
  --gutter: 16px;
  --header-h: 68px;
}

/* ---------- Base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

* {
  margin: 0;
  padding: 0;
}

/* Component classes set display, which would otherwise override the hidden attribute */
[hidden] {
  display: none !important;
}

html {
  scroll-padding-top: calc(var(--header-h) + 12px);
}

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

h1,
h2,
h3 {
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.025em;
}

a {
  color: inherit;
  text-decoration: none;
}

ul,
ol {
  list-style: none;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.shell--narrow {
  max-width: 640px;
}

@media (min-width: 640px) {
  :root {
    --gutter: 24px;
  }
}

.sprite {
  display: none;
}

/* Icons: symbols carry only geometry; stroke styling lives here */
.ico {
  width: 26px;
  height: 26px;
  flex-shrink: 0;
  fill: none;
  stroke: var(--accent);
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.ico--sm {
  width: 18px;
  height: 18px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid transparent;
  border-radius: var(--r-pill);
  padding: 12px 22px;
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.15s, border-color 0.15s, color 0.15s;
}

.btn:disabled {
  opacity: 0.6;
  cursor: default;
}

.btn--primary {
  background: var(--accent);
  color: var(--on-accent);
}

.btn--primary:hover {
  background: var(--accent-hover);
}

.btn--ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--text);
}

.btn--ghost:hover {
  border-color: var(--muted);
}

.btn--dark {
  background: var(--bg);
  color: var(--text);
}

.btn--sm {
  padding: 8px 15px;
  font-size: 0.85rem;
}

.btn--lg {
  padding: 16px 26px;
  font-size: 1.05rem;
}

.btn--block {
  width: 100%;
}

.text-btn {
  background: none;
  border: 0;
  padding: 0;
  margin-left: 4px;
  color: var(--accent);
  font-weight: 700;
  cursor: pointer;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(11, 11, 12, 0.82);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: var(--header-h);
}

.brand {
  font-size: 1.1rem;
  font-weight: 700;
  white-space: nowrap;
}

/* Links need ~1000px: logged in, the bar also holds My workouts, Log out and the CTA */
.nav-menu {
  display: none;
}

.nav-menu a {
  color: var(--muted);
  font-size: 0.95rem;
  white-space: nowrap;
}

.nav-menu a:hover {
  color: var(--text);
}

/* Pushes the account buttons and CTA to the right edge */
.account {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
}

/* Only where there's room: logged in, the bar also holds My workouts, Log out and the CTA */
.account-email {
  display: none;
  max-width: 150px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--muted);
  font-size: 0.85rem;
}

/* Hidden on phones: no room, and the builder is already on the first screen */
.header-cta {
  display: none;
}

/* Narrow phones: logged in, the bar holds logo + My workouts + Log out */
@media (max-width: 479px) {
  .brand {
    font-size: 0.95rem;
    letter-spacing: -0.01em;
  }

  .site-nav,
  .account {
    gap: 6px;
  }

  .account .btn--sm {
    padding: 6px 10px;
    font-size: 0.8rem;
  }
}

@media (min-width: 800px) {
  .header-cta {
    display: inline-flex;
  }
}

@media (min-width: 1000px) {
  .nav-menu {
    display: flex;
    gap: 22px;
    margin-left: 20px;
  }
}

@media (min-width: 1200px) {
  .account-email {
    display: inline;
  }
}

/* ---------- Forms ---------- */
.stack-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
  text-align: left;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.field-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1.05rem;
  font-weight: 700;
}

.field-optional {
  font-weight: 400;
  color: var(--muted);
}

.field-note {
  margin-top: 6px;
  font-size: 0.85rem;
  color: var(--muted);
}

.input {
  width: 100%;
  padding: 14px 16px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  font-size: 1.05rem;
}

.input::placeholder {
  color: #6f6f75;
}

.input:focus {
  outline: none;
  border-color: var(--accent);
}

textarea.input {
  resize: vertical;
}

/* Native select with a drawn chevron */
.select {
  position: relative;
}

.select .input {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 46px;
  cursor: pointer;
}

.select::after {
  content: "";
  position: absolute;
  right: 18px;
  top: 50%;
  width: 9px;
  height: 9px;
  border: solid var(--muted);
  border-width: 0 2px 2px 0;
  transform: translateY(-65%) rotate(45deg);
  pointer-events: none;
}

/* Duration picker */
.segmented {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.duration-pill {
  padding: 12px 8px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  color: var(--muted);
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
}

.duration-pill.is-active {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--on-accent);
}

.form-message {
  overflow-wrap: anywhere;
  text-align: center;
  font-size: 0.93rem;
  font-weight: 700;
  color: var(--accent);
}

.form-message.is-error {
  color: var(--danger);
}

/* Honeypot: off-screen rather than display:none, since some bots skip hidden fields */
.trap {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* ---------- Dialogs ---------- */
.dialog-backdrop {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(0, 0, 0, 0.65);
}

.dialog {
  position: relative;
  width: 100%;
  max-width: 420px;
  max-height: 86vh;
  overflow-y: auto;
  padding: 30px 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
}

.dialog--wide {
  max-width: 580px;
}

/* Phones: My workouts opens as a full-screen page */
@media (max-width: 639px) {
  .dialog-backdrop:has(.dialog--wide) {
    padding: 0;
  }

  .dialog--wide {
    max-width: none;
    height: 100%;
    max-height: none;
    border: 0;
    border-radius: 0;
    padding-top: 22px;
    animation: sheet-up 0.22s ease-out;
  }
}

@keyframes sheet-up {
  from { transform: translateY(24px); opacity: 0; }
  to { transform: none; opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .dialog--wide {
    animation: none;
  }
}

.dialog-title {
  font-size: 1.45rem;
  margin: 0 40px 20px 0;
}

.dialog-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  background: var(--bg);
  border: 0;
  border-radius: 50%;
  font-size: 1.25rem;
  cursor: pointer;
}

/* "Continue with Google": white button per Google's sign-in branding */
.btn--google {
  gap: 10px;
  background: #fff;
  border-color: #dadce0;
  color: #1f1f1f;
}

.btn--google:hover {
  background: #f2f2f2;
}

.google-g {
  width: 18px;
  height: 18px;
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 18px 0;
  color: var(--muted);
  font-size: 0.85rem;
}

.auth-divider::before,
.auth-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}

.dialog-footnote {
  margin-top: 18px;
  text-align: center;
  font-size: 0.9rem;
  color: var(--muted);
}

/* Saved workouts (cards built in script.js) */
.saved-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: -6px 0 16px;
}

.saved-count {
  font-size: 0.88rem;
  color: var(--muted);
}

.saved-workouts-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  color: var(--muted);
}

.saved-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin: 0 0 16px;
}

.stat {
  display: flex;
  flex-direction: column-reverse;
  gap: 2px;
  padding: 12px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
}

.stat dt {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}

.stat dd {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text);
}

.saved-workout-card {
  background: var(--bg);
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: var(--r-md);
}

.saved-workout-summary {
  position: relative;
  padding: 14px 44px 14px 16px;
  cursor: pointer;
  list-style: none;
}

.saved-workout-summary::-webkit-details-marker {
  display: none;
}

/* Chevron: points down when closed, up when open */
.saved-workout-summary::after {
  content: "";
  position: absolute;
  top: 22px;
  right: 18px;
  width: 9px;
  height: 9px;
  border: solid var(--muted);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
  transition: transform 0.15s;
}

.saved-workout-card[open] .saved-workout-summary::after {
  transform: translateY(4px) rotate(-135deg);
}

.saved-workout-date {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--accent);
}

.saved-workout-title {
  margin: 4px 0 8px;
  font-size: 1.15rem;
  color: var(--text);
}

.saved-workout-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 8px;
}

.saved-workout-tag {
  padding: 3px 10px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--muted);
}

.saved-workout-facts {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--muted);
}

.saved-workout-exercises {
  display: grid;
  margin: 0 16px;
  padding-bottom: 14px;
  border-top: 1px solid var(--line);
}

.saved-exercise {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}

.saved-exercise:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.saved-exercise-name {
  display: block;
  font-weight: 600;
  color: var(--text);
}

.saved-exercise-detail {
  display: block;
  margin-top: 2px;
  font-size: 0.85rem;
  color: var(--muted);
}

.saved-exercise-weight {
  flex-shrink: 0;
  padding: 4px 10px;
  border-radius: var(--r-pill);
  background: rgba(255, 90, 31, 0.14);
  color: var(--accent);
  font-size: 0.88rem;
  font-weight: 700;
  white-space: nowrap;
}

/* ---------- Hero ---------- */
/* Sunset photo banner (Unsplash; cropped so the figure stands right of center).
   Phones: centered text over a darkened photo, figure pushed toward the right edge.
   Desktop: text left over the dark sky, figure visible on the right. */
.hero {
  display: flex;
  align-items: center;
  min-height: clamp(420px, 60vh, 640px);
  padding: 56px 0;
  text-align: center;
  background:
    linear-gradient(180deg, rgba(11, 11, 12, 0.35) 0%, rgba(11, 11, 12, 0.55) 70%, var(--bg) 100%),
    linear-gradient(rgba(11, 11, 12, 0.45), rgba(11, 11, 12, 0.45)),
    url("icons/hero-sunset-1200.jpg") 70% 40% / cover no-repeat;
}

.hero-copy {
  max-width: 560px;
  margin-inline: auto;
}

.hero-title {
  font-size: clamp(2rem, 1.2rem + 3.6vw, 3.4rem);
  margin-bottom: 16px;
}

.hero-title em {
  font-style: normal;
  color: var(--accent);
}

.hero-lede {
  margin-bottom: 28px;
  font-size: 1.1rem;
  color: #e4e4e7;
}

.hero-title,
.hero-lede {
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.55);
}

@media (min-width: 800px) {
  .hero {
    text-align: left;
    background:
      linear-gradient(90deg, rgba(11, 11, 12, 0.85) 0%, rgba(11, 11, 12, 0.5) 42%, rgba(11, 11, 12, 0) 68%),
      linear-gradient(180deg, rgba(11, 11, 12, 0) 70%, var(--bg) 100%),
      url("icons/hero-sunset-2400.jpg") center 8% / cover no-repeat;
  }

  .hero {
    min-height: clamp(460px, 70vh, 640px);
  }

  .hero-copy {
    margin-inline: 0;
  }
}

.builder-section {
  padding: 8px 0 64px;
  text-align: center;
}

@media (min-width: 640px) {
  .builder-section {
    padding-top: 40px;
  }
}

/* ---------- Workout builder ---------- */
/* Phones: no outer box, so fields and workout cards span the full width (minus the 16px gutter) */
.builder {
  width: 100%;
  max-width: 620px;
  margin: 0 auto;
}

.builder-title {
  font-size: clamp(1.7rem, 1.3rem + 1.5vw, 2.2rem);
  margin-bottom: 6px;
}

.builder-lede {
  margin-bottom: 26px;
  color: var(--muted);
}

@media (min-width: 640px) {
  .builder {
    padding: 38px 34px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    box-shadow: 0 30px 80px -40px rgba(255, 90, 31, 0.35);
  }
}

/* Results */
.workout-result-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin: 14px 0 24px;
}

.result-tag {
  padding: 6px 15px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--muted);
}

/* overflow-wrap: the note can quote what the person typed, including one long unbroken word */
.fallback-note {
  overflow-wrap: anywhere;
  margin-bottom: 18px;
  padding: 10px 14px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  font-size: 0.85rem;
  color: var(--muted);
}

.workout-list {
  counter-reset: move;
  display: flex;
  flex-direction: column;
  gap: 10px;
  text-align: left;
}

.workout-list > li {
  counter-increment: move;
  display: grid;
  grid-template-columns: 30px 1fr;
  gap: 14px;
  padding: 15px 16px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
}

.workout-list > li::before {
  content: counter(move);
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--on-accent);
  font-weight: 700;
  font-size: 0.95rem;
}

.workout-list > .rest-divider {
  counter-increment: none;
  display: block;
  padding: 0;
  margin: -2px 0;
  background: none;
  border: 0;
  text-align: center;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.workout-list > .rest-divider::before {
  content: none;
}

.exercise-main {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

/* Name, sets × reps, and demo link always stack — never sets beside the name */
.exercise-top-row {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.exercise-name {
  font-size: 1.05rem;
  font-weight: 700;
}

.exercise-sets {
  color: var(--muted);
  white-space: nowrap;
}

/* ---------- Weight logging ---------- */
.unit-toggle {
  display: inline-flex;
  padding: 3px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
}

.unit-btn {
  min-width: 44px;
  padding: 5px 12px;
  background: none;
  border: 0;
  border-radius: var(--r-pill);
  color: var(--muted);
  font-weight: 700;
  cursor: pointer;
}

.unit-btn[aria-checked="true"] {
  background: var(--accent);
  color: var(--on-accent);
}

.exercise-weight {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
  margin-top: 2px;
}

.weight-field {
  display: inline-flex;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
}

.weight-field:focus-within {
  border-color: var(--accent);
}

/* 16px font so iPhones don't zoom in when the box is tapped */
.weight-input {
  width: 72px;
  padding: 7px 4px 7px 10px;
  background: none;
  border: 0;
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  -moz-appearance: textfield;
}

.weight-input::-webkit-outer-spin-button,
.weight-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.weight-input:focus {
  outline: none;
}

.weight-input::placeholder {
  color: #6f6f75;
  font-weight: 400;
}

/* kg/lb dropdown inside the weight box */
.weight-unit-select {
  margin: 4px 4px 4px 0;
  padding: 5px 24px 5px 10px;
  background: var(--bg) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%23a3a3a8' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") right 8px center / 9px no-repeat;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text);
  font-size: 1rem;
  font-weight: 700;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
}

.weight-unit-select:focus {
  outline: none;
  border-color: var(--accent);
}

.weight-last {
  font-size: 0.85rem;
  color: var(--muted);
}

.exercise-video-link {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--accent);
}

/* Small orange play button */
.exercise-video-link::before {
  content: "";
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Ccircle cx='9' cy='9' r='9' fill='%23ff5a1f'/%3E%3Cpath d='M7 5.6v6.8L12.4 9Z' fill='%230b0b0c'/%3E%3C/svg%3E") center / contain no-repeat;
}

.exercise-video-link:hover {
  text-decoration: underline;
}

.save-status {
  margin-top: 16px;
}

.result-actions {
  display: grid;
  gap: 10px;
  margin-top: 26px;
}

/* ---------- Sections ---------- */
.section {
  padding: 64px 0;
}

.section--tinted {
  background: var(--surface);
  border-block: 1px solid var(--line);
}

.section-title {
  text-align: center;
  font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.2rem);
  margin-bottom: 36px;
}

.section-title--tight {
  margin-bottom: 12px;
}

.section-lede {
  max-width: 520px;
  margin: 0 auto 30px;
  text-align: center;
  color: var(--muted);
}

/* How it works */
.steps {
  display: grid;
  gap: 16px;
}

.step {
  padding: 26px 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
}

.step-num {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  margin-bottom: 16px;
  border: 1.5px solid var(--accent);
  border-radius: 50%;
  color: var(--accent);
  font-weight: 700;
}

.step h3 {
  font-size: 1.2rem;
  margin-bottom: 8px;
}

.step p {
  color: var(--muted);
}

@media (min-width: 800px) {
  .steps {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Features */
.tile-grid {
  display: grid;
  gap: 16px;
}

.tile {
  display: flex;
  gap: 16px;
  padding: 24px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
}

.tile h3 {
  font-size: 1.12rem;
  margin-bottom: 6px;
}

.tile p {
  color: var(--muted);
}

@media (min-width: 800px) {
  .tile-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Who it's for */
.audience {
  display: grid;
  gap: 12px;
}

.audience li {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  font-weight: 700;
}

/* Photo (Unsplash, Derick McKinney) beside the list on laptops, above it on phones */
.audience-layout {
  display: grid;
  gap: 20px;
}

.audience-photo {
  display: block;
  width: 100%;
  height: 260px;
  object-fit: cover;
  object-position: 50% 30%;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
}

@media (min-width: 800px) {
  .audience-layout {
    grid-template-columns: 400px minmax(0, 1fr);
    align-items: center;
    gap: 32px;
  }

  .audience-photo {
    height: 460px;
  }
}

/* FAQ */
.faq {
  display: grid;
  gap: 10px;
}

.faq details {
  padding: 18px 20px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
}

.faq summary {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "+";
  color: var(--accent);
  font-size: 1.3rem;
  line-height: 1;
}

.faq details[open] summary::after {
  content: "–";
}

.faq details p {
  margin-top: 10px;
  color: var(--muted);
}

/* Closing call to action */
.cta-band {
  padding: 56px 24px;
  background: var(--accent);
  border-radius: var(--r-lg);
  color: var(--on-accent);
  text-align: center;
}

.cta-band h2 {
  font-size: clamp(1.7rem, 1.2rem + 2vw, 2.5rem);
  margin-bottom: 8px;
}

.cta-band p {
  margin-bottom: 24px;
  opacity: 0.75;
}

/* Kettlebells photo (Unsplash, Alora Griffiths) under an orange tint so the dark text stays readable */
.cta-band--photo {
  padding-block: 72px;
  background:
    linear-gradient(rgba(255, 90, 31, 0.86), rgba(255, 90, 31, 0.86)),
    url("icons/cta-kettlebells-900.jpg") center 65% / cover no-repeat;
}

.cta-band--photo p {
  opacity: 0.85;
  font-weight: 500;
}

@media (min-width: 800px) {
  .cta-band--photo {
    padding-block: 96px;
    background:
      linear-gradient(rgba(255, 90, 31, 0.86), rgba(255, 90, 31, 0.86)),
      url("icons/cta-kettlebells-1800.jpg") center 65% / cover no-repeat;
  }
}

/* Suggest a feature */
.panel {
  padding: 26px 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
}

@media (min-width: 640px) {
  .panel {
    padding: 32px;
  }
}

/* ---------- Privacy page ---------- */
.legal h1 {
  font-size: clamp(1.9rem, 1.4rem + 2vw, 2.6rem);
  margin-bottom: 6px;
}

.legal h2 {
  font-size: 1.2rem;
  margin: 32px 0 10px;
}

.legal p,
.legal li {
  color: #d4d4d8;
}

.legal ul {
  list-style: disc;
  padding-left: 22px;
  display: grid;
  gap: 8px;
}

.legal a {
  color: var(--accent);
  text-decoration: underline;
}

.legal-updated {
  margin-bottom: 24px;
  font-size: 0.9rem;
  color: var(--muted) !important;
}

/* ---------- Footer ---------- */
.site-footer {
  padding: 28px 0 36px;
  border-top: 1px solid var(--line);
  text-align: center;
  font-size: 0.9rem;
  color: var(--muted);
}

