/* ============================================================
   SHARED STYLESHEET
   index.html · build-on-demand.html · trainer-portal.html
============================================================ */

:root {
  --primary:      #1a56db;
  --primary-dark: #1344b3;
  --accent:       #0ea5e9;
  --accent-light: #dbeafe;
  --ink:          #0f172a;
  --ink-mid:      #374151;
  --ink-light:    #6b7280;
  --bg:           #ffffff;
  --bg-alt:       #f9fafb;
  --border:       #e5e7eb;
  --border-strong:#d1d5db;
  --success:      #16a34a;
  --danger:       #dc2626;

  --sp-xs:  .5rem;
  --sp-sm:  .75rem;
  --sp-md:  1rem;
  --sp-lg:  1.5rem;
  --sp-xl:  2rem;
  --sp-2xl: 3rem;
  --sp-3xl: 6rem;

  --font-body: 'Inter', sans-serif;
  --font-head: 'Poppins', sans-serif;

  --r-sm: .5rem;
  --r-md: .75rem;
  --r-lg: 1rem;

  /* Shadow system: ring + depth */
  --sh-card:      0 0 0 1px rgba(15,23,42,.07), 0 2px 6px rgba(0,0,0,.04);
  --sh-card-up:   0 0 0 1px rgba(26,86,219,.15), 0 8px 24px rgba(0,0,0,.08);
  --sh-md:        0 4px 16px rgba(0,0,0,.08), 0 1px 4px rgba(0,0,0,.04);
  --sh-lg:        0 12px 40px rgba(0,0,0,.10);

  --ease:  .18s ease;
}

/* ── Reset ─────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html  { scroll-behavior: smooth; font-size: 16px; }
body  { font-family: var(--font-body); color: var(--ink); background: var(--bg);
        line-height: 1.72; -webkit-font-smoothing: antialiased; }
img   { max-width: 100%; display: block; }
a     { color: inherit; text-decoration: none; }
ul    { list-style: none; }

/* ── Layout helpers ─────────────────────────────────────── */
.container {
  width: 100%; max-width: 1140px;
  margin-inline: auto; padding-inline: var(--sp-lg);
}

.section-header {
  text-align: center;
  margin-bottom: var(--sp-2xl);
  max-width: 680px;
  margin-inline: auto;
  margin-bottom: var(--sp-2xl);
}

.section-label {
  display: inline-block;
  font-size: .72rem; font-weight: 600; letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--primary); background: var(--accent-light);
  padding: .3rem .85rem; border-radius: 999px;
  margin-bottom: var(--sp-sm);
}

.section-title {
  font-family: var(--font-head);
  font-size: clamp(1.75rem, 3vw, 2.4rem);
  font-weight: 700; line-height: 1.18;
  letter-spacing: -.02em;
  color: var(--ink);
  margin-bottom: var(--sp-sm);
}

.section-sub {
  font-size: 1rem; color: var(--ink-light);
  max-width: 580px; margin-inline: auto; line-height: 1.75;
}

/* ── Divider ────────────────────────────────────────────── */
.section-divider {
  width: 100%; height: 1px;
  background: var(--border);
  border: none; margin: 0;
}

/* ── Buttons ────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: .45rem;
  padding: .75rem 1.5rem;
  border-radius: var(--r-md);
  font-family: var(--font-body); font-size: .9rem; font-weight: 600;
  cursor: pointer; border: 1.5px solid transparent;
  transition: all var(--ease); text-decoration: none; line-height: 1;
  letter-spacing: .01em;
}
.btn:hover  { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: var(--primary); color: #fff;
  box-shadow: 0 1px 3px rgba(26,86,219,.25), 0 4px 12px rgba(26,86,219,.2);
}
.btn-primary:hover {
  background: var(--primary-dark);
  box-shadow: 0 2px 6px rgba(26,86,219,.3), 0 8px 20px rgba(26,86,219,.2);
}

.btn-outline {
  background: transparent; color: var(--primary);
  border-color: var(--primary);
}
.btn-outline:hover { background: var(--accent-light); }

.btn-white {
  background: #fff; color: var(--primary);
  box-shadow: 0 0 0 1px rgba(255,255,255,.15), 0 4px 16px rgba(0,0,0,.12);
}
.btn-white:hover { box-shadow: 0 0 0 1px rgba(255,255,255,.25), 0 8px 28px rgba(0,0,0,.18); }

.btn-ghost-white {
  background: transparent; color: #fff;
  border-color: rgba(255,255,255,.3);
}
.btn-ghost-white:hover { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.55); }

.btn-lg { padding: .95rem 1.9rem; font-size: 1rem; }

/* ── Reveal animation ───────────────────────────────────── */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .5s ease, transform .5s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }
.d1 { transition-delay: .08s; }
.d2 { transition-delay: .16s; }
.d3 { transition-delay: .24s; }
.d4 { transition-delay: .32s; }

/* ── Navbar ─────────────────────────────────────────────── */
.navbar {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.95);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  padding-block: .875rem;
  transition: box-shadow var(--ease);
}
.navbar.scrolled { box-shadow: 0 1px 12px rgba(0,0,0,.07); }
.navbar .container { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-lg); }

.nav-logo {
  font-family: var(--font-head); font-size: 1.15rem; font-weight: 700;
  color: var(--ink); display: flex; align-items: center; gap: .45rem; flex-shrink: 0;
}
.nav-logo-icon {
  width: 30px; height: 30px;
  background: var(--primary); border-radius: 7px;
  display: flex; align-items: center; justify-content: center; color: #fff;
}

.nav-links { display: flex; align-items: center; gap: 1.75rem; }
.nav-links a {
  font-size: .875rem; font-weight: 500; color: var(--ink-light);
  transition: color var(--ease);
  position: relative;
}
.nav-links a:hover { color: var(--ink); }
.nav-links a.active {
  color: var(--primary); font-weight: 600;
}
.nav-links a.active::after {
  content: '';
  position: absolute; bottom: -3px; left: 0; right: 0;
  height: 2px; background: var(--primary); border-radius: 1px;
}

.nav-burger {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 4px;
}
.nav-burger span {
  display: block; width: 22px; height: 1.5px;
  background: var(--ink-mid); border-radius: 2px;
  transition: transform var(--ease), opacity var(--ease);
}
.nav-burger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-burger.open span:nth-child(2) { opacity: 0; }
.nav-burger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

.nav-mobile {
  display: none; position: fixed; inset: 0; top: 61px;
  background: #fff; padding: var(--sp-xl) var(--sp-lg);
  flex-direction: column; gap: var(--sp-lg);
  z-index: 99; border-top: 1px solid var(--border);
}
.nav-mobile.open { display: flex; }
.nav-mobile a {
  font-size: 1.05rem; font-weight: 600; color: var(--ink);
  padding-block: var(--sp-xs); border-bottom: 1px solid var(--border);
}

/* ── Hero (shared base) ─────────────────────────────────── */
.hero {
  background: linear-gradient(145deg, #07101f 0%, #0c2255 45%, #133bb5 100%);
  color: #fff; position: relative; overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 40px 40px; pointer-events: none;
}
.hero::after {
  content: ''; position: absolute; top: -180px; right: -180px;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(26,86,219,.18) 0%, transparent 68%);
  pointer-events: none;
}
.hero .container { position: relative; z-index: 1; }

.hero-eyebrow {
  display: inline-flex; align-items: center; gap: .4rem;
  background: rgba(255,255,255,.09); border: 1px solid rgba(255,255,255,.16);
  border-radius: 999px; padding: .28rem .85rem;
  font-size: .78rem; font-weight: 500; margin-bottom: var(--sp-lg);
  letter-spacing: .01em;
}

.hero h1 {
  font-family: var(--font-head);
  font-size: clamp(2.2rem, 5.2vw, 3.8rem);
  font-weight: 800; line-height: 1.06;
  letter-spacing: -.03em;
  margin-bottom: var(--sp-lg);
}
.hero h1 .hl {
  background: linear-gradient(92deg, #93c5fd, #c4b5fd);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}

.hero-sub {
  font-size: clamp(.95rem, 1.8vw, 1.1rem); line-height: 1.8; opacity: .82; max-width: 580px;
  margin-bottom: var(--sp-xl);
}

.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-bottom: var(--sp-xl); }

.hero-trust { display: flex; flex-wrap: wrap; gap: var(--sp-lg); font-size: .8rem; opacity: .6; }
.hero-trust-item { display: flex; align-items: center; gap: .3rem; }

.hero-wave { position: absolute; bottom: -1px; left: 0; width: 100%; line-height: 0; }
.hero-wave svg { display: block; width: 100%; height: 64px; }

/* ── Booking / contact ──────────────────────────────────── */
.section-booking {
  background: linear-gradient(145deg, #07101f 0%, #0c2255 45%, #1a56db 100%);
  color: #fff; padding-block: var(--sp-3xl); position: relative; overflow: hidden;
}
.section-booking::before {
  content: ''; position: absolute; inset: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,.03) 1px, transparent 1px);
  background-size: 32px 32px; pointer-events: none;
}
.section-booking .container { position: relative; z-index: 1; }

.booking-layout {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 5rem; align-items: start;
}

.booking-info h2 {
  font-family: var(--font-head);
  font-size: clamp(1.5rem, 2.8vw, 2.1rem);
  font-weight: 700; line-height: 1.22; letter-spacing: -.02em;
  margin-bottom: var(--sp-md);
}
.booking-info > p { opacity: .8; line-height: 1.78; margin-bottom: var(--sp-lg); font-size: .95rem; }

.booking-points { display: flex; flex-direction: column; gap: .6rem; margin-bottom: var(--sp-xl); }
.booking-point  { display: flex; align-items: center; gap: .55rem; font-size: .9rem; opacity: .88; }

.cal-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  width: 100%; padding: .95rem 1.5rem;
  background: #fff; color: var(--primary);
  border-radius: var(--r-md); border: none;
  font-family: var(--font-body); font-weight: 700; font-size: .95rem;
  box-shadow: 0 2px 12px rgba(0,0,0,.15); cursor: pointer;
  transition: all var(--ease); text-decoration: none;
  margin-bottom: var(--sp-sm);
}
.cal-btn:hover { box-shadow: 0 4px 24px rgba(0,0,0,.22); transform: translateY(-1px); }
.cal-note { font-size: .73rem; opacity: .45; text-align: center; }

.booking-form {
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.11);
  border-radius: var(--r-lg); padding: var(--sp-xl);
}
.form-title { font-family: var(--font-head); font-size: 1rem; font-weight: 700; margin-bottom: var(--sp-lg); opacity: .9; }

.form-group { margin-bottom: var(--sp-md); }
.form-group label { display: block; font-size: .82rem; font-weight: 500; margin-bottom: .4rem; opacity: .85; }
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%; padding: .65rem .95rem; border-radius: var(--r-sm);
  border: 1px solid rgba(255,255,255,.18); background: rgba(255,255,255,.08);
  color: #fff; font-family: var(--font-body); font-size: .9rem;
  transition: border-color var(--ease), background var(--ease); outline: none;
}
.form-group select option { background: #1344b3; color: #fff; }
.form-group input::placeholder,
.form-group textarea::placeholder { color: rgba(255,255,255,.35); }
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { border-color: rgba(255,255,255,.5); background: rgba(255,255,255,.12); }
.form-group input.err,
.form-group select.err,
.form-group textarea.err { border-color: #fca5a5; }
.form-err { display: none; font-size: .74rem; color: #fca5a5; margin-top: .3rem; }
.has-err .form-err { display: block; }
.form-group textarea { resize: vertical; min-height: 90px; }
.form-note { font-size: .72rem; opacity: .45; text-align: center; margin-top: var(--sp-sm); }
.form-success { display: none; text-align: center; padding: var(--sp-xl); }
.form-success-icon {
  width: 56px; height: 56px; background: rgba(255,255,255,.1); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto var(--sp-md); color: #86efac;
}

/* ── FAQ ─────────────────────────────────────────────────── */
.section-faq { padding-block: var(--sp-3xl); background: var(--bg); }
.faq-list { max-width: 700px; margin-inline: auto; }
details.faq { border-bottom: 1px solid var(--border); }
details.faq summary {
  list-style: none; cursor: pointer;
  padding: 1.1rem 0;
  display: flex; align-items: center; justify-content: space-between; gap: var(--sp-md);
  font-weight: 600; font-size: .95rem; color: var(--ink-mid);
  transition: color var(--ease); user-select: none;
}
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary:hover { color: var(--primary); }
details.faq[open] summary { color: var(--primary); }
.faq-chevron { flex-shrink: 0; color: var(--ink-light); transition: transform var(--ease); }
details.faq[open] .faq-chevron { transform: rotate(180deg); }
.faq-body { padding-bottom: var(--sp-lg); color: var(--ink-light); line-height: 1.78; font-size: .9rem; }

/* ── Browser mockup ─────────────────────────────────────── */
.browser {
  background: #fff; border-radius: var(--r-lg);
  box-shadow: 0 0 0 1px rgba(0,0,0,.07), 0 8px 32px rgba(0,0,0,.1); overflow: hidden;
}
.browser-bar {
  background: #f3f4f6; border-bottom: 1px solid var(--border);
  padding: .6rem var(--sp-md); display: flex; align-items: center; gap: var(--sp-sm);
}
.browser-dots { display: flex; gap: 6px; }
.browser-dot  { width: 9px; height: 9px; border-radius: 50%; }
.browser-dot:nth-child(1) { background: #ef4444; }
.browser-dot:nth-child(2) { background: #f59e0b; }
.browser-dot:nth-child(3) { background: #22c55e; }
.browser-url {
  flex: 1; background: #fff; border: 1px solid var(--border); border-radius: 5px;
  padding: .2rem .6rem; font-size: .73rem; color: var(--ink-light);
}
.browser-body { padding: var(--sp-md); background: var(--bg-alt); display: flex; flex-direction: column; gap: .55rem; }
.mock-topbar {
  display: flex; align-items: center; justify-content: space-between;
  background: #fff; border-radius: var(--r-sm); padding: .5rem var(--sp-sm);
  box-shadow: 0 0 0 1px rgba(0,0,0,.05);
}
.mock-topbar-title { font-weight: 600; font-size: .78rem; color: var(--ink); }
.mock-badge-red { background: #fef2f2; color: #dc2626; font-size: .68rem; font-weight: 700; padding: .14rem .48rem; border-radius: 999px; }
.mock-slot {
  display: flex; align-items: center; gap: .5rem;
  background: #fff; border-radius: var(--r-sm); padding: .42rem .6rem;
  font-size: .76rem; box-shadow: 0 0 0 1px rgba(0,0,0,.05);
}
.mock-time  { color: var(--ink-light); font-size: .7rem; min-width: 48px; }
.mock-name  { flex: 1; font-weight: 500; color: var(--ink); }
.mock-status { font-size: .66rem; font-weight: 700; padding: .14rem .44rem; border-radius: 999px; }
.s-ok   { background: #dcfce7; color: #16a34a; }
.s-open { background: #fef2f2; color: #dc2626; }
.s-pend { background: #fef9c3; color: #854d0e; }

/* ── Check list ─────────────────────────────────────────── */
.check-list { display: flex; flex-direction: column; gap: .6rem; margin-bottom: var(--sp-xl); }
.check-item { display: flex; align-items: flex-start; gap: .55rem; font-size: .92rem; color: var(--ink); }
.chk { color: var(--success); flex-shrink: 0; margin-top: 3px; }

/* ── Diff rows ──────────────────────────────────────────── */
.diff-col-head { font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; margin-bottom: .75rem; }
.diff-bad .diff-col-head  { color: var(--ink-light); }
.diff-good .diff-col-head { color: var(--primary); }
.diff-row {
  display: flex; align-items: flex-start; gap: .55rem;
  padding: .55rem 0; border-bottom: 1px solid var(--border);
  font-size: .9rem; line-height: 1.55;
}
.diff-row:last-child { border-bottom: none; }
.diff-bad  .diff-row { color: var(--ink-light); }
.diff-good .diff-row { color: var(--ink); font-weight: 500; }
.ico-bad  { color: #f87171; flex-shrink: 0; margin-top: 2px; }
.ico-good { color: var(--success); flex-shrink: 0; margin-top: 2px; }

/* ── Tag chip ───────────────────────────────────────────── */
.tag {
  display: inline-block; margin-top: var(--sp-sm);
  font-size: .7rem; font-weight: 600; color: var(--primary); background: var(--accent-light);
  padding: .14rem .5rem; border-radius: 999px;
}

/* ── Footer ─────────────────────────────────────────────── */
.footer {
  background: var(--ink); color: rgba(255,255,255,.45);
  padding-block: var(--sp-xl); font-size: .82rem;
  border-top: 1px solid rgba(255,255,255,.06);
}
.footer .container {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: var(--sp-md);
}
.footer-logo { font-family: var(--font-head); font-weight: 700; color: rgba(255,255,255,.85); font-size: .95rem; }
.footer-links { display: flex; gap: var(--sp-lg); }
.footer-links a { color: rgba(255,255,255,.35); transition: color var(--ease); }
.footer-links a:hover { color: rgba(255,255,255,.75); }
.footer-note { font-size: .75rem; color: rgba(255,255,255,.28); }

/* ── Responsive ─────────────────────────────────────────── */
@media (min-width: 768px) {
  .nav-burger { display: none; }
  .nav-links  { display: flex; }
}

@media (max-width: 767px) {
  .nav-links  { display: none; }
  .nav-burger { display: flex; }
  .hero-actions { flex-direction: column; align-items: flex-start; }
  .booking-layout { grid-template-columns: 1fr; }
  .footer .container { flex-direction: column; text-align: center; }
  .footer-links { justify-content: center; }
}
