/* ==========================================================================
   NextGenManager — design system
   Single stylesheet. No framework, no build step, no preprocessor.
   Sections: 1 Fonts · 2 Tokens · 3 Reset · 4 Typography · 5 Layout
             6 Buttons · 7 Header/nav · 8 Hero · 9 Components
             10 Forms · 11 Prose · 12 Footer · 13 Utilities · 14 Motion
   ========================================================================== */

/* 1. Fonts ---------------------------------------------------------------- */
/* Self-hosted so there is no third-party request on first paint and no
   Google Fonts IP logging (a live GDPR issue for EU visitors). */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('/assets/fonts/inter-variable.woff2') format('woff2');
}
/* Metric-adjusted fallback: text laid out in the system font occupies almost
   exactly the same space as Inter, so the swap causes no layout shift. */
@font-face {
  font-family: 'Inter Fallback';
  src: local('Arial');
  size-adjust: 107%;
  ascent-override: 90%;
  descent-override: 22%;
  line-gap-override: 0%;
}

/* 2. Tokens --------------------------------------------------------------- */
:root {
  /* Ink */
  --ink-950: #020617;
  --ink-900: #0f172a;
  --ink-800: #1e293b;
  --ink-700: #334155;
  --ink-600: #475569;
  --ink-500: #64748b;
  --ink-400: #94a3b8;
  --ink-300: #cbd5e1;
  --ink-200: #e2e8f0;
  --ink-100: #f1f5f9;
  --ink-50:  #f8fafc;
  --white:   #ffffff;

  /* Brand — blue carries the product, emerald comes from the logo mark */
  --brand-50:  #eff6ff;
  --brand-100: #dbeafe;
  --brand-200: #bfdbfe;
  --brand-500: #3b82f6;
  --brand-600: #2563eb;
  --brand-700: #1d4ed8;
  --brand-800: #1e40af;

  --emerald-50:  #ecfdf5;
  --emerald-100: #d1fae5;
  --emerald-600: #059669;
  --emerald-700: #047857;
  --cyan-600:    #0891b2;

  --amber-50:  #fffbeb;
  --amber-200: #fde68a;
  --amber-700: #b45309;
  --amber-900: #78350f;

  --red-50:  #fef2f2;
  --red-200: #fecaca;
  --red-600: #dc2626;
  --red-700: #b91c1c;
  --red-900: #7f1d1d;

  /* Semantic */
  --bg:            var(--white);
  --bg-subtle:     var(--ink-50);
  --bg-muted:      var(--ink-100);
  --bg-inverse:    var(--ink-900);
  --text:          var(--ink-900);
  --text-body:     var(--ink-600);
  --text-muted:    var(--ink-500);
  --border:        var(--ink-200);
  --border-strong: var(--ink-300);
  --accent:        var(--brand-600);
  --accent-hover:  var(--brand-700);

  /* Type */
  --font-sans: 'Inter', 'Inter Fallback', -apple-system, BlinkMacSystemFont,
               'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, 'SF Mono', Menlo, Consolas,
               'Liberation Mono', monospace;

  --step--1: clamp(0.82rem, 0.80rem + 0.10vw, 0.88rem);
  --step-0:  clamp(1.00rem, 0.97rem + 0.14vw, 1.08rem);
  --step-1:  clamp(1.15rem, 1.09rem + 0.28vw, 1.31rem);
  --step-2:  clamp(1.35rem, 1.24rem + 0.52vw, 1.72rem);
  --step-3:  clamp(1.60rem, 1.40rem + 0.95vw, 2.28rem);
  --step-4:  clamp(1.90rem, 1.55rem + 1.65vw, 3.05rem);
  --step-5:  clamp(2.25rem, 1.65rem + 2.80vw, 4.05rem);

  /* Space */
  --sp-1: 0.25rem;  --sp-2: 0.5rem;   --sp-3: 0.75rem;  --sp-4: 1rem;
  --sp-5: 1.5rem;   --sp-6: 2rem;     --sp-7: 2.5rem;   --sp-8: 3rem;
  --sp-9: 4rem;     --sp-10: 5rem;    --sp-11: 6rem;

  --section-y: clamp(3.5rem, 2.5rem + 4vw, 6.5rem);
  --container: 1200px;
  --gutter: clamp(1.15rem, 0.6rem + 2.4vw, 2.5rem);
  --measure: 68ch;

  /* Shape */
  --r-sm: 6px;  --r-md: 10px;  --r-lg: 16px;  --r-xl: 24px;  --r-full: 999px;

  --shadow-xs: 0 1px 2px rgb(15 23 42 / .06);
  --shadow-sm: 0 1px 3px rgb(15 23 42 / .08), 0 1px 2px rgb(15 23 42 / .04);
  --shadow-md: 0 4px 12px rgb(15 23 42 / .07), 0 2px 4px rgb(15 23 42 / .04);
  --shadow-lg: 0 12px 28px rgb(15 23 42 / .10), 0 4px 8px rgb(15 23 42 / .04);
  --shadow-xl: 0 24px 56px rgb(15 23 42 / .13), 0 8px 16px rgb(15 23 42 / .05);

  --ring: 0 0 0 3px rgb(37 99 235 / .35);
  --header-h: 68px;
  --ease: cubic-bezier(.22, 1, .36, 1);
}

/* 3. Reset ---------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

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

body {
  font-family: var(--font-sans);
  font-size: var(--step-0);
  line-height: 1.65;
  color: var(--text-body);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-synthesis-weight: none;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg, video, canvas { display: block; max-width: 100%; }
img, video { height: auto; }
input, button, textarea, select { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; }
ul, ol { list-style: none; padding: 0; }
a { color: inherit; text-decoration: none; }
address { font-style: normal; }
table { border-collapse: collapse; width: 100%; }

:focus-visible {
  outline: 2px solid var(--brand-600);
  outline-offset: 2px;
  border-radius: 3px;
}
:target { scroll-margin-top: calc(var(--header-h) + 2rem); }

::selection { background: var(--brand-100); color: var(--ink-900); }

/* 4. Typography ----------------------------------------------------------- */
h1, h2, h3, h4, h5, h6 {
  color: var(--text);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.022em;
  text-wrap: balance;
}
h1 { font-size: var(--step-5); letter-spacing: -0.035em; }
h2 { font-size: var(--step-4); letter-spacing: -0.028em; }
h3 { font-size: var(--step-2); }
h4 { font-size: var(--step-1); }
h5, h6 { font-size: var(--step-0); }

p { text-wrap: pretty; }
strong, b { font-weight: 650; color: var(--ink-800); }
small { font-size: var(--step--1); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--brand-700);
  margin-bottom: var(--sp-4);
}
.eyebrow::before {
  content: '';
  width: 1.5rem;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  opacity: .5;
}
.eyebrow--center::before { display: none; }

.lead {
  font-size: var(--step-1);
  line-height: 1.6;
  color: var(--ink-600);
}

.text-gradient {
  background: linear-gradient(96deg, var(--brand-600) 0%, var(--cyan-600) 55%, var(--emerald-600) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* 5. Layout --------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.container--narrow { max-width: 820px; }
.container--prose  { max-width: 760px; }

.section { padding-block: var(--section-y); }
.section--tight { padding-block: calc(var(--section-y) * .62); }
.section--subtle { background: var(--bg-subtle); }
.section--muted  { background: var(--bg-muted); }
.section--bordered { border-block: 1px solid var(--border); }
.section--inverse { background: var(--ink-900); color: var(--ink-300); }
.section--inverse h2, .section--inverse h3, .section--inverse h4 { color: var(--white); }

.section-head {
  max-width: 760px;
  margin-bottom: clamp(2.5rem, 2rem + 2vw, 4rem);
}
.section-head--center { margin-inline: auto; text-align: center; }
.section-head p { font-size: var(--step-1); color: var(--ink-600); margin-top: var(--sp-4); }

.grid { display: grid; gap: var(--sp-6); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
/* True two-up: the 300px track above fits three columns at desktop width,
   which leaves a four-card set as an awkward 3 + 1. */
.grid-2-wide { grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr)); }

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 1rem + 5vw, 5rem);
  align-items: center;
}
.split--top { align-items: start; }
@media (max-width: 900px) {
  .split { grid-template-columns: 1fr; }
  .split--reverse > *:first-child { order: 2; }
}
/* For splits holding a wide data table: stack sooner so the table keeps all
   its columns visible instead of clipping on a small laptop. */
@media (max-width: 1220px) {
  .split--stack-early { grid-template-columns: 1fr !important; }
  .split--stack-early.split--reverse > *:first-child { order: 2; }
}

.stack > * + * { margin-top: var(--sp-4); }
.stack-lg > * + * { margin-top: var(--sp-6); }

/* 6. Buttons -------------------------------------------------------------- */
.btn {
  --btn-bg: transparent;
  --btn-fg: var(--ink-800);
  --btn-border: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.8rem 1.5rem;
  font-size: 0.98rem;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  border-radius: var(--r-md);
  border: 1px solid var(--btn-border);
  background: var(--btn-bg);
  color: var(--btn-fg);
  cursor: pointer;
  white-space: nowrap;
  transition: background-color .18s var(--ease), border-color .18s var(--ease),
              color .18s var(--ease), transform .18s var(--ease), box-shadow .18s var(--ease);
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn svg { flex: none; }

.btn-primary {
  --btn-bg: var(--brand-600);
  --btn-fg: var(--white);
  --btn-border: var(--brand-600);
  box-shadow: 0 1px 2px rgb(37 99 235 / .35), 0 6px 18px -6px rgb(37 99 235 / .5);
}
.btn-primary:hover { --btn-bg: var(--brand-700); --btn-border: var(--brand-700);
  box-shadow: 0 2px 4px rgb(37 99 235 / .35), 0 12px 26px -8px rgb(37 99 235 / .55); }

.btn-secondary {
  --btn-bg: var(--white);
  --btn-fg: var(--ink-800);
  --btn-border: var(--border-strong);
  box-shadow: var(--shadow-xs);
}
.btn-secondary:hover { --btn-border: var(--ink-400); --btn-bg: var(--ink-50); }

.btn-ghost { --btn-fg: var(--ink-700); }
.btn-ghost:hover { --btn-bg: var(--ink-100); --btn-fg: var(--ink-900); }

.btn-dark { --btn-bg: var(--ink-900); --btn-fg: var(--white); --btn-border: var(--ink-900); }
.btn-dark:hover { --btn-bg: var(--ink-800); --btn-border: var(--ink-800); }

.btn-on-dark { --btn-bg: var(--white); --btn-fg: var(--ink-900); --btn-border: var(--white); }
.btn-on-dark:hover { --btn-bg: var(--ink-100); --btn-border: var(--ink-100); }

.btn-outline-light {
  --btn-fg: var(--white);
  --btn-border: rgb(255 255 255 / .38);
}
.btn-outline-light:hover { --btn-bg: rgb(255 255 255 / .12); --btn-border: rgb(255 255 255 / .7); }

.btn-whatsapp { --btn-bg: #25d366; --btn-fg: #05270f; --btn-border: #25d366; }
.btn-whatsapp:hover { --btn-bg: #1eb757; --btn-border: #1eb757; }

.btn-sm { padding: 0.55rem 1.05rem; font-size: 0.9rem; border-radius: var(--r-sm); }
.btn-lg { padding: 0.95rem 1.9rem; font-size: 1.05rem; }
.btn-block { width: 100%; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .55; cursor: not-allowed; transform: none; }

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-3);
  align-items: center;
}
.btn-row--center { justify-content: center; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 600;
  color: var(--brand-700);
}
.link-arrow svg { transition: transform .2s var(--ease); }
.link-arrow:hover { color: var(--brand-800); }
.link-arrow:hover svg { transform: translateX(3px); }

/* 7. Header / navigation -------------------------------------------------- */
.skip-link {
  position: absolute;
  top: 0.5rem;
  left: 0.5rem;
  z-index: 200;
  padding: 0.7rem 1.1rem;
  background: var(--ink-900);
  color: var(--white);
  font-weight: 600;
  border-radius: var(--r-sm);
  transform: translateY(-160%);
  transition: transform .18s var(--ease);
}
.skip-link:focus-visible { transform: translateY(0); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 90;
  background: rgb(255 255 255 / .88);
  backdrop-filter: blur(14px) saturate(180%);
  -webkit-backdrop-filter: blur(14px) saturate(180%);
  border-bottom: 1px solid transparent;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.site-header.is-stuck {
  border-bottom-color: var(--border);
  box-shadow: 0 1px 12px rgb(15 23 42 / .05);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-5);
  min-height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 1.2rem;
  font-weight: 750;
  letter-spacing: -0.03em;
  color: var(--ink-900);
  flex: none;
}
.brand-mark { width: 34px; height: 34px; }
.brand-name-accent { color: var(--brand-600); }
.brand--footer { font-size: 1.15rem; }

.nav-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex: 1;
  gap: var(--sp-5);
}

.nav-list { display: flex; align-items: center; gap: 0.15rem; }
.nav-item { position: relative; }

.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.55rem 0.8rem;
  font-size: 0.94rem;
  font-weight: 550;
  color: var(--ink-600);
  border-radius: var(--r-sm);
  transition: color .15s var(--ease), background-color .15s var(--ease);
}
.nav-link:hover { color: var(--ink-900); background: var(--ink-100); }
.nav-item.is-active > .nav-link { color: var(--brand-700); font-weight: 650; }
.nav-chevron { transition: transform .2s var(--ease); opacity: .65; }

.nav-menu {
  position: absolute;
  top: calc(100% + 0.5rem);
  left: 0;
  min-width: 310px;
  padding: 0.5rem;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-xl);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity .17s var(--ease), transform .17s var(--ease), visibility .17s;
}
.nav-item.has-menu:hover .nav-menu,
.nav-item.has-menu:focus-within .nav-menu,
.nav-menu-button[aria-expanded="true"] + .nav-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.nav-item.has-menu:hover .nav-chevron,
.nav-menu-button[aria-expanded="true"] .nav-chevron { transform: rotate(180deg); }

.nav-menu-link {
  display: block;
  padding: 0.65rem 0.8rem;
  border-radius: var(--r-sm);
  transition: background-color .14s var(--ease);
}
.nav-menu-link:hover { background: var(--brand-50); }
.nav-menu-label { display: block; font-weight: 620; color: var(--ink-900); font-size: 0.94rem; }
.nav-menu-desc { display: block; font-size: 0.82rem; color: var(--ink-500); line-height: 1.45; margin-top: 0.1rem; }
.nav-menu-link[aria-current="page"] .nav-menu-label { color: var(--brand-700); }

.header-actions { display: flex; align-items: center; gap: var(--sp-4); flex: none; }
.header-phone {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.9rem;
  font-weight: 620;
  color: var(--ink-700);
  white-space: nowrap;
}
.header-phone:hover { color: var(--brand-700); }
.header-phone svg { color: var(--emerald-600); }

.nav-burger { display: none; }
.nav-scrim { display: none; }

@media (max-width: 1020px) {
  .header-phone span { display: none; }
}

@media (max-width: 900px) {
  .nav-burger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    margin-right: -0.4rem;
    border-radius: var(--r-sm);
    color: var(--ink-800);
    order: 3;
  }
  .nav-burger:hover { background: var(--ink-100); }
  .nav-burger-box { position: relative; width: 22px; height: 16px; }
  .nav-burger-bar,
  .nav-burger-bar::before,
  .nav-burger-bar::after {
    position: absolute;
    left: 0;
    width: 22px;
    height: 2px;
    background: currentColor;
    border-radius: 2px;
    transition: transform .25s var(--ease), opacity .18s var(--ease), top .25s var(--ease);
  }
  .nav-burger-bar { top: 7px; }
  .nav-burger-bar::before { content: ''; top: -7px; }
  .nav-burger-bar::after  { content: ''; top: 7px; }
  .nav-burger[aria-expanded="true"] .nav-burger-bar { transform: rotate(45deg); }
  .nav-burger[aria-expanded="true"] .nav-burger-bar::before { top: 0; opacity: 0; }
  .nav-burger[aria-expanded="true"] .nav-burger-bar::after  { top: 0; transform: rotate(-90deg); }

  .nav-panel {
    /* The header sets `backdrop-filter`, which makes it the containing block
       for fixed-position descendants. So these offsets resolve against the
       header box (~68px tall), not the viewport — `bottom: 0` would collapse
       the drawer to a single row. Height is therefore stated explicitly.
       The header is sticky at top:0, so its top edge is always the viewport
       top and the drawer still lands in the right place. */
    position: fixed;
    top: var(--header-h);
    right: 0;
    left: auto;
    bottom: auto;
    height: calc(100vh - var(--header-h));
    height: calc(100dvh - var(--header-h));
    width: min(400px, 88vw);
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0;
    padding: var(--sp-5) var(--sp-5) var(--sp-8);
    background: var(--white);
    border-left: 1px solid var(--border);
    box-shadow: -12px 0 40px rgb(15 23 42 / .12);
    overflow-y: auto;
    overscroll-behavior: contain;
    transform: translateX(100%);
    visibility: hidden;
    transition: transform .28s var(--ease), visibility .28s;
  }
  .nav-panel.is-open { transform: translateX(0); visibility: visible; }

  .nav-scrim {
    display: block;
    position: fixed;
    inset: var(--header-h) 0 0 0;
    z-index: 80;
    background: rgb(15 23 42 / .38);
    opacity: 0;
    transition: opacity .28s var(--ease);
  }
  .nav-scrim.is-open { opacity: 1; }
  .nav-scrim[hidden] { display: none; }

  .primary-nav { width: 100%; }
  .nav-list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav-item { border-bottom: 1px solid var(--border); }
  .nav-link {
    width: 100%;
    justify-content: space-between;
    padding: 0.95rem 0.25rem;
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--ink-800);
    border-radius: 0;
  }
  .nav-link:hover { background: none; color: var(--brand-700); }

  .nav-menu {
    position: static;
    min-width: 0;
    padding: 0 0 var(--sp-3) 0;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    transform: none;
    display: none;
  }
  /* In the drawer the menu is shown/hidden with `display`, and only the
     click-toggled aria-expanded rule sets it. The desktop hover and
     focus-within rules above only touch opacity/visibility, so they cannot
     open it here — do NOT add a `:hover { display: none }` override, which
     would outrank this rule and make tapping a sub-menu do nothing. */
  .nav-menu-button[aria-expanded="true"] + .nav-menu { display: block; }
  .nav-menu-link { padding: 0.6rem 0.75rem; background: var(--ink-50); margin-bottom: 0.35rem; }
  .nav-menu-desc { display: none; }

  .header-actions {
    flex-direction: column;
    align-items: stretch;
    gap: var(--sp-3);
    margin-top: var(--sp-6);
  }
  .header-phone {
    justify-content: center;
    padding: 0.8rem;
    border: 1px solid var(--border-strong);
    border-radius: var(--r-md);
    font-size: 1rem;
  }
  .header-phone span { display: inline; }
  .header-actions .btn { padding: 0.85rem 1.5rem; font-size: 1rem; }
}

body.nav-open { overflow: hidden; }

/* Breadcrumb */
.breadcrumb { padding-block: var(--sp-5) 0; }
.breadcrumb ol { display: flex; flex-wrap: wrap; align-items: center; gap: 0.45rem; font-size: 0.85rem; }
.breadcrumb li { display: flex; align-items: center; gap: 0.45rem; color: var(--ink-500); }
.breadcrumb li + li::before { content: '/'; color: var(--ink-300); }
.breadcrumb a { color: var(--ink-600); }
.breadcrumb a:hover { color: var(--brand-700); text-decoration: underline; }
.breadcrumb [aria-current="page"] { color: var(--ink-800); font-weight: 600; }

/* 8. Hero ----------------------------------------------------------------- */
.hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(3rem, 2rem + 5vw, 6rem) clamp(3.5rem, 2.5rem + 5vw, 6.5rem);
  background: linear-gradient(180deg, var(--brand-50) 0%, rgb(255 255 255 / 0) 62%);
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(46rem 26rem at 12% -8%, rgb(37 99 235 / .13), transparent 62%),
    radial-gradient(38rem 24rem at 92% 6%, rgb(8 145 178 / .11), transparent 60%);
  pointer-events: none;
}
.hero > * { position: relative; }

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr);
  gap: clamp(2.5rem, 1rem + 4vw, 4rem);
  align-items: center;
}
@media (max-width: 1000px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { order: 2; }
}

.hero-title {
  /* Held below --step-5 so "Manufacturing ERP" stays on one line in the
     narrower hero column rather than breaking after the first word. */
  font-size: clamp(2.15rem, 1.45rem + 2.5vw, 3.5rem);
  margin-bottom: var(--sp-5);
  text-wrap: initial;
}
.hero-sub {
  font-size: var(--step-1);
  line-height: 1.6;
  color: var(--ink-600);
  max-width: 34em;
  margin-bottom: var(--sp-6);
}
.hero-note {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.15rem;
  margin-top: var(--sp-5);
  font-size: 0.86rem;
  color: var(--ink-500);
}
.hero-note li { display: flex; align-items: center; gap: 0.4rem; }
.hero-note svg { color: var(--emerald-600); flex: none; }

/* Page hero (interior pages) */
.page-hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(2.5rem, 2rem + 3vw, 4.5rem) clamp(2.5rem, 2rem + 3vw, 4rem);
  background: linear-gradient(180deg, var(--ink-50) 0%, rgb(255 255 255 / 0) 100%);
  border-bottom: 1px solid var(--border);
}
.page-hero h1 { max-width: 18ch; }
.page-hero--center { text-align: center; }
.page-hero--center h1, .page-hero--center .lead { margin-inline: auto; }
.page-hero .lead { max-width: 62ch; margin-top: var(--sp-5); }

.badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.9rem 0.35rem 0.6rem;
  background: var(--white);
  border: 1px solid var(--brand-200);
  border-radius: var(--r-full);
  font-size: 0.82rem;
  font-weight: 620;
  color: var(--brand-800);
  box-shadow: var(--shadow-xs);
  margin-bottom: var(--sp-5);
}
.pulse-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--emerald-600);
  box-shadow: 0 0 0 0 rgb(5 150 105 / .55);
  animation: pulse 2.4s infinite;
  flex: none;
  margin-left: 0.2rem;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgb(5 150 105 / .5); }
  70%  { box-shadow: 0 0 0 7px rgb(5 150 105 / 0); }
  100% { box-shadow: 0 0 0 0 rgb(5 150 105 / 0); }
}

/* 9. Components ----------------------------------------------------------- */

/* Card */
.card {
  position: relative;
  padding: var(--sp-6);
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-xs);
  transition: transform .22s var(--ease), box-shadow .22s var(--ease), border-color .22s var(--ease);
}
.card--hover:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  border-color: var(--border-strong);
}
.card--flat { box-shadow: none; }
.card--subtle { background: var(--bg-subtle); }
.card h3 { margin-bottom: var(--sp-3); font-size: var(--step-1); }
.card p { font-size: 0.98rem; }
.card > * + * { margin-top: var(--sp-3); }

.card-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin-bottom: var(--sp-5);
  border-radius: var(--r-md);
  background: var(--brand-50);
  color: var(--brand-600);
  border: 1px solid var(--brand-100);
}
.card-icon--emerald { background: var(--emerald-50); color: var(--emerald-700); border-color: var(--emerald-100); }
.card-icon--amber   { background: var(--amber-50); color: var(--amber-700); border-color: var(--amber-200); }

/* Feature list */
.check-list { display: flex; flex-direction: column; gap: var(--sp-4); }
.check-list li {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 0.75rem;
  align-items: start;
  color: var(--ink-600);
}
.check-list li::before {
  content: '';
  width: 20px; height: 20px;
  margin-top: 0.2rem;
  border-radius: 50%;
  background: var(--emerald-50) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23059669' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 12px no-repeat;
  box-shadow: inset 0 0 0 1px var(--emerald-100);
}
.check-list strong { color: var(--ink-900); }
.check-list--cross li::before {
  background: var(--red-50) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23dc2626' stroke-width='3.2' stroke-linecap='round'%3E%3Cpath d='M18 6 6 18M6 6l12 12'/%3E%3C/svg%3E") center / 11px no-repeat;
  box-shadow: inset 0 0 0 1px var(--red-200);
}

/* Stats */
.stat-band { background: var(--ink-900); color: var(--ink-300); }
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 190px), 1fr)); gap: var(--sp-6); }
.stat { text-align: center; }
.stat-value {
  font-size: clamp(2.1rem, 1.6rem + 2vw, 3rem);
  font-weight: 780;
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--white);
  margin-bottom: var(--sp-3);
}
.stat-value .unit { font-size: .55em; color: var(--brand-200); margin-left: 0.08em; }
.stat-label { font-size: 0.86rem; font-weight: 600; letter-spacing: 0.04em; color: var(--ink-400); }
.stat--light .stat-value { color: var(--ink-900); }
.stat--light .stat-label { color: var(--ink-500); }

/* Badges */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.22rem 0.65rem;
  border-radius: var(--r-full);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  white-space: nowrap;
}
.badge-green { background: var(--emerald-50); color: var(--emerald-700); box-shadow: inset 0 0 0 1px var(--emerald-100); }
.badge-amber { background: var(--amber-50); color: var(--amber-700); box-shadow: inset 0 0 0 1px var(--amber-200); }
.badge-red   { background: var(--red-50); color: var(--red-700); box-shadow: inset 0 0 0 1px var(--red-200); }
.badge-grey  { background: var(--ink-100); color: var(--ink-600); box-shadow: inset 0 0 0 1px var(--border); }
.badge-blue  { background: var(--brand-50); color: var(--brand-700); box-shadow: inset 0 0 0 1px var(--brand-100); }

/* Data table */
.table-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}
.table-card-head {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-3);
  align-items: center;
  justify-content: space-between;
  padding: var(--sp-4) var(--sp-5);
  background: var(--bg-subtle);
  border-bottom: 1px solid var(--border);
}
.table-card-head h3 { font-size: var(--step-0); font-weight: 650; }
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.data-table { min-width: 640px; font-size: 0.92rem; }
/* For tables sitting in one half of a .split, where 640px would push the
   right-hand column out of view on a normal desktop width. */
.data-table--compact { min-width: 430px; font-size: 0.88rem; }
.data-table--compact th, .data-table--compact td { padding: 0.7rem 0.85rem; }
.data-table th, .data-table td {
  padding: 0.9rem var(--sp-5);
  text-align: left;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}
.data-table thead th {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-500);
  background: var(--white);
  white-space: nowrap;
}
.data-table tbody tr:last-child td { border-bottom: 0; }
.data-table tbody tr:hover { background: var(--bg-subtle); }
.data-table td strong { color: var(--ink-900); font-weight: 650; }
.data-table .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }

/* Steps / process */
.steps { counter-reset: step; display: grid; gap: var(--sp-5); }
.step {
  position: relative;
  counter-increment: step;
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: var(--sp-5);
  padding: var(--sp-5) var(--sp-6) var(--sp-5) var(--sp-5);
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-xs);
}
.step::before {
  content: counter(step, decimal-leading-zero);
  display: grid;
  place-items: center;
  width: 48px; height: 48px;
  border-radius: var(--r-md);
  background: var(--ink-900);
  color: var(--white);
  font-size: 0.95rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.step h3 { font-size: var(--step-1); margin-bottom: var(--sp-2); }
.step p { font-size: 0.98rem; }
.step-meta {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: var(--sp-3);
  font-size: 0.82rem;
  font-weight: 620;
  color: var(--brand-700);
}
@media (max-width: 560px) {
  .step { grid-template-columns: 1fr; gap: var(--sp-4); }
}

/* Quote / testimonial */
.quote {
  position: relative;
  padding: var(--sp-7) var(--sp-6);
  background: var(--white);
  border: 1px solid var(--border);
  border-left: 4px solid var(--brand-600);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
}
.quote blockquote {
  font-size: var(--step-1);
  line-height: 1.6;
  color: var(--ink-800);
  font-weight: 500;
  text-wrap: pretty;
}
.quote-attr {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  margin-top: var(--sp-5);
  padding-top: var(--sp-5);
  border-top: 1px solid var(--border);
}
.quote-avatar {
  display: grid;
  place-items: center;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--brand-600);
  color: var(--white);
  font-weight: 700;
  font-size: 0.95rem;
  flex: none;
}
.quote-name { font-weight: 650; color: var(--ink-900); font-size: 0.95rem; }
.quote-role { font-size: 0.86rem; color: var(--ink-500); }

/* Chips — scannable list of industry / capability names */
.chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.chip {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.85rem;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-full);
  font-size: 0.86rem;
  font-weight: 550;
  color: var(--ink-700);
  box-shadow: var(--shadow-xs);
  white-space: nowrap;
}
.chip--muted {
  background: transparent;
  box-shadow: none;
  color: var(--ink-600);
}
a.chip:hover { border-color: var(--brand-300, var(--brand-200)); color: var(--brand-700); }

/* Logo strip */
.logo-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: clamp(1.5rem, 1rem + 3vw, 3.5rem);
}
.logo-strip-item {
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--ink-400);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.logo-strip-item svg { opacity: .6; }

/* Accordion (FAQ) */
.accordion { border-top: 1px solid var(--border); }
.accordion-item { border-bottom: 1px solid var(--border); }
.accordion-trigger {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--sp-4);
  width: 100%;
  padding: var(--sp-5) 0;
  text-align: left;
  font-size: var(--step-1);
  font-weight: 620;
  color: var(--ink-900);
  line-height: 1.4;
}
.accordion-trigger:hover { color: var(--brand-700); }
.accordion-icon {
  flex: none;
  width: 26px; height: 26px;
  margin-top: 0.15rem;
  border-radius: 50%;
  background: var(--ink-100);
  color: var(--ink-600);
  display: grid;
  place-items: center;
  transition: transform .25s var(--ease), background-color .2s var(--ease), color .2s var(--ease);
}
.accordion-trigger[aria-expanded="true"] .accordion-icon {
  transform: rotate(45deg);
  background: var(--brand-600);
  color: var(--white);
}
.accordion-panel { display: none; padding-bottom: var(--sp-5); }
.accordion-panel.is-open { display: block; }
.accordion-panel > * + * { margin-top: var(--sp-4); }
.accordion-panel p { max-width: var(--measure); }

/* Pricing */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: var(--sp-5);
  align-items: stretch;
}
.plan {
  display: flex;
  flex-direction: column;
  padding: var(--sp-7) var(--sp-6);
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-xs);
  transition: transform .22s var(--ease), box-shadow .22s var(--ease);
}
.plan:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.plan--featured {
  border-color: var(--brand-600);
  box-shadow: 0 0 0 1px var(--brand-600), var(--shadow-lg);
}
.plan-flag {
  align-self: flex-start;
  margin-bottom: var(--sp-4);
}
.plan-name { font-size: var(--step-1); font-weight: 700; color: var(--ink-900); }
.plan-for { font-size: 0.9rem; color: var(--ink-500); margin-top: var(--sp-2); min-height: 2.7em; }
.plan-price {
  display: flex;
  align-items: baseline;
  gap: 0.3rem;
  margin: var(--sp-5) 0 var(--sp-2);
}
.plan-amount {
  font-size: clamp(2.1rem, 1.7rem + 1.4vw, 2.7rem);
  font-weight: 780;
  letter-spacing: -0.035em;
  color: var(--ink-900);
  line-height: 1;
}
.plan-unit { font-size: 0.92rem; color: var(--ink-500); font-weight: 550; }
.plan-billing { font-size: 0.85rem; color: var(--ink-500); margin-bottom: var(--sp-5); }
.plan .btn { margin-bottom: var(--sp-6); }
.plan-features { display: flex; flex-direction: column; gap: 0.7rem; flex: 1; font-size: 0.93rem; }
.plan-features li { display: grid; grid-template-columns: 18px 1fr; gap: 0.6rem; align-items: start; }
.plan-features li::before {
  content: '';
  width: 16px; height: 16px;
  margin-top: 0.25rem;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232563eb' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / contain no-repeat;
}
.plan-features-head {
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--ink-400);
  margin-bottom: var(--sp-2);
}

/* CTA band */
.cta-band {
  position: relative;
  overflow: hidden;
  padding: clamp(2.75rem, 2rem + 4vw, 4.5rem) clamp(1.5rem, 1rem + 3vw, 4rem);
  border-radius: var(--r-xl);
  background: linear-gradient(135deg, var(--ink-900) 0%, #12275c 55%, var(--brand-800) 100%);
  color: rgb(255 255 255 / .82);
  text-align: center;
  box-shadow: var(--shadow-xl);
}
.cta-band::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(30rem 18rem at 15% 0%, rgb(59 130 246 / .3), transparent 60%),
    radial-gradient(26rem 16rem at 88% 110%, rgb(5 150 105 / .26), transparent 62%);
  pointer-events: none;
}
.cta-band > * { position: relative; }
.cta-band h2 { color: var(--white); }
.cta-band p { max-width: 58ch; margin: var(--sp-5) auto var(--sp-7); font-size: var(--step-1); }
.cta-band .btn-row { justify-content: center; }
.cta-note { margin-top: var(--sp-5); font-size: 0.88rem; color: rgb(255 255 255 / .6); }

/* Article cards */
.article-card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-xs);
  transition: transform .22s var(--ease), box-shadow .22s var(--ease);
}
.article-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.article-card-body { padding: var(--sp-6); display: flex; flex-direction: column; flex: 1; }
.article-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: var(--ink-500);
  margin-bottom: var(--sp-3);
}
.article-meta .dot { width: 3px; height: 3px; border-radius: 50%; background: var(--ink-300); }
.article-card h3 { font-size: var(--step-1); margin-bottom: var(--sp-3); }
.article-card h3 a::after { content: ''; position: absolute; inset: 0; }
.article-card { position: relative; }
.article-card p { font-size: 0.95rem; flex: 1; }
.article-card .link-arrow { margin-top: var(--sp-5); }
.article-thumb {
  aspect-ratio: 16 / 9;
  object-fit: cover;
  width: 100%;
  background: var(--ink-100);
  border-bottom: 1px solid var(--border);
}

/* Callout */
.callout {
  padding: var(--sp-5) var(--sp-6);
  border-radius: var(--r-md);
  border: 1px solid var(--brand-100);
  background: var(--brand-50);
  color: var(--ink-700);
}
.callout > * + * { margin-top: var(--sp-3); }
.callout-title { font-weight: 700; color: var(--ink-900); display: flex; align-items: center; gap: 0.5rem; }
.callout--amber { background: var(--amber-50); border-color: var(--amber-200); }
.callout--amber .callout-title { color: var(--amber-900); }
.callout--red { background: var(--red-50); border-color: var(--red-200); }
.callout--red .callout-title { color: var(--red-900); }
.callout--emerald { background: var(--emerald-50); border-color: var(--emerald-100); }
.callout--emerald .callout-title { color: var(--emerald-700); }

/* ERP mock-up (home hero) */
.erp-mock {
  background: var(--white);
  border-radius: var(--r-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-xl);
  overflow: hidden;
  font-size: 13px;
  line-height: 1.45;
  color: var(--ink-700);
  transform: perspective(1400px) rotateY(-3deg) rotateX(1.5deg);
  transition: transform .5s var(--ease);
}
.erp-mock:hover { transform: perspective(1400px) rotateY(0) rotateX(0) translateY(-4px); }
@media (max-width: 1000px) { .erp-mock, .erp-mock:hover { transform: none; } }

.erp-bar {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.7rem 1rem;
  background: var(--bg-subtle);
  border-bottom: 1px solid var(--border);
}
.erp-dots { display: flex; gap: 5px; }
.erp-dots i { width: 9px; height: 9px; border-radius: 50%; background: var(--ink-300); }
.erp-crumb { font-size: 0.72rem; color: var(--ink-500); font-weight: 600; }
.erp-pill {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 2px 9px;
  border-radius: var(--r-sm);
  background: var(--emerald-50);
  color: var(--emerald-700);
  font-size: 0.7rem;
  font-weight: 700;
  box-shadow: inset 0 0 0 1px var(--emerald-100);
}
.erp-pill i { width: 5px; height: 5px; border-radius: 50%; background: currentColor; }

.erp-tabs { display: flex; gap: 1.25rem; padding: 0 1rem; border-bottom: 1px solid var(--border); overflow-x: auto; }
.erp-tab { padding: 0.7rem 0; font-size: 0.76rem; font-weight: 550; color: var(--ink-500); white-space: nowrap; border-bottom: 2px solid transparent; }
.erp-tab.is-on { color: var(--brand-600); border-bottom-color: var(--brand-600); font-weight: 650; }

.erp-body { padding: 1rem; background: var(--bg-subtle); }
.erp-fields { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 0.6rem; margin-bottom: 0.9rem; }
.erp-field label {
  display: block;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-400);
  margin-bottom: 3px;
}
.erp-field .val {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.4rem;
  min-height: 30px;
  padding: 4px 8px;
  background: var(--white);
  border: 1px solid var(--border-strong);
  border-radius: 5px;
  font-size: 0.74rem;
  color: var(--ink-700);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.erp-field .val b { font-weight: 650; color: var(--ink-900); }

.erp-tablewrap { background: var(--white); border: 1px solid var(--border); border-radius: 7px; overflow: hidden; }
.erp-caption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 0.7rem;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--ink-500);
  border-bottom: 1px solid var(--border);
}
.erp-row {
  display: grid;
  grid-template-columns: 18px 2.6fr 1.1fr 0.6fr 0.5fr 0.9fr;
  gap: 0.4rem;
  align-items: center;
  padding: 0.45rem 0.7rem;
  font-size: 0.72rem;
  border-bottom: 1px solid var(--ink-100);
}
.erp-row:last-child { border-bottom: 0; }
.erp-row.is-head {
  background: var(--ink-900);
  color: var(--white);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border-bottom: 0;
}
.erp-row.is-sub { background: var(--ink-50); color: var(--ink-500); }
.erp-row .nm { font-weight: 600; color: var(--ink-900); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.erp-row.is-sub .nm { font-weight: 500; color: var(--ink-600); }
.erp-row .code { font-family: var(--font-mono); font-size: 0.68rem; color: var(--ink-500); }
.erp-row .num { text-align: right; font-variant-numeric: tabular-nums; }
.erp-row .tw { color: var(--ink-400); }
.erp-indent { padding-left: 0.85rem; }
.erp-indent-2 { padding-left: 1.7rem; }
.erp-caret { color: var(--brand-600); }
.erp-total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.6rem 0.7rem;
  background: var(--brand-50);
  border-top: 1px solid var(--brand-100);
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--brand-800);
}
@media (max-width: 460px) {
  .erp-fields { grid-template-columns: 1fr 1fr; }
  .erp-row { grid-template-columns: 14px 2fr 0.8fr 0.7fr; }
  .erp-row .code, .erp-row .tw { display: none; }
}

/* Comparison two-column */
.versus { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-5); }
@media (max-width: 760px) { .versus { grid-template-columns: 1fr; } }
.versus-col { padding: var(--sp-6); border-radius: var(--r-lg); border: 1px solid var(--border); }
.versus-col h3 { font-size: var(--step-1); display: flex; align-items: center; gap: 0.6rem; margin-bottom: var(--sp-5); }
.versus-col--bad { background: var(--ink-50); }
.versus-col--good { background: var(--white); border-color: var(--brand-200); box-shadow: var(--shadow-md); }

/* Anchor nav (sticky in-page) */
.anchor-nav {
  position: sticky;
  top: var(--header-h);
  z-index: 40;
  background: rgb(255 255 255 / .93);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.anchor-nav ul { display: flex; gap: 0.35rem; overflow-x: auto; padding-block: 0.55rem; scrollbar-width: none; }
.anchor-nav ul::-webkit-scrollbar { display: none; }
.anchor-nav a {
  display: block;
  padding: 0.4rem 0.85rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ink-600);
  border-radius: var(--r-full);
  white-space: nowrap;
}
.anchor-nav a:hover { background: var(--ink-100); color: var(--ink-900); }
.anchor-nav a.is-current { background: var(--brand-600); color: var(--white); }

/* 10. Forms --------------------------------------------------------------- */
.form-card {
  padding: clamp(1.5rem, 1rem + 2vw, 2.5rem);
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-md);
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-4) var(--sp-5); }
.form-grid .span-2 { grid-column: 1 / -1; }
@media (max-width: 620px) { .form-grid { grid-template-columns: 1fr; } .form-grid .span-2 { grid-column: auto; } }

.field { display: flex; flex-direction: column; gap: 0.4rem; }
.field label { font-size: 0.86rem; font-weight: 620; color: var(--ink-700); }
.field .req { color: var(--red-600); }
.field .hint { font-size: 0.8rem; color: var(--ink-500); }

.input, .select, .textarea {
  width: 100%;
  padding: 0.72rem 0.9rem;
  font-size: 0.98rem;
  color: var(--ink-900);
  background: var(--white);
  border: 1px solid var(--border-strong);
  border-radius: var(--r-sm);
  transition: border-color .15s var(--ease), box-shadow .15s var(--ease);
}
.input::placeholder, .textarea::placeholder { color: var(--ink-400); }
.input:hover, .select:hover, .textarea:hover { border-color: var(--ink-400); }
.input:focus, .select:focus, .textarea:focus {
  outline: none;
  border-color: var(--brand-600);
  box-shadow: var(--ring);
}
.textarea { resize: vertical; min-height: 130px; }
.select {
  appearance: none;
  cursor: pointer;
  padding-right: 2.4rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.85rem center;
  background-size: 16px;
}
.field.has-error .input, .field.has-error .select, .field.has-error .textarea {
  border-color: var(--red-600);
  background: var(--red-50);
}
.field-error { font-size: 0.83rem; font-weight: 600; color: var(--red-700); display: none; }
.field.has-error .field-error { display: block; }

.checkbox { display: grid; grid-template-columns: 20px 1fr; gap: 0.65rem; align-items: start; font-size: 0.88rem; color: var(--ink-600); }
.checkbox input { width: 18px; height: 18px; margin-top: 0.15rem; accent-color: var(--brand-600); }
.checkbox a { color: var(--brand-700); text-decoration: underline; }

/* Honeypot — must stay reachable to bots but invisible and unfocusable. */
.hp-field {
  position: absolute !important;
  left: -9999px;
  width: 1px; height: 1px;
  overflow: hidden;
}

.form-status {
  display: none;
  gap: 0.7rem;
  align-items: flex-start;
  padding: var(--sp-4) var(--sp-5);
  margin-bottom: var(--sp-5);
  border-radius: var(--r-md);
  font-size: 0.93rem;
  font-weight: 550;
}
.form-status.is-shown { display: flex; }
.form-status svg { flex: none; margin-top: 2px; }
.form-status--error { background: var(--red-50); color: var(--red-900); box-shadow: inset 0 0 0 1px var(--red-200); }
.form-status--ok { background: var(--emerald-50); color: var(--emerald-700); box-shadow: inset 0 0 0 1px var(--emerald-100); }
.form-status--warn { background: var(--amber-50); color: var(--amber-900); box-shadow: inset 0 0 0 1px var(--amber-200); }

.btn.is-loading { position: relative; color: transparent !important; pointer-events: none; }
.btn.is-loading::after {
  content: '';
  position: absolute;
  width: 17px; height: 17px;
  border: 2px solid rgb(255 255 255 / .4);
  border-top-color: var(--white);
  border-radius: 50%;
  animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Contact tiles */
.contact-tile {
  display: flex;
  gap: var(--sp-4);
  padding: var(--sp-5);
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
a.contact-tile:hover { border-color: var(--brand-200); box-shadow: var(--shadow-sm); }
.contact-tile-icon {
  display: grid; place-items: center;
  width: 42px; height: 42px;
  flex: none;
  border-radius: var(--r-sm);
  background: var(--brand-50);
  color: var(--brand-600);
}
.contact-tile-label { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; color: var(--ink-400); }
.contact-tile-value { font-weight: 620; color: var(--ink-900); font-size: 1rem; margin-top: 0.15rem; word-break: break-word; }
.contact-tile-sub { font-size: 0.85rem; color: var(--ink-500); margin-top: 0.15rem; }

.map-embed {
  width: 100%;
  aspect-ratio: 16 / 10;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--ink-100);
}
.map-embed iframe { width: 100%; height: 100%; border: 0; display: block; }

/* 11. Prose (blog + legal) ------------------------------------------------ */
.prose { color: var(--ink-700); font-size: 1.06rem; line-height: 1.75; }
.prose > * + * { margin-top: 1.35em; }
.prose h2 {
  font-size: var(--step-3);
  margin-top: 2.4em;
  margin-bottom: -0.4em;
  padding-top: 0.3em;
  scroll-margin-top: calc(var(--header-h) + 2rem);
}
.prose h3 { font-size: var(--step-1); margin-top: 2em; margin-bottom: -0.5em; }
.prose h4 { font-size: 1.05rem; margin-top: 1.8em; margin-bottom: -0.6em; color: var(--ink-800); }
.prose p { max-width: var(--measure); }
.prose a { color: var(--brand-700); text-decoration: underline; text-underline-offset: 2px; text-decoration-thickness: 1px; }
.prose a:hover { color: var(--brand-800); text-decoration-thickness: 2px; }
.prose ul, .prose ol { max-width: var(--measure); padding-left: 1.3em; display: flex; flex-direction: column; gap: 0.55em; }
.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }
.prose li::marker { color: var(--ink-400); }
.prose li > ul, .prose li > ol { margin-top: 0.55em; }
.prose blockquote {
  padding: 0.2em 0 0.2em 1.4em;
  border-left: 3px solid var(--brand-200);
  color: var(--ink-600);
  font-style: italic;
  max-width: var(--measure);
}
.prose code {
  padding: 0.15em 0.4em;
  font-family: var(--font-mono);
  font-size: 0.87em;
  background: var(--ink-100);
  border-radius: 4px;
  color: var(--ink-800);
}
.prose pre {
  padding: var(--sp-5);
  background: var(--ink-900);
  color: var(--ink-200);
  border-radius: var(--r-md);
  overflow-x: auto;
  font-size: 0.87rem;
  line-height: 1.6;
}
.prose pre code { background: none; padding: 0; color: inherit; }
.prose hr { border: 0; border-top: 1px solid var(--border); margin-block: 2.5em; }
.prose img { border-radius: var(--r-md); border: 1px solid var(--border); }
.prose figure > figcaption { font-size: 0.85rem; color: var(--ink-500); margin-top: 0.7em; text-align: center; }
.prose table { font-size: 0.95rem; margin-block: 1.6em; }
.prose thead th {
  text-align: left;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--ink-500);
  border-bottom: 2px solid var(--border);
  padding: 0.6em 0.8em;
}
.prose tbody td { padding: 0.7em 0.8em; border-bottom: 1px solid var(--border); vertical-align: top; }
.prose .table-scroll { margin-block: 1.6em; }
.prose > .callout, .prose > .table-scroll { max-width: none; }
.prose strong { color: var(--ink-900); font-weight: 650; }

.article-header { max-width: 760px; }
.article-hero-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.88rem;
  color: var(--ink-500);
  margin-top: var(--sp-5);
}
.toc {
  padding: var(--sp-5);
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
}
.toc-title { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.07em; text-transform: uppercase; color: var(--ink-500); margin-bottom: var(--sp-3); }
.toc ol { list-style: decimal; padding-left: 1.2em; display: flex; flex-direction: column; gap: 0.4em; font-size: 0.95rem; }
.toc a { color: var(--brand-700); }
.toc a:hover { text-decoration: underline; }

/* 12. Footer -------------------------------------------------------------- */
.site-footer {
  background: var(--ink-900);
  color: var(--ink-400);
  padding-block: var(--sp-9) var(--sp-6);
  font-size: 0.93rem;
}
.footer-top {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 2.4fr);
  gap: clamp(2rem, 1rem + 4vw, 4rem);
  padding-bottom: var(--sp-8);
}
@media (max-width: 940px) { .footer-top { grid-template-columns: 1fr; } }

.site-footer .brand { color: var(--white); }
.site-footer .brand-name-accent { color: var(--brand-200); }
.footer-blurb { margin-top: var(--sp-4); max-width: 40ch; line-height: 1.65; }
.footer-address { display: flex; flex-direction: column; gap: 0.6rem; margin-top: var(--sp-5); }
.footer-contact-line { display: flex; align-items: flex-start; gap: 0.55rem; line-height: 1.5; }
.footer-contact-line svg { flex: none; margin-top: 0.2rem; color: var(--ink-500); }
a.footer-contact-line:hover { color: var(--white); }
a.footer-contact-line:hover svg { color: var(--brand-200); }

.footer-social { display: flex; gap: 0.5rem; margin-top: var(--sp-5); }
.social-link {
  display: grid;
  place-items: center;
  width: 38px; height: 38px;
  border-radius: var(--r-sm);
  background: rgb(255 255 255 / .06);
  color: var(--ink-300);
  transition: background-color .18s var(--ease), color .18s var(--ease);
}
.social-link:hover { background: var(--brand-600); color: var(--white); }

.footer-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 160px), 1fr)); gap: var(--sp-6); }
.footer-col-title {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: var(--sp-4);
}
.footer-col ul { display: flex; flex-direction: column; gap: 0.65rem; }
.footer-col a { color: var(--ink-400); }
.footer-col a:hover { color: var(--white); text-decoration: underline; text-underline-offset: 3px; }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  padding-top: var(--sp-6);
  border-top: 1px solid rgb(255 255 255 / .1);
  font-size: 0.86rem;
  color: var(--ink-500);
}
.footer-legal { display: flex; flex-wrap: wrap; gap: var(--sp-4); }
.footer-legal a:hover { color: var(--white); text-decoration: underline; }
.footer-made { color: var(--ink-500); }

/* Cookie banner */
.cookie-banner {
  position: fixed;
  left: 1rem; right: 1rem; bottom: 1rem;
  z-index: 120;
  max-width: 640px;
  margin-inline: auto;
  padding: var(--sp-5);
  background: var(--white);
  border: 1px solid var(--border-strong);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-xl);
  animation: cookie-in .35s var(--ease);
}
.cookie-banner[hidden] { display: none; }
@keyframes cookie-in { from { transform: translateY(16px); opacity: 0; } }
.cookie-inner { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-4); justify-content: space-between; }
.cookie-title { font-weight: 700; color: var(--ink-900); font-size: 0.95rem; }
.cookie-text { font-size: 0.87rem; color: var(--ink-600); margin-top: 0.2rem; max-width: 46ch; }
.cookie-text a { color: var(--brand-700); text-decoration: underline; }
.cookie-actions { display: flex; gap: var(--sp-3); flex: none; }

/* 13. Utilities ----------------------------------------------------------- */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
.center { text-align: center; }
.measure { max-width: var(--measure); }
.mx-auto { margin-inline: auto; }
.mt-0 { margin-top: 0; }
.mt-3 { margin-top: var(--sp-3); }
.mt-4 { margin-top: var(--sp-4); }
.mt-5 { margin-top: var(--sp-5); }
.mt-6 { margin-top: var(--sp-6); }
.mt-7 { margin-top: var(--sp-7); }
.mt-8 { margin-top: var(--sp-8); }
.mb-4 { margin-bottom: var(--sp-4); }
.mb-5 { margin-bottom: var(--sp-5); }
.mb-6 { margin-bottom: var(--sp-6); }
.text-muted { color: var(--ink-500); }
.text-sm { font-size: 0.9rem; }
.text-xs { font-size: 0.82rem; }
.fw-700 { font-weight: 700; }
.nowrap { white-space: nowrap; }
.full { width: 100%; }
.rupee { font-variant-numeric: tabular-nums; }

/* 14. Motion -------------------------------------------------------------- */
/* Scoped to .js (set by an inline script in <head>) so that with JavaScript
   unavailable or broken the content is simply visible rather than stuck at
   opacity 0. Never hide content behind an animation that only JS can undo. */
.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .6s var(--ease), transform .6s var(--ease);
}
.reveal.is-in { opacity: 1; transform: none; }
.reveal-d1 { transition-delay: .08s; }
.reveal-d2 { transition-delay: .16s; }
.reveal-d3 { transition-delay: .24s; }

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

@media print {
  .site-header, .site-footer, .cookie-banner, .breadcrumb, .cta-band, .nav-scrim { display: none !important; }
  body { color: #000; }
  a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 0.8em; color: #555; }
}
