/* ==========================================================================
   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 - warm, organic canvas */
  --bg: #F7F1E9;            /* warm cream */
  --bg-tint: #EFE6DA;       /* deeper sand */
  --surface: #FFFCF8;       /* warm white */
  --surface-2: #F2EBE1;     /* soft oat */
  --ink: #241A14;           /* warm near-black */
  --ink-2: #47372D;         /* secondary */
  --muted: #6E5C4F;         /* body text, warm taupe */
  --muted-2: #9C8A7C;       /* captions */
  --line: #E3D8C9;          /* hairline */
  --line-2: #D2C3B0;

  /* Accent - ONE hue (coral), with tints and shades of itself */
  --accent: #F2542D;        /* signature coral */
  --accent-soft: #FF8A6B;   /* lighter tint */
  --accent-deep: #C63C1B;   /* deeper shade */
  --accent-ink: #B8360F;    /* readable on cream */
  --accent-wash: rgba(242,84,45,.10);
  /* single-hue gradient, never rainbow */
  --grad-accent: linear-gradient(135deg, #FF8A5B 0%, #F2542D 55%, #D8431C 100%);
  --grad-accent-soft: linear-gradient(135deg, rgba(242,84,45,.12), rgba(242,84,45,.05));

  /* legacy aliases kept so existing rules stay on-palette */
  --mango-1: #FF8A5B;
  --mango-2: #F2542D;
  --mango-3: #D8431C;
  --mango: #F2542D;
  --mango-ink: #B8360F;
  --grad-mango: linear-gradient(135deg, #FF8A5B 0%, #F2542D 55%, #D8431C 100%);
  --grad-mango-soft: linear-gradient(135deg, rgba(242,84,45,.12), rgba(242,84,45,.05));
  --leaf: #7A6A2F;          /* muted olive, stays in the warm family */
  --leaf-soft: rgba(122,106,47,.12);

  /* Footer */
  --footer-bg: #241A14;
  --footer-ink: #F3EADF;
  --footer-muted: #A8968A;
  --footer-line: rgba(255,255,255,.10);

  /* Effects */
  --shadow-sm: 0 1px 2px rgba(36,26,20,.04), 0 1px 3px rgba(36,26,20,.05);
  --shadow-md: 0 12px 32px -14px rgba(36,26,20,.20), 0 4px 10px -6px rgba(36,26,20,.08);
  --shadow-lg: 0 36px 70px -28px rgba(36,26,20,.28), 0 14px 28px -18px rgba(36,26,20,.14);
  --shadow-mango: 0 16px 40px -12px rgba(242,84,45,.34);

  /* Organic radii: nothing is a plain square */
  --radius-xs: 10px;
  --radius-sm: 16px;
  --radius: 22px;
  --radius-lg: 32px;
  --radius-xl: 44px;
  --radius-pill: 999px;
  --blob-a: 58% 42% 46% 54% / 44% 52% 48% 56%;
  --blob-b: 44% 56% 62% 38% / 56% 44% 56% 44%;

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

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

/* ----------  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;
  position: relative;
}
/* Ambient colour mesh: keeps the pale canvas from reading as flat grey. */
body::before {
  content: ""; position: fixed; inset: 0; z-index: -2; pointer-events: none;
  background:
    radial-gradient(760px 520px at 86% -8%, rgba(242,84,45,.14), transparent 64%),
    radial-gradient(660px 480px at 2% 10%, rgba(255,138,91,.12), transparent 62%),
    radial-gradient(900px 620px at 52% 106%, rgba(200,150,110,.12), transparent 64%);
}
/* Fine grain so large flat areas have tooth at any zoom. */
body::after {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  opacity: .32; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='.42'/%3E%3C/svg%3E");
}

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: 300;            /* light display weight, airy not heavy */
  line-height: 1.04;
  letter-spacing: -0.025em;
  text-wrap: balance;
}
h3 { font-weight: 500; letter-spacing: -0.015em; line-height: 1.2; }
.lede, .section-head p { text-wrap: pretty; }

.display {
  font-size: clamp(3rem, 8.6vw, 6.4rem);
  font-weight: 300;
  line-height: 1.0;
  letter-spacing: -0.035em;
}
.h-section {
  font-size: clamp(2.2rem, 5.2vw, 3.9rem);
  letter-spacing: -0.03em;
  line-height: 1.05;
}
.h-sub { font-size: clamp(1.35rem, 2.4vw, 1.75rem); font-weight: 500; letter-spacing: -0.02em; }

p { color: var(--muted); }
.lede {
  font-size: clamp(1.1rem, 1.7vw, 1.3rem);
  color: var(--ink-2);
  line-height: 1.5;
  font-weight: 400;
}
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); }
/* Translucent so the ambient mesh reads through; hairlines mark the seams. */
.bg-surface {
  background: linear-gradient(180deg, rgba(255,255,255,.82), rgba(255,255,255,.66));
  border-block: 1px solid rgba(255,255,255,.7);
  box-shadow: 0 1px 0 rgba(36,26,20,.04) inset;
}
.bg-surface-2 { background: rgba(238,242,246,.72); }
.bg-tint { background: var(--bg-tint); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--font-display);
  font-size: .74rem; font-weight: 700;
  letter-spacing: .16em; text-transform: uppercase;
  color: var(--mango-ink);
  padding: 8px 16px;
  border: 1px solid rgba(242,84,45,.22);
  border-radius: var(--radius-pill);
  background: linear-gradient(180deg, rgba(255,255,255,.92), rgba(255,255,255,.62));
  box-shadow: 0 1px 2px rgba(36,26,20,.04), inset 0 1px 0 rgba(255,255,255,.9);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.eyebrow::before {
  content: ""; width: 7px; height: 7px; border-radius: 50%;
  background: var(--grad-mango);
  box-shadow: 0 0 0 3px rgba(242,84,45,.14);
}
.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 {
  position: relative; isolation: isolate; overflow: hidden;
  background: var(--grad-mango);
  background-size: 180% 180%;
  box-shadow: 0 10px 24px -10px rgba(242,84,45,.55), inset 0 1px 0 rgba(255,255,255,.42);
  transition: transform .18s ease, box-shadow .3s ease, background-position .5s ease;
}
/* glass sheen across the top half */
.btn-primary::before {
  content: ""; position: absolute; inset: 0 0 50% 0;
  background: linear-gradient(180deg, rgba(255,255,255,.24), transparent);
  pointer-events: none;
}
/* light sweep on hover */
.btn-primary::after {
  content: ""; position: absolute; top: 0; bottom: 0; left: -60%; width: 45%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.42), transparent);
  transform: skewX(-18deg); opacity: 0; pointer-events: none;
}
.btn-primary:hover {
  background-position: 100% 0;
  box-shadow: 0 20px 42px -12px rgba(242,84,45,.62), inset 0 1px 0 rgba(255,255,255,.5);
}
.btn-primary:hover::after { animation: sheen .85s ease forwards; opacity: 1; }
@keyframes sheen { from { left: -60%; } to { left: 120%; } }

.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(247,241,233,.78);
  -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,138,91,.55), transparent 65%); top: -160px; right: -80px; }
.orb-2 { width: 420px; height: 420px; background: radial-gradient(circle, rgba(216,67,28,.42), transparent 66%); bottom: -180px; left: -120px; }
.orb-3 { width: 320px; height: 320px; background: radial-gradient(circle, rgba(242,84,45,.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(36,26,20,.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 {
  position: relative; isolation: isolate;
  background:
    linear-gradient(180deg, rgba(255,255,255,.9), rgba(255,255,255,.55)),
    var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: 30px 28px;
  box-shadow: 0 1px 2px rgba(36,26,20,.03), 0 8px 20px -16px rgba(36,26,20,.18);
  transition: transform .3s cubic-bezier(.16,1,.3,1), box-shadow .3s ease, border-color .3s ease;
  overflow: hidden;
}
/* soft coral wash that blooms up from the base on hover */
.card::after {
  content: ""; position: absolute; inset: auto -20% -70% -20%; height: 90%;
  background: radial-gradient(60% 100% at 50% 100%, rgba(242,84,45,.14), transparent 70%);
  opacity: 0; transition: opacity .4s ease; z-index: -1; pointer-events: none;
}
/* hairline highlight along the top edge */
.card::before {
  content: ""; position: absolute; top: 0; left: 12%; right: 12%; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.95), transparent);
  pointer-events: none;
}
.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 2px 4px rgba(36,26,20,.04), 0 28px 50px -24px rgba(36,26,20,.28);
  border-color: rgba(242,84,45,.30);
}
.card:hover::after { opacity: 1; }

.card .ic-chip {
  position: relative;
  width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center;
  background: var(--grad-mango); color: #fff; border: 0; margin-bottom: 22px;
  box-shadow: 0 8px 18px -8px rgba(242,84,45,.55), inset 0 1px 0 rgba(255,255,255,.45);
  transition: transform .3s cubic-bezier(.16,1,.3,1), box-shadow .3s ease;
}
.card .ic-chip svg { position: relative; z-index: 1; filter: drop-shadow(0 1px 1px rgba(120,40,10,.25)); }
.card:hover .ic-chip { transform: translateY(-2px) rotate(-3deg) scale(1.04); box-shadow: 0 14px 26px -10px rgba(242,84,45,.65), inset 0 1px 0 rgba(255,255,255,.45); }
.card .ic-chip.leaf {
  background: linear-gradient(140deg, #2BC57C, #0E7A49); color: #fff;
  box-shadow: 0 8px 18px -8px rgba(242,84,45,.55), inset 0 1px 0 rgba(255,255,255,.35);
}
.card:hover .ic-chip.leaf { box-shadow: 0 14px 26px -10px rgba(242,84,45,.6), inset 0 1px 0 rgba(255,255,255,.35); }
.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 {
  position: relative;
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(255,255,255,.9), rgba(255,255,255,.6));
  overflow: hidden;
  transition: border-color .3s ease, box-shadow .3s ease, transform .3s cubic-bezier(.16,1,.3,1);
}
/* coral rail marks the active step */
.step::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px;
  background: var(--grad-mango); transform: scaleY(0); transform-origin: top;
  transition: transform .4s cubic-bezier(.16,1,.3,1);
}
.step:hover { border-color: var(--line-2); }
.step.is-open {
  border-color: rgba(242,84,45,.28);
  box-shadow: 0 2px 4px rgba(36,26,20,.04), 0 24px 44px -26px rgba(36,26,20,.30);
}
.step.is-open::before { transform: scaleY(1); }
.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: #fff; color: var(--muted-2);
  border: 1px solid var(--line);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.9);
  transition: all .35s cubic-bezier(.16,1,.3,1);
}
.step.is-open .step-num {
  background: var(--grad-mango); color: #fff; border-color: transparent;
  transform: scale(1.06);
  box-shadow: 0 10px 22px -8px rgba(242,84,45,.6), inset 0 1px 0 rgba(255,255,255,.45);
}
.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: linear-gradient(180deg, rgba(255,255,255,.9), rgba(255,255,255,.6));
  border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: 20px 22px;
  box-shadow: 0 1px 2px rgba(36,26,20,.03);
  transition: transform .28s cubic-bezier(.16,1,.3,1), box-shadow .28s ease, border-color .28s ease;
}
.integration:hover { border-color: var(--line-2); }
.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(-4px); box-shadow: 0 20px 38px -26px rgba(36,26,20,.34); }
.integration .int-ic {
  width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center;
  background: #fff; border: 1px solid var(--line); flex: none;
  box-shadow: 0 2px 6px rgba(36,26,20,.06), inset 0 1px 0 rgba(255,255,255,.9);
}
.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: linear-gradient(170deg, #ffffff, #f7fafc);
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  box-shadow:
    0 1px 2px rgba(36,26,20,.04),
    0 24px 48px -28px rgba(36,26,20,.30),
    inset 0 1px 0 rgba(255,255,255,.9);
  padding: 30px; position: relative; overflow: hidden;
}
/* faint corner glow gives the panel dimension */
.visual-card::before {
  content: ""; position: absolute; top: -40%; right: -30%; width: 70%; height: 80%;
  background: radial-gradient(circle, rgba(255,138,91,.16), transparent 68%);
  pointer-events: none;
}

/* ----------  Stats band  ---------- */
.stats-band { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.stat-block { text-align: center; position: relative; padding-inline: 12px; }
.stat-block + .stat-block::before {
  content: ""; position: absolute; left: 0; top: 12%; bottom: 12%; width: 1px;
  background: linear-gradient(180deg, transparent, var(--line-2), transparent);
}
.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 .num { filter: drop-shadow(0 6px 14px rgba(242,84,45,.22)); }
.stat-block .lbl { margin-top: 12px; color: var(--muted); font-size: .95rem; text-wrap: balance; }

/* ----------  FAQ  ---------- */
.faq { display: grid; gap: 12px; max-width: 860px; margin-inline: auto; }
.faq-item {
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(255,255,255,.9), rgba(255,255,255,.62));
  overflow: hidden;
  transition: border-color .25s ease, box-shadow .25s ease;
}
.faq-item:hover { border-color: var(--line-2); }
.faq-item.is-open {
  border-color: rgba(242,84,45,.26);
  box-shadow: 0 2px 4px rgba(36,26,20,.04), 0 20px 40px -26px rgba(36,26,20,.28);
}
.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: 28px;
  background:
    radial-gradient(120% 140% at 88% -20%, rgba(242,84,45,.34), transparent 58%),
    radial-gradient(100% 120% at 0% 120%, rgba(216,67,28,.22), transparent 60%),
    linear-gradient(165deg, #16233a 0%, #0b1521 55%, #080f18 100%);
  color: #fff; padding: clamp(44px, 6vw, 76px);
  box-shadow: 0 40px 80px -40px rgba(36,26,20,.6), inset 0 1px 0 rgba(255,255,255,.10);
}
/* fine top highlight so the panel catches light */
.cta-band::before {
  content: ""; position: absolute; top: 0; left: 10%; right: 10%; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.35), transparent);
}
.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: 14px;
  border: 1.5px solid var(--line); color: var(--ink);
  background: linear-gradient(180deg, #fdfefe, #f4f8fb);
  font-size: 1rem;
  box-shadow: inset 0 2px 4px rgba(36,26,20,.05), 0 1px 0 rgba(255,255,255,.9);
  transition: border-color .22s ease, box-shadow .28s ease, background .22s ease, transform .22s ease;
}
.input::placeholder { color: var(--muted-2); }
.input:hover { border-color: var(--line-2); }
.input:focus {
  outline: none; border-color: var(--mango-2);
  background: #fff;
  transform: translateY(-1px);
  box-shadow:
    0 0 0 4px rgba(242,84,45,.14),
    inset 0 1px 2px rgba(36,26,20,.03),
    0 10px 24px -14px rgba(242,84,45,.5);
}
/* radius-pill variant for the single-field inline forms */
.beta-form .input { border-radius: var(--radius-pill); }
textarea.input { border-radius: 16px; resize: vertical; min-height: 130px; }
select.input {
  appearance: none; -webkit-appearance: none; cursor: pointer;
  padding-right: 44px;
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%238893a0' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"),
    linear-gradient(180deg, #fdfefe, #f4f8fb);
  background-repeat: no-repeat, no-repeat;
  background-position: right 16px center, 0 0;
}

/* Label picks up the accent on focus. Scoped to the field's own wrapper via
   the child combinator, so a focused input in a .form-row doesn't also
   highlight its sibling field's label. */
.form-grid div { position: relative; }
.form-grid div:focus-within > .label { color: var(--mango-ink); }
.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: .82rem; letter-spacing: .01em; margin-bottom: 8px; color: var(--ink-2);
  transition: color .22s ease;
}
.consent {
  display: flex; gap: 12px; align-items: flex-start; font-size: .88rem; color: var(--muted);
  padding: 14px 16px; border-radius: 14px;
  background: rgba(255,255,255,.5); border: 1px solid var(--line);
  transition: border-color .22s ease, background .22s ease;
}
.consent:hover { border-color: var(--line-2); background: rgba(255,255,255,.75); }
.consent:focus-within { border-color: rgba(242,84,45,.4); }
.consent input { margin-top: 2px; width: 18px; height: 18px; accent-color: var(--mango-2); flex: none; cursor: pointer; }
.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(242,84,45,.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; }
  /* Compact the header CTA so it plus the toggle fit a 390px viewport
     (the full-size button was pushing the bar 20px past the edge). */
  .nav-cta { padding: 10px 16px; font-size: .88rem; }
  .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(247,241,233,.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(242,84,45,.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; }
}

/* ----------  CTA split: copy left, offer panel right  ---------- */
.cta-split {
  display: grid; grid-template-columns: 1.15fr .85fr;
  gap: clamp(32px, 5vw, 64px); align-items: center;
}
.cta-split .cta-inner { position: relative; z-index: 2; max-width: 560px; }

.cta-offer {
  position: relative; z-index: 2;
  background: linear-gradient(170deg, rgba(255,255,255,.13), rgba(255,255,255,.05));
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 22px; padding: 28px 26px;
  -webkit-backdrop-filter: blur(16px) saturate(140%); backdrop-filter: blur(16px) saturate(140%);
  box-shadow: 0 30px 60px -30px rgba(0,0,0,.6), inset 0 1px 0 rgba(255,255,255,.22);
}
.cta-offer-top { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; }
.cta-offer-label {
  font-family: var(--font-display); font-weight: 700; font-size: .72rem;
  letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.66);
}
.cta-offer-price {
  font-family: var(--font-display); font-weight: 800; font-size: 2.6rem; letter-spacing: -0.04em;
  background: var(--grad-mango); -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 6px 16px rgba(242,84,45,.35));
}
.cta-offer-price small { font-size: .9rem; font-weight: 700; color: rgba(255,255,255,.6); -webkit-text-fill-color: rgba(255,255,255,.6); }
.cta-offer-note { margin-top: 10px; font-size: .88rem; color: rgba(255,255,255,.6); line-height: 1.55; }
.cta-offer-list { margin-top: 20px; display: grid; gap: 12px; }
.cta-offer-list li {
  display: flex; align-items: flex-start; gap: 11px;
  font-size: .93rem; color: rgba(255,255,255,.88); font-weight: 500;
}
.cta-offer-list svg { width: 15px; height: 15px; flex: none; margin-top: 4px; color: #2BC57C; }

@media (max-width: 900px) {
  .cta-split { grid-template-columns: 1fr; gap: 32px; }
  .cta-split .cta-inner { max-width: none; }
}

/* ----------  Contact: reply / chat card  ---------- */
.reply-card { max-width: 420px; margin-inline: auto; }
.reply-head { display: flex; align-items: center; gap: 13px; margin-bottom: 22px; position: relative; z-index: 1; }
.reply-avatar { width: 46px; height: 46px; flex: none; }
.reply-name { font-family: var(--font-display); font-weight: 800; font-size: 1rem; letter-spacing: -0.02em; }
.reply-status { display: flex; align-items: center; gap: 7px; font-size: .82rem; color: var(--muted); margin-top: 2px; }

.bubble {
  position: relative; z-index: 1;
  max-width: 84%; padding: 13px 17px; font-size: .93rem; line-height: 1.5;
  margin-bottom: 12px;
  animation: bubbleIn .6s cubic-bezier(.16,1,.3,1) backwards;
}
.bubble-in {
  background: #fff; border: 1px solid var(--line); color: var(--ink-2);
  border-radius: 16px 16px 16px 5px;
  box-shadow: 0 2px 8px rgba(36,26,20,.05);
  animation-delay: .15s;
}
.bubble-out {
  margin-left: auto; color: #fff; font-weight: 500;
  background: var(--grad-mango);
  border-radius: 16px 16px 5px 16px;
  box-shadow: 0 10px 22px -10px rgba(242,84,45,.6), inset 0 1px 0 rgba(255,255,255,.35);
  animation-delay: .55s;
}
@keyframes bubbleIn { from { opacity: 0; transform: translateY(10px) scale(.96); } to { opacity: 1; transform: none; } }

.reply-typing {
  position: relative; z-index: 1;
  display: inline-flex; align-items: center; gap: 5px;
  padding: 12px 16px; border-radius: 16px 16px 16px 5px;
  background: #fff; border: 1px solid var(--line);
  box-shadow: 0 2px 8px rgba(36,26,20,.05);
}
.reply-typing span {
  width: 7px; height: 7px; border-radius: 50%; background: var(--muted-2);
  animation: typing 1.4s ease-in-out infinite;
}
.reply-typing span:nth-child(2) { animation-delay: .18s; }
.reply-typing span:nth-child(3) { animation-delay: .36s; }
@keyframes typing { 0%,60%,100% { transform: translateY(0); opacity: .45; } 30% { transform: translateY(-5px); opacity: 1; } }

@media (prefers-reduced-motion: reduce) {
  .bubble, .reply-typing span { animation: none !important; }
}

/* ==========================================================================
   EDITORIAL LAYER
   Breaks the uniform card-grid rhythm: asymmetric bento cells, a sticky
   scroll-driven showcase, oversized numerals and hairline structure.
   ========================================================================== */

/* ----- Editorial label: "01 / 06" style meta ----- */
.rule-label {
  display: flex; align-items: center; gap: 14px;
  font-family: var(--font-display); font-weight: 700;
  font-size: .7rem; letter-spacing: .2em; text-transform: uppercase;
  color: var(--muted-2); font-variant-numeric: tabular-nums;
}
.rule-label::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, var(--line-2), transparent); }
.rule-label .idx { color: var(--mango-ink); }

/* ----- Section head, left-aligned editorial variant ----- */
.head-xl { max-width: 900px; }
.head-xl h2 { font-size: clamp(2.6rem, 6.4vw, 5rem); letter-spacing: -0.03em; line-height: 1.04; font-weight: 300; }
.head-xl .sub { margin-top: 22px; max-width: 560px; font-size: 1.12rem; color: var(--muted); }

/* ==========  BENTO  ========== */
.bento {
  display: grid; grid-template-columns: repeat(6, 1fr);
  gap: 16px; margin-top: 44px;
}
.bento-cell {
  position: relative; isolation: isolate; overflow: hidden;
  border-radius: 24px; padding: 30px;
  background: linear-gradient(180deg, rgba(255,255,255,.92), rgba(255,255,255,.62));
  border: 1px solid var(--line);
  box-shadow: 0 1px 2px rgba(36,26,20,.03), 0 10px 26px -20px rgba(36,26,20,.22);
  transition: transform .4s cubic-bezier(.16,1,.3,1), box-shadow .4s ease, border-color .4s ease;
  display: flex; flex-direction: column;
}
.bento-cell:hover {
  transform: translateY(-5px);
  border-color: rgba(242,84,45,.28);
  box-shadow: 0 2px 4px rgba(36,26,20,.04), 0 30px 56px -28px rgba(36,26,20,.32);
}
.bento-cell h3 { font-size: 1.22rem; margin-bottom: 9px; }
.bento-cell p { font-size: .96rem; }
.bento-cell .num {
  font-family: var(--font-display); font-weight: 800; font-size: .72rem;
  letter-spacing: .18em; color: var(--muted-2); font-variant-numeric: tabular-nums;
  margin-bottom: 16px;
}

/* spans */
.c-4 { grid-column: span 4; }
.c-3 { grid-column: span 3; }
.c-2 { grid-column: span 2; }

/* dark feature cell */
.bento-cell.is-dark {
  background:
    radial-gradient(110% 130% at 84% -14%, rgba(242,84,45,.34), transparent 58%),
    linear-gradient(165deg, #16233a, #0b1521 62%, #080f18);
  border-color: rgba(255,255,255,.10); color: #fff;
  box-shadow: 0 30px 60px -34px rgba(36,26,20,.6), inset 0 1px 0 rgba(255,255,255,.10);
}
.bento-cell.is-dark h3 { color: #fff; }
.bento-cell.is-dark p { color: rgba(255,255,255,.72); }
.bento-cell.is-dark .num { color: rgba(255,255,255,.42); }

/* accent (coral) cell */
.bento-cell.is-accent {
  background: linear-gradient(150deg, #ff8a3d, #ff5a3c 52%, #ff3d77);
  border-color: transparent; color: #fff;
  box-shadow: 0 24px 50px -26px rgba(255,90,60,.7), inset 0 1px 0 rgba(255,255,255,.4);
}
.bento-cell.is-accent h3, .bento-cell.is-accent p { color: #fff; }
.bento-cell.is-accent p { color: rgba(255,255,255,.86); }
.bento-cell.is-accent .num { color: rgba(255,255,255,.6); }

.bento-figure { margin-top: auto; padding-top: 24px; }

/* mini bar chart used inside a bento cell */
.mini-bars { display: flex; align-items: flex-end; gap: 6px; height: 64px; }
.mini-bars span {
  flex: 1; border-radius: 4px 4px 0 0; background: rgba(255,255,255,.28);
  animation: barPulse 3.2s ease-in-out infinite; transform-origin: bottom;
}
.mini-bars span:nth-child(2){animation-delay:.15s}.mini-bars span:nth-child(3){animation-delay:.3s}
.mini-bars span:nth-child(4){animation-delay:.45s}.mini-bars span:nth-child(5){animation-delay:.6s}
.mini-bars span:nth-child(6){animation-delay:.75s}
.mini-bars span:last-child { background: rgba(255,255,255,.85); box-shadow: 0 0 16px rgba(255,255,255,.35); }

/* pill row inside bento */
.chip-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; padding-top: 22px; }
.chip-row span {
  font-family: var(--font-display); font-weight: 700; font-size: .72rem;
  padding: 7px 12px; border-radius: 999px;
  border: 1px solid var(--line-2); color: var(--muted);
  background: rgba(255,255,255,.6);
}
.is-dark .chip-row span { border-color: rgba(255,255,255,.16); color: rgba(255,255,255,.8); background: rgba(255,255,255,.06); }

@media (max-width: 980px) {
  .bento { grid-template-columns: repeat(2, 1fr); }
  .c-4, .c-3, .c-2 { grid-column: span 1; }
}
@media (max-width: 640px) {
  .bento { grid-template-columns: 1fr; }
}

/* ==========  STICKY SHOWCASE  ========== */
.showcase { position: relative; }
.showcase-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 90px); align-items: start; }

.showcase-sticky { position: sticky; top: calc(var(--header-h) + 40px); }
.showcase-stage {
  position: relative; aspect-ratio: 4/3.4; border-radius: 26px; overflow: hidden;
  background:
    radial-gradient(120% 120% at 80% -10%, rgba(255,138,91,.20), transparent 60%),
    linear-gradient(170deg, #ffffff, #eef3f8);
  border: 1px solid var(--line);
  box-shadow: 0 40px 80px -44px rgba(36,26,20,.45), inset 0 1px 0 rgba(255,255,255,.9);
}
.stage-panel {
  position: absolute; inset: 0; display: grid; place-items: center; padding: 34px;
  opacity: 0; transform: scale(.97) translateY(14px);
  transition: opacity .55s cubic-bezier(.16,1,.3,1), transform .55s cubic-bezier(.16,1,.3,1);
  pointer-events: none;
}
.stage-panel.on { opacity: 1; transform: none; }
.stage-panel > * { width: 100%; max-width: 340px; }

/* steps column with a coral progress rail that fills on scroll */
.showcase-steps { position: relative; padding-left: 40px; }
.showcase-steps::before {
  content: ""; position: absolute; left: 9px; top: 12px; bottom: 12px; width: 2px;
  background: var(--line-2); border-radius: 2px;
}
.showcase-steps::after {
  content: ""; position: absolute; left: 9px; top: 12px; width: 2px; border-radius: 2px;
  height: var(--progress, 0%); background: var(--grad-mango);
  box-shadow: 0 0 12px rgba(242,84,45,.6);
  transition: height .25s linear;
}
.sc-item { position: relative; padding-block: clamp(48px, 8vh, 96px); }
.sc-item::before {
  content: ""; position: absolute; left: -37px; top: calc(clamp(48px, 8vh, 96px) + 8px);
  width: 16px; height: 16px; border-radius: 50%;
  background: #fff; border: 2px solid var(--line-2);
  transition: border-color .4s ease, box-shadow .4s ease, transform .4s ease;
}
.sc-item.on::before {
  border-color: var(--mango-2); transform: scale(1.15);
  box-shadow: 0 0 0 6px rgba(242,84,45,.16);
}
.sc-num {
  font-family: var(--font-display); font-weight: 800; font-size: .72rem;
  letter-spacing: .2em; color: var(--muted-2); font-variant-numeric: tabular-nums;
  transition: color .4s ease;
}
.sc-item.on .sc-num { color: var(--mango-ink); }
.sc-item h3 {
  font-size: clamp(1.6rem, 3vw, 2.3rem); margin-top: 12px; letter-spacing: -0.04em;
  color: var(--muted-2); transition: color .45s ease;
}
.sc-item.on h3 { color: var(--ink); }
.sc-item p { margin-top: 14px; font-size: 1.04rem; max-width: 440px; opacity: .55; transition: opacity .45s ease; }
.sc-item.on p { opacity: 1; }

@media (max-width: 900px) {
  .showcase-grid { grid-template-columns: 1fr; gap: 0; }
  .showcase-sticky { position: static; margin-bottom: 34px; }
  .showcase-stage { aspect-ratio: 16/11; }
  .sc-item { padding-block: 34px; }
  .sc-item h3, .sc-item p { color: var(--ink); opacity: 1; }
}

/* ==========  Hero kinetics  ========== */
.kinetic > span { display: inline-block; }
.js .kinetic > span {
  opacity: 0; transform: translateY(.5em) rotate(2deg);
  animation: wordUp .9s cubic-bezier(.16,1,.3,1) forwards;
}
@keyframes wordUp { to { opacity: 1; transform: none; } }

.scroll-cue {
  display: inline-flex; align-items: center; gap: 10px; margin-top: 42px;
  font-family: var(--font-display); font-weight: 700; font-size: .7rem;
  letter-spacing: .2em; text-transform: uppercase; color: var(--muted-2);
}
.scroll-cue i {
  width: 22px; height: 34px; border-radius: 12px; border: 1.5px solid var(--line-2);
  position: relative; flex: none;
}
.scroll-cue i::after {
  content: ""; position: absolute; left: 50%; top: 7px; width: 3px; height: 7px;
  border-radius: 2px; background: var(--mango-2); transform: translateX(-50%);
  animation: cueDrop 1.8s cubic-bezier(.16,1,.3,1) infinite;
}
@keyframes cueDrop { 0% { transform: translate(-50%,0); opacity: 0; } 30% { opacity: 1; } 70% { transform: translate(-50%,12px); opacity: 0; } 100% { opacity: 0; } }

@media (prefers-reduced-motion: reduce) {
  .js .kinetic > span { animation: none; opacity: 1; transform: none; }
  .scroll-cue i::after, .mini-bars span { animation: none; }
  .stage-panel { transition: none; }
}

/* ==========================================================================
   MOTION LAYER
   Scroll-scrubbed word reveals, radar pulses, drawn-on charts and a faint
   structural grid. Palette stays Mangoe; only the techniques are borrowed.
   ========================================================================== */

/* ----- Faint vertical grid columns behind everything ----- */
.grid-lines { display: none; }   /* retired: too rigid for the organic direction */

/* ----- Mono label (the cryptowl-style eyebrow) ----- */
.mono-label {
  display: block;
  font-family: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, Consolas, monospace;
  font-size: .74rem; font-weight: 500;
  letter-spacing: .22em; text-transform: uppercase;
  color: var(--mango-ink);
}
.mono-label.dim { color: var(--muted-2); }

/* ----- Scroll-scrubbed word reveal -----
   Each word starts dim and resolves to full contrast as the block passes
   through the viewport. Driven by --p (0-1) set from JS. */
.reveal-words w {
  display: inline-block;
  color: color-mix(in srgb, var(--ink) calc(var(--w) * 100%), var(--line-2));
  transition: color .18s linear;
}
.reveal-words.on-dark w { color: color-mix(in srgb, #fff calc(var(--w) * 100%), rgba(255,255,255,.18)); }
/* graceful fallback where color-mix is unsupported */
@supports not (color: color-mix(in srgb, red 50%, blue)) {
  .reveal-words w { color: var(--ink); }
  .reveal-words.on-dark w { color: #fff; }
}

/* ----- Radar: concentric rings pulsing out from a centre dot ----- */
.radar { position: relative; width: 100%; aspect-ratio: 1; max-width: 340px; margin-inline: auto; }
.radar i {
  position: absolute; inset: 0; margin: auto; border-radius: 50%;
  border: 1px solid rgba(242,84,45,.34);
  animation: radarOut 4.4s cubic-bezier(.22,.61,.36,1) infinite;
  opacity: 0;
}
.radar i:nth-child(2) { animation-delay: 1.1s; }
.radar i:nth-child(3) { animation-delay: 2.2s; }
.radar i:nth-child(4) { animation-delay: 3.3s; }
@keyframes radarOut {
  0%   { width: 12%; height: 12%; opacity: 0; }
  12%  { opacity: .85; }
  100% { width: 100%; height: 100%; opacity: 0; }
}
.radar .core {
  position: absolute; inset: 0; margin: auto; width: 14px; height: 14px;
  border-radius: 50%; background: var(--grad-mango);
  box-shadow: 0 0 0 6px rgba(242,84,45,.14), 0 0 30px 6px rgba(242,84,45,.45);
  animation: corePulse 4.4s ease-in-out infinite;
}
@keyframes corePulse { 0%,100% { transform: scale(1); } 50% { transform: scale(1.25); } }

/* ----- Chart that draws itself in when scrolled to ----- */
.draw-chart { width: 100%; height: auto; overflow: visible; }
.draw-chart .line {
  fill: none; stroke: url(#chartGrad); stroke-width: 2.5;
  stroke-linecap: round; stroke-linejoin: round;
  stroke-dasharray: 1000; stroke-dashoffset: 1000;
}
.draw-chart.in .line { animation: drawLine 2.2s cubic-bezier(.16,1,.3,1) forwards; }
@keyframes drawLine { to { stroke-dashoffset: 0; } }
.draw-chart .area { fill: url(#chartFill); opacity: 0; }
.draw-chart.in .area { animation: fadeArea 1.4s ease .7s forwards; }
@keyframes fadeArea { to { opacity: 1; } }
.draw-chart .pt { opacity: 0; }
.draw-chart.in .pt { animation: popPt .5s cubic-bezier(.16,1,.3,1) forwards; }
.draw-chart.in .pt:nth-of-type(1) { animation-delay: 1.5s; }
.draw-chart.in .pt:nth-of-type(2) { animation-delay: 1.7s; }
.draw-chart.in .pt:nth-of-type(3) { animation-delay: 1.9s; }
@keyframes popPt { from { opacity: 0; transform: scale(.4); } to { opacity: 1; transform: none; } }
.draw-chart .gridline { stroke: var(--line); stroke-width: 1; stroke-dasharray: 3 5; }

@media (prefers-reduced-motion: reduce) {
  .radar i, .radar .core { animation: none; }
  .radar i:first-child { opacity: .5; width: 70%; height: 70%; }
  .draw-chart .line { stroke-dashoffset: 0 !important; animation: none !important; }
  .draw-chart .area, .draw-chart .pt { opacity: 1 !important; animation: none !important; }
  .reveal-words w { color: var(--ink) !important; }
  .reveal-words.on-dark w { color: #fff !important; }
}

/* ==========================================================================
   ORGANIC LAYER
   Softens the rectilinear grid: blobs, circles, arcs and curved section
   edges replace hard boxes. One accent hue only.
   ========================================================================== */

/* ----- Blobs: irregular, slowly morphing organic shapes ----- */
.blob {
  position: absolute; pointer-events: none; z-index: 0;
  border-radius: var(--blob-a);
  background: var(--grad-accent-soft);
  filter: blur(2px);
  animation: morph 18s ease-in-out infinite alternate;
}
.blob.b2 { border-radius: var(--blob-b); animation-duration: 24s; animation-direction: alternate-reverse; }
@keyframes morph {
  0%   { border-radius: var(--blob-a); transform: rotate(0deg) scale(1); }
  50%  { border-radius: var(--blob-b); transform: rotate(8deg) scale(1.06); }
  100% { border-radius: 52% 48% 38% 62% / 48% 56% 44% 52%; transform: rotate(-6deg) scale(.98); }
}

/* ----- Icon holders become circles, not rounded squares ----- */
.card .ic-chip,
.mission-point .mp-ic,
.integration .int-ic,
.float-card .fc-ic,
.toast .t-ic,
.list-row .ic {
  border-radius: 50% !important;
}
.step-num, .bento-cell .num-badge { border-radius: 50%; }

/* ----- Cards get an organic, asymmetric silhouette ----- */
.card {
  border-radius: 34px 34px 34px 10px;
}
.card:nth-child(even) { border-radius: 34px 34px 10px 34px; }
.bento-cell { border-radius: 36px 36px 36px 12px; }
.bento-cell:nth-child(even) { border-radius: 36px 36px 12px 36px; }
.bento-cell.c-4 { border-radius: 44px 44px 44px 14px; }
.visual-card { border-radius: 38px 38px 38px 14px; }
.cta-band { border-radius: 44px 44px 44px 16px; }
.showcase-stage { border-radius: 42px 42px 42px 16px; }
.mockup { border-radius: 34px 34px 34px 12px; }
.faq-item, .step { border-radius: 26px; }
.reply-card { border-radius: 38px 38px 38px 14px; }

/* ----- Curved section edge: a soft arc instead of a hard seam ----- */
.curve-top, .curve-bottom { position: relative; }
/* Inset rather than bleeding past the edges: a negative right offset here
   pushes the document scroll width past the viewport on mobile. */
.curve-top, .curve-bottom { overflow: visible; }
.curve-top::before, .curve-bottom::after {
  content: ""; position: absolute; left: 0; right: 0; height: 70px;
  background: inherit; z-index: 1;
}
.curve-top::before { top: -34px; border-radius: 50% 50% 0 0 / 100% 100% 0 0; }
.curve-bottom::after { bottom: -34px; border-radius: 0 0 50% 50% / 0 0 100% 100%; }

/* ----- Arc: a thin curved stroke used as a decorative flourish ----- */
.arc {
  position: absolute; pointer-events: none; z-index: 0;
  border: 1.5px solid var(--accent-wash);
  border-radius: 50%;
  border-right-color: transparent; border-bottom-color: transparent;
  animation: arcSpin 40s linear infinite;
}
@keyframes arcSpin { to { transform: rotate(360deg); } }

/* ----- Buttons: fully round, single-hue ----- */
.btn { border-radius: var(--radius-pill); font-weight: 500; letter-spacing: -0.005em; }
.btn-primary { background: var(--grad-accent); }

/* ----- Pills and chips keep the round language ----- */
.chip-row span, .eyebrow, .int-soon { border-radius: var(--radius-pill); }

/* ----- Inputs soften ----- */
.input { border-radius: 18px; }
textarea.input { border-radius: 22px; }
.consent { border-radius: 20px; }

/* ----- Bubbles already organic; round them further ----- */
.bubble-in { border-radius: 22px 22px 22px 6px; }
.bubble-out { border-radius: 22px 22px 6px 22px; }

/* ----- Footer gets a curved top edge ----- */
.site-footer { border-radius: 48px 48px 0 0; margin-top: 8px; }

@media (prefers-reduced-motion: reduce) {
  .blob, .arc { animation: none; }
}

/* ==========================================================================
   DARK SECTION
   One deep, warm section breaks the cream run and gives the page contrast.
   ========================================================================== */
.is-dark-section {
  background:
    radial-gradient(90% 70% at 82% -10%, rgba(242,84,45,.22), transparent 62%),
    radial-gradient(70% 60% at 8% 108%, rgba(255,138,91,.14), transparent 64%),
    linear-gradient(168deg, #2E211A 0%, #241A14 58%, #1B120D 100%);
  color: var(--footer-ink);
  margin-block: 10px;
}
.is-dark-section h2,
.is-dark-section h3 { color: #FFF8F1; }
.is-dark-section p { color: rgba(243,234,223,.68); }
.is-dark-section .mono-label { color: var(--accent-soft); }
.is-dark-section .reveal-words w {
  color: color-mix(in srgb, #FFF8F1 calc(var(--w) * 100%), rgba(243,234,223,.20));
}
@supports not (color: color-mix(in srgb, red 50%, blue)) {
  .is-dark-section .reveal-words w { color: #FFF8F1; }
}
/* showcase pieces adapt to the dark ground */
.is-dark-section .showcase-stage {
  background:
    radial-gradient(120% 120% at 78% -10%, rgba(242,84,45,.20), transparent 62%),
    linear-gradient(168deg, rgba(255,255,255,.09), rgba(255,255,255,.03));
  border-color: rgba(255,255,255,.12);
  box-shadow: 0 40px 80px -44px rgba(0,0,0,.7), inset 0 1px 0 rgba(255,255,255,.14);
}
.is-dark-section .showcase-steps::before { background: rgba(255,255,255,.14); }
.is-dark-section .sc-item::before { background: #241A14; border-color: rgba(255,255,255,.24); }
.is-dark-section .sc-item.on::before { border-color: var(--accent); box-shadow: 0 0 0 6px rgba(242,84,45,.22); }
.is-dark-section .sc-num { color: rgba(243,234,223,.42); }
.is-dark-section .sc-item.on .sc-num { color: var(--accent-soft); }
.is-dark-section .sc-item h3 { color: rgba(243,234,223,.34); }
.is-dark-section .sc-item.on h3 { color: #FFF8F1; }
/* stage inner widgets stay legible on dark */
.is-dark-section .list-row,
.is-dark-section .stat,
.is-dark-section .sched {
  background: rgba(255,255,255,.07);
  border-color: rgba(255,255,255,.12);
  color: #FFF8F1;
}
.is-dark-section .list-row .l,
.is-dark-section .stat .v,
.is-dark-section .sched-head .title { color: #FFF8F1; }
.is-dark-section .stat .k,
.is-dark-section .sched-col .d { color: rgba(243,234,223,.52); }
.is-dark-section .slot { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.10); }
.is-dark-section .sched-chips .c { color: rgba(243,234,223,.6); border-color: rgba(255,255,255,.16); }
.is-dark-section .seg { background: rgba(255,255,255,.08); }
.is-dark-section .seg span { color: rgba(243,234,223,.6); }
.is-dark-section .seg span.on { background: rgba(255,255,255,.16); color: #FFF8F1; }
