/* ================= RC Dave & Co. — Shared Stylesheet ================= */
/* Brand palette pulled from the RC Dave Group logo: deep forest green + warm gold/cream */

:root {
  color-scheme: light;
  --forest: #22392c;
  --forest-dark: #142218;
  --forest-mid: #2c4a38;
  --forest-light: #3a5f47;
  --gold: #c9a45c;
  --gold-bright: #e8d098;
  --gold-deep: #a9812f;
  --cream: #f8f4ea;
  --ink: #1b241d;
  --gray: #5c665e;
  --gray-light: #8b9389;
  --bg: #faf9f5;
  --white: #ffffff;      /* constant — for text/icons that always sit on a dark surface, never inverted */
  --surface: #ffffff;    /* theme-adaptive — for card/header/dropdown backgrounds */
  --surface-2: #f1ede3;  /* theme-adaptive — for .section-alt page stripes, deliberately NOT equal to --surface so any --surface card sitting on it stays visible (v41 fix — see .section-alt) */
  --border-soft: rgba(20,34,24,0.08);
  --success: #2f7a4f;
  --danger: #b3402f;
  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 4px 24px rgba(20, 34, 24, 0.08);
  --shadow-lg: 0 20px 60px rgba(20, 34, 24, 0.16);
  --max-width: 1180px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ink-muted: #6b7267; /* v124 — was referenced only via var(--ink-muted, fallback); defined + themed so dark mode stops rendering the light fallback */
  --forest-text: var(--forest); /* theme-adaptive — for forest-green TEXT/borders on adaptive backgrounds. --forest itself stays fixed dark green since it also serves as a permanently-dark SURFACE color; this one flips to bright gold in dark mode instead (v29 fix for invisible text in dark mode). */
}

/* ---------- Dark theme override ---------- */
/* Only surfaces, text and borders invert. --white stays literal white always,
   so anything sitting on a permanently-dark element (hero, footer, forest buttons,
   badges, WhatsApp button) stays legible in both themes. */
[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0e1712;
  --surface: #16241b;
  --surface-2: #101a14; /* deliberately darker/recessed vs --surface, so cards read as "raised" panels instead of vanishing into the section */
  --ink: #f1ede2;
  --gray: #b7bfb2;
  --gray-light: #8b9d90;
  --cream: #1a2a20;
  /* v41 fix: 0.08 was too faint to separate a --surface card from a --surface
     section in dark mode (no color difference to fall back on, and dark
     shadows don't read against a dark background) — bumped for real edges. */
  --border-soft: rgba(255,255,255,0.14);
  --shadow: 0 4px 24px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.5);
  --forest-text: var(--gold-bright);
  /* v31 fix: fixed --success/--danger measure below 3.5:1 contrast against the
     dark background (WCAG wants 4.5:1) — dim on badges, checkmarks, and error
     text. Brighter dark-mode-only variants fix this without touching light mode. */
  --success: #4fce8a;
  --danger: #e8735c;
  --ink-muted: #9aa89d; /* v124 */
}
[data-theme="dark"] .logo-text { color: var(--gold-bright); }
[data-theme="dark"] .main-nav a.nav-link:hover { background: rgba(255,255,255,0.07); }
[data-theme="dark"] .dropdown a:hover { background: rgba(255,255,255,0.07); }
[data-theme="dark"] h1, [data-theme="dark"] h2, [data-theme="dark"] h3, [data-theme="dark"] h4 { color: var(--gold-bright); }
[data-theme="dark"] .eyebrow { color: var(--gold-bright); background: rgba(232,208,152,0.14); }
[data-theme="dark"] .theme-toggle { border-color: rgba(255,255,255,0.22); }
[data-theme="dark"] .theme-toggle:hover { background: rgba(255,255,255,0.06); }
[data-theme="dark"] .table-wrap table thead { background: rgba(255,255,255,0.05); }
[data-theme="dark"] .faq-item { border-color: var(--border-soft); }
[data-theme="dark"] .tool-form input,
[data-theme="dark"] .tool-form select { background: #0e1712; border-color: rgba(255,255,255,0.15); color: var(--ink); }
[data-theme="dark"] .tool-form select option { background: #0e1712; color: var(--ink); }
[data-theme="dark"] .login-card { background: var(--surface); }
[data-theme="dark"] [data-cat="corporate"] .eyebrow { color: #a8d497; background: rgba(94,125,82,0.22); }
[data-theme="dark"] [data-cat="digital"] .eyebrow { color: #8fe0cd; background: rgba(63,125,109,0.22); }
[data-theme="dark"] [data-cat="data"] .eyebrow { color: #e8bd6f; background: rgba(160,107,40,0.22); }

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

/* ---------- Google Website Translator: run headless, hide its default UI ---------- */
.goog-te-banner-frame, .goog-te-gadget-icon, #goog-gt-tt, .goog-tooltip, .goog-tooltip:hover,
.goog-text-highlight, .skiptranslate iframe.skiptranslate { display: none !important; background: none !important; box-shadow: none !important; }
body { top: 0px !important; position: static !important; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  transition: background 0.35s ease, color 0.35s ease;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { font-family: inherit; }

.container { max-width: var(--max-width); margin: 0 auto; padding: 0 24px; }

.section { padding: 88px 0; }
.section-alt { background: var(--surface-2); transition: background 0.35s ease; }
.section-sm { padding: 56px 0; }

.eyebrow {
  display: inline-block;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  color: var(--gold-deep);
  background: rgba(201, 164, 92, 0.14);
  padding: 7px 16px;
  border-radius: 100px;
  margin-bottom: 18px;
}

h1, h2, h3, h4 {
  font-family: 'Playfair Display', Georgia, serif;
  font-style: normal;
  font-weight: 700;
  color: var(--forest-text);
  line-height: 1.18;
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(34px, 5vw, 56px); }
h2 { font-size: clamp(27px, 3.5vw, 40px); }
h3 { font-size: 21px; }
p { color: var(--gray); }

.section-head { text-align: center; max-width: 700px; margin: 0 auto 52px; }
.section-head p { margin-top: 14px; font-size: 17.5px; }
.section-head.left { text-align: left; margin: 0 0 40px; max-width: 100%; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 15px 30px;
  border-radius: 100px;
  font-weight: 700;
  font-size: 15px;
  font-family: 'Inter', sans-serif;
  border: 2px solid transparent;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s ease, color 0.25s ease;
  white-space: nowrap;
}
.btn::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent, rgba(255,255,255,0.35), transparent);
  transform: translateX(-120%);
  transition: transform 0.6s ease;
}
.btn:hover::after { transform: translateX(120%); }
.btn-primary { background: linear-gradient(135deg, var(--gold-bright), var(--gold)); color: var(--forest-dark); box-shadow: 0 8px 24px rgba(201,164,92,0.35); }
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 14px 32px rgba(201,164,92,0.45); }
.btn-outline { background: transparent; border-color: rgba(255,255,255,0.45); color: var(--white); }
.btn-outline:hover { background: rgba(255,255,255,0.12); transform: translateY(-3px); }
.btn-outline-navy { background: transparent; border-color: var(--forest-text); color: var(--forest-text); }
.btn-outline-navy:hover { background: var(--forest); color: var(--white); transform: translateY(-3px); }
.btn-block { width: 100%; }
.btn-sm { padding: 10px 20px; font-size: 14px; }
.cta-row { display: flex; gap: 16px; flex-wrap: wrap; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--surface);
  box-shadow: 0 1px 0 var(--border-soft);
  transition: background 0.35s ease, box-shadow 0.25s ease;
}
.site-header.scrolled { box-shadow: var(--shadow); }
.site-header .container { display: flex; align-items: center; justify-content: space-between; height: 88px; gap: 20px; }

.logo { display: flex; align-items: center; gap: 11px; font-weight: 700; flex-shrink: 0; }
.logo img.mark { width: 52px; height: 52px; border-radius: 12px; transition: transform 0.4s var(--ease); flex-shrink: 0; }
.logo:hover img.mark { transform: rotate(-6deg) scale(1.05); }
.logo-text {
  display: flex; flex-direction: column;
  font-family: 'Inter', sans-serif;
  font-style: normal;
  font-weight: 800;
  font-size: 21px;
  letter-spacing: 0.1px;
  color: var(--forest-text);
  line-height: 1.2;
  white-space: nowrap;
}
.logo-text .est {
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.2px;
  color: var(--gray-light);
  white-space: nowrap;
}

.main-nav { display: flex; align-items: center; flex: 1; justify-content: center; }
.main-nav > ul { display: flex; align-items: center; gap: 2px; }
.main-nav a.nav-link {
  padding: 9px 13px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  border-radius: 8px;
  position: relative;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 3px;
}
.main-nav a.nav-link:hover { background: var(--bg); color: var(--forest-text); }
.main-nav a.nav-link.active { color: var(--gold-deep); }

.has-dropdown { position: relative; }
.dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--surface);
  box-shadow: var(--shadow-lg);
  border-radius: var(--radius);
  padding: 10px;
  min-width: 250px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.25s var(--ease);
  border: 1px solid var(--border-soft);
}
.has-dropdown:hover .dropdown { opacity: 1; visibility: visible; transform: translateY(6px); }
.dropdown a { display: block; padding: 10px 14px; font-size: 14px; font-weight: 600; border-radius: var(--radius-sm); color: var(--ink); transition: all 0.2s ease; }
.dropdown a:hover { background: var(--bg); color: var(--forest-text); padding-left: 18px; }

/* ---------- Mega menu ---------- */
.mega-menu {
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  min-width: 700px;
  display: flex;
  gap: 8px;
  padding: 22px;
}
.has-dropdown:hover .mega-menu { transform: translateX(-50%) translateY(6px); }
.mega-col { flex: 1; padding: 0 12px; border-right: 1px solid var(--border-soft); }
.mega-col:last-child { border-right: none; }
.mega-col h4 {
  font-family: 'Inter', sans-serif;
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--gold-deep);
  margin-bottom: 8px;
  font-weight: 700;
}
.mega-col a { padding: 8px 10px; font-size: 13.5px; }
.mega-col a:hover { padding-left: 14px; }

.header-actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.btn-login {
  background: var(--forest);
  color: var(--white);
  padding: 10px 20px;
  border-radius: 100px;
  font-weight: 700;
  font-size: 14px;
  white-space: nowrap;
  transition: background 0.25s ease, transform 0.25s var(--ease);
}
.btn-login:hover { background: var(--forest-light); transform: translateY(-2px); }

.theme-toggle {
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 1.5px solid var(--border-soft);
  background: transparent;
  cursor: pointer;
  font-size: 17px;
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  transition: transform 0.3s var(--ease), background 0.25s ease;
}
.theme-toggle:hover { background: var(--bg); transform: rotate(20deg); }

.nav-toggle { display: none; background: none; border: none; font-size: 22px; color: var(--forest-text); cursor: pointer; }

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(135deg, var(--forest) 0%, var(--forest-mid) 35%, var(--forest-dark) 70%, var(--forest) 100%);
  background-size: 280% 280%;
  animation: heroGradientDrift 26s ease-in-out infinite;
  color: var(--white);
  padding: 100px 0 110px;
  position: relative;
  overflow: hidden;
}
@keyframes heroGradientDrift {
  0%, 100% { background-position: 0% 45%; }
  50% { background-position: 100% 55%; }
}
@media (prefers-reduced-motion: reduce) {
  .hero { animation: none; }
}
.hero.hero-compact { padding: 56px 0 64px; }
.hero .blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.35;
  animation: floatY 9s ease-in-out infinite;
  pointer-events: none;
}
.hero .blob-1 { width: 380px; height: 380px; right: -100px; top: -120px; background: radial-gradient(circle, rgba(232,208,152,0.5), transparent 70%); }
.hero .blob-2 { width: 300px; height: 300px; left: -80px; bottom: -100px; background: radial-gradient(circle, rgba(58,95,71,0.6), transparent 70%); animation-delay: -4s; }

.hero-inner { max-width: 760px; position: relative; z-index: 1; }
.hero h1 { color: var(--white); margin-bottom: 22px; }
.hero p.lead { color: rgba(255,255,255,0.82); font-size: 18.5px; max-width: 620px; margin-bottom: 34px; }
.hero-trust { margin-top: 48px; display: flex; gap: 40px; flex-wrap: wrap; }
.hero-trust .stat .num,
.hero-trust .stat .num-static { font-family: 'Playfair Display', serif; font-size: 30px; font-weight: 700; color: var(--gold-bright); }
.hero-trust .stat .label { font-size: 13.5px; color: rgba(255,255,255,0.68); margin-top: 2px; }
.breadcrumb { font-size: 13.5px; color: rgba(255,255,255,0.6); margin-bottom: 14px; }
.breadcrumb a:hover { color: var(--gold-bright); }

/* ---------- Reveal on scroll ----------
   Progressive enhancement: content is VISIBLE by default.
   Only when JavaScript confirms it's running (html.js) do we hide
   elements for the reveal animation. No JS = no animation, full content. */
html.js [data-animate] { opacity: 0; transform: translateY(8px); transition: opacity 0.2s ease-out, transform 0.2s ease-out; } /* Round 90: was 0.45s/18px — faster reveals */
html.js [data-animate].in-view { opacity: 1; transform: translateY(0); }
html.js [data-animate="fade"] { transform: none; }
html.js [data-animate-delay="1"] { transition-delay: 0.04s; }
html.js [data-animate-delay="2"] { transition-delay: 0.08s; }
html.js [data-animate-delay="3"] { transition-delay: 0.12s; }
html.js [data-animate-delay="4"] { transition-delay: 0.16s; }

/* ---------- Pillars / Service cards ---------- */
.pillars-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; }
.pillar-card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 32px 26px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border-soft);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.3s ease;
}
.pillar-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); border-color: rgba(201,164,92,0.35); }
.pillar-card .icon {
  width: 50px; height: 50px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(201,164,92,0.18), rgba(34,57,44,0.08));
  display: flex; align-items: center; justify-content: center;
  font-size: 23px;
  margin-bottom: 20px;
  transition: transform 0.35s var(--ease);
}
.pillar-card:hover .icon { transform: scale(1.1) rotate(-4deg); }
.pillar-card h3 { margin-bottom: 10px; }
.pillar-card p { font-size: 14.5px; margin-bottom: 18px; }
.pillar-card ul { margin-bottom: 22px; }
.pillar-card ul li { font-size: 13.5px; color: var(--gray); padding: 5px 0; padding-left: 22px; position: relative; }
.pillar-card ul li::before { content: "✓"; position: absolute; left: 0; color: var(--success); font-weight: 700; }
.pillar-card .link-more { font-size: 14px; font-weight: 700; color: var(--forest-text); display: inline-flex; align-items: center; gap: 6px; cursor: pointer; background: none; border: none; padding: 0; }
.pillar-card .link-more span { transition: transform 0.25s var(--ease); }
.pillar-card .link-more:hover span { transform: translateX(4px); }
.pillar-card .link-more:hover { color: var(--gold-deep); }

/* ---------- Why us ---------- */
.why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.why-item { display: flex; gap: 16px; }
.why-item .icon {
  flex-shrink: 0; width: 46px; height: 46px; border-radius: 12px;
  background: rgba(201,164,92,0.16); color: var(--gold-deep);
  display: flex; align-items: center; justify-content: center; font-size: 20px;
  transition: transform 0.3s var(--ease);
}
.why-item:hover .icon { transform: scale(1.12); }
.why-item h3 { font-size: 17px; margin-bottom: 6px; }
.why-item p { font-size: 14.5px; }

/* ---------- About snippet ---------- */
.about-snippet { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 60px; align-items: center; }
.about-snippet .badge-since {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--forest); color: var(--white);
  padding: 12px 20px; border-radius: 100px; font-weight: 700; font-size: 14px; margin-bottom: 22px;
}
.about-snippet .badge-since .yr { color: var(--gold-bright); font-size: 18px; font-family: 'Playfair Display', serif; }
.about-snippet p { margin-bottom: 16px; font-size: 15.5px; }

/* ---------- Tools strip / grid ---------- */
.tools-strip { background: var(--forest); color: var(--white); position: relative; overflow: hidden; }
.tools-strip .section-head p { color: rgba(255,255,255,0.75); }
.tools-strip h2 { color: var(--white); }
.tools-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.tool-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: var(--radius);
  padding: 24px 22px;
  text-align: center;
  transition: background 0.3s ease, transform 0.3s var(--ease);
  cursor: pointer;
}
.tool-card:hover { background: rgba(255,255,255,0.13); transform: translateY(-6px); }
.tool-card .icon { font-size: 27px; margin-bottom: 14px; }
.tool-card h3 { color: var(--white); font-size: 15px; margin-bottom: 4px; font-family: 'Inter', sans-serif; font-weight: 700; }
.tool-card p { font-size: 12.5px; color: rgba(255,255,255,0.65); }

/* ---------- Auto-updating News section ---------- */
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 8px; }
.news-card {
  display: block;
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  padding: 22px 24px;
  text-decoration: none;
  color: inherit;
  box-shadow: var(--shadow);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s var(--ease);
  position: relative;
  overflow: hidden;
}
.news-card::before {
  content: "";
  position: absolute; left: 0; top: 0; bottom: 0; width: 3px;
  background: linear-gradient(180deg, var(--gold-bright), var(--gold));
  transform: scaleY(0); transform-origin: top;
  transition: transform 0.4s var(--ease);
}
.news-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: rgba(201,164,92,0.35); }
.news-card:hover::before { transform: scaleY(1); }
.news-card-meta { display: flex; align-items: center; gap: 7px; font-size: 12px; color: var(--gray); margin-bottom: 10px; text-transform: uppercase; letter-spacing: 0.4px; }
.news-card-source { font-weight: 700; color: var(--gold-deep); }
.news-card-dot { opacity: 0.5; }
.news-card-title { font-size: 16.5px; line-height: 1.4; margin-bottom: 8px; color: var(--ink); font-family: 'Inter', sans-serif; font-weight: 700; }
.news-card-summary { font-size: 13.5px; color: var(--gray); line-height: 1.55; margin-bottom: 12px; }
.news-card-readmore { font-size: 12.5px; font-weight: 700; color: var(--forest-text); opacity: 0.85; }
.news-card:hover .news-card-readmore { opacity: 1; text-decoration: underline; }

.news-skeleton {
  height: 168px;
  background: linear-gradient(100deg, var(--border-soft) 30%, rgba(201,164,92,0.14) 50%, var(--border-soft) 70%);
  background-size: 200% 100%;
  animation: newsSkeletonShimmer 1.6s ease-in-out infinite;
  border-radius: var(--radius);
  border: 1px solid var(--border-soft);
  box-shadow: none;
}
@keyframes newsSkeletonShimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}
@media (prefers-reduced-motion: reduce) {
  .news-skeleton { animation: none; }
}

/* ---------- Business Pulse: forex ticker + repo rate + gov notices + tax history ---------- */
.pulse-section .section-head { margin-bottom: 28px; }
.fx-ticker { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 0 0 30px; }
.fx-card {
  position: relative; overflow: hidden;
  background: var(--surface); border: 1px solid var(--border-soft); border-radius: var(--radius);
  padding: 20px 20px 18px; text-align: center; box-shadow: var(--shadow);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
}
.fx-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: rgba(201,164,92,0.35); }
.fx-card::before {
  content: ""; position: absolute; left: 0; top: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--gold-bright), var(--gold));
  transform: scaleX(0); transform-origin: left; transition: transform 0.4s var(--ease);
}
.fx-card:hover::before { transform: scaleX(1); }
.fx-code { font-size: 11px; text-transform: uppercase; letter-spacing: 0.07em; color: var(--gray-light); font-weight: 700; margin-bottom: 8px; }
.fx-value { font-size: 22px; font-weight: 700; color: var(--forest-text); font-family: 'Playfair Display', serif; }
.fx-asof { font-size: 10.5px; color: var(--gray-light); margin-top: 7px; line-height: 1.4; }
.fx-skeleton {
  height: 96px;
  background: linear-gradient(100deg, var(--border-soft) 30%, rgba(201,164,92,0.14) 50%, var(--border-soft) 70%);
  background-size: 200% 100%;
  animation: newsSkeletonShimmer 1.6s ease-in-out infinite;
  border-radius: var(--radius); border: 1px solid var(--border-soft); box-shadow: none;
}
@media (prefers-reduced-motion: reduce) { .fx-skeleton { animation: none; } }
@media (max-width: 900px) { .fx-ticker { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .fx-ticker { grid-template-columns: 1fr; } }

.pulse-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 26px; align-items: start; }
.pulse-col-title { font-size: 15px; margin-bottom: 14px; }
@media (max-width: 900px) { .pulse-grid { grid-template-columns: 1fr; } }

.gov-notice-list {
  display: flex; flex-direction: column; gap: 4px;
  background: var(--surface); border: 1px solid var(--border-soft); border-radius: var(--radius);
  padding: 8px; box-shadow: var(--shadow);
}
.gov-notice-item {
  display: flex; align-items: flex-start; gap: 10px; padding: 13px 12px; border-radius: var(--radius-sm);
  text-decoration: none; color: inherit; transition: background 0.2s ease, transform 0.2s var(--ease);
}
.gov-notice-item:hover { background: rgba(201,164,92,0.1); transform: translateX(2px); }
.gov-notice-dot { color: var(--gold-deep); font-size: 8px; margin-top: 6px; flex-shrink: 0; }
.gov-notice-title { display: block; font-size: 13.5px; font-weight: 600; color: var(--ink); line-height: 1.4; }
.gov-notice-time { display: block; font-size: 11px; color: var(--gray-light); margin-top: 3px; }
.gov-notice-empty { padding: 16px; font-size: 13px; color: var(--gray); text-align: center; }
.gov-notice-skel {
  height: 54px; margin: 4px 2px; border-radius: var(--radius-sm);
  background: linear-gradient(100deg, var(--border-soft) 30%, rgba(201,164,92,0.14) 50%, var(--border-soft) 70%);
  background-size: 200% 100%; animation: newsSkeletonShimmer 1.6s ease-in-out infinite;
}
@media (prefers-reduced-motion: reduce) { .gov-notice-skel { animation: none; } }

.tax-history-card {
  background: var(--surface); border: 1px solid var(--border-soft); border-radius: var(--radius);
  padding: 24px 26px; height: 100%; box-shadow: var(--shadow);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.tax-history-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.tax-history-badge {
  display: inline-block; font-size: 10.5px; text-transform: uppercase; letter-spacing: 0.06em; font-weight: 700;
  color: var(--gold-deep); background: rgba(201,164,92,0.12); padding: 4px 10px; border-radius: 20px; margin-bottom: 12px;
}
.tax-history-card p { font-size: 14px; line-height: 1.65; color: var(--ink); margin: 0; }

/* ---------- Toast notifications ---------- */
.toast-host {
  position: fixed; right: 20px; bottom: 20px; z-index: 9999;
  display: flex; flex-direction: column; gap: 10px;
  pointer-events: none;
}
.toast {
  pointer-events: auto;
  cursor: pointer;
  display: flex; align-items: center; gap: 10px;
  background: var(--forest-dark); color: var(--white);
  padding: 13px 18px; border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg);
  font-size: 13.5px; font-weight: 600;
  max-width: 320px;
  transform: translateX(120%); opacity: 0;
  transition: transform 0.35s var(--ease), opacity 0.35s var(--ease);
}
.toast.show { transform: translateX(0); opacity: 1; }
.toast.hide { transform: translateX(120%); opacity: 0; }
.toast-icon {
  flex-shrink: 0; width: 20px; height: 20px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 800;
  background: rgba(255,255,255,0.15);
}
.toast-success .toast-icon { background: var(--success); }
.toast-error .toast-icon { background: var(--danger); }
@media (max-width: 480px) {
  .toast-host { left: 16px; right: 16px; bottom: 16px; }
  .toast { max-width: none; }
}
@media (prefers-reduced-motion: reduce) {
  .toast { transition-duration: 0.01ms; }
}

/* ---------- Success checkmark draw-in ---------- */
.success-check { display: flex; justify-content: center; margin: 10px 0; }
.success-check svg { width: 64px; height: 64px; }
.sc-circle { stroke: var(--success); stroke-width: 3; stroke-dasharray: 145; stroke-dashoffset: 145; transition: stroke-dashoffset 0.5s var(--ease); }
.sc-tick { stroke: var(--success); stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 36; stroke-dashoffset: 36; transition: stroke-dashoffset 0.35s var(--ease) 0.45s; }
.success-check.play .sc-circle { stroke-dashoffset: 0; }
.success-check.play .sc-tick { stroke-dashoffset: 0; }
@media (prefers-reduced-motion: reduce) {
  .sc-circle, .sc-tick { transition-duration: 0.01ms; }
}

/* ---------- CTA banner ---------- */
.cta-banner {
  background: linear-gradient(120deg, var(--gold-bright) 0%, var(--gold) 100%);
  border-radius: 22px;
  padding: 58px 50px;
  display: flex; align-items: center; justify-content: space-between; gap: 30px; flex-wrap: wrap;
  position: relative; overflow: hidden;
}
.cta-banner h2 { font-size: 29px; margin-bottom: 8px; color: var(--forest-dark); }
.cta-banner p { color: var(--forest-dark); opacity: 0.8; }
.cta-banner .cta-row .btn-primary { background: var(--forest); color: var(--white); box-shadow: 0 8px 24px rgba(20,34,24,0.3); }
.cta-banner .cta-row .btn-primary:hover { background: var(--forest-dark); }
.cta-banner .cta-row .btn-outline-navy { border-color: var(--forest-dark); color: var(--forest-dark); }
.cta-banner .cta-row .btn-outline-navy:hover { background: rgba(20,34,24,0.1); }

/* ---------- Footer ---------- */
.site-footer { background: var(--forest-dark); color: rgba(255,255,255,0.72); padding: 70px 0 30px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 42px; border-bottom: 1px solid rgba(255,255,255,0.1); }
.footer-grid h4 { color: var(--white); font-size: 14.5px; margin-bottom: 18px; letter-spacing: 0.5px; font-family: 'Inter', sans-serif; }
.footer-grid .logo { color: var(--white); margin-bottom: 16px; }
.footer-grid .logo img.mark-lockup { height: 46px; width: auto; }
.footer-grid p.desc { font-size: 14px; max-width: 280px; }
.footer-grid ul li { margin-bottom: 10px; }
.footer-grid ul li a,
.footer-grid ul li button { font-size: 14px; transition: color 0.2s ease, padding-left 0.2s ease; background: none; border: none; cursor: pointer; color: inherit; padding: 0; text-align: left; }
.footer-grid ul li a:hover,
.footer-grid ul li button:hover { color: var(--gold-bright); padding-left: 4px; }
.footer-bottom { padding-top: 26px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: 13px; }

/* ---------- WhatsApp float button ---------- */
.whatsapp-float {
  position: fixed; bottom: 26px; right: 26px;
  width: 60px; height: 60px; background: #25D366; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 24px rgba(0,0,0,0.28);
  font-size: 28px; color: var(--white); z-index: 200;
  animation: pulseWa 2.4s ease-in-out infinite;
  transition: transform 0.25s var(--ease);
}
.whatsapp-float:hover { transform: scale(1.1); animation-play-state: paused; }

/* ---- Floating "AI Tools" quick-launch button ---- */
.ai-tools-fab {
  position: fixed; bottom: 26px; left: 26px; z-index: 200;
  display: flex; align-items: center; gap: 8px;
  height: 52px; padding: 0 20px 0 16px; border-radius: 100px;
  background: linear-gradient(135deg, var(--gold-bright), var(--gold));
  background-size: 200% 200%;
  color: var(--forest-dark); text-decoration: none;
  font-weight: 800; font-size: 14px; font-family: 'Inter', sans-serif;
  box-shadow: 0 8px 26px rgba(201,164,92,0.45);
  opacity: 0; visibility: hidden; transform: translateY(14px) scale(0.94);
  transition: opacity 0.35s var(--ease), visibility 0.35s var(--ease), transform 0.35s var(--ease), box-shadow 0.25s ease;
  animation: aiToolsFabGlow 3s ease-in-out infinite;
}
.ai-tools-fab.show { opacity: 1; visibility: visible; transform: translateY(0) scale(1); }
.ai-tools-fab:hover { transform: translateY(-3px) scale(1.04); box-shadow: 0 12px 30px rgba(201,164,92,0.55); animation-play-state: paused; }
.ai-tools-fab-icon { font-size: 18px; animation: aiToolsFabSparkle 2.2s ease-in-out infinite; display: inline-block; }
@keyframes aiToolsFabGlow { 0%, 100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }
@keyframes aiToolsFabSparkle { 0%, 100% { transform: scale(1) rotate(0deg); } 50% { transform: scale(1.18) rotate(-8deg); } }
@media (max-width: 640px) {
  .ai-tools-fab { left: 16px; bottom: 78px; height: 46px; padding: 0 16px 0 13px; font-size: 12.5px; }
  .ai-tools-fab-icon { font-size: 15px; }
}

/* ================= SERVICE PAGE TEMPLATE ================= */
.page { display: none; }
.page.page-active { display: block; }
.page.page-active.page-leaving { animation: pageOut 0.14s ease forwards; }
@keyframes pageOut { from { opacity: 1; } to { opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
  .page.page-active.page-leaving { animation: none; }
}

/* No-JS navigation fallback: if JavaScript is blocked (document previewers,
   restricted webviews), pure CSS :target routing still shows the right page
   when an anchor link is clicked. JS (html.js) takes over when available.
   Each page contains an invisible .anchor-alias span whose id matches the
   link hash (e.g. #gst-services), so anchors work without any scripting. */
.anchor-alias { position: absolute; visibility: hidden; }
html:not(.js) .page:has(.anchor-alias:target) { display: block; }
html:not(.js) body:has(.anchor-alias:target) #page-home:not(:has(.anchor-alias:target)) { display: none; }

.problem-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 30px 0; }
.problem-item {
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-left: 3px solid var(--danger);
  border-radius: var(--radius-sm);
  padding: 16px 18px;
  font-size: 14.5px;
  color: var(--ink);
}
.problem-closing { font-size: 16px; margin-top: 10px; color: var(--ink); font-weight: 500; }

.table-wrap { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--border-soft); }
table.included-table { width: 100%; border-collapse: collapse; background: var(--surface); }
table.included-table th, table.included-table td { padding: 16px 20px; text-align: left; font-size: 14.5px; border-bottom: 1px solid var(--border-soft); }
table.included-table th { background: rgba(201,164,92,0.12); color: var(--forest-text); font-family: 'Inter'; font-weight: 700; font-size: 13px; text-transform: uppercase; letter-spacing: 0.4px; }
[data-theme="dark"] table.included-table th { color: var(--gold-bright); }
table.included-table td:first-child { font-weight: 700; color: var(--forest-text); white-space: nowrap; }
[data-theme="dark"] table.included-table td:first-child { color: var(--gold-bright); }
table.included-table tr:last-child td { border-bottom: none; }
table.included-table td:last-child { color: var(--gray); }

.steps-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; counter-reset: step; }
.step-card { background: var(--surface); border: 1px solid var(--border-soft); border-radius: var(--radius); padding: 30px 24px; position: relative; }
.step-card .step-num {
  position: absolute; top: -18px; left: 24px;
  width: 36px; height: 36px; border-radius: 50%;
  background: linear-gradient(135deg, var(--gold-bright), var(--gold));
  color: var(--forest-dark); font-weight: 800; font-family: 'Playfair Display', serif;
  display: flex; align-items: center; justify-content: center; font-size: 16px;
  box-shadow: 0 6px 16px rgba(201,164,92,0.4);
}
.step-card h3 { margin: 12px 0 10px; font-size: 18px; }
.step-card p { font-size: 14px; }

.ai-features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.ai-feature-card { background: var(--surface); border: 1px solid var(--border-soft); border-radius: var(--radius); padding: 24px; transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease); }
.ai-feature-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.ai-feature-card .icon { font-size: 26px; margin-bottom: 12px; }
.ai-feature-card h3 { font-size: 16px; margin-bottom: 8px; }
.ai-feature-card p { font-size: 13.5px; }
.ai-disclaimer { text-align: center; margin-top: 26px; font-size: 14px; font-style: italic; color: var(--gold-deep); font-weight: 600; }

.faq-list { max-width: 850px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid var(--border-soft); }
.faq-q {
  width: 100%; text-align: left; background: none; border: none; cursor: pointer;
  padding: 20px 6px; font-size: 16px; font-weight: 700; color: var(--forest-text);
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  font-family: 'Inter', sans-serif;
}
[data-theme="dark"] .faq-q { color: var(--gold-bright); }
.faq-q .plus { flex-shrink: 0; font-size: 20px; color: var(--gold-deep); transition: transform 0.3s var(--ease); }
.faq-item.open .faq-q .plus { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.35s var(--ease); }
.faq-item.open .faq-a { max-height: 400px; }
.faq-a p {
  padding: 0 6px 20px; font-size: 14.5px;
  opacity: 0; transform: translateY(-6px);
  transition: opacity 0.35s ease 0.08s, transform 0.35s ease 0.08s;
}
.faq-item.open .faq-a p { opacity: 1; transform: translateY(0); }

.whyus-grid-page { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.whyus-card { background: var(--surface); border: 1px solid var(--border-soft); border-radius: var(--radius); padding: 22px; }
.whyus-card .tick { color: var(--success); font-weight: 800; margin-right: 8px; }
.whyus-card h3 { font-size: 15.5px; margin-bottom: 6px; display: inline; }
.whyus-card p { font-size: 13.5px; margin-top: 6px; }

.testimonial-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.testimonial-card { background: var(--surface); border: 1px solid var(--border-soft); border-radius: var(--radius); padding: 26px; font-style: italic; color: var(--gray); font-size: 14px; }
.testimonial-card .stars { color: var(--gold); margin-bottom: 12px; font-style: normal; }
.testimonial-card .name { margin-top: 14px; font-style: normal; font-weight: 700; color: var(--forest-text); font-size: 13.5px; }
[data-theme="dark"] .testimonial-card .name { color: var(--gold-bright); }

/* ================= TOOLS PAGE ================= */
.tools-filter-bar { margin-bottom: 22px; }
.tools-search-input {
  width: 100%; padding: 13px 16px; border-radius: 100px; border: 1.5px solid var(--border-soft);
  font-size: 14.5px; font-family: 'Inter', sans-serif; background: var(--surface); color: var(--ink);
  margin-bottom: 14px; transition: border-color 0.2s ease;
}
.tools-search-input:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(201,164,92,0.15); }
.tools-filter-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.tools-filter-chip {
  background: var(--bg); border: 1px solid var(--border-soft); border-radius: 100px;
  padding: 7px 14px; font-size: 12.5px; font-weight: 700; color: var(--forest-text);
  cursor: pointer; transition: all 0.2s ease;
}
.tools-filter-chip:hover { background: rgba(201,164,92,0.14); }
.tools-filter-chip.active { background: var(--forest); color: var(--white); border-color: var(--forest-text); }
.tools-empty-state { text-align: center; padding: 40px 20px; color: var(--gray); font-size: 14.5px; }
.tools-index-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.tool-index-card {
  background: var(--surface); border: 1px solid var(--border-soft); border-radius: var(--radius);
  padding: 26px; cursor: pointer; transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s ease;
}
.tool-index-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: rgba(201,164,92,0.35); }
.tool-index-card .icon { font-size: 30px; margin-bottom: 14px; }
.tool-index-card h3 { font-size: 17px; margin-bottom: 6px; }
.tool-index-card p { font-size: 13.5px; }
.tool-index-card .tool-ai-badge {
  display: inline-block; font-size: 10.5px; font-weight: 700; color: var(--gold-deep);
  background: rgba(201,164,92,0.18); padding: 3px 9px; border-radius: 100px; margin-bottom: 8px;
}
.tool-index-card .badge-live { display: inline-block; margin-top: 12px; font-size: 11px; font-weight: 700; color: var(--success); background: rgba(47,122,79,0.12); padding: 4px 10px; border-radius: 100px; }
.tool-index-card .badge-soon { display: inline-block; margin-top: 12px; font-size: 11px; font-weight: 700; color: var(--gray-light); background: rgba(139,147,137,0.14); padding: 4px 10px; border-radius: 100px; }

.tool-calc-wrap { max-width: 640px; margin: 0 auto; background: var(--surface); border: 1px solid var(--border-soft); border-radius: var(--radius); padding: 36px; }
.tool-form label { display: block; font-size: 13.5px; font-weight: 700; color: var(--forest-text); margin: 16px 0 6px; }
[data-theme="dark"] .tool-form label { color: var(--gold-bright); }
.tool-form label:first-child { margin-top: 0; }
.tool-form input, .tool-form select {
  width: 100%; padding: 13px 14px; border-radius: var(--radius-sm); border: 1.5px solid var(--border-soft);
  font-size: 15px; font-family: 'Inter', sans-serif; background: var(--white); color: var(--ink);
  transition: border-color 0.2s ease;
}
.tool-form input:focus, .tool-form select:focus { outline: none; border-color: var(--gold); }
.tool-form .radio-row { display: flex; gap: 20px; margin-top: 8px; }
.tool-form .radio-row label { display: flex; align-items: center; gap: 6px; font-weight: 600; font-size: 14px; margin: 0; color: var(--ink); }
.tool-result {
  margin-top: 26px; padding: 22px; border-radius: var(--radius-sm);
  background: linear-gradient(120deg, rgba(232,208,152,0.25), rgba(201,164,92,0.12));
  border: 1px solid rgba(201,164,92,0.3); display: none;
}
.tool-result.show { display: block; }
.tool-result .result-row { display: flex; justify-content: space-between; padding: 8px 0; font-size: 14.5px; border-bottom: 1px dashed rgba(20,34,24,0.12); }
.tool-result .result-row:last-child { border-bottom: none; }
.tool-result .result-row .val { font-weight: 800; color: var(--forest-text); font-family: 'Playfair Display', serif; font-size: 17px; }
[data-theme="dark"] .tool-result .result-row .val { color: var(--gold-bright); }
.tool-back { display: inline-flex; align-items: center; gap: 6px; margin-bottom: 24px; font-weight: 700; color: var(--forest-text); cursor: pointer; background: none; border: none; font-size: 14.5px; }
[data-theme="dark"] .tool-back { color: var(--gold-bright); }

.tool-form textarea {
  width: 100%; padding: 13px 14px; border-radius: var(--radius-sm); border: 1.5px solid var(--border-soft);
  font-size: 14.5px; font-family: 'Inter', sans-serif; background: var(--white); color: var(--ink);
  resize: vertical; min-height: 110px; transition: border-color 0.2s ease;
}
.tool-form textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(201,164,92,0.15); }
[data-theme="dark"] .tool-form textarea { background: #0e1712; border-color: rgba(255,255,255,0.15); color: var(--ink); }
.notice-chip-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 4px; }
.notice-chip {
  background: var(--bg); border: 1px solid var(--border-soft); border-radius: 100px;
  padding: 7px 13px; font-size: 12.5px; font-weight: 600; color: var(--forest-text);
  cursor: pointer; transition: all 0.2s ease;
}
.notice-chip:hover { background: rgba(201,164,92,0.18); }
.notice-chip.active { background: var(--gold); color: var(--forest-dark); border-color: var(--gold); }
.tool-result.ai-text p { font-size: 14.5px; line-height: 1.7; }
.tool-result .ai-tag {
  display: inline-block; font-size: 11px; font-weight: 700; color: var(--gold-deep);
  background: rgba(201,164,92,0.18); padding: 3px 10px; border-radius: 100px; margin-bottom: 10px;
}

/* ---- Notice Explainer: upload button + language select + formatted reply ---- */
.notice-upload-row { display: flex; align-items: center; gap: 8px; margin-top: 8px; }
.notice-upload-btn {
  display: inline-flex; align-items: center; gap: 8px; padding: 11px 16px; border-radius: var(--radius-sm);
  border: 1.5px dashed var(--border-soft); background: var(--bg); color: var(--forest-text);
  font-size: 13.5px; font-weight: 700; cursor: pointer; transition: all 0.2s ease; flex: 1;
}
.notice-upload-btn:hover { border-color: var(--gold); background: rgba(201,164,92,0.1); }
[data-theme="dark"] .notice-upload-btn { color: var(--gold-bright); }
.notice-upload-clear {
  width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--border-soft); background: var(--white);
  color: var(--gray); cursor: pointer; font-size: 13px; display: inline-flex; align-items: center; justify-content: center;
  flex-shrink: 0; transition: all 0.2s ease;
}
.notice-upload-clear:hover { background: rgba(192,69,58,0.12); color: #c0453a; border-color: #c0453a; }
.tool-result .notice-section-head {
  font-family: 'Playfair Display', serif; font-weight: 800; font-size: 14.5px; color: var(--gold-deep);
  margin: 16px 0 4px; letter-spacing: 0.02em; text-transform: uppercase;
}
.tool-result .notice-section-head:first-of-type { margin-top: 4px; }
.tool-result .notice-list { margin: 4px 0 4px 4px; padding-left: 18px; }
.tool-result .notice-list li { font-size: 14.5px; line-height: 1.7; margin-bottom: 4px; }

/* ---- AI Business Health Score gauge (radial ring, fills in on reveal) ---- */
.hs-gauge {
  position: relative;
  width: 148px; height: 148px;
  margin: 6px auto 16px;
  display: flex; align-items: center; justify-content: center;
  animation: hsGaugeIn 0.5s var(--ease);
}
.hs-ring { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.hs-ring-bg { fill: none; stroke: var(--border-soft); stroke-width: 9; }
.hs-ring-fill {
  fill: none;
  stroke: var(--hs-color, var(--gold));
  stroke-width: 9;
  stroke-linecap: round;
  stroke-dashoffset: 326.7px; /* starts fully empty regardless of computed circumference, corrected below */
  transition: stroke-dashoffset 1.3s var(--ease);
}
.hs-gauge.filled .hs-ring-fill { stroke-dashoffset: var(--hs-offset); }
.hs-gauge-inner { position: relative; text-align: center; }
.hs-gauge-num { font-family: 'Playfair Display', serif; font-weight: 800; font-size: 40px; line-height: 1; color: var(--hs-color, var(--gold)); text-shadow: 0 2px 14px rgba(0,0,0,0.08); }
.hs-gauge-of { font-size: 13px; font-weight: 700; color: var(--gray); }
@keyframes hsGaugeIn { from { opacity: 0; transform: scale(0.7); } to { opacity: 1; transform: scale(1); } }
@media (prefers-reduced-motion: reduce) {
  .hs-ring-fill { transition-duration: 0.01ms; }
}

/* ---- AI Credit Score Advisor — qualitative band pill (no fake number) ---- */
.cs-band-pill {
  display: inline-block;
  color: #fff;
  font-weight: 800;
  font-size: 13px;
  padding: 7px 16px;
  border-radius: 999px;
  margin-bottom: 14px;
  letter-spacing: 0.2px;
}

/* ================= GSTIN LIVE LOOKUP (Sandbox.co.in) ================= */
.gstin-live-box {
  margin-top: 16px; padding-top: 16px; border-top: 1px dashed rgba(20,34,24,0.15);
  animation: pageIn 0.35s var(--ease);
}
.gstin-live-box .result-row { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; font-size: 14.5px; border-bottom: 1px dashed rgba(20,34,24,0.12); }
.gstin-live-box .result-row:last-child { border-bottom: none; }
.gstin-live-box .result-row .val { font-weight: 800; color: var(--forest-text); font-family: 'Playfair Display', serif; font-size: 16px; text-align: right; }
[data-theme="dark"] .gstin-live-box .result-row .val { color: var(--gold-bright); }
.gstin-live-verified {
  display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 700;
  color: var(--success); background: rgba(46,125,50,0.1); padding: 5px 12px;
  border-radius: 999px; margin-bottom: 10px;
}
.gstin-live-note { font-size: 13px; color: var(--gray); font-style: italic; }
.gstin-live-spinner {
  display: inline-block; width: 13px; height: 13px; border-radius: 50%;
  border: 2px solid rgba(201,164,92,0.35); border-top-color: var(--gold-deep);
  animation: gstinSpin 0.7s linear infinite; vertical-align: middle; margin-right: 4px;
}
@keyframes gstinSpin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
  .gstin-live-spinner { animation: none; }
  .gstin-live-box { animation: none; }
}

/* ================= LOGIN / PORTAL PLACEHOLDER ================= */
.login-wrap { display: flex; justify-content: center; padding: 40px 0; }
.login-card {
  width: 100%; max-width: 420px; background: var(--surface);
  border: 1px solid var(--border-soft); border-radius: var(--radius);
  padding: 40px; box-shadow: var(--shadow-lg);
}
.login-card .login-tabs { display: flex; gap: 6px; margin-bottom: 26px; background: var(--bg); border-radius: 100px; padding: 4px; }
.login-card .login-tab { flex: 1; text-align: center; padding: 10px; border-radius: 100px; font-weight: 700; font-size: 14px; cursor: pointer; border: none; background: none; color: var(--gray); }
.login-card .login-tab.active { background: var(--forest); color: var(--white); }
.login-card .login-note { margin-top: 20px; font-size: 12.5px; text-align: center; color: var(--gray-light); }
.upload-drop {
  margin-top: 18px; border: 2px dashed var(--border-soft); border-radius: var(--radius-sm);
  padding: 30px; text-align: center; font-size: 13.5px; color: var(--gray-light);
}

/* ================= SCROLL PROGRESS BAR ================= */
.scroll-progress {
  position: fixed; top: 0; left: 0; height: 3px; width: 0%;
  background: linear-gradient(90deg, var(--gold), var(--gold-bright));
  z-index: 300;
  transition: width 0.1s linear;
}

/* ================= PAGE TRANSITION ================= */
.page-enter { animation: pageIn 0.5s var(--ease); }
@keyframes pageIn {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ================= LANGUAGE SWITCHER ================= */
.lang-switcher { position: relative; }
.lang-toggle {
  display: inline-flex; align-items: center; gap: 6px;
  height: 40px; padding: 0 14px;
  border-radius: 100px;
  border: 1.5px solid var(--border-soft);
  background: transparent;
  cursor: pointer;
  font-size: 13.5px; font-weight: 700;
  color: var(--ink);
  transition: background 0.25s ease;
  white-space: nowrap;
}
.lang-toggle:hover { background: var(--bg); }
.lang-toggle .globe { font-size: 16px; }
.lang-menu {
  position: absolute; top: calc(100% + 8px); right: 0;
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 8px;
  display: none;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  min-width: 240px;
  z-index: 150;
}
.lang-switcher.open .lang-menu { display: grid; animation: pageIn 0.25s var(--ease); }
.lang-option {
  padding: 10px 12px;
  border: none; background: none; cursor: pointer;
  font-size: 14px; font-weight: 600;
  color: var(--ink);
  border-radius: var(--radius-sm);
  text-align: left;
  transition: background 0.2s ease;
}
.lang-option:hover { background: var(--bg); color: var(--gold-deep); }

/* Language notice ribbon on English-only deep pages */
.lang-notice-wrap { margin-top: 20px; }
.lang-notice {
  display: flex; align-items: center; gap: 10px;
  background: rgba(201,164,92,0.12);
  border: 1px solid rgba(201,164,92,0.3);
  border-radius: var(--radius-sm);
  padding: 12px 18px;
  font-size: 13.5px;
  color: var(--ink);
}

/* ================= AI ASSISTANT (premium dock) ================= */
.ai-assist-toggle {
  position: fixed; bottom: 26px; right: 100px;
  height: 60px;
  padding: 0 22px;
  display: flex; align-items: center; gap: 10px;
  background: linear-gradient(135deg, var(--forest) 0%, var(--forest-mid) 55%, var(--forest) 100%);
  background-size: 200% 200%;
  color: var(--white);
  border: 1.5px solid rgba(232,208,152,0.4);
  border-radius: 100px;
  font-weight: 700; font-size: 14.5px;
  cursor: pointer;
  box-shadow: 0 6px 24px rgba(0,0,0,0.28);
  z-index: 200;
  overflow: hidden;
  transition: transform 0.3s var(--ease), box-shadow 0.3s ease, border-color 0.3s ease;
  animation: aiGlow 3s ease-in-out infinite, aiSheenMove 6s linear infinite, aiEntrance 0.7s var(--ease) both;
  animation-delay: 0s, 0s, 0.4s;
}
.ai-assist-toggle::before {
  content: "";
  position: absolute; top: 0; left: -60%;
  width: 35%; height: 100%;
  background: linear-gradient(120deg, transparent, rgba(255,255,255,0.32), transparent);
  transform: skewX(-20deg);
  animation: aiSheen 5s ease-in-out infinite;
  pointer-events: none;
}
.ai-assist-toggle .status-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: #4ade80;
  flex-shrink: 0;
  animation: pulseWa 2s infinite;
}
.ai-assist-toggle:hover {
  transform: translateY(-4px) scale(1.03);
  box-shadow: 0 10px 34px rgba(0,0,0,0.32), 0 0 0 3px rgba(201,164,92,0.28);
  border-color: rgba(232,208,152,0.7);
}
.ai-assist-toggle .bot { display: inline-flex; align-items: center; justify-content: center; animation: aiBotFloat 2.8s ease-in-out infinite; transform-origin: 50% 60%; }
.ai-assist-toggle .bot.ai-spark-icon svg { display: block; filter: drop-shadow(0 0 4px rgba(232,208,152,0.5)); }
.ai-assist-toggle:hover .bot { animation: aiBotWiggle 0.5s ease-in-out; }
@keyframes aiGlow {
  0%, 100% { box-shadow: 0 6px 24px rgba(0,0,0,0.28), 0 0 0 0 rgba(201,164,92,0.4); }
  50% { box-shadow: 0 6px 24px rgba(0,0,0,0.28), 0 0 0 10px rgba(201,164,92,0); }
}
@keyframes aiSheenMove { 0%, 100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }
@keyframes aiSheen { 0% { left: -60%; } 40%, 100% { left: 140%; } }
@keyframes aiEntrance { 0% { opacity: 0; transform: translateY(30px) scale(0.8); } 100% { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes aiBotFloat { 0%, 100% { transform: translateY(0) rotate(0deg); } 50% { transform: translateY(-3px) rotate(-4deg); } }
@keyframes aiBotWiggle { 0%, 100% { transform: rotate(0deg); } 25% { transform: rotate(-14deg); } 75% { transform: rotate(14deg); } }

.ai-panel {
  position: fixed;
  bottom: 100px; right: 26px;
  width: 404px; max-width: calc(100vw - 40px);
  height: 580px; max-height: calc(100vh - 150px);
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: 18px;
  box-shadow: var(--shadow-lg);
  z-index: 250;
  display: flex; flex-direction: column;
  overflow: hidden;
  opacity: 0; visibility: hidden;
  transform: translateY(24px) scale(0.97);
  transition: all 0.35s var(--ease);
}
.ai-panel.open { opacity: 1; visibility: visible; transform: translateY(0) scale(1); }
.ai-panel-head {
  background: linear-gradient(135deg, var(--forest), var(--forest-dark));
  color: var(--white);
  padding: 16px 20px;
  display: flex; align-items: center; justify-content: space-between;
}
.ai-panel-head .title { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 15px; }
.ai-panel-head .title .dot { width: 9px; height: 9px; background: #4ade80; border-radius: 50%; animation: pulseWa 2s infinite; }
.ai-panel-head-actions { display: flex; align-items: center; gap: 6px; }
.ai-voice-toggle { background: none; border: none; color: var(--white); cursor: pointer; opacity: 0.85; padding: 4px; display: flex; border-radius: 8px; transition: opacity 0.2s ease, background 0.2s ease; }
.ai-voice-toggle:hover { opacity: 1; background: rgba(255,255,255,0.12); }
.ai-voice-toggle .mute-slash { display: none; }
.ai-voice-toggle.muted .wave { display: none; }
.ai-voice-toggle.muted .mute-slash { display: block; }
.ai-panel-close { background: none; border: none; color: var(--white); font-size: 20px; cursor: pointer; opacity: 0.8; }
.ai-panel-close:hover { opacity: 1; }
.ai-panel-body { flex: 1; display: flex; flex-direction: column; padding: 16px 18px 14px; gap: 12px; min-height: 0; }
.ai-panel-body .big-bot { font-size: 44px; animation: floatY 4s ease-in-out infinite; }
.ai-panel-langs { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; }
.ai-panel-langs span { font-size: 11.5px; background: rgba(201,164,92,0.14); color: var(--gold-deep); padding: 4px 10px; border-radius: 100px; font-weight: 700; }
.ai-panel-note { font-size: 12px !important; color: var(--gray-light) !important; font-style: italic; text-align: center; margin: 0; }
.ai-panel-note a { color: var(--gold-deep); font-weight: 700; }

/* ---------- AI chat widget ---------- */
.ai-chat-messages {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 2px 6px 2px 2px;
}
.ai-chat-msg { max-width: 88%; display: flex; align-items: flex-end; gap: 8px; }
.ai-chat-avatar {
  width: 24px; height: 24px; border-radius: 50%; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 2px;
}
.ai-chat-avatar.bot-avatar { background: var(--forest); color: var(--white); }
.ai-chat-avatar.user-avatar { background: rgba(201,164,92,0.18); color: var(--gold-deep); }
.ai-chat-msg p {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
  padding: 11px 15px;
  border-radius: 15px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.07);
  white-space: pre-wrap;
  word-break: break-word;
}
.ai-chat-msg.bot { align-self: flex-start; }
.ai-chat-msg.bot p { background: rgba(201,164,92,0.12); color: var(--ink); border-bottom-left-radius: 4px; }
.ai-chat-msg.user { align-self: flex-end; flex-direction: row-reverse; }
.ai-chat-msg.user p { background: var(--forest); color: var(--white); border-bottom-right-radius: 4px; }
.ai-chat-msg.typing { max-width: 60%; }
.ai-chat-msg.typing p { display: flex; gap: 4px; align-items: center; padding: 12px 16px; }
.ai-chat-msg.typing span {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--gray); opacity: 0.5;
  animation: aiTypingDot 1.2s ease-in-out infinite;
}
.ai-chat-msg.typing span:nth-child(2) { animation-delay: 0.15s; }
.ai-chat-msg.typing span:nth-child(3) { animation-delay: 0.3s; }
@keyframes aiTypingDot { 0%, 60%, 100% { opacity: 0.3; transform: translateY(0); } 30% { opacity: 1; transform: translateY(-3px); } }
.ai-chat-input-row { display: flex; gap: 8px; flex-shrink: 0; }
.ai-chat-input-row input {
  flex: 1;
  padding: 11px 14px;
  border: 1px solid var(--border-soft);
  border-radius: 100px;
  font-size: 13.5px;
  background: var(--bg);
  color: var(--ink);
  font-family: inherit;
}
.ai-chat-input-row input:focus { outline: none; border-color: var(--gold-deep); }
.ai-chat-send {
  width: 40px; height: 40px; flex-shrink: 0;
  border-radius: 50%; border: none;
  background: var(--forest); color: var(--white);
  font-size: 16px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: transform 0.2s ease;
}
.ai-chat-send:hover { transform: scale(1.08); }
.ai-chat-mic {
  width: 40px; height: 40px; flex-shrink: 0;
  border-radius: 50%; border: 1px solid var(--border-soft);
  background: var(--bg); color: var(--forest-text);
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}
.ai-chat-mic:hover { transform: scale(1.06); }
.ai-chat-mic.listening { background: #e5484d; border-color: #e5484d; color: var(--white); animation: pulseWa 1.1s ease-in-out infinite; }
.ai-chat-mic.unsupported { display: none; }
.ai-chat-attach {
  width: 40px; height: 40px; flex-shrink: 0;
  border-radius: 50%; border: 1px solid var(--border-soft);
  background: var(--bg); color: var(--forest-text);
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}
.ai-chat-attach:hover { transform: scale(1.06); }
.ai-chat-file-chip {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  background: var(--bg); border: 1px solid var(--gold-deep);
  border-radius: 100px; padding: 6px 8px 6px 14px;
  font-size: 12.5px; color: var(--ink); font-weight: 600;
  margin-bottom: 8px; flex-shrink: 0;
}
.ai-chat-file-chip-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ai-chat-file-chip-remove {
  width: 22px; height: 22px; flex-shrink: 0; border: none; border-radius: 50%;
  background: rgba(0,0,0,0.08); color: var(--ink); cursor: pointer;
  font-size: 11px; display: flex; align-items: center; justify-content: center;
}
.ai-chat-file-chip-remove:hover { background: rgba(0,0,0,0.16); }
.ai-chat-file-hint {
  font-size: 11px !important; color: var(--gray-light) !important;
  text-align: center; margin: 6px 0 0 !important; line-height: 1.4;
}
.ai-handoff-link {
  display: flex; align-items: center; justify-content: center; gap: 7px;
  font-size: 12.5px; font-weight: 700; text-decoration: none;
  color: #128C4A; background: rgba(37,211,102,0.12);
  border: 1px solid rgba(37,211,102,0.3); border-radius: 100px;
  padding: 8px 14px; flex-shrink: 0; transition: background 0.2s ease, transform 0.2s ease;
}
.ai-handoff-link:hover { background: rgba(37,211,102,0.2); transform: translateY(-1px); }
[data-theme="dark"] .ai-handoff-link { color: #4ade80; }
/* When the Jotform embed is pasted in, it fills this container */
#jotformAgentContainer { width: 100%; height: 100%; }

/* ================= SCROLL TO TOP ================= */
.to-top-btn {
  position: fixed; bottom: 100px; right: 33px;
  width: 46px; height: 46px;
  border-radius: 50%;
  background: var(--surface);
  border: 1.5px solid var(--border-soft);
  color: var(--forest-text);
  font-size: 18px;
  cursor: pointer;
  box-shadow: var(--shadow);
  z-index: 190;
  opacity: 0; visibility: hidden;
  transform: translateY(12px);
  transition: all 0.3s var(--ease);
}
[data-theme="dark"] .to-top-btn { color: var(--gold-bright); }
.to-top-btn.show { opacity: 1; visibility: visible; transform: translateY(0); }
.to-top-btn:hover { transform: translateY(-3px); }

/* ================= CALCULATOR TOGGLE SECTIONS ================= */
.tool-calc-wide { max-width: 780px; }
.calc-section { margin-top: 26px; border: 1px solid var(--border-soft); border-radius: var(--radius); padding: 20px; background: var(--bg); }
.calc-section-title { font-weight: 800; font-size: 15px; color: var(--forest-text); margin-bottom: 6px; font-family: 'Inter', sans-serif; }
[data-theme="dark"] .calc-section-title { color: var(--gold-bright); }
.calc-section-hint { font-weight: 500; font-size: 12.5px; color: var(--gray-light); }
.toggle-block { border-bottom: 1px dashed var(--border-soft); padding: 12px 0; }
.toggle-block:last-child { border-bottom: none; }
.toggle-body { padding: 10px 4px 4px 46px; }
.field-hint { font-size: 12px; color: var(--gray-light); margin: 4px 0 2px; }

/* iOS-style switch */
.switch-row {
  display: flex !important; align-items: center; gap: 12px;
  cursor: pointer; font-weight: 700 !important; font-size: 14.5px !important;
  color: var(--ink) !important; margin: 0 !important;
}
.switch-row .toggle-input { display: none; }
.switch {
  width: 34px; height: 20px; flex-shrink: 0;
  background: var(--gray-light);
  border-radius: 100px;
  position: relative;
  transition: background 0.25s ease;
}
.switch::after {
  content: "";
  position: absolute; top: 2px; left: 2px;
  width: 16px; height: 16px;
  background: var(--white);
  border-radius: 50%;
  transition: transform 0.25s var(--ease);
}
.switch-row .toggle-input:checked + .switch { background: var(--success); }
.switch-row .toggle-input:checked + .switch::after { transform: translateX(14px); }

/* Regime comparison result */
.regime-compare { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.regime-col { background: var(--surface); border: 1.5px solid var(--border-soft); border-radius: var(--radius-sm); padding: 18px; }
.regime-col h3 { font-size: 17px; margin-bottom: 10px; }
.regime-col.regime-winner { border-color: var(--success); background: rgba(47,122,79,0.06); }
.regime-col .total-row { font-weight: 800; border-top: 2px solid var(--border-soft); margin-top: 6px; padding-top: 12px; }
.verdict-banner {
  margin-top: 18px; padding: 16px 20px; text-align: center;
  background: linear-gradient(120deg, var(--gold-bright), var(--gold));
  color: var(--forest-dark); border-radius: var(--radius-sm);
  font-size: 15.5px;
}
@media (max-width: 640px) {
  .regime-compare { grid-template-columns: 1fr; }
  .toggle-body { padding-left: 12px; }
  .ai-assist-toggle { right: 26px; bottom: 96px; padding: 0 16px; height: 52px; font-size: 13px; }
  .ai-assist-toggle .label-text { display: none; }
  .ai-panel { bottom: 158px; }
  .to-top-btn { display: none; }
}

/* ================= HERO TYPING EFFECT ================= */
.typed-line {
  display: flex; align-items: baseline;
  font-size: 17px; font-weight: 600;
  color: rgba(255,255,255,0.85);
  margin: -14px 0 30px;
}
.typed-word {
  color: var(--gold-bright);
  font-family: 'Playfair Display', serif;
  font-size: 21px; font-weight: 700;
  min-width: 10px;
}
.typed-cursor { color: var(--gold-bright); animation: blink 0.9s step-end infinite; font-weight: 400; margin-left: 2px; }
@keyframes blink { 50% { opacity: 0; } }

/* ================= DEADLINE TICKER ================= */
.deadline-ticker {
  background: var(--forest-dark);
  border-top: 1px solid rgba(232,208,152,0.2);
  border-bottom: 1px solid rgba(232,208,152,0.2);
  display: flex; align-items: center;
  overflow: hidden;
  height: 46px;
}
.ticker-tag {
  flex-shrink: 0;
  background: var(--gold);
  color: var(--forest-dark);
  font-weight: 800; font-size: 12.5px;
  padding: 0 16px;
  height: 100%;
  display: flex; align-items: center;
  letter-spacing: 0.5px;
  z-index: 2;
}
.ticker-viewport { flex: 1; overflow: hidden; }
.ticker-track {
  display: inline-flex; align-items: center; gap: 26px;
  white-space: nowrap;
  padding-left: 20px;
  animation: tickerScroll 40s linear infinite;
  color: rgba(255,255,255,0.85);
  font-size: 13.5px;
}
.ticker-track:hover { animation-play-state: paused; }
.ticker-item strong { color: var(--gold-bright); }
.ticker-item em { font-style: normal; color: rgba(255,255,255,0.6); font-size: 12.5px; }
.ticker-sep { color: var(--gold); }
@keyframes tickerScroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ================= CHARTS ================= */
.chart-wrap { display: flex; align-items: center; gap: 22px; margin-top: 18px; flex-wrap: wrap; }
.donut-svg { width: 130px; height: 130px; flex-shrink: 0; }
.donut-seg { transition: stroke-dasharray 1s var(--ease); animation: donutIn 1s var(--ease); }
@keyframes donutIn { from { opacity: 0; } to { opacity: 1; } }
.chart-legend { display: flex; flex-direction: column; gap: 8px; font-size: 13.5px; color: var(--ink); }
.chart-legend-item { display: flex; align-items: center; gap: 8px; }
.chart-legend-item .dot { width: 11px; height: 11px; border-radius: 3px; display: inline-block; flex-shrink: 0; }
.bars-svg { width: 100%; height: 120px; margin-top: 6px; }
.bars-svg .bar { fill: var(--gold); opacity: 0; animation: barIn 0.5s var(--ease) forwards; }
@keyframes barIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }
.bars-svg .bar-label { font-size: 5.5px; fill: var(--gray-light); text-anchor: middle; }
.bars-caption { text-align: right; font-size: 11.5px; color: var(--gray-light); }

/* ================= RESULT ACTION BUTTONS ================= */
.result-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 20px; }
.result-action-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 10px 16px;
  border-radius: 100px;
  font-size: 13px; font-weight: 700;
  cursor: pointer;
  border: 1.5px solid var(--border-soft);
  background: var(--surface);
  color: var(--ink);
  transition: transform 0.2s var(--ease), background 0.2s ease;
}
.result-action-btn:hover { transform: translateY(-2px); }
.result-action-btn.wa { background: #25D366; color: #fff; border-color: #25D366; }
.result-action-btn.talk { background: var(--forest); color: var(--white); border-color: var(--forest-text); }

/* ================= DUE DATE LIST ================= */
.deadline-list { display: flex; flex-direction: column; gap: 10px; }
.deadline-item {
  display: flex; justify-content: space-between; align-items: center; gap: 14px;
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-left: 3px solid var(--gold);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
}
.deadline-item strong { color: var(--forest-text); font-size: 14.5px; }
[data-theme="dark"] .deadline-item strong { color: var(--gold-bright); }
.deadline-desc { font-size: 12.5px; color: var(--gray-light); }
.deadline-right { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; flex-shrink: 0; }
.deadline-date { font-weight: 700; font-size: 13.5px; color: var(--ink); }
.deadline-badge {
  font-size: 11px; font-weight: 700;
  background: rgba(201,164,92,0.15); color: var(--gold-deep);
  padding: 3px 10px; border-radius: 100px;
}
.deadline-badge.urgent { background: rgba(179,64,47,0.12); color: var(--danger); animation: urgentPulse 1.6s ease-in-out infinite; }
@keyframes urgentPulse { 50% { opacity: 0.55; } }

/* ================= PREMIUM POLISH PASS ================= */

/* Selection color */
::selection { background: rgba(201,164,92,0.35); color: var(--forest-dark); }
[data-theme="dark"] ::selection { color: var(--gold-bright); }

/* Custom scrollbar (WebKit) */
::-webkit-scrollbar { width: 11px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--forest-mid); border-radius: 100px; border: 2px solid var(--bg); }
::-webkit-scrollbar-thumb:hover { background: var(--forest); }

/* Focus visibility for keyboard users */
:focus-visible { outline: 2.5px solid var(--gold); outline-offset: 3px; border-radius: 4px; }

/* Skip link (visible only when focused) */
.skip-link {
  position: fixed; top: -60px; left: 16px;
  background: var(--forest); color: var(--white);
  padding: 12px 22px; border-radius: 0 0 10px 10px;
  font-weight: 700; font-size: 14px; z-index: 500;
  transition: top 0.25s var(--ease);
}
.skip-link:focus { top: 0; }

/* Glass header */
.site-header { backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px); background: color-mix(in srgb, var(--surface) 85%, transparent); }
@supports not (backdrop-filter: blur(1px)) { .site-header { background: var(--surface); } }

/* Hero pattern layer */
.hero-pattern { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; opacity: 0.9; }

/* Glass stat chips */
.glass-chips { gap: 14px !important; }
.glass-chips .stat {
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(232,208,152,0.22);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  border-radius: 14px;
  padding: 12px 20px;
  transition: transform 0.3s var(--ease), background 0.3s ease;
}
.glass-chips .stat:hover { transform: translateY(-3px); background: rgba(255,255,255,0.12); }

/* Custom SVG pillar icons */
.icon.icon-svg { background: transparent; width: 54px; height: 54px; }
.pillar-svg { width: 44px; height: 44px; color: var(--gold-deep); transition: color 0.3s ease, transform 0.35s var(--ease); }
.pillar-card:hover .pillar-svg { color: var(--forest-text); transform: scale(1.08); }
[data-theme="dark"] .pillar-svg { color: var(--gold); }
[data-theme="dark"] .pillar-card:hover .pillar-svg { color: var(--gold-bright); }

/* ================= LEGACY TIMELINE ================= */
.timeline { position: relative; max-width: 760px; margin: 0 auto; padding-left: 34px; }
.timeline::before {
  content: "";
  position: absolute; left: 9px; top: 8px; bottom: 8px;
  width: 2px;
  background: linear-gradient(180deg, var(--gold), var(--forest-mid));
  border-radius: 2px;
}
.timeline-item { position: relative; padding: 0 0 34px 24px; }
.timeline-item:last-child { padding-bottom: 0; }
.timeline-item::before {
  content: "";
  position: absolute; left: -34px; top: 5px;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: var(--surface);
  border: 3px solid var(--gold);
  box-shadow: 0 0 0 4px rgba(201,164,92,0.15);
}
.timeline-future::before { border-style: dashed; animation: urgentPulse 2s ease-in-out infinite; }
.timeline-year {
  font-family: 'Playfair Display', serif;
  font-size: 20px; font-weight: 700;
  color: var(--gold-deep);
  margin-bottom: 4px;
}
[data-theme="dark"] .timeline-year { color: var(--gold-bright); }
.timeline-body h3 { font-size: 18px; margin-bottom: 6px; }
.timeline-body p { font-size: 14.5px; max-width: 560px; }
.timeline-future .timeline-body h3::after {
  content: "COMING SOON";
  font-family: 'Inter', sans-serif;
  font-size: 10px; font-weight: 800; letter-spacing: 1px;
  color: var(--gold-deep);
  background: rgba(201,164,92,0.15);
  padding: 3px 10px; border-radius: 100px;
  margin-left: 10px; vertical-align: middle;
}

/* Category accent colors on service pages */
[data-cat="corporate"] .eyebrow { color: #5e7d52; background: rgba(94,125,82,0.13); }
[data-cat="digital"] .eyebrow { color: #3f7d6d; background: rgba(63,125,109,0.12); }
[data-cat="data"] .eyebrow { color: #a06b28; background: rgba(160,107,40,0.13); }

/* ================= DOCUMENT CHECKLISTS ================= */
.chk-card {
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  padding: 28px;
}
.chk-progress-wrap { margin-bottom: 20px; }
.chk-progress-label { display: flex; justify-content: flex-end; margin-bottom: 6px; }
.chk-progress-text { font-size: 12.5px; font-weight: 700; color: var(--gold-deep); }
.chk-progress-bar { height: 8px; background: var(--bg); border-radius: 100px; overflow: hidden; border: 1px solid var(--border-soft); }
.chk-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--gold), var(--gold-bright));
  border-radius: 100px;
  transition: width 0.5s var(--ease);
}
.chk-group { margin-bottom: 20px; }
.chk-group:last-child { margin-bottom: 0; }
.chk-group-title {
  font-family: 'Inter', sans-serif;
  font-size: 13px; font-weight: 800;
  text-transform: uppercase; letter-spacing: 0.8px;
  color: var(--gold-deep);
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 1px dashed var(--border-soft);
}
.chk-item {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 9px 10px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background 0.15s ease;
}
.chk-item:hover { background: var(--bg); }
.chk-item .chk-input { display: none; }
.chk-box {
  flex-shrink: 0;
  width: 22px; height: 22px;
  border: 2px solid var(--border-soft);
  border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 800;
  color: transparent;
  margin-top: 1px;
  transition: all 0.2s var(--ease);
}
.chk-input:checked + .chk-box {
  background: var(--success);
  border-color: var(--success);
  color: #fff;
  transform: scale(1.05);
}
.chk-text { font-size: 14.5px; color: var(--ink); line-height: 1.5; transition: opacity 0.2s ease; }
.chk-input:checked ~ .chk-text { opacity: 0.55; text-decoration: line-through; text-decoration-color: rgba(47,122,79,0.5); }
.chk-accordion .faq-a { max-height: 0; }
.chk-accordion.open .faq-a { max-height: 4000px; }

/* Print: show only the open checklist cleanly */
@media print {
  .site-header, .site-footer, .whatsapp-float, .ai-assist-toggle, .ai-panel, .ai-tools-fab,
  .to-top-btn, .scroll-progress, .deadline-ticker, .result-actions, .tool-back, .hero,
  .mobile-bar, .skip-link, .search-overlay, .tool-disclaimer, .related-tools-section { display: none !important; } /* R137: phone bar, skip link, disclaimer & related tools were printing on every page */
  .chk-card, .tool-calc-wrap { border: none; box-shadow: none; }
  body { background: #fff; }
  .section, .section-alt { padding: 0 !important; background: #fff !important; }
}

/* ================= AI DASHBOARD DEMO ================= */
.demo-banner {
  text-align: center;
  background: rgba(201,164,92,0.14);
  border: 1px dashed var(--gold);
  color: var(--gold-deep);
  font-weight: 700; font-size: 13px;
  padding: 10px 18px;
  border-radius: 100px;
  max-width: 520px;
  margin: 0 auto 30px;
}
.demo-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 26px; }
.demo-kpi {
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  padding: 20px 22px;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.demo-kpi:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.demo-kpi .k-label { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.7px; color: var(--gray-light); margin-bottom: 6px; }
.demo-kpi .k-val { font-family: 'Playfair Display', serif; font-size: 26px; font-weight: 700; color: var(--forest-text); }
[data-theme="dark"] .demo-kpi .k-val { color: var(--gold-bright); }
.demo-kpi .k-trend { font-size: 12px; font-weight: 600; margin-top: 4px; color: var(--gray-light); }
.demo-kpi .k-trend.up { color: var(--success); }
.demo-kpi .k-trend.down { color: var(--danger); }
.demo-kpi .k-trend.warn { color: var(--gold-deep); }

.demo-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.demo-panel {
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  padding: 24px;
}
.demo-panel h3 { font-size: 16.5px; margin-bottom: 14px; display: flex; align-items: center; gap: 8px; }
.demo-alert {
  font-size: 13.5px; font-weight: 600;
  padding: 11px 14px; border-radius: var(--radius-sm);
  margin-bottom: 8px;
  border-left: 3px solid;
}
.demo-alert.warn { background: rgba(201,164,92,0.1); border-color: var(--gold); color: var(--ink); }
.demo-alert.danger { background: rgba(179,64,47,0.08); border-color: var(--danger); color: var(--ink); }
.demo-alert.ok { background: rgba(47,122,79,0.08); border-color: var(--success); color: var(--ink); }

.demo-chat-panel { display: flex; flex-direction: column; }
.demo-live-dot { width: 9px; height: 9px; background: #4ade80; border-radius: 50%; display: inline-block; animation: pulseWa 2s infinite; }
.demo-chat-log {
  flex: 1; min-height: 180px; max-height: 260px;
  overflow-y: auto;
  display: flex; flex-direction: column; gap: 10px;
  padding: 4px 2px 12px;
}
.demo-msg {
  max-width: 88%;
  padding: 10px 14px;
  border-radius: 14px;
  font-size: 13.5px; line-height: 1.55;
  animation: pageIn 0.3s var(--ease);
}
.demo-msg.ai { background: var(--bg); color: var(--ink); border-bottom-left-radius: 4px; align-self: flex-start; }
.demo-msg.user { background: var(--forest); color: var(--white); border-bottom-right-radius: 4px; align-self: flex-end; }
.demo-msg.typing { color: var(--gray-light); font-style: italic; }
.demo-chips { display: flex; flex-wrap: wrap; gap: 7px; padding-top: 10px; border-top: 1px dashed var(--border-soft); }
.demo-chip {
  font-size: 12px; font-weight: 600;
  background: rgba(201,164,92,0.12);
  color: var(--gold-deep);
  border: 1px solid rgba(201,164,92,0.3);
  padding: 7px 12px; border-radius: 100px;
  cursor: pointer;
  transition: all 0.2s ease;
}
.demo-chip:hover { background: var(--gold); color: var(--forest-dark); transform: translateY(-1px); }
.demo-exports { display: flex; flex-wrap: wrap; gap: 8px; }

/* ================= COMING SOON SHOWCASE ================= */
.coming-soon-strip {
  background:
    radial-gradient(ellipse at 20% 0%, rgba(201,164,92,0.12), transparent 55%),
    linear-gradient(150deg, var(--forest-dark) 0%, var(--forest) 60%, var(--forest-mid) 100%);
  color: var(--white);
  position: relative;
  overflow: hidden;
}
.eyebrow-glow {
  color: var(--gold-bright);
  background: rgba(232,208,152,0.14);
  border: 1px solid rgba(232,208,152,0.35);
  animation: glowPulse 2.6s ease-in-out infinite;
}
@keyframes glowPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(232,208,152,0.35); }
  50% { box-shadow: 0 0 24px 2px rgba(232,208,152,0.25); }
}
.soon-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.soon-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(232,208,152,0.18);
  border-radius: var(--radius);
  padding: 24px 20px;
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  transition: transform 0.35s var(--ease), background 0.3s ease, border-color 0.3s ease;
  position: relative;
  overflow: hidden;
}
.soon-card::before {
  content: "SOON";
  position: absolute; top: 10px; right: -26px;
  transform: rotate(38deg);
  font-size: 9px; font-weight: 800; letter-spacing: 2px;
  color: var(--forest-dark);
  background: var(--gold);
  padding: 3px 30px;
  opacity: 0.9;
}
.soon-card:hover { transform: translateY(-6px); background: rgba(255,255,255,0.09); border-color: rgba(232,208,152,0.45); }
.soon-icon { font-size: 30px; margin-bottom: 12px; }
.soon-card h3 { color: var(--gold-bright); font-size: 16px; margin-bottom: 6px; font-family: 'Inter', sans-serif; font-weight: 700; }
.soon-card p { color: rgba(255,255,255,0.72); font-size: 13px; }

/* Login page demo banner */
.login-demo-banner {
  display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap;
  max-width: 640px; margin: 0 auto 26px;
  background: linear-gradient(120deg, rgba(201,164,92,0.14), rgba(34,57,44,0.08));
  border: 1px dashed var(--gold);
  border-radius: var(--radius);
  padding: 18px 22px;
}
.login-demo-banner strong { color: var(--forest-text); font-size: 15px; }
[data-theme="dark"] .login-demo-banner strong { color: var(--gold-bright); }
.login-demo-banner p { font-size: 13px; margin-top: 3px; }

@media (max-width: 980px) { .soon-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .soon-grid { grid-template-columns: 1fr; } }

/* ================= LIVE FEATURE SHOWCASE (interactive tabs) ================= */
.feature-strip {
  background:
    radial-gradient(ellipse at 20% 0%, rgba(201,164,92,0.12), transparent 55%),
    linear-gradient(150deg, var(--forest-dark) 0%, var(--forest) 60%, var(--forest-mid) 100%);
  color: var(--white);
  position: relative;
  overflow: hidden;
}
.feature-strip .blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.3;
  animation: floatY 11s ease-in-out infinite;
  pointer-events: none;
}
.feature-strip .blob-1 { width: 420px; height: 420px; right: -120px; top: -140px; background: radial-gradient(circle, rgba(232,208,152,0.45), transparent 70%); }
.feature-tabs { display: grid; grid-template-columns: 272px 1fr; gap: 24px; align-items: start; }
.feature-tab-list { display: flex; flex-direction: column; gap: 6px; position: relative; }
.feature-tab-indicator {
  position: absolute;
  top: 0; left: 0;
  background: linear-gradient(135deg, var(--gold-bright), var(--gold));
  border-radius: var(--radius-sm);
  box-shadow: 0 8px 22px rgba(201,164,92,0.35);
  transition: transform 0.35s var(--ease), width 0.35s var(--ease), height 0.35s var(--ease);
  z-index: 0;
  pointer-events: none;
}
.feature-tab {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 12px;
  text-align: left;
  background: transparent;
  border: 1px solid rgba(232,208,152,0.16);
  color: rgba(255,255,255,0.82);
  padding: 11px 16px;
  border-radius: var(--radius-sm);
  font-size: 14px; font-weight: 600;
  font-family: 'Inter', sans-serif;
  cursor: pointer;
  transition: background 0.25s var(--ease), border-color 0.25s var(--ease), transform 0.25s var(--ease);
}
.feature-tab:hover { background: rgba(255,255,255,0.07); border-color: rgba(232,208,152,0.32); transform: translateX(2px); }
.feature-tab .ft-icon {
  flex-shrink: 0;
  width: 32px; height: 32px;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px;
  background: rgba(255,255,255,0.08);
  border-radius: 9px;
  transition: background 0.25s var(--ease), transform 0.25s var(--ease);
}
.feature-tab .ft-text { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.feature-tab .ft-label { line-height: 1.25; }
.feature-tab .ft-sub { font-size: 11px; font-weight: 500; color: rgba(255,255,255,0.5); transition: color 0.25s var(--ease); }
.feature-tab.active { color: var(--forest-dark); border-color: transparent; }
.feature-tab.active .ft-icon { background: rgba(20,34,24,0.14); transform: scale(1.06); }
.feature-tab.active .ft-sub { color: rgba(20,34,24,0.65); }
.feature-tab-panel {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(232,208,152,0.18);
  border-radius: var(--radius);
  padding: 32px;
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  min-height: 260px;
  position: relative;
  overflow: hidden;
  animation: ftpFade 0.4s var(--ease);
}
.feature-tab-panel.ftp-swap { animation: ftpFade 0.4s var(--ease); }
.feature-tab-panel::before {
  content: "";
  position: absolute; inset: -1px;
  padding: 1px;
  border-radius: inherit;
  background: linear-gradient(120deg, rgba(232,208,152,0.5), transparent 40%, transparent 60%, rgba(232,208,152,0.35));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  opacity: 0.7;
}
@keyframes ftpFade { from { opacity: 0; transform: translateY(8px) scale(0.99); } to { opacity: 1; transform: translateY(0) scale(1); } }
.ftp-icon {
  font-size: 30px;
  margin-bottom: 12px;
  width: 56px; height: 56px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, rgba(232,208,152,0.18), rgba(232,208,152,0.05));
  border: 1px solid rgba(232,208,152,0.25);
  border-radius: 14px;
  animation: ftpIconPop 0.45s var(--ease);
}
@keyframes ftpIconPop { from { opacity: 0; transform: scale(0.7) rotate(-6deg); } to { opacity: 1; transform: scale(1) rotate(0); } }
.feature-tab-panel h3 { color: var(--gold-bright); font-size: 20px; margin-bottom: 10px; font-family: 'Playfair Display', serif; }
.feature-tab-panel p { color: rgba(255,255,255,0.78); font-size: 14.5px; margin-bottom: 14px; }
.feature-tab-panel ul { display: flex; flex-direction: column; gap: 8px; }
.feature-tab-panel li {
  color: rgba(255,255,255,0.85);
  font-size: 13.5px;
  padding-left: 22px;
  position: relative;
  animation: ftpLiIn 0.4s var(--ease) both;
  animation-delay: calc(var(--i, 0) * 0.08s);
}
@keyframes ftpLiIn { from { opacity: 0; transform: translateX(-8px); } to { opacity: 1; transform: translateX(0); } }
.feature-tab-panel li::before { content: "✓"; position: absolute; left: 0; color: var(--gold-bright); font-weight: 800; }
@media (max-width: 820px) {
  .feature-tabs { grid-template-columns: 1fr; }
  .feature-tab-list { flex-direction: row; flex-wrap: wrap; }
  .feature-tab-indicator { display: none; }
  .feature-tab { font-size: 12.5px; padding: 9px 12px; }
  .feature-tab .ft-sub { display: none; }
  .feature-tab.active { background: var(--gold); box-shadow: 0 6px 20px rgba(201,164,92,0.3); }
}

/* ================= COMPARISON TABLE (Traditional vs AI-Powered) ================= */
.compare-wrap { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--border-soft); box-shadow: var(--shadow); }
.compare-table { width: 100%; border-collapse: collapse; min-width: 640px; background: var(--surface); }
.compare-table th, .compare-table td { padding: 16px 20px; text-align: left; font-size: 14px; border-bottom: 1px solid var(--border-soft); }
.compare-table thead th { font-family: 'Playfair Display', serif; font-size: 15px; color: var(--ink); background: var(--cream); }
.compare-table thead th.hl { background: var(--forest); color: var(--gold-bright); }
.compare-table td:first-child { font-weight: 700; color: var(--ink); width: 18%; }
.compare-table td.x { color: var(--gray); }
.compare-table td.x::before { content: "✕ "; color: var(--danger); font-weight: 700; }
.compare-table td.ok { background: rgba(47,122,79,0.06); color: var(--ink); font-weight: 600; }
.compare-table td.ok::before { content: "✓ "; color: var(--success); font-weight: 800; }
.compare-table tbody tr:last-child th, .compare-table tbody tr:last-child td { border-bottom: none; }
.compare-table tbody tr { transition: background 0.2s ease; }
.compare-table tbody tr:hover td:first-child { background: rgba(201,164,92,0.08); }
.compare-table tbody tr:hover td.x { background: rgba(214,80,80,0.05); }
.compare-table tbody tr:hover td.ok { background: rgba(47,122,79,0.11); }

/* ================= INTERACTIVE SAVINGS CALCULATOR ================= */
.calc-widget { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-lg); }
.calc-inputs { background: var(--surface); padding: 36px 34px; display: flex; flex-direction: column; gap: 26px; }
.calc-field label { display: block; font-size: 13.5px; font-weight: 700; color: var(--ink); margin-bottom: 10px; }
.calc-field input[type="range"] { width: 100%; accent-color: var(--gold-deep); }
.calc-field-val { font-size: 13px; color: var(--gray); margin-top: 6px; }
.calc-output {
  background: linear-gradient(150deg, var(--forest-dark) 0%, var(--forest) 100%);
  color: var(--white);
  padding: 36px 34px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
}
.calc-out-num { font-family: 'Playfair Display', serif; font-size: 56px; font-weight: 800; color: var(--gold-bright); line-height: 1; display: inline-block; }
.calc-out-num.bump { animation: calcBump 0.3s var(--ease); }
@keyframes calcBump { 0% { transform: scale(1); } 35% { transform: scale(1.08); } 100% { transform: scale(1); } }
.calc-out-label { font-size: 13px; color: rgba(255,255,255,0.7); margin-top: 6px; text-transform: uppercase; letter-spacing: 1px; }
.calc-out-money { font-size: 16px; font-weight: 700; margin-top: 18px; color: var(--white); }
.calc-disclaimer { font-size: 11.5px; color: rgba(255,255,255,0.55); margin-top: 14px; max-width: 320px; }
@media (max-width: 780px) { .calc-widget { grid-template-columns: 1fr; } }

/* ================= ANIMATED PRODUCT TOUR ================= */
.tour-layout { display: grid; grid-template-columns: 300px 1fr; gap: 26px; align-items: start; }
.tour-steps { display: flex; flex-direction: column; gap: 6px; position: sticky; top: 110px; }
.tour-step {
  display: flex; align-items: center; gap: 12px;
  padding: 11px 14px;
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-sm);
  cursor: pointer;
  text-align: left;
  font-size: 13.5px; font-weight: 600;
  color: var(--gray);
  transition: all 0.25s var(--ease);
}
.tour-step:hover { border-color: rgba(201,164,92,0.4); }
.tour-step.active { background: var(--forest); color: var(--white); border-color: var(--forest-text); transform: translateX(4px); }
.tour-step-num {
  flex-shrink: 0; width: 24px; height: 24px;
  border-radius: 50%;
  background: rgba(201,164,92,0.18);
  color: var(--gold-deep);
  font-weight: 800; font-size: 12px;
  display: flex; align-items: center; justify-content: center;
}
.tour-step.active .tour-step-num { background: var(--gold); color: var(--forest-dark); }

.tour-stage-wrap {
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.tour-progress { height: 4px; background: var(--bg); }
.tour-progress-fill { height: 100%; width: 0; background: linear-gradient(90deg, var(--gold), var(--gold-bright)); }
.tour-progress-fill.running { animation: tourProg 6.5s linear forwards; }
@keyframes tourProg { from { width: 0; } to { width: 100%; } }
.tour-stage {
  min-height: 340px;
  display: flex; align-items: center; justify-content: center;
  padding: 40px 30px;
  background:
    radial-gradient(ellipse at 80% 10%, rgba(201,164,92,0.08), transparent 50%),
    var(--surface);
}
.tour-caption { padding: 18px 26px; border-top: 1px solid var(--border-soft); font-size: 14.5px; color: var(--gray); }
.tour-caption strong { color: var(--forest-text); }
[data-theme="dark"] .tour-caption strong { color: var(--gold-bright); }
.tour-controls { display: flex; gap: 10px; justify-content: center; padding: 0 20px 20px; }

/* --- Realistic app frame (makes scenes look like actual software) --- */
.app-frame {
  width: 640px; max-width: 100%;
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 24px 70px rgba(20,34,24,0.25);
  animation: tourIn 0.5s var(--ease);
  text-align: left;
}
.app-topbar {
  display: flex; align-items: center; gap: 7px;
  background: var(--forest-dark);
  padding: 10px 14px;
}
.app-dot { width: 11px; height: 11px; border-radius: 50%; }
.app-dot.r { background: #e5605a; } .app-dot.y { background: #e0b23e; } .app-dot.g { background: #57b269; }
.app-title { flex: 1; text-align: center; font-size: 11.5px; color: rgba(255,255,255,0.55); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.app-user {
  width: 26px; height: 26px; border-radius: 50%;
  background: var(--gold); color: var(--forest-dark);
  font-size: 11px; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
}
.app-body { display: flex; min-height: 300px; }
.app-side {
  width: 148px; flex-shrink: 0;
  background: var(--forest);
  padding: 12px 8px;
  display: flex; flex-direction: column; gap: 2px;
}
.app-nav {
  display: flex; align-items: center; gap: 9px;
  padding: 8px 10px;
  border-radius: 8px;
  font-size: 12px; font-weight: 600;
  color: rgba(255,255,255,0.6);
}
.app-nav em { font-style: normal; }
.app-nav.active { background: rgba(232,208,152,0.16); color: var(--gold-bright); }
.app-main { flex: 1; padding: 18px 20px; overflow: hidden; }
.app-h {
  font-size: 13px; font-weight: 800; color: var(--forest-text);
  padding-bottom: 10px; margin-bottom: 14px;
  border-bottom: 1px solid var(--border-soft);
}
[data-theme="dark"] .app-h { color: var(--gold-bright); }

/* In-frame variants of scene elements */
.app-main .tour-journal { width: 100%; }
.app-main .tour-file { text-align: left; display: flex; align-items: center; gap: 8px; }
.tf-tag { font-style: normal; margin-left: auto; font-size: 10.5px; font-weight: 700; color: var(--gold-deep); background: rgba(201,164,92,0.14); padding: 3px 9px; border-radius: 100px; white-space: nowrap; }
.tour-kpirow { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.tour-kpirow .tour-kpi { margin: 0; padding: 9px 14px; }
.tour-kpirow .tour-kpi strong { font-size: 17px; }
.tour-kpi i { display: block; font-style: normal; font-size: 10px; font-weight: 700; margin-top: 1px; }
.tour-kpi i.up { color: var(--success); } .tour-kpi i.dn { color: var(--danger); }
.tour-badgerow { display: flex; flex-wrap: wrap; gap: 7px; margin: 10px 0; opacity: 0; animation: tourIn 0.45s var(--ease) forwards; }
.tb { font-size: 11px; font-weight: 700; padding: 4px 11px; border-radius: 100px; background: rgba(201,164,92,0.14); color: var(--gold-deep); }
.tb.ok { background: rgba(47,122,79,0.12); color: var(--success); }
.tb.warn { background: rgba(179,64,47,0.1); color: var(--danger); }

/* KPI ratio bars */
.tour-ratio {
  display: grid; grid-template-columns: 110px 1fr 52px;
  align-items: center; gap: 10px;
  margin-bottom: 9px;
  font-size: 12.5px; font-weight: 600; color: var(--gray);
  opacity: 0; animation: tourIn 0.4s var(--ease) forwards;
}
.tour-ratio strong { color: var(--forest-text); text-align: right; }
[data-theme="dark"] .tour-ratio strong { color: var(--gold-bright); }
.tour-ratio.warn strong { color: var(--danger); }
.tour-ratio-bar { height: 8px; background: var(--bg); border-radius: 100px; overflow: hidden; }
.tour-ratio-bar i {
  display: block; height: 100%; width: 0;
  background: linear-gradient(90deg, var(--gold), var(--gold-bright));
  border-radius: 100px;
  animation: ratioFill 0.9s var(--ease) forwards;
}
@keyframes ratioFill { to { width: var(--w); } }

/* MIS report list */
.tour-replist { margin-bottom: 12px; }
.tour-repitem {
  font-size: 13px; font-weight: 600; color: var(--success);
  padding: 7px 12px; background: rgba(47,122,79,0.07);
  border-radius: 7px; margin-bottom: 6px;
  opacity: 0; animation: tourIn 0.4s var(--ease) forwards;
}

@media (max-width: 720px) {
  .app-side { width: 46px; padding: 12px 5px; }
  .app-nav { justify-content: center; padding: 8px 4px; }
  .app-nav em { display: none; }
  .app-main { padding: 14px; }
  .tour-ratio { grid-template-columns: 84px 1fr 44px; }
}

/* --- Scene building blocks --- */
@keyframes tourIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: translateY(0); } }
@keyframes tourPop { 0% { opacity: 0; transform: scale(0.6); } 70% { transform: scale(1.08); } 100% { opacity: 1; transform: scale(1); } }

.tour-phone {
  width: 270px; background: var(--bg);
  border: 1.5px solid var(--border-soft);
  border-radius: 20px; padding: 22px;
  animation: tourIn 0.5s var(--ease);
}
.tour-phone-head { font-weight: 800; color: var(--forest-text); margin-bottom: 14px; }
[data-theme="dark"] .tour-phone-head { color: var(--gold-bright); }
.tour-otp-label { font-size: 12px; color: var(--gray-light); margin-bottom: 10px; }
.tour-otp-row { display: flex; gap: 8px; margin-bottom: 16px; }
.tour-otp {
  width: 40px; height: 46px;
  border: 1.5px solid var(--border-soft); border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 18px; color: transparent;
  animation: otpFill 0.3s var(--ease) forwards;
}
@keyframes otpFill { to { color: var(--forest-text); background: rgba(201,164,92,0.12); border-color: var(--gold); } }
[data-theme="dark"] .tour-otp { animation-name: otpFillDark; }
@keyframes otpFillDark { to { color: var(--gold-bright); background: rgba(201,164,92,0.12); border-color: var(--gold); } }
.tour-welcome { font-size: 13.5px; font-weight: 700; color: var(--success); opacity: 0; animation: tourIn 0.5s var(--ease) forwards; }

.tour-drop { width: 300px; text-align: center; }
.tour-file {
  background: var(--bg); border: 1.5px dashed var(--gold);
  border-radius: 10px; padding: 12px; margin-bottom: 10px;
  font-size: 13.5px; font-weight: 700; color: var(--ink);
  opacity: 0; animation: fileDrop 0.6s var(--ease) forwards;
}
@keyframes fileDrop { from { opacity: 0; transform: translateY(-30px); } to { opacity: 1; transform: translateY(0); } }
.tour-file-dl { animation-name: fileDl; }
@keyframes fileDl { from { opacity: 0; transform: translateY(-16px); } 60% { opacity: 1; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }
.tour-upbar { height: 7px; background: var(--bg); border-radius: 100px; overflow: hidden; margin: 14px 0; }
.tour-upfill { height: 100%; width: 0; background: linear-gradient(90deg, var(--gold), var(--success)); animation: upFill 1.6s 0.6s var(--ease) forwards; }
@keyframes upFill { to { width: 100%; } }

.tour-split { display: flex; gap: 24px; align-items: center; flex-wrap: wrap; justify-content: center; }
.tour-doc {
  position: relative; overflow: hidden;
  width: 170px; background: #fff; color: #333;
  border: 1px solid #ddd; border-radius: 8px;
  padding: 16px; font-weight: 800; font-size: 13px;
  animation: tourIn 0.5s var(--ease);
}
.tour-doc small { font-weight: 500; font-size: 11px; color: #666; line-height: 1.7; }
.tour-scanbeam {
  position: absolute; left: 0; right: 0; height: 26px; top: -30px;
  background: linear-gradient(180deg, transparent, rgba(201,164,92,0.4), transparent);
  animation: scanBeam 1.8s ease-in-out infinite;
}
@keyframes scanBeam { 0% { top: -30px; } 50% { top: 100%; } 100% { top: -30px; } }
.tour-fields { display: flex; flex-direction: column; gap: 8px; }
.tour-field {
  background: var(--bg); border-left: 3px solid var(--success);
  border-radius: 6px; padding: 8px 14px;
  font-size: 13px; color: var(--gray);
  opacity: 0; animation: tourIn 0.45s var(--ease) forwards;
}
.tour-field strong { color: var(--forest-text); }
[data-theme="dark"] .tour-field strong { color: var(--gold-bright); }

.tour-journal { width: 340px; max-width: 100%; position: relative; }
.tour-jline {
  display: flex; justify-content: space-between; gap: 12px;
  font-family: monospace; font-size: 13.5px; color: var(--ink);
  padding: 9px 12px; background: var(--bg); border-radius: 6px; margin-bottom: 7px;
  opacity: 0; animation: tourIn 0.45s var(--ease) forwards;
}
.tour-jline span { font-weight: 800; }
.tour-stamp {
  position: absolute; right: -8px; top: 30%;
  transform: rotate(-14deg);
  border: 3px solid var(--success); color: var(--success);
  font-weight: 900; font-size: 19px; letter-spacing: 2px;
  padding: 6px 16px; border-radius: 8px;
  opacity: 0; animation: tourPop 0.5s var(--ease) forwards;
}
.tour-mismatch {
  background: rgba(179,64,47,0.1); border-left: 3px solid var(--danger);
  color: var(--danger); font-size: 13px; font-weight: 700;
  padding: 9px 12px; border-radius: 6px;
  opacity: 0; animation: tourIn 0.45s var(--ease) forwards;
}

.tour-kpis { width: 340px; max-width: 100%; }
.tour-kpi {
  display: inline-block; margin: 0 8px 12px 0;
  background: var(--bg); border-radius: 10px; padding: 10px 18px;
  opacity: 0; animation: tourPop 0.5s var(--ease) forwards;
}
.tour-kpi small { display: block; font-size: 10.5px; text-transform: uppercase; color: var(--gray-light); font-weight: 700; }
.tour-kpi strong { font-family: 'Playfair Display', serif; font-size: 20px; color: var(--forest-text); }
[data-theme="dark"] .tour-kpi strong { color: var(--gold-bright); }
.tour-minibars { display: flex; align-items: flex-end; gap: 7px; height: 90px; margin-top: 8px; }
.tour-minibars i {
  flex: 1; background: linear-gradient(180deg, var(--gold-bright), var(--gold));
  border-radius: 4px 4px 0 0; height: var(--h);
  transform: scaleY(0); transform-origin: bottom;
  animation: barGrow 0.5s var(--ease) forwards;
}
@keyframes barGrow { to { transform: scaleY(1); } }

.tour-chat { width: 340px; max-width: 100%; display: flex; flex-direction: column; gap: 10px; }
.tour-bubble {
  padding: 11px 15px; border-radius: 14px; font-size: 13.5px; line-height: 1.55;
  opacity: 0; animation: tourIn 0.5s var(--ease) forwards;
  max-width: 90%;
}
.tour-bubble.user { background: var(--forest); color: var(--white); align-self: flex-end; border-bottom-right-radius: 4px; }
.tour-bubble.ai { background: var(--bg); color: var(--ink); align-self: flex-start; border-bottom-left-radius: 4px; }

.tour-phone-notif { background: var(--forest-dark); border-color: var(--forest-mid); }
.tour-notif {
  display: flex; gap: 10px; align-items: flex-start;
  background: rgba(255,255,255,0.95); color: #222;
  border-radius: 12px; padding: 11px 13px; margin-bottom: 10px;
  font-size: 12.5px; line-height: 1.5;
  opacity: 0; animation: notifSlide 0.55s var(--ease) forwards;
}
@keyframes notifSlide { from { opacity: 0; transform: translateX(50px); } to { opacity: 1; transform: translateX(0); } }

.tour-gauge-wrap { position: relative; text-align: center; }
.tour-gauge { width: 180px; height: 180px; }
.tour-gauge-fill { stroke-dasharray: 314; stroke-dashoffset: 314; animation: gaugeFill 1.8s 0.3s var(--ease) forwards; }
@keyframes gaugeFill { to { stroke-dashoffset: 57; } } /* 82% of 314 */
.tour-gauge-num {
  position: absolute; top: 74px; left: 0; right: 0;
  font-family: 'Playfair Display', serif; font-size: 38px; font-weight: 800; color: var(--forest-text);
  opacity: 0; animation: tourPop 0.6s 1.6s var(--ease) forwards;
}
[data-theme="dark"] .tour-gauge-num { color: var(--gold-bright); }
.tour-gauge-num small { font-size: 16px; color: var(--gray-light); }

@media (max-width: 900px) {
  .tour-layout { grid-template-columns: 1fr; }
  .tour-steps { position: static; flex-direction: row; overflow-x: auto; padding-bottom: 8px; }
  .tour-step { flex-shrink: 0; }
  .tour-step-label { display: none; }
  .tour-stage { min-height: 300px; padding: 28px 16px; }
}

/* ================= PAYSLIP ================= */
.payslip { background: #fff; color: #1b241d; border: 1px solid #d9d9d0; border-radius: 8px; padding: 26px; }
.payslip-head { text-align: center; border-bottom: 2px solid #22392c; padding-bottom: 12px; margin-bottom: 14px; }
.payslip-co { font-family: 'Playfair Display', serif; font-size: 21px; font-weight: 700; color: #22392c; }
.payslip-title { font-size: 12px; font-weight: 700; letter-spacing: 1.5px; color: #a9812f; margin-top: 4px; }
.payslip-meta { display: flex; justify-content: space-between; font-size: 13px; margin-bottom: 14px; flex-wrap: wrap; gap: 6px; }
.payslip-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.payslip-table th, .payslip-table td { border: 1px solid #e3e3da; padding: 9px 12px; text-align: left; }
.payslip-table th { background: #f4f2ea; font-size: 12px; text-transform: uppercase; letter-spacing: 0.5px; }
.payslip-total td { font-weight: 800; background: #faf9f3; }
.payslip-net { text-align: right; font-size: 16px; margin-top: 14px; color: #22392c; }
.payslip-net strong { font-family: 'Playfair Display', serif; font-size: 20px; }
.payslip-foot { font-size: 10.5px; color: #9a9a8e; text-align: center; margin-top: 16px; border-top: 1px dashed #e3e3da; padding-top: 10px; }
@media print { .payslip { border: none; } }

@media (max-width: 860px) {
  .demo-kpis { grid-template-columns: 1fr 1fr; }
  .demo-grid { grid-template-columns: 1fr; }
}
@media (max-width: 480px) { .demo-kpis { grid-template-columns: 1fr; } }

/* ================= GUIDES & ARTICLES ================= */
.guides-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.guide-card {
  display: flex; flex-direction: column; gap: 10px;
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  padding: 26px;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s ease;
}
.guide-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: rgba(201,164,92,0.35); }
.guide-icon { font-size: 30px; }
.guide-card h3 { font-size: 17px; line-height: 1.35; }
.guide-card p { font-size: 13.5px; flex: 1; }
.article-body { max-width: 760px; }
.article-body h3 { font-size: 20px; margin: 28px 0 10px; scroll-margin-top: 100px; }
.article-body p { font-size: 15.5px; margin-bottom: 14px; line-height: 1.75; }
.article-body a { color: var(--gold-deep); font-weight: 700; }
.article-body a:hover { text-decoration: underline; }
.article-read-time { font-size: 13px; font-weight: 600; color: var(--gray-light); margin-top: 10px; }

/* ---------- Related Tools / More Guides cross-links ---------- */
.related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.related-card {
  display: flex; align-items: center; gap: 12px;
  background: var(--surface); border: 1px solid var(--border-soft); border-radius: var(--radius);
  padding: 16px 18px; text-decoration: none; color: inherit; box-shadow: var(--shadow);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
}
.related-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: rgba(201,164,92,0.35); }
.related-card-icon { font-size: 22px; flex-shrink: 0; }
.related-card-title { font-size: 14px; font-weight: 700; color: var(--ink); line-height: 1.35; }
@media (max-width: 900px) { .related-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .related-grid { grid-template-columns: 1fr; } }

/* ---------- Recently Viewed strip (Tools/Guides index pages) ---------- */
.recent-strip {
  background: var(--surface); border: 1px solid var(--border-soft); border-radius: var(--radius);
  padding: 16px 20px; margin-bottom: 26px; box-shadow: var(--shadow);
}
.recent-strip-label { display: block; font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: var(--gray-light); margin-bottom: 10px; }
.recent-strip-row { display: flex; flex-wrap: wrap; gap: 8px; }
.recent-chip {
  display: inline-flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 600;
  background: var(--surface-2); border: 1px solid var(--border-soft); border-radius: 100px;
  padding: 8px 14px; color: var(--ink); text-decoration: none; transition: all 0.2s ease;
}
.recent-chip:hover { border-color: var(--gold); background: rgba(201,164,92,0.1); transform: translateY(-2px); }
@media (max-width: 900px) { .guides-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .guides-grid { grid-template-columns: 1fr; } }

/* Sticky table-of-contents for long guide articles (see initArticleTOC) */
.article-layout { display: grid; grid-template-columns: 220px 1fr; gap: 40px; align-items: start; }
.article-toc {
  position: sticky; top: 96px;
  background: var(--surface); border: 1px solid var(--border-soft); border-radius: var(--radius-sm);
  padding: 18px 20px; max-height: calc(100vh - 130px); overflow-y: auto;
}
.article-toc.is-empty { display: none; }
.article-toc h4 { margin: 0 0 12px; font-size: 11.5px; text-transform: uppercase; letter-spacing: 0.07em; color: var(--gray-light); }
.article-toc ol { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 3px; counter-reset: toc; }
.article-toc a {
  display: block; font-size: 13px; line-height: 1.4; color: var(--gray); text-decoration: none;
  padding: 6px 0 6px 13px; border-left: 2px solid var(--border-soft);
  transition: color 0.2s ease, border-color 0.2s ease;
}
.article-toc a:hover { color: var(--forest-text); }
.article-toc a.active { color: var(--forest-text); border-left-color: var(--gold-bright); font-weight: 700; }
@media (max-width: 900px) {
  .article-layout { display: block; }
  .article-toc { position: static; max-height: none; margin-bottom: 26px; }
}

/* ================= FOUNDER & TEAM ================= */
.founder-quote {
  display: flex; gap: 22px; align-items: flex-start;
  background: var(--surface);
  border-left: 4px solid var(--gold);
  border-radius: var(--radius);
  padding: 30px;
  margin: 40px 0;
  box-shadow: var(--shadow);
}
.founder-avatar, .team-avatar {
  flex-shrink: 0;
  width: 64px; height: 64px; border-radius: 50%;
  background: linear-gradient(135deg, var(--forest), var(--forest-mid));
  color: var(--gold-bright);
  font-family: 'Playfair Display', serif;
  font-size: 22px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.founder-quote blockquote { font-size: 16.5px; font-style: italic; color: var(--ink); line-height: 1.8; }
.founder-quote cite { display: block; margin-top: 12px; font-style: normal; font-weight: 700; color: var(--gold-deep); font-size: 14px; }
.team-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-bottom: 14px; }
.team-card {
  text-align: center;
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  padding: 26px 18px;
}
.team-card .team-avatar { margin: 0 auto 14px; font-size: 24px; }
.team-card h3 { font-size: 16px; }
.team-card p { font-size: 13px; margin: 4px 0 10px; }
.team-tag { font-size: 11px; font-weight: 700; color: var(--gold-deep); background: rgba(201,164,92,0.13); padding: 4px 12px; border-radius: 100px; }
@media (max-width: 640px) { .team-grid { grid-template-columns: 1fr; } .founder-quote { flex-direction: column; } }

/* ================= QUICK ACTIONS ================= */
.quick-grid { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.quick-chip {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--surface);
  border: 1.5px solid var(--border-soft);
  border-radius: 100px;
  padding: 13px 22px;
  font-size: 14.5px; font-weight: 700;
  color: var(--ink);
  transition: all 0.25s var(--ease);
  cursor: pointer;
}
.quick-chip span { font-size: 18px; }
.quick-chip:hover { border-color: var(--gold); background: rgba(201,164,92,0.1); transform: translateY(-3px); box-shadow: var(--shadow); }

/* ================= GLOBAL SEARCH ================= */
.search-overlay {
  position: fixed; inset: 0;
  background: rgba(15,25,18,0.6);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  z-index: 400;
  display: none;
  padding: 12vh 20px 20px;
}
.search-overlay.open { display: flex; justify-content: center; align-items: flex-start; animation: pageIn 0.2s var(--ease); }
.search-box {
  width: 100%; max-width: 560px;
  background: var(--surface);
  border-radius: 18px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  position: relative;
}
#searchInput {
  width: 100%;
  padding: 20px 56px 20px 24px;
  border: none; outline: none;
  font-size: 17px; font-family: 'Inter', sans-serif;
  background: var(--surface); color: var(--ink);
  border-bottom: 1px solid var(--border-soft);
}
.search-close {
  position: absolute; top: 16px; right: 16px;
  background: var(--bg); border: none;
  width: 32px; height: 32px; border-radius: 50%;
  cursor: pointer; font-size: 14px; color: var(--gray);
}
.search-results { max-height: 55vh; overflow-y: auto; padding: 10px; }
.search-result {
  display: flex; flex-direction: column; align-items: flex-start; gap: 2px;
  width: 100%;
  padding: 13px 16px;
  background: none; border: none; border-radius: 10px;
  cursor: pointer; text-align: left;
  transition: background 0.15s ease;
}
.search-result:hover { background: var(--bg); }
.search-result strong { font-size: 15px; color: var(--forest-text); }
[data-theme="dark"] .search-result strong { color: var(--gold-bright); }
.search-result span { font-size: 12.5px; color: var(--gray-light); }
.search-empty { padding: 24px; text-align: center; font-size: 14px; color: var(--gray); }

/* ================= MOBILE BOTTOM BAR ================= */
.mobile-bar {
  display: none;
  position: fixed; bottom: 0; left: 0; right: 0;
  background: var(--surface);
  border-top: 1px solid var(--border-soft);
  box-shadow: 0 -6px 24px rgba(20,34,24,0.1);
  z-index: 210;
  padding: 6px 4px calc(6px + env(safe-area-inset-bottom));
}
.mobile-bar a, .mobile-bar button {
  flex: 1;
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  font-size: 10.5px; font-weight: 700;
  color: var(--gray);
  background: none; border: none; cursor: pointer;
  padding: 4px 0;
}
.mobile-bar span { font-size: 19px; }
@media (max-width: 860px) {
  .mobile-bar { display: flex; }
  body { padding-bottom: 64px; }
  .whatsapp-float { display: none; }           /* WhatsApp lives in the bar on mobile */
  .ai-assist-toggle { bottom: 78px; right: 16px; }
  .ai-panel { bottom: 140px; }
  #searchToggle { display: none; }             /* search lives in the bar on mobile */
}

/* ================= 3D CARD TILT ================= */
.pillar-card, .tool-index-card { transform-style: preserve-3d; will-change: transform; }
.pillar-card.tilting, .tool-index-card.tilting { transition: box-shadow 0.3s ease; }

@media (max-width: 640px) {
  .typed-line { font-size: 15px; }
  .typed-word { font-size: 18px; }
  .deadline-item { flex-direction: column; align-items: flex-start; }
  .deadline-right { flex-direction: row; align-items: center; }
  .chart-wrap { justify-content: center; }
}

/* ---------- Keyframes ---------- */
@keyframes floatY { 0%, 100% { transform: translateY(0) translateX(0); } 50% { transform: translateY(-24px) translateX(10px); } }
@keyframes pulseWa { 0%, 100% { box-shadow: 0 6px 24px rgba(0,0,0,0.28), 0 0 0 0 rgba(37,211,102,0.5); } 50% { box-shadow: 0 6px 24px rgba(0,0,0,0.28), 0 0 0 12px rgba(37,211,102,0); } }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .main-nav a.nav-link { padding: 9px 10px; font-size: 13.5px; }
  .mega-menu { min-width: 600px; }
}
@media (max-width: 980px) {
  .pillars-grid { grid-template-columns: repeat(2, 1fr); }
  .why-grid { grid-template-columns: 1fr; }
  .about-snippet { grid-template-columns: 1fr; gap: 30px; }
  .tools-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .problem-grid { grid-template-columns: 1fr; }
  .steps-3, .ai-features-grid, .whyus-grid-page, .testimonial-grid, .tools-index-grid { grid-template-columns: 1fr 1fr; }
  .news-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .main-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--surface); box-shadow: var(--shadow-lg); padding: 14px; border-radius: 0 0 var(--radius) var(--radius); max-height: 80vh; overflow-y: auto; }
  .main-nav.nav-open { display: block; }
  .main-nav > ul { flex-direction: column; align-items: stretch; gap: 2px; }
  .has-dropdown .dropdown, .has-dropdown .mega-menu { position: static; left: auto; opacity: 1; visibility: visible; transform: none; box-shadow: none; display: none; padding-left: 12px; min-width: 0; width: 100%; flex-direction: column; border: none; }
  .has-dropdown.open .dropdown, .has-dropdown.open .mega-menu { display: flex; }
  .mega-col { border-right: none; border-bottom: 1px solid var(--border-soft); padding-bottom: 10px; margin-bottom: 10px; }
  .nav-toggle { display: block; }
  .logo-text { font-size: 15px; }

  /* Belt-and-suspenders: an ID selector always beats any class-based rule,
     no matter how many classes stack up or what gets added later. This
     guarantees the mega-menu can never again get shifted off-screen by a
     desktop-only centering transform on mobile (this exact bug happened once
     already — a later "polish" rule re-applied translateX(-50%) and pushed
     the whole dropdown off the left edge of the screen on phones). */
  #megaMenuContainer {
    position: static !important;
    left: auto !important;
    right: auto !important;
    transform: none !important;
    min-width: 0 !important;
    width: 100% !important;
  }
}
@media (max-width: 640px) {
  /* --- Header: compress actions so everything fits on one row --- */
  .site-header .container { height: 72px; gap: 8px; padding: 0 14px; }
  .logo { gap: 8px; }
  .logo img.mark { width: 42px; height: 42px; }
  .logo-text { font-size: 16px; }
  .header-actions { gap: 6px; }
  .lang-toggle { padding: 0 10px; height: 36px; font-size: 12.5px; }
  .lang-toggle #langCurrentLabel { display: none; }   /* globe icon only on phones */
  .theme-toggle { width: 36px; height: 36px; font-size: 15px; }
  .btn-login { padding: 8px 13px; font-size: 12.5px; }
  .nav-toggle { font-size: 20px; }
  .lang-menu { position: fixed; left: 12px; right: 12px; top: 70px; min-width: 0; }

  /* --- Hero --- */
  .hero { padding: 56px 0 64px; }
  .hero.hero-compact { padding: 40px 0 48px; }
  .hero p.lead { font-size: 16px; }
  .hero-trust { gap: 20px 28px; margin-top: 34px; }
  .hero-trust .stat .num, .hero-trust .stat .num-static { font-size: 24px; }

  /* --- Buttons: full-width CTAs are easier to tap --- */
  .cta-row { flex-direction: column; align-items: stretch; }
  .cta-row .btn { width: 100%; }
  .cta-banner .cta-row { width: 100%; }

  /* --- Sections & content --- */
  .section { padding: 52px 0; }
  .section-head { margin-bottom: 36px; }
  .section-head p { font-size: 15.5px; }
  .container { padding: 0 16px; }
  table.included-table th, table.included-table td { padding: 12px 14px; font-size: 13.5px; }
  table.included-table td:first-child { white-space: normal; }
  .tool-calc-wrap { padding: 24px 18px; }
  .login-card { padding: 28px 20px; }
  .faq-q { font-size: 15px; }
  .footer-bottom { justify-content: center; text-align: center; }
  .whatsapp-float { width: 54px; height: 54px; font-size: 25px; bottom: 20px; right: 20px; }
}
@media (max-width: 560px) {
  .pillars-grid { grid-template-columns: 1fr; }
  .tools-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .cta-banner { padding: 38px 26px; }
  .steps-3, .ai-features-grid, .whyus-grid-page, .testimonial-grid, .tools-index-grid { grid-template-columns: 1fr; }
  .logo-text .est { display: none; }
}
@media (max-width: 420px) {
  .tools-grid { grid-template-columns: 1fr; }
  .news-grid { grid-template-columns: 1fr; }
  .hero-trust { gap: 16px 22px; }
  h1 { font-size: 30px; }
  h2 { font-size: 24px; }
}
@media (max-width: 640px) {
  /* Contact page info cards stack on phones (overrides inline 3-col style) */
  #page-contact .whyus-grid-page { grid-template-columns: 1fr !important; }
}

/* ============================================================
   REFINEMENT PASS — small things, felt not seen
   ============================================================ */

/* 1. Nav links: gold underline that draws itself in */
.main-nav a.nav-link { overflow: visible; }
.main-nav > ul > li > a.nav-link::after {
  content: "";
  position: absolute; left: 14px; right: 14px; bottom: 4px;
  height: 2px;
  background: var(--gold);
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease);
}
.main-nav > ul > li > a.nav-link:hover::after { transform: scaleX(1); }

/* 2. Cards: a hairline of gold appears along the top edge on hover */
.pillar-card, .tool-index-card, .guide-card, .demo-panel { position: relative; overflow: hidden; }
.pillar-card::after, .tool-index-card::after, .guide-card::after {
  content: "";
  position: absolute; top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--gold-bright));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s var(--ease);
}
.pillar-card:hover::after, .tool-index-card:hover::after, .guide-card:hover::after { transform: scaleX(1); }

/* 3. Buttons: tactile press */
.btn:active, .result-action-btn:active, .btn-login:active, .quick-chip:active { transform: translateY(0) scale(0.97); transition-duration: 0.08s; }

/* 4. Reveal animation: subtler travel — confidence, not theatre */
html.js [data-animate] { transform: translateY(6px); transition-duration: 0.2s; }

/* 5. Hero blobs: quieter */
.hero .blob { opacity: 0.26; }

/* 6. WhatsApp pulse: slower, calmer */
.whatsapp-float { animation-duration: 3.6s; }
.ai-assist-toggle { animation-duration: 4s; }

/* 7. Numbers align like a ledger (a CA firm should get this right) */
.tool-result .val, .demo-kpi .k-val, .hero-trust .stat .num,
.tour-kpi strong, .included-table td, .payslip-table td, .result-row .val {
  font-variant-numeric: tabular-nums;
}

/* 8. Table rows acknowledge the cursor */
table.included-table tbody tr { transition: background 0.15s ease; }
table.included-table tbody tr:hover { background: rgba(201,164,92,0.05); }

/* Staggered row reveal — rows fade/rise in one after another as the table
   scrolls into view, instead of the whole table appearing at once. */
table.included-table tbody tr, .compare-table tbody tr {
  opacity: 0; transform: translateY(10px);
  transition: opacity 0.45s var(--ease), transform 0.45s var(--ease), background 0.15s ease;
}
table.included-table.rows-in tbody tr, .compare-table.rows-in tbody tr { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  table.included-table tbody tr, .compare-table tbody tr { opacity: 1; transform: none; transition: none; }
}

/* 9. FAQ questions invite the click */
.faq-q { transition: color 0.2s ease, padding-left 0.25s var(--ease); border-radius: 8px; }
.faq-q:hover { padding-left: 12px; color: var(--gold-deep); }
[data-theme="dark"] .faq-q:hover { color: var(--gold); }

/* 10. Ticker: edges fade out instead of clipping */
.ticker-viewport {
  mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
}

/* 11. Dropdown menus: settle with a breath, not a jump */
.dropdown { transform: translateY(10px) scale(0.985); }
.has-dropdown:hover .dropdown { transform: translateY(6px) scale(1); }
.mega-menu { transform: translateX(-50%) translateY(10px) scale(0.985); }
.has-dropdown:hover .mega-menu { transform: translateX(-50%) translateY(6px) scale(1); }

/* 12. Inputs: focus glow instead of hard border swap */
.tool-form input:focus, .tool-form select:focus, #searchInput:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201,164,92,0.15);
}

/* 13. Result panels arrive, not appear */
.tool-result.show { animation: pageIn 0.4s var(--ease); }

/* 14. Footer links: gold dash instead of plain shift */
.footer-grid ul li a::before { content: "— "; opacity: 0; transition: opacity 0.2s ease; color: var(--gold); }
.footer-grid ul li a:hover::before { opacity: 1; }
.footer-grid ul li a:hover { padding-left: 0; }

/* 15. Headings: tighter optical rhythm on large displays */
@media (min-width: 981px) {
  .section-head { margin-bottom: 56px; }
  h2 { letter-spacing: -0.015em; }
}

/* Respect reduced motion preference */
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

/* ============================================================
   Round 74 — Conversion pack: Google reviews, AI-bookkeeping
   case study, and the book-a-consultation slot picker
   ============================================================ */

/* ---- Google reviews ---- */
.gr-summary { display: flex; align-items: center; justify-content: center; gap: 14px; flex-wrap: wrap; margin: -26px auto 34px; }
.gr-badge { font-weight: 800; font-size: 22px; letter-spacing: -0.5px; background: var(--surface); border: 1px solid var(--border-soft); border-radius: 100px; padding: 6px 16px; box-shadow: var(--shadow); }
.gr-badge .g-blue { color: #4285f4; } .gr-badge .g-red { color: #ea4335; }
.gr-badge .g-yellow { color: #fbbc05; } .gr-badge .g-green { color: #34a853; }
.gr-stars { color: var(--gold); font-size: 20px; letter-spacing: 2px; }
.gr-caption { color: var(--gray); font-size: 13.5px; }
.gr-src { color: var(--gray-light); font-weight: 500; }
.gr-actions { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; margin-top: 30px; }
.gr-setup-note { font-size: 12px; text-align: center; color: var(--gray-light); max-width: 720px; margin: 18px auto 0; }

/* ---- Case study ---- */
.case-card { background: var(--surface); border: 1px solid var(--border-soft); border-radius: var(--radius); box-shadow: var(--shadow); padding: 34px; max-width: 1020px; margin: 0 auto; }
.case-tag { display: inline-block; font-size: 12.5px; font-weight: 700; color: var(--gold-deep); background: rgba(201,164,92,0.14); border-radius: 100px; padding: 6px 14px; margin-bottom: 20px; }
.case-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 34px; align-items: start; }
.case-story h3 { font-size: 17px; margin: 18px 0 8px; }
.case-story h3:first-child { margin-top: 0; }
.case-story p { font-size: 14.5px; }
.case-steps { margin: 10px 0 0; padding-left: 20px; font-size: 14.5px; }
.case-steps li { margin-bottom: 10px; }
.case-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.case-stat { background: var(--surface-2); border: 1px solid var(--border-soft); border-radius: var(--radius-sm); padding: 16px 14px; text-align: center; }
.case-stat-num { font-family: 'Playfair Display', Georgia, serif; font-size: 26px; font-weight: 800; color: var(--forest-text); }
[data-theme="dark"] .case-stat-num { color: var(--gold-bright); }
.case-stat-label { font-size: 12px; color: var(--gray); margin-top: 4px; line-height: 1.45; }
.case-note { font-size: 12.5px; color: var(--gray-light); margin-top: 22px; }
.case-cta { text-align: center; margin-top: 18px; }
@media (max-width: 780px) {
  .case-grid { grid-template-columns: 1fr; }
  .case-card { padding: 24px 18px; }
}

/* ---- Book-a-consultation slot picker ---- */
.booking-wrap { background: var(--surface); border: 1px solid var(--border-soft); border-radius: var(--radius); box-shadow: var(--shadow); padding: 30px 28px; margin-bottom: 26px; }
.booking-head h2 { font-size: 24px; margin: 6px 0 8px; }
.booking-head p { font-size: 14px; color: var(--gray); margin-bottom: 18px; }
.booking-label { display: block; font-weight: 700; font-size: 13.5px; margin: 18px 0 10px; color: var(--forest-text); }
[data-theme="dark"] .booking-label { color: var(--gold-bright); }
.booking-label-hint { font-weight: 500; color: var(--gray-light); font-size: 12px; }
.booking-days, .booking-times { display: flex; flex-wrap: wrap; gap: 10px; }
.booking-chip { border: 1.5px solid var(--border-soft); background: var(--surface); color: inherit; border-radius: var(--radius-sm); padding: 8px 14px; cursor: pointer; font: inherit; font-size: 13.5px; display: flex; flex-direction: column; align-items: center; gap: 1px; min-width: 66px; transition: border-color 0.15s ease, background 0.15s ease, transform 0.15s ease; }
.booking-chip:hover { border-color: var(--gold); transform: translateY(-1px); }
.booking-chip.selected { border-color: var(--gold-deep); background: rgba(201,164,92,0.16); font-weight: 700; }
.booking-chip-day { font-size: 11px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--gray-light); }
.booking-chip-date { font-weight: 700; }
.booking-chip-time { flex-direction: row; min-width: 0; }
.booking-fields { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 10px; }
.booking-fields input, .booking-fields select { width: 100%; padding: 11px 12px; border: 1.5px solid var(--border-soft); border-radius: var(--radius-sm); background: var(--surface); color: inherit; font: inherit; font-size: 14px; }
.booking-fields input:focus, .booking-fields select:focus { outline: none; border-color: var(--gold-deep); }
.booking-submit { margin-top: 18px; }
.booking-submit:disabled { opacity: 0.55; cursor: not-allowed; }
.booking-error { color: var(--danger); font-size: 13.5px; margin-top: 10px; text-align: center; }
.booking-note { font-size: 12px; text-align: center; margin-top: 10px; color: var(--gray-light); }
.booking-success { text-align: center; padding: 26px 10px 10px; }
.booking-success-icon { font-size: 40px; margin-bottom: 8px; }
.booking-success h3 { font-size: 20px; margin-bottom: 6px; }
.booking-success p { font-size: 14px; color: var(--gray); }
.booking-or { display: flex; align-items: center; gap: 14px; margin: 22px 0; color: var(--gray-light); font-size: 12.5px; text-transform: uppercase; letter-spacing: 0.08em; }
.booking-or::before, .booking-or::after { content: ""; flex: 1; height: 1px; background: var(--border-soft); }
@media (max-width: 640px) {
  .booking-fields { grid-template-columns: 1fr; }
  .booking-wrap { padding: 22px 16px; }
}

/* ============================================================
   Round 85 — Instant Lookups + Free Document Tools + gold/silver
   ============================================================ */
.lookup-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 18px; max-width: 920px; margin: 0 auto; }
.lookup-card { background: var(--surface); border: 1.5px solid var(--border-soft); border-radius: 16px; padding: 24px; }
.lookup-card h3 { margin: 0 0 6px; font-size: 17px; color: var(--forest-text); }
.lookup-sub { font-size: 13px; color: var(--ink-muted, #6b7267); margin: 0 0 14px; }
.lookup-input-row { display: flex; gap: 8px; }
.lookup-input-row input { flex: 1; min-width: 0; padding: 10px 12px; border: 1.5px solid var(--border-soft); border-radius: 10px; font-size: 14.5px; background: var(--surface); color: var(--ink); }
.lookup-input-row .btn { white-space: nowrap; }
.lookup-result { margin-top: 12px; font-size: 14px; line-height: 1.55; min-height: 20px; }
.lookup-detail { font-size: 12.5px; color: var(--ink-muted, #6b7267); }
.lookup-err { color: var(--danger, #b3261e); font-size: 13px; }
[data-theme="dark"] .lookup-err { color: #ff8a80; }

.doc-tools-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; max-width: 1020px; margin: 0 auto; }
.doc-tool-card { display: block; background: var(--surface); border: 1.5px solid var(--border-soft); border-radius: 16px; padding: 26px 22px; text-decoration: none; color: inherit; transition: transform .16s ease, box-shadow .16s ease; }
.doc-tool-card:hover { transform: translateY(-3px); box-shadow: 0 8px 22px rgba(0,0,0,0.10); }
.doc-tool-card .icon { font-size: 32px; margin-bottom: 10px; }
.doc-tool-card h3 { margin: 0 0 8px; font-size: 17px; color: var(--forest-text); }
.doc-tool-card p { font-size: 13.5px; color: var(--ink-muted, #6b7267); margin: 0 0 14px; line-height: 1.55; }

.docreader-note { font-size: 12.5px; color: var(--ink-muted, #6b7267); margin-top: 12px; line-height: 1.5; }
.docreader-text-label { display: block; font-weight: 700; font-size: 13.5px; margin: 16px 0 6px; }
.docreader-text { width: 100%; font-family: ui-monospace, "Courier New", monospace; font-size: 12.5px; line-height: 1.5; padding: 12px; border: 1.5px solid var(--border-soft); border-radius: 10px; background: var(--surface-2); color: var(--ink); resize: vertical; }

@media (max-width: 640px) {
  .lookup-input-row { flex-direction: column; }
  .lookup-input-row .btn { width: 100%; }
}

/* ============================================================
   v127 — Homepage restructure: Client Portal band + tools teaser.
   The band sits on a PERMANENTLY-DARK forest gradient, so every color
   here is fixed light (theme-proof both ways — see the portal's Rule 25).
   ============================================================ */
.portal-band { background: linear-gradient(140deg, var(--forest-dark) 0%, var(--forest) 60%, var(--forest-mid) 100%); }
.portal-band .portal-band-inner { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 44px; align-items: center; }
.portal-band h2 { color: #f4efe6; font-size: 30px; margin: 14px 0 12px; }
.portal-band-lead { color: rgba(248,244,234,0.78); max-width: 560px; }
.portal-band-points { list-style: none; margin: 18px 0 24px; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.portal-band-points li { color: rgba(248,244,234,0.92); font-weight: 600; font-size: 14.5px; display: flex; gap: 10px; align-items: flex-start; }
.btn-outline-light { background: transparent; border-color: rgba(248,244,234,0.5); color: #f6ecd6; }
.btn-outline-light:hover { background: rgba(255,255,255,0.12); color: #ffffff; transform: translateY(-3px); }
.pbv-card {
  background: rgba(255,255,255,0.07); border: 1px solid rgba(243,201,106,0.25);
  border-radius: 18px; padding: 22px 24px; max-width: 330px; margin-left: auto;
  box-shadow: 0 20px 60px rgba(0,0,0,0.35);
}
.pbv-title { color: var(--gold-bright); font-weight: 800; margin-bottom: 12px; }
.pbv-row { display: flex; justify-content: space-between; gap: 14px; padding: 9px 0; border-bottom: 1px solid rgba(255,255,255,0.08); color: rgba(248,244,234,0.85); font-size: 14px; }
.pbv-row strong { color: #ffffff; }
.pbv-row.pbv-ok strong { color: #7ee2a8; }
.pbv-bar { height: 8px; border-radius: 99px; background: rgba(255,255,255,0.12); margin-top: 14px; overflow: hidden; }
.pbv-bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--gold), var(--gold-bright)); border-radius: 99px; }
.pbv-note { margin-top: 10px; font-size: 11px; color: rgba(248,244,234,0.45); text-align: right; }
@media (max-width: 860px) {
  .portal-band .portal-band-inner { grid-template-columns: 1fr; }
  .pbv-card { margin: 0 auto; }
  .portal-band h2 { font-size: 25px; }
}

/* ================= PAYSLIP GENERATOR v2 (R136) ================= */
.ps-form .ps-top { display: flex; gap: 18px; align-items: stretch; flex-wrap: wrap; margin-bottom: 22px; }
.ps-logo-box {
  flex: 0 0 200px; min-height: 108px; display: flex; align-items: center; justify-content: center; text-align: center;
  border: 1.5px dashed rgba(201,164,92,0.7); border-radius: var(--radius-sm); background: rgba(201,164,92,0.08);
  cursor: pointer; padding: 12px; color: var(--forest-text); font-weight: 700; font-size: 14px; margin: 0; overflow: hidden;
}
.ps-logo-box:hover { background: rgba(201,164,92,0.16); }
.ps-logo-box small { display: block; font-weight: 500; font-size: 11.5px; color: var(--gray); margin-top: 3px; }
.ps-logo-box .ps-logo-icon { display: block; font-size: 22px; margin-bottom: 4px; }
.ps-logo-box img { max-width: 100%; max-height: 96px; object-fit: contain; }
.ps-logo-box.has-logo { border-style: solid; background: #fff; }
.ps-form .ps-month { flex: 1 1 200px; }
.ps-form .ps-month label { margin-top: 0; }
.ps-form .ps-company input + input, .ps-form .ps-company .ps-grid-2 + input { margin-top: 10px; }
.ps-form .ps-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 10px; }
.ps-req { color: var(--danger, #c23c28); }
.ps-section-title { font-family: 'Playfair Display', serif; font-size: 19px; color: var(--forest-text); margin: 30px 0 12px; padding-bottom: 8px; border-bottom: 1px solid var(--border-soft); }
[data-theme="dark"] .ps-section-title { color: var(--gold-bright); }
.ps-form .ps-summary { display: grid; grid-template-columns: 170px 1fr; gap: 10px 14px; align-items: center; }
.ps-form .ps-summary label { margin: 0; font-weight: 600; font-size: 14px; color: var(--ink); }
.ps-form .ps-row { display: grid; grid-template-columns: 1fr 150px 34px; gap: 8px; align-items: center; margin-top: 8px; }
.ps-form .ps-row.ps-row-field { grid-template-columns: 170px 1fr 34px; }
.ps-form .ps-row input { padding: 10px 12px; font-size: 14.5px; }
.ps-form .ps-amt { text-align: right; font-variant-numeric: tabular-nums; }
.ps-del { width: 34px; height: 38px; border-radius: 8px; border: 1px solid var(--border-soft); background: transparent; color: var(--gray); font-size: 18px; cursor: pointer; line-height: 1; }
.ps-del:hover { color: var(--danger, #c23c28); border-color: var(--danger, #c23c28); }
.ps-add { display: inline-flex; align-items: center; gap: 6px; margin-top: 10px; background: none; border: none; color: var(--forest-text); font-weight: 700; font-size: 14px; cursor: pointer; padding: 6px 2px; }
[data-theme="dark"] .ps-add { color: var(--gold-bright); }
.ps-add:hover { text-decoration: underline; }
.ps-block { border: 1px solid var(--border-soft); border-radius: var(--radius-sm); padding: 14px 16px 12px; margin-top: 14px; background: var(--white); }
[data-theme="dark"] .ps-block { background: #0e1712; }
.ps-block-head { display: flex; justify-content: space-between; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.6px; color: var(--gray); padding-bottom: 6px; border-bottom: 1px solid var(--border-soft); }
.ps-total-row { display: flex; justify-content: space-between; align-items: center; margin-top: 12px; padding: 10px 12px; background: rgba(201,164,92,0.12); border-radius: 8px; font-weight: 700; }
.ps-total-row strong { font-variant-numeric: tabular-nums; font-size: 16px; color: var(--forest-text); }
[data-theme="dark"] .ps-total-row strong { color: var(--gold-bright); }
.ps-net { margin-top: 18px; padding: 16px 18px; border-radius: var(--radius-sm); border: 1px solid rgba(201,164,92,0.5); background: linear-gradient(120deg, rgba(232,208,152,0.25), rgba(201,164,92,0.12)); }
.ps-net-label { font-weight: 700; font-size: 15px; color: var(--ink); }
.ps-net-label small { display: block; font-weight: 500; color: var(--gray); font-size: 12.5px; margin-top: 2px; }
.ps-net-value { font-family: 'Playfair Display', serif; font-size: 30px; font-weight: 700; color: var(--forest-text); margin: 8px 0 4px; font-variant-numeric: tabular-nums; }
[data-theme="dark"] .ps-net-value { color: var(--gold-bright); }
.ps-net-words { font-size: 13.5px; color: var(--ink); } .ps-net-words em { font-style: normal; font-weight: 600; }
.ps-error { margin: 14px 0 0; padding: 10px 14px; border-radius: 8px; background: rgba(194,60,40,0.1); color: var(--danger, #c23c28); font-weight: 600; font-size: 14px; }
.ps-fineprint { font-size: 12.5px; color: var(--gray); margin-top: 12px; text-align: center; }
.ps-fineprint a { color: var(--gold-deep); font-weight: 600; }
@media (max-width: 640px) {
  .ps-form .ps-summary { grid-template-columns: 1fr; gap: 4px 0; }
  .ps-form .ps-summary label { margin-top: 8px; }
  .ps-form .ps-row { grid-template-columns: 1fr 120px 34px; }
  .ps-form .ps-row.ps-row-field { grid-template-columns: 1fr 1fr 34px; }
  .ps-logo-box { flex-basis: 100%; }
}
/* The generated slip — a document, so it stays light in both themes */
.payslip-v2 { padding: 28px 30px; }
.payslip-head-v2 { display: flex; align-items: center; gap: 16px; border-bottom: 2px solid #22392c; padding-bottom: 14px; margin-bottom: 14px; }
.payslip-logo { max-height: 60px; max-width: 140px; object-fit: contain; }
.payslip-co-block { flex: 1; }
.payslip-v2 .payslip-co { font-size: 20px; }
.payslip-addr { font-size: 12.5px; color: #55604f; margin-top: 2px; }
.payslip-title-block { text-align: right; }
.payslip-v2 .payslip-title { font-size: 14px; letter-spacing: 2px; margin-top: 0; }
.payslip-month { font-size: 12.5px; color: #55604f; }
.payslip-summary { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 24px; font-size: 13px; margin-bottom: 16px; }
.payslip-summary > div { display: flex; justify-content: space-between; gap: 10px; border-bottom: 1px dotted #e3e3da; padding: 4px 0; }
.payslip-summary .k { color: #55604f; } .payslip-summary .v { font-weight: 700; text-align: right; }
.payslip-table .ps-num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.payslip-net-v2 { display: flex; justify-content: space-between; align-items: center; margin-top: 14px; padding: 12px 14px; background: #f4f2ea; border-radius: 8px; }
.payslip-net-label { font-weight: 800; font-size: 15px; color: #22392c; }
.payslip-net-sub { font-size: 11.5px; color: #7a8574; }
.payslip-net-amt { font-family: 'Playfair Display', serif; font-size: 24px; font-weight: 700; color: #22392c; font-variant-numeric: tabular-nums; }
.payslip-words { font-size: 13px; margin-top: 10px; color: #1b241d; }
@media (max-width: 560px) {
  .payslip-v2 { padding: 18px 16px; }
  .payslip-head-v2 { flex-wrap: wrap; }
  .payslip-title-block { text-align: left; width: 100%; }
  .payslip-summary { grid-template-columns: 1fr; }
}
@media print {
  #psForm, .ps-fineprint { display: none !important; }
  .tool-result { background: #fff !important; border: none !important; padding: 0 !important; margin: 0 !important; }
  .payslip-v2 { padding: 0; }
}

/* R136 — phones narrower than ~430px (iPhone 12/13 mini, SE, many Androids): the
   header row overflowed by ~30px, pushing the ☰ menu button off-screen. */
@media (max-width: 430px) {
  .site-header .container { padding: 0 10px; gap: 6px; }
  .logo img.mark { width: 38px; height: 38px; }
  .logo-text { font-size: 14px; }
  .lang-toggle { padding: 0 8px; }
  .btn-login { padding: 7px 11px; font-size: 0; }
  .btn-login::before { content: "Login"; font-size: 12px; }
}
/* R136 — Earnings | Deductions as two columns: side by side on desktop and in the PDF, stacked on phones */
.payslip-cols { display: flex; gap: 16px; align-items: flex-start; }
.payslip-col { flex: 1 1 0; min-width: 0; }
.payslip-col .payslip-table { width: 100%; }
.payslip-col .payslip-table td:first-child { word-break: break-word; }
@media (max-width: 560px) {
  .payslip-cols { flex-direction: column; align-items: stretch; gap: 12px; }
  .payslip-col { width: 100%; }
  .payslip-v2 .payslip-table { font-size: 12.5px; }
  .payslip-v2 .payslip-table th, .payslip-v2 .payslip-table td { padding: 7px 9px; }
  .payslip-v2 tr.payslip-pad { display: none; }
}
/* PDF capture (html2canvas clone): fixed 800px desktop layout whatever the screen size */
.payslip-v2.payslip-pdf {
  position: absolute !important; left: 0 !important; top: 0 !important; width: 800px !important; max-width: none !important;
  box-sizing: border-box; padding: 28px 30px !important; border: none !important; border-radius: 0 !important; margin: 0 !important;
}
.payslip-pdf .payslip-cols { flex-direction: row !important; gap: 16px !important; }
.payslip-pdf .payslip-head-v2 { flex-wrap: nowrap !important; }
.payslip-pdf .payslip-title-block { text-align: right !important; width: auto !important; }
.payslip-pdf .payslip-summary { grid-template-columns: 1fr 1fr !important; }
.payslip-pdf tr.payslip-pad { display: table-row !important; }
.payslip-pdf .payslip-table { font-size: 13.5px !important; }
.payslip-pdf .payslip-table th, .payslip-pdf .payslip-table td { padding: 9px 12px !important; }

/* ================= OFFER / APPOINTMENT / INTERNSHIP LETTER (R137) ================= */
/* — the form (shares the payslip .ps-* pieces) — */
.ol-pickers { display: grid; grid-template-columns: 1fr 1.4fr; gap: 16px 22px; margin-bottom: 22px; align-items: start; }
.ol-pickers label:first-child { margin-top: 0; }
.ol-form .ol-seg { flex-direction: column; gap: 8px; align-items: flex-start; }
.ol-form .ol-seg label { font-weight: 500; font-size: 14px; line-height: 1.4; align-items: flex-start; }
.ol-form .ol-seg label strong { font-weight: 700; }
.ol-form input[type="radio"], .ol-form input[type="checkbox"] { width: auto; padding: 0; margin: 3px 0 0; flex: 0 0 auto; accent-color: var(--gold-deep); }
.ol-form .ps-summary textarea { min-height: 0; padding: 10px 12px; font-size: 14.5px; }
.ol-form .ps-summary input, .ol-form .ps-summary select { padding: 10px 12px; font-size: 14.5px; }
.ol-check { display: flex; align-items: center; gap: 8px; margin: 14px 0 0; font-weight: 600; font-size: 14px; color: var(--ink); cursor: pointer; }
.ol-check input { margin-top: 0; }
.ol-hide { display: none !important; }
.ps-section-title small { display: block; font-family: 'Inter', sans-serif; font-size: 12.5px; font-weight: 500; color: var(--gray); margin-top: 3px; letter-spacing: 0; }
.ol-add-row { display: flex; gap: 6px 22px; flex-wrap: wrap; }
.ol-hint { margin: 10px 0 0; padding: 9px 12px; border-radius: 8px; background: rgba(201,164,92,0.14); color: var(--ink); font-size: 13px; line-height: 1.5; }
.ol-clauses { counter-reset: clause; margin-top: 4px; }
.ol-clause { display: grid; grid-template-columns: 26px 1fr 34px; gap: 8px; align-items: start; margin-top: 8px; }
.ol-clause::before { counter-increment: clause; content: counter(clause) "."; font-weight: 700; color: var(--forest-text); padding-top: 10px; text-align: right; font-size: 14px; }
[data-theme="dark"] .ol-clause::before { color: var(--gold-bright); }
.ol-form .ol-clause-text { min-height: 0; padding: 9px 12px; font-size: 14px; line-height: 1.5; resize: vertical; overflow: hidden; }
.ps-form .ps-grid-2 input + input { margin-top: 0; } /* R137: the grid pair sat 10px lower on the right (payslip too) */
.ol-clause .ps-del { margin-top: 2px; }
@media (max-width: 640px) {
  .ol-pickers { grid-template-columns: 1fr; }
  .ol-clause { grid-template-columns: 20px 1fr 34px; gap: 6px; }
}

/* — the letter: a document, so it stays light in both themes — */
.ol-doc { color: #1b241d; }
.ol-page { background: #fff; border: 1px solid #d9d9d0; border-radius: 8px; padding: 40px 44px; font-size: 13.5px; line-height: 1.6; color: #1b241d; }
.ol-page + .ol-page { margin-top: 18px; }
.ol-page p { margin: 0 0 10px; }
.ol-head { display: flex; align-items: center; gap: 18px; border-bottom: 2px solid #22392c; padding-bottom: 12px; margin-bottom: 10px; }
.ol-logo { max-height: 64px; max-width: 150px; object-fit: contain; }
.ol-co-block { flex: 1; min-width: 0; }
.ol-co { font-family: 'Playfair Display', serif; font-size: 21px; font-weight: 700; color: #22392c; line-height: 1.25; }
.ol-co-sub { font-size: 12px; color: #55604f; margin-top: 2px; }
.ol-title { text-align: center; font-size: 12.5px; letter-spacing: 2.5px; font-weight: 800; color: #a9812f; margin: 6px 0 14px; }
.ol-meta { display: flex; justify-content: space-between; gap: 12px; font-size: 13px; margin-bottom: 14px; }
.ol-to { margin-bottom: 14px; line-height: 1.5; }
.ol-subject { font-weight: 700; margin: 14px 0; color: #22392c; }
.ol-details { width: 100%; border-collapse: collapse; margin: 10px 0 14px; font-size: 13px; }
.ol-details td { border: 1px solid #e3e3da; padding: 7px 10px; vertical-align: top; }
.ol-details td:first-child { width: 34%; background: #f4f2ea; font-weight: 600; color: #22392c; }
.ol-terms-head { margin: 4px 0 6px; }
.ol-terms { margin: 0 0 12px; }
.ol-term { display: flex; gap: 8px; margin-bottom: 7px; align-items: flex-start; }
.ol-term-n { flex: 0 0 22px; text-align: right; font-weight: 600; }
.ol-term-t { flex: 1 1 0; min-width: 0; }
.ol-sign { margin-top: 24px; line-height: 1.5; }
.ol-sign-space { height: 46px; }
.ol-sign-note { font-size: 12px; color: #55604f; }
.ol-accept { margin-top: 28px; border-top: 1px dashed #c9c9bd; padding-top: 14px; }
.ol-accept h4 { margin: 0 0 6px; font-size: 11.5px; letter-spacing: 2px; color: #a9812f; font-family: 'Inter', sans-serif; }
.ol-accept-lines { display: flex; gap: 28px; margin-top: 26px; flex-wrap: wrap; }
.ol-accept-lines span { flex: 1 1 120px; border-top: 1px solid #1b241d; padding-top: 4px; font-size: 12px; color: #55604f; }
.ol-annex h3 { font-family: 'Playfair Display', serif; font-size: 18px; color: #22392c; margin: 0 0 2px; }
.ol-annex-sub { color: #55604f; font-size: 12.5px; margin-bottom: 14px !important; }
.ol-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; margin-bottom: 12px; }
.ol-annex-table { margin: 0; }
.ol-annex-words { font-size: 13px; }
.ol-annex-note { font-size: 12px; color: #55604f; margin-top: 8px; }
.ol-sign-annex { margin-top: 30px; }
/* short one-page format: tighter rhythm, signature and acceptance side by side, so it fits one A4 sheet */
.ol-page.ol-short { font-size: 13px; line-height: 1.5; }
.ol-short .ol-details td { padding: 5px 9px; }
.ol-short .ol-details { margin: 8px 0 12px; }
.ol-short .ol-close { display: flex; gap: 28px; align-items: flex-start; margin-top: 18px; }
.ol-short .ol-close > * { flex: 1 1 0; min-width: 0; margin-top: 0; }
.ol-short .ol-sign-space { height: 40px; }
.ol-short .ol-accept { border-top: none; padding-top: 0; }
.ol-short .ol-accept-lines { margin-top: 22px; gap: 20px; }
@media (max-width: 560px) { .ol-short .ol-close { flex-direction: column; gap: 18px; } .ol-short .ol-accept { border-top: 1px dashed #c9c9bd; padding-top: 12px; } }
@media (max-width: 560px) {
  .ol-page { padding: 20px 16px; font-size: 13px; }
  .ol-head { flex-direction: column; align-items: flex-start; gap: 10px; }
  .ol-co { font-size: 19px; }
  .ol-co-sub { word-break: break-word; }
  .ol-meta { flex-direction: column; gap: 2px; }
  .ol-details td:first-child { width: 40%; }
  .ol-annex-table { font-size: 12px; }
  .ol-annex-table th, .ol-annex-table td { padding: 6px 7px; }
}
@media print {
  #olForm { display: none !important; }
  .ol-page { border: none; border-radius: 0; padding: 0; }
  .ol-page + .ol-page { page-break-before: always; margin-top: 0; }
  .ol-accept, .ol-sign, .ol-term, .ol-details, .ol-head, .ol-short .ol-close, .ol-table-wrap { page-break-inside: avoid; break-inside: avoid; }
}
/* PDF capture (html2canvas clone): fixed 800px desktop layout whatever the screen size */
.ol-page.ol-pdf {
  position: absolute !important; left: 0 !important; top: 0 !important; width: 800px !important; max-width: none !important;
  box-sizing: border-box; padding: 26px 30px !important; border: none !important; border-radius: 0 !important; margin: 0 !important; font-size: 13.5px !important;
}
.ol-page.ol-short.ol-pdf { font-size: 13px !important; }
.ol-pdf.ol-short .ol-close { flex-direction: row !important; }
.ol-pdf.ol-short .ol-accept { border-top: none !important; padding-top: 0 !important; }
.ol-pdf .ol-head { flex-direction: row !important; align-items: center !important; gap: 18px !important; }
.ol-pdf .ol-co { font-size: 21px !important; }
.ol-pdf .ol-meta { flex-direction: row !important; }
.ol-pdf .ol-details td:first-child { width: 34% !important; }
.ol-pdf .payslip-table { font-size: 13.5px !important; }
.ol-pdf .payslip-table th, .ol-pdf .payslip-table td { padding: 9px 12px !important; }

/* ============================================================================
   R138 — DEVICE LAYER: every screen size, phone first (03-09-2026)
   Order matters: this block sits last so it overrides the older breakpoints.
   Phones ≤640 · tablets 641–980 · laptops/desktops ≥981 · phone landscape ≤500 tall
   ============================================================================ */
/* --- 0. hygiene for touch screens and iOS --- */
html { -webkit-text-size-adjust: 100%; }
* { -webkit-tap-highlight-color: transparent; }
@media (display-mode: standalone) { .site-header { padding-top: env(safe-area-inset-top); } }
@media (hover: none) {
  /* no "stuck" hover lifts after a tap */
  .btn:hover, .quick-chip:hover, .tool-index-card:hover, .pillar-card:hover, .glass-chips .stat:hover, .btn-login:hover,
  .theme-toggle:hover, .related-card:hover, .testimonial-card:hover, .tools-filter-chip:hover, .why-item:hover .icon,
  .ai-assist-toggle:hover, .ai-tools-fab:hover, .whatsapp-float:hover { transform: none; }
}
/* long button labels wrap instead of running off the screen (the About-page CTA overflowed by 146px) */
@media (max-width: 640px) { .btn { white-space: normal; text-align: center; line-height: 1.35; max-width: 100%; } }

/* --- 1. tablets in landscape / small laptops (901–1120px): the desktop header did not fit — iPad landscape overflowed 76px --- */
@media (min-width: 901px) and (max-width: 1120px) {
  .site-header .container { gap: 10px; }
  .main-nav a.nav-link { padding: 8px 9px; font-size: 13.5px; }
  .lang-toggle #langCurrentLabel { display: none; }
  .lang-toggle { padding: 0 10px; }
  .btn-login { padding: 9px 14px; font-size: 13px; }
  .logo-text .est { display: none; }
  .header-actions { gap: 6px; }
}

/* --- 2. touch-size targets (≥44px) and readable minimums on phones and touch tablets (iPad landscape included) --- */
@media (max-width: 900px) {
  .nav-toggle { display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; margin-right: -6px; }
}
@media (max-width: 860px), (hover: none) and (pointer: coarse) {
  .footer-bottom a { display: inline-block; padding: 8px 2px; }
  .hero .eyebrow { font-size: 12px; }
  .tool-index-card .badge-live, .tool-index-card .badge-soon { font-size: 12px; }
  .footer-grid ul li { margin-bottom: 2px; }
  .footer-grid ul li a { display: inline-block; padding: 9px 0; }
  .breadcrumb a { display: inline-block; padding: 8px 2px; }
  .tool-back { min-height: 44px; padding: 8px 4px; }
  .link-more { display: inline-flex; align-items: center; min-height: 44px; }
  .tools-filter-chip { min-height: 40px; padding: 8px 16px; font-size: 13px; }
  .tool-form .radio-row label { min-height: 44px; padding: 4px 0; }
  .tool-form input[type="radio"], .tool-form input[type="checkbox"] { width: 20px; height: 20px; accent-color: var(--gold-deep); }
  .ps-add { min-height: 40px; }
  .ps-fineprint a, .tool-disclaimer a { display: inline-block; padding: 9px 0; min-height: 40px; }
  .mobile-bar a, .mobile-bar button { font-size: 12px; padding: 6px 0; min-height: 48px; }
  .booking-chip-day { font-size: 12px; }
  .badge-live, .badge-soon, .tool-index-card .tool-ai-badge, .tax-history-badge, .pbv-note, .calc-disclaimer, .ai-chat-file-hint, .team-tag,
  .ol-form small, .ps-logo-box small, .ticker-item em { font-size: 12px; }
  /* iOS zooms the page when a focused field is under 16px — keep every field at 16px on touch devices */
  .tool-form input, .tool-form select, .tool-form textarea, .tools-search-input, .ps-form .ps-row input, .ol-form .ps-summary input,
  .ol-form .ps-summary select, .ol-form .ps-summary textarea, .ol-form .ol-clause-text, .ai-input, .ai-chat-input, #searchInput,
  input[type="text"], input[type="email"], input[type="tel"], input[type="number"], input[type="date"], input[type="month"], input[type="search"], select, textarea { font-size: 16px; }
}

/* --- 3. phones (≤640px): calmer hero, app-style tiles, compact sections --- */
@media (max-width: 640px) {
  .tool-form .radio-row { flex-direction: column; gap: 2px; align-items: stretch; }
  .tool-form .radio-row label { min-height: 44px; }
}
.ph-tiles, .ph-due, .ph-more, .ph-nav-foot, .ph-trust { display: none; }
@media (max-width: 640px) {
  .hero .blob, .feature-strip .blob, .hero-pattern { display: none; }
  .hero { animation: none; background: linear-gradient(160deg, var(--forest) 0%, var(--forest-dark) 100%); padding: 30px 0 26px; }
  .hero.hero-compact { padding: 26px 0 28px; }
  .hero h1 { font-size: 27px; line-height: 1.22; margin-bottom: 12px; letter-spacing: -0.01em; }
  .hero .eyebrow { font-size: 12px; padding: 6px 12px; }
  .hero p.lead { font-size: 15px; margin-bottom: 16px; line-height: 1.55; }
  .typed-line { display: none; }
  #page-home .hero p.lead, #page-home .hero .eyebrow { display: none; }
  .hero-inner .eyebrow { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; display: inline-block; }
  #page-home .hero .cta-row, #page-home .hero-trust { display: none; }
  .ph-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 16px; position: relative; z-index: 1; }
  .ph-tile {
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
    min-height: 86px; padding: 12px 6px; border-radius: 16px;
    background: rgba(255,255,255,0.08); border: 1px solid rgba(232,208,152,0.28);
    color: var(--white); font-size: 12.5px; font-weight: 700; text-align: center; line-height: 1.2;
    transition: transform 0.15s ease, background 0.2s ease;
  }
  .ph-tile .ic { font-size: 24px; line-height: 1; }
  .ph-tile.primary { background: linear-gradient(135deg, var(--gold-bright), var(--gold)); color: var(--forest-dark); border-color: transparent; }
  .ph-tile:active { transform: scale(0.96); }
  .ph-trust { display: block; margin-top: 14px; font-size: 12.5px; color: rgba(255,255,255,0.7); text-align: center; position: relative; z-index: 1; }
  .ph-trust strong { color: var(--gold-bright); font-weight: 700; }

  /* the marquee ticker becomes a swipeable "due next" strip */
  .deadline-ticker { display: none; }
  .ph-due { display: flex; gap: 8px; overflow-x: auto; padding: 12px 16px; background: var(--forest-dark); scroll-snap-type: x proximity; -webkit-overflow-scrolling: touch; scrollbar-width: none; border-top: 1px solid rgba(232,208,152,0.2); }
  .ph-due::-webkit-scrollbar { display: none; }
  .ph-due-tag { flex: 0 0 auto; align-self: center; color: var(--gold-bright); font-size: 12px; font-weight: 800; letter-spacing: 0.5px; padding-right: 4px; }
  .ph-due-item { flex: 0 0 auto; scroll-snap-align: start; background: rgba(255,255,255,0.07); border: 1px solid rgba(232,208,152,0.22); border-radius: 12px; padding: 8px 12px; color: rgba(255,255,255,0.9); font-size: 12.5px; line-height: 1.3; min-width: 132px; }
  .ph-due-item strong { display: block; color: var(--white); font-size: 13px; }
  .ph-due-item.soon strong { color: var(--gold-bright); }
  .ph-due-item em { font-style: normal; color: rgba(255,255,255,0.6); }

  /* "What do you need today?" — two rows that swipe sideways instead of a tall wrapped list */
  .quick-grid { display: grid; grid-auto-flow: column; grid-template-rows: repeat(2, auto); grid-auto-columns: max-content; gap: 10px; overflow-x: auto; justify-content: start; padding: 4px 16px 10px; margin: 0 -16px; scroll-snap-type: x proximity; scrollbar-width: none; }
  .quick-grid::-webkit-scrollbar { display: none; }
  .quick-chip { padding: 11px 16px; font-size: 13.5px; scroll-snap-align: start; }

  /* the four pillars swipe like cards */
  .pillars-grid { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 16px 14px; margin: 0 -16px; scrollbar-width: none; }
  .pillars-grid::-webkit-scrollbar { display: none; }
  .pillar-card { flex: 0 0 82%; scroll-snap-align: center; padding: 22px 20px; }
  .why-grid { grid-template-columns: 1fr 1fr; gap: 16px 12px; }
  .why-item { flex-direction: column; gap: 8px; }
  .why-item .icon { width: 40px; height: 40px; font-size: 18px; }
  .why-item h3 { font-size: 14.5px; }
  .why-item p { font-size: 13px; line-height: 1.45; }
  .section { padding: 44px 0; }
  .section-sm { padding: 34px 0; }
  .section-head { margin-bottom: 24px; }
  .section-head h2 { font-size: 23px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 22px 18px; }
  .footer-grid > div:first-child { grid-column: 1 / -1; }
  .footer-grid ul li a { font-size: 14px; }

  /* long live-feed sections start folded on phones */
  .ph-collapsed > .container > *:not(.section-head):not(.ph-more) { display: none; }
  .ph-collapsed .section-head { margin-bottom: 10px; }
  .ph-more { display: block; width: 100%; margin-top: 4px; padding: 13px; border-radius: 12px; border: 1.5px solid var(--border-soft); background: var(--surface); color: var(--forest-text); font-weight: 700; font-size: 14px; cursor: pointer; }
  [data-theme="dark"] .ph-more { color: var(--gold-bright); }

  /* floating widgets: one small AI bubble above the bar; the AI-Tools pill goes (Tools is in the bar) */
  .ai-tools-fab { display: none !important; }
  .ai-assist-toggle { width: 54px; height: 54px; padding: 0; justify-content: center; right: 16px; bottom: calc(76px + env(safe-area-inset-bottom)); border-radius: 50%; animation: aiEntrance 0.7s var(--ease) both; }
  .ai-assist-toggle .status-dot { position: absolute; top: 5px; right: 5px; }
  .ai-panel { left: 0; right: 0; bottom: 0; width: 100%; max-width: 100%; height: 82vh; height: 82dvh; max-height: none; border-radius: 20px 20px 0 0; transform: translateY(100%); }
  .ai-panel.open { transform: translateY(0); }
  .ai-panel-head { padding: 14px 18px; }
  body.ai-open { overflow: hidden; }

  /* tools index: compact list rows, chips that scroll sideways and stay put */
  .tools-index-grid { gap: 10px; }
  .tool-index-card { display: grid; grid-template-columns: 44px 1fr; grid-template-areas: "icon title" "icon desc" "x badge"; gap: 2px 12px; padding: 13px 14px; align-items: center; }
  .tool-index-card .icon { grid-area: icon; font-size: 24px; margin: 0; width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; background: rgba(201,164,92,0.12); border-radius: 12px; }
  .tool-index-card h3 { grid-area: title; font-size: 15px; margin: 0; line-height: 1.3; }
  .tool-index-card p { grid-area: desc; font-size: 12.5px; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin: 0; }
  .tool-index-card .badge-live, .tool-index-card .badge-soon { display: none; }
  .tool-index-card .tool-ai-badge { grid-area: badge; justify-self: start; margin: 4px 0 0; }
  .tools-filter-chips { flex-wrap: nowrap; overflow-x: auto; padding: 2px 16px 8px; margin: 0 -16px; scrollbar-width: none; }
  .tools-filter-chips::-webkit-scrollbar { display: none; }
  .tools-filter-chip { flex: 0 0 auto; }
  #toolsFilterBar { position: sticky; top: 72px; z-index: 5; background: var(--bg); padding-top: 8px; }
  .tools-search-input { margin-bottom: 8px; }
}

/* --- 4. the phone menu: full screen, big rows, contact shortcuts at the bottom --- */
@media (max-width: 640px) {
  #themeToggle { display: none; }               /* lives in the menu on phones (header room on 360px screens) */
  .site-header .container > .header-actions > .btn-login { display: none; } /* Login is in the bottom bar, the menu and a hero tile */
  .site-header .container { gap: 6px; }
  .header-actions { gap: 6px; }
  .nav-toggle { margin-right: -8px; }
  #searchToggle { display: none; }              /* Search is in the bottom bar */
}
@media (max-width: 900px) {
  /* the header's backdrop-filter makes it the containing block for position:fixed, so the panel stays absolute
     (relative to the sticky header) and simply takes the rest of the screen; the body is scroll-locked while open */
  .main-nav { position: absolute; top: 100%; left: 0; right: 0; height: calc(100vh - 88px); height: calc(100dvh - 88px); max-height: none; border-radius: 0; box-shadow: none; border-top: 1px solid var(--border-soft); padding: 12px 18px calc(96px + env(safe-area-inset-bottom)); overflow-y: auto; -webkit-overflow-scrolling: touch; }
  .main-nav > ul { gap: 0; }
  .main-nav > ul > li + li { border-top: 1px solid var(--border-soft); }
  .main-nav a.nav-link { display: flex; align-items: center; justify-content: space-between; padding: 14px 10px; font-size: 17px; border-radius: 12px; min-height: 52px; }
  .has-dropdown .mega-menu { padding: 0 0 8px 8px; }
  .has-dropdown .mega-menu a { display: flex; align-items: center; min-height: 44px; padding: 10px 12px; font-size: 15px; }
  .mega-col h4 { font-size: 13px; margin: 10px 0 4px; }
  .ph-nav-foot { display: grid; grid-template-columns: 1fr 1fr 1fr 1fr; gap: 8px; margin-top: 16px; }
  .ph-nav-foot a, .ph-nav-foot button { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 12px 6px; border-radius: 12px; background: var(--bg); border: 1px solid var(--border-soft); font-weight: 700; font-size: 12.5px; color: var(--ink); cursor: pointer; font-family: inherit; }
  .ph-nav-foot button span, .ph-nav-foot a span { font-size: 22px; }
  .ph-nav-foot a span { font-size: 22px; }
  body.nav-locked { overflow: hidden; }
  body.nav-locked .ai-assist-toggle, body.nav-locked .ph-install, body.ai-open .ph-install { display: none; }
}
@media (max-width: 640px) { .main-nav { height: calc(100vh - 72px); height: calc(100dvh - 72px); } }

/* --- 5. phones held sideways (≤500px tall): compact header, no bottom bar --- */
@media (max-height: 500px) and (orientation: landscape) {
  .site-header .container { height: 56px; }
  .logo img.mark { width: 36px; height: 36px; }
  .main-nav { height: calc(100vh - 56px); height: calc(100dvh - 56px); }
  .hero { padding: 22px 0 22px; }
  .hero.hero-compact { padding: 18px 0 20px; }
  .hero h1 { font-size: 24px; margin-bottom: 10px; }
  .hero p.lead { margin-bottom: 12px; }
  .ph-tiles { grid-template-columns: repeat(6, 1fr); }
  .mobile-bar { display: none; }
  body { padding-bottom: 0; }
  .ai-assist-toggle { bottom: 12px; right: 12px; width: 50px; height: 50px; padding: 0; justify-content: center; border-radius: 50%; }
  .ai-assist-toggle .label-text { display: none; }
  .ai-assist-toggle .status-dot { position: absolute; top: 5px; right: 5px; }
  .whatsapp-float { display: flex; width: 46px; height: 46px; font-size: 22px; bottom: 14px; right: 72px; }
  .ai-panel { height: 100vh; height: 100dvh; border-radius: 0; }
  .section { padding: 36px 0; }
}

/* --- 6. install banner + share button (phones) --- */
.ph-install { display: none; position: fixed; left: 12px; right: 12px; bottom: calc(74px + env(safe-area-inset-bottom)); z-index: 215; background: var(--surface); color: var(--ink); border: 1px solid var(--border-soft); border-radius: 16px; box-shadow: var(--shadow-lg); padding: 12px 12px 12px 14px; align-items: center; gap: 12px; }
.ph-install.show { display: flex; }
.ph-install img { width: 40px; height: 40px; border-radius: 10px; flex: 0 0 auto; }
.ph-install-text { flex: 1; min-width: 0; font-size: 13px; line-height: 1.35; }
.ph-install-text strong { display: block; font-size: 14px; }
.ph-install-btn { flex: 0 0 auto; background: var(--forest); color: var(--white); border: none; border-radius: 100px; padding: 10px 16px; font-weight: 700; font-size: 13.5px; cursor: pointer; }
.ph-install-x { flex: 0 0 auto; width: 36px; height: 36px; border: none; background: transparent; color: var(--gray); font-size: 20px; cursor: pointer; }
@media (max-height: 500px) and (orientation: landscape) { .ph-install { bottom: 12px; } }
/* smallest labels on the site were 10.5-11.5px — lifted to a 12px floor on every device */
.calc-disclaimer, .booking-chip-day, .ps-logo-box small, .ol-form small, .ps-fineprint, .tool-disclaimer { font-size: 12px; }
.tool-index-card .badge-live, .tool-index-card .badge-soon { font-size: 12px; }
.tool-index-card .tool-ai-badge { font-size: 12px; }
.result-action-btn.share-file { display: none; }
body.can-share-files .result-action-btn.share-file { display: inline-flex; }