/* ClubCore marketing site — styles.css
   Emerald / deep-green identity matching the product. Light-first, premium B2B. */

:root {
  --green-900: #064E3B;
  --green-800: #065f46;
  --green-700: #047857;
  --green-600: #059669;
  --green-500: #10B981;
  --green-400: #34D399;
  --green-300: #6ee7b7;

  --ink: #0b1e17;
  --body: #33544a;
  --muted: #5f7d71;
  --line: #dbe8e2;
  --line-soft: #e8f1ec;

  --paper: #ffffff;
  --surface: #f4f9f6;
  --surface-2: #eef6f1;

  --shadow-sm: 0 1px 2px rgba(6,78,59,.06), 0 1px 3px rgba(6,78,59,.05);
  --shadow-md: 0 8px 24px rgba(6,78,59,.10), 0 2px 6px rgba(6,78,59,.06);
  --shadow-lg: 0 24px 60px rgba(6,78,59,.16), 0 6px 18px rgba(6,78,59,.08);
  --shadow-hero: 0 40px 90px rgba(4,44,33,.28), 0 12px 30px rgba(4,44,33,.16);

  --radius: 16px;
  --radius-lg: 22px;
  --maxw: 1160px;

  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: hidden; }
body {
  font-family: var(--font);
  color: var(--body);
  background: var(--paper);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { color: var(--ink); line-height: 1.12; letter-spacing: -0.02em; font-weight: 800; }
:focus-visible { outline: 3px solid var(--green-500); outline-offset: 2px; border-radius: 6px; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.eyebrow {
  display: inline-block; font-size: 12.5px; font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; color: var(--green-700);
}
.center { text-align: center; }
.muted { color: var(--muted); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-weight: 700; font-size: 15px; padding: 13px 22px; border-radius: 12px;
  border: 1px solid transparent; cursor: pointer; transition: transform .12s ease, box-shadow .15s ease, background .15s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: linear-gradient(135deg, var(--green-400), var(--green-600)); color: #052b1e; box-shadow: 0 6px 18px rgba(5,150,105,.32); }
.btn-primary:hover { box-shadow: 0 10px 26px rgba(5,150,105,.42); transform: translateY(-1px); }
.btn-ghost { background: #fff; color: var(--green-900); border-color: var(--line); box-shadow: var(--shadow-sm); }
.btn-ghost:hover { border-color: var(--green-400); color: var(--green-800); }
.btn-ondark { background: rgba(255,255,255,.10); color: #fff; border-color: rgba(255,255,255,.28); }
.btn-ondark:hover { background: rgba(255,255,255,.18); }
.btn-lg { padding: 16px 30px; font-size: 16px; }
.arrow { transition: transform .15s ease; }
.btn:hover .arrow { transform: translateX(3px); }

/* ---------- Header ---------- */
header.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.82); backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line-soft);
}
.nav-inner { display: flex; align-items: center; gap: 20px; height: 66px; }
.brand { display: flex; align-items: center; gap: 11px; font-weight: 800; font-size: 20px; color: var(--ink); letter-spacing: -.02em; }
.brand img { width: 34px; height: 34px; }
.brand .wm { color: var(--ink); }
.brand .wm span { color: var(--green-600); }
.nav-links { display: flex; gap: 26px; margin-left: 14px; }
.nav-links a { font-size: 14.5px; font-weight: 600; color: var(--body); transition: color .12s; }
.nav-links a:hover { color: var(--green-700); }
.nav-cta { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.nav-cta .btn { padding: 10px 18px; font-size: 14px; }
.hamburger { display: none; margin-left: auto; background: none; border: 1px solid var(--line); border-radius: 10px; width: 42px; height: 42px; cursor: pointer; }
.hamburger span { display: block; width: 18px; height: 2px; background: var(--ink); margin: 4px auto; border-radius: 2px; transition: .2s; }

/* ---------- Hero ---------- */
.hero {
  position: relative; padding: 74px 0 88px;
  background:
    radial-gradient(1200px 500px at 50% -8%, rgba(52,211,153,.14), transparent 60%),
    linear-gradient(180deg, #f6fbf8 0%, #ffffff 62%);
  overflow: hidden;
}
.hero h1 { font-size: clamp(34px, 5.4vw, 58px); letter-spacing: -.03em; max-width: 15ch; margin: 0 auto 20px; }
.hero h1 .accent { background: linear-gradient(120deg, var(--green-600), var(--green-400)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.hero .sub { font-size: clamp(16px, 2vw, 20px); max-width: 60ch; margin: 0 auto 30px; color: var(--body); }
.hero-cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.hero-note { margin-top: 18px; font-size: 13.5px; color: var(--muted); }
.hero-note b { color: var(--green-700); }
.hero-shot { margin: 52px auto 0; max-width: 1000px; position: relative; }
.hero-shot img { width: 100%; border-radius: var(--radius-lg); box-shadow: var(--shadow-hero); border: 1px solid rgba(6,78,59,.10); }
.hero-shot::after { /* soft floor glow */
  content: ""; position: absolute; inset: auto 8% -30px 8%; height: 60px;
  background: radial-gradient(ellipse at center, rgba(5,150,105,.22), transparent 70%); filter: blur(10px); z-index: -1;
}

/* ---------- Trust / replace strip ---------- */
.replace { border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); background: var(--surface); padding: 26px 0; }
.replace .row { display: flex; align-items: center; justify-content: center; gap: 14px 30px; flex-wrap: wrap; text-align: center; }
.replace .lbl { font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.replace .names { display: flex; gap: 14px 26px; flex-wrap: wrap; justify-content: center; }
.replace .names span { font-size: 19px; font-weight: 800; color: #9db3aa; letter-spacing: -.01em; }
.replace .arrowpill { font-weight: 800; color: var(--green-600); }
.replace .names .cc { color: var(--green-900); }

/* ---------- Section scaffolding ---------- */
section.block { padding: 84px 0; }
.section-head { max-width: 720px; margin: 0 auto 48px; text-align: center; }
.section-head h2 { font-size: clamp(28px, 3.6vw, 42px); margin: 12px 0 14px; }
.section-head p { font-size: 17px; color: var(--body); }
.alt { background: var(--surface); }

/* ---------- Differentiators ---------- */
.pillars { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.pillar { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 22px; box-shadow: var(--shadow-sm); transition: transform .15s, box-shadow .15s; }
.pillar:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.pill-ico { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; margin-bottom: 16px;
  background: linear-gradient(135deg, rgba(52,211,153,.18), rgba(5,150,105,.12)); color: var(--green-700); }
.pill-ico svg { width: 24px; height: 24px; }
.pillar h3 { font-size: 18px; margin-bottom: 8px; }
.pillar p { font-size: 14.5px; color: var(--body); }

/* ---------- Feature split ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split.rev .txt { order: 2; }
.split h2 { font-size: clamp(26px, 3.2vw, 36px); margin: 12px 0 16px; }
.split p.lead { font-size: 17px; color: var(--body); margin-bottom: 22px; }
.feat-list { list-style: none; display: grid; gap: 12px; }
.feat-list li { position: relative; padding-left: 32px; font-size: 15.5px; color: var(--ink); font-weight: 500; }
.feat-list li::before { content: ""; position: absolute; left: 0; top: 2px; width: 21px; height: 21px; border-radius: 50%;
  background: var(--green-500) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='13' height='13' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center/13px no-repeat; }
.split .shot img { border-radius: var(--radius); box-shadow: var(--shadow-lg); border: 1px solid var(--line); }
.split .shot { position: relative; }

/* ---------- Flow (cart ordering) ---------- */
.flow { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 8px; }
.fstep { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 20px; position: relative; box-shadow: var(--shadow-sm); }
.fstep .n { position: absolute; top: -14px; left: 20px; width: 30px; height: 30px; border-radius: 50%; font-weight: 800; font-size: 14px;
  color: #fff; background: linear-gradient(135deg, var(--green-400), var(--green-600)); display: grid; place-items: center; box-shadow: 0 4px 10px rgba(5,150,105,.35); }
.fstep h4 { font-size: 16px; margin: 10px 0 7px; }
.fstep p { font-size: 14px; color: var(--body); }
.flow-shots { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 40px; }
.flow-shots img { border-radius: var(--radius); box-shadow: var(--shadow-md); border: 1px solid var(--line); width: 100%; }
.flow-shots .cap { font-size: 13px; color: var(--muted); margin-top: 10px; text-align: center; }
.chips { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 40px; }
.chip { background: var(--green-900); color: #fff; border-radius: var(--radius); padding: 20px 22px; }
.chip b { display: block; color: var(--green-400); font-size: 16px; margin-bottom: 5px; }
.chip span { font-size: 13.5px; color: #cfe9de; }

/* ---------- Modules grid ---------- */
.modules { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.mod { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 20px 20px; box-shadow: var(--shadow-sm); transition: border-color .15s, transform .15s; }
.mod:hover { border-color: var(--green-400); transform: translateY(-2px); }
.mod .mi { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; margin-bottom: 12px; color: var(--green-700); background: var(--surface-2); }
.mod .mi svg { width: 20px; height: 20px; }
.mod h4 { font-size: 15.5px; margin-bottom: 5px; }
.mod p { font-size: 13.3px; color: var(--body); line-height: 1.5; }
.mod-note { text-align: center; margin-top: 28px; font-size: 14px; color: var(--muted); }

/* ---------- Comparison ---------- */
.compare { background: var(--green-900); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); }
.compare table { width: 100%; border-collapse: collapse; color: #eafaf3; }
.compare th, .compare td { text-align: left; padding: 16px 22px; font-size: 15px; border-bottom: 1px solid rgba(255,255,255,.10); }
.compare thead th { font-size: 13px; letter-spacing: .06em; text-transform: uppercase; color: #a9d7c6; font-weight: 700; }
.compare thead th.cc { color: var(--green-400); }
.compare td.feat { font-weight: 600; color: #fff; }
.compare td.cc { color: #fff; font-weight: 600; }
.compare td.leg { color: #a7c4b8; }
.compare .tick { color: var(--green-400); font-weight: 800; }
.compare .cross { color: #7fa093; }
.compare-scroll { overflow-x: auto; }

/* ---------- Pricing ---------- */
.pricing { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: stretch; }
.plan { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 30px 26px; display: flex; flex-direction: column; box-shadow: var(--shadow-sm); }
.plan.feature { border: 2px solid var(--green-500); box-shadow: var(--shadow-md); position: relative; }
.plan.feature .tag { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); background: var(--green-600); color: #fff; font-size: 12px; font-weight: 700; padding: 5px 14px; border-radius: 20px; }
.plan h3 { font-size: 20px; margin-bottom: 4px; }
.plan .who { font-size: 13.5px; color: var(--muted); margin-bottom: 18px; }
.plan .price { font-size: 40px; font-weight: 800; color: var(--ink); letter-spacing: -.03em; }
.plan .price small { font-size: 15px; font-weight: 600; color: var(--muted); }
.plan ul { list-style: none; margin: 20px 0 24px; display: grid; gap: 10px; }
.plan li { font-size: 14px; padding-left: 26px; position: relative; color: var(--body); }
.plan li::before { content: ""; position: absolute; left: 0; top: 3px; width: 17px; height: 17px; border-radius: 50%;
  background: var(--surface-2) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='11' height='11' viewBox='0 0 24 24' fill='none' stroke='%23059669' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center/11px no-repeat; }
.plan .btn { margin-top: auto; width: 100%; }
.migrate { margin-top: 26px; background: linear-gradient(135deg, rgba(52,211,153,.14), rgba(5,150,105,.08)); border: 1px solid var(--green-300); border-radius: var(--radius); padding: 22px 26px; text-align: center; }
.migrate b { color: var(--green-800); font-size: 18px; }
.migrate p { font-size: 14.5px; color: var(--body); margin-top: 4px; }

/* ---------- Final CTA ---------- */
.finalcta { padding: 90px 0; background:
  radial-gradient(900px 400px at 50% 120%, rgba(52,211,153,.18), transparent 60%), var(--green-900); color: #fff; text-align: center; }
.finalcta h2 { color: #fff; font-size: clamp(30px, 4vw, 46px); margin-bottom: 16px; }
.finalcta p { color: #cfe9de; font-size: 18px; max-width: 56ch; margin: 0 auto 30px; }
.finalcta .hero-cta .btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.35); }
.finalcta .hero-cta .btn-ghost:hover { background: rgba(255,255,255,.10); }
.finalcta .fine { margin-top: 22px; font-size: 13.5px; color: #8fcdb7; }
.finalcta .fine a { color: var(--green-300); font-weight: 600; }

/* ---------- Footer ---------- */
footer { background: #052b1e; color: #a7c4b8; padding: 50px 0 34px; }
.foot-top { display: flex; justify-content: space-between; gap: 30px; flex-wrap: wrap; align-items: flex-start; }
.foot-brand { display: flex; align-items: center; gap: 11px; color: #fff; font-weight: 800; font-size: 19px; }
.foot-brand img { width: 32px; height: 32px; }
.foot-brand .wm { color: #fff; }
.foot-brand .wm span { color: var(--green-400); }
.foot-tag { margin-top: 12px; font-size: 14px; max-width: 34ch; color: #8fb6a7; }
.foot-cols { display: flex; gap: 60px; flex-wrap: wrap; }
.foot-col h5 { color: #dcefe6; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 12px; }
.foot-col a, .foot-col p { display: block; font-size: 14px; color: #a7c4b8; margin-bottom: 8px; }
.foot-col a:hover { color: var(--green-300); }
.foot-bottom { border-top: 1px solid rgba(255,255,255,.10); margin-top: 36px; padding-top: 22px; display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; font-size: 13px; color: #79978b; }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .pillars { grid-template-columns: repeat(2, 1fr); }
  .modules { grid-template-columns: repeat(2, 1fr); }
  .flow { grid-template-columns: repeat(2, 1fr); row-gap: 30px; }
  .chips { grid-template-columns: 1fr; }
  .split { grid-template-columns: 1fr; gap: 32px; }
  .split.rev .txt { order: 0; }
  .split .shot { order: -1; }
  .pricing { grid-template-columns: 1fr; max-width: 460px; margin: 0 auto; }
  .nav-links { display: none; }
  .nav-cta { display: none; }
  .hamburger { display: block; }
  header.nav.open .nav-links { display: flex; position: absolute; top: 66px; left: 0; right: 0; background: #fff; flex-direction: column; padding: 18px 24px; gap: 16px; border-bottom: 1px solid var(--line); box-shadow: var(--shadow-md); }
  header.nav.open .nav-cta { display: flex; position: absolute; top: calc(66px + 150px); left: 0; right: 0; background: #fff; padding: 0 24px 20px; flex-direction: column; box-shadow: var(--shadow-md); }
  header.nav.open .nav-cta .btn { width: 100%; }
}
@media (max-width: 560px) {
  .pillars, .modules, .flow, .flow-shots { grid-template-columns: 1fr; }
  section.block { padding: 60px 0; }
  .replace .row { flex-direction: column; }
  .foot-top { flex-direction: column; }
}

/* ---------- Dark mode (bonus, theme-aware) ---------- */
@media (prefers-color-scheme: dark) {
  :root {
    --ink: #eafaf3; --body: #b9d4c9; --muted: #86a89a;
    --line: #1d3b30; --line-soft: #16302699;
    --paper: #08201a; --surface: #0b271f; --surface-2: #0f3125;
    --shadow-sm: 0 1px 2px rgba(0,0,0,.4);
    --shadow-md: 0 8px 24px rgba(0,0,0,.5);
    --shadow-lg: 0 24px 60px rgba(0,0,0,.55);
  }
  body { background: var(--paper); }
  header.nav { background: rgba(8,32,26,.82); border-bottom-color: #14352a; }
  .brand, h1,h2,h3,h4 { color: var(--ink); }
  .hero { background: radial-gradient(1200px 500px at 50% -8%, rgba(52,211,153,.10), transparent 60%), linear-gradient(180deg,#0a231c,#08201a); }
  .btn-ghost { background: #0e2b22; color: #eafaf3; border-color: #1d3b30; }
  .pillar, .fstep, .mod, .plan, .split .shot img { background: #0c261e; }
  .mod .mi, .pill-ico { background: #123528; }
  .replace, .alt { background: #0a231c; }
  header.nav.open .nav-links, header.nav.open .nav-cta { background: #0a231c; }
}
