/* ==========================================================================
   Formee.com design system
   Base: clean white, navy ink, one brand indigo, one accent per industry.
   Signature element: the eight colour tiles of the Formee logo, used as the
   industry navigator. Everything else stays quiet.
   ========================================================================== */

@font-face {
  font-family: "Inter";
  src: url("/assets/fonts/inter-latin-wght-normal.woff2") format("woff2-variations"),
       url("/assets/fonts/inter-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --ink: #0E1A3C;
  --ink-2: #1F2A48;
  --body: #3A4560;
  --muted: #5A6480;
  --line: #E5E8F0;
  --line-2: #D5DAE6;
  --bg: #FFFFFF;
  --soft: #F6F7FB;
  --soft-2: #EEF1F8;
  --brand: #4F46E5;
  --brand-strong: #4338CA;
  --brand-soft: #EEEFFE;
  --focus: #4F46E5;
  --ok: #047857;
  --err: #B91C1C;

  /* Logo tile colours (Concept 1) */
  --t-blue: #1C4BA0; --t-purple: #7E4CCB; --t-red: #E2312F; --t-orange: #FA7A1E;
  --t-teal: #16A7AC; --t-green: #58B65C; --t-amber: #F4A51D; --t-pink: #F2649B;

  --font: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --max: 1240px;
  --gutter: clamp(20px, 4vw, 40px);
  --section: clamp(72px, 10vw, 128px);
  --r-sm: 8px; --r: 12px; --r-lg: 20px; --r-xl: 28px;
  --shadow-1: 0 1px 2px rgba(14, 26, 60, .06);
  --shadow-2: 0 12px 32px -14px rgba(14, 26, 60, .22), 0 2px 6px rgba(14, 26, 60, .05);
  --shadow-3: 0 40px 80px -30px rgba(14, 26, 60, .35);
  --header-h: 72px;
}

/* Industry accents (accent = decoration, accent-text = text-safe on white) */
.i-hr { --accent: #7C3AED; --accent-text: #6D28D9; --accent-soft: #F4EEFF; }
.i-education { --accent: #2563EB; --accent-text: #1D4ED8; --accent-soft: #EBF2FF; }
.i-security { --accent: #DC2626; --accent-text: #B91C1C; --accent-soft: #FEEFEF; }
.i-childcare { --accent: #F59E0B; --accent-text: #B45309; --accent-soft: #FFF5E1; }
.i-health { --accent: #059669; --accent-text: #047857; --accent-soft: #E6F7F0; }
.i-real-estate { --accent: #EA580C; --accent-text: #C2410C; --accent-soft: #FFF0E6; }
.i-sports { --accent: #DB2777; --accent-text: #BE185D; --accent-soft: #FDEDF4; }
.i-sales-marketing { --accent: #0891B2; --accent-text: #0E7490; --accent-soft: #E5F6FA; }

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0; background: var(--bg); color: var(--body);
  font-family: var(--font); font-size: 17px; line-height: 1.6;
  font-feature-settings: "cv11", "ss01", "ss03";
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
body.no-scroll { overflow: hidden; }
img, svg { display: block; max-width: 100%; }
a { color: var(--brand-strong); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
h1, h2, h3, h4 { color: var(--ink); margin: 0; font-weight: 750; letter-spacing: -0.022em; line-height: 1.12; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 6px; }
::selection { background: #DCDBFF; color: var(--ink); }

.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 16px; top: -100px; z-index: 1000; background: var(--ink); color: #fff; padding: 12px 18px; border-radius: var(--r-sm); font-weight: 600; text-decoration: none; }
.skip-link:focus { top: 12px; }

.container { width: 100%; max-width: calc(var(--max) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: var(--section) 0; }
.section--soft { background: var(--soft); }
.section--tight { padding: clamp(48px, 7vw, 80px) 0; }

/* Type scale */
.display { font-size: clamp(2.5rem, 5.6vw, 4.25rem); font-weight: 820; letter-spacing: -0.04em; line-height: 1.02; }
.h1 { font-size: clamp(2.25rem, 4.6vw, 3.5rem); font-weight: 800; letter-spacing: -0.035em; line-height: 1.05; }
.h2 { font-size: clamp(1.875rem, 3.4vw, 2.5rem); font-weight: 780; letter-spacing: -0.03em; }
.h3 { font-size: 1.375rem; font-weight: 720; letter-spacing: -0.02em; line-height: 1.25; }
.lead { font-size: clamp(1.125rem, 1.6vw, 1.3rem); line-height: 1.55; color: var(--body); max-width: 38em; }
.muted { color: var(--muted); }
.section-head { max-width: 46rem; margin-bottom: clamp(36px, 5vw, 56px); }
.section-head .lead { margin-top: 16px; }
.section-head--split { max-width: none; display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; }
.section-head--split > div { max-width: 40rem; }

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: var(--brand); --btn-fg: #fff; --btn-bd: var(--brand);
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 22px; border-radius: 10px; border: 1.5px solid var(--btn-bd);
  background: var(--btn-bg); color: var(--btn-fg); font-weight: 650; font-size: 1rem; letter-spacing: -0.005em;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background-color .15s ease, border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}
.btn:hover { --btn-bg: var(--brand-strong); --btn-bd: var(--brand-strong); box-shadow: 0 8px 20px -10px rgba(79, 70, 229, .7); }
.btn:active { transform: translateY(1px); }
.btn--secondary { --btn-bg: #fff; --btn-fg: var(--ink); --btn-bd: var(--line-2); }
.btn--secondary:hover { --btn-bg: #fff; --btn-bd: var(--ink); box-shadow: none; }
.btn--ghost { --btn-bg: transparent; --btn-fg: var(--ink); --btn-bd: transparent; padding: 0 12px; }
.btn--ghost:hover { --btn-bg: var(--soft-2); --btn-bd: transparent; box-shadow: none; }
.btn--light { --btn-bg: #fff; --btn-fg: var(--ink); --btn-bd: #fff; }
.btn--light:hover { --btn-bg: #EEF0FF; --btn-bd: #EEF0FF; box-shadow: none; }
.btn--outline-light { --btn-bg: transparent; --btn-fg: #fff; --btn-bd: rgba(255,255,255,.45); }
.btn--outline-light:hover { --btn-bg: rgba(255,255,255,.08); --btn-bd: #fff; box-shadow: none; }
.btn--sm { min-height: 40px; padding: 0 16px; font-size: .9375rem; border-radius: 9px; }
.btn--block { width: 100%; }
.btn .icon { width: 18px; height: 18px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

.text-link { display: inline-flex; align-items: center; gap: 6px; font-weight: 650; color: var(--ink); text-decoration: none; }
.text-link .icon { width: 16px; height: 16px; transition: transform .15s ease; }
.text-link:hover { color: var(--brand-strong); }
.text-link:hover .icon { transform: translateX(3px); }

.icon { width: 24px; height: 24px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }

/* Badges */
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; font-size: .8125rem; font-weight: 620; line-height: 1.5; white-space: nowrap; }
.badge--design { background: #FFF4D6; color: #7A4A00; box-shadow: inset 0 0 0 1px #F4D78A; }
.badge--design::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #D18A00; }
.badge--industry { background: var(--accent-soft); color: var(--accent-text); }
.badge--default { background: var(--brand-soft); color: var(--brand-strong); }

/* ---------- Header / navigation ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100; background: rgba(255,255,255,.92);
  backdrop-filter: saturate(180%) blur(14px); -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent; transition: box-shadow .2s ease, border-color .2s ease;
}
.site-header.is-scrolled { border-color: var(--line); box-shadow: 0 6px 24px -18px rgba(14,26,60,.4); }
.header-inner { display: flex; align-items: center; gap: 24px; height: var(--header-h); }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); flex: none; }
.brand-mark { width: 30px; height: 30px; }
.brand-word { font-size: 1.4rem; font-weight: 800; letter-spacing: -0.035em; }

.primary-nav { display: flex; align-items: center; gap: 2px; margin-left: 12px; }
.nav-link, .nav-trigger {
  display: inline-flex; align-items: center; gap: 4px; height: 40px; padding: 0 12px; border-radius: 8px;
  color: var(--ink-2); font-weight: 560; font-size: .97rem; text-decoration: none; background: none; border: 0; cursor: pointer;
}
.nav-link:hover, .nav-trigger:hover, .nav-trigger[aria-expanded="true"] { background: var(--soft-2); color: var(--ink); }
.nav-link[aria-current="page"] { color: var(--ink); box-shadow: inset 0 -2px 0 var(--brand); border-radius: 8px 8px 0 0; }
.nav-trigger .icon { width: 16px; height: 16px; transition: transform .2s ease; }
.nav-trigger[aria-expanded="true"] .icon { transform: rotate(180deg); }
.header-actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.menu-toggle { display: none; width: 44px; height: 44px; border-radius: 10px; border: 1px solid var(--line-2); background: #fff; align-items: center; justify-content: center; cursor: pointer; color: var(--ink); }

.nav-item { position: relative; }
.mega {
  position: absolute; top: calc(100% + 12px); left: -12px; z-index: 50;
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-3);
  padding: 20px; width: min(860px, calc(100vw - 48px));
  opacity: 0; visibility: hidden; transform: translateY(-6px); transition: opacity .16s ease, transform .16s ease, visibility 0s linear .16s;
}
.mega.is-open { opacity: 1; visibility: visible; transform: none; transition: opacity .16s ease, transform .16s ease; }
.mega-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; }
.mega-industry { display: flex; flex-direction: column; gap: 6px; padding: 14px; border-radius: var(--r); text-decoration: none; color: var(--ink); }
.mega-industry:hover { background: var(--accent-soft); }
.mega-industry-head { display: flex; align-items: center; gap: 10px; font-weight: 700; }
.mega-swatch { width: 30px; height: 30px; border-radius: 8px; background: var(--accent); display: grid; place-items: center; color: #fff; flex: none; }
.mega-swatch .icon { width: 17px; height: 17px; stroke-width: 2.1; }
.mega-industry-tools { font-size: .875rem; color: var(--muted); line-height: 1.45; }
.mega-foot { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-top: 12px; padding: 14px 14px 2px; border-top: 1px solid var(--line); font-size: .9375rem; }
.mega--products { width: min(960px, calc(100vw - 48px)); }
.mega-products { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px 20px; padding: 6px; }
.mega-group h3 { font-size: .8125rem; font-weight: 700; color: var(--accent-text); letter-spacing: 0; margin-bottom: 6px; display: flex; align-items: center; gap: 8px; }
.mega-group h3::before { content: ""; width: 8px; height: 8px; border-radius: 3px; background: var(--accent); }
.mega-group ul { list-style: none; }
.mega-group a { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 5px 0; color: var(--ink-2); text-decoration: none; font-weight: 540; font-size: .9375rem; }
.mega-group a:hover { color: var(--accent-text); text-decoration: underline; }
.mega-group .badge { font-size: .72rem; padding: 1px 8px; }

/* Mobile panel */
.mobile-panel {
  position: fixed; inset: var(--header-h) 0 0 0; z-index: 99; background: #fff; overflow-y: auto;
  padding: 16px var(--gutter) 40px; display: none; border-top: 1px solid var(--line);
}
.mobile-panel.is-open { display: block; }
.m-acc { border-bottom: 1px solid var(--line); }
.m-acc-btn, .m-link { display: flex; align-items: center; justify-content: space-between; width: 100%; min-height: 56px; padding: 0 4px; background: none; border: 0; font-size: 1.125rem; font-weight: 650; color: var(--ink); text-decoration: none; cursor: pointer; text-align: left; }
.m-link { border-bottom: 1px solid var(--line); }
.m-acc-btn .icon { width: 20px; height: 20px; transition: transform .2s ease; }
.m-acc-btn[aria-expanded="true"] .icon { transform: rotate(180deg); }
.m-acc-panel { padding: 0 0 16px; }
.m-acc-panel[hidden] { display: none; }
.m-acc-panel a { display: flex; align-items: center; gap: 12px; min-height: 48px; padding: 4px; color: var(--ink-2); text-decoration: none; font-weight: 560; border-radius: 8px; }
.m-acc-panel a:hover { background: var(--soft); }
.m-acc-panel .mega-swatch { width: 28px; height: 28px; }
.m-acc-panel .m-sub { font-size: .8125rem; font-weight: 700; color: var(--accent-text); padding: 12px 4px 2px; }
.mobile-cta { display: grid; gap: 12px; margin-top: 24px; }

/* Breadcrumbs */
.breadcrumbs { padding-top: 24px; }
.breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: .9rem; color: var(--muted); }
.breadcrumbs li { display: inline-flex; align-items: center; gap: 6px; }
.breadcrumbs li + li::before { content: ""; width: 6px; height: 6px; border-right: 1.5px solid var(--line-2); border-top: 1.5px solid var(--line-2); transform: rotate(45deg); margin-right: 4px; }
.breadcrumbs a { color: var(--muted); text-decoration: none; }
.breadcrumbs a:hover { color: var(--ink); text-decoration: underline; }
.breadcrumbs [aria-current="page"] { color: var(--ink); font-weight: 600; }

/* ---------- Home hero ---------- */
.hero { position: relative; overflow: hidden; padding: clamp(48px, 7vw, 96px) 0 clamp(64px, 8vw, 112px); }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 56px 56px; opacity: .45;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 75% 40%, #000 20%, transparent 75%);
          mask-image: radial-gradient(ellipse 70% 60% at 75% 40%, #000 20%, transparent 75%);
}
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(40px, 6vw, 88px); align-items: center; }
.hero-copy .lead { margin-top: 24px; }
.hero-copy .btn-row { margin-top: 36px; }
.hero-kicker { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 26px; padding: 6px 14px 6px 6px; border-radius: 999px; background: #fff; border: 1px solid var(--line); font-size: .9375rem; font-weight: 560; color: var(--ink-2); box-shadow: var(--shadow-1); }
.hero-kicker .mini-tiles { width: 22px; height: 22px; }
.hero-title .rule { display: block; height: 8px; width: 240px; max-width: 60%; margin-top: 22px; border-radius: 4px;
  background: linear-gradient(90deg, var(--t-blue) 0 12.5%, var(--t-purple) 12.5% 25%, var(--t-red) 25% 37.5%, var(--t-orange) 37.5% 50%, var(--t-teal) 50% 62.5%, var(--t-green) 62.5% 75%, var(--t-amber) 75% 87.5%, var(--t-pink) 87.5% 100%); }
.hero-note { margin-top: 28px; font-size: .9375rem; color: var(--muted); display: flex; flex-wrap: wrap; gap: 8px 22px; }
.hero-note span { display: inline-flex; align-items: center; gap: 8px; }
.hero-note .icon { width: 18px; height: 18px; color: var(--ok); }

/* The tile navigator: the logo, made usable */
.tilenav { position: relative; }
.tilenav-caption { font-size: .9375rem; font-weight: 600; color: var(--muted); margin-bottom: 14px; display: flex; justify-content: space-between; }
.tilenav-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(10px, 1.4vw, 16px); }
.tile {
  position: relative; aspect-ratio: 1 / 1; border-radius: clamp(14px, 1.6vw, 20px); padding: clamp(12px, 1.6vw, 20px);
  display: flex; flex-direction: column; justify-content: space-between; text-decoration: none; color: #fff; overflow: hidden;
  background: linear-gradient(165deg, var(--accent) 0%, var(--accent) 35%, var(--accent-text) 100%);
  box-shadow: 0 1px 0 rgba(255,255,255,.25) inset, 0 14px 30px -18px var(--accent-text);
  transition: transform .2s cubic-bezier(.2,.7,.3,1), box-shadow .2s ease;
}
.tile::after { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 85% 10%, rgba(255,255,255,.28), transparent 45%); pointer-events: none; }
.tile:hover, .tile:focus-visible { transform: translateY(-4px) rotate(-.6deg); box-shadow: 0 1px 0 rgba(255,255,255,.25) inset, 0 26px 40px -18px var(--accent-text); }
.tile:focus-visible { outline-offset: 4px; }
.tile .icon { width: clamp(24px, 2.6vw, 32px); height: clamp(24px, 2.6vw, 32px); stroke-width: 1.8; }
.tile-name { font-size: clamp(.9rem, 1.35vw, 1.2rem); font-weight: 750; letter-spacing: -0.015em; line-height: 1.15; }
.tile-count { display: block; font-size: clamp(.72rem, .95vw, .8125rem); font-weight: 560; opacity: .92; margin-top: 4px; }
.tile--open {
  background: transparent; color: var(--muted); box-shadow: none; border: 2px dashed var(--line-2);
  align-items: flex-start;
}
.tile--open::after { display: none; }
.tile--open:hover, .tile--open:focus-visible { color: var(--ink); border-color: var(--ink); box-shadow: none; transform: translateY(-4px); }
.tile--open .tile-name { color: inherit; }
@media (prefers-reduced-motion: no-preference) {
  .tilenav-grid .tile { animation: tile-in .6s cubic-bezier(.2,.7,.3,1) both; }
  .tilenav-grid .tile:nth-child(1) { animation-delay: .05s; } .tilenav-grid .tile:nth-child(2) { animation-delay: .1s; }
  .tilenav-grid .tile:nth-child(3) { animation-delay: .15s; } .tilenav-grid .tile:nth-child(4) { animation-delay: .2s; }
  .tilenav-grid .tile:nth-child(5) { animation-delay: .25s; } .tilenav-grid .tile:nth-child(6) { animation-delay: .3s; }
  .tilenav-grid .tile:nth-child(7) { animation-delay: .35s; } .tilenav-grid .tile:nth-child(8) { animation-delay: .4s; }
  .tilenav-grid .tile:nth-child(9) { animation-delay: .45s; }
}
@keyframes tile-in { from { opacity: 0; transform: scale(.86) translateY(10px); } to { opacity: 1; transform: none; } }

/* Assurance strip */
.assure { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: #fff; }
.assure-list { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); }
.assure-list li { display: flex; align-items: center; gap: 12px; padding: 22px 24px; font-weight: 600; color: var(--ink-2); font-size: .97rem; }
.assure-list li + li { border-left: 1px solid var(--line); }
.assure-list .icon { color: var(--brand); }

/* Problem / answer */
.problem { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: start; }
.problem-list { list-style: none; display: grid; gap: 0; border-top: 1px solid var(--line); }
.problem-list li { display: grid; grid-template-columns: 44px 1fr; gap: 16px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.problem-list .icon { color: var(--err); margin-top: 2px; }
.problem-list h3 { font-size: 1.125rem; font-weight: 700; margin-bottom: 4px; }
.answer {
  position: relative; padding: clamp(32px, 4vw, 48px); border-radius: var(--r-xl); background: var(--ink); color: #D5DBEC; overflow: hidden;
}
.answer h3 { color: #fff; font-size: clamp(1.75rem, 3vw, 2.25rem); font-weight: 800; letter-spacing: -0.03em; }
.answer { min-height: 340px; }
.answer p { margin-top: 14px; font-size: 1.125rem; max-width: 17em; }
.answer .btn-row { margin-top: 28px; }
.answer-tiles { position: absolute; right: -24px; bottom: -24px; width: 160px; opacity: .9; }

/* Industry doorways */
.doorways { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.doorway {
  position: relative; display: flex; flex-direction: column; gap: 14px; padding: 24px; min-height: 230px;
  border-radius: var(--r-lg); background: #fff; border: 1px solid var(--line); text-decoration: none; color: var(--body);
  transition: border-color .15s ease, background-color .15s ease;
}
.doorway::before { content: ""; position: absolute; left: 24px; right: 24px; top: 0; height: 4px; border-radius: 0 0 4px 4px; background: var(--accent); }
.doorway:hover { border-color: var(--accent); background: var(--accent-soft); }
.doorway-icon { width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent-text); }
.doorway:hover .doorway-icon { background: var(--accent); color: #fff; }
.doorway h3 { font-size: 1.25rem; }
.doorway p { font-size: .97rem; line-height: 1.5; }
.doorway-foot { margin-top: auto; display: flex; justify-content: space-between; align-items: center; font-size: .9rem; font-weight: 650; color: var(--accent-text); }
.doorway-foot .icon { width: 18px; height: 18px; transition: transform .15s ease; }
.doorway:hover .doorway-foot .icon { transform: translateX(4px); }

/* Catalogue (one section per industry, a card per tool) */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 40px; }
.chip {
  display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 16px; border-radius: 999px;
  border: 1px solid var(--line-2); background: #fff; color: var(--ink-2); font-weight: 600; font-size: .9375rem; cursor: pointer; text-decoration: none;
}
.chip:hover { border-color: var(--ink); }
.chip::before { content: ""; width: 9px; height: 9px; border-radius: 3px; background: var(--accent, var(--ink)); }
.chip--all::before { display: none; }
.chip[aria-pressed="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }

.cat { display: grid; grid-template-columns: 260px 1fr; gap: clamp(24px, 4vw, 56px); padding: 40px 0; border-top: 1px solid var(--line); }
.cat:first-of-type { border-top: 0; padding-top: 0; }
.cat[hidden] { display: none; }
.cat-head { position: sticky; top: calc(var(--header-h) + 24px); align-self: start; }
.cat-head .doorway-icon { margin-bottom: 16px; }
.cat-head h3 { font-size: 1.5rem; }
.cat-head p { margin-top: 8px; font-size: .97rem; color: var(--muted); }
.cat-head .text-link { margin-top: 14px; color: var(--accent-text); font-size: .9375rem; }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 16px; }

.tool-card {
  position: relative; display: flex; flex-direction: column; padding: 24px; border-radius: var(--r-lg);
  background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-1);
  transition: box-shadow .2s ease, border-color .2s ease;
}
.tool-card:hover { box-shadow: var(--shadow-2); border-color: var(--line-2); }
.tool-card-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.tool-mono { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--accent); color: #fff; font-weight: 800; font-size: 1.05rem; letter-spacing: -0.03em; }
.tool-card h3 { font-size: 1.25rem; }
.tool-card h3 a { color: inherit; text-decoration: none; }
.tool-card h3 a:hover { color: var(--accent-text); text-decoration: underline; }
.tool-card .tool-ind { font-size: .875rem; font-weight: 620; color: var(--accent-text); margin-bottom: 4px; }
.tool-card p.sum { margin-top: 8px; color: var(--body); font-size: .985rem; line-height: 1.5; }
.tool-card-actions { margin-top: auto; padding-top: 22px; display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.tool-card--soon { background: transparent; border: 2px dashed var(--line-2); box-shadow: none; justify-content: center; }
.tool-card--soon:hover { box-shadow: none; }
.tool-card--soon .tool-mono { background: var(--soft-2); color: var(--muted); }

/* Pillars & steps */
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(24px, 4vw, 48px); }
.pillar .icon { width: 28px; height: 28px; color: var(--brand); margin-bottom: 18px; }
.pillar h3 { font-size: 1.25rem; margin-bottom: 8px; }
.pillar p { color: var(--body); }

.steps { list-style: none; counter-reset: step; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.step { counter-increment: step; position: relative; padding: 28px; border-radius: var(--r-lg); background: #fff; border: 1px solid var(--line); }
.step::before { content: counter(step); display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--ink); color: #fff; font-weight: 750; margin-bottom: 20px; }
.step h3 { font-size: 1.2rem; margin-bottom: 8px; }
.step:not(:last-child)::after { content: ""; position: absolute; top: 47px; left: 80px; right: 28px; height: 2px; background: repeating-linear-gradient(90deg, var(--line-2) 0 6px, transparent 6px 12px); }

/* FAQ */
.faq { max-width: 860px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-child { border-top: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 22px 4px; font-size: 1.125rem; font-weight: 650; color: var(--ink); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .icon { width: 22px; height: 22px; transition: transform .2s ease; color: var(--muted); }
.faq details[open] summary .icon { transform: rotate(45deg); color: var(--ink); }
.faq .faq-body { padding: 0 4px 24px; max-width: 44em; }
.faq-layout { display: grid; grid-template-columns: 320px 1fr; gap: clamp(32px, 5vw, 80px); }

/* CTA band */
.cta-band { padding: clamp(40px, 6vw, 80px) 0 var(--section); }
.cta-box {
  position: relative; overflow: hidden; border-radius: var(--r-xl); background: var(--ink); color: #C9D1E6;
  padding: clamp(40px, 6vw, 72px); display: grid; grid-template-columns: 1.4fr 1fr; gap: 32px; align-items: center;
}
.cta-box h2 { color: #fff; }
.cta-box p { margin-top: 14px; font-size: 1.125rem; max-width: 32em; }
.cta-box .btn-row { justify-content: flex-end; }
.cta-tiles { position: absolute; right: -40px; top: -40px; width: 220px; opacity: .14; }

/* ---------- Industry page ---------- */
.ind-hero { position: relative; padding: clamp(32px, 5vw, 64px) 0 clamp(56px, 7vw, 96px); overflow: hidden; }
.ind-hero::after { content: ""; position: absolute; z-index: -1; right: -10%; top: -30%; width: 60%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, var(--accent-soft) 0%, transparent 65%); }
.ind-hero-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 48px; align-items: center; margin-top: 32px; }
.ind-hero .badge--industry { margin-bottom: 20px; }
.ind-hero .lead { margin-top: 20px; }
.ind-hero .btn-row { margin-top: 32px; }
.ind-emblem { justify-self: end; width: min(320px, 100%); aspect-ratio: 1; border-radius: 40px; display: grid; place-items: center; color: #fff;
  background: linear-gradient(165deg, var(--accent) 0%, var(--accent) 40%, var(--accent-text) 100%); box-shadow: 0 40px 80px -40px var(--accent-text); position: relative; }
.ind-emblem .icon { width: 42%; height: 42%; stroke-width: 1.4; }
.ind-emblem-count { position: absolute; left: -24px; bottom: 28px; background: #fff; color: var(--ink); border-radius: 14px; padding: 12px 18px; box-shadow: var(--shadow-2); font-weight: 700; font-size: .97rem; }
.ind-emblem-count strong { color: var(--accent-text); font-size: 1.5rem; margin-right: 6px; letter-spacing: -0.03em; }
.other-industries { display: flex; flex-wrap: wrap; gap: 10px; }

/* ---------- Tool page ---------- */
.tool-hero { padding: clamp(32px, 5vw, 56px) 0 clamp(56px, 7vw, 96px); }
.tool-hero-grid { display: grid; grid-template-columns: 1fr 1.08fr; gap: clamp(32px, 5vw, 72px); align-items: center; margin-top: 32px; }
.tool-hero .meta { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.tool-hero .lead { margin-top: 20px; }
.tool-hero .btn-row { margin-top: 32px; }

.preview { border-radius: var(--r-lg); background: var(--ink); padding: 10px; box-shadow: var(--shadow-3); }
.preview-bar { display: flex; align-items: center; gap: 6px; padding: 6px 8px 12px; }
.preview-bar span { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,.2); }
.preview-bar em { margin-left: 10px; font-style: normal; font-size: .8125rem; color: rgba(255,255,255,.6); }
.preview-screen { position: relative; aspect-ratio: 16 / 10; border-radius: 12px; overflow: hidden; background: #fff; display: grid; grid-template-columns: 26% 1fr; }
.pv-side { background: var(--accent-soft); padding: 16px 12px; display: flex; flex-direction: column; gap: 10px; }
.pv-side i { display: block; height: 10px; border-radius: 5px; background: color-mix(in srgb, var(--accent) 30%, transparent); }
.pv-side i:first-child { width: 60%; height: 14px; background: var(--accent); margin-bottom: 8px; }
.pv-main { padding: 18px; display: grid; grid-template-rows: auto 1fr; gap: 14px; }
.pv-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.pv-row i { height: 54px; border-radius: 10px; background: var(--soft); border: 1px solid var(--line); }
.pv-chart { border-radius: 10px; border: 1px solid var(--line); background:
   linear-gradient(to top, var(--accent-soft) 0 0) bottom left / 100% 0 no-repeat,
   repeating-linear-gradient(90deg, transparent 0 14%, color-mix(in srgb, var(--accent) 70%, transparent) 14% 20%); 
   -webkit-mask-image: linear-gradient(to top, #000 70%, transparent); mask-image: linear-gradient(to top, #000 70%, transparent); opacity: .5; }
.preview-overlay { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(14,26,60,.38); }
.preview-overlay div { display: flex; align-items: center; gap: 12px; background: #fff; color: var(--ink); padding: 12px 18px 12px 12px; border-radius: 999px; font-weight: 650; font-size: .95rem; box-shadow: var(--shadow-2); }
.preview-overlay .play { width: 36px; height: 36px; border-radius: 50%; background: var(--accent-text); display: grid; place-items: center; color: #fff; }
.preview-overlay .play .icon { width: 16px; height: 16px; fill: currentColor; stroke: none; margin-left: 2px; }

.highlights { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.highlight { padding: 28px; border-radius: var(--r-lg); background: #fff; border: 1px solid var(--line); border-top: 4px solid var(--accent); }
.highlight h3 { font-size: 1.15rem; margin-bottom: 8px; }

.walkthrough { display: grid; grid-template-columns: 1fr auto; gap: 32px; align-items: center; padding: clamp(28px, 4vw, 48px); border-radius: var(--r-xl); background: var(--accent-soft); }
.walkthrough h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); }
.walkthrough p { margin-top: 10px; max-width: 36em; }

/* ---------- Forms ---------- */
.form-layout { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.form-card { background: #fff; border: 1px solid var(--line); border-radius: var(--r-xl); padding: clamp(24px, 4vw, 40px); box-shadow: var(--shadow-2); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 16px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field--full { grid-column: 1 / -1; }
.field label, .field legend { font-weight: 620; font-size: .9375rem; color: var(--ink); }
.field .opt { font-weight: 500; color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 48px; padding: 11px 14px; border-radius: 10px; border: 1.5px solid var(--line-2); background: #fff;
  font: inherit; font-size: 1rem; color: var(--ink); transition: border-color .15s ease, box-shadow .15s ease;
}
.field textarea { min-height: 132px; resize: vertical; }
.field select { appearance: none; -webkit-appearance: none; padding-right: 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235A6480' stroke-width='2' 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 12px center; background-size: 18px; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: #AEB6CA; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px rgba(79,70,229,.18); }
.field [aria-invalid="true"] { border-color: var(--err); }
.field-error { color: var(--err); font-size: .875rem; font-weight: 560; min-height: 0; }
.field-error:empty { display: none; }
.check { display: grid; grid-template-columns: 22px 1fr; gap: 12px; align-items: start; font-size: .9375rem; line-height: 1.5; }
.check input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--brand); }
.hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-status { margin-top: 18px; padding: 14px 16px; border-radius: 10px; font-weight: 560; }
.form-status:empty { display: none; }
.form-status.is-ok { background: #E6F7F0; color: var(--ok); }
.form-status.is-err { background: #FEEFEF; color: var(--err); }
.form-foot { margin-top: 22px; display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.form-foot small { color: var(--muted); font-size: .875rem; }
.btn[aria-busy="true"] { opacity: .7; pointer-events: none; }
.form-success { text-align: left; }
.form-success .icon { width: 44px; height: 44px; color: var(--ok); margin-bottom: 16px; }
.form-success h2 { font-size: 1.6rem; }
.form-success p { margin-top: 10px; }

.expect { list-style: none; counter-reset: step; display: grid; gap: 22px; margin-top: 36px; }
.expect li { counter-increment: step; display: grid; grid-template-columns: 40px 1fr; gap: 16px; }
.expect li::before { content: counter(step); display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--brand-soft); color: var(--brand-strong); font-weight: 750; }
.expect h3 { font-size: 1.075rem; margin-bottom: 2px; }

/* ---------- Prose (about, legal) ---------- */
.prose { max-width: 46rem; }
.prose h2 { font-size: 1.6rem; margin: 48px 0 14px; }
.prose h3 { font-size: 1.2rem; margin: 28px 0 8px; }
.prose p, .prose ul { margin-top: 14px; }
.prose ul { padding-left: 22px; }
.prose li { margin-top: 6px; }
.notice { display: flex; gap: 14px; padding: 16px 18px; border-radius: var(--r); background: #FFF6DA; border: 1px solid #F1D88E; color: #5C3E00; font-size: .97rem; margin-top: 24px; }
.notice .icon { color: #A86A00; }
.page-hero { padding: clamp(32px, 5vw, 56px) 0 clamp(40px, 5vw, 64px); }
.page-hero .h1 { margin-top: 24px; }
.page-hero .lead { margin-top: 18px; }

/* Brand page */
.logo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 20px; }
.logo-card { border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; background: #fff; }
.logo-card img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: var(--soft); border-bottom: 1px solid var(--line); }
.logo-card-body { padding: 18px 20px 22px; }
.logo-card-body h2 { font-size: 1.1rem; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.logo-card-body p { margin-top: 6px; font-size: .9375rem; color: var(--muted); }
.logo-card-body a { font-size: .9375rem; font-weight: 600; }
.logo-card--default { border: 2px solid var(--brand); }

/* ---------- Footer ---------- */
.site-footer { background: var(--soft); border-top: 1px solid var(--line); padding: 72px 0 32px; font-size: .9375rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(4, 1fr); gap: 32px; }
.footer-brand p { margin-top: 14px; max-width: 22em; color: var(--muted); }
.footer-col h2 { font-size: .9375rem; font-weight: 700; margin-bottom: 14px; color: var(--ink); letter-spacing: 0; }
.footer-col ul { list-style: none; display: grid; gap: 10px; }
.footer-col a { color: var(--body); text-decoration: none; }
.footer-col a:hover { color: var(--ink); text-decoration: underline; }
.footer-bottom { margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; color: var(--muted); }
.footer-bottom ul { list-style: none; display: flex; gap: 20px; }
.footer-bottom a { color: var(--muted); }

/* 404 */
.notfound { text-align: center; padding: clamp(80px, 12vw, 160px) 0; }
.notfound .mini-tiles { width: 72px; height: 72px; margin: 0 auto 28px; }
.notfound .lead { margin: 16px auto 0; }
.notfound .btn-row { justify-content: center; margin-top: 32px; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .doorways { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-brand { grid-column: 1 / -1; }
  .mega-grid, .mega-products { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 980px) {
  .primary-nav, .header-actions .btn--secondary { display: none; }
  .menu-toggle { display: inline-flex; }
  .hero-grid, .ind-hero-grid, .tool-hero-grid, .form-layout, .problem, .faq-layout, .cta-box { grid-template-columns: 1fr; }
  .tilenav { max-width: 520px; }
  .cat { grid-template-columns: 1fr; gap: 20px; }
  .cat-head { position: static; }
  .assure-list { grid-template-columns: repeat(2, 1fr); }
  .assure-list li:nth-child(3) { border-left: 0; }
  .assure-list li:nth-child(n+3) { border-top: 1px solid var(--line); }
  .ind-emblem { justify-self: start; width: 200px; border-radius: 28px; }
  .ind-emblem-count { left: auto; right: -140px; bottom: 20px; }
  .cta-box .btn-row { justify-content: flex-start; }
  .walkthrough { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  body { font-size: 16px; }
  .header-actions .btn--primary-desktop { display: none; }
  .steps, .pillars { grid-template-columns: 1fr; }
  .step:not(:last-child)::after { display: none; }
  .form-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .answer-tiles { width: 120px; }
  .assure-list { grid-template-columns: 1fr 1fr; }
  .assure-list li { padding: 16px 12px; font-size: .9rem; gap: 10px; }
  .assure-list li + li { border-left: 0; border-top: 0; }
  .assure-list li:nth-child(even) { border-left: 1px solid var(--line); }
  .assure-list li:nth-child(n+3) { border-top: 1px solid var(--line); }
  .assure-list .icon { width: 20px; height: 20px; }
  .tile--open .tile-count { display: none; }
  .tile--open .tile-name { font-size: .85rem; }
}
@media (max-width: 560px) {
  .doorways { grid-template-columns: 1fr; }
  .doorway { min-height: 0; }
  .btn-row .btn { flex: 1 1 auto; }
  .ind-emblem { width: 150px; }
  .ind-emblem-count { right: auto; left: 170px; bottom: 50%; transform: translateY(50%); white-space: nowrap; }
}
@media (max-width: 380px) {
  .header-actions .btn--sm { padding: 0 12px; }
  .brand-word { font-size: 1.25rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
}
@media print {
  .site-header, .site-footer, .cta-band, .mobile-panel { display: none !important; }
}

/* Spacing helpers (no inline styles: keeps the Content Security Policy strict) */
.section--flush-top { padding-top: 0; }
.faq-lead { margin-top: 14px; font-size: 1.08rem; }
.faq-more { margin-top: 20px; }
.problem-lead { margin-top: 16px; }
.problem-list { margin-top: 32px; }
.other-industries--spaced { margin-top: 20px; }
.form-note { margin: 6px 0 24px; }
.btn-row--spaced { margin-top: 24px; }
.expect--plain li { grid-template-columns: 1fr; }
.expect--plain li::before { display: none; }
.form-intro { padding-top: clamp(32px, 5vw, 56px); }
.mini-tiles { width: 22px; height: 22px; }
.form-intro .lead { margin-top: 18px; }
.form-layout { padding-top: 24px; }

/* ==========================================================================
   Build 3: pricing, cart, checkout, accounts
   ========================================================================== */

/* Header additions */
.login-link { font-weight: 600; }
.cart-link { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 10px; color: var(--ink); text-decoration: none; }
.cart-link:hover { background: var(--soft-2); }
.cart-link .icon { width: 20px; height: 20px; }
.cart-link[hidden], .m-link[hidden] { display: none; }
.cart-count { position: absolute; top: 2px; right: 0; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: var(--brand); color: #fff; font-size: .72rem; font-weight: 700; display: grid; place-items: center; }
.m-link .cart-count { position: static; display: inline-grid; margin-left: 8px; }
@media (max-width: 1240px) { .nav-link--wide { display: none; } }
@media (max-width: 1120px) { .header-actions .btn--demo { display: none; } }
@media (max-width: 980px) { .header-actions .login-link { display: none; } }

/* Tool card: two buttons plus link */
.tool-card-actions { justify-content: flex-start; gap: 8px; }
.tool-card-more { margin-top: 14px; font-size: .9375rem; }

/* Billing toggle and show/hide by billing period */
[data-billing="monthly"] [data-show="annual"], [data-billing="annual"] [data-show="monthly"] { display: none; }
.billing-toggle { display: inline-flex; padding: 4px; border-radius: 999px; background: var(--soft-2); border: 1px solid var(--line); gap: 2px; flex: none; }
.billing-toggle button { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 16px; border: 0; border-radius: 999px; background: transparent; font-weight: 620; font-size: .9375rem; color: var(--ink-2); cursor: pointer; }
.billing-toggle button[aria-checked="true"] { background: #fff; color: var(--ink); box-shadow: var(--shadow-1), 0 0 0 1px var(--line); }
.save-pill { padding: 2px 8px; border-radius: 999px; background: #E6F7F0; color: var(--ok); font-size: .75rem; font-weight: 700; }

/* Home pricing teaser */
.teaser { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); border-radius: var(--r-lg); background: #fff; overflow: hidden; }
.teaser-tier { padding: 28px; }
.teaser-tier + .teaser-tier { border-left: 1px solid var(--line); }
.teaser-tier h3 { font-size: 1.05rem; font-weight: 700; }
.teaser-price { margin-top: 10px; font-size: 2rem; font-weight: 800; letter-spacing: -0.03em; color: var(--ink); line-height: 1.1; }
.teaser-from { font-size: .95rem; font-weight: 560; color: var(--muted); letter-spacing: 0; }
.pending-note { margin-top: 16px; font-size: .8125rem; color: var(--muted); }
.pending-inline { display: inline; font-size: .8125rem; color: var(--muted); }

/* Plan cards */
.pricing-controls { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; margin-bottom: 32px; }
.plan-tabs { display: inline-flex; gap: 4px; padding: 4px; border-radius: 12px; border: 1px solid var(--line); background: #fff; }
.plan-tabs button { min-height: 40px; padding: 0 16px; border: 0; border-radius: 9px; background: none; font-weight: 640; color: var(--ink-2); cursor: pointer; }
.plan-tabs button[aria-selected="true"] { background: var(--ink); color: #fff; }
.rec-select { display: flex; align-items: center; gap: 10px; margin-left: auto; font-weight: 600; font-size: .9375rem; color: var(--ink); }
.rec-select select { min-height: 42px; padding: 0 36px 0 12px; border-radius: 10px; border: 1.5px solid var(--line-2); font: inherit; font-weight: 500; background: #fff; }
.plans { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; align-items: stretch; }
.plan { position: relative; display: flex; flex-direction: column; padding: 28px 24px; border-radius: var(--r-lg); background: #fff; border: 1px solid var(--line); }
.plan.is-recommended { border: 2px solid var(--brand); box-shadow: 0 24px 48px -28px rgba(79, 70, 229, .55); }
[data-rec-scope].has-industry .plan.is-recommended { border-color: var(--accent, var(--brand)); }
.plan-rec { position: absolute; top: -13px; left: 22px; padding: 3px 12px; border-radius: 999px; background: var(--brand); color: #fff; font-size: .8125rem; font-weight: 680; white-space: nowrap; }
.plan-rec--inline { position: static; margin-left: 6px; font-size: .72rem; padding: 2px 8px; }
.plan-rec[hidden] { display: none; }
.plan-name { font-size: 1.15rem; font-weight: 720; }
.plan-price { margin-top: 14px; color: var(--muted); font-size: .9375rem; }
.plan-price strong { font-size: 2.4rem; font-weight: 820; letter-spacing: -0.04em; color: var(--ink); margin-right: 2px; }
.plan--enterprise .plan-price strong { font-size: 1.75rem; letter-spacing: -0.03em; }
.plan-sub { margin-top: 4px; font-size: .9rem; color: var(--muted); min-height: 1.5em; }
.plan-pending { margin-top: 12px; font-size: .75rem; line-height: 1.4; color: var(--muted); padding: 6px 10px; border-radius: 8px; background: var(--soft); }
.plan .btn { margin-top: 20px; white-space: normal; text-align: center; line-height: 1.25; padding-top: 10px; padding-bottom: 10px; }
.plan-points { list-style: none; margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--line); display: grid; gap: 10px; font-size: .9375rem; }
.plan-points li { display: grid; grid-template-columns: 20px 1fr; gap: 8px; }
.plan-points .icon { width: 18px; height: 18px; color: var(--ok); margin-top: 3px; }
.pricing-foot { margin-top: 18px; font-size: .9375rem; color: var(--muted); }
.pricing-aside { margin-top: 20px; display: flex; gap: 12px; align-items: flex-start; padding: 16px 18px; border-radius: var(--r); background: var(--accent-soft, var(--soft)); }
.pricing-aside .icon { color: var(--accent-text, var(--brand)); }

/* Bundles */
.bundles { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 16px; }
.bundle { display: flex; flex-direction: column; padding: 24px; border-radius: var(--r-lg); background: #fff; border: 1px solid var(--line); border-top: 4px solid var(--accent); }
.bundle-head { display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: start; margin-bottom: 18px; }
.bundle-head p { font-size: .9rem; margin-top: 4px; }
.badge--save { background: #E6F7F0; color: var(--ok); }
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.bundle-prices { width: 100%; border-collapse: collapse; font-size: .9375rem; }
.bundle-prices th, .bundle-prices td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--line); }
.bundle-prices thead th { font-size: .8125rem; color: var(--muted); font-weight: 650; }
.bundle-prices tbody th { font-weight: 650; color: var(--ink); }
.bundle-prices strong { color: var(--ink); font-size: 1.05rem; }
.bundle-prices s { color: var(--muted); }
.bundle-prices tr.is-recommended { background: var(--accent-soft); }
.bundle .btn { margin-top: 20px; }
.bundle-feature { display: grid; grid-template-columns: minmax(0, 1.4fr) 1fr; gap: 32px; align-items: start; }
.bundle-aside p { margin-top: 10px; }

/* Comparison table */
.cmp-scroll { border: 1px solid var(--line); border-radius: var(--r-lg); background: #fff; }
.cmp-scroll { overflow: visible; }
.cmp { width: 100%; border-collapse: separate; border-spacing: 0; font-size: .9375rem; }
.cmp th, .cmp td { padding: 14px 18px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.cmp thead th { position: sticky; top: var(--header-h); z-index: 2; background: #fff; font-size: 1rem; font-weight: 720; color: var(--ink); box-shadow: 0 1px 0 var(--line); }
.cmp thead th:first-child { border-top-left-radius: var(--r-lg); }
.cmp thead th:last-child { border-top-right-radius: var(--r-lg); }
.cmp tbody th { font-weight: 600; color: var(--ink-2); width: 28%; }
.cmp tbody tr:last-child th, .cmp tbody tr:last-child td { border-bottom: 0; }
.cmp .icon { width: 20px; height: 20px; color: var(--ok); }
@media (max-width: 860px) { .cmp-scroll { overflow-x: auto; } .cmp thead th { position: static; } .cmp { min-width: 720px; } }

/* Trust grid */
.trust-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.trust-item { padding: 26px; border-radius: var(--r-lg); border: 1px solid var(--line); background: #fff; }
.trust-item > .icon { color: var(--brand); margin-bottom: 14px; }
.trust-item h3 { font-size: 1.1rem; margin-bottom: 8px; }
.trust-item p { font-size: .97rem; }
.region-list { list-style: none; margin-top: 10px; display: grid; gap: 6px; font-size: .9375rem; }
.region-list li { padding-left: 16px; position: relative; }
.region-list li::before { content: ""; position: absolute; left: 0; top: .6em; width: 6px; height: 6px; border-radius: 2px; background: var(--brand); }
.pay-badges { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.pay-badges li { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 8px; border: 1px solid var(--line-2); background: #fff; font-size: .8125rem; font-weight: 650; color: var(--ink-2); }
.pay-badges .icon { width: 16px; height: 16px; }

/* Checkout steps */
.checkout-steps { list-style: none; display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; margin: 24px 0 36px; counter-reset: none; }
.cstep { display: flex; align-items: center; gap: 10px; padding-top: 12px; border-top: 3px solid var(--line); font-size: .9rem; font-weight: 600; color: var(--muted); }
.cstep-n { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; flex: none; background: var(--soft-2); color: var(--muted); font-size: .8125rem; font-weight: 750; }
.cstep--done { border-color: var(--ok); color: var(--ink-2); }
.cstep--done .cstep-n { background: #E6F7F0; color: var(--ok); }
.cstep--current { border-color: var(--brand); color: var(--ink); }
.cstep--current .cstep-n { background: var(--brand); color: #fff; }
@media (max-width: 720px) { .cstep-l { display: none; } .cstep--current .cstep-l { display: inline; } .checkout-steps { grid-template-columns: repeat(5, auto); } }

/* Cart / checkout layout */
.cart-layout { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 32px; align-items: start; }
.cart-main > .h2 { margin-bottom: 6px; }
.cart-lead { font-size: 1.05rem; margin-bottom: 24px; }
.panel { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(20px, 3vw, 28px); margin-top: 16px; }
.panel-title { font-size: 1.15rem; font-weight: 720; margin-bottom: 16px; }
.panel-title--spaced { margin-top: 32px; }
.panel-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 16px; }
.panel-head .panel-title { margin-bottom: 0; }
.panel-foot { margin-top: 16px; font-size: .9rem; color: var(--muted); display: flex; gap: 8px; align-items: flex-start; flex-wrap: wrap; }
.panel-foot .icon { width: 18px; height: 18px; color: var(--muted); }
.cart-items { list-style: none; display: grid; gap: 8px; }
.cart-item { display: grid; grid-template-columns: 10px 1fr auto auto; gap: 14px; align-items: center; padding: 14px 16px; border-radius: var(--r); background: var(--soft); }
.cart-item::before { content: ""; width: 10px; height: 36px; border-radius: 4px; background: var(--accent); }
.cart-item-name { font-weight: 680; color: var(--ink); }
.cart-item-meta { font-size: .875rem; color: var(--muted); }
.cart-item-price { font-weight: 700; color: var(--ink); white-space: nowrap; }
.cart-remove { border: 0; background: none; color: var(--muted); width: 40px; height: 40px; border-radius: 8px; cursor: pointer; display: grid; place-items: center; }
.cart-remove:hover { background: #fff; color: var(--err); }
.cart-remove .icon { width: 18px; height: 18px; }
.cart-empty { padding: 18px; border: 2px dashed var(--line-2); border-radius: var(--r); color: var(--muted); }
.add-row { margin-top: 18px; display: grid; gap: 8px; }
.add-row label { font-weight: 620; font-size: .9375rem; color: var(--ink); }
.add-controls { display: flex; gap: 10px; flex-wrap: wrap; }
.add-controls select { flex: 1 1 240px; min-height: 48px; padding: 0 40px 0 14px; border-radius: 10px; border: 1.5px solid var(--line-2); font: inherit; background: #fff; }
.notes { list-style: none; margin-top: 10px; font-size: .875rem; color: var(--muted); }
.tier-options { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.tier-option { position: relative; display: block; cursor: pointer; }
.tier-option input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.tier-option-body { display: grid; gap: 4px; height: 100%; padding: 16px; border-radius: var(--r); border: 1.5px solid var(--line-2); background: #fff; transition: border-color .15s ease, box-shadow .15s ease; }
.tier-option input:checked + .tier-option-body { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(79, 70, 229, .18); }
.tier-option input:focus-visible + .tier-option-body { outline: 3px solid var(--focus); outline-offset: 2px; }
.tier-option-name { font-weight: 720; color: var(--ink); }
.tier-option-price { font-weight: 650; color: var(--ink-2); font-size: .9375rem; }
.tier-option-note { font-size: .8125rem; color: var(--muted); }

.stack-map { display: grid; gap: 14px; }
.stack-group { display: grid; grid-template-columns: 150px 1fr; gap: 14px; align-items: start; }
.stack-group-name { display: flex; align-items: center; gap: 8px; font-weight: 680; color: var(--accent-text); font-size: .9375rem; padding-top: 10px; }
.stack-group-name::before { content: ""; width: 10px; height: 10px; border-radius: 3px; background: var(--accent); }
.stack-tiles { display: flex; flex-wrap: wrap; gap: 8px; }
.stack-tile { display: inline-flex; align-items: center; min-height: 42px; padding: 0 14px; border-radius: 10px; color: #fff; font-weight: 650; font-size: .9rem; background: linear-gradient(165deg, var(--accent) 0%, var(--accent-text) 100%); }

.cart-summary { position: sticky; top: calc(var(--header-h) + 16px); }
.summary-card { margin-top: 16px; padding: 24px; border-radius: var(--r-lg); background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-2); }
.sum-lines { list-style: none; display: grid; gap: 10px; margin-bottom: 16px; }
.sum-lines li { display: flex; justify-content: space-between; gap: 12px; font-size: .9375rem; }
.sum-lines .sub { display: block; font-size: .8125rem; color: var(--muted); }
.sum-row { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); font-size: .9375rem; }
.sum-row--save { color: var(--ok); font-weight: 620; }
.sum-total { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 14px 0 6px; border-top: 1px solid var(--line); }
.sum-total strong { font-size: 1.6rem; font-weight: 820; letter-spacing: -0.03em; color: var(--ink); }
.sum-note { font-size: .875rem; color: var(--muted); margin-bottom: 14px; }
.sum-trial { margin: 10px 0 16px; padding: 12px 14px; border-radius: var(--r); background: #E6F7F0; color: #064E3B; font-size: .9rem; font-weight: 560; }
.sum-trial--warn { background: #FFF6DA; color: #5C3E00; }
.summary-card .btn[aria-disabled="true"] { opacity: .5; pointer-events: none; }
.summary-trust { list-style: none; margin-top: 18px; display: grid; gap: 8px; font-size: .8125rem; color: var(--muted); }
.summary-trust li { display: grid; grid-template-columns: 18px 1fr; gap: 8px; }
.summary-trust .icon { width: 16px; height: 16px; color: var(--ok); margin-top: 2px; }
.summary-edit { margin-top: 4px; font-size: .9rem; }

.pay-options { border: 0; padding: 0; margin: 0; display: grid; gap: 10px; }
.pay-option { display: grid; grid-template-columns: 22px 1fr; gap: 12px; align-items: center; padding: 16px; border-radius: var(--r); border: 1.5px solid var(--line-2); cursor: pointer; }
.pay-option input { width: 20px; height: 20px; accent-color: var(--brand); margin: 0; }
.pay-option span span { display: block; font-size: .875rem; }
.pay-option:has(input:checked) { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(79, 70, 229, .15); }
.pay-option.is-unavailable { opacity: .55; }
.form-grid--single { grid-template-columns: 1fr; }
.field-hint { font-size: .8125rem; color: var(--muted); }

/* Auth */
.auth { background: var(--soft); padding-bottom: var(--section); }
.auth-wrap { display: flex; justify-content: center; padding-top: clamp(32px, 6vw, 72px); }
.auth-card { width: min(460px, 100%); background: #fff; border: 1px solid var(--line); border-radius: var(--r-xl); padding: clamp(24px, 5vw, 40px); box-shadow: var(--shadow-2); }
.auth-logo { display: inline-block; margin-bottom: 20px; }
.auth-logo .brand-mark { width: 40px; height: 40px; }
.auth-lead { margin: 8px 0 24px; }
.auth-aside { margin: -4px 0 18px; font-size: .9375rem; text-align: right; }
.auth-foot { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); text-align: center; font-size: .9375rem; }
.auth-done .icon { width: 40px; height: 40px; color: var(--brand); margin-bottom: 12px; }
.auth-done p { margin-top: 8px; }
.pw-wrap { position: relative; }
.pw-wrap input { padding-right: 72px; }
.pw-toggle { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); min-height: 36px; padding: 0 10px; border: 0; border-radius: 8px; background: var(--soft-2); font-size: .8125rem; font-weight: 650; color: var(--ink-2); cursor: pointer; }

/* Account */
.account-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; padding-top: 32px; }
.account-tabs { display: flex; gap: 6px; margin-top: 24px; border-bottom: 1px solid var(--line); }
.account-tabs a { padding: 10px 14px; font-weight: 620; color: var(--ink-2); text-decoration: none; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.account-tabs a:hover { color: var(--ink); border-color: var(--line-2); }
.banner { display: flex; gap: 14px; align-items: flex-start; justify-content: space-between; flex-wrap: wrap; padding: 16px 18px; border-radius: var(--r); margin-top: 16px; font-weight: 540; }
.banner--warn { background: #FFF6DA; border: 1px solid #F1D88E; color: #5C3E00; }
.banner--err { background: #FEEFEF; border: 1px solid #F5C2C2; color: #7F1D1D; }
.banner--info { background: var(--brand-soft); border: 1px solid #D9DBFB; color: #312E81; }
.sub-card { border: 1px solid var(--line); border-radius: var(--r-lg); padding: 22px; }
.sub-card + .sub-card { margin-top: 14px; }
.sub-top { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; align-items: flex-start; }
.sub-title { font-size: 1.2rem; font-weight: 750; color: var(--ink); }
.sub-meta { margin-top: 4px; color: var(--muted); font-size: .9375rem; }
.sub-price { font-size: 1.35rem; font-weight: 800; color: var(--ink); letter-spacing: -0.02em; text-align: right; }
.sub-price span { display: block; font-size: .8125rem; font-weight: 560; color: var(--muted); letter-spacing: 0; }
.sub-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px 24px; margin: 18px 0; padding: 16px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.sub-facts dt { font-size: .8125rem; color: var(--muted); font-weight: 600; }
.sub-facts dd { margin: 2px 0 0; font-weight: 620; color: var(--ink); }
.sub-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.sub-panel { margin-top: 16px; padding: 18px; border-radius: var(--r); background: var(--soft); }
.sub-panel[hidden] { display: none; }
.sub-panel h3 { font-size: 1.05rem; margin-bottom: 10px; }
.sub-panel .tier-options { margin-bottom: 14px; }
.check-list { list-style: none; display: grid; gap: 8px; margin: 8px 0 14px; }
.status { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; font-size: .8125rem; font-weight: 680; }
.status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.status--active { background: #E6F7F0; color: var(--ok); }
.status--trialing { background: var(--brand-soft); color: var(--brand-strong); }
.status--past_due, .status--suspended { background: #FEEFEF; color: var(--err); }
.status--canceled, .status--incomplete { background: var(--soft-2); color: var(--muted); }
.inv-table { width: 100%; border-collapse: collapse; font-size: .9375rem; }
.inv-table th, .inv-table td { text-align: left; padding: 12px 10px; border-bottom: 1px solid var(--line); }
.inv-table th { font-size: .8125rem; color: var(--muted); font-weight: 650; }
.profile-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.empty-state { padding: 28px; border: 2px dashed var(--line-2); border-radius: var(--r-lg); text-align: center; }
.empty-state p { margin: 8px 0 18px; color: var(--muted); }

/* Success */
.success-wrap { max-width: 760px; }
.success-head { display: flex; gap: 16px; align-items: flex-start; }
.success-head .icon { width: 44px; height: 44px; color: var(--ok); flex: none; }
.next-steps { list-style: none; counter-reset: step; display: grid; gap: 14px; margin-top: 20px; }
.next-steps li { counter-increment: step; display: grid; grid-template-columns: 32px 1fr; gap: 12px; }
.next-steps li::before { content: counter(step); width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand-strong); font-weight: 750; font-size: .875rem; }

/* Invoice page (printable) */
.invoice { max-width: 820px; padding-top: 48px; padding-bottom: 64px; }
.invoice-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; padding-bottom: 24px; border-bottom: 2px solid var(--ink); }
.invoice-parties { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin: 28px 0; }
.invoice-parties h2 { font-size: .8125rem; color: var(--muted); margin-bottom: 6px; }
.invoice-table { width: 100%; border-collapse: collapse; margin-bottom: 24px; }
.invoice-table th, .invoice-table td { text-align: left; padding: 12px 8px; border-bottom: 1px solid var(--line); }
.invoice-table td:last-child, .invoice-table th:last-child { text-align: right; }
.invoice-table tfoot th { font-size: 1.1rem; border-top: 2px solid var(--ink); }

@media (max-width: 1100px) {
  .plans { grid-template-columns: repeat(2, 1fr); row-gap: 28px; }
  .trust-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 980px) {
  .cart-layout, .bundle-feature, .profile-grid { grid-template-columns: 1fr; }
  .cart-summary { position: static; }
  .teaser { grid-template-columns: repeat(2, 1fr); }
  .teaser-tier:nth-child(3) { border-left: 0; }
  .teaser-tier:nth-child(n+3) { border-top: 1px solid var(--line); }
  .rec-select { margin-left: 0; }
}
@media (max-width: 720px) {
  .plans, .trust-grid, .tier-options { grid-template-columns: 1fr; }
  .stack-group { grid-template-columns: 1fr; gap: 6px; }
  .stack-group-name { padding-top: 0; }
  .invoice-parties { grid-template-columns: 1fr; }
  .sub-price { text-align: left; }
}
@media (max-width: 560px) {
  .teaser { grid-template-columns: 1fr; }
  .teaser-tier + .teaser-tier { border-left: 0; border-top: 1px solid var(--line); }
  .cart-item { grid-template-columns: 10px 1fr auto; }
  .cart-item-price { grid-column: 2; }
}
@media print {
  .invoice-page .site-header, .invoice-page .site-footer { display: none; }
}
[hidden] { display: none !important; }
[data-rec-scope].has-industry .plan-rec { background: var(--accent-text, var(--brand)); }
.table-scroll { position: relative; }
