/* ==========================================================================
   FlowHub — shared design system
   Used by the standalone pages (/pricing, /features, /booking-system,
   /vs-chope, /vs-fresha, /login). index.html keeps its own inline copy.
   Tokens are kept byte-identical to index.html so the pages read as one site.
   ========================================================================== */

:root {
  --brand-emerald: #2A9D7A;
  --brand-emerald-dark: #1E7A5E;
  --brand-sage: #3DB88E;
  --brand-gold: #C9A96E;
  --gradient-brand: linear-gradient(135deg, #1E7A5E 0%, #2A9D7A 50%, #3DB88E 100%);
  --bg-primary: #080B0A;
  --bg-secondary: #0D1210;
  --surface: #111916;
  --surface-elevated: #18211D;
  --surface-glass: rgba(13,18,16,0.82);
  --text-primary: #F4EFE6;
  --text-secondary: #8A9E96;
  --text-muted: #3D5049;
  --border-default: rgba(255,255,255,0.07);
  --border-strong: rgba(255,255,255,0.14);
  --border-emerald: rgba(42,157,122,0.32);
  --danger-red: #EF4444;
  --danger-red-soft: rgba(239,68,68,0.10);
  --success-green: #10B981;
  --success-green-soft: rgba(16,185,129,0.10);
  --warning-amber: #F59E0B;
  --shadow-card: 0 1px 2px rgba(0,0,0,0.3), 0 8px 24px rgba(0,0,0,0.25);
  --shadow-card-hover: 0 4px 8px rgba(0,0,0,0.35), 0 16px 40px rgba(0,0,0,0.4);
  --shadow-emerald: 0 0 0 1px rgba(42,157,122,0.32), 0 12px 40px rgba(42,157,122,0.18);
  --radius-sm: 8px; --radius-md: 12px; --radius-lg: 16px; --radius-xl: 20px; --radius-full: 999px;
  --ease-out: cubic-bezier(0.16,1,0.3,1);
  --duration-base: 320ms;
}

html[data-theme="light"] {
  --bg-primary: #FBFBF8;
  --bg-secondary: #F1F4F1;
  --surface: #FFFFFF;
  --surface-elevated: #FFFFFF;
  --surface-glass: rgba(251,251,248,0.82);
  --text-primary: #0E1512;
  --text-secondary: #4B615B;
  --text-muted: #5E6F69;
  --border-default: rgba(15,30,24,0.09);
  --border-strong: rgba(15,30,24,0.16);
  --border-emerald: rgba(42,157,122,0.30);
  --brand-emerald: #0F7355;
  --brand-gold: #8A6D2E;
  --success-green: #0F8A5F;
  --shadow-card: 0 1px 2px rgba(16,40,30,0.05), 0 8px 24px rgba(16,40,30,0.08);
  --shadow-card-hover: 0 4px 8px rgba(16,40,30,0.08), 0 16px 40px rgba(16,40,30,0.12);
  --shadow-emerald: 0 0 0 1px rgba(42,157,122,0.35), 0 12px 40px rgba(42,157,122,0.18);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  background: var(--bg-primary); color: var(--text-primary);
  font-family: 'Plus Jakarta Sans', sans-serif; line-height: 1.6;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 48px; }
section { position: relative; overflow: hidden; }
body, nav#nav, .btn-ghost {
  transition: background var(--duration-base) var(--ease-out),
              color var(--duration-base) var(--ease-out),
              border-color var(--duration-base) var(--ease-out);
}

.eyebrow { font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--brand-emerald); margin-bottom: 16px; }
.section-title { font-size: clamp(32px,4.4vw,56px); font-weight: 800; line-height: 1.1; letter-spacing: -0.025em; color: var(--text-primary); margin-bottom: 20px; }
.section-sub { font-size: 18px; color: var(--text-secondary); line-height: 1.6; max-width: 640px; }
.text-emerald { color: var(--brand-emerald); }
.text-red { color: var(--danger-red); }
.text-green { color: var(--success-green); }
.text-gold { color: var(--brand-gold); }

.btn { display: inline-flex; align-items: center; gap: 8px; padding: 14px 24px; border-radius: var(--radius-md); font: 700 16px/1 'Plus Jakarta Sans'; cursor: pointer; border: none; transition: transform 180ms var(--ease-out), box-shadow 180ms, background 180ms; white-space: nowrap; }
.btn-primary { background: var(--gradient-brand); color: #fff; }
.btn-primary:hover { transform: translateY(-2px); box-shadow: var(--shadow-emerald); filter: brightness(1.08); }
.btn-ghost { background: transparent; color: var(--text-primary); border: 1px solid var(--border-strong); }
.btn-ghost:hover { border-color: var(--brand-emerald); color: var(--brand-emerald); }
.btn-lg { padding: 18px 32px; font-size: 18px; }
.btn:focus-visible { outline: 2px solid var(--brand-emerald); outline-offset: 3px; }

[data-animate] { opacity: 0; transform: translateY(20px); transition: opacity 700ms var(--ease-out), transform 700ms var(--ease-out); }
[data-animate].in-view { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  [data-animate] { opacity: 1; transform: none; }
}

/* ── NAV ──
   Scoped to #nav on purpose: the page also renders a <nav class="breadcrumb">,
   and a bare `nav` selector would pin that to the top too. */
nav#nav { position: fixed; top: 0; left: 0; right: 0; z-index: 100; background: var(--surface-glass); backdrop-filter: blur(18px) saturate(140%); -webkit-backdrop-filter: blur(18px) saturate(140%); border-bottom: 1px solid var(--border-default); transition: box-shadow 300ms; }
nav#nav.scrolled { box-shadow: 0 8px 24px rgba(0,0,0,0.4); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.nav-logo { font-size: 20px; font-weight: 800; letter-spacing: -0.02em; background: var(--gradient-brand); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.nav-links { display: flex; align-items: center; gap: 32px; list-style: none; }
.nav-links a { font-size: 14px; font-weight: 600; color: var(--text-secondary); transition: color 180ms; }
.nav-links a:hover { color: var(--text-primary); }
.nav-links a[aria-current="page"] { color: var(--brand-emerald); }
.nav-cta { display: flex; align-items: center; gap: 12px; }
.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 4px; }
.hamburger span { display: block; width: 22px; height: 2px; background: var(--text-primary); border-radius: 2px; transition: 300ms; }
.mobile-menu { display: none; position: fixed; inset: 0; top: 72px; background: var(--bg-primary); z-index: 99; padding: 32px 24px; flex-direction: column; gap: 4px; overflow-y: auto; }
.mobile-menu.open { display: flex; }
.mobile-menu a { display: block; padding: 16px 0; font-size: 22px; font-weight: 700; color: var(--text-primary); border-bottom: 1px solid var(--border-default); }

.theme-toggle { display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; flex-shrink: 0; margin-left: 4px; border-radius: var(--radius-full); background: transparent; border: 1px solid var(--border-strong); color: var(--text-secondary); cursor: pointer; transition: color 180ms, border-color 180ms, background 180ms; }
.theme-toggle:hover { color: var(--brand-emerald); border-color: var(--brand-emerald); background: rgba(42,157,122,0.06); }
.theme-toggle:focus-visible { outline: 2px solid var(--brand-emerald); outline-offset: 2px; }
.theme-toggle svg { width: 18px; height: 18px; }
.theme-toggle .icon-sun { display: none; }
html[data-theme="light"] .theme-toggle .icon-sun { display: block; }
html[data-theme="light"] .theme-toggle .icon-moon { display: none; }

/* ── BREADCRUMB ── */
.breadcrumb { padding-top: 96px; font-size: 13px; color: var(--text-muted); }
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.breadcrumb a { color: var(--text-secondary); }
.breadcrumb a:hover { color: var(--brand-emerald); }
.breadcrumb li[aria-current="page"] { color: var(--text-secondary); }

/* ── PAGE HERO ── */
.page-hero { padding: 32px 0 72px; background: radial-gradient(ellipse at 50% 0%, rgba(42,157,122,0.14) 0%, transparent 60%), var(--bg-primary); text-align: center; }
html[data-theme="light"] .page-hero { background: radial-gradient(ellipse at 50% 0%, rgba(42,157,122,0.10) 0%, transparent 60%), var(--bg-primary); }
.page-hero .hero-badge { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: var(--radius-full); background: var(--surface); border: 1px solid var(--border-emerald); font-size: 12px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--brand-emerald); margin-bottom: 24px; }
.page-hero .hero-badge-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--brand-emerald); box-shadow: 0 0 6px var(--brand-emerald); }
.page-hero h1 { font-size: clamp(36px,5.2vw,64px); font-weight: 800; line-height: 1.08; letter-spacing: -0.03em; max-width: 880px; margin: 0 auto 22px; }
.page-hero h1 .accent { background: var(--gradient-brand); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.page-hero .page-sub { font-size: clamp(16px,2vw,20px); color: var(--text-secondary); line-height: 1.6; max-width: 660px; margin: 0 auto 36px; }
.page-actions { display: flex; align-items: center; justify-content: center; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
.page-trust { display: flex; align-items: center; justify-content: center; gap: 8px; flex-wrap: wrap; font-size: 13px; color: var(--text-muted); }
.page-trust-sep { width: 3px; height: 3px; border-radius: 50%; background: var(--text-muted); }

/* ── GENERIC SECTION ── */
.section-pad { padding: 96px 0; }
.section-pad.alt { background: var(--bg-secondary); }
.section-head { max-width: 720px; margin: 0 auto 56px; text-align: center; }
.section-head .section-sub { margin: 0 auto; }

/* ── CARD GRID ── */
.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; }
.card { background: var(--surface); border: 1px solid var(--border-default); border-radius: var(--radius-lg); padding: 28px; box-shadow: var(--shadow-card); transition: transform 260ms var(--ease-out), box-shadow 260ms, border-color 260ms; }
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-card-hover); border-color: var(--border-emerald); }
a.card { display: block; color: inherit; }
a.card:hover h3 { color: var(--brand-emerald); }
a.card:focus-visible { outline: 2px solid var(--brand-emerald); outline-offset: 3px; }
.card p a { color: var(--brand-emerald); font-weight: 600; }
.card p a:hover { text-decoration: underline; }
.card h3 { font-size: 19px; font-weight: 700; line-height: 1.3; letter-spacing: -0.015em; margin-bottom: 10px; }
.card p { font-size: 15px; color: var(--text-secondary); }
.card-icon { width: 44px; height: 44px; border-radius: var(--radius-md); background: rgba(42,157,122,0.10); border: 1px solid var(--border-emerald); display: flex; align-items: center; justify-content: center; margin-bottom: 18px; }
.card-icon svg { width: 22px; height: 22px; fill: none; stroke: var(--brand-emerald); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ── PRICING ── */
.pricing-toggle-wrap { display: flex; justify-content: center; margin-bottom: 44px; }
.pricing-toggle { display: inline-flex; padding: 5px; border-radius: var(--radius-full); background: var(--surface); border: 1px solid var(--border-default); gap: 4px; }
.toggle-opt { padding: 9px 20px; border-radius: var(--radius-full); background: transparent; border: none; color: var(--text-secondary); font: 700 14px/1 'Plus Jakarta Sans'; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; transition: background 200ms, color 200ms; }
.toggle-opt.is-active { background: var(--gradient-brand); color: #fff; }
.annual-save { font-size: 11px; font-weight: 700; padding: 3px 7px; border-radius: var(--radius-full); background: rgba(255,255,255,0.18); }
.toggle-opt:not(.is-active) .annual-save { background: var(--success-green-soft); color: var(--success-green); }

.pricing-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 22px; align-items: start; }
.pricing-card { position: relative; background: var(--surface); border: 1px solid var(--border-default); border-radius: var(--radius-xl); padding: 32px 28px; box-shadow: var(--shadow-card); display: flex; flex-direction: column; }
.pricing-card.featured { border-color: var(--border-emerald); box-shadow: var(--shadow-emerald); }
.popular-badge { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); padding: 5px 14px; border-radius: var(--radius-full); background: var(--gradient-brand); color: #fff; font-size: 11px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; white-space: nowrap; }
.plan-name { font-size: 14px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-secondary); margin-bottom: 14px; }
.plan-price { display: flex; align-items: baseline; gap: 3px; margin-bottom: 6px; }
.plan-price .currency { font-size: 20px; font-weight: 700; color: var(--text-secondary); }
.plan-price .amount { font-size: 38px; font-weight: 800; letter-spacing: -0.03em; font-feature-settings: 'tnum'; }
.plan-price .period { font-size: 15px; color: var(--text-secondary); font-weight: 600; }
.plan-annual { font-size: 13px; color: var(--brand-gold); margin-bottom: 14px; min-height: 20px; }
.plan-tagline { font-size: 15px; font-weight: 600; color: var(--text-primary); margin-bottom: 12px; }
.plan-roi { font-size: 13.5px; color: var(--text-secondary); line-height: 1.55; }
.plan-divider { height: 1px; background: var(--border-default); margin: 22px 0; }
.plan-features-list { list-style: none; display: flex; flex-direction: column; gap: 11px; margin-bottom: 26px; flex: 1; }
.plan-feature { display: flex; gap: 10px; font-size: 14.5px; color: var(--text-secondary); line-height: 1.45; }
.plan-check { color: var(--brand-emerald); font-weight: 800; flex-shrink: 0; }
.pricing-all-plans { text-align: center; font-size: 14px; color: var(--text-secondary); margin-top: 40px; }
.pricing-all-plans strong { color: var(--text-primary); }

/* ── COMPARISON TABLE ── */
.compare-wrap { overflow-x: auto; border: 1px solid var(--border-default); border-radius: var(--radius-lg); background: var(--surface); box-shadow: var(--shadow-card); }
table.compare { width: 100%; border-collapse: collapse; min-width: 640px; }
table.compare th, table.compare td { padding: 16px 20px; text-align: left; border-bottom: 1px solid var(--border-default); font-size: 15px; vertical-align: top; }
table.compare thead th { font-size: 13px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-secondary); background: var(--bg-secondary); }
table.compare thead th.col-fh { color: var(--brand-emerald); }
table.compare tbody th { font-weight: 700; color: var(--text-primary); width: 30%; }
table.compare td { color: var(--text-secondary); }
table.compare td.win { color: var(--text-primary); background: rgba(42,157,122,0.05); }
table.compare tr:last-child th, table.compare tr:last-child td { border-bottom: none; }
.tick { color: var(--success-green); font-weight: 800; margin-right: 7px; }
.cross { color: var(--danger-red); font-weight: 800; margin-right: 7px; }

/* ── STAT STRIP ── */
.stat-strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 20px; }
.stat { background: var(--surface); border: 1px solid var(--border-default); border-radius: var(--radius-lg); padding: 26px 24px; text-align: center; }
.stat-num { font-size: 36px; font-weight: 800; letter-spacing: -0.03em; background: var(--gradient-brand); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; font-feature-settings: 'tnum'; }
.stat-label { font-size: 14px; color: var(--text-secondary); margin-top: 6px; }

/* ── STEPS ── */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; }
.step { background: var(--surface); border: 1px solid var(--border-default); border-radius: var(--radius-lg); padding: 28px; }
.step-num { width: 38px; height: 38px; border-radius: var(--radius-full); background: var(--gradient-brand); color: #fff; font-weight: 800; font-size: 16px; display: flex; align-items: center; justify-content: center; margin-bottom: 18px; }
.step h3 { font-size: 18px; font-weight: 700; letter-spacing: -0.015em; margin-bottom: 8px; }
.step p { font-size: 15px; color: var(--text-secondary); }

/* ── FAQ ── */
.faq-list { max-width: 800px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.faq-item { background: var(--surface); border: 1px solid var(--border-default); border-radius: var(--radius-md); overflow: hidden; }
.faq-q { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 20px 24px; background: transparent; border: none; cursor: pointer; text-align: left; font: 700 16.5px/1.4 'Plus Jakarta Sans'; color: var(--text-primary); }
.faq-q:hover { color: var(--brand-emerald); }
.faq-q svg { width: 18px; height: 18px; flex-shrink: 0; fill: none; stroke: var(--brand-emerald); stroke-width: 2.4; stroke-linecap: round; transition: transform 260ms var(--ease-out); }
.faq-item.open .faq-q svg { transform: rotate(45deg); }
.faq-a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 300ms var(--ease-out); }
.faq-item.open .faq-a { grid-template-rows: 1fr; }
.faq-a-inner { overflow: hidden; }
.faq-a-inner p { padding: 0 24px 22px; font-size: 15.5px; color: var(--text-secondary); }

/* ── FINAL CTA ── */
.final-cta { padding: 100px 0; text-align: center; background: radial-gradient(ellipse at 50% 100%, rgba(42,157,122,0.14) 0%, transparent 62%), var(--bg-primary); }
.final-cta .section-sub { margin: 0 auto 36px; }
.final-cta-actions { display: flex; align-items: center; justify-content: center; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
.risk-strip { font-size: 13px; color: var(--text-muted); }

/* ── FOOTER ── */
footer { background: var(--bg-secondary); border-top: 1px solid var(--border-default); padding: 64px 0 32px; }
.footer-inner { display: grid; grid-template-columns: 1.6fr repeat(4, 1fr); gap: 36px; margin-bottom: 48px; }
.footer-brand { font-size: 22px; font-weight: 800; letter-spacing: -0.02em; background: var(--gradient-brand); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; margin-bottom: 12px; }
.footer-tagline { font-size: 14px; color: var(--text-secondary); line-height: 1.6; }
.footer-col h5 { font-size: 12px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-primary); margin-bottom: 16px; }
.footer-col a { display: block; font-size: 14px; color: var(--text-secondary); padding: 5px 0; transition: color 180ms; }
.footer-col a:hover { color: var(--brand-emerald); }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 26px; border-top: 1px solid var(--border-default); font-size: 13px; color: var(--text-muted); }

/* ── RESPONSIVE ── */
@media (max-width: 1100px) {
  .footer-inner { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 760px) {
  .footer-inner { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .container { padding: 0 24px; }
  .nav-links, .nav-cta { display: none; }
  .hamburger { display: flex; }
  .section-pad { padding: 72px 0; }
  .section-head { margin-bottom: 40px; }
}
@media (max-width: 560px) {
  .footer-inner { grid-template-columns: 1fr; gap: 32px; }
  .page-hero { padding: 24px 0 56px; }
  .btn-lg { padding: 16px 24px; font-size: 16px; }
  .pricing-card { padding: 28px 22px; }
}
