/* ============================================================
   Job Manager — Marketing site  ·  Design tokens & global styles
   Ported from the Claude Design handoff (job-management-website).
   Loaded by landing.php and the restyled auth pages — kept separate
   from the app's style.css so the public site can evolve on its own.
   ============================================================ */

:root {
  /* ---- Ink / surface scale (deep navy anchor #1e2a3a) ---- */
  --ink-950: #15202c;
  --ink-900: #1e2a3a;
  --ink-850: #24303f;
  --ink-800: #2b3848;
  --ink-750: #334052;
  --ink-700: #3c4a5e;
  --ink-600: #4d5e74;

  /* ---- Accent (warm coral) — overridable by the backend editor ---- */
  --accent: #e8857a;
  --accent-bright: #f09e94;
  --accent-deep: #d56b5f;
  --accent-soft: #fbe1dd;
  --accent-ink: #6e2c24;            /* text on light accent tints */
  /* derived RGB for alpha use, set by JS when accent changes */
  --accent-rgb: 232, 133, 122;

  /* ---- AI accent (indigo) — intentional secondary, reserved for AI / add-on
     surfaces only. Deliberately NOT driven by the tenant accent override. ---- */
  --ai: #6366f1;
  --ai-deep: #4338ca;
  --ai-rgb: 99, 102, 241;
  --ai-tint: #c4b5fd;

  /* ---- Neutrals (light surfaces) ---- */
  --paper: #ffffff;
  --paper-2: #eef1f6;
  --paper-3: #e3e8f0;
  --line: #dde3ec;
  --line-soft: #e8ecf3;

  /* ---- Text ---- */
  --text-strong: #1e2a3a;
  --text: #3b4658;
  --text-soft: #6b7689;
  --text-faint: #9aa3b2;
  --on-dark: #eef2f8;
  --on-dark-soft: #aeb8c8;
  --on-dark-faint: #717d92;

  /* ---- Status ---- */
  --ok: #4f9d78;     --ok-bg: #e7f4ec;
  --busy: #7e72c0;   --busy-bg: #ece9f8;
  --warn: #c98f3c;   --warn-bg: #fbf1dd;
  --hot: var(--accent);

  /* ---- Type ---- */
  --font-display: 'Space Grotesk', system-ui, sans-serif;
  --font-body: 'Plus Jakarta Sans', system-ui, sans-serif;

  /* ---- Radius ---- */
  --r-sm: 9px;
  --r-md: 14px;
  --r-lg: 20px;
  --r-xl: 24px;
  --r-2xl: 28px;
  --r-pill: 999px;

  /* ---- Shadow ---- */
  --sh-sm: 0 1px 2px rgba(16,21,31,.06), 0 1px 3px rgba(16,21,31,.04);
  --sh-md: 0 4px 14px rgba(16,21,31,.08), 0 2px 6px rgba(16,21,31,.05);
  --sh-lg: 0 18px 48px -12px rgba(16,21,31,.22), 0 8px 20px -8px rgba(16,21,31,.12);
  --sh-xl: 0 40px 90px -24px rgba(16,21,31,.45);
  --glow: 0 8px 30px -6px rgba(var(--accent-rgb), .55);

  /* ---- Layout ---- */
  --maxw: 1200px;
  --nav-h: 72px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  color: var(--text-strong);
  margin: 0;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.04;
  text-wrap: balance;
}
p { margin: 0; line-height: 1.6; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
img { display: block; max-width: 100%; }
input, select, textarea { font-family: inherit; }

::selection { background: rgba(var(--accent-rgb), .25); }

/* ---- Reusable utility ---- */
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 max(28px, env(safe-area-inset-right)) 0 max(28px, env(safe-area-inset-left)); }
.eyebrow {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 12.5px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent-deep);
}
.on-dark .eyebrow { color: var(--accent-bright); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 15.5px;
  letter-spacing: -0.01em;
  padding: 0 22px;
  height: 52px;
  border-radius: var(--r-md);
  transition: transform .18s cubic-bezier(.2,.7,.3,1), box-shadow .25s, background .2s, color .2s;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px) scale(.99); }
.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: var(--glow);
}
.btn-primary:hover { background: var(--accent-deep); transform: translateY(-2px); box-shadow: 0 14px 36px -8px rgba(var(--accent-rgb), .6); }
.btn-ghost-dark {
  background: rgba(255,255,255,.06);
  color: var(--on-dark);
  border: 1px solid rgba(255,255,255,.14);
}
.btn-ghost-dark:hover { background: rgba(255,255,255,.12); transform: translateY(-2px); }
.btn-ghost-light {
  background: var(--paper);
  color: var(--text-strong);
  border: 1px solid var(--line);
  box-shadow: var(--sh-sm);
}
.btn-ghost-light:hover { border-color: var(--accent); color: var(--accent-deep); transform: translateY(-2px); }
.btn-sm { height: 42px; font-size: 14px; padding: 0 16px; }
.btn-lg { height: 58px; font-size: 17px; padding: 0 28px; }
.btn-block { width: 100%; }

/* Badges / pills */
.pill {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-display);
  font-weight: 600; font-size: 12.5px;
  padding: 4px 11px; border-radius: var(--r-pill);
  line-height: 1.3;
}
.pill-ok { background: var(--ok-bg); color: var(--ok); }
.pill-busy { background: var(--busy-bg); color: var(--busy); }
.pill-warn { background: var(--warn-bg); color: var(--warn); }
.pill-hot { background: var(--accent-soft); color: var(--accent-deep); }
.pill-dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }

/* Cards */
.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-md);
}

/* Scroll reveal — content is VISIBLE BY DEFAULT (safe in hidden docs / no-JS).
   The hidden-then-animate behaviour is "armed" by JS only when the document is
   actually visible, so transitions (which never start in a hidden document) can
   never leave content stuck invisible. */
.reveal { opacity: 1; transform: none; }
html.reveal-armed .reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s cubic-bezier(.2,.7,.3,1), transform .7s cubic-bezier(.2,.7,.3,1); }
html.reveal-armed .reveal.in { opacity: 1; transform: none; }
/* Directional reveal variants — add data-fx="left|right|scale" to any .reveal */
html.reveal-armed .reveal[data-fx="left"]  { transform: translateX(-40px); }
html.reveal-armed .reveal[data-fx="right"] { transform: translateX(40px); }
html.reveal-armed .reveal[data-fx="scale"] { transform: scale(.94); }
html.reveal-armed .reveal[data-fx].in      { transform: none; }
/* Scroll-progress bar (coral, fixed at the top of the page) */
.scroll-prog { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 80; pointer-events: none; }
.scroll-prog__bar { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--accent-deep), var(--accent-bright)); box-shadow: 0 0 12px rgba(var(--accent-rgb), .6); transition: width .08s linear; }
@media (prefers-reduced-motion: reduce) { .scroll-prog__bar { transition: none; } }

/* Floating back-to-top button */
.to-top {
  position: fixed; z-index: 70;
  right: max(20px, env(safe-area-inset-right)); bottom: max(20px, env(safe-area-inset-bottom));
  width: 46px; height: 46px; border-radius: 50%; border: none; cursor: pointer;
  display: grid; place-items: center; color: #fff;
  background: var(--accent); box-shadow: var(--glow), 0 8px 20px -6px rgba(16,21,31,.35);
  opacity: 0; transform: translateY(12px) scale(.9); pointer-events: none;
  transition: opacity .25s, transform .25s, background .2s;
  -webkit-tap-highlight-color: transparent;
}
.to-top.show { opacity: 1; transform: none; pointer-events: auto; }
.to-top:hover { background: var(--accent-deep); transform: translateY(-2px); }
.to-top svg { width: 22px; height: 22px; display: block; }
@media (prefers-reduced-motion: reduce) { .to-top { transition: opacity .2s; } }
@media (prefers-reduced-motion: reduce) {
  .reveal, html.reveal-armed .reveal { opacity: 1 !important; transform: none !important; transition: none; }
  html { scroll-behavior: auto; }
  /* Kill perpetual decorative loops (floaty/pulse-ring/aiblink) — these are set
     via inline styles, so !important is required to override them. */
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}

/* Section rhythm */
.section { padding: 96px 0; }
.section-sm { padding: 64px 0; }

/* Logo squircle */
.logo-mark {
  display: grid; place-items: center;
  background: linear-gradient(150deg, var(--accent-bright), var(--accent-deep));
  color: #fff;
  border-radius: 30%;
  box-shadow: var(--glow);
  flex: none;
}

/* Custom scrollbar for app mocks */
.thin-scroll::-webkit-scrollbar { width: 8px; height: 8px; }
.thin-scroll::-webkit-scrollbar-thumb { background: rgba(0,0,0,.14); border-radius: 999px; }
.thin-scroll::-webkit-scrollbar-track { background: transparent; }

/* Marquee */
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* Floating */
@keyframes floaty { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

/* Pulse dot */
@keyframes pulse-ring {
  0% { box-shadow: 0 0 0 0 rgba(var(--accent-rgb), .5); }
  70% { box-shadow: 0 0 0 12px rgba(var(--accent-rgb), 0); }
  100% { box-shadow: 0 0 0 0 rgba(var(--accent-rgb), 0); }
}

/* Gradient mesh background for dark sections */
.mesh {
  background:
    radial-gradient(60% 80% at 78% 12%, rgba(var(--accent-rgb), .22), transparent 60%),
    radial-gradient(50% 70% at 10% 90%, rgba(126,114,192,.16), transparent 60%),
    var(--ink-900);
}

.grain { position: relative; }
.grain::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image: radial-gradient(rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 4px 4px;
}

/* ---- Keyframes used by components ---- */
@keyframes fadeSwap { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes pop { from { transform: scale(.5); opacity: 0; } to { transform: scale(1); opacity: 1; } }
@keyframes routedraw { from { stroke-dashoffset: 1100; } to { stroke-dashoffset: 0; } }
@keyframes dropin { from { opacity: 0; transform: translateY(-10px) scale(.9); } to { opacity: 1; transform: none; } }
@keyframes modalIn { from { opacity: 0; transform: translateY(14px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes sheetIn { from { transform: translateY(100%); } to { transform: none; } }
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
@keyframes slideUp { from { opacity: 0; transform: translate(-50%, 16px); } to { opacity: 1; transform: translate(-50%, 0); } }

/* Modal / bottom-sheet */
.modal-scrim { position: fixed; inset: 0; background: rgba(15,20,28,.55); backdrop-filter: blur(3px); z-index: 80; display: flex; align-items: center; justify-content: center; padding: 16px; }
.modal-sheet { background: var(--paper); border-radius: var(--r-xl); box-shadow: var(--sh-xl); max-height: 88vh; overflow: auto; animation: modalIn .3s cubic-bezier(.2,.8,.3,1); }

/* ============================================================
   LAYOUT GRIDS
   ============================================================ */
.hero-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: 48px; align-items: center; }
.hero-preview { position: relative; }
.feature-demo { display: grid; grid-template-columns: 0.85fr 1fr; gap: 28px; align-items: stretch; }
.feature-list { display: flex; flex-direction: column; gap: 6px; }
.mobile-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.portal-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: start; padding-top: 14px; }
.footer-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: 48px; padding-bottom: 8px; }
.footer-cols { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.metrics-grid { gap: 24px; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1080px) {
  .hero-phone { display: none; }
  .feature-demo { grid-template-columns: 1fr; }
  /* Keep the interactive demo stage visible on tablet/mobile (stacked beneath the
     feature list) so the live demos work on touch too, not just on desktop. */
  .feature-stage { display: block; margin-top: 6px; }
  .feature-stage .card { min-height: 0 !important; }
  .feature-item { border: 1px solid var(--line) !important; background: var(--paper) !important; box-shadow: var(--sh-sm) !important; }
}
@media (max-width: 960px) {
  .nav-links, .nav-cta { display: none !important; }
  .nav-burger { display: inline-flex !important; }
  .hero-grid { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .hero-preview { max-width: 640px; }
  /* minmax(0,1fr) (not 1fr) so a wide mock can't force the column past the
     viewport and clip the text beside it. */
  .mobile-grid, .portal-grid { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .portal-visual { order: 2; }
  .metrics-grid { grid-template-columns: repeat(2, 1fr) !important; row-gap: 36px; }
  .pricing-grid { grid-template-columns: 1fr; max-width: 460px; margin: 0 auto; }
  .price-card { transform: none !important; }
  .footer-grid { grid-template-columns: 1fr; gap: 36px; }
  .auth-card { grid-template-columns: 1fr !important; max-width: 460px !important; }
  .auth-side { display: none !important; }
  .customise-grid { grid-template-columns: 1fr !important; }
  .onb-grid { grid-template-columns: 1fr !important; }
  .onb-rail { display: none !important; }
  .app-side { position: fixed !important; top: 0; bottom: 0; left: 0; z-index: 40; transform: translateX(-100%); transition: transform .3s; }
  .app-side.open { transform: none; }
  .app-side-close { display: block !important; }
  .app-topbar { display: flex !important; }
  .welcome-actions { position: static !important; margin-top: 16px; }
}
@media (max-width: 560px) {
  .wrap { padding: 0 max(18px, env(safe-area-inset-right)) 0 max(18px, env(safe-area-inset-left)); }
  .section { padding: 64px 0; }
  .footer-cols { grid-template-columns: repeat(2, 1fr); gap: 24px; }
  .trust-logos { gap: 24px 32px !important; }
  .billing-plans { grid-template-columns: 1fr !important; }
  .billing-bottom { grid-template-columns: 1fr !important; }
  .customise-toggles { grid-template-columns: 1fr !important; }
  .btn-lg { height: 54px; font-size: 16px; }
  .modal-scrim { align-items: flex-end !important; padding: 0 !important; }
  .modal-sheet { width: 100% !important; max-width: none !important; border-radius: 22px 22px 0 0 !important; animation: sheetIn .3s ease !important; max-height: 92vh !important; }
  .job-grid { grid-template-columns: 1fr !important; }
  .job-banner-actions { width: 100%; }
  .ai-lead__lab { width: 84px; }
  [data-price-card] .card { padding: 22px 18px 24px; }
}

/* ---- Range slider (pricing team size) ---- */
.team-range { -webkit-appearance: none; appearance: none; height: 8px; border-radius: 99px; background: var(--paper-3); outline: none; cursor: pointer; }
.team-range::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; width: 24px; height: 24px; border-radius: 50%; background: var(--accent); border: 3px solid #fff; box-shadow: var(--glow); cursor: pointer; transition: transform .15s; }
.team-range::-webkit-slider-thumb:hover { transform: scale(1.12); }
.team-range::-moz-range-thumb { width: 22px; height: 22px; border-radius: 50%; background: var(--accent); border: 3px solid #fff; box-shadow: var(--glow); cursor: pointer; }
.team-range::-moz-range-track { height: 8px; border-radius: 99px; background: var(--paper-3); }

/* ============================================================
   APP ADDITIONS — class equivalents for the JSX inline hovers /
   stateful bits, so the PHP markup stays lean and works without JS.
   ============================================================ */

/* Sticky nav (was inline + JS scroll state) */
.site-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  height: calc(var(--nav-h) + env(safe-area-inset-top));
  padding-top: env(safe-area-inset-top);          /* clear the iOS status bar / notch */
  transition: background .3s, backdrop-filter .3s, border-color .3s;
  background: transparent; border-bottom: 1px solid transparent;
}
.site-nav.scrolled {
  background: rgba(20,27,39,.82);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.site-nav__inner { height: 100%; display: flex; align-items: center; justify-content: space-between; }
.nav-links { display: flex; align-items: center; gap: 34px; }
.nav-links a { color: var(--on-dark-soft); font-size: 15px; font-weight: 500; transition: color .2s; }
.nav-links a:hover { color: #fff; }
.nav-cta { display: flex; align-items: center; gap: 14px; }
/* Burger — circular ghost button (shown <=960px via the media query below) */
.nav-burger {
  display: none;
  width: 44px; height: 44px; padding: 0;
  border-radius: 50%;
  align-items: center; justify-content: center;
  color: #fff;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
  transition: background .2s, transform .15s, border-color .2s;
  -webkit-tap-highlight-color: transparent;
}
.nav-burger:hover { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.2); }
.nav-burger:active { transform: scale(.92); }
.nav-burger svg { display: block; }

/* ============================================================
   Mobile nav — right-side app-style drawer (scrim + panel)
   ============================================================ */
.nav-scrim {
  position: fixed; inset: 0; z-index: 90;
  background: rgba(15,20,28,.58);
  -webkit-backdrop-filter: blur(5px); backdrop-filter: blur(5px);
  opacity: 0; pointer-events: none;
  transition: opacity .28s ease;
}
.nav-scrim.is-open { opacity: 1; pointer-events: auto; }

.nav-drawer {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 91;
  width: min(86vw, 400px); max-width: 100vw;
  display: flex; flex-direction: column; box-sizing: border-box;
  background:
    radial-gradient(130% 70% at 100% 0%, rgba(var(--accent-rgb), .16), transparent 58%),
    var(--ink-900);
  border-left: 1px solid rgba(255,255,255,.08);
  box-shadow: -28px 0 70px -20px rgba(8,12,20,.7);
  padding-top: env(safe-area-inset-top);          /* clear the iOS notch */
  transform: translateX(100%);
  transition: transform .34s cubic-bezier(.22,.61,.30,1);
  overscroll-behavior: contain;
}
.nav-drawer.is-open { transform: translateX(0); }
.nav-drawer[hidden] { display: none; }            /* fully out of layout when closed (beats .nav-drawer{display:flex}) */

.nav-drawer__head {
  flex: none; display: flex; align-items: center; justify-content: space-between;
  padding: 18px 16px 14px 24px;
  border-bottom: 1px solid rgba(255,255,255,.07);
}
.nav-drawer__eyebrow {
  font-family: var(--font-display);
  font-weight: 700; font-size: 12px; letter-spacing: .16em;
  text-transform: uppercase; color: var(--accent-bright);
}
.nav-drawer__close {
  width: 44px; height: 44px; border-radius: 50%; flex: none;
  display: grid; place-items: center;
  color: var(--on-dark);
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
  transition: background .2s, color .2s, transform .15s;
  -webkit-tap-highlight-color: transparent;
}
.nav-drawer__close:hover { background: rgba(255,255,255,.12); color: #fff; }
.nav-drawer__close:active { transform: scale(.92); }

.nav-drawer__nav {
  flex: 1 1 auto; min-height: 0;
  display: flex; flex-direction: column; gap: 4px;
  padding: 14px; overflow-y: auto; -webkit-overflow-scrolling: touch;
}
.nav-drawer__link {
  display: flex; align-items: center; gap: 14px;
  min-height: 56px; padding: 8px 12px;
  border-radius: var(--r-md);
  color: var(--on-dark);
  transition: background .2s, transform .12s;
  -webkit-tap-highlight-color: transparent;
}
.nav-drawer__link:hover, .nav-drawer__link:focus-visible { background: rgba(255,255,255,.05); outline: none; }
.nav-drawer__link:focus-visible { box-shadow: 0 0 0 2px rgba(var(--accent-rgb), .6); }
.nav-drawer__link:active { background: rgba(var(--accent-rgb), .14); transform: scale(.995); }
.nav-drawer__ico {
  flex: none; width: 42px; height: 42px;
  display: grid; place-items: center; border-radius: 12px;
  color: var(--accent-bright);
  background: rgba(var(--accent-rgb), .12);
  border: 1px solid rgba(var(--accent-rgb), .18);
  transition: background .2s, color .2s;
}
.nav-drawer__link:hover .nav-drawer__ico,
.nav-drawer__link:focus-visible .nav-drawer__ico { background: rgba(var(--accent-rgb), .2); color: #fff; }
.nav-drawer__label {
  flex: 1 1 auto; min-width: 0;
  font-family: var(--font-display);
  font-size: 19px; font-weight: 600; letter-spacing: -.01em; color: #fff;
}
.nav-drawer__chev {
  flex: none; color: var(--on-dark-faint);
  display: grid; place-items: center;
  transition: transform .15s ease, color .2s;
}
.nav-drawer__link:hover .nav-drawer__chev,
.nav-drawer__link:focus-visible .nav-drawer__chev,
.nav-drawer__link:active .nav-drawer__chev { transform: translateX(3px); color: var(--accent-bright); }

.nav-drawer__foot {
  flex: none; display: flex; flex-direction: column; gap: 10px;
  padding: 16px 20px;
  padding-bottom: max(18px, env(safe-area-inset-bottom));   /* clear the iOS home indicator */
  border-top: 1px solid rgba(255,255,255,.08);
  background: linear-gradient(180deg, transparent, rgba(0,0,0,.18));
}

/* Staggered entrance via the --i custom prop (survives editor adding/removing items) */
.nav-drawer__link, .nav-drawer__foot { opacity: 0; transform: translateY(10px); }
.nav-drawer.is-open .nav-drawer__link,
.nav-drawer.is-open .nav-drawer__foot {
  animation: navRowIn .42s cubic-bezier(.22,.61,.36,1) forwards;
  animation-delay: calc(80ms + var(--i) * 34ms);
}
@keyframes navRowIn { to { opacity: 1; transform: none; } }

body.nav-open { overflow: hidden; }

@media (prefers-reduced-motion: reduce) {
  .nav-drawer { transition: opacity .18s ease; transform: none; opacity: 0; }
  .nav-drawer.is-open { opacity: 1; }
  .nav-scrim { transition: opacity .15s ease; }
  .nav-drawer__link, .nav-drawer__foot { opacity: 1; transform: none; }
  .nav-drawer.is-open .nav-drawer__link,
  .nav-drawer.is-open .nav-drawer__foot { animation: none; animation-delay: 0s; }
  .nav-drawer__chev { transition: none; }
}

@media (min-width: 961px) { .nav-scrim, .nav-drawer { display: none !important; } }

/* Footer link hover (was JS onMouseEnter) */
.footer-link { color: var(--on-dark-faint); font-size: 14px; transition: color .2s; }
.footer-link:hover { color: #fff; }
.footer-social { width: 38px; height: 38px; border-radius: 10px; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.08); display: grid; place-items: center; color: var(--on-dark-soft); transition: background .2s, color .2s; }
.footer-social:hover { background: rgba(255,255,255,.1); color: #fff; }

/* ── Site footer (landing) — class-based; desktop look preserved ─────────── */
.footer-site { background: var(--ink-950); padding-top: 64px; }
.footer-brand { max-width: 300px; }
.footer-blurb { color: var(--on-dark-faint); font-size: 14.5px; margin-top: 18px; line-height: 1.6; }
.footer-social-row { display: flex; gap: 10px; margin-top: 20px; }
.footer-col__title { color: #fff; font-family: var(--font-display); font-weight: 700; font-size: 14.5px; margin-bottom: 16px; }
.footer-col__links { display: flex; flex-direction: column; gap: 11px; align-items: flex-start; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; padding: 28px 0; margin-top: 48px; border-top: 1px solid rgba(255,255,255,.08); }
.footer-copy { color: var(--on-dark-faint); font-size: 13.5px; }
.footer-badge { color: var(--on-dark-faint); font-size: 13.5px; display: inline-flex; align-items: center; gap: 7px; }

/* Mobile footer — purpose-built: centred, balanced, comfortable tap targets */
@media (max-width: 640px) {
  .footer-site { padding-top: 44px; }
  .footer-grid { gap: 30px; text-align: center; }
  .footer-brand { max-width: 100%; }
  .footer-brand > div:first-child { justify-content: center; }      /* centre the logo lockup */
  .footer-blurb { max-width: 330px; margin-left: auto; margin-right: auto; font-size: 14px; }
  .footer-social-row { justify-content: center; margin-top: 18px; }
  .footer-cols {
    grid-template-columns: repeat(2, 1fr);
    gap: 28px 14px; align-items: start;
    max-width: 380px; margin: 4px auto 0;
    padding-top: 26px; border-top: 1px solid rgba(255,255,255,.07);
  }
  .footer-col__title { margin-bottom: 10px; font-size: 12.5px; letter-spacing: .05em; text-transform: uppercase; color: var(--on-dark-soft); }
  .footer-col__links { align-items: center; gap: 2px; }
  .footer-col__links .footer-link { padding: 8px 6px; font-size: 14.5px; line-height: 1.2; }
  .footer-bottom { flex-direction: column; justify-content: center; text-align: center; gap: 10px; margin-top: 30px; padding: 22px 0; }
  .footer-badge { justify-content: center; }
}

/* Feature switcher items */
.feature-item {
  text-align: left; width: 100%; display: flex; gap: 16px; padding: 20px 22px;
  border-radius: var(--r-lg); background: transparent; border: 1px solid transparent;
  box-shadow: none; transition: all .25s; cursor: pointer;
}
.feature-item .feature-item__icon {
  width: 46px; height: 46px; border-radius: 13px; flex: none; display: grid; place-items: center;
  transition: all .25s; background: var(--paper-3); color: var(--text-soft);
}
.feature-item h3 { font-size: 19px; color: var(--text); transition: color .25s; }
.feature-item__desc { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .3s; overflow: hidden; }
.feature-item__desc p { min-height: 0; color: var(--text-soft); font-size: 14.5px; margin-top: 0; }
.feature-item.on { background: var(--paper); border-color: var(--line); box-shadow: var(--sh-md); }
.feature-item.on .feature-item__icon { background: var(--accent); color: #fff; box-shadow: var(--glow); }
.feature-item.on h3 { color: var(--text-strong); }
.feature-item.on .feature-item__desc { grid-template-rows: 1fr; }
.feature-item.on .feature-item__desc p { margin-top: 8px; }

/* Toggle switch (customise + pricing reuse) */
.toggle { width: 42px; height: 25px; border-radius: 99px; background: var(--paper-3); position: relative; flex: none; transition: background .22s; }
.toggle.on { background: var(--accent); box-shadow: var(--glow); }
.toggle__knob { position: absolute; top: 3px; left: 3px; width: 19px; height: 19px; border-radius: 99px; background: #fff; transition: left .22s cubic-bezier(.2,.8,.3,1); box-shadow: 0 1px 3px rgba(0,0,0,.25); }
.toggle.on .toggle__knob { left: 20px; }

/* Segmented control (billing + mobile screen switch + route toggle) */
.seg { display: inline-flex; background: var(--paper-3); border-radius: 99px; padding: 4px; }
.seg button { padding: 10px 22px; border-radius: 99px; font-size: 14.5px; font-weight: 600; font-family: var(--font-display); color: var(--text-soft); background: transparent; transition: all .25s; display: inline-flex; align-items: center; gap: 8px; }
.seg button.on { color: #fff; background: var(--accent); box-shadow: var(--glow); }

/* Generic visibility helper for JS swaps */
[data-demo-panel] { display: none; }
[data-demo-panel].on { display: block; animation: fadeSwap .4s ease; }
[hidden] { display: none !important; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; padding: 0; margin: -1px; }

/* Feature demo: schedule day cells get the accent border on hover */
.demo-day:hover { border-color: var(--accent) !important; background: #fff !important; }

/* ============================================================
   PRICING add-on toggle + AI FRONT DESK SECTION
   ============================================================ */
/* Pricing: AI add-on row highlights (indigo) when toggled on */
[data-addon-row].on { border-color: var(--ai); box-shadow: 0 0 0 3px rgba(var(--ai-rgb),.12); background: rgba(var(--ai-rgb),.04); }

/* AI demo two-column layout */
.ai-demo { display: grid; grid-template-columns: 1.05fr .95fr; gap: 28px; align-items: stretch; }
@media (max-width: 860px) { .ai-demo { grid-template-columns: 1fr; gap: 22px; } }

/* Public website chat panel (light card glowing on the dark section) */
.ai-chat { background: var(--paper); border-radius: var(--r-lg); box-shadow: var(--sh-xl); border: 1px solid rgba(255,255,255,.5); overflow: hidden; display: flex; flex-direction: column; }
.ai-chat__bar { height: 40px; background: #f1f3f7; border-bottom: 1px solid #e4e7ee; display: flex; align-items: center; gap: 7px; padding: 0 14px; }
.ai-chat__bar > i { width: 10px; height: 10px; border-radius: 50%; }
.ai-chat__bar > i:nth-child(1) { background: #f0625b; } .ai-chat__bar > i:nth-child(2) { background: #f5bd4f; } .ai-chat__bar > i:nth-child(3) { background: #5bc466; }
.ai-chat__url { margin-left: 8px; display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; color: #9aa3b2; }
.ai-chat__gate { display: flex; align-items: center; gap: 7px; padding: 9px 16px; font-size: 12px; color: var(--text-faint); background: var(--paper-2); border-bottom: 1px solid var(--line); }
.ai-chat__thread { flex: 1; min-height: 320px; max-height: 360px; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.ai-chat__chips { display: flex; flex-wrap: wrap; gap: 7px; padding: 0 16px 16px; min-height: 4px; }

/* Chat bubbles */
.ai-msg { max-width: 84%; padding: 10px 13px; border-radius: 14px; font-size: 13.5px; line-height: 1.45; animation: dropin .25s ease; }
.ai-msg--ai { align-self: flex-start; background: var(--paper-2); color: var(--text-strong); border-bottom-left-radius: 5px; border-left: 2px solid var(--accent); }
.ai-msg--cust { align-self: flex-end; background: var(--accent); color: #fff; border-bottom-right-radius: 5px; }
.ai-msg--typing { display: inline-flex; gap: 4px; align-items: center; }
.ai-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--text-faint); animation: aiblink 1.2s infinite; }
.ai-dot:nth-child(2) { animation-delay: .2s; } .ai-dot:nth-child(3) { animation-delay: .4s; }
@keyframes aiblink { 0%, 100% { opacity: .3; transform: translateY(0); } 50% { opacity: 1; transform: translateY(-2px); } }
.ai-photo { display: inline-flex; align-items: center; gap: 5px; margin-top: 7px; font-size: 11.5px; background: rgba(255,255,255,.22); color: #fff; border-radius: 7px; padding: 3px 8px; }
.ai-sugg { font-size: 12px; font-weight: 600; font-family: var(--font-display); color: var(--accent-deep); background: var(--accent-soft); border: 1px solid rgba(var(--accent-rgb),.3); border-radius: 99px; padding: 6px 12px; cursor: default; }

/* Front Desk inbox card */
.ai-inbox { background: var(--paper); border-radius: var(--r-lg); border: 1px solid var(--line); box-shadow: var(--sh-lg); padding: 20px; display: flex; flex-direction: column; }
.ai-inbox__hd { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.ai-lead { background: var(--paper-2); border-radius: 14px; padding: 4px 16px 16px; }
.ai-lead__row { display: flex; align-items: baseline; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line); }
.ai-lead__lab { width: 116px; flex: none; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--text-faint); }
.ai-lead__val { flex: 1; font-size: 13.5px; color: var(--text-faint); font-weight: 500; transition: color .25s; }
.ai-lead__val.on { color: var(--text-strong); font-weight: 600; animation: dropin .35s ease; }
.ai-lead__foot { display: flex; align-items: center; gap: 10px; padding-top: 14px; }
.ai-lead__stamp { display: flex; align-items: center; gap: 7px; margin-top: 12px; font-size: 12.5px; font-weight: 600; color: var(--accent-deep); background: var(--accent-soft); border-radius: 10px; padding: 9px 12px; }
.ai-inbox__sec { display: flex; align-items: flex-start; gap: 8px; margin-top: 14px; font-size: 11.5px; color: var(--text-faint); line-height: 1.45; }
.ai-inbox__sec svg { flex: none; margin-top: 1px; color: var(--ok); }

/* "Try another enquiry" chips (on the dark section) */
.ai-trychip { font-size: 12.5px; font-weight: 600; font-family: var(--font-display); color: var(--on-dark-soft); background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); border-radius: 99px; padding: 7px 14px; cursor: pointer; transition: background .2s, color .2s, box-shadow .2s, border-color .2s; }
.ai-trychip:hover { color: #fff; background: rgba(255,255,255,.12); }
.ai-trychip.on { color: #fff; background: var(--accent); border-color: transparent; box-shadow: var(--glow); }

/* Reassurance strip */
.ai-reassure { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 44px; }
@media (max-width: 760px) { .ai-reassure { grid-template-columns: 1fr; gap: 14px; } }
.ai-reassure__item { display: flex; align-items: center; gap: 13px; color: var(--on-dark-soft); font-size: 14px; }

/* AI add-on — four-tool card row (Front Desk is the live demo above) */
.ai-tools-wrap { margin-top: 56px; }
.ai-tools-title { text-align: center; font-family: var(--font-display); font-weight: 700; font-size: 12.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--on-dark-soft); margin-bottom: 24px; }
.ai-tools { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; max-width: 1000px; margin: 0 auto; }
.ai-tool { background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.09); border-radius: var(--r-lg); padding: 24px 20px; transition: transform .2s, border-color .2s, background .2s; }
.ai-tool:hover { transform: translateY(-3px); border-color: rgba(var(--ai-rgb), .45); background: rgba(255,255,255,.06); }
.ai-tool__ico { width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; color: var(--ai-tint); background: rgba(var(--ai-rgb), .14); border: 1px solid rgba(var(--ai-rgb), .26); margin-bottom: 16px; }
.ai-tool__name { font-size: 17px; color: #fff; margin: 0 0 8px; }
.ai-tool__desc { font-size: 14px; line-height: 1.55; color: var(--on-dark-soft); margin: 0; }
@media (max-width: 860px) { .ai-tools { grid-template-columns: repeat(2, 1fr); gap: 14px; } }
@media (max-width: 480px) { .ai-tools { grid-template-columns: 1fr; } }

/* Value-card grid — shared by the No-Invoicing & Support sections (light + dark) */
.val-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 46px; }
.val-card { background: var(--paper); border: 1px solid var(--line); box-shadow: var(--sh-sm); border-radius: var(--r-lg); padding: 28px 24px; transition: transform .2s, box-shadow .2s, border-color .2s; }
.val-card:hover { transform: translateY(-3px); box-shadow: var(--sh-md); border-color: var(--accent); }
.val-card__ico { width: 48px; height: 48px; border-radius: 13px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent-deep); margin-bottom: 18px; }
.val-card__title { font-family: var(--font-display); font-size: 18px; color: var(--text-strong); margin: 0 0 8px; }
.val-card__desc { font-size: 14.5px; line-height: 1.6; color: var(--text-soft); margin: 0; }
/* Dark-section variant — scoped to the grid modifier (NOT .on-dark, because
   the whole landing <body> carries .on-dark, which would leak to light sections) */
.val-grid--dark .val-card { background: rgba(255,255,255,.04); border-color: rgba(255,255,255,.09); box-shadow: none; }
.val-grid--dark .val-card:hover { background: rgba(255,255,255,.06); border-color: rgba(var(--accent-rgb),.4); box-shadow: none; }
.val-grid--dark .val-card__ico { background: rgba(var(--accent-rgb),.14); border: 1px solid rgba(var(--accent-rgb),.24); color: var(--accent-bright); }
.val-grid--dark .val-card__title { color: #fff; }
.val-grid--dark .val-card__desc { color: var(--on-dark-soft); }
@media (max-width: 820px) { .val-grid { grid-template-columns: 1fr; gap: 14px; max-width: 480px; margin-left: auto; margin-right: auto; } }

/* Customer-portal tracking — vertical timeline (connected steps) */
.portal-timeline { display: flex; flex-direction: column; }
.portal-step { position: relative; display: flex; align-items: center; gap: 11px; padding: 8px 0; }
.portal-step__dot { position: relative; z-index: 1; width: 22px; height: 22px; border-radius: 99px; flex: none; display: grid; place-items: center; background: var(--paper-3); color: var(--text-faint); }
.portal-step.is-done .portal-step__dot { background: var(--ok); color: #fff; }
.portal-step::before { content: ""; position: absolute; left: 10px; top: -8px; height: 16px; width: 2px; background: var(--paper-3); z-index: 0; }
.portal-step:first-child::before { display: none; }
.portal-step.is-done::before { background: var(--ok); }
.portal-step__label { font-size: 14px; font-weight: 500; color: var(--text-faint); }
.portal-step.is-done .portal-step__label { font-weight: 600; color: var(--text-strong); }
.ai-reassure__ic { width: 42px; height: 42px; flex: none; border-radius: 11px; display: grid; place-items: center; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1); color: var(--accent-bright); }

/* ============================================================
   MOBILE POLISH — well-planned phone spacing + a fixed hero
   ============================================================ */
/* Expand the small toggle switches to a proper touch target (visual stays 42×25). */
.toggle { position: relative; }
.toggle::after { content: ""; position: absolute; inset: -12px -10px; }

@media (max-width: 768px) {
  /* Keep the app preview on phones — site.js (fitHeroPreview) scales the mock to
     fit the column exactly, so it reads as a crisp thumbnail with no sideways spill. */
  .hero-preview { display: block; margin: 10px auto 0; min-width: 0; overflow: hidden; }
  .hero-float { display: none; }   /* decorative floating chip would overflow on phones */
  #top { padding-top: calc(var(--nav-h) + env(safe-area-inset-top) + 28px) !important; }
}

@media (max-width: 560px) {
  /* Tighter vertical rhythm */
  .section { padding: 54px 0; }
  .section-sm { padding: 44px 0; }
  /* Cards carry desktop inline padding — tighten on phones (!important to beat
     the inline styles). */
  [data-price-card] .card { padding: 20px 18px 22px !important; }
  .feature-stage .card { padding: 16px !important; }
  .portal-visual .card { padding: 18px !important; }
  .customise-grid { padding: 16px !important; }
  .ai-chat__thread { min-height: 230px; max-height: 300px; }
  .ai-inbox { padding: 16px; }
  .trust-logos { gap: 16px 24px !important; }
  /* Hero CTAs: full-width, stacked & edge-aligned (kills the ragged auto-width wrap). */
  .hero-cta { flex-direction: column; align-items: stretch; gap: 12px; }
  .hero-cta .btn { width: 100%; }
  /* Trust ticks: one clean column so the checkmarks line up vertically.
     (!important to beat the element's inline align-items:center / gap.) */
  .hero-trust { flex-direction: column; align-items: flex-start !important; gap: 11px !important; }
}

@media (max-width: 430px) {
  .hero-copy h1 { font-size: 35px !important; line-height: 1.06 !important; }
  .section__title, h2 { letter-spacing: -0.01em; }
}

/* ============================================================
   MOBILE — gentle proximity snap (sections "settle" as you scroll)
   + light, tidy spacing. Sections keep their NATURAL height (forcing
   full-height left dead space) and snap to the top. Snap is OFF under
   reduced-motion. Desktop (>768) is untouched.
   ============================================================ */
@media (max-width: 768px) {
  html { scroll-snap-type: y proximity; scroll-padding-top: calc(var(--nav-h) + env(safe-area-inset-top) + 8px); }
  body { overflow-x: clip; }                                  /* belt-and-braces: no sideways scroll */
  .snap, .snap-fit { scroll-snap-align: start; scroll-snap-stop: normal; scroll-margin-top: calc(var(--nav-h) + 8px); }
}
@media (max-width: 768px) and (prefers-reduced-motion: reduce) {
  html { scroll-snap-type: none; }                            /* no viewport-yanking for motion-averse users */
}

/* ---- Light, tidy mobile spacing (comfortable — never cramped, never gappy) ---- */
@media (max-width: 768px) {
  /* Trim the oversized gap before the industry trust wall (was 96/64). */
  .hero-trust-wall { margin-top: 52px !important; padding-bottom: 40px !important; }
  /* The 40px desktop gap between stacked columns reads as dead space on a phone. */
  .mobile-grid, .portal-grid { gap: 30px !important; }
}
@media (max-width: 560px) {
  /* FEATURES — comfortable rhythm, just a touch tighter than desktop. */
  .sec-head { margin-bottom: 36px !important; }
  .feature-item { padding: 15px 16px !important; }            /* comfortable; row stays >=44px tall */
  .feature-stage .card { min-height: 320px !important; }      /* trims the empty 440px reserve */

  /* CUSTOMISE ("Built around you") — single comfortable column with the full live
     menu in view (no cramped 2-up labels, no nested scroll panel). */
  .cust-head { margin-bottom: 36px !important; }

  /* MOBILE SHOWCASE — gently scale the phone via its wrapper (scrollFx owns [data-mphone]). */
  .mphone-stage { transform: scale(.92); transform-origin: top center; }

  /* CUSTOMER PORTAL — hide the float chip that would cause a sideways scroll. */
  .portal-float { display: none !important; }

  /* Final-CTA buttons stack full-width, mirroring the hero. */
  .cta-actions { flex-direction: column; align-items: stretch; }
  .cta-actions .btn { width: 100%; }
}

/* ============================================================
   PRICING — team-size packages (Solo / Team / Business)
   Prices are derived from the per-seat config in JS, so they
   always match billing. 3-up on desktop, stacked on mobile.
   ============================================================ */
.pricing-packages {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
  align-items: stretch; max-width: 1000px; margin: 0 auto;
}
.pkg-card {
  position: relative; display: flex; flex-direction: column;
  background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: 30px 26px 26px; box-shadow: var(--sh-md);
}
.pkg-card--pop { border: 1.5px solid var(--accent); box-shadow: 0 22px 50px -22px rgba(var(--accent-rgb), .42); }
@media (min-width: 901px) { .pkg-card--pop { transform: scale(1.045); z-index: 1; } }
/* Per-tier colour (set via --tier) — a soft background + border tint, not a top strip.
   color-mix falls back gracefully to the plain --paper card if unsupported. */
.pkg-card { background: color-mix(in srgb, var(--tier, transparent) 8%, var(--paper)); }
.pkg-card:not(.pkg-card--pop) { border-color: color-mix(in srgb, var(--tier, transparent) 26%, var(--line)); }
.pkg-badge {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: var(--accent); color: #fff; font-family: var(--font-display);
  font-weight: 700; font-size: 11.5px; letter-spacing: .03em;
  padding: 5px 14px; border-radius: var(--r-pill); box-shadow: var(--glow); white-space: nowrap;
}
.pkg-name { font-family: var(--font-display); font-weight: 800; font-size: 20px; color: var(--tier, var(--text-strong)); }
.pkg-tag { color: var(--text-faint); font-size: 13px; margin-top: 4px; min-height: 20px; }
.pkg-price { display: flex; align-items: baseline; gap: 5px; margin-top: 16px; }
.pkg-price [data-pkg-price] {
  font-family: var(--font-display); font-weight: 700; font-size: 42px;
  letter-spacing: -.03em; color: var(--text-strong); font-variant-numeric: tabular-nums;
}
.pkg-permo { color: var(--text-faint); font-size: 15px; font-weight: 600; }
.pkg-sub { font-size: 13px; color: var(--accent-deep); font-weight: 600; margin-top: 2px; }
.pkg-peruser { font-size: 12.5px; color: var(--text-faint); margin-top: 4px; }
.pkg-card .btn { margin-top: auto; }
.pkg-card .btn-ghost-light:hover { border-color: var(--tier); color: var(--tier); }
.pkg-card .pkg-note { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--text-soft); margin-top: 14px; }
.pkg-note svg { flex: none; }

/* Custom-size + AI add-on band (2-up on desktop) */
.pricing-band { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; max-width: 1000px; margin: 22px auto 0; }
.pricing-custom, .pricing-addon {
  background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: 22px 24px; box-shadow: var(--sh-sm);
}
.pc-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 14px; }
.pc-title { font-family: var(--font-display); font-weight: 700; font-size: 14.5px; color: var(--text-strong); }
.pc-out { font-family: var(--font-display); font-weight: 700; font-size: 15px; color: var(--accent-deep); white-space: nowrap; }
.pc-scale { display: flex; justify-content: space-between; font-size: 11px; color: var(--text-faint); margin-top: 6px; }
.pc-total { display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; margin-top: 16px; }
.pc-total [data-custom-total] {
  font-family: var(--font-display); font-weight: 700; font-size: 30px;
  letter-spacing: -.03em; color: var(--text-strong); font-variant-numeric: tabular-nums;
}
.pc-sub { font-size: 12.5px; color: var(--text-faint); font-weight: 500; }

.pricing-addon { transition: border-color .2s, box-shadow .2s, background .2s; }
.pricing-addon.on { border-color: rgba(var(--ai-rgb), .5); box-shadow: 0 16px 40px -18px rgba(var(--ai-rgb), .45); background: linear-gradient(180deg, rgba(var(--ai-rgb), .05), transparent 60%); }
.pa-head { display: flex; align-items: center; gap: 12px; }
.pa-ic { width: 38px; height: 38px; border-radius: 10px; flex: none; display: grid; place-items: center; background: linear-gradient(140deg, var(--ai), var(--ai-deep)); color: #fff; }
.pa-titles { flex: 1; min-width: 0; }
.pa-title { display: block; font-weight: 700; font-size: 14.5px; color: var(--text-strong); }
.pa-sub { display: block; font-size: 12px; color: var(--text-soft); }
.pa-price { font-family: var(--font-display); font-weight: 800; font-size: 15px; color: var(--text-strong); white-space: nowrap; }
.pa-feats { list-style: none; padding: 12px 0 0; margin: 12px 0 0; border-top: 1px dashed var(--line); display: flex; flex-direction: column; gap: 7px; }
.pa-feats li { display: flex; align-items: flex-start; gap: 9px; font-size: 12.5px; color: var(--text-soft); }
.pa-feats svg { flex: none; margin-top: 2px; }
.pa-note { font-size: 11.5px; color: var(--text-faint); margin-top: 10px; }

/* Everything-included feature grid (shared — per-seat = same features) */
.pricing-includes { max-width: 1000px; margin: 26px auto 0; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 24px 26px; box-shadow: var(--sh-sm); }
.pi-title { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--text-faint); margin-bottom: 16px; }
.pi-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px 24px; }
.pi-list li { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; color: var(--text); }
.pi-list svg { flex: none; margin-top: 1px; }

/* Enterprise tier — gold card under the three packages */
.pkg-enterprise {
  max-width: 1000px; margin: 16px auto 0;
  display: flex; align-items: center; gap: 28px; flex-wrap: wrap;
  background: linear-gradient(135deg, #fdf6cf 0%, #f6e7a4 50%, #eedb8a 100%);
  border: 1px solid rgba(200,165,70,.5);
  border-radius: var(--r-lg); padding: 26px 30px;
  box-shadow: 0 18px 44px -22px rgba(200,165,70,.42);
}
.pkg-ent__main { flex: 1 1 320px; min-width: 0; }
.pkg-ent__head { display: flex; align-items: center; gap: 12px; }
.pkg-ent__name { font-family: var(--font-display); font-weight: 800; font-size: 24px; color: #2a2206; letter-spacing: -.02em; }
.pkg-ent__tag { font-size: 12px; font-weight: 700; background: rgba(42,34,6,.16); color: #2a2206; padding: 4px 10px; border-radius: var(--r-pill); }
.pkg-ent__lead { font-size: 15px; color: #4a3c12; margin-top: 8px; max-width: 520px; line-height: 1.5; }
.pkg-ent__feats { list-style: none; padding: 0; margin: 14px 0 0; display: flex; flex-wrap: wrap; gap: 8px 22px; }
.pkg-ent__feats li { display: flex; align-items: center; gap: 7px; font-size: 13.5px; font-weight: 600; color: #3a2e08; }
.pkg-ent__feats svg { flex: none; color: #7a5e10; }
.pkg-ent__cta { flex: 0 0 auto; display: flex; flex-direction: column; align-items: flex-end; gap: 12px; text-align: right; }
.pkg-ent__price { font-family: var(--font-display); font-weight: 800; font-size: 30px; color: #2a2206; letter-spacing: -.03em; white-space: nowrap; }
.pkg-ent__price span { font-size: 15px; font-weight: 600; color: #5a4a16; }
.pkg-enterprise .btn { background: var(--ink-900); color: #fff; box-shadow: 0 8px 22px -8px rgba(20,27,39,.5); }
.pkg-enterprise .btn:hover { background: var(--ink-950); transform: translateY(-2px); }
@media (max-width: 700px) {
  .pkg-enterprise { flex-direction: column; align-items: stretch; gap: 16px; padding: 22px 18px; }
  .pkg-ent__lead { max-width: none; }
  .pkg-ent__feats { flex-direction: column; gap: 10px; }
  .pkg-ent__cta { flex-direction: column; align-items: stretch; gap: 12px; text-align: left; }
  .pkg-enterprise .btn { width: 100%; }
}

@media (max-width: 900px) {
  .pricing-packages { grid-template-columns: 1fr; max-width: 440px; gap: 16px; }
  .pricing-band { grid-template-columns: 1fr; max-width: 440px; }
  .pricing-includes { max-width: 440px; }
  .pi-list { grid-template-columns: 1fr 1fr; }
  .pkg-card .btn { margin-top: 20px; }            /* stacked cards: no need to bottom-align */
}
@media (max-width: 560px) {
  .pi-list { grid-template-columns: 1fr; }
  .pkg-card { padding: 24px 20px; }
}

/* ============================================================
   iOS / mobile finishing — safe-area insets + touch comfort
   ============================================================ */
body { -webkit-tap-highlight-color: transparent; }
/* Keep the footer's last row clear of the iOS home-indicator. */
footer { padding-bottom: env(safe-area-inset-bottom); }
@media (max-width: 560px) {
  /* Comfortable 44px+ touch targets for the small pill controls on phones. */
  .seg button { padding-top: 13px; padding-bottom: 13px; }
  .nav-burger { padding: 0; }
}

/* ============================================================
   MOBILE AUDIT FIXES (2026-06-08) — touch targets, readability,
   iOS, and tasteful length trims. Additive / !important + mobile
   -scoped, so they layer cleanly over the existing rules. Desktop
   (>768) untouched.
   ============================================================ */
/* iOS: let vertical page-scroll win over the pricing slider drag */
.team-range { touch-action: pan-y; -webkit-tap-highlight-color: transparent; }
/* Right safe-area for the nav drawer (landscape notch) */
.nav-drawer { padding-right: env(safe-area-inset-right); }

@media (max-width: 768px) {
  /* Invisible hit-slop for the small in-demo controls (no layout change) */
  [data-route-mode] { position: relative; }
  [data-route-mode]::after { content: ""; position: absolute; inset: -9px -6px; }
  [data-route-replay] { height: 44px !important; }
  /* Segmented controls reach ~48px across all phones & small tablets */
  .seg button { padding-top: 13px; padding-bottom: 13px; }
}

@media (max-width: 560px) {
  /* Hit-slop for the AI try-chips + the customise group pills */
  .ai-trychip { position: relative; }
  .ai-trychip::after { content: ""; position: absolute; inset: -7px -4px; }
  [data-group] { position: relative; }
  [data-group]::after { content: ""; position: absolute; inset: -3px -2px; }
  /* Readability — lift real micro-labels toward the floor */
  .ai-lead__lab { font-size: 12px; }
  .pc-scale { font-size: 11.5px; }
  /* Tasteful length trims — NO content density change (padding/gap/redundancy only) */
  .cust-live { padding: 14px !important; }                              /* was 18px inline inside a 16px outer */
  .pricing-custom, .pricing-addon, .pricing-includes { padding: 20px 18px !important; }
  .metrics-grid { row-gap: 26px !important; column-gap: 18px !important; }
}

/* ============================================================
   Pricing billing switcher — elevate so it stands out on the
   light section, and a "Save %" badge that's visible whether
   Yearly is the inactive (light) or active (coral) button.
   Scoped to [data-cycle-switch] so the mobile-showcase seg is unaffected.
   ============================================================ */
[data-cycle-switch] {
  background: var(--paper);
  border: 1px solid var(--line);
  box-shadow: var(--sh-md);
  padding: 5px;
}
[data-cycle-switch] button { font-size: 15px; padding-left: 24px; padding-right: 24px; }
.seg-save {
  display: inline-block; margin-left: 7px;
  font-family: var(--font-body); font-size: 11px; font-weight: 700; letter-spacing: 0;
  background: var(--ok); color: #fff;
  padding: 3px 8px; border-radius: var(--r-pill); line-height: 1.1;
}
[data-cycle-switch] button.on .seg-save { background: rgba(255,255,255,.92); color: var(--accent-deep); }

/* ============================================================
   METRICS band (light) — header row + coral-tick stats
   ============================================================ */
.metrics-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; padding-bottom: 22px; margin-bottom: 30px; border-bottom: 1px solid var(--line); }
.metric { display: flex; flex-direction: column; align-items: flex-start; }
.metric__tick { width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent-deep); margin-bottom: 16px; }
.metric__num { font-family: var(--font-display); font-weight: 700; font-size: clamp(34px, 4.6vw, 52px); letter-spacing: -0.03em; line-height: 1; color: var(--accent-deep); }
.metric__label { color: var(--text-soft); font-size: 15px; margin-top: 10px; line-height: 1.35; }
@media (max-width: 768px) { .metrics-head { flex-direction: column; align-items: flex-start; gap: 10px; } }

/* ============================================================
   Pricing controls — cycle seg + AI add-on toggle; build-your-own card
   ============================================================ */
.price-controls { display: flex; flex-direction: column; align-items: center; gap: 14px; margin-bottom: 32px; }
/* ============================================================
   PRICING SECONDARY ZONE — "second package row + bridging AI ribbon".
   BYO + Enterprise are package PEERS in a grid mirroring .pricing-packages
   (repeat(3,1fr)): BYO spans cols 1-2 (under Solo+Team), Enterprise col 3
   (under Business). The AI add-on is a slim full-width ribbon bridging them.
   JS contract: one [data-addon-toggle] wrapping one .toggle > .toggle__knob;
   ON state via .price-ai.is-on + .price-ai .toggle.on. BYO keeps every
   data-* hook (data-byo / data-team-range / data-team-out|word /
   data-custom-total|sub / data-byo-disc).
   ============================================================ */

/* ---- AI add-on: slim full-width ribbon bridging the package grid and row 2 ---- */
.price-ai-row { display: flex; justify-content: center; margin-top: 16px; }
.price-ai {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  grid-template-areas: "lead tools end" "note note note";
  align-items: center; column-gap: 26px; row-gap: 14px;
  width: 100%; max-width: 1000px; text-align: left;
  padding: 18px 24px; border-radius: var(--r-lg);
  background: var(--paper); border: 1px solid var(--line); box-shadow: var(--sh-sm);
  cursor: pointer; -webkit-tap-highlight-color: transparent;
  transition: border-color .2s ease, box-shadow .2s ease, background .25s ease, transform .18s ease;
}
.price-ai:hover { border-color: rgba(var(--ai-rgb), .4); transform: translateY(-1px); box-shadow: var(--sh-md); }
.price-ai:focus-visible { outline: 2px solid var(--ai); outline-offset: 3px; }

.price-ai__lead { grid-area: lead; display: flex; align-items: center; gap: 14px; min-width: 0; }
.price-ai__ic { flex: none; width: 40px; height: 40px; border-radius: var(--r-md); display: grid; place-items: center; color: #fff; background: linear-gradient(140deg, var(--ai), var(--ai-deep)); box-shadow: 0 6px 16px -8px rgba(var(--ai-rgb), .7); }
.price-ai__ic svg { color: #fff; }
.price-ai__txt { min-width: 0; }
.price-ai__title { display: block; font-family: var(--font-display); font-weight: 700; font-size: 16px; line-height: 1.2; letter-spacing: -.015em; color: var(--text-strong); }
.price-ai__sub { display: block; margin-top: 3px; font-family: var(--font-body); font-size: 12.5px; line-height: 1.4; color: var(--text-soft); }

/* Tools — quiet inline run on the desktop ribbon */
.price-ai__tools { grid-area: tools; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 20px; justify-content: center; }
.price-ai__tool { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-display); font-size: 13.5px; font-weight: 600; letter-spacing: -.005em; color: var(--text-strong); white-space: nowrap; }
.price-ai__tool svg { width: 16px; height: 16px; color: var(--ai); flex: none; }

.price-ai__end { grid-area: end; display: flex; align-items: center; gap: 16px; flex: none; }
.price-ai__price { font-family: var(--font-display); font-weight: 700; font-size: 16px; letter-spacing: -.01em; color: var(--ai-deep); white-space: nowrap; }
.price-ai__per { font-weight: 600; color: var(--text-soft); margin-left: 1px; }
.price-ai .toggle { flex: none; }
.price-ai .toggle.on { background: var(--ai); box-shadow: 0 4px 12px -5px rgba(var(--ai-rgb), .6); }

.price-ai__note { grid-area: note; display: flex; align-items: flex-start; gap: 8px; padding-top: 14px; border-top: 1px solid var(--line-soft); font-family: var(--font-body); font-size: 12px; font-weight: 500; line-height: 1.45; color: var(--text-soft); }
.price-ai__note svg { width: 14px; height: 14px; color: var(--ok); flex: none; margin-top: 1px; }

.price-ai.is-on { border-color: rgba(var(--ai-rgb), .5); background: linear-gradient(180deg, rgba(var(--ai-rgb), .06), var(--paper) 70%); box-shadow: 0 14px 32px -16px rgba(var(--ai-rgb), .4); }
.price-ai.is-on .price-ai__note { border-top-color: rgba(var(--ai-rgb), .2); }

/* Intermediate (901-980): drop ribbon to lead|end on top, tools on their own row */
@media (max-width: 980px) and (min-width: 901px) {
  .price-ai { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "lead end" "tools tools" "note note"; column-gap: 20px; }
  .price-ai__tools { justify-content: flex-start; padding-top: 14px; border-top: 1px solid var(--line-soft); }
  .price-ai.is-on .price-ai__tools { border-top-color: rgba(var(--ai-rgb), .2); }
}

/* ---- Second row: BYO + Enterprise as grid-aligned package peers ----
   Mirrors .pricing-packages (repeat(3,1fr) / gap 20 / max-width 1000):
   BYO spans cols 1-2 (under Solo+Team), Enterprise col 3 (under Business). */
.pricing-row2 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: stretch; max-width: 1000px; margin: 16px auto 0; }
.pkg-card--byo { grid-column: 1 / 3; }
.pkg-card--ent { grid-column: 3 / 4; }

/* Build-your-own — package chrome (inherits .pkg-card), slider as the body */
.byo-body { margin-top: 18px; }
.byo-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; min-height: 20px; }
.byo-count { font-family: var(--font-display); font-weight: 700; font-size: 15px; color: var(--accent-deep); }
.pkg-card--byo .pc-disc { font-size: 12px; color: var(--ok); font-weight: 600; }
.pkg-card--byo .team-range { width: 100%; margin-top: 12px; touch-action: pan-y; -webkit-tap-highlight-color: transparent; }
.pkg-card--byo .pc-scale { display: flex; justify-content: space-between; font-size: 11.5px; color: var(--text-faint); margin-top: 6px; }
.pkg-card--byo .pkg-price { margin-top: 18px; }
.pkg-card--byo .pkg-price [data-custom-total] { font-family: var(--font-display); font-weight: 700; font-size: 42px; letter-spacing: -.03em; color: var(--text-strong); font-variant-numeric: tabular-nums; }
.pkg-card--byo [data-custom-sub] { font-size: 13px; color: var(--accent-deep); font-weight: 600; margin-top: 2px; }

/* Enterprise — SAME silhouette, gold surface kept (upmarket) */
.pkg-card--ent { background: linear-gradient(135deg, #fdf6cf 0%, #f6e7a4 50%, #eedb8a 100%); border: 1px solid rgba(200,165,70,.5); box-shadow: 0 18px 44px -22px rgba(200,165,70,.42); }
.pkg-card--ent .pkg-ent__head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.pkg-card--ent .pkg-name { color: #2a2206; font-size: 20px; letter-spacing: -.02em; }
.pkg-card--ent .pkg-ent__tag { font-size: 12px; font-weight: 700; background: rgba(42,34,6,.16); color: #2a2206; padding: 4px 10px; border-radius: var(--r-pill); }
.pkg-card--ent .pkg-ent__lead { font-size: 14px; color: #4a3c12; margin-top: 10px; line-height: 1.5; max-width: none; }
.pkg-card--ent .pkg-ent__feats { list-style: none; padding: 0; margin: 14px 0 0; display: flex; flex-direction: column; gap: 9px; }
.pkg-card--ent .pkg-ent__feats li { display: flex; align-items: center; gap: 8px; font-size: 13.5px; font-weight: 600; color: #3a2e08; }
.pkg-card--ent .pkg-ent__feats svg { flex: none; color: #7a5e10; }
.pkg-card--ent .pkg-ent__price { font-family: var(--font-display); font-weight: 800; font-size: 42px; color: #2a2206; letter-spacing: -.03em; white-space: nowrap; margin-top: 18px; }
.pkg-card--ent .pkg-ent__price span { font-size: 15px; font-weight: 600; color: #5a4a16; }
.pkg-card--ent .pkg-ent__btn { margin-top: auto; background: var(--ink-900); color: #fff; box-shadow: 0 8px 22px -8px rgba(20,27,39,.5); }
.pkg-card--ent .pkg-ent__btn:hover { background: var(--ink-950); transform: translateY(-2px); }
.pkg-card--ent .pkg-trial { color: #6a5618; }

/* ---- MOBILE / TABLET: cap secondary cards to the package column width (the stretch fix) ---- */
@media (max-width: 900px) {
  .pricing-row2 { grid-template-columns: 1fr; max-width: 440px; gap: 16px; }
  .pkg-card--byo, .pkg-card--ent { grid-column: auto; }
  .price-ai {
    max-width: 440px;
    grid-template-columns: 1fr;
    grid-template-areas: "lead" "end" "tools" "note";
    row-gap: 16px; padding: 20px;
  }
  .price-ai__lead { gap: 12px; }
  .price-ai__end { justify-content: space-between; width: 100%; }
  .price-ai__tools { justify-content: flex-start; gap: 12px 20px; padding-top: 14px; border-top: 1px solid var(--line-soft); }
  .price-ai.is-on .price-ai__tools { border-top-color: rgba(var(--ai-rgb), .2); }
}
@media (max-width: 560px) {
  .price-ai { padding: 18px 16px; }
  .pkg-card--byo .pkg-price [data-custom-total],
  .pkg-card--ent .pkg-ent__price { font-size: 38px; }
  .price-ai__tools { display: grid; grid-template-columns: 1fr 1fr; gap: 13px 16px; }
}
@media (max-width: 360px) {
  .price-ai__tools { grid-template-columns: 1fr; gap: 12px; }
}
/* Build-your-own is a single centred card below the packages */
.pricing-custom { max-width: 1000px; margin: 16px auto 0; display: flex; align-items: center; gap: 32px; flex-wrap: wrap; }
.pc-left { flex: 1 1 340px; min-width: 0; }
.pc-right { flex: 0 0 240px; display: flex; flex-direction: column; gap: 10px; }
@media (max-width: 700px) { .pricing-custom { flex-direction: column; align-items: stretch; gap: 18px; } .pc-right { flex: 1 1 auto; } }
.pc-disc { color: var(--ok); font-weight: 600; }
/* Trial sub-note under each plan CTA */
.pkg-trial { font-size: 11.5px; color: var(--text-faint); margin-top: 10px; }
.pkg-card .pkg-trial { text-align: center; }

/* ============================================================
   Tweaks — feature-row alignment, one-line mobile metrics, portal CTA
   ============================================================ */
/* "One platform, end to end": a CLOSED feature row centres its title against
   the icon; an OPEN (.on) row top-aligns so the description has room below. */
.feature-item { align-items: center; }
.feature-item.on { align-items: flex-start; }

@media (max-width: 560px) {
  /* "By the numbers" — all four stats on ONE line on phones (compact, no tick) */
  .metrics-grid { grid-template-columns: repeat(4, 1fr) !important; column-gap: 8px !important; row-gap: 0 !important; }
  .metric { align-items: center; text-align: center; }
  .metric__tick { display: none; }
  .metric__num { font-size: 24px; }
  .metric__label { font-size: 10.5px; margin-top: 6px; line-height: 1.25; }
  /* Customer Portal "Try it free" CTA — full-width on phones */
  .portal-cta .btn { width: 100%; }

  /* Pricing controls on phones — cycle seg full-width 50/50; the AI card sizes to its content */
  .price-controls { gap: 12px; }
  [data-cycle-switch] { display: flex; width: 100%; }
  [data-cycle-switch] button { flex: 1; justify-content: center; height: 44px; padding-top: 0; padding-bottom: 0; }
  .pkg-card { padding: 22px 18px !important; }
  .pkg-price [data-pkg-price] { font-size: 38px; }
  .pkg-tag { margin-bottom: 2px; }
  .pkg-card .btn { margin-top: 16px; }
  .pkg-trial { margin-top: 8px; }
}
