/* ==========================================================================
   Mangoe - Design System
   A clean, airy, premium aesthetic: bold tight typography, pale tinted
   surfaces, a warm mango-gradient signature, and generous whitespace.
   ========================================================================== */

/* ----------  Design Tokens  ---------- */
:root {
  /* Surfaces - cool, pale, editorial canvas */
  --bg: #e0e7ee;            /* pale cool blue-grey */
  --bg-tint: #d4dde6;       /* deeper cool tint */
  --surface: #ffffff;       /* cards / alternating sections */
  --surface-2: #eef2f6;     /* subtle cool off-white */
  --ink: #0b1521;           /* near-black, cool navy */
  --ink-2: #283643;         /* secondary heading */
  --muted: #586673;         /* body text */
  --muted-2: #8893a0;       /* captions */
  --line: #cfd9e2;          /* hairline borders */
  --line-2: #bcc8d3;

  /* Brand - Mango (warm accent on cool canvas) */
  --mango-1: #ffb02e;       /* amber */
  --mango-2: #ff6a3d;       /* orange-coral */
  --mango-3: #ff3d77;       /* coral-pink */
  --mango: #ff5a3c;         /* signature coral */
  --mango-ink: #d8431d;     /* readable coral text */
  --grad-mango: linear-gradient(120deg, #ffb02e 0%, #ff6a3d 48%, #ff3d77 100%);
  --grad-mango-soft: linear-gradient(120deg, rgba(255,176,46,.14), rgba(255,61,119,.14));

  /* Leaf - health / growth accent */
  --leaf: #18a163;
  --leaf-soft: rgba(24,161,99,.12);

  /* Footer */
  --footer-bg: #0b1521;
  --footer-ink: #e7edf3;
  --footer-muted: #97a3b0;
  --footer-line: rgba(255,255,255,.10);

  /* Effects */
  --shadow-sm: 0 1px 2px rgba(11,21,33,.04), 0 1px 3px rgba(11,21,33,.06);
  --shadow-md: 0 12px 32px -14px rgba(11,21,33,.20), 0 4px 10px -6px rgba(11,21,33,.10);
  --shadow-lg: 0 36px 70px -28px rgba(11,21,33,.30), 0 14px 28px -18px rgba(11,21,33,.16);
  --shadow-mango: 0 16px 40px -12px rgba(255,106,61,.4);

  --radius-xs: 8px;
  --radius-sm: 12px;
  --radius: 18px;
  --radius-lg: 26px;
  --radius-pill: 999px;

  /* Type */
  --font-display: "Inter", system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;

  --container: 1200px;
  --container-narrow: 820px;
  --header-h: 76px;
}

/* ----------  Reset & Base  ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
ul { list-style: none; }
input, textarea, select { font: inherit; color: inherit; }
:focus-visible { outline: 2.5px solid var(--mango-2); outline-offset: 3px; border-radius: 4px; }

/* ----------  Typography  ---------- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--ink);
  font-weight: 800;
  line-height: 1.0;
  letter-spacing: -0.035em;
}

.display {
  font-size: clamp(3rem, 8.4vw, 6.2rem);
  font-weight: 800;
  line-height: 0.92;
  letter-spacing: -0.05em;
}
.h-section {
  font-size: clamp(2.2rem, 5.2vw, 3.9rem);
  letter-spacing: -0.045em;
  line-height: 0.98;
}
.h-sub { font-size: clamp(1.35rem, 2.4vw, 1.75rem); font-weight: 700; letter-spacing: -0.03em; }

p { color: var(--muted); }
.lede {
  font-size: clamp(1.1rem, 1.7vw, 1.3rem);
  color: var(--ink-2);
  line-height: 1.5;
  font-weight: 450;
}
strong { color: var(--ink); font-weight: 700; }
.text-mango {
  background: var(--grad-mango);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ----------  Layout  ---------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 24px; }
.container-narrow { max-width: var(--container-narrow); }
section { position: relative; }
.section { padding-block: clamp(64px, 9vw, 128px); }
.section-tight { padding-block: clamp(48px, 6vw, 84px); }
.bg-surface { background: var(--surface); }
.bg-surface-2 { background: var(--surface-2); }
.bg-tint { background: var(--bg-tint); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--font-display);
  font-size: .76rem; font-weight: 700;
  letter-spacing: .16em; text-transform: uppercase;
  color: var(--mango-ink);
  padding: 7px 14px;
  border: 1px solid var(--line-2);
  border-radius: var(--radius-pill);
  background: rgba(255,255,255,.6);
}
.eyebrow::before {
  content: ""; width: 7px; height: 7px; border-radius: 50%;
  background: var(--grad-mango);
}
.eyebrow.is-leaf { color: var(--leaf); }
.eyebrow.is-leaf::before { background: var(--leaf); }

.section-head { max-width: 720px; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head .eyebrow { margin-bottom: 20px; }
.section-head p { margin-top: 18px; font-size: 1.12rem; }

/* ----------  Buttons  ---------- */
.btn {
  --btn-bg: var(--ink);
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--font-display);
  font-weight: 700; font-size: .98rem;
  padding: 14px 24px;
  border-radius: var(--radius-pill);
  background: var(--btn-bg);
  color: #fff;
  transition: transform .18s ease, box-shadow .25s ease, background-color .2s ease, filter .2s ease;
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: var(--grad-mango);
  box-shadow: var(--shadow-mango);
  background-size: 140% 140%;
}
.btn-primary:hover { box-shadow: 0 22px 50px -12px rgba(255,106,61,.6); background-position: 100% 0; }

.btn-dark { background: var(--ink); }
.btn-dark:hover { box-shadow: var(--shadow-md); }

.btn-ghost {
  background: transparent; color: var(--ink);
  border: 1.5px solid var(--line-2);
}
.btn-ghost:hover { border-color: var(--ink); background: rgba(23,17,12,.03); }

.btn-light { background: #fff; color: var(--ink); box-shadow: var(--shadow-sm); }
.btn-light:hover { box-shadow: var(--shadow-md); }

.btn-lg { padding: 17px 30px; font-size: 1.05rem; }
.btn-block { display: flex; width: 100%; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 7px;
  font-family: var(--font-display); font-weight: 700;
  color: var(--ink);
  transition: gap .2s ease, color .2s ease;
}
.link-arrow svg { width: 17px; height: 17px; transition: transform .2s ease; }
.link-arrow:hover { color: var(--mango-ink); gap: 11px; }
.link-arrow.on-dark { color: #fff; }

/* ----------  Header / Nav  ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  height: var(--header-h);
  display: flex; align-items: center;
  background: rgba(224,231,238,.72);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s ease, background-color .25s ease, box-shadow .25s ease;
}
.site-header.is-scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 6px 24px -18px rgba(23,17,12,.4);
}
.nav { display: flex; align-items: center; justify-content: space-between; width: 100%; gap: 24px; }
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a {
  font-family: var(--font-display); font-weight: 600; font-size: .95rem;
  color: var(--ink-2);
  padding: 9px 14px; border-radius: var(--radius-pill);
  transition: color .18s ease, background-color .18s ease;
}
.nav-links a:hover { color: var(--ink); background: rgba(23,17,12,.04); }
.nav-actions { display: flex; align-items: center; gap: 12px; }
.nav-cta { padding: 11px 20px; }

/* Brand mark */
.brand { display: inline-flex; align-items: center; gap: 11px; }
.brand-mark { width: 34px; height: 34px; flex: none; }
.brand-name {
  font-family: var(--font-display); font-weight: 800; font-size: 1.34rem;
  letter-spacing: -0.03em; color: var(--ink);
}
.brand-name .dot { color: var(--mango-2); }

.nav-toggle { display: none; width: 44px; height: 44px; border-radius: 12px; align-items: center; justify-content: center; }
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  content: ""; display: block; width: 22px; height: 2px; background: var(--ink); border-radius: 2px;
  transition: transform .25s ease, opacity .2s ease;
}
.nav-toggle span { position: relative; }
.nav-toggle span::before { position: absolute; top: -7px; }
.nav-toggle span::after { position: absolute; top: 7px; }
body.nav-open .nav-toggle span { background: transparent; }
body.nav-open .nav-toggle span::before { transform: translateY(7px) rotate(45deg); }
body.nav-open .nav-toggle span::after { transform: translateY(-7px) rotate(-45deg); }

/* ----------  Hero  ---------- */
.hero { position: relative; padding-top: clamp(40px, 6vw, 84px); padding-bottom: clamp(56px, 8vw, 120px); overflow: hidden; }
.hero-grid {
  display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center;
}
.hero-copy { position: relative; z-index: 2; }
.hero h1 { margin-top: 22px; }
.hero .lede { margin-top: 24px; max-width: 540px; }
.hero-actions { margin-top: 34px; display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.hero-meta { margin-top: 30px; display: flex; flex-wrap: wrap; gap: 22px; align-items: center; color: var(--muted); font-size: .92rem; }
.hero-meta .dot-sep { width: 4px; height: 4px; border-radius: 50%; background: var(--line-2); }
.hero-meta strong { font-family: var(--font-display); }

/* decorative background orbs */
.orbs { position: absolute; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.orb { position: absolute; border-radius: 50%; filter: blur(64px); opacity: .38; }
.orb-1 { width: 460px; height: 460px; background: radial-gradient(circle, rgba(255,176,46,.55), transparent 65%); top: -160px; right: -80px; }
.orb-2 { width: 420px; height: 420px; background: radial-gradient(circle, rgba(255,61,119,.42), transparent 66%); bottom: -180px; left: -120px; }
.orb-3 { width: 320px; height: 320px; background: radial-gradient(circle, rgba(24,161,99,.30), transparent 66%); top: 40%; left: 44%; }

/* Isometric hero illustration */
.hero-iso { width: 100%; max-width: 620px; margin-inline: auto; filter: drop-shadow(0 34px 46px rgba(11,21,33,.14)); animation: heroFloat 7s ease-in-out infinite; }
@keyframes heroFloat { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }

/* ZappyBook app mockup */
.hero-visual { position: relative; z-index: 1; }
.mockup {
  position: relative;
  background: linear-gradient(160deg, #ffffff, #fbf9f5);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 18px;
  transform: perspective(1400px) rotateY(-9deg) rotateX(3deg);
  transform-style: preserve-3d;
}
.mockup-bar { display: flex; align-items: center; gap: 7px; padding: 4px 6px 14px; }
.mockup-bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--line-2); display: block; }
.mockup-bar i:nth-child(1){ background:#ff5f56; } .mockup-bar i:nth-child(2){ background:#ffbd2e; } .mockup-bar i:nth-child(3){ background:#27c93f; }
.mockup-bar .url { margin-left: 10px; font-size: .76rem; color: var(--muted-2); font-family: var(--font-display); }
.mockup-app { background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.mockup-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.mockup-head .title { font-family: var(--font-display); font-weight: 800; font-size: .98rem; }
.mockup-head .chip { font-size: .7rem; font-weight: 700; color: var(--leaf); background: var(--leaf-soft); padding: 4px 10px; border-radius: var(--radius-pill); font-family: var(--font-display); }
.mockup-body { padding: 16px; display: grid; gap: 12px; }
.stat-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.stat {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 13px 14px;
}
.stat .k { font-size: .68rem; color: var(--muted-2); font-weight: 700; letter-spacing: .04em; text-transform: uppercase; font-family: var(--font-display); }
.stat .v { font-family: var(--font-display); font-weight: 800; font-size: 1.45rem; margin-top: 4px; letter-spacing: -0.02em; }
.stat .v small { font-size: .78rem; font-weight: 700; color: var(--leaf); margin-left: 4px; }
.bars { display: flex; align-items: flex-end; gap: 7px; height: 76px; padding-top: 6px; }
.bars span { flex: 1; border-radius: 5px 5px 0 0; background: var(--grad-mango); opacity: .85; }
.list-row { display: flex; align-items: center; justify-content: space-between; padding: 10px 12px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); }
.list-row .l { display: flex; align-items: center; gap: 10px; font-size: .86rem; font-weight: 600; color: var(--ink-2); }
.list-row .ic { width: 26px; height: 26px; border-radius: 8px; background: var(--grad-mango-soft); display: grid; place-items: center; color: var(--mango-ink); }
.list-row .ic svg { width: 15px; height: 15px; }
.list-row .amt { font-family: var(--font-display); font-weight: 800; font-size: .9rem; }

/* floating glass cards on mockup */
.float-card {
  position: absolute; z-index: 3;
  background: rgba(255,255,255,.82);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,.9);
  box-shadow: var(--shadow-md);
  border-radius: var(--radius);
  padding: 13px 16px;
  display: flex; align-items: center; gap: 12px;
}
.float-card .fc-ic { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; color: #fff; flex: none; }
.float-card .fc-ic svg { width: 20px; height: 20px; }
.float-card .fc-k { font-size: .72rem; color: var(--muted); font-weight: 600; }
.float-card .fc-v { font-family: var(--font-display); font-weight: 800; font-size: 1rem; letter-spacing: -0.01em; }
.float-a { top: 8%; left: -42px; animation: floaty 6s ease-in-out infinite; }
.float-a .fc-ic { background: var(--grad-mango); }
.float-b { bottom: 10%; right: -34px; animation: floaty 7s ease-in-out infinite reverse; }
.float-b .fc-ic { background: linear-gradient(140deg, #18a163, #0e7a49); }

@keyframes floaty { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }

/* ----------  Trust strip  ---------- */
.trust { border-block: 1px solid var(--line); background: var(--surface-2); }
.trust-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 14px 40px; padding-block: 22px; }
.trust-item { display: inline-flex; align-items: center; gap: 10px; color: var(--muted); font-size: .9rem; font-weight: 600; }
.trust-item svg { width: 18px; height: 18px; color: var(--leaf); flex: none; }
.trust-item strong { font-family: var(--font-display); color: var(--ink-2); }

/* ----------  Product / ZappyBook feature card  ---------- */
.product-card {
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 0;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-md);
}
.product-card .pc-copy { padding: clamp(28px, 4vw, 52px); }
.product-card .pc-visual {
  position: relative; background: linear-gradient(150deg, #eef3f8, #e1e9f1);
  display: flex; align-items: center; justify-content: center; padding: 36px; overflow: hidden;
}
.product-logo { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 20px; }
.product-logo .zap { width: 38px; height: 38px; }
.product-logo .name { font-family: var(--font-display); font-weight: 800; font-size: 1.3rem; letter-spacing: -0.02em; }
.feature-list { margin-top: 24px; display: grid; gap: 13px; }
.feature-list li { display: flex; gap: 12px; align-items: flex-start; color: var(--ink-2); font-weight: 500; }
.feature-list .tick { width: 22px; height: 22px; border-radius: 7px; background: var(--leaf-soft); color: var(--leaf); display: grid; place-items: center; flex: none; margin-top: 1px; }
.feature-list .tick svg { width: 13px; height: 13px; }

/* ----------  Cards grid  ---------- */
.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 26px;
  transition: transform .22s ease, box-shadow .25s ease, border-color .25s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--line-2); }
.card .ic-chip {
  width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center;
  background: var(--surface-2); border: 1px solid var(--line); color: var(--mango); margin-bottom: 20px;
}
.card .ic-chip.leaf { color: var(--leaf); }
.card .ic-chip svg { width: 24px; height: 24px; }
.card h3 { font-size: 1.2rem; margin-bottom: 9px; }
.card p { font-size: .98rem; }

/* ----------  Process / Steps (accordion)  ---------- */
.steps { display: grid; gap: 14px; }
.step {
  border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--surface); overflow: hidden;
  transition: border-color .25s ease, box-shadow .25s ease;
}
.step.is-open { border-color: var(--line-2); box-shadow: var(--shadow-md); }
.step-head {
  display: flex; align-items: center; gap: 18px; width: 100%; text-align: left;
  padding: 22px 24px;
}
.step-num {
  font-family: var(--font-display); font-weight: 800; font-size: .95rem;
  width: 46px; height: 46px; flex: none; border-radius: 13px;
  display: grid; place-items: center;
  background: var(--bg-tint); color: var(--muted);
  transition: all .25s ease;
}
.step.is-open .step-num { background: var(--grad-mango); color: #fff; box-shadow: var(--shadow-mango); }
.step-title { font-family: var(--font-display); font-weight: 700; font-size: 1.18rem; letter-spacing: -0.02em; flex: 1; }
.step-chevron { color: var(--muted-2); transition: transform .25s ease; }
.step.is-open .step-chevron { transform: rotate(180deg); color: var(--mango-2); }
.step-body { max-height: 0; overflow: hidden; transition: max-height .35s ease; }
.step-body-inner { padding: 0 24px 24px 88px; }
.step-body-inner p { font-size: 1.02rem; }

/* ----------  Integrations  ---------- */
.integrations-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.integration {
  display: flex; align-items: center; gap: 14px; position: relative;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 18px 20px;
  transition: transform .2s ease, box-shadow .2s ease;
}
.int-soon {
  position: absolute; top: 11px; right: 11px;
  font-family: var(--font-display); font-weight: 700; font-size: .6rem;
  letter-spacing: .07em; text-transform: uppercase; white-space: nowrap;
  color: var(--mango-ink); background: var(--grad-mango-soft);
  border: 1px solid var(--line-2); padding: 3px 9px; border-radius: var(--radius-pill);
}
.integration:hover { transform: translateY(-3px); box-shadow: var(--shadow-sm); }
.integration .int-ic { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--bg-tint); flex: none; }
.integration .int-ic svg { width: 24px; height: 24px; }
.integration .int-name { font-family: var(--font-display); font-weight: 700; font-size: 1rem; }
.integration .int-desc { font-size: .82rem; color: var(--muted-2); }

/* ----------  Split / mission  ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px, 6vw, 80px); align-items: center; }
.mission-points { margin-top: 28px; display: grid; gap: 20px; }
.mission-point { display: flex; gap: 16px; }
.mission-point .mp-ic { width: 48px; height: 48px; border-radius: 14px; flex: none; display: grid; place-items: center; color: #fff; }
.mission-point .mp-ic svg { width: 24px; height: 24px; }
.mission-point.biz .mp-ic { background: var(--grad-mango); }
.mission-point.health .mp-ic { background: linear-gradient(140deg, #18a163, #0e7a49); }
.mission-point h3 { font-size: 1.18rem; margin-bottom: 5px; }
.mission-point p { font-size: .98rem; }

.visual-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md); padding: 30px; position: relative; overflow: hidden;
}

/* ----------  Stats band  ---------- */
.stats-band { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.stat-block { text-align: center; }
.stat-block .num { font-family: var(--font-display); font-weight: 800; font-size: clamp(2.2rem, 4vw, 3.1rem); letter-spacing: -0.03em; background: var(--grad-mango); -webkit-background-clip: text; background-clip: text; color: transparent; line-height: 1; }
.stat-block .lbl { margin-top: 10px; color: var(--muted); font-size: .95rem; }

/* ----------  FAQ  ---------- */
.faq { display: grid; gap: 12px; max-width: 860px; margin-inline: auto; }
.faq-item { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); overflow: hidden; }
.faq-q { display: flex; align-items: center; justify-content: space-between; gap: 16px; width: 100%; text-align: left; padding: 20px 24px; font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; color: var(--ink); }
.faq-q .pm { width: 24px; height: 24px; flex: none; position: relative; }
.faq-q .pm::before, .faq-q .pm::after { content: ""; position: absolute; inset: 0; margin: auto; background: var(--mango-2); border-radius: 2px; }
.faq-q .pm::before { width: 14px; height: 2px; }
.faq-q .pm::after { width: 2px; height: 14px; transition: transform .25s ease; }
.faq-item.is-open .pm::after { transform: rotate(90deg); opacity: 0; }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .3s ease; }
.faq-a-inner { padding: 0 24px 22px; }

/* ----------  CTA band  ---------- */
.cta-band { position: relative; overflow: hidden; border-radius: var(--radius-lg); background: var(--ink); color: #fff; padding: clamp(40px, 6vw, 72px); }
.cta-band .orb { opacity: .65; }
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255,255,255,.74); }
.cta-band .container, .cta-band .cta-inner { position: relative; z-index: 2; }

/* Beta form */
.beta-form { display: flex; gap: 12px; flex-wrap: wrap; max-width: 560px; }
.beta-form .field { flex: 1; min-width: 220px; }
.input {
  width: 100%; padding: 15px 18px; border-radius: var(--radius-pill);
  border: 1.5px solid var(--line-2); background: #fff; color: var(--ink);
  font-size: 1rem; transition: border-color .2s ease, box-shadow .2s ease;
}
.input::placeholder { color: var(--muted-2); }
.input:focus { outline: none; border-color: var(--mango-2); box-shadow: 0 0 0 4px rgba(255,106,61,.14); }
textarea.input { border-radius: var(--radius); resize: vertical; min-height: 130px; }
.form-grid { display: grid; gap: 16px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.label { display: block; font-family: var(--font-display); font-weight: 600; font-size: .9rem; margin-bottom: 8px; color: var(--ink-2); }
.consent { display: flex; gap: 11px; align-items: flex-start; font-size: .88rem; color: var(--muted); }
.consent input { margin-top: 4px; width: 17px; height: 17px; accent-color: var(--mango-2); flex: none; }
.consent.on-dark { color: rgba(255,255,255,.72); }
.consent.on-dark a { color: #fff; text-decoration: underline; }
.form-note { font-size: .82rem; color: var(--muted-2); margin-top: 4px; }
.form-success {
  display: none; align-items: center; gap: 12px;
  padding: 16px 20px; border-radius: var(--radius); background: var(--leaf-soft);
  color: #0e6b41; font-weight: 600; border: 1px solid rgba(24,161,99,.25);
}
.form-success.show { display: flex; }
.form-success svg { width: 22px; height: 22px; flex: none; }

/* ----------  Footer  ---------- */
.site-footer { background: var(--footer-bg); color: var(--footer-ink); padding-top: clamp(56px, 7vw, 88px); }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 48px; border-bottom: 1px solid var(--footer-line); }
.footer-brand .brand-name { color: #fff; }
.footer-about { color: var(--footer-muted); margin-top: 18px; font-size: .95rem; max-width: 320px; }
.footer-org { margin-top: 22px; font-size: .85rem; color: var(--footer-muted); line-height: 1.7; }
.footer-org strong { color: var(--footer-ink); font-family: var(--font-display); }
.footer-col h4 { color: #fff; font-size: .82rem; letter-spacing: .14em; text-transform: uppercase; font-family: var(--font-display); font-weight: 700; margin-bottom: 18px; }
.footer-col ul { display: grid; gap: 12px; }
.footer-col a { color: var(--footer-muted); font-size: .95rem; transition: color .18s ease; }
.footer-col a:hover { color: #fff; }
.footer-bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding-block: 26px; color: var(--footer-muted); font-size: .86rem; }
.footer-bottom .socials { display: flex; gap: 10px; }
.footer-bottom .socials a { width: 38px; height: 38px; border-radius: 10px; border: 1px solid var(--footer-line); display: grid; place-items: center; transition: background-color .2s ease, border-color .2s ease; }
.footer-bottom .socials a:hover { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.2); }
.footer-bottom .socials svg { width: 18px; height: 18px; color: var(--footer-ink); }

/* ----------  Cookie banner  ---------- */
.cookie {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 200;
  max-width: 540px; margin-inline: auto;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-lg); padding: 20px 22px;
  transform: translateY(140%); transition: transform .4s cubic-bezier(.16,1,.3,1);
}
.cookie.show { transform: translateY(0); }
.cookie p { font-size: .9rem; color: var(--muted); }
.cookie p a { color: var(--mango-ink); text-decoration: underline; }
.cookie-actions { display: flex; gap: 10px; margin-top: 14px; }
.cookie-actions .btn { padding: 10px 18px; font-size: .9rem; }

/* ----------  Legal / Prose  ---------- */
.legal-hero { background: var(--surface); border-bottom: 1px solid var(--line); padding-block: clamp(48px, 7vw, 88px); }
.legal-hero .updated { margin-top: 14px; color: var(--muted-2); font-size: .92rem; }
.legal-layout { display: grid; grid-template-columns: 250px 1fr; gap: 56px; align-items: start; }
.legal-toc { position: sticky; top: calc(var(--header-h) + 24px); }
.legal-toc h4 { font-size: .76rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted-2); margin-bottom: 14px; }
.legal-toc ul { display: grid; gap: 3px; max-height: calc(100vh - 160px); overflow-y: auto; }
.legal-toc a { display: block; font-size: .88rem; color: var(--muted); padding: 6px 12px; border-radius: 9px; border-left: 2px solid transparent; transition: all .18s ease; }
.legal-toc a:hover { color: var(--ink); background: var(--bg-tint); }
.legal-toc a.active { color: var(--mango-ink); border-left-color: var(--mango-2); background: var(--grad-mango-soft); font-weight: 600; }

.prose { max-width: 760px; }
.prose h2 { font-size: 1.5rem; margin-top: 48px; margin-bottom: 16px; padding-top: 8px; scroll-margin-top: calc(var(--header-h) + 20px); }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 1.15rem; margin-top: 30px; margin-bottom: 12px; }
.prose p { margin-bottom: 16px; line-height: 1.72; }
.prose ul, .prose ol { margin: 0 0 18px 0; padding-left: 22px; display: grid; gap: 9px; }
.prose ul li { list-style: disc; color: var(--muted); }
.prose ol li { list-style: decimal; color: var(--muted); }
.prose ul li::marker { color: var(--mango-2); }
.prose a { color: var(--mango-ink); text-decoration: underline; text-underline-offset: 2px; }
.prose strong { color: var(--ink); }
.prose .callout {
  background: var(--surface-2); border: 1px solid var(--line); border-left: 3px solid var(--mango-2);
  border-radius: var(--radius-sm); padding: 18px 22px; margin: 22px 0;
}
.prose .callout p:last-child { margin-bottom: 0; }
.prose table { width: 100%; border-collapse: collapse; margin: 20px 0; font-size: .92rem; }
.prose th, .prose td { text-align: left; padding: 11px 14px; border: 1px solid var(--line); vertical-align: top; }
.prose th { background: var(--bg-tint); font-family: var(--font-display); font-weight: 700; color: var(--ink); }
.prose td { color: var(--muted); }

/* ----------  Page hero (interior)  ---------- */
.page-hero { padding-block: clamp(48px, 7vw, 96px); position: relative; overflow: hidden; }
.page-hero .eyebrow { margin-bottom: 20px; }
.page-hero p { margin-top: 18px; max-width: 620px; font-size: 1.12rem; }

/* ----------  Reveal animation  ----------
   Only hidden when JS is active (html.js); without JS everything is visible. */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s cubic-bezier(.16,1,.3,1), transform .7s cubic-bezier(.16,1,.3,1); }
.js .reveal.in { opacity: 1; transform: none; }
.reveal-d1 { transition-delay: .08s; } .reveal-d2 { transition-delay: .16s; } .reveal-d3 { transition-delay: .24s; } .reveal-d4 { transition-delay: .32s; }

/* signature flowing line */
.flow-line { position: absolute; pointer-events: none; z-index: 0; }
.flow-line path { stroke-dasharray: 1200; stroke-dashoffset: 1200; animation: draw 3s ease forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }

/* ----------  Utilities  ---------- */
.mt-0 { margin-top: 0; } .mt-1 { margin-top: 10px; } .mt-2 { margin-top: 20px; } .mt-3 { margin-top: 32px; } .mt-4 { margin-top: 48px; }
.mb-2 { margin-bottom: 20px; } .mb-3 { margin-bottom: 32px; }
.text-center { text-align: center; }
.mx-auto { margin-inline: auto; }
.flex { display: flex; } .flex-wrap { flex-wrap: wrap; } .items-center { align-items: center; } .gap-2 { gap: 14px; } .gap-3 { gap: 24px; }
.hide-mobile { } .show-mobile { display: none; }
.divider { height: 1px; background: var(--line); border: 0; }

/* ----------  Responsive  ---------- */
@media (max-width: 1000px) {
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .hero-visual { max-width: 520px; margin-inline: auto; width: 100%; }
  .mockup { transform: none; }
  .float-a { left: 0; } .float-b { right: 0; }
  .product-card { grid-template-columns: 1fr; }
  .product-card .pc-visual { order: -1; min-height: 240px; }
  .split { grid-template-columns: 1fr; }
  .legal-layout { grid-template-columns: 1fr; gap: 8px; }
  .legal-toc { display: none; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .integrations-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-band { grid-template-columns: repeat(2, 1fr); gap: 36px 20px; }
}

@media (max-width: 760px) {
  body { font-size: 16px; }
  .nav-links, .nav-actions .nav-cta-text { display: none; }
  .nav-toggle { display: flex; }
  .nav-actions { gap: 8px; }
  .site-header.is-menu .nav-links {
    display: flex; position: absolute; top: var(--header-h); left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 4px;
    background: rgba(224,231,238,.98); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
    padding: 14px 20px 22px; border-bottom: 1px solid var(--line); box-shadow: var(--shadow-md);
  }
  .site-header.is-menu .nav-links a { padding: 13px 16px; font-size: 1.05rem; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .integrations-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 32px; }
  .footer-brand { grid-column: 1 / -1; }
  .stats-band { grid-template-columns: repeat(2, 1fr); }
  .step-body-inner { padding-left: 24px; }
  .hide-mobile { display: none; }
  .show-mobile { display: block; }
  .beta-form { flex-direction: column; }
  .beta-form .btn { width: 100%; }
}

@media (max-width: 420px) {
  .footer-top { grid-template-columns: 1fr; }
  .stats-band { grid-template-columns: 1fr; }
}

/* ----------  Reduced motion  ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ==========================================================================
   Motion graphics
   Looping CSS/SVG animations that bring ZappyBook's booking story to life.
   All use transform/opacity only and are disabled under reduced-motion.
   ========================================================================== */

/* gradient shimmer on the wordmark accent */
.text-mango.shimmer { background-size: 200% auto; animation: shimmer 6s linear infinite; }
@keyframes shimmer { to { background-position: 200% center; } }

/* slow drift for hero orbs */
.orb-1 { animation: drift1 16s ease-in-out infinite; }
.orb-2 { animation: drift2 19s ease-in-out infinite; }
.orb-3 { animation: drift3 22s ease-in-out infinite; }
@keyframes drift1 { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(-26px,22px) scale(1.08); } }
@keyframes drift2 { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(24px,-18px) scale(1.06); } }
@keyframes drift3 { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(18px,20px) scale(1.1); } }

/* live pulse dot */
.live-dot { position: relative; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--leaf); }
.live-dot::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 2px solid var(--leaf); animation: pulse 1.8s ease-out infinite; }
@keyframes pulse { 0% { transform: scale(.6); opacity: .8; } 100% { transform: scale(1.9); opacity: 0; } }

/* ----- Animated scheduler (hero) ----- */
.sched { background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.sched-head { display: flex; align-items: center; justify-content: space-between; padding: 13px 16px; border-bottom: 1px solid var(--line); }
.sched-head .title { font-family: var(--font-display); font-weight: 800; font-size: .98rem; display: flex; align-items: center; gap: 8px; }
.sched-head .seg { display: flex; gap: 4px; background: var(--bg-tint); padding: 3px; border-radius: 9px; }
.sched-head .seg span { font-size: .64rem; font-weight: 700; padding: 4px 9px; border-radius: 6px; color: var(--muted); font-family: var(--font-display); }
.sched-head .seg span.on { background: #fff; color: var(--ink); box-shadow: var(--shadow-sm); }
.sched-chips { display: flex; gap: 6px; padding: 12px 16px 4px; flex-wrap: wrap; }
.sched-chips .c { font-size: .66rem; font-weight: 700; font-family: var(--font-display); padding: 5px 11px; border-radius: var(--radius-pill); border: 1px solid var(--line-2); color: var(--muted); }
.sched-chips .c.on { background: var(--grad-mango-soft); color: var(--mango-ink); border-color: transparent; }
.sched-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 7px; padding: 12px 16px 18px; position: relative; }
.sched-col { display: grid; gap: 7px; }
.sched-col .d { text-align: center; font-size: .62rem; font-weight: 700; color: var(--muted-2); font-family: var(--font-display); text-transform: uppercase; letter-spacing: .04em; }
.slot { height: 26px; border-radius: 7px; background: #fff; border: 1px solid var(--line); }
.slot.busy { background: var(--grad-mango-soft); border-color: transparent; }
.slot.dusk { background: linear-gradient(120deg, rgba(255,106,61,.25), rgba(124,77,255,.22)); border-color: transparent; }
.slot.target { position: relative; }
.slot.target.book { animation: bookSlot 7s ease-in-out infinite; }
@keyframes bookSlot {
  0%, 38% { background: #fff; border-color: var(--line); transform: scale(1); }
  44% { background: var(--grad-mango-soft); border-color: var(--mango-2); transform: scale(1.06); }
  52%, 86% { background: var(--grad-mango); border-color: transparent; transform: scale(1); }
  92%, 100% { background: #fff; border-color: var(--line); }
}
.sched-cursor { position: absolute; left: 0; top: 0; width: 20px; height: 20px; z-index: 5; color: var(--ink); filter: drop-shadow(0 2px 3px rgba(0,0,0,.25)); animation: cursorMove 7s ease-in-out infinite; }
.sched-cursor svg { width: 100%; height: 100%; }
@keyframes cursorMove {
  0% { transform: translate(12px, 8px) scale(1); opacity: 0; }
  10% { opacity: 1; }
  38% { transform: translate(var(--cx, 150px), var(--cy, 70px)) scale(1); }
  44% { transform: translate(var(--cx, 150px), var(--cy, 70px)) scale(.82); }
  52% { transform: translate(var(--cx, 150px), var(--cy, 70px)) scale(1); }
  84% { transform: translate(var(--cx, 150px), var(--cy, 70px)) scale(1); opacity: 1; }
  96%, 100% { transform: translate(18px, 16px) scale(1); opacity: 0; }
}

/* ----- Sunset / twilight arc widget ----- */
.sun-widget { width: 200px; }
.sun-sky { position: relative; height: 84px; border-radius: 14px; overflow: hidden; background: linear-gradient(180deg, #ffd9a8, #ff9e6d 55%, #7c5cc4); animation: skyShift 8s ease-in-out infinite alternate; }
@keyframes skyShift {
  0% { background: linear-gradient(180deg,#bfe3ff,#9fd0ff 55%,#ffd9a8); }
  60% { background: linear-gradient(180deg,#ffd9a8,#ff9e6d 55%,#ff6a6a); }
  100% { background: linear-gradient(180deg,#ff8e6d,#a06bd0 55%,#3b2d6b); }
}
.sun-arc { position: absolute; left: 50%; bottom: 0; width: 2px; height: 56px; transform-origin: bottom center; animation: sunArc 8s ease-in-out infinite alternate; }
@keyframes sunArc { from { transform: translateX(-50%) rotate(-72deg); } to { transform: translateX(-50%) rotate(72deg); } }
.sun-ball { position: absolute; top: -9px; left: -8px; width: 18px; height: 18px; border-radius: 50%; background: radial-gradient(circle at 40% 35%, #fff6d6, #ffd34d 55%, #ff8a3d); box-shadow: 0 0 16px 4px rgba(255,180,80,.7); }
.sun-line { position: absolute; left: 0; right: 0; bottom: 18px; height: 1px; background: rgba(255,255,255,.5); }
.sun-meta { display: flex; align-items: center; justify-content: space-between; margin-top: 10px; }
.sun-meta .k { font-size: .68rem; color: var(--muted); font-weight: 600; }
.sun-meta .v { font-family: var(--font-display); font-weight: 800; font-size: .92rem; }

/* ----- Cycling notification toasts ----- */
.toast-card { overflow: hidden; }
.toast { display: flex; align-items: center; gap: 11px; opacity: 0; }
.toast .t-ic { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; color: #fff; flex: none; }
.toast .t-ic svg { width: 18px; height: 18px; }
.toast .t-k { font-size: .7rem; color: var(--muted); font-weight: 600; }
.toast .t-v { font-family: var(--font-display); font-weight: 800; font-size: .92rem; line-height: 1.15; }
.toast-cycle { position: relative; height: 40px; }
.toast-cycle .toast { position: absolute; inset: 0; animation: toastCycle 9s linear infinite; }
.toast-cycle .toast:nth-child(1) { animation-delay: 0s; }
.toast-cycle .toast:nth-child(2) { animation-delay: 3s; }
.toast-cycle .toast:nth-child(3) { animation-delay: 6s; }
@keyframes toastCycle {
  0% { opacity: 0; transform: translateY(10px); }
  4%, 30% { opacity: 1; transform: translateY(0); }
  34%, 100% { opacity: 0; transform: translateY(-10px); }
}

/* ----- Marquee ----- */
.marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee-track { display: flex; width: max-content; gap: 18px; animation: marquee 28s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee .m-item { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 700; color: var(--ink-2); font-size: 1.05rem; white-space: nowrap; }
.marquee .m-item .dot { color: var(--mango-2); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ----- Animated bars (loop) ----- */
.bars.live span { animation: barPulse 3.2s ease-in-out infinite; transform-origin: bottom; }
.bars.live span:nth-child(2){animation-delay:.2s}.bars.live span:nth-child(3){animation-delay:.4s}.bars.live span:nth-child(4){animation-delay:.6s}.bars.live span:nth-child(5){animation-delay:.8s}.bars.live span:nth-child(6){animation-delay:1s}.bars.live span:nth-child(7){animation-delay:1.2s}
@keyframes barPulse { 0%,100% { transform: scaleY(1); } 50% { transform: scaleY(1.18); } }

/* ----- Feature mini-illustrations (looping) ----- */
.mini { position: relative; height: 150px; border-radius: var(--radius); overflow: hidden; background: linear-gradient(150deg, #eef3f8, #e1e9f1); border: 1px solid var(--line); margin-bottom: 18px; display: grid; place-items: center; }
.mini .orb { opacity: .5; }

/* gallery upload shimmer tiles */
.tiles { display: grid; grid-template-columns: repeat(3, 38px); gap: 8px; }
.tiles span { height: 38px; border-radius: 8px; background: linear-gradient(110deg, #ffe6cf 30%, #ffd2b0 50%, #ffe6cf 70%); background-size: 220% 100%; animation: tileShimmer 2.4s linear infinite; }
.tiles span:nth-child(2){animation-delay:.2s}.tiles span:nth-child(3){animation-delay:.4s}.tiles span:nth-child(4){animation-delay:.6s}.tiles span:nth-child(5){animation-delay:.8s}.tiles span:nth-child(6){animation-delay:1s}
@keyframes tileShimmer { to { background-position: -220% 0; } }

/* ping ring */
.ping { position: relative; width: 54px; height: 54px; border-radius: 50%; background: var(--grad-mango); display: grid; place-items: center; color: #fff; }
.ping::before, .ping::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--mango-2); animation: ping 2.4s ease-out infinite; }
.ping::after { animation-delay: 1.2s; }
.ping svg { width: 26px; height: 26px; }
@keyframes ping { 0% { transform: scale(1); opacity: .7; } 100% { transform: scale(2.1); opacity: 0; } }

/* form builder fields drop-in */
.builder { width: 180px; display: grid; gap: 9px; }
.builder .fld { height: 18px; border-radius: 6px; background: #fff; border: 1px solid var(--line); animation: dropIn 4s ease-in-out infinite; }
.builder .fld:nth-child(2){animation-delay:.5s}.builder .fld:nth-child(3){animation-delay:1s; width:70%}
@keyframes dropIn { 0%,8% { opacity: 0; transform: translateY(-8px); } 16%,84% { opacity: 1; transform: translateY(0); } 100% { opacity: 1; transform: translateY(0); } }

/* signature drawing */
.sig svg path { stroke-dasharray: 240; stroke-dashoffset: 240; animation: sign 4.5s ease-in-out infinite; }
@keyframes sign { 0%,6% { stroke-dashoffset: 240; } 55%,80% { stroke-dashoffset: 0; } 100% { stroke-dashoffset: 0; opacity: 0; } }

/* count-up number wrapper (JS animates) */
.count { font-variant-numeric: tabular-nums; }

@media (prefers-reduced-motion: reduce) {
  .orb-1, .orb-2, .orb-3, .sched-cursor, .slot.target.book, .sun-arc, .sun-sky,
  .toast-cycle .toast, .marquee-track, .bars.live span, .tiles span, .ping::before,
  .ping::after, .builder .fld, .sig svg path, .text-mango.shimmer, .live-dot::after { animation: none !important; }
  .toast-cycle .toast:first-child { opacity: 1; }
  .sched-cursor { opacity: 0; }
}
