/* Fit N Shapes public site. Palette from the Android app: navy #1B2A6B, energy orange #FF7A1A. */
:root {
  --navy: #1b2a6b;
  --navy-dark: #121c4a;
  --navy-light: #2e4396;
  --soft: #e8ecf8;
  --accent: #ff7a1a;
  --accent-hover: #ff8f3d;
  --bg: #f4f6fb;
  --surface: #ffffff;
  --text: #1a1f36;
  --muted: #4b5563;
  --border: #d5d9e4;
  --danger: #b91c1c;
  --radius: 14px;
  --shadow: 0 2px 10px rgba(27, 42, 107, 0.08);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  font-size: 1rem;
}
img, svg { max-width: 100%; height: auto; }
a { color: var(--navy-light); text-underline-offset: 2px; }
a:hover { color: var(--navy); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
main:focus { outline: none; }

h1, h2, h3 { line-height: 1.2; color: var(--navy); margin: 0 0 .6em; }
h1 { font-size: clamp(1.9rem, 5vw, 3rem); }
h2 { font-size: clamp(1.4rem, 3.5vw, 2rem); }
h3, .h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }
.lead { font-size: 1.125rem; color: var(--muted); max-width: 46rem; }
.muted { color: var(--muted); }
.small { font-size: .9rem; }
.center { text-align: center; }
.spaced { margin-top: 2rem; }

.container { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 16px; }
.container.narrow { max-width: 680px; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 8px; top: -60px; background: var(--accent); color: var(--navy-dark);
  padding: .6rem 1rem; border-radius: 8px; z-index: 100; font-weight: 700;
}
.skip-link:focus { top: 8px; }

/* Header */
.site-header { background: var(--navy); position: sticky; top: 0; z-index: 50; }
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; color: #fff; font-weight: 700; font-size: 1.1rem; text-decoration: none; }
.brand img { border-radius: 50%; background: #fff; object-fit: contain; }
.brand:hover { color: #fff; }

.nav-toggle {
  display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px;
  background: transparent; border: 1px solid rgba(255,255,255,.4); border-radius: 10px; cursor: pointer;
}
.nav-toggle .bars, .nav-toggle .bars::before, .nav-toggle .bars::after {
  display: block; width: 20px; height: 2px; background: #fff; position: relative; content: "";
}
.nav-toggle .bars::before { position: absolute; top: -6px; }
.nav-toggle .bars::after { position: absolute; top: 6px; }

.site-nav {
  display: none; position: absolute; left: 0; right: 0; top: 100%;
  background: var(--navy-dark); padding: 12px 16px 20px; border-top: 1px solid rgba(255,255,255,.15);
}
.site-nav.open { display: block; }
.site-nav ul { list-style: none; margin: 0 0 12px; padding: 0; }
.site-nav li a {
  display: block; padding: 12px 4px; color: #fff; text-decoration: none; font-weight: 600;
  border-bottom: 1px solid rgba(255,255,255,.12);
}
.site-nav li a[aria-current="page"] { color: var(--accent); }
.site-nav li a:hover { color: var(--accent); }
.nav-actions { display: flex; flex-direction: column; gap: 10px; }

@media (min-width: 960px) {
  .nav-toggle { display: none; }
  .site-nav { display: flex; position: static; background: transparent; padding: 0; border: 0; align-items: center; gap: 20px; }
  .site-nav ul { display: flex; gap: 4px; margin: 0; }
  .site-nav li a { border: 0; padding: 8px 10px; border-radius: 8px; font-size: .95rem; }
  .site-nav li a:hover { background: rgba(255,255,255,.1); }
  .nav-actions { flex-direction: row; align-items: center; }
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: 44px;
  padding: .6rem 1.2rem; border-radius: 999px; border: 2px solid transparent; font-weight: 700;
  font-size: 1rem; text-decoration: none; cursor: pointer; text-align: center; font-family: inherit;
}
.btn-lg { min-height: 50px; padding: .75rem 1.6rem; font-size: 1.05rem; }
.btn-accent { background: var(--accent); color: var(--navy-dark); }
.btn-accent:hover { background: var(--accent-hover); color: var(--navy-dark); }
.btn-primary { background: var(--navy); color: #fff; }
.btn-primary:hover { background: var(--navy-light); color: #fff; }
.btn-light { background: #fff; color: var(--navy); border-color: var(--border); }
.btn-light:hover { background: var(--soft); color: var(--navy); }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.6); }
.btn-ghost:hover { background: rgba(255,255,255,.12); color: #fff; }
.btn[disabled] { opacity: .65; cursor: wait; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin: 1.2rem 0 .8rem; }
.center-row { justify-content: center; }
.btn .icon { width: 20px; height: 20px; }

/* Hero */
.hero { background: linear-gradient(135deg, var(--navy-dark), var(--navy) 55%, var(--navy-light)); color: #fff; padding: 48px 0 56px; }
.hero h1 { color: #fff; }
.hero .lead { color: #e1e6fb; }
.eyebrow { text-transform: uppercase; letter-spacing: .08em; font-weight: 700; font-size: .85rem; color: var(--accent); margin-bottom: .6rem; }
.hero-grid { display: grid; gap: 28px; align-items: center; }
.hero-logo { display: none; justify-content: center; }
.hero-logo img { background: #fff; border-radius: 50%; padding: 12px; object-fit: contain; }
.hero-note { color: #e1e6fb; font-size: .95rem; }
.hero-note a, .page-head .hero-note a { color: #fff; }
@media (min-width: 800px) {
  .hero-grid { grid-template-columns: 1.4fr 1fr; }
  .hero-logo { display: flex; }
  .hero { padding: 80px 0; }
}

.page-head { background: var(--navy); color: #fff; padding: 36px 0; }
.page-head h1 { color: #fff; margin-bottom: .3em; }
.page-head .lead { color: #e1e6fb; margin-bottom: 0; }
.page-head .hero-note { margin: .5rem 0 0; }

/* Sections */
.section { padding: 44px 0; }
.section-alt { background: var(--surface); }
.cta-band { background: var(--soft); padding: 48px 0; }
.cta-band h2 { margin-bottom: .3em; }

.grid { display: grid; gap: 18px; margin: 1.2rem 0; }
@media (min-width: 560px) { .grid-3, .grid-4, .grid-2 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) {
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
}
.split { display: grid; gap: 28px; align-items: center; }
@media (min-width: 800px) { .split { grid-template-columns: 1fr 1fr; } }

.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 22px; box-shadow: var(--shadow);
}
.section-alt .card { background: var(--bg); }

.feature-icon {
  width: 48px; height: 48px; border-radius: 12px; background: var(--soft); color: var(--navy);
  display: flex; align-items: center; justify-content: center; margin-bottom: 12px;
}
.feature h3, .feature .h3 { margin-bottom: .3em; }
.feature p { margin: 0; color: var(--muted); }

/* Plans */
.plan { display: flex; flex-direction: column; }
.plan .btn { margin-top: auto; }
.plan-popular { border: 2px solid var(--accent); }
.plan-duration { color: var(--muted); font-weight: 600; margin-bottom: .4em; }
.price { font-size: 2.2rem; font-weight: 800; color: var(--navy); margin: 0 0 .2em; line-height: 1.1; }
.price.small { font-size: 1.4rem; }
.currency { font-size: .6em; vertical-align: .35em; margin-right: 2px; }
.badge {
  display: inline-block; background: var(--accent); color: var(--navy-dark); font-weight: 700;
  font-size: .8rem; padding: .15rem .7rem; border-radius: 999px; margin-bottom: .6rem;
}
.badge-muted { background: var(--soft); color: var(--navy); }
.ticks { list-style: none; padding: 0; margin: 0 0 1.2em; }
.ticks li { padding-left: 1.6em; position: relative; margin-bottom: .35em; }
.ticks li::before { content: "\2713"; position: absolute; left: 0; color: #15803d; font-weight: 800; }

/* Trainers, store, reviews */
.avatar { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; margin-bottom: 12px; }
.avatar-initial { display: flex; align-items: center; justify-content: center; background: var(--navy); color: #fff; font-size: 2.2rem; font-weight: 700; }
.chips { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.chips li { background: var(--soft); color: var(--navy); border-radius: 999px; padding: .15rem .7rem; font-size: .85rem; font-weight: 600; }
.product img { width: 100%; height: 180px; object-fit: cover; border-radius: 10px; margin-bottom: 10px; background: var(--soft); }
.quote { margin: 0; }
.quote blockquote { margin: .6rem 0; font-size: 1.05rem; }
.quote blockquote p { margin: 0; }
.quote figcaption { font-weight: 700; color: var(--navy); }
.stars { color: #b45309; letter-spacing: 2px; font-size: 1.1rem; }
.stars-off { color: #cbd0dc; }

.steps { counter-reset: step; list-style: none; padding: 0; margin: 0; }
.steps li { counter-increment: step; position: relative; padding: 4px 0 18px 48px; }
.steps li::before {
  content: counter(step); position: absolute; left: 0; top: 0; width: 34px; height: 34px; border-radius: 50%;
  background: var(--navy); color: #fff; font-weight: 700; display: flex; align-items: center; justify-content: center;
}

/* Contact */
.details dt { display: flex; align-items: center; gap: 8px; font-weight: 700; color: var(--navy); margin-top: 1rem; }
.details dt .icon { width: 20px; height: 20px; }
.details dd { margin: .2rem 0 0 28px; }
.hours { border-collapse: collapse; }
.hours th { text-align: left; padding: 2px 16px 2px 0; font-weight: 600; }
.hours td { padding: 2px 0; }

/* Notices and alerts */
.notice {
  background: #fffbeb; border: 1px solid #f59e0b; color: #78350f; border-radius: var(--radius);
  padding: 14px 18px; display: flex; flex-direction: column; gap: 4px; margin: 1rem 0;
}
.notice a { color: #78350f; font-weight: 700; }
.alert { border-radius: var(--radius); padding: 14px 18px; margin-bottom: 1.2rem; }
.alert-error { background: #fef2f2; border: 1px solid var(--danger); color: #7f1d1d; }
.validation-list ul { margin: .4rem 0 0; padding-left: 1.2rem; }

/* Form */
.form { display: grid; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-weight: 600; }
.field input[type="text"], .field input[type="tel"], .field input[type="email"], .field select, .field textarea {
  width: 100%; min-height: 46px; padding: .6rem .8rem; border: 1px solid #8b93a7; border-radius: 10px;
  font: inherit; background: #fff; color: var(--text);
}
.field textarea { min-height: 110px; resize: vertical; }
.field input.input-validation-error, .field select.input-validation-error, .field textarea.input-validation-error { border-color: var(--danger); }
.field-error { color: var(--danger); font-size: .9rem; min-height: 0; }
.field-check { display: grid; grid-template-columns: auto 1fr; column-gap: 10px; align-items: start; }
.field-check input { width: 22px; height: 22px; margin-top: 3px; }
.field-check .field-error { grid-column: 1 / -1; }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Footer */
.site-footer { background: var(--navy-dark); color: #d6dcf5; padding: 36px 0 18px; margin-top: 0; }
.site-footer a { color: #fff; }
.footer-grid { display: grid; gap: 20px; }
@media (min-width: 700px) { .footer-grid { grid-template-columns: repeat(4, 1fr); } }
.footer-title { color: #fff; font-weight: 700; margin-bottom: .4em; }
.site-footer p { margin: 0 0 .4em; }
.footer-base { margin-top: 20px; border-top: 1px solid rgba(255,255,255,.15); padding-top: 14px; }

/* Long-form text pages (privacy policy). */
.prose { max-width: 50rem; }
.prose h2 { margin-top: 1.8em; scroll-margin-top: 90px; }
.prose h3 { margin-top: 1.2em; }
.prose ul, .prose ol { padding-left: 1.4em; }
.prose li { margin-bottom: .35em; }
.prose code { background: var(--soft); padding: .1em .35em; border-radius: 4px; font-size: .95em; }
.toc { margin-bottom: 1rem; }
.toc ol { margin: 0; columns: 2 14rem; }
.table-wrap { overflow-x: auto; margin: 0 0 1em; }
.table-wrap table { width: 100%; border-collapse: collapse; background: var(--surface); }
.table-wrap th, .table-wrap td { text-align: left; vertical-align: top; padding: .6em .8em; border: 1px solid var(--border); }
.table-wrap th { background: var(--soft); color: var(--navy); }

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