*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --ink:     #0e1117;
  --ink-2:   #3a3f4b;
  --ink-3:   #7a7f8e;
  --surface: #ffffff;
  --surface-2: #f5f6f8;
  --surface-3: #eceef2;
  --accent:  #00a84a;
  --accent-2:#388E3C;
  --accent-glow: rgba(0,168,74,.12);
  --green:   #00a84a;
  --radius:  14px;
  --shadow:  0 4px 24px rgba(14,17,23,.08);
  --shadow-lg: 0 16px 56px rgba(14,17,23,.12);
}

html { scroll-behavior: smooth; }
body {
  font-family: 'DM Sans', sans-serif;
  background: var(--surface);
  color: var(--ink);
  line-height: 1.6;
  overflow-x: hidden;
}

/* ── NAV ── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 5%; height: 68px;
  background: rgba(255,255,255,.85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--surface-3);
}
.nav-logo {
  font-family: 'DM Serif Display', serif;
  font-size: 1.4rem; color: var(--ink);
  text-decoration: none; letter-spacing: -.01em;
}
.nav-logo span { color: var(--accent); }
.nav-links { display: flex; gap: 2rem; list-style: none; }
.nav-links a {
  font-size: .9rem; font-weight: 500;
  color: var(--ink-2); text-decoration: none;
  transition: color .2s;
}
.nav-links a:hover { color: var(--accent); }
.nav-links a.active { color: var(--accent); }
.nav-cta {
  background: var(--ink); color: #fff;
  padding: .55rem 1.4rem; border-radius: 8px;
  font-size: .875rem; font-weight: 600;
  text-decoration: none;
  transition: background .2s, transform .15s;
}
.nav-cta:hover { background: var(--accent); transform: translateY(-1px); }

/* ── PAGE HERO ── */
.page-hero {
  padding: 140px 5% 80px;
  text-align: center;
  position: relative; overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(var(--surface-3) 1px, transparent 1px),
    linear-gradient(90deg, var(--surface-3) 1px, transparent 1px);
  background-size: 48px 48px;
  opacity: .5; z-index: 0;
}
.page-hero::after {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 70% 60% at 50% 40%, rgba(255,255,255,0) 0%, var(--surface) 75%);
  z-index: 1;
}
.page-hero-content { position: relative; z-index: 2; max-width: 680px; margin: 0 auto; }
.section-label {
  font-size: .75rem; font-weight: 600; color: var(--accent);
  letter-spacing: .1em; text-transform: uppercase;
  margin-bottom: .75rem; display: block;
}
.page-hero h1 {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(2.4rem, 5vw, 4rem);
  letter-spacing: -.03em; line-height: 1.1;
  margin-bottom: 1rem;
  animation: fadeUp .6s ease both;
}
.page-hero h1 em { font-style: italic; color: var(--accent); }
.page-hero p {
  font-size: 1.1rem; color: var(--ink-2);
  margin-bottom: 2.5rem;
  animation: fadeUp .6s .1s ease both;
}

/* feature nav pills */
.feature-nav {
  display: flex; flex-wrap: wrap; gap: .6rem; justify-content: center;
  position: relative; z-index: 2;
  animation: fadeUp .6s .2s ease both;
}
.feature-pill {
  padding: .45rem 1.1rem; border-radius: 999px;
  border: 1.5px solid var(--surface-3);
  font-size: .85rem; font-weight: 500; color: var(--ink-2);
  text-decoration: none; cursor: pointer;
  transition: all .2s;
  background: var(--surface);
}
.feature-pill:hover, .feature-pill.active {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-glow);
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── FEATURE BLOCKS ── */
.feature-block {
  max-width: 1100px; margin: 0 auto;
  padding: 6rem 5%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
  border-bottom: 1px solid var(--surface-3);
}
.feature-block:nth-child(even) .feature-visual { order: -1; }
.feature-block:last-child { border-bottom: none; }

.feature-tag {
  display: inline-flex; align-items: center; gap: .4rem;
  font-size: .75rem; font-weight: 600; color: var(--accent);
  letter-spacing: .08em; text-transform: uppercase;
  margin-bottom: .75rem;
}
.feature-block h2 {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  letter-spacing: -.025em; line-height: 1.15;
  margin-bottom: 1rem;
}
.feature-block h2 em { font-style: italic; color: var(--accent); }
.feature-block > div > p {
  font-size: .975rem; color: var(--ink-2);
  line-height: 1.75; margin-bottom: 1.75rem;
}

.check-list { list-style: none; display: flex; flex-direction: column; gap: .65rem; }
.check-list li {
  display: flex; align-items: flex-start; gap: .75rem;
  font-size: .9rem; color: var(--ink-2);
}
.check-list li::before {
  content: '✓';
  width: 20px; height: 20px; border-radius: 50%;
  background: rgba(0,168,120,.1);
  color: var(--green); font-weight: 700; font-size: .7rem;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; margin-top: 2px;
}

/* ── VISUAL MOCKUPS ── */
.feature-visual {
  border-radius: 16px; overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--surface-3);
  background: var(--ink);
}

/* shared mock pieces */
.mock-bar {
  background: #1a1d24;
  padding: .65rem 1rem;
  display: flex; align-items: center; gap: .5rem;
  border-bottom: 1px solid rgba(255,255,255,.05);
}
.dot { width: 10px; height: 10px; border-radius: 50%; }
.dot.r{background:#ff5f57;} .dot.y{background:#febc2e;} .dot.g{background:#28c840;}
.mock-bar-title {
  flex: 1; text-align: center;
  font-size: .7rem; color: #4a5060;
}

/* members mock */
.members-mock { background: #13151c; }
.members-mock-header {
  padding: 1rem 1.25rem .75rem;
  display: flex; justify-content: space-between; align-items: center;
  border-bottom: 1px solid rgba(255,255,255,.05);
}
.members-mock-title { font-size: .8rem; color: #c9cdd6; font-weight: 600; }
.mock-search {
  background: #1a1d24; border: 1px solid rgba(255,255,255,.08);
  border-radius: 6px; padding: .3rem .7rem;
  font-size: .65rem; color: #6b7280;
  display: flex; align-items: center; gap: .4rem;
}
.member-row {
  display: flex; align-items: center; gap: .85rem;
  padding: .75rem 1.25rem;
  border-bottom: 1px solid rgba(255,255,255,.03);
}
.member-avatar {
  width: 32px; height: 32px; border-radius: 50%;
  flex-shrink: 0; font-size: .7rem;
  display: flex; align-items: center; justify-content: center;
  font-weight: 600; color: #fff;
}
.member-info { flex: 1; }
.member-name { font-size: .75rem; color: #c9cdd6; font-weight: 500; }
.member-plan { font-size: .63rem; color: #6b7280; }
.pill {
  font-size: .6rem; font-weight: 600; border-radius: 999px;
  padding: .15rem .55rem;
}
.pill.active  { background: rgba(0,168,120,.15); color: #00a878; }
.pill.expired { background: rgba(239,68,68,.12);  color: #ef4444; }
.pill.warn    { background: rgba(245,158,11,.12); color: #f59e0b; }
.expiry-strip {
  margin: .5rem .75rem;
  background: rgba(245,158,11,.08);
  border: 1px solid rgba(245,158,11,.2);
  border-radius: 8px; padding: .6rem .85rem;
  font-size: .65rem; color: #f59e0b;
}

/* classes mock */
.classes-mock { background: #13151c; }
.class-row {
  display: grid; grid-template-columns: 1fr 1fr 80px;
  padding: .6rem 1.25rem; align-items: center;
  border-bottom: 1px solid rgba(255,255,255,.03);
  font-size: .72rem;
}
.class-row.header { font-size: .6rem; color: #4a5060; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.class-name { color: #c9cdd6; font-weight: 500; }
.class-trainer { color: #6b7280; }
.cap-bar { display: flex; align-items: center; gap: .4rem; }
.cap-track {
  flex: 1; height: 4px; border-radius: 999px;
  background: rgba(255,255,255,.06);
  overflow: hidden;
}
.cap-fill { height: 100%; border-radius: 999px; }
.cap-fill.green  { background: #00a878; }
.cap-fill.orange { background: #f59e0b; }
.cap-fill.red    { background: #ef4444; }
.cap-text { font-size: .6rem; white-space: nowrap; }
.cap-text.green  { color: #00a878; }
.cap-text.orange { color: #f59e0b; }
.cap-text.red    { color: #ef4444; }

/* POS mock */
.pos-mock { background: #13151c; }
.pos-body { display: grid; grid-template-columns: 1fr 140px; min-height: 260px; }
.pos-products { padding: .75rem; display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; }
.pos-product {
  background: #1a1d24; border-radius: 8px; padding: .6rem;
  border: 1px solid rgba(255,255,255,.05);
  cursor: pointer;
  transition: border-color .2s;
}
.pos-product:hover { border-color: rgba(0,168,74,.3); }
.pos-prod-icon { font-size: 1.3rem; margin-bottom: .3rem; }
.pos-prod-name { font-size: .65rem; color: #c9cdd6; font-weight: 500; }
.pos-prod-price { font-size: .6rem; color: #00a878; }
.pos-cart {
  background: #1a1d24; border-left: 1px solid rgba(255,255,255,.05);
  padding: .75rem; display: flex; flex-direction: column;
}
.pos-cart-title { font-size: .65rem; color: #6b7280; margin-bottom: .6rem; font-weight: 600; }
.cart-item { font-size: .62rem; color: #c9cdd6; padding: .3rem 0; border-bottom: 1px solid rgba(255,255,255,.04); display: flex; justify-content: space-between; }
.cart-total { font-size: .72rem; color: #e2e4e9; font-weight: 700; margin-top: auto; padding-top: .5rem; display: flex; justify-content: space-between; }
.checkout-btn {
  background: var(--accent); color: #fff;
  border-radius: 6px; padding: .4rem;
  font-size: .62rem; font-weight: 700; text-align: center;
  margin-top: .4rem;
}

/* payroll mock */
.payroll-mock { background: #13151c; }
.payroll-header {
  padding: 1rem 1.25rem .5rem;
  display: flex; justify-content: space-between; align-items: center;
}
.payroll-title { font-size: .8rem; color: #c9cdd6; font-weight: 600; }
.export-btn {
  background: rgba(0,168,74,.15); color: #6bcf96;
  border-radius: 6px; padding: .3rem .7rem;
  font-size: .62rem; font-weight: 600; cursor: pointer;
}
.payroll-row {
  display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr;
  padding: .55rem 1.25rem; align-items: center;
  border-bottom: 1px solid rgba(255,255,255,.03);
  font-size: .7rem;
}
.payroll-row.header { font-size: .58rem; color: #4a5060; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.payroll-name { color: #c9cdd6; font-weight: 500; }
.payroll-role { color: #6b7280; }
.payroll-hours { color: #6b7280; }
.payroll-pay { color: #00a878; font-weight: 600; }
.overtime-tag {
  display: inline-block; background: rgba(245,158,11,.12);
  color: #f59e0b; border-radius: 4px;
  font-size: .54rem; padding: .1rem .35rem; margin-left: .3rem;
}

/* financials mock */
.fin-mock { background: #13151c; }
.fin-kpis { display: grid; grid-template-columns: repeat(3,1fr); gap: .5rem; padding: .75rem; }
.fin-kpi {
  background: #1a1d24; border-radius: 8px; padding: .65rem .75rem;
  border: 1px solid rgba(255,255,255,.05);
}
.fin-kpi-label { font-size: .58rem; color: #4a5060; margin-bottom: .2rem; }
.fin-kpi-val { font-size: 1rem; color: #e2e4e9; font-weight: 700; font-family: 'DM Serif Display', serif; }
.fin-kpi-val.green { color: #00a878; }
.fin-kpi-val.red { color: #ef4444; }
.fin-chart { padding: 0 .75rem .75rem; }
.fin-chart-label { font-size: .6rem; color: #4a5060; margin-bottom: .5rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.bar-chart { display: flex; align-items: flex-end; gap: .35rem; height: 70px; }
.bar-col { flex: 1; display: flex; flex-direction: column; align-items: center; gap: .3rem; }
.bar {
  width: 100%; border-radius: 4px 4px 0 0;
  background: rgba(0,168,74,.4);
  transition: background .2s;
}
.bar:hover { background: var(--accent); }
.bar.income { background: rgba(0,168,120,.4); }
.bar.income:hover { background: #00a878; }
.bar-month { font-size: .55rem; color: #4a5060; }

/* ── COMPARISON TABLE ── */
.compare-section {
  background: var(--surface-2);
  border-top: 1px solid var(--surface-3);
  padding: 7rem 5%;
}
.compare-inner { max-width: 860px; margin: 0 auto; }
.compare-inner .section-label { text-align: center; display: block; }
.compare-inner h2 {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(1.9rem, 3.5vw, 2.8rem);
  text-align: center; letter-spacing: -.025em;
  margin-bottom: .75rem;
}
.compare-inner > p { text-align: center; color: var(--ink-2); margin-bottom: 3rem; }

.compare-table {
  width: 100%; border-collapse: collapse;
  background: var(--surface);
  border-radius: 16px; overflow: hidden;
  box-shadow: var(--shadow);
}
.compare-table th {
  padding: 1rem 1.25rem;
  font-size: .8rem; font-weight: 600; color: var(--ink-3);
  background: var(--surface-2);
  text-align: left;
  border-bottom: 1px solid var(--surface-3);
}
.compare-table th:not(:first-child) { text-align: center; }
.compare-table th.ours {
  background: var(--accent-glow);
  color: var(--accent);
}
.compare-table td {
  padding: .85rem 1.25rem;
  font-size: .875rem; color: var(--ink-2);
  border-bottom: 1px solid var(--surface-3);
}
.compare-table tr:last-child td { border-bottom: none; }
.compare-table td:not(:first-child) { text-align: center; }
.compare-table td.ours { background: rgba(0,168,74,.02); }
.check-y { color: var(--green); font-size: 1rem; font-weight: 700; }
.check-n { color: var(--surface-3); font-size: 1rem; }
.check-p { color: #f59e0b; font-size: .75rem; font-weight: 600; }

/* ── CTA STRIP ── */
.cta-strip {
  background: var(--ink);
  padding: 5rem 5%;
  text-align: center;
}
.cta-strip h2 {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(1.9rem, 3.5vw, 3rem);
  color: #fff; letter-spacing: -.025em; margin-bottom: 1rem;
}
.cta-strip h2 em { color: #6bcf96; font-style: italic; }
.cta-strip p { color: #6b7280; margin-bottom: 2.5rem; font-size: 1rem; }
.btn-primary {
  display: inline-block;
  background: var(--accent); color: #fff;
  padding: .9rem 2.2rem; border-radius: 10px;
  font-size: 1rem; font-weight: 600; text-decoration: none;
  box-shadow: var(--shadow);
  transition: background .2s, transform .15s;
}
.btn-primary:hover { background: var(--accent-2); transform: translateY(-2px); }

/* ── FOOTER ── */
footer {
  padding: 3rem 5%;
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 1rem;
  border-top: 1px solid var(--surface-3);
}
.footer-logo { font-family: 'DM Serif Display', serif; font-size: 1.2rem; color: var(--ink); }
.footer-logo span { color: var(--accent); }
.footer-links { display: flex; gap: 1.5rem; }
.footer-links a { font-size: .85rem; color: var(--ink-3); text-decoration: none; }
.footer-links a:hover { color: var(--ink); }
.footer-copy { font-size: .8rem; color: var(--ink-3); }

/* reveal */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

@media (max-width: 768px) {
  .feature-block { grid-template-columns: 1fr; gap: 2.5rem; }
  .feature-block:nth-child(even) .feature-visual { order: 0; }
  .pos-body { grid-template-columns: 1fr; }
  .pos-cart { display: none; }
}