@font-face {
  font-family: "Barlow Condensed";
  font-style: italic;
  font-weight: 900;
  font-display: swap;
  src: url("barlow-condensed-black-italic.woff") format("woff");
}

/* LockIn Gym brand: night background, volt accent. The brand is dark-only. */
:root {
  --bg: #0e0f11;
  --surface: #16181b;
  --surface-alt: #121417;
  --text: #f2f3f4;
  --text-muted: #a4abb2;
  --border: #2a2e33;
  --primary: #d7ff3a;
  --primary-hover: #e6ff7a;
  --primary-text: #0e0f11;
  --danger: #ff6b81;
  --success-bg: #1d2410;
  --success-border: #8fae1f;
  --error-bg: #2c1519;
  --focus: #d7ff3a;
  --display: "Barlow Condensed", "Arial Narrow", sans-serif;
  color-scheme: dark;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, "Helvetica Neue", sans-serif;
  font-size: 16px;
  line-height: 1.55;
}

a { color: var(--primary); text-underline-offset: 2px; }
a:hover { color: var(--primary-hover); }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }

h1, h2, h3 { line-height: 1.2; margin: 0 0 12px; }
h1, h2 { font-family: var(--display); font-style: italic; font-weight: 900; text-transform: uppercase; line-height: 1.02; }
h1 { font-size: clamp(2.4rem, 1.6rem + 4vw, 4.25rem); }
h2 { font-size: clamp(1.9rem, 1.5rem + 1.8vw, 2.75rem); margin-bottom: 18px; }
h3 { font-size: 1.05rem; margin-bottom: 4px; }
p { margin: 0 0 12px; }

.wrap { max-width: 1040px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 680px; }
.muted { color: var(--text-muted); font-size: 0.925rem; }
.optional { color: var(--text-muted); font-weight: 400; }

/* Top bar */
.topbar { background: var(--surface); border-bottom: 1px solid var(--border); }
.topbar-inner { display: flex; align-items: center; justify-content: space-between; height: 56px; }
.brand { display: block; line-height: 0; }
.brand img { height: 34px; width: auto; }

/* Buttons */
.btn {
  display: inline-block;
  background: var(--primary);
  color: var(--primary-text);
  border: 1px solid var(--primary);
  border-radius: 8px;
  padding: 10px 16px;
  font: inherit;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 150ms ease, border-color 150ms ease;
}
.btn:hover { background: var(--primary-hover); border-color: var(--primary-hover); color: var(--primary-text); }
.btn:disabled { opacity: 0.6; cursor: progress; }
.btn-small { padding: 6px 12px; font-size: 0.9rem; }
.btn-large { padding: 14px 22px; font-size: 1.05rem; }
.btn-block { display: block; width: 100%; }

/* Hero */
.hero { background: var(--surface); border-bottom: 1px solid var(--border); padding: 56px 0 48px; }
.hero h1 { max-width: 16ch; }
/* Focus-frame brand element: four volt corner marks around the hero copy. */
.hero-frame {
  --c: var(--primary); --l: 28px; --t: 4px;
  padding: 28px 24px;
  background:
    linear-gradient(var(--c), var(--c)) top left / var(--l) var(--t) no-repeat,
    linear-gradient(var(--c), var(--c)) top left / var(--t) var(--l) no-repeat,
    linear-gradient(var(--c), var(--c)) top right / var(--l) var(--t) no-repeat,
    linear-gradient(var(--c), var(--c)) top right / var(--t) var(--l) no-repeat,
    linear-gradient(var(--c), var(--c)) bottom left / var(--l) var(--t) no-repeat,
    linear-gradient(var(--c), var(--c)) bottom left / var(--t) var(--l) no-repeat,
    linear-gradient(var(--c), var(--c)) bottom right / var(--l) var(--t) no-repeat,
    linear-gradient(var(--c), var(--c)) bottom right / var(--t) var(--l) no-repeat;
}
.hero-facts { font-size: 1.15rem; font-weight: 600; margin: 16px 0 24px; }
.hero-note { color: var(--text-muted); font-size: 0.9rem; margin-top: 20px; max-width: 60ch; }

/* Sections */
.section { padding: 48px 0; }
.section-alt { background: var(--surface-alt); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

.steps { list-style: none; counter-reset: step; padding: 0; margin: 0; display: grid; gap: 16px; grid-template-columns: repeat(3, 1fr); }
.steps li { counter-increment: step; background: var(--surface); border: 1px solid var(--border); border-radius: 8px; padding: 20px; }
.steps li::before {
  content: counter(step);
  display: inline-flex; align-items: center; justify-content: center;
  width: 28px; height: 28px; border-radius: 6px;
  background: var(--primary); color: var(--primary-text);
  font-weight: 700; margin-bottom: 12px;
}
.steps p { margin: 0; color: var(--text-muted); }

.audience { list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; grid-template-columns: repeat(2, 1fr); }
.audience li { background: var(--surface); border: 1px solid var(--border); border-radius: 8px; padding: 20px; }
.audience p { margin: 0; color: var(--text-muted); }

.equipment { padding: 0; margin: 0 0 16px; list-style: none; display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 24px; }
.equipment li { padding: 10px 0; border-bottom: 1px solid var(--border); }

.price { background: var(--surface); border: 1px solid var(--border); border-left: 4px solid var(--primary); border-radius: 8px; padding: 24px; max-width: 520px; }
.price-amount { font-family: var(--display); font-style: italic; font-weight: 900; font-size: 3.25rem; line-height: 1; margin: 0 0 8px; }
.price-amount span { font-size: 1.5rem; color: var(--text-muted); }
.price-text { font-size: 1.05rem; margin-bottom: 12px; }
.price-small { font-size: 0.8rem; color: var(--text-muted); margin: 0; }

/* Form */
.signup { background: var(--surface); border: 1px solid var(--border); border-radius: 8px; padding: 24px; margin-top: 24px; }
.field { margin: 0 0 20px; padding: 0; border: 0; min-width: 0; }
.field > label, .field > legend { display: block; font-weight: 600; margin-bottom: 6px; padding: 0; }
input[type="text"], input[type="email"], textarea {
  width: 100%;
  font: inherit;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 10px 12px;
}
input[type="text"]:focus, input[type="email"]:focus, textarea:focus { outline: 2px solid var(--focus); outline-offset: 0; border-color: var(--focus); }
textarea { resize: vertical; min-height: 96px; }
[aria-invalid="true"] { border-color: var(--danger) !important; }

.choices { display: grid; gap: 8px; }
.choices-row { grid-template-columns: repeat(3, 1fr); }
.choice {
  display: flex; align-items: center; gap: 10px;
  border: 1px solid var(--border); border-radius: 6px;
  padding: 10px 12px; cursor: pointer; font-weight: 400;
  transition: border-color 150ms ease, background-color 150ms ease;
}
.choice:hover { border-color: var(--primary); }
.choice:has(input:checked) { border-color: var(--primary); background: var(--surface-alt); }
.choice input { width: 18px; height: 18px; margin: 0; accent-color: var(--primary); flex: none; }
.consent { align-items: flex-start; border: 0; padding: 0; }
.consent:hover { border: 0; }
.consent:has(input:checked) { background: none; }
.consent input { margin-top: 3px; }

.char-count { font-size: 0.8rem; color: var(--text-muted); text-align: right; margin: 4px 0 0; }
.field-error { color: var(--danger); font-size: 0.875rem; margin: 6px 0 0; }
.field-error:empty { display: none; }
.form-error { background: var(--error-bg); border: 1px solid var(--danger); color: var(--text); border-radius: 6px; padding: 10px 12px; margin-bottom: 20px; }
.form-success { background: var(--success-bg); border: 1px solid var(--success-border); border-radius: 8px; padding: 20px; margin-top: 24px; }
.form-success p { margin: 0; }

/* Honeypot: off-screen, not display:none (some bots skip hidden inputs). */
.hp { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }

/* FAQ */
details { border-bottom: 1px solid var(--border); padding: 4px 0; }
details:first-of-type { border-top: 1px solid var(--border); }
summary { cursor: pointer; font-weight: 600; padding: 12px 0; }
details p { margin: 0 0 14px; color: var(--text-muted); }

/* Footer */
.footer { background: var(--surface); border-top: 1px solid var(--border); padding: 24px 0; font-size: 0.925rem; }
.footer p { margin: 0 0 6px; }
.footer a { overflow-wrap: anywhere; }

/* Legal / simple pages */
.legal { padding-top: 32px; padding-bottom: 48px; }
.legal h2 { font-size: 1.2rem; margin-top: 28px; margin-bottom: 8px; }
.legal ul { padding-left: 20px; margin: 0 0 12px; }
.simple { padding-top: 48px; padding-bottom: 48px; }

/* Admin */
.admin .wrap { max-width: 1280px; padding-top: 24px; padding-bottom: 48px; }
.admin-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 16px; }
.admin-head h1 { font-size: 1.5rem; margin: 0; }
.admin-total { font-size: 1.1rem; }
.admin-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-bottom: 16px; }
.admin-block { background: var(--surface); border: 1px solid var(--border); border-radius: 8px; padding: 16px; margin-bottom: 16px; }
.admin-block h2 { font-size: 1.05rem; margin-bottom: 8px; }
table { width: 100%; border-collapse: collapse; font-size: 0.925rem; }
th, td { text-align: left; padding: 8px; border-bottom: 1px solid var(--border); vertical-align: top; }
th { font-weight: 600; }
.num { text-align: right; font-variant-numeric: tabular-nums; }
.table-scroll { overflow-x: auto; }
.list td.note { max-width: 280px; white-space: pre-wrap; overflow-wrap: anywhere; }
.btn-danger { background: none; border: 1px solid var(--danger); color: var(--danger); border-radius: 6px; padding: 4px 8px; font: inherit; font-size: 0.85rem; cursor: pointer; }
.btn-danger:hover { background: var(--error-bg); }
.flash { background: var(--success-bg); border: 1px solid var(--success-border); border-radius: 6px; padding: 10px 12px; }

/* Mobile */
@media (max-width: 720px) {
  .hero { padding: 36px 0 32px; }
  .section { padding: 36px 0; }
  .steps, .audience { grid-template-columns: 1fr; }
  .equipment { grid-template-columns: 1fr; }
  .admin-grid { grid-template-columns: 1fr; }
  .signup { padding: 16px; }
  .price-amount { font-size: 2.6rem; }
  .hero-frame { padding: 22px 16px; --l: 22px; }
  .brand img { height: 28px; }
}
@media (max-width: 380px) {
  .topbar .btn-small { font-size: 0.8rem; padding: 6px 10px; }
}
.nw { white-space: nowrap; }
