/* ═══════════════════════════════════════════════════════════
   Club Balance — landing page
   Layout & type from the wyzr.uk system; colour from the
   Club Balance logo: #2C0A6D purple → #E81250 magenta.
   Headings: Inter Tight (tight tracking) · Body: Inter
   ═══════════════════════════════════════════════════════════ */

/* ═══ Self-hosted type — no third-party font CDN, no visitor IPs leaving the origin ═══ */
/* Inter — latin-ext */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url('assets/fonts/inter-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* Inter — latin */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url('assets/fonts/inter-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Inter Tight — latin-ext */
@font-face {
  font-family: 'Inter Tight';
  font-style: normal;
  font-weight: 500 700;
  font-display: swap;
  src: url('assets/fonts/inter-tight-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* Inter Tight — latin */
@font-face {
  font-family: 'Inter Tight';
  font-style: normal;
  font-weight: 500 700;
  font-display: swap;
  src: url('assets/fonts/inter-tight-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --ink:        #1D1F20;
  --ink-soft:   #3A3F3C;
  --muted:      #5C6670;
  --muted-2:    #868E99;

  /* brand — sampled from the logo artwork */
  --brand-deep: #2C0A6D;
  --brand-mid:  #8B1464;
  --brand-hot:  #E81250;

  --accent:     #D4175F;   /* vivid brand magenta — highlights on light */
  --accent-on-dark: #FF7FC0;
  --accent-dim: #F7E6F1;   /* brand wash behind icons and ticks */

  /* flat brand colour for every button — the midpoint of the logo gradient */
  --green:      #6B1570;
  --green-hi:   #7E1A83;
  --green-lo:   #4E0F53;

  --line:       #E5E7EB;
  --line-soft:  #EFF1F0;
  --surface:    #F5F6F5;
  --surface-2:  #FAFBFA;
  --white:      #FFFFFF;

  /* semantic — form and interaction states */
  --error:       #C0392B;   /* invalid field border, error note text */
  --placeholder: #A7B1AC;   /* input placeholder text */
  --line-hover:  #D5DAD7;   /* card border on hover */
  --ink-deep:    #000000;   /* active nav pill, hover state only */

  --radius-sm:  12px;
  --radius:     20px;
  --radius-lg:  32px;
  --radius-xl:  40px;

  --shell:      1180px;
  --ease:       cubic-bezier(.22,.61,.36,1);

  --font-head:  "Inter Tight", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-body:  "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* ── reset ───────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }

h1, h2, h3 {
  font-family: var(--font-head);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.02;
  margin: 0;
}
h1 { font-size: clamp(2.6rem, 6.2vw, 4.75rem); }
h2 { font-size: clamp(2.1rem, 4.4vw, 3.25rem); line-height: 1.06; }
h3 { font-size: clamp(1.45rem, 2.4vw, 2.05rem); letter-spacing: -0.028em; line-height: 1.12; }
p  { margin: 0; }

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

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--green); color: var(--white); padding: 12px 18px; border-radius: 0 0 12px 0;
}
.skip:focus { left: 0; }

:focus-visible { outline: 3px solid var(--green); outline-offset: 3px; border-radius: 6px; }

/* ── buttons ─────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 1.5px solid transparent;
  border-radius: 999px;
  padding: 15px 28px;
  font-family: var(--font-body);
  font-size: .98rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  cursor: pointer;
  white-space: nowrap;
  transition: transform .18s var(--ease), background-color .18s var(--ease),
              box-shadow .18s var(--ease), border-color .18s var(--ease);
}
.btn-primary {
  background: var(--green);
  color: var(--white);
  box-shadow: 0 1px 2px rgba(78,15,83,.2), 0 10px 24px -12px rgba(78,15,83,.6);
}
.btn-primary:hover { background: var(--green-hi); transform: translateY(-1px);
  box-shadow: 0 2px 4px rgba(78,15,83,.22), 0 16px 30px -14px rgba(78,15,83,.65); }
.btn-primary:active { background: var(--green-lo); transform: translateY(0); }

.btn-ghost { background: var(--white); color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--ink); transform: translateY(-1px); }

.btn-sm { padding: 11px 20px; font-size: .92rem; }
.btn-block { width: 100%; padding-block: 17px; font-size: 1rem; }

/* ── nav ─────────────────────────────────────────────────── */
.nav-wrap {
  position: sticky; top: 0; z-index: 50;
  padding: 18px 24px;
  background: rgba(255,255,255,.72);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  transition: box-shadow .25s var(--ease), background-color .25s var(--ease);
}
.nav-wrap.is-stuck { box-shadow: 0 1px 0 var(--line), 0 10px 30px -24px rgba(29,31,32,.5); }

.nav {
  max-width: var(--shell); margin-inline: auto;
  display: flex; align-items: center; gap: 20px;
}
.brand {
  display: inline-flex; align-items: center; gap: 11px;
  font-family: var(--font-head); font-weight: 700; font-size: 1.34rem;
  letter-spacing: -0.035em; color: var(--brand-deep);
}
.brand img { height: 34px; width: auto; }
.brand span { white-space: nowrap; }
.brand-thin { color: var(--brand-hot); }

.nav-links { display: flex; gap: 6px; margin-inline: auto; }
.nav-login-m { display: none; }   /* "Log in" moves into the menu on small screens */
.pill {
  display: inline-flex; align-items: center;
  padding: 10px 20px; border-radius: 999px;
  font-size: .97rem; font-weight: 600; letter-spacing: -0.01em;
  color: var(--ink);
  transition: background-color .18s var(--ease), color .18s var(--ease);
}
.pill:hover { background: var(--surface); }
.pill.is-active { background: var(--ink); color: var(--white); }
.pill.is-active:hover { background: var(--ink-deep); }

.nav-actions { display: flex; align-items: center; gap: 8px; }
.link-login {
  padding: 10px 16px; font-size: .97rem; font-weight: 600; color: var(--ink);
  border-radius: 999px; transition: background-color .18s var(--ease);
}
.link-login:hover { background: var(--surface); }

.burger {
  display: none; width: 42px; height: 42px; border: 1.5px solid var(--line);
  background: var(--white); border-radius: 999px; cursor: pointer;
  flex-direction: column; align-items: center; justify-content: center; gap: 5px;
}
.burger span { display: block; width: 16px; height: 1.8px; background: var(--ink); border-radius: 2px;
  transition: transform .2s var(--ease), opacity .2s var(--ease); }
.burger[aria-expanded="true"] span:first-child { transform: translateY(3.4px) rotate(45deg); }
.burger[aria-expanded="true"] span:last-child  { transform: translateY(-3.4px) rotate(-45deg); }

/* ── hero ────────────────────────────────────────────────── */
.hero { padding: 72px 0 0; text-align: center; position: relative; }
.hero::before {
  content: ""; position: absolute; inset: 0 0 auto; height: 620px; z-index: -1;
  background:
    radial-gradient(52% 70% at 28% -8%, rgba(74,17,132,.13), transparent 66%),
    radial-gradient(52% 72% at 74% -6%, rgba(232,18,80,.11), transparent 66%),
    linear-gradient(180deg, var(--surface-2), var(--white) 72%);
}

.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 8px 16px 8px 12px; border-radius: 999px;
  background: var(--white); border: 1px solid var(--line);
  font-size: .86rem; font-weight: 600; letter-spacing: -0.005em; color: var(--muted);
  margin-bottom: 28px;
}
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent);
  box-shadow: 0 0 0 3px rgba(212,23,95,.2); }
.eyebrow.light { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.18); color: rgba(255,255,255,.82); }
.eyebrow.light .dot { background: var(--accent-on-dark); box-shadow: 0 0 0 3px rgba(255,127,192,.22); }

.lede {
  max-width: 620px; margin: 24px auto 0;
  font-size: clamp(1.03rem, 1.5vw, 1.19rem); line-height: 1.58; color: var(--muted);
}
.lede.light { color: rgba(255,255,255,.76); margin-inline: 0; }

.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.cta-row.center, .hero .cta-row { justify-content: center; }

.fineprint { margin-top: 18px; font-size: .85rem; color: var(--muted-2); }

.hero-media {
  margin: 56px 0 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: 0 40px 80px -48px rgba(29,31,32,.45);
}
.hero-media img { width: 100%; height: auto; }

/* ── section heads ───────────────────────────────────────── */
.sec-head { max-width: 680px; margin: 0 auto 64px; text-align: center; }
.sec-head p { margin-top: 18px; color: var(--muted); font-size: 1.06rem; }

/* ── features at a glance ────────────────────────────────── */
.glance { padding: 120px 0 10px; }
.glance-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.gcard {
  padding: 30px 28px 32px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  transition: border-color .2s var(--ease), transform .2s var(--ease), box-shadow .2s var(--ease);
}
.gcard:hover {
  border-color: var(--line-hover); transform: translateY(-3px);
  box-shadow: 0 24px 40px -32px rgba(29,31,32,.55);
}
.gicon {
  display: grid; place-items: center; width: 46px; height: 46px;
  border-radius: 14px; background: var(--accent-dim); color: var(--brand-mid);
  margin-bottom: 20px;
}
.gicon svg { width: 23px; height: 23px; }
.gcard h3 { font-size: 1.12rem; letter-spacing: -0.02em; line-height: 1.3; }
.gcard p { margin-top: 10px; color: var(--muted); font-size: .96rem; line-height: 1.55; }

/* ── alternating feature rows ────────────────────────────── */
.features { padding: 120px 0; }
.frow {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  align-items: center;
  gap: clamp(40px, 6vw, 88px);
  padding: 44px 0;
}
.frow + .frow { margin-top: 24px; }
.frow.reverse .fmedia { order: 2; }
.frow.reverse .fbody  { order: 1; }

.fmedia {
  margin: 0;
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--line);
  overflow: hidden;
  box-shadow: 0 30px 60px -44px rgba(29,31,32,.5);
}
.fmedia img { width: 100%; height: auto; }

.ftag {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .8rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase;
  color: var(--muted-2); margin-bottom: 16px;
}
.ai-chip {
  display: inline-block; padding: 3px 9px; border-radius: 999px;
  background: var(--accent); color: var(--white);
  font-size: .68rem; font-weight: 700; letter-spacing: .07em;
}
.fbody > p { margin-top: 18px; color: var(--muted); font-size: 1.05rem; line-height: 1.6; }

.ticks { margin-top: 26px; display: grid; gap: 13px; }
.ticks li {
  position: relative; padding-left: 32px;
  font-size: .99rem; line-height: 1.5; color: var(--ink-soft);
}
.ticks li::before {
  content: ""; position: absolute; left: 0; top: 2px;
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--accent-dim) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238B1464' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12.5 4.5 4.5L19 7'/%3E%3C/svg%3E") center/11px no-repeat;
}

.textlink {
  display: inline-flex; align-items: center; gap: 8px;
  margin-top: 28px; font-weight: 600; color: var(--brand-mid);
  border-bottom: 2px solid var(--accent); padding-bottom: 3px;
  transition: gap .2s var(--ease), border-color .2s var(--ease);
}
.textlink:hover { gap: 13px; border-color: var(--brand-deep); }

/* ── contact ─────────────────────────────────────────────── */
.contact { padding-bottom: 120px; }
.contact-card {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: clamp(36px, 5vw, 72px);
  background: var(--ink);
  border-radius: var(--radius-xl);
  padding: clamp(40px, 5vw, 72px);
  color: var(--white);
  position: relative; overflow: hidden;
}
.contact-card::after {
  content: ""; position: absolute; width: 560px; height: 560px; right: -210px; top: -250px;
  background: radial-gradient(circle, rgba(232,18,80,.22), rgba(74,17,132,.14) 45%, transparent 70%);
  pointer-events: none;
}
.contact-intro h2 { margin-top: 10px; }
.contact-meta { margin-top: 40px; display: grid; gap: 20px; }
.contact-meta li { display: grid; gap: 4px; }
.cm-label {
  font-size: .76rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: rgba(255,255,255,.42);
}
.contact-meta a { font-weight: 600; border-bottom: 2px solid var(--accent-on-dark); padding-bottom: 2px; width: fit-content; }
.contact-meta a:hover { color: var(--accent-on-dark); }
.contact-meta li > span:not(.cm-label) { color: rgba(255,255,255,.7); font-size: .94rem; }

.contact-form {
  background: var(--white); color: var(--ink);
  border-radius: var(--radius); padding: clamp(26px, 3vw, 36px);
  position: relative; z-index: 1;
}
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: grid; gap: 7px; margin: 0 0 16px; }
.field label { font-size: .86rem; font-weight: 600; color: var(--ink-soft); }
.field input, .field select, .field textarea {
  width: 100%; padding: 13px 15px;
  border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  background: var(--surface-2); font-size: .97rem;
  transition: border-color .16s var(--ease), background-color .16s var(--ease),
              box-shadow .16s var(--ease);
}
.field textarea { resize: vertical; min-height: 104px; line-height: 1.5; }
.field input::placeholder, .field textarea::placeholder { color: var(--placeholder); }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; background: var(--white);
  border-color: var(--green); box-shadow: 0 0 0 4px rgba(139,20,100,.16);
}
.field input[aria-invalid="true"], .field textarea[aria-invalid="true"] {
  border-color: var(--error); box-shadow: 0 0 0 4px rgba(192,57,43,.12);
}
.field select { appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235C6670' stroke-width='2.2' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; background-size: 16px;
  padding-right: 40px;
}

.consent { display: flex; align-items: flex-start; gap: 10px; margin: 4px 0 22px; }
.consent input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--green); flex: none; }
.consent label { font-size: .88rem; color: var(--muted); }

.formnote { margin-top: 14px; text-align: center; font-size: .86rem; color: var(--muted-2); }
.formnote.is-ok { color: var(--green); font-weight: 600; }
.formnote.is-err { color: var(--error); font-weight: 600; }

/* ── finale ──────────────────────────────────────────────── */
.finale { text-align: center; padding: 0 0 130px; }
.finale h2 { max-width: 760px; margin-inline: auto; }

/* ── footer ──────────────────────────────────────────────── */
.foot { border-top: 1px solid var(--line); padding: 44px 0; }
.foot-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.foot-logo { height: 76px; width: auto; }
.foot-links { display: flex; gap: 26px; }
.foot-links a { font-size: .95rem; font-weight: 500; color: var(--muted); }
.foot-links a:hover { color: var(--ink); }
.foot-legal { font-size: .86rem; color: var(--muted-2); }

/* ── responsive ──────────────────────────────────────────── */
@media (max-width: 1040px) {
  .glance-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  .frow, .contact-card { grid-template-columns: 1fr; }
  .frow { gap: 36px; padding: 32px 0; }
  .frow.reverse .fmedia, .frow .fmedia { order: 1; }
  .frow.reverse .fbody,  .frow .fbody  { order: 2; }
  .features, .glance { padding: 88px 0; }
  .glance { padding-bottom: 0; }
}

@media (max-width: 760px) {
  body { font-size: 16px; }
  .nav-wrap { padding: 12px 16px; }
  .shell { padding-inline: 18px; }
  .nav { gap: 10px; }
  .brand { font-size: 1.1rem; gap: 8px; }
  .brand img { height: 28px; }
  .btn-sm { padding: 10px 16px; font-size: .88rem; }
  .burger { display: flex; width: 40px; height: 40px; }
  .link-login { display: none; }
  .nav-links {
    position: absolute; left: 16px; right: 16px; top: calc(100% + 8px);
    margin: 0; flex-direction: column; gap: 4px;
    background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
    padding: 10px; box-shadow: 0 30px 50px -30px rgba(29,31,32,.5);
    display: none;
  }
  .nav-links.is-open { display: flex; }
  .nav-links .pill { width: 100%; justify-content: flex-start; }
  .nav-login-m { display: block; }

  /* let headings wrap naturally rather than at the desktop break points */
  h1 br, h2 br { display: none; }

  .hero { padding-top: 48px; }
  .hero-media { margin-top: 40px; border-radius: var(--radius); }
  .fmedia { border-radius: var(--radius); }
  .cta-row .btn { flex: 1 1 auto; }

  .glance-grid { grid-template-columns: 1fr; }
  .sec-head { margin-bottom: 44px; }

  .field-row { grid-template-columns: 1fr; gap: 0; }
  .contact-card { border-radius: var(--radius-lg); }
  .foot-inner { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
