/* GymVault New Gym Setup — dark, red, Anton headings. Phone first. */
:root {
  --bg: #0A0B0D;
  --card: #15171B;
  --card-2: #1C1F24;
  --line: #2A2E35;
  --text: #F2F3F5;
  --muted: #A3A9B3;
  --red: #E63329;
  --red-dark: #C2261D;
  --ok: #4ADE80;
  --warn: #FBBF24;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 16px/1.5 Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
h1, h2, h3, .top-word, .eyebrow, .btn.primary {
  font-family: Anton, Impact, "Arial Narrow", sans-serif; font-weight: 400; letter-spacing: .01em; text-transform: uppercase;
}
a { color: #FF6B62; }
[hidden] { display: none !important; }

.top { position: sticky; top: 0; z-index: 10; background: rgba(10,11,13,.94); border-bottom: 1px solid var(--line); backdrop-filter: blur(6px); }
.top-inner { max-width: 760px; margin: 0 auto; padding: 10px 16px; display: flex; align-items: center; gap: 10px; }
.top-logo { width: 32px; height: 32px; }
.top-word { font-size: 22px; line-height: 1; }
.save-status { margin-left: auto; font-size: 13px; color: var(--muted); }
.save-status.ok { color: var(--ok); }
.save-status.pending { color: var(--warn); }
.save-status.bad { color: #FF6B62; font-weight: 600; }

.wrap { max-width: 760px; margin: 0 auto; padding: 20px 16px 64px; }
.brand-logo { width: 56px; height: 56px; margin-top: 24px; }
.loading { color: var(--muted); }

.intro { margin: 8px 0 20px; }
.eyebrow { color: var(--red); margin: 0; font-size: 16px; }
.intro h1 { font-size: clamp(34px, 9vw, 54px); line-height: 1.05; margin: 4px 0 12px; overflow-wrap: anywhere; }
.lead { font-size: 18px; }
.small-print { color: var(--muted); font-size: 14px; }
.sent-badge { display: inline-block; background: rgba(74,222,128,.1); border: 1px solid rgba(74,222,128,.4); color: var(--ok); border-radius: 10px; padding: 10px 14px; font-weight: 600; }

.toc-wrap { background: var(--card); border: 1px solid var(--line); border-radius: 12px; margin-bottom: 16px; }
.toc-wrap summary { padding: 12px 16px; cursor: pointer; font-weight: 600; }
.toc { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 12px 12px; }
.toc a { color: var(--text); text-decoration: none; background: var(--card-2); border: 1px solid var(--line); border-radius: 999px; padding: 6px 12px; font-size: 14px; }

.card { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 18px 16px 8px; margin: 0 0 16px; }
.card h2 { display: flex; align-items: center; gap: 10px; font-size: 26px; line-height: 1.1; margin: 0 0 16px; }
.num { flex: none; display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: var(--red); color: #fff; font-size: 18px; }
.num.club { font-size: 16px; }
.sub { margin: 18px 0 8px; font-size: 15px; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; font-family: Inter, system-ui, sans-serif; font-weight: 700; }
.sub.big { font-family: Anton, Impact, sans-serif; font-weight: 400; font-size: 20px; color: var(--text); letter-spacing: .01em; border-top: 1px solid var(--line); padding-top: 16px; }

.field { margin: 0 0 18px; border: 0; padding: 0; min-width: 0; }
.field.tight { margin-bottom: 12px; }
.label { display: block; font-weight: 600; margin: 0 0 6px; padding: 0; }
.hint { color: var(--muted); font-size: 13px; margin: 6px 0 0; }
.input {
  width: 100%; min-height: 48px; padding: 12px 14px; font: inherit; font-size: 16px; /* 16px stops iPhone zooming in */
  color: var(--text); background: var(--bg); border: 1px solid var(--line); border-radius: 10px; appearance: none;
}
textarea.input { resize: vertical; min-height: 80px; }
select.input { background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 20px) 21px, calc(100% - 15px) 21px; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 36px; }
.input:focus, .btn:focus-visible, .choice input:focus-visible + span { outline: 2px solid var(--red); outline-offset: 2px; }
.input:disabled { opacity: .35; }
input[type="date"].input, input[type="time"].input { min-width: 0; }

.choices { display: grid; gap: 8px; }
.choices.inline { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 320px; }
.choice { display: flex; align-items: center; gap: 12px; min-height: 48px; padding: 10px 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg); cursor: pointer; }
.choice input { width: 22px; height: 22px; margin: 0; accent-color: var(--red); flex: none; }
.choice:has(input:checked) { border-color: var(--red); background: rgba(230,51,41,.1); }
.choice.check.small { min-height: 40px; padding: 6px 10px; font-size: 14px; display: inline-flex; margin-top: 8px; }

.note { background: rgba(230,51,41,.08); border-left: 4px solid var(--red); border-radius: 8px; padding: 12px 14px; margin: 0 0 18px; font-size: 15px; }
.note.stripe ol { padding-left: 20px; margin: 10px 0; }
.note.stripe li { margin: 4px 0; }
.note.stripe p { margin: 8px 0 0; color: var(--muted); font-size: 14px; }

.colour-row { display: flex; gap: 10px; align-items: center; }
.swatch { width: 56px; height: 48px; padding: 2px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg); flex: none; cursor: pointer; }
.input.hex { max-width: 160px; text-transform: uppercase; font-family: ui-monospace, monospace; }
.swatch-line { display: inline-flex; align-items: center; gap: 8px; }
.swatch-dot { width: 18px; height: 18px; border-radius: 5px; border: 1px solid var(--line); display: inline-block; }

.file-input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.file-box { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.file-current { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; width: 100%; }
.file-tick { color: var(--ok); font-weight: 700; }
.file-name { overflow-wrap: anywhere; }
.file-size { color: var(--muted); font-size: 13px; }
.file-msg { margin: 6px 0 0; font-size: 14px; color: var(--muted); }
.file-msg:empty { display: none; }

.week { display: grid; gap: 8px; }
.day { background: var(--bg); border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; }
.day-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.day-head .choice.check.small { margin-top: 0; }
.day-times { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 8px; }
.day-times.off { opacity: .4; }
.mini { display: grid; gap: 4px; font-size: 13px; color: var(--muted); }
.day-warn { color: var(--warn); font-size: 13px; margin: 6px 0 0; }

.rows { display: grid; gap: 12px; margin-bottom: 12px; }
.row-card { background: var(--bg); border: 1px solid var(--line); border-radius: 12px; padding: 12px; }
.row-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.row-grid { display: grid; gap: 0 12px; }
.row-card .input { background-color: var(--card); }
@media (min-width: 620px) {
  .row-grid { grid-template-columns: 1fr 1fr; }
  .card { padding: 24px 24px 10px; }
}

.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 12px 20px; border-radius: 12px; font: 600 16px Inter, system-ui, sans-serif; cursor: pointer; border: 1px solid transparent; text-decoration: none; }
.btn.primary { background: var(--red); color: #fff; font-size: 22px; width: 100%; }
.btn.primary:hover { background: var(--red-dark); }
.btn.primary:disabled { opacity: .6; cursor: wait; }
.btn.ghost { background: transparent; color: var(--text); border-color: var(--line); }
.btn.ghost:hover { border-color: var(--muted); }
.link-btn { background: none; border: 0; color: #FF6B62; font: inherit; font-size: 14px; text-decoration: underline; cursor: pointer; padding: 6px 0; }

.actions { display: grid; gap: 12px; margin-top: 24px; }
.error { background: rgba(230,51,41,.15); border: 1px solid var(--red); color: #FFD2CF; border-radius: 10px; padding: 12px 14px; font-weight: 600; }
.later-msg { color: var(--ok); margin: 0; }

.summary { margin: 0 0 12px; }
.summary dt { color: var(--muted); font-size: 13px; margin-top: 12px; }
.summary dt.sum-sub { color: var(--text); font-weight: 700; font-size: 14px; text-transform: uppercase; letter-spacing: .04em; margin-top: 18px; }
.summary dd { margin: 2px 0 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.summary dd.empty { color: #5C626C; }
.summary dd.row-sum { margin-top: 6px; }
