/* Colours and type follow ukfitness.pro (src/app/home, user-nav, footer). One
   deliberate difference: teal buttons carry navy text, because white on
   #12d4d2 is about 1.9:1 contrast. */
:root {
  --navy: #232f49;
  --navy-deep: #1a2438;
  --teal: #12d4d2;
  --teal-text: #0b6e6d;
  --ink: #333;
  --muted: #4a5568;
  --line: #cbd2dc;
  --wash: #f5f7fa;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  font-weight: 300;
  color: var(--ink);
  background: #fff;
  line-height: 1.5;
}
a { color: var(--teal-text); }
a:hover { color: var(--navy); }
h1, h2, h3 { margin: 0; }
p { margin: 0; }
input, select, button { font: inherit; }
.wrap { max-width: 1140px; margin: 0 auto; padding: 0 20px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
[hidden] { display: none !important; }

/* Nav */
.nav { background: #fff; box-shadow: 0 3px 3px 0 rgba(0,0,0,0.18); position: relative; z-index: 2; }
.nav-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding-top: 12px; padding-bottom: 12px; }
.logo { font-size: 30px; text-decoration: none; color: #444; border-bottom: 1px solid transparent; }
.logo:hover { color: #444; border-bottom-color: currentColor; }
.logo-nz { font-weight: 300; margin-right: 2px; }
.logo-fitness { font-weight: 700; color: #222; }
.logo sup { font-size: 15pt; font-style: italic; font-weight: 300; }
.nav-links { display: flex; flex-wrap: wrap; gap: 20px; align-items: center; }
.nav-links a { color: #444; text-decoration: none; }
.nav-links a:hover { text-decoration: underline; }
.nav-links .nav-cta { color: var(--navy); font-weight: 500; border: 1px solid var(--navy); border-radius: 30px; padding: 8px 18px; }

/* Hero */
.hero {
  background-image: linear-gradient(to bottom, rgba(35,47,73,0.72), rgba(35,47,73,0.86)), url(/assets/hero.jpg);
  background-size: cover;
  background-position: center;
  color: #fff;
  text-align: center;
  padding: 80px 20px 120px;
}
.hero-inner { max-width: 820px; margin: 0 auto; }
.eyebrow {
  display: inline-block; margin-bottom: 18px;
  background: rgba(18,212,210,0.18); border: 1px solid var(--teal); color: #bff6f5;
  border-radius: 30px; padding: 6px 16px;
  font-size: 14px; font-weight: 500; letter-spacing: 0.5px; text-transform: uppercase;
}
.hero h1 { font-size: 3rem; line-height: 1.15; font-weight: 700; text-shadow: 2px 2px 4px rgba(0,0,0,0.3); margin-bottom: 16px; }
.hero-sub { max-width: 640px; margin: 0 auto; font-size: 1.3rem; color: rgba(255,255,255,0.95); }

/* Cards, buttons, forms */
.card { background: #fff; border-radius: 16px; box-shadow: 0 2px 12px rgba(0,0,0,0.08); }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 0 40px; border: none; border-radius: 30px;
  font-size: 1.1rem; font-weight: 700; text-decoration: none; cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
}
.btn-teal { background: var(--teal); color: #172033; }
.btn-teal:hover { background: #0fc5c3; color: #172033; transform: translateY(-2px); box-shadow: 0 4px 20px rgba(18,212,210,0.4); }
.btn-navy { background: var(--navy); color: #fff; min-height: 48px; padding: 0 28px; font-size: 1rem; font-weight: 600; }
.btn-navy:hover { background: var(--navy-deep); color: #fff; }
.btn[disabled] { opacity: 0.6; cursor: progress; transform: none; }

label { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 500; color: var(--navy); }
.optional { font-weight: 300; color: #5b6576; }
input[type=text], input[type=email], select {
  padding: 12px 14px; border: 1px solid var(--line); border-radius: 8px;
  font-size: 16px; font-weight: 300; color: var(--ink); background: #fff; width: 100%; min-height: 48px;
}
input:focus, select:focus { outline: 2px solid var(--teal); outline-offset: 1px; border-color: var(--teal-text); }
input[aria-invalid=true], select[aria-invalid=true] { border-color: #c0392b; }
.form-error { color: #b42318; font-weight: 500; }

/* Register */
.register { padding: 0 20px; margin-top: -72px; position: relative; }
.register-card { max-width: 760px; margin: 0 auto; padding: 36px 40px; box-shadow: 0 8px 32px rgba(0,0,0,0.16); }
.form { display: flex; flex-direction: column; gap: 20px; }
.form h2, .thanks h2 { font-size: 1.6rem; font-weight: 600; color: var(--navy); margin-bottom: 6px; }
.form > div > p { font-size: 1.05rem; }
.fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.form-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.check { flex-direction: row; gap: 10px; align-items: flex-start; font-weight: 300; color: var(--muted); max-width: 420px; }
.check input { width: 20px; height: 20px; margin: 0; flex: none; }
.thanks { text-align: center; display: flex; flex-direction: column; gap: 12px; align-items: center; outline: none; }
.thanks p { max-width: 480px; font-size: 1.1rem; }
.tick { width: 72px; height: 72px; border-radius: 50%; background: var(--teal); color: #172033; display: flex; align-items: center; justify-content: center; margin-bottom: 8px; }

/* Stats */
.stats { padding: 64px 0 56px; }
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 24px; text-align: center; }
.stats-grid > div { padding: 20px; }
.stat-num { font-size: 2.5rem; font-weight: 700; color: var(--teal-text); line-height: 1; }
.stat-label { margin-top: 10px; font-size: 0.95rem; text-transform: uppercase; letter-spacing: 0.5px; color: var(--muted); }

/* How it works */
.how { padding: 60px 0; background: linear-gradient(135deg, var(--navy) 0%, var(--navy-deep) 100%); color: #fff; }
.how h2 { text-align: center; font-size: 1.8rem; font-weight: 300; margin-bottom: 40px; }
.how-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; }
.how-card { background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.1); border-radius: 16px; padding: 32px 28px; }
.how-card h3 { font-size: 1.2rem; font-weight: 700; margin-bottom: 10px; }
.how-card p { line-height: 1.6; color: rgba(255,255,255,0.78); }
.step { width: 44px; height: 44px; border-radius: 50%; background: var(--teal); color: #172033; font-weight: 700; font-size: 1.2rem; display: flex; align-items: center; justify-content: center; margin-bottom: 18px; }

/* Founding */
.founding { padding: 60px 0; background: var(--wash); color: var(--navy); }
.founding-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 40px; }
.founding-text { flex: 1 1 480px; }
.founding h2 { font-size: 2rem; font-weight: 300; margin-bottom: 10px; }
.lead { font-size: 1.3rem; color: var(--muted); margin-bottom: 24px; }
.ticks { list-style: none; padding: 0; margin: 0 0 30px; display: flex; flex-direction: column; gap: 14px; font-size: 1.1rem; color: var(--ink); }
.ticks li { display: flex; gap: 12px; align-items: center; }
.ticks span { flex: none; width: 24px; height: 24px; border-radius: 50%; background: var(--teal); color: #172033; display: inline-flex; align-items: center; justify-content: center; font-size: 0.8rem; font-weight: 700; }
.founding-stat { flex: 0 1 320px; text-align: center; padding: 32px 36px; }
.founding-stat .big { font-size: 3rem; font-weight: 700; line-height: 1; color: var(--teal-text); }
.founding-stat p { margin-top: 10px; color: var(--muted); }

/* Clients */
.clients { padding: 48px 0; border-top: 1px solid #e3e7ee; }
.clients-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; }
.clients-text { flex: 1 1 360px; }
.clients h2 { font-size: 1.4rem; font-weight: 400; color: var(--navy); margin-bottom: 6px; }
.client-form { flex: 1 1 440px; display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; }
.client-form label { flex: 1 1 260px; }
.client-form input[type=email] { border-radius: 30px; padding: 12px 18px; }
.client-form .form-error { flex-basis: 100%; }
.client-thanks { flex: 1 1 440px; font-size: 1.1rem; font-weight: 500; color: var(--navy); outline: none; }

/* Footer */
.footer { background: var(--navy); color: rgba(255,255,255,0.8); padding: 32px 0; font-size: 15px; }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 20px; }
.footer a { color: var(--teal); }
.footer-links { display: flex; gap: 20px; }

/* Privacy page */
.doc { max-width: 760px; margin: 0 auto; padding: 48px 20px 64px; }
.doc h1 { font-size: 2rem; font-weight: 300; color: var(--navy); margin-bottom: 24px; }
.doc h2 { font-size: 1.25rem; font-weight: 600; color: var(--navy); margin: 28px 0 8px; }
.doc p, .doc li { line-height: 1.65; }
.doc p + p { margin-top: 12px; }

@media (max-width: 768px) {
  .hero { padding: 48px 16px 96px; }
  .hero h1 { font-size: 2rem; line-height: 1.2; }
  .hero-sub { font-size: 1.05rem; }
  .eyebrow { font-size: 12px; }
  .logo { font-size: 24px; }
  .nav-inner { flex-wrap: nowrap; }
  .nav-links .nav-cta { font-size: 14px; padding: 6px 12px; white-space: nowrap; }
  .nav-links a:not(.nav-cta) { display: none; }
  .logo sup { font-size: 13px; }
  .register { padding: 0 16px; margin-top: -64px; }
  .register-card { padding: 24px 20px; }
  .form h2 { font-size: 1.3rem; }
  .form-foot .btn { width: 100%; }
  .wrap { padding: 0 16px; }
  .founding-text { text-align: center; }
  .ticks li { text-align: left; }
  .client-form .btn { width: 100%; }
}
