/* GymSync website: home, pricing, features and the pages for each kind of gym.
   The legal and support pages have their own sheet (gymsync-pages.css) with the same colours and fonts.
   Fonts are self-hosted, so nothing is fetched from another company when the page loads. */

@font-face { font-family: "Barlow"; font-weight: 400; font-style: normal; font-display: swap; src: url("/fonts/barlow-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-weight: 500; font-style: normal; font-display: swap; src: url("/fonts/barlow-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-weight: 600; font-style: normal; font-display: swap; src: url("/fonts/barlow-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-weight: 700; font-style: normal; font-display: swap; src: url("/fonts/barlow-condensed-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-weight: 800; font-style: normal; font-display: swap; src: url("/fonts/barlow-condensed-latin-800-normal.woff2") format("woff2"); }

/* The home page's switch between gyms, pole studios and trainers also changes the colours (see the end of this
   file for the two other palettes). These are the gym colours, and what every other page uses. */
:root {
  --ink: #17171b;
  --paper: #f4f2ee;
  --surface: #fdfcfa;
  --purple: #5a3ecf;
  --purple-dark: #4a30b8;
  --lavender: #cdbcff;
  /* Solid blocks of the accent (buttons, the top strip, the lead plan), the text that sits on them, the hero's
     label and the closing band. Separate from --purple, which colours text, so a theme can use a bright fill
     that would be too pale to read as text. */
  --fill: var(--purple);
  --fill-hover: var(--purple-dark);
  --on-fill: #fff;
  --pop: var(--lavender);
  --closer: var(--fill);
  --tint: #e9e5f6;
  --text: #3a3935;
  --muted: #55534e;
  --line: #ddd9d1;
  --line-dark: #3a3940;
  --on-dark: #dcd9d2;
  --head: "Barlow Condensed", "Arial Narrow", sans-serif;
  --body: "Barlow", system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { background: var(--paper); color: var(--ink); font-family: var(--body); font-size: 18px; line-height: 1.55; overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--purple); text-underline-offset: 2px; }
a:hover { color: var(--purple-dark); }
:focus-visible { outline: 3px solid var(--purple); outline-offset: 2px; border-radius: 4px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 12px; top: 12px; background: var(--surface); padding: 8px 12px; z-index: 20; }

.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding-left: 24px; padding-right: 24px; }
h1, h2, h3 { font-family: var(--head); font-weight: 800; text-transform: uppercase; line-height: 1; text-wrap: balance; }
h1 { font-size: clamp(46px, 7vw, 92px); line-height: 0.95; }
h1 em, h2 em { font-style: normal; color: var(--purple); }
h2 { font-size: clamp(36px, 5vw, 64px); }
h3 { font-size: 26px; line-height: 1.1; }
.eyebrow { font-family: var(--head); font-weight: 700; font-size: 18px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--purple); margin-bottom: 12px; }
.lede { font-size: 20px; color: var(--text); max-width: 62ch; margin-top: 16px; }
.keyline { font-size: 17px; font-weight: 600; color: var(--muted); margin-top: 14px; }

/* Buttons */
.btn { display: inline-block; text-decoration: none; text-align: center; font-family: var(--head); font-weight: 700; font-size: 22px; letter-spacing: 0.6px; text-transform: uppercase; padding: 16px 26px; border-radius: 12px; border: 1px solid transparent; }
.btn.primary { background: var(--fill); color: var(--on-fill); }
.btn.primary:hover { background: var(--fill-hover); color: var(--on-fill); }
.btn.plain { background: var(--surface); color: var(--ink); border-color: #cfcac0; }
.btn.plain:hover { border-color: var(--ink); color: var(--ink); }
.btn.white { background: #fff; color: var(--ink); font-weight: 800; }
.btn.outline { background: transparent; color: var(--on-fill); border: 2px solid var(--on-fill); }
.btn.white:hover, .btn.outline:hover { color: var(--ink); background: var(--lavender); border-color: var(--lavender); }
.btns { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

/* Top strip and header */
.strip { display: block; background: var(--fill); color: var(--on-fill); text-align: center; padding: 12px 24px; font-size: 16px; font-weight: 600; text-decoration: none; }
.strip:hover { color: var(--on-fill); background: var(--fill-hover); }
.strip u { text-underline-offset: 3px; }
.site-header { border-bottom: 1px solid var(--line); background: var(--paper); position: sticky; top: 0; z-index: 10; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 76px; }
.logo img { height: 28px; width: auto; }
.site-nav { display: flex; align-items: center; gap: 4px; font-weight: 600; font-size: 16px; }
.site-nav a { color: var(--ink); text-decoration: none; padding: 8px 12px; border-radius: 8px; }
.site-nav a:hover { background: var(--tint); }
.site-nav a[aria-current="page"] { color: var(--purple); }
.site-nav a.cta { background: var(--ink); color: var(--surface); font-family: var(--head); font-weight: 700; font-size: 18px; letter-spacing: 0.6px; text-transform: uppercase; padding: 12px 20px; border-radius: 10px; margin-left: 10px; }
.site-nav a.cta:hover { background: var(--fill); color: var(--on-fill); }
.menu { display: none; }
@media (max-width: 900px) {
  .site-header .wrap { min-height: 62px; }
  .logo img { height: 24px; }
  .site-nav { display: none; }
  .menu { display: block; position: relative; }
  .menu summary { list-style: none; cursor: pointer; font-family: var(--head); font-weight: 700; font-size: 18px; letter-spacing: 0.6px; text-transform: uppercase; padding: 10px 16px; border-radius: 10px; background: var(--ink); color: var(--surface); }
  .menu summary::-webkit-details-marker { display: none; }
  .menu nav { position: absolute; right: 0; top: calc(100% + 8px); width: min(300px, calc(100vw - 48px)); background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 18px 40px rgba(23,23,27,0.16); padding: 8px; display: flex; flex-direction: column; }
  .menu nav a { color: var(--ink); text-decoration: none; font-weight: 600; padding: 12px 14px; border-radius: 8px; }
  .menu nav a:hover, .menu nav a[aria-current="page"] { background: var(--tint); }
}

/* Sections */
.section { padding-top: 96px; padding-bottom: 96px; }
.section.tight { padding-top: 64px; padding-bottom: 64px; }
.band-dark { background: var(--ink); color: var(--surface); }
.band-dark .eyebrow { color: var(--lavender); }
.band-dark .lede, .band-dark p { color: var(--on-dark); }
.band-tint { background: var(--tint); }
.band-tint .eyebrow { color: var(--purple-dark); }
.band-line { border-top: 1px solid var(--line); }
@media (max-width: 700px) { .section { padding-top: 64px; padding-bottom: 64px; } }

/* Hero */
.hero { padding-top: 72px; padding-bottom: 64px; display: flex; flex-wrap: wrap; align-items: center; gap: 48px; }
.hero > .copy { flex: 1 1 440px; min-width: 0; }
.hero .tag { display: inline-block; margin-bottom: 20px; color: #17171b; background: var(--pop); border-radius: 8px; padding: 6px 12px; font-family: var(--head); font-weight: 700; font-size: 18px; letter-spacing: 0.6px; text-transform: uppercase; }
.hero .sub { margin-top: 24px; font-size: 21px; max-width: 36ch; color: var(--text); }
.hero .price { margin-top: 20px; font-weight: 600; }
.hero .small { margin-top: 6px; font-size: 16px; color: var(--muted); max-width: 52ch; }
.phones { flex: 1 1 460px; min-width: 0; display: flex; justify-content: center; align-items: flex-end; gap: 16px; }
.phone { border-radius: 28px; overflow: hidden; border: 1px solid #d6d1c7; background: var(--surface); box-shadow: 0 18px 40px rgba(23,23,27,0.12); flex: 0 1 240px; }
.phone.small { flex-basis: 200px; border-radius: 26px; margin-bottom: 40px; }
.phone.drop { margin-top: 64px; }
.band-dark .phone { border-color: var(--line-dark); box-shadow: none; }
@media (max-width: 700px) { .hero { padding-top: 48px; } .phones { gap: 10px; } .phone { border-radius: 18px; } .phone.small { border-radius: 16px; margin-bottom: 24px; } .phone.drop { margin-top: 32px; } }

/* Page intro, for every page but the home page */
.intro { background: var(--tint); border-bottom: 1px solid var(--line); }
.intro .wrap { padding-top: 64px; padding-bottom: 56px; }
.intro h1 { font-size: clamp(42px, 6vw, 76px); max-width: 16ch; }
.intro .lede { font-size: 21px; }

/* Three roles under the hero */
.roles { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 32px; padding-top: 40px; padding-bottom: 40px; }
.roles h2 { font-size: 30px; color: var(--lavender); }
.roles p { margin-top: 6px; }

/* Cards */
.cards { margin-top: 48px; display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; }
.card { background: var(--surface); border: 1px solid #e0dcd4; border-radius: 16px; padding: 28px; }
.card h3 { margin-bottom: 8px; }
.card p { color: var(--text); }
.card p + p { margin-top: 10px; }
.card .more { display: inline-block; margin-top: 12px; font-weight: 600; }

/* Text beside screenshots */
.split { display: flex; flex-wrap: wrap; align-items: center; gap: 56px; }
.split.flip { flex-wrap: wrap-reverse; }
.split > .copy { flex: 1 1 440px; min-width: 0; }
.split > .shots { flex: 1 1 440px; min-width: 0; display: flex; justify-content: center; gap: 20px; }
.points { list-style: none; margin-top: 32px; display: flex; flex-direction: column; gap: 18px; }
.points li { border-top: 1px solid var(--line); padding-top: 16px; color: var(--text); }
.points strong { font-family: var(--head); font-size: 22px; text-transform: uppercase; letter-spacing: 0.4px; color: var(--ink); }
.band-dark .points li { border-color: var(--line-dark); color: var(--on-dark); }
.band-dark .points strong { color: var(--surface); }

/* Row of captioned phone screens */
.gallery { margin-top: 48px; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 24px; }
.gallery figure .phone { box-shadow: none; border-color: #cfc6e8; }
.gallery figcaption { margin-top: 14px; font-size: 16px; color: var(--text); }
.gallery figcaption strong { display: block; font-family: var(--head); font-size: 22px; text-transform: uppercase; color: var(--ink); }
@media (max-width: 520px) { .gallery { grid-template-columns: 1fr 1fr; gap: 16px; } }
.also { margin-top: 40px; font-size: 17px; color: var(--text); max-width: 80ch; }

.tv { margin-top: 32px; border-radius: 18px; overflow: hidden; border: 1px solid #2c2c33; box-shadow: 0 24px 60px rgba(23,23,27,0.18); }
.headrow { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 24px; }
.headrow > div { flex: 1 1 420px; min-width: 0; }
.headrow > p { flex: 1 1 360px; font-size: 19px; color: var(--text); }

/* Prices */
.plans { margin-top: 48px; display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
.plan { background: var(--surface); border: 1px solid #e0dcd4; border-radius: 16px; padding: 32px; display: flex; flex-direction: column; gap: 10px; color: var(--text); }
.plan h3 { color: var(--purple); }
.plan .amount { display: flex; align-items: baseline; gap: 8px; font-size: 18px; }
.plan .amount b { font-family: var(--head); font-weight: 800; font-size: 72px; line-height: 1; color: var(--ink); }
.plan.lead { background: var(--fill); border-color: var(--fill); color: var(--on-fill); }
.plan.lead h3, .plan.lead .amount b { color: var(--on-fill); }
.ticks { margin-top: 16px; padding-left: 20px; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 8px 32px; color: var(--text); }
.facts { margin-top: 48px; display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 32px 40px; }
.facts.ruled { border-top: 1px solid var(--line); padding-top: 32px; }
.facts h3 { font-family: var(--body); font-size: 19px; font-weight: 600; text-transform: none; line-height: 1.3; margin-bottom: 6px; }
.facts p { font-size: 17px; color: var(--text); }
.note { margin-top: 40px; font-size: 17px; color: var(--text); }

/* Long-form copy on the inner pages */
.prose { max-width: 72ch; }
.prose h2 { font-size: clamp(32px, 4vw, 46px); margin: 56px 0 14px; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin: 28px 0 8px; }
.prose p { color: var(--text); margin-bottom: 14px; }
.prose ul, .prose ol { color: var(--text); margin: 0 0 14px; padding-left: 22px; }
.prose li { margin: 6px 0; }
.prose strong { font-weight: 600; color: var(--ink); }
.feature { display: flex; flex-wrap: wrap; align-items: center; gap: 48px; padding: 56px 0; border-top: 1px solid var(--line); scroll-margin-top: 90px; }
.feature:first-of-type { border-top: 0; padding-top: 0; }
.feature > .copy { flex: 1 1 460px; min-width: 0; }
.feature > .shots { flex: 0 1 300px; margin: 0 auto; display: flex; justify-content: center; }
.feature > .shots.wide { flex: 1 1 460px; }
.feature:nth-of-type(even) { flex-direction: row-reverse; }
.feature h2 { font-size: clamp(32px, 4vw, 46px); margin-bottom: 14px; }
.feature p { color: var(--text); margin-bottom: 12px; }
.feature ul { color: var(--text); padding-left: 22px; }
.feature li { margin: 6px 0; }
.steps { counter-reset: step; list-style: none; margin-top: 40px; display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 20px; }
.steps li { counter-increment: step; background: var(--surface); border: 1px solid #e0dcd4; border-radius: 16px; padding: 24px 28px 28px; color: var(--text); }
.steps li::before { content: counter(step); display: block; font-family: var(--head); font-weight: 800; font-size: 56px; line-height: 1; color: var(--purple); margin-bottom: 8px; }
.steps strong { display: block; font-family: var(--head); font-size: 24px; text-transform: uppercase; color: var(--ink); line-height: 1.1; margin-bottom: 6px; }

/* Closing call to action */
.closer { background: var(--closer); color: var(--on-fill); }
.closer .wrap { padding-top: 88px; padding-bottom: 88px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 40px; }
.closer .copy { flex: 1 1 520px; min-width: 0; }
.closer h2 { font-size: clamp(42px, 6vw, 80px); line-height: 0.95; }
.closer p { margin-top: 20px; font-size: 20px; max-width: 46ch; }
.closer .stack { flex: 0 1 380px; display: flex; flex-direction: column; gap: 12px; }
@media (max-width: 700px) { .closer .wrap { padding-top: 64px; padding-bottom: 64px; } .closer .btn { font-size: 19px; padding: 16px 18px; } }

/* Footer */
.site-footer { background: var(--ink); color: #cfccc4; font-size: 15px; }
.site-footer .cols { padding-top: 48px; padding-bottom: 32px; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 32px; }
.site-footer .about { max-width: 34ch; }
.site-footer .about img { height: 22px; width: auto; margin-bottom: 14px; }
.site-footer h2 { font-size: 18px; letter-spacing: 1px; color: var(--lavender); margin-bottom: 10px; }
.site-footer ul { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { color: var(--lavender); text-decoration: underline; }
.site-footer .legal { border-top: 1px solid rgba(255,255,255,0.14); padding-top: 18px; padding-bottom: 28px; display: flex; flex-wrap: wrap; gap: 6px 24px; justify-content: space-between; }

/* Home page: "Show me GymSync for" swaps the page between gyms, pole studios and personal trainers.
   Each piece says who it is for; the others are hidden. */
#aud[data-aud="gym"] [data-for]:not([data-for~="gym"]),
#aud[data-aud="studio"] [data-for]:not([data-for~="studio"]),
#aud[data-aud="pt"] [data-for]:not([data-for~="pt"]) { display: none !important; }
.audbar { padding-top: 28px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; font-weight: 600; }
.audpick { display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 4px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; }
.audpick button { font: inherit; font-family: var(--head); font-weight: 700; font-size: 19px; letter-spacing: 0.5px; text-transform: uppercase; padding: 10px 18px; border: 0; border-radius: 10px; background: transparent; color: var(--ink); cursor: pointer; }
.audpick button:hover { background: var(--tint); }
.audpick button[aria-pressed="true"] { background: var(--fill); color: var(--on-fill); }
.audbar + .hero { padding-top: 40px; }
.h1 { font-size: clamp(46px, 7vw, 92px); line-height: 0.95; }
.gallery.three { grid-template-columns: repeat(auto-fit, minmax(200px, 280px)); }
h3.inc { margin-top: 56px; }
@media (max-width: 520px) { .audpick { width: 100%; } .audpick button { flex: 1 1 auto; font-size: 17px; padding: 10px 12px; } .gallery.three { grid-template-columns: 1fr 1fr; } }

/* Pole studios: a dark page. Night plum is the background, violet the buttons, hot pink the accent text and
   label, electric blue the closing band, lilac and blush the pale text. Here --ink is the text colour, so it is
   light, and the bands that are dark on the other palettes go a shade deeper than the page. */
:root[data-aud="studio"] {
  --paper: #1a1023; --surface: #281a36; --ink: #f8f1ff; --text: #dccfe8; --muted: #b9abc7; --line: #3d2b50; --line-dark: #3d2b50;
  --purple: #ff4fa3; --purple-dark: #ffc8e2; --lavender: #e3c9ff; --tint: #24123a; --on-dark: #dccfe8;
  --fill: #8b3dff; --fill-hover: #a05cff; --on-fill: #fff; --pop: #ff4fa3; --closer: #2f6bff;
}
:root[data-aud="studio"] .band-dark, :root[data-aud="studio"] .site-footer { background: #110a18; color: #f8f1ff; }
:root[data-aud="studio"] .card, :root[data-aud="studio"] .plan:not(.lead), :root[data-aud="studio"] .phone,
:root[data-aud="studio"] .btn.plain { border-color: var(--line); }
:root[data-aud="studio"] .band-tint .eyebrow { color: var(--purple); }
:root[data-aud="studio"] .btn.white:hover, :root[data-aud="studio"] .btn.outline:hover { color: #1a1023; }
:root[data-aud="studio"] .btn.white { color: #1a1023; }
:root[data-aud="studio"] .site-nav a.cta, :root[data-aud="studio"] .menu summary { background: var(--fill); color: #fff; }
:root[data-aud="studio"] .phone { box-shadow: 0 18px 40px rgba(0,0,0,0.45); }
/* Personal trainers and 1-on-1 studios: deep slate, cyan, teal for text, aqua, mint and mist. Cyan is too pale
   for white text, so what sits on it is slate. */
:root[data-aud="pt"] {
  --ink: #0f1a1f; --purple: #00798f; --purple-dark: #005f70; --lavender: #bdeef5; --tint: #c7f0e0;
  --fill: #00b8d9; --fill-hover: #00a3c0; --on-fill: #0f1a1f; --pop: #bdeef5; --line: #dde7ec; --line-dark: #26363d;
}
:root[data-aud] body { transition: background-color .2s; }
:root[data-aud="studio"] .band-dark .points strong { color: #f8f1ff; }
