/* =============================================================
   HELP LIKE A MONK — marketing site
   Built on the "Calm" design system (styles.css → tokens +
   components.css). This file holds only page layout and the
   marketing-specific patterns (hero, bands, feature grids, mocks).
   Buttons, badges, ticket chips, cards, KPIs, ticket rows, inputs,
   modal and snackbar all come from components.css — do not
   redefine them here.
   ============================================================= */

:root {
  --topbar-h: 100px;   /* marketing topbar is taller than the app's 64px */
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-text);
  font-size: var(--font-size-body);
  font-weight: var(--font-weight-body);
  line-height: var(--line-height-body);
  color: var(--text-1);
  background: var(--bg-page);
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }

.container {
  max-width: var(--layout-max);
  margin: 0 auto;
  padding: 0 var(--space-6);
}

/* ── Icons (Lucide runtime injects .lucide) ────────────────── */
.lucide {
  width: var(--icon-sm);
  height: var(--icon-sm);
  stroke-width: 1.75;
  flex: none;
}
.badge .lucide { width: var(--icon-xs); height: var(--icon-xs); }
.card-title .lucide { color: var(--text-3); }
.kpi-icon .lucide { width: var(--icon-xs); height: var(--icon-xs); }

/* ── Headings ──────────────────────────────────────────────── */
.section-title {
  font-family: var(--font-display);
  font-size: var(--font-size-h2);
  font-weight: var(--font-weight-h2);
  line-height: var(--line-height-h2);
  letter-spacing: var(--tracking-h2);
  margin-top: var(--space-4);
  text-wrap: balance;
}
.section-lead {
  color: var(--text-2);
  font-size: var(--font-size-lead);
  line-height: var(--line-height-lead);
  max-width: 640px;
  margin-top: var(--space-4);
}

/* ── Topbar ────────────────────────────────────────────────── */
.topbar {
  position: sticky;
  top: 0;
  z-index: var(--z-sticky);
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
}
.topbar-inner {
  height: var(--topbar-h);
  display: flex;
  align-items: center;
  gap: var(--space-4);
}
.logo { display: inline-flex; align-items: center; }
.logo img { height: 64px; width: auto; display: block; }

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-1);
  margin-left: var(--space-2);
  flex: 1;
}
.nav-links a {
  font-size: var(--font-size-sm);
  color: var(--text-2);
  white-space: nowrap;
  padding: var(--space-2);
  border-radius: var(--radius-sm);
  transition: background var(--duration-fast);
}
.nav-links a:hover { background: var(--bg-neutral); color: var(--text-1); }
.nav-links a.active {
  color: var(--brand-navy);
  font-weight: 600;
  background: var(--brand-gold-soft);
  box-shadow: inset 0 -2px 0 var(--brand-gold);
}
.topbar-actions { display: flex; align-items: center; gap: var(--space-2); }

/* ── Hero ──────────────────────────────────────────────────── */
.hero {
  position: relative;
  padding: var(--space-10) 0;
  overflow: hidden;
}
/* one gold blob per page — the signature motif */
.hero::before {
  content: "";
  position: absolute;
  right: -8%;
  top: 18%;
  width: 520px;
  height: 460px;
  background: var(--brand-gold-soft);
  border-radius: 58% 42% 64% 36% / 48% 60% 40% 52%;
  pointer-events: none;
}
.hero .container { position: relative; }
.hero h1,
.page-head h1 {
  font-family: var(--font-display);
  font-size: var(--font-size-display);
  font-weight: var(--font-weight-display);
  line-height: var(--line-height-display);
  letter-spacing: var(--tracking-display);
  margin-top: var(--space-5);
  max-width: 800px;
  text-wrap: balance;
}
.hero-sub {
  color: var(--text-2);
  font-size: var(--font-size-lead);
  line-height: var(--line-height-lead);
  margin-top: var(--space-5);
  max-width: 620px;
}
.hero-ctas {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  margin-top: var(--space-6);
}
.hero-trust {
  margin-top: var(--space-5);
  font-size: var(--font-size-sm);
  color: var(--text-3);
  display: flex;
  align-items: center;
  gap: var(--space-2);
}
.hero-trust .lucide { width: var(--icon-xs); height: var(--icon-xs); }

/* ── Hero band — full-bleed navy stage for the product mock ── */
.hero-band {
  background: var(--brand-navy-deep);
  padding: var(--space-9) 0 var(--space-8);
}
.hero-band .hero-mock { max-width: 880px; margin: 0 auto; }
.hero-band .mock-window { box-shadow: var(--shadow-xl); }

/* ── Product mock window ───────────────────────────────────── */
.hero-mock { position: relative; }
.mock-window {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.mock-window-bar {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-4);
  border-bottom: 1px solid var(--border-soft);
}
.mock-dot { width: 8px; height: 8px; border-radius: var(--radius-pill); background: var(--bg-neutral-2); }
.mock-window-title { font-size: var(--font-size-caption); color: var(--text-3); margin-left: var(--space-2); }
.mock-body { padding: var(--space-2) 0; }

/* Dashboard mock — mirrors the product's dashboard shell */
.dash { display: flex; align-items: stretch; }
.dash-side {
  width: 168px;
  flex: none;
  background: var(--surface-navy);
  padding: var(--space-3) var(--space-2);
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.dash-side-item {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--font-size-caption);
  font-weight: 500;
  color: var(--on-navy-muted);
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-sm);
}
.dash-side-item .lucide { width: var(--icon-xs); height: var(--icon-xs); }
.dash-side-item.active {
  color: var(--brand-gold);
  background: rgba(240, 180, 65, 0.14);
  font-weight: 600;
}
.dash-main { flex: 1; min-width: 0; padding: var(--space-4); }
.dash-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  margin-bottom: var(--space-3);
}
.dash-title { font-size: var(--font-size-h3); font-weight: 700; }
.dash-sub { font-size: var(--font-size-caption); color: var(--text-3); }
.dash-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-2); }
.dash-kpi {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--space-2) var(--space-3);
}
.dash-kpi .kpi-icon { width: 28px; height: 28px; border-radius: var(--radius-sm); }
.dash-kpi-num {
  font-family: var(--font-num);
  font-size: 17px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: var(--tracking-num);
}
.dash-kpi-label { font-size: 11px; color: var(--text-3); line-height: 1.2; }
.dash-list-title {
  font-size: var(--font-size-label);
  font-weight: 600;
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  color: var(--text-3);
  margin: var(--space-4) 0 var(--space-1);
}
.dash-main .ticket-row { padding-left: var(--space-2); padding-right: var(--space-2); }

/* Floating notification card (floating element — shadow allowed) */
.mock-float {
  position: absolute;
  right: calc(var(--space-4) * -1);
  bottom: calc(var(--space-5) * -1);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: var(--space-3) var(--space-4);
  display: flex;
  align-items: center;
  gap: var(--space-3);
}
.mock-float-icon {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-md);
  background: var(--brand-gold-soft);
  color: var(--brand-navy);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.mock-float-title { font-size: var(--font-size-sm); font-weight: 500; }
.mock-float-sub { font-size: var(--font-size-caption); color: var(--text-3); }

/* ── Stats strip ───────────────────────────────────────────── */
.stats {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--bg-card);
}
.stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); }
.stat { padding: var(--space-8) var(--space-5); text-align: center; }
.stat + .stat { border-left: 1px solid var(--border); }
.stat-value {
  font-family: var(--font-num);
  font-size: var(--font-size-hero-num);
  font-weight: var(--font-weight-hero-num);
  letter-spacing: var(--tracking-hero-num);
  font-variant-numeric: tabular-nums;
}
.stat-label { font-size: var(--font-size-sm); color: var(--text-2); margin-top: var(--space-1); }

/* ── Sections ──────────────────────────────────────────────── */
.section { padding: var(--space-10) 0; }
.section-head { max-width: 720px; margin-bottom: var(--space-8); }

/* ── Inner page head ───────────────────────────────────────── */
.page-head { padding: var(--space-10) 0 var(--space-8); }

/* ── Feature grid ──────────────────────────────────────────── */
.feature-grid,
.audience-grid,
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-3);
}
.feature-card {
  display: block;
  color: inherit;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: var(--space-6);
  transition: border-color var(--duration-fast);
}
.feature-card:hover { border-color: var(--brand-gold); }
.feature-icon {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  color: var(--text-2);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-4);
}
.feature-icon .lucide { width: var(--icon-md); height: var(--icon-md); }
.feature-card h3,
.step-card h3 {
  font-size: var(--font-size-h3);
  font-weight: var(--font-weight-h3);
  line-height: var(--line-height-h3);
  margin-bottom: var(--space-2);
}
.feature-card p,
.step-card p { font-size: var(--font-size-sm); color: var(--text-2); line-height: var(--line-height-sm); }

/* ── Split sections ────────────────────────────────────────── */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-7);
  align-items: center;
}
.check-list { margin-top: var(--space-4); display: grid; gap: var(--space-3); }
.check-item {
  display: flex;
  gap: var(--space-3);
  align-items: flex-start;
  font-size: var(--font-size-sm);
  color: var(--text-2);
}
.check-item .lucide { color: var(--success); margin-top: 2px; }
.check-item strong { color: var(--text-1); font-weight: 500; }

/* Cards used as product mocks in split sections */
.card .amc + .amc { margin-top: var(--space-3); }
.amc-meta span { display: inline-flex; align-items: center; gap: var(--space-1); }
.amc-meta .lucide { width: var(--icon-xs); height: var(--icon-xs); }

/* ── Mobile apps ───────────────────────────────────────────── */
.store-badges { display: flex; gap: var(--space-3); margin-top: var(--space-5); flex-wrap: wrap; }
.store-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--space-3) var(--space-4);
  transition: border-color var(--duration-fast);
}
.store-badge:hover { border-color: var(--brand-gold); }
.store-badge .lucide { width: var(--icon-lg); height: var(--icon-lg); color: var(--text-1); }
.store-badge-sub { font-size: var(--font-size-caption); color: var(--text-3); line-height: 1.2; }
.store-badge-name { font-size: var(--font-size-sm); font-weight: 500; line-height: 1.3; }

/* Notification cards — system .notif with site defaults */
.notif + .notif { margin-top: var(--space-3); }
.notif-icon { background: var(--bg-neutral); color: var(--text-2); }
.tl-dot .lucide { width: 12px; height: 12px; }

/* ── Steps ─────────────────────────────────────────────────── */
.step-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  padding: var(--space-5);
}
.step-num {
  font-family: var(--font-num);
  font-size: var(--font-size-kpi-num);
  font-weight: var(--font-weight-kpi-num);
  letter-spacing: var(--tracking-kpi-num);
  color: var(--brand-navy);
  font-variant-numeric: tabular-nums;
  display: inline-block;
  border-bottom: 2px solid var(--brand-gold);
  padding-bottom: var(--space-1);
}
.step-card h3 { margin: var(--space-2) 0; }

/* ── Shared mock helpers ───────────────────────────────────── */
.invoice-meta { font-size: var(--font-size-caption); color: var(--text-3); margin-bottom: var(--space-3); }

/* ── CTA band — full-bleed navy ────────────────────────────── */
.cta-band {
  position: relative;
  overflow: hidden;
  background: var(--surface-navy);
  color: var(--on-navy);
  width: 100vw;
  margin-left: calc(50% - 50vw);
  padding: var(--space-10) var(--space-6);
  text-align: center;
}
/* faint gold halo behind the message */
.cta-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 80% at 50% 0%, rgba(240, 180, 65, 0.14), transparent 70%);
  pointer-events: none;
}
.cta-band > * { position: relative; }
.cta-band h2 {
  font-family: var(--font-display);
  font-size: var(--font-size-h2);
  font-weight: var(--font-weight-h2);
  line-height: var(--line-height-h2);
  letter-spacing: var(--tracking-h2);
  color: var(--on-navy);
  text-wrap: balance;
}
.cta-band p {
  color: var(--on-navy-muted);
  font-size: var(--font-size-lead);
  line-height: var(--line-height-lead);
  margin: var(--space-4) auto 0;
  max-width: 560px;
}
.cta-band .hero-ctas { justify-content: center; }
.cta-band .btn-primary { border-color: #0E1526; box-shadow: 3px 3px 0 #0E1526; }
.cta-band .btn-primary:hover { box-shadow: 1px 1px 0 #0E1526; }
.cta-band .btn-secondary {
  border-color: rgba(250, 247, 240, 0.4);
  color: var(--on-navy);
  background: transparent;
}
.cta-band .btn-secondary:hover {
  border-color: var(--on-navy);
  background: rgba(250, 247, 240, 0.08);
  box-shadow: none;
  transform: none;
}
/* A page that ends on the CTA band sits flush against the footer */
.section:has(.cta-band) { padding-bottom: 0; }
.section:has(.cta-band) + .footer { margin-top: 0; border-top: none; }

/* ── Contact page ──────────────────────────────────────────── */
.contact-methods { margin-top: var(--space-5); display: grid; gap: var(--space-3); }
.contact-method {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-4);
}
.contact-submit { width: 100%; margin-top: var(--space-5); }

/* ── Forms (site-specific layout on top of .field/.input) ──── */
.field + .field { margin-top: var(--space-3); }
.phone-input { display: flex; gap: var(--space-2); align-items: center; }
.phone-input .cc { padding: var(--space-2); font-size: var(--font-size-caption); }
.phone-input .input { flex: 1; }

/* ── Footer ────────────────────────────────────────────────── */
.footer {
  border-top: 1px solid var(--border);
  background: var(--bg-card);
  padding: var(--space-8) 0 var(--space-6);
  margin-top: var(--space-8);
}
.footer .logo img { height: 56px; }
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
  gap: var(--space-6);
}
.footer-brand p {
  font-size: var(--font-size-sm);
  color: var(--text-2);
  margin-top: var(--space-3);
  max-width: 280px;
}
.footer h4 {
  font-size: var(--font-size-label);
  font-weight: var(--font-weight-label);
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: var(--space-3);
}
.footer-links { display: grid; gap: var(--space-2); }
.footer-links a { font-size: var(--font-size-sm); color: var(--text-2); transition: color var(--duration-fast); }
.footer-links a:hover { color: var(--text-1); }
.footer-contact {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--font-size-sm);
  color: var(--text-2);
}
.footer-contact + .footer-contact { margin-top: var(--space-2); }
.footer-contact .lucide { width: var(--icon-xs); height: var(--icon-xs); color: var(--text-3); }
.footer-bottom {
  border-top: 1px solid var(--border-soft);
  margin-top: var(--space-6);
  padding-top: var(--space-4);
  display: flex;
  justify-content: space-between;
  font-size: var(--font-size-caption);
  color: var(--text-3);
}

/* ── Demo modal (shell around the Calm .modal) ─────────────── */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: var(--backdrop);
  z-index: var(--z-modal);
  display: none;
  align-items: center;
  justify-content: center;
  padding: var(--space-6);
}
.modal-backdrop.open { display: flex; }
.modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: var(--space-4);
}
.modal h2 { font-size: 20px; font-weight: 700; letter-spacing: -0.3px; }
.modal-sub { font-size: var(--font-size-sm); color: var(--text-2); margin-top: var(--space-1); }
.modal-close {
  border: none;
  background: transparent;
  color: var(--text-3);
  cursor: pointer;
  padding: var(--space-1);
  border-radius: var(--radius-sm);
  transition: background var(--duration-fast);
}
.modal-close:hover { background: var(--bg-neutral); }
.modal-close .lucide { width: var(--icon-md); height: var(--icon-md); }
.modal .btn-primary { width: 100%; margin-top: var(--space-4); }

/* ── Snackbar positioning (Calm styles the surface) ────────── */
.snackbar {
  position: fixed;
  bottom: var(--space-6);
  left: 50%;
  transform: translateX(-50%);
  z-index: var(--z-toast);
  display: none;
  animation: none;
}
.snackbar.show { display: inline-flex; animation: site-snackbar var(--duration-base) var(--ease-out); }
@keyframes site-snackbar {
  from { transform: translate(-50%, 20px); opacity: 0; }
  to   { transform: translate(-50%, 0);    opacity: 1; }
}

/* ── Responsive ────────────────────────────────────────────── */
@media (max-width: 960px) {
  .split { grid-template-columns: 1fr; }
  .feature-grid,
  .audience-grid,
  .steps-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: 1fr; }
  .stat + .stat { border-left: none; border-top: 1px solid var(--border); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .nav-links { display: none; }
  .hero { padding: var(--space-9) 0; }
  .hero::before { display: none; }
  .section { padding: var(--space-9) 0; }
  .mock-float { right: var(--space-2); }
}
@media (max-width: 620px) {
  .feature-grid,
  .audience-grid,
  .steps-grid { grid-template-columns: 1fr; }
  .hero-ctas { flex-direction: column; align-items: stretch; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero,
  .section { padding: var(--space-8) 0; }
  .cta-band { padding: var(--space-8) var(--space-5); }
  .dash-side { display: none; }
  .dash-kpis { grid-template-columns: repeat(2, 1fr); }
}

/* ── FAQ (AEO — answer-engine-friendly Q&A) ────────────────── */
.faq-list {
  display: grid;
  gap: var(--space-3);
  max-width: 760px;
}
.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}
.faq-item summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  padding: var(--space-4) var(--space-5);
  font-size: var(--font-size-h3);
  font-weight: var(--font-weight-h3);
  line-height: var(--line-height-h3);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .lucide { color: var(--text-3); }
.faq-item[open] summary .lucide { transform: rotate(45deg); }
.faq-a {
  padding: 0 var(--space-5) var(--space-4);
  color: var(--text-2);
  max-width: 640px;
}

/* ── Skip link (accessibility) ─────────────────────────────── */
.skip-link {
  position: absolute;
  left: var(--space-4);
  top: -100px;
  background: var(--inverse-bg);
  color: var(--inverse-fg);
  font-size: var(--font-size-sm);
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-sm);
  z-index: var(--z-toast);
}
.skip-link:focus-visible { top: var(--space-4); }

/* ── Legal / policy pages ──────────────────────────────────── */
.legal-body { max-width: 720px; }
.legal-body h2 {
  font-size: var(--font-size-h3);
  font-weight: var(--font-weight-h3);
  line-height: var(--line-height-h3);
  margin: var(--space-6) 0 var(--space-2);
}
.legal-body p { color: var(--text-2); margin-bottom: var(--space-3); }
.legal-body ul {
  margin: 0 0 var(--space-3) var(--space-5);
  color: var(--text-2);
  display: grid;
  gap: var(--space-2);
  list-style: disc;
}
.legal-updated {
  font-size: var(--font-size-caption);
  color: var(--text-3);
  margin-top: var(--space-3);
}

/* ── 404 page ──────────────────────────────────────────────── */
.notfound { padding: var(--space-10) 0; }

/* Honeypot field — never visible to humans */
.hp { display: none; }
