/* ==========================================================================
   Product Solutions Center — bright catalog.
   Indigo surface range + disciplined amber accent, Plus Jakarta Sans,
   tactile tiles, and a filter interaction that is the signature element.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Tokens
   -------------------------------------------------------------------------- */
:root {
  /* Indigo — a real range, not one flat value. */
  --in-950: #0E1435;
  --in-900: #171F4F;
  --in-800: #1F2B6D;
  --in-700: #2B3A8F;
  --in-600: #3746A6;
  --in-500: #4657B8;
  --in-400: #6C7ACD;
  --in-300: #9AA4E1;
  --in-200: #C5CCEF;
  --in-100: #E2E7F9;
  --in-50:  #F1F4FD;

  /* Legacy aliases so every existing rule keeps working. */
  --indigo: var(--in-700);
  --indigo-dark: var(--in-800);
  --indigo-soft: var(--in-500);

  /* Amber — an accent, used sparingly and on purpose. */
  --am-600: #A8680A;
  --am-500: #C77E05;
  --am-400: #F59E0B;
  --am-100: #FEF3E0;
  --am-50:  #FFFAF1;
  --amber: var(--am-400);
  --amber-dark: var(--am-500);

  /* Surfaces */
  --surface-0: #FFFFFF;
  --surface-1: #F9FAFE;
  --surface-2: #F1F4FD;
  --surface-3: #E6EBF9;
  --white: var(--surface-0);
  --tint: var(--in-100);
  --tint-2: var(--surface-1);

  /* Ink */
  --ink:    #141A33;
  --ink-2:  #303755;
  --body:   #474E68;
  --muted:  #646B89;
  --line:   #E1E6F3;
  --line-2: #CDD5EE;

  --font: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  /* Fluid type scale */
  --step--2: clamp(0.72rem, 0.705rem + 0.07vw, 0.77rem);
  --step--1: clamp(0.84rem, 0.815rem + 0.13vw, 0.92rem);
  --step-0:  clamp(1rem,    0.975rem + 0.13vw, 1.07rem);
  --step-1:  clamp(1.13rem, 1.09rem + 0.22vw, 1.26rem);
  --step-2:  clamp(1.31rem, 1.23rem + 0.40vw, 1.55rem);
  --step-3:  clamp(1.55rem, 1.41rem + 0.68vw, 1.94rem);
  --step-4:  clamp(1.85rem, 1.63rem + 1.06vw, 2.45rem);
  --step-5:  clamp(2.15rem, 1.82rem + 1.62vw, 3.05rem);
  --step-6:  clamp(2.55rem, 2.05rem + 2.45vw, 3.85rem);

  --lh-display: 1.06;
  --lh-title: 1.18;
  --lh-body: 1.62;

  /* Radii */
  --r-xs: 6px; --r-sm: 10px; --r-md: 14px; --r-lg: 20px; --r-xl: 28px; --r-pill: 999px;

  /* Shadows — layered, low opacity, tinted with the indigo hue. */
  --shadow-sm: 0 1px 1px rgba(20, 26, 51, 0.04),
               0 1px 3px rgba(20, 26, 51, 0.05);
  --shadow-md: 0 1px 2px rgba(20, 26, 51, 0.04),
               0 5px 12px rgba(20, 26, 51, 0.06),
               0 10px 24px rgba(20, 26, 51, 0.04);
  --shadow-lg: 0 2px 4px rgba(20, 26, 51, 0.04),
               0 12px 26px rgba(20, 26, 51, 0.08),
               0 26px 52px rgba(20, 26, 51, 0.07);
  --shadow-xl: 0 6px 12px rgba(20, 26, 51, 0.05),
               0 22px 44px rgba(20, 26, 51, 0.10),
               0 48px 90px rgba(20, 26, 51, 0.09);
  --shadow-focus: 0 0 0 4px rgba(43, 58, 143, 0.16);

  /* Legacy shadow aliases */
  --sh-1: var(--shadow-sm);
  --sh-2: var(--shadow-md);
  --sh-3: var(--shadow-lg);

  /* Motion */
  --ease: cubic-bezier(.2, .7, .3, 1);
  --ease-out: cubic-bezier(.16, .84, .44, 1);
  --t-fast: 150ms;
  --t-mid: 240ms;
  --t-slow: 560ms;

  --s1: 4px;  --s2: 8px;  --s3: 12px; --s4: 16px; --s5: 24px;
  --s6: 32px; --s7: 44px; --s8: 64px; --s9: 88px; --s10: 120px;

  --maxw: 1200px;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 92px;
}

body {
  margin: 0;
  background: var(--surface-0);
  color: var(--body);
  font-family: var(--font);
  font-size: var(--step-0);
  line-height: var(--lh-body);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "kern" 1, "liga" 1;
}

img, svg { max-width: 100%; display: block; }

[hidden] { display: none !important; }

a { color: var(--in-700); text-underline-offset: 2px; transition: color var(--t-fast) var(--ease); }
a:hover { color: var(--in-800); }

a:focus-visible, button:focus-visible, input:focus-visible,
select:focus-visible, textarea:focus-visible, summary:focus-visible {
  outline: 2px solid var(--in-700);
  outline-offset: 2px;
  border-radius: var(--r-xs);
}

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

.skip { position: absolute; left: -9999px; top: 0; background: var(--in-700); color: #fff; padding: var(--s3) var(--s4); border-radius: 0 0 var(--r-md) 0; z-index: 90; font-weight: 700; }
.skip:focus { left: 0; }

.vh { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--s5); }

/* --------------------------------------------------------------------------
   2. Type
   -------------------------------------------------------------------------- */
h1, h2, h3, h4 {
  font-family: var(--font);
  color: var(--ink);
  margin: 0 0 var(--s4);
  line-height: var(--lh-title);
  letter-spacing: -0.022em;
  font-weight: 800;
  text-wrap: balance;
}
h1 { font-size: var(--step-6); line-height: var(--lh-display); letter-spacing: -0.032em; }
h2 { font-size: var(--step-4); letter-spacing: -0.026em; }
h3 { font-size: var(--step-1); font-weight: 700; letter-spacing: -0.016em; }
h4 { font-size: var(--step-0); font-weight: 700; }
p  { margin: 0 0 var(--s4); text-wrap: pretty; }

.kicker {
  display: inline-flex; align-items: center; gap: var(--s2);
  font-size: var(--step--2); font-weight: 700; letter-spacing: 0.09em; text-transform: uppercase;
  color: var(--in-700); background: var(--in-50);
  border: 1px solid var(--in-100);
  padding: 6px 13px; border-radius: var(--r-pill);
  margin: 0 0 var(--s4);
}
.kicker-amber { color: var(--am-600); background: var(--am-50); border-color: #F6E4C4; }
.lead { font-size: var(--step-1); color: var(--body); max-width: 62ch; }
.small { font-size: var(--step--1); }
.muted { color: var(--muted); }
.num-tab { font-variant-numeric: tabular-nums; }

/* --------------------------------------------------------------------------
   3. Top bar — sticky, shrinks on scroll
   -------------------------------------------------------------------------- */
.topbar {
  position: sticky; top: 0; z-index: 70;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: saturate(1.7) blur(14px);
  -webkit-backdrop-filter: saturate(1.7) blur(14px);
  border-bottom: 1px solid transparent;
  transition: box-shadow var(--t-mid) var(--ease),
              border-color var(--t-mid) var(--ease),
              background var(--t-mid) var(--ease);
}
.topbar.is-stuck {
  box-shadow: var(--shadow-md);
  border-bottom-color: var(--line);
  background: rgba(255, 255, 255, 0.94);
}
.topbar-in {
  display: flex; align-items: center; justify-content: space-between; gap: var(--s5);
  min-height: 76px;
  transition: min-height var(--t-mid) var(--ease);
}
.topbar.is-stuck .topbar-in { min-height: 62px; }
.topbar .logo-mark svg { transition: transform var(--t-mid) var(--ease); transform-origin: left center; }
.topbar.is-stuck .logo-mark svg { transform: scale(0.88); }

.logo { display: inline-flex; align-items: center; gap: var(--s3); text-decoration: none; }
.logo-mark { display: inline-flex; }
.logo-text { font-weight: 800; font-size: 1.06rem; letter-spacing: -0.035em; color: var(--ink); }
.logo-text-alt { color: var(--in-700); }

.mainnav { display: flex; align-items: center; gap: var(--s6); }
.mainnav ul { display: flex; align-items: center; gap: var(--s6); list-style: none; margin: 0; padding: 0; }
.mainnav a {
  font-size: 0.94rem; font-weight: 600; color: var(--ink-2); text-decoration: none;
  position: relative; padding: 6px 0;
}
.mainnav a::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: 0; height: 2px;
  background: var(--am-400); border-radius: 2px; transition: right var(--t-mid) var(--ease);
}
.mainnav a:hover { color: var(--in-700); }
.mainnav a:hover::after, .mainnav a[aria-current="page"]::after { right: 0; }
.mainnav a[aria-current="page"] { color: var(--in-700); }
.mainnav .nav-cta::after { display: none; }
/* .mainnav a would otherwise win the cascade and paint the CTA label dark on indigo. */
.mainnav a.nav-cta,
.mainnav a.nav-cta:hover { color: #fff; flex: 0 0 auto; }

.burger { display: none; width: 42px; height: 38px; border: 1px solid var(--line); background: var(--white); border-radius: var(--r-sm); cursor: pointer; padding: 9px 10px; }
.burger span { display: block; height: 2px; background: var(--ink); border-radius: 2px; margin: 3px 0; transition: transform var(--t-mid) var(--ease), opacity var(--t-fast) var(--ease); }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }

/* --------------------------------------------------------------------------
   4. Buttons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s2);
  font-family: var(--font); font-size: 0.95rem; font-weight: 700;
  padding: 13px 22px; border-radius: var(--r-pill);
  border: 1.5px solid transparent; cursor: pointer; text-decoration: none;
  white-space: nowrap;
  transition: transform var(--t-fast) var(--ease),
              box-shadow var(--t-fast) var(--ease),
              background var(--t-fast) var(--ease),
              color var(--t-fast) var(--ease),
              border-color var(--t-fast) var(--ease);
}
.btn-sm { padding: 9px 16px; font-size: 0.88rem; }
.btn-primary { background: var(--in-700); color: #fff; box-shadow: 0 2px 6px rgba(43, 58, 143, 0.22); }
.btn-primary:hover { background: var(--in-800); color: #fff; transform: translateY(-2px); box-shadow: 0 8px 20px rgba(43, 58, 143, 0.28); }
.btn-amber { background: var(--am-400); color: #40300A; box-shadow: 0 2px 6px rgba(197, 126, 5, 0.24); }
.btn-amber:hover { background: var(--am-500); color: #fff; transform: translateY(-2px); box-shadow: 0 8px 20px rgba(197, 126, 5, 0.28); }
.btn-ghost { background: var(--white); color: var(--in-700); border-color: var(--line-2); }
.btn-ghost:hover { border-color: var(--in-500); background: var(--in-50); transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.btn-onblue { background: var(--white); color: var(--in-800); }
.btn-onblue:hover { background: var(--in-50); color: var(--in-900); transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.btn-outline-light { background: transparent; color: #fff; border-color: rgba(255,255,255,0.42); }
.btn-outline-light:hover { background: rgba(255,255,255,0.14); color: #fff; border-color: #fff; transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(0.985); }

/* --------------------------------------------------------------------------
   5. Hero — layered, with a tile mosaic that breaks the boundary
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  z-index: 1;
  isolation: isolate;
  background:
    radial-gradient(90% 120% at 88% -10%, var(--in-100) 0%, rgba(226, 231, 249, 0) 58%),
    radial-gradient(70% 90% at 4% 0%, var(--am-50) 0%, rgba(255, 250, 241, 0) 55%),
    linear-gradient(178deg, var(--surface-1) 0%, var(--surface-0) 68%);
  border-bottom: 1px solid var(--line);
  padding-bottom: var(--s8);
}
.hero::before {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  background-image:
    linear-gradient(to right, rgba(43, 58, 143, 0.045) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(43, 58, 143, 0.045) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(80% 70% at 60% 10%, #000 0%, transparent 78%);
  -webkit-mask-image: radial-gradient(80% 70% at 60% 10%, #000 0%, transparent 78%);
}
.hero-in {
  display: grid; grid-template-columns: 1.06fr 0.94fr; gap: var(--s8);
  align-items: center;
  /* Keep the .wrap gutter — a bare `padding: x 0` here would kill it. */
  padding: var(--s8) var(--s5) 0;
}
.hero h1 { margin-bottom: var(--s5); max-width: 15ch; }
.hero h1 .hl {
  color: var(--in-700);
  background-image: linear-gradient(transparent 62%, rgba(245, 158, 11, 0.34) 62%, rgba(245, 158, 11, 0.34) 93%, transparent 93%);
}
.hero-lead { font-size: var(--step-1); max-width: 48ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: var(--s3); margin-top: var(--s6); }

.hero-facts {
  display: flex; flex-wrap: wrap; gap: var(--s5) var(--s6);
  margin-top: var(--s7); padding-top: var(--s5);
  border-top: 1px solid var(--line);
  list-style: none; padding-left: 0;
}
.hero-fact { display: flex; align-items: flex-start; gap: var(--s3); max-width: 22ch; font-size: var(--step--1); color: var(--muted); margin: 0; line-height: 1.45; }
.hero-fact svg { flex: 0 0 auto; color: var(--in-700); margin-top: 3px; }

/* Tile mosaic — tactile, and it overhangs the hero's lower boundary. */
.mosaic-wrap { position: relative; margin-bottom: calc(var(--s8) * -1 - var(--s5)); }
.mosaic-wrap::before {
  content: "";
  position: absolute; inset: -6% -8% -4% -6%;
  background: radial-gradient(60% 60% at 50% 40%, rgba(43, 58, 143, 0.12), rgba(43, 58, 143, 0) 70%);
  filter: blur(6px);
  z-index: 0;
}
.mosaic { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s3); position: relative; z-index: 1; }
.tile {
  background: linear-gradient(178deg, var(--surface-0) 0%, var(--surface-1) 100%);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: var(--s4) var(--s3);
  text-align: center;
  box-shadow: var(--shadow-sm), inset 0 1px 0 rgba(255, 255, 255, 0.9);
  display: flex; flex-direction: column; align-items: center; gap: var(--s2);
  transition: transform var(--t-mid) var(--ease),
              box-shadow var(--t-mid) var(--ease),
              border-color var(--t-mid) var(--ease);
}
.tile:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg), inset 0 1px 0 rgba(255, 255, 255, 0.9);
  border-color: var(--line-2);
}
.tile:nth-child(2) { transform: translateY(-10px); }
.tile:nth-child(2):hover { transform: translateY(-16px); }
.tile:nth-child(5) { transform: translateY(10px); }
.tile:nth-child(5):hover { transform: translateY(4px); }
.tile-ico {
  width: 44px; height: 44px; border-radius: var(--r-md);
  background: linear-gradient(160deg, var(--in-100), var(--in-50));
  color: var(--in-700); display: grid; place-items: center;
  box-shadow: inset 0 0 0 1px rgba(43, 58, 143, 0.08);
  transition: transform var(--t-mid) var(--ease);
}
.tile:hover .tile-ico { transform: scale(1.06) rotate(-3deg); }
.tile:nth-child(3n+2) .tile-ico {
  background: linear-gradient(160deg, var(--am-100), var(--am-50));
  color: var(--am-600);
  box-shadow: inset 0 0 0 1px rgba(197, 126, 5, 0.12);
}
.tile span { font-size: 0.77rem; font-weight: 600; color: var(--ink-2); line-height: 1.3; }

/* --------------------------------------------------------------------------
   6. Sections
   -------------------------------------------------------------------------- */
.section { padding: var(--s10) 0; }
.section-alt { background: var(--surface-1); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.sec-head { max-width: 62ch; margin-bottom: var(--s7); }
.sec-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.sec-head p { margin-bottom: 0; }

/* --------------------------------------------------------------------------
   7. Guided match
   -------------------------------------------------------------------------- */
.match {
  display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: var(--s7);
  background: linear-gradient(168deg, var(--surface-0), var(--surface-1));
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  padding: var(--s7);
  box-shadow: var(--shadow-lg);
  align-items: start;
}
.match-head { max-width: 48ch; margin-bottom: var(--s6); }
.match-head h2 { font-size: var(--step-3); margin-bottom: var(--s3); }
.match-head p { color: var(--muted); font-size: var(--step--1); margin: 0; }

.match-q { border: 0; margin: 0 0 var(--s6); padding: 0; }
.match-q legend {
  padding: 0; display: flex; align-items: baseline; gap: var(--s2);
  font-size: var(--step--2); font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--ink); margin-bottom: var(--s3);
}
.match-q legend .qn { color: var(--in-500); font-variant-numeric: tabular-nums; }
.match-opts { display: flex; flex-wrap: wrap; gap: var(--s2); }
.match-opts input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; pointer-events: none; }
.match-opts label {
  display: inline-flex; align-items: center; gap: var(--s2);
  padding: 9px 16px; border-radius: var(--r-pill);
  border: 1.5px solid var(--line); background: var(--white); color: var(--body);
  font-size: var(--step--1); font-weight: 600; line-height: 1.25; cursor: pointer;
  user-select: none;
  transition: background var(--t-fast) var(--ease), color var(--t-fast) var(--ease),
              border-color var(--t-fast) var(--ease), transform var(--t-fast) var(--ease),
              box-shadow var(--t-fast) var(--ease);
}
.match-opts label:hover { border-color: var(--in-400); color: var(--in-700); transform: translateY(-1px); box-shadow: var(--shadow-sm); }
.match-opts label:active { transform: translateY(0) scale(0.98); }
.match-opts input:checked + label {
  background: var(--in-700); border-color: var(--in-700); color: #fff;
  box-shadow: 0 4px 12px rgba(43, 58, 143, 0.26);
}
.match-opts input:focus-visible + label { outline: 2px solid var(--in-700); outline-offset: 2px; }

.match-progress {
  display: flex; align-items: center; gap: var(--s3);
  font-size: var(--step--2); font-weight: 700; letter-spacing: 0.07em; text-transform: uppercase;
  color: var(--muted); font-variant-numeric: tabular-nums; margin: 0;
}
.match-pips { display: inline-flex; gap: 5px; }
.match-pips i { display: block; width: 22px; height: 4px; border-radius: 2px; background: var(--line-2); transition: background var(--t-mid) var(--ease); }
.match-pips i.on { background: var(--in-600); }
.match-reset {
  margin-left: auto; background: none; border: 0; padding: 0;
  font-family: var(--font); font-size: var(--step--2); font-weight: 700;
  letter-spacing: 0.07em; text-transform: uppercase; color: var(--in-700); cursor: pointer;
  border-bottom: 1px solid transparent;
}
.match-reset:hover { border-bottom-color: var(--in-700); }

.match-card {
  background: linear-gradient(165deg, var(--in-800), var(--in-950));
  color: var(--in-200);
  border-radius: var(--r-lg);
  padding: var(--s6);
  box-shadow: var(--shadow-xl);
  position: sticky; top: 96px;
  overflow: hidden;
}
.match-card::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(70% 60% at 90% 0%, rgba(245, 158, 11, 0.20), transparent 62%);
  pointer-events: none;
}
.match-card > * { position: relative; }
.match-card .kicker { background: rgba(255, 255, 255, 0.10); border-color: rgba(255, 255, 255, 0.18); color: #fff; }
.match-card h3 { color: #fff; font-size: var(--step-2); margin-bottom: var(--s3); }
.match-card p { color: var(--in-200); font-size: var(--step--1); }
.match-why {
  margin-top: var(--s4); padding-top: var(--s3);
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  font-size: var(--step--1); color: var(--in-300);
}
.match-why strong { color: #fff; font-weight: 700; }
.match-actions { display: grid; gap: var(--s2); margin-top: var(--s5); }
.match-swap { transition: opacity var(--t-mid) var(--ease), transform var(--t-mid) var(--ease); }
.match-card.is-swapping .match-swap { opacity: 0; transform: translateY(7px); }

/* --------------------------------------------------------------------------
   8. Filter bar — the signature interaction
   -------------------------------------------------------------------------- */
.filterbar {
  display: flex; flex-wrap: wrap; align-items: center; gap: var(--s3);
  margin-bottom: var(--s5);
  padding: var(--s3);
  background: var(--surface-1);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
}
.chipset { display: flex; flex-wrap: wrap; gap: var(--s2); }
.chip {
  display: inline-flex; align-items: center; gap: var(--s2);
  font-family: var(--font); font-size: 0.88rem; font-weight: 600;
  padding: 9px 15px; border-radius: var(--r-pill);
  border: 1.5px solid var(--line); background: var(--white); color: var(--body);
  cursor: pointer;
  transition: background var(--t-fast) var(--ease), color var(--t-fast) var(--ease),
              border-color var(--t-fast) var(--ease), transform var(--t-fast) var(--ease),
              box-shadow var(--t-fast) var(--ease);
}
.chip:hover { border-color: var(--in-400); color: var(--in-700); transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.chip:active { transform: translateY(0) scale(0.97); box-shadow: none; }
.chip .chip-n {
  font-size: 0.72rem; font-weight: 800; font-variant-numeric: tabular-nums;
  color: var(--muted); background: var(--surface-2);
  border-radius: var(--r-pill); padding: 1px 7px; min-width: 22px; text-align: center;
  transition: background var(--t-fast) var(--ease), color var(--t-fast) var(--ease);
}
.chip .chip-tick { width: 0; overflow: hidden; opacity: 0; transition: width var(--t-mid) var(--ease), opacity var(--t-fast) var(--ease); }
.chip[aria-pressed="true"] {
  background: var(--in-700); border-color: var(--in-700); color: #fff;
  box-shadow: 0 4px 12px rgba(43, 58, 143, 0.26);
}
.chip[aria-pressed="true"]:hover { background: var(--in-800); color: #fff; }
.chip[aria-pressed="true"] .chip-n { background: rgba(255, 255, 255, 0.20); color: #fff; }
.chip[aria-pressed="true"] .chip-tick { width: 14px; opacity: 1; }

.searchwrap { position: relative; margin-left: auto; min-width: 230px; flex: 0 1 300px; }
.searchwrap svg { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; transition: color var(--t-fast) var(--ease); }
.searchwrap:focus-within svg { color: var(--in-700); }
.searchwrap input {
  width: 100%; font-family: var(--font); font-size: 0.92rem; color: var(--ink);
  padding: 11px 14px 11px 42px; border: 1.5px solid var(--line);
  border-radius: var(--r-pill); background: var(--white);
  transition: border-color var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease);
}
.searchwrap input:hover { border-color: var(--line-2); }
.searchwrap input:focus { border-color: var(--in-500); box-shadow: var(--shadow-focus); outline: none; }

/* Result line */
.resultline {
  display: flex; align-items: baseline; flex-wrap: wrap; gap: var(--s2) var(--s3);
  font-size: var(--step--1); color: var(--muted); margin: 0 0 var(--s5);
  min-height: 26px;
}
.resultline .count {
  display: inline-flex; align-items: baseline; gap: 5px;
  font-weight: 800; color: var(--ink); font-variant-numeric: tabular-nums;
  font-size: var(--step-0);
}
.resultline .count-n {
  display: inline-block; min-width: 1.2ch; text-align: right;
  color: var(--in-700);
}
.resultline .scope {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: var(--step--2); font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase;
  color: var(--in-700); background: var(--in-50); border: 1px solid var(--in-100);
  border-radius: var(--r-pill); padding: 3px 10px;
}
.resultline .scope-q { color: var(--am-600); background: var(--am-50); border-color: #F6E4C4; }

/* --------------------------------------------------------------------------
   9. Catalog grid
   -------------------------------------------------------------------------- */
.catgrid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s4); align-items: stretch; }
.cat {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: var(--s5);
  box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column; gap: var(--s3);
  position: relative;
  overflow: hidden;
  transition: transform var(--t-mid) var(--ease),
              box-shadow var(--t-mid) var(--ease),
              border-color var(--t-mid) var(--ease),
              opacity var(--t-mid) var(--ease);
}
.cat::after {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px;
  background: linear-gradient(to right, var(--in-600), var(--in-400));
  transform: scaleX(0); transform-origin: left;
  transition: transform var(--t-mid) var(--ease);
}
.cat:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: var(--line-2); }
.cat:hover::after { transform: scaleX(1); }
.cat-ico {
  width: 46px; height: 46px; border-radius: var(--r-md);
  background: linear-gradient(160deg, var(--in-100), var(--in-50));
  color: var(--in-700); display: grid; place-items: center;
  box-shadow: inset 0 0 0 1px rgba(43, 58, 143, 0.08);
  transition: background var(--t-mid) var(--ease), color var(--t-mid) var(--ease), transform var(--t-mid) var(--ease);
}
.cat:hover .cat-ico { background: var(--in-700); color: #fff; transform: scale(1.04); box-shadow: 0 6px 16px rgba(43, 58, 143, 0.26); }
.cat h3 { margin: 0; font-size: 1.03rem; }
.cat p { margin: 0; font-size: 0.9rem; color: var(--muted); }
.cat-tag {
  align-self: flex-start; margin-top: auto;
  font-size: 0.7rem; font-weight: 700; letter-spacing: 0.07em; text-transform: uppercase;
  color: var(--in-700); background: var(--in-50); border: 1px solid var(--in-100);
  padding: 4px 10px; border-radius: var(--r-pill);
}
.cat-spec { font-size: 0.82rem; color: var(--muted); border-top: 1px dashed var(--line-2); padding-top: var(--s3); }
.cat[hidden] { display: none; }

/* Filter transition states — driven by JS.
   Scoped to .catgrid so they outrank the .rise reveal rules further down. */
.catgrid .cat.is-flipping { transition: none !important; }
.catgrid .cat.is-moving { transition: transform 380ms var(--ease-out), box-shadow var(--t-mid) var(--ease); }
.catgrid .cat.is-entering { opacity: 0; transform: translateY(10px) scale(0.975); transition: none; }
.catgrid .cat.is-entered {
  opacity: 1; transform: none;
  transition: opacity 300ms var(--ease-out) var(--enter-delay, 0ms),
              transform 380ms var(--ease-out) var(--enter-delay, 0ms);
}

/* Empty state */
.emptystate {
  border: 1.5px dashed var(--line-2);
  border-radius: var(--r-xl);
  padding: var(--s9) var(--s5);
  text-align: center;
  background:
    radial-gradient(60% 80% at 50% 0%, var(--in-50), rgba(241, 244, 253, 0) 70%),
    var(--surface-1);
}
.emptystate[hidden] { display: none; }
.emptystate .empty-art { margin: 0 auto var(--s5); width: 92px; height: 92px; color: var(--in-300); }
.emptystate h3 { margin-bottom: var(--s2); font-size: var(--step-2); }
.emptystate p { color: var(--muted); margin: 0 auto var(--s5); max-width: 44ch; }
.emptystate .empty-actions { display: flex; flex-wrap: wrap; gap: var(--s3); justify-content: center; }
.empty-suggest {
  margin-top: var(--s6); padding-top: var(--s5);
  border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; gap: var(--s2); justify-content: center; align-items: center;
}
.empty-suggest .empty-label { font-size: var(--step--2); font-weight: 700; letter-spacing: 0.07em; text-transform: uppercase; color: var(--muted); margin: 0 var(--s2) 0 0; }

/* --------------------------------------------------------------------------
   10. Steps — connected numbered nodes
   -------------------------------------------------------------------------- */
.steps {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s5);
  counter-reset: step; position: relative; list-style: none; margin: 0; padding: 0;
}
.step { position: relative; z-index: 1; padding-top: var(--s8); }
/* Connector spans node-to-node and stops at the last step. */
.step::after {
  content: ""; position: absolute;
  top: 21px; left: 56px; right: calc(var(--s5) * -1); height: 2px;
  background: repeating-linear-gradient(to right, var(--in-200) 0 7px, transparent 7px 14px);
  z-index: 0;
}
.step:last-child::after { display: none; }
.step::before {
  counter-increment: step; content: counter(step);
  position: absolute; top: 0; left: 0;
  width: 44px; height: 44px; border-radius: 50%;
  background: linear-gradient(160deg, var(--in-600), var(--in-800));
  color: #fff; box-shadow: 0 6px 16px rgba(43, 58, 143, 0.28), inset 0 1px 0 rgba(255,255,255,0.22);
  display: grid; place-items: center; font-weight: 800; font-size: 0.98rem;
  font-variant-numeric: tabular-nums;
  transition: transform var(--t-mid) var(--ease);
}
.step:hover::before { transform: translateY(-3px) scale(1.05); }
.step:nth-child(2)::before {
  background: linear-gradient(160deg, var(--am-400), var(--am-500));
  color: #3A2A05;
  box-shadow: 0 6px 16px rgba(197, 126, 5, 0.30), inset 0 1px 0 rgba(255,255,255,0.35);
}
.step h3 { margin-bottom: var(--s2); }
.step p { font-size: 0.93rem; color: var(--muted); margin: 0; }

/* --------------------------------------------------------------------------
   11. Guide cards
   -------------------------------------------------------------------------- */
.guides { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--s5); }
.guide {
  display: grid; grid-template-columns: 190px 1fr; gap: 0;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg);
  overflow: hidden; box-shadow: var(--shadow-sm);
  transition: transform var(--t-mid) var(--ease), box-shadow var(--t-mid) var(--ease), border-color var(--t-mid) var(--ease);
}
.guide:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: var(--line-2); }
.guide img { width: 100%; height: 100%; min-height: 190px; object-fit: cover; transition: transform 480ms var(--ease); }
.guide:hover img { transform: scale(1.045); }
.guide-figure { margin: 0; overflow: hidden; }
.guide-body { padding: var(--s5); display: flex; flex-direction: column; gap: var(--s3); }
.guide-body h3 { margin: 0; }
.guide-body h3 a { color: var(--ink); text-decoration: none; }
.guide:hover h3 a { color: var(--in-700); }
.guide-body p { margin: 0; font-size: 0.92rem; color: var(--muted); }
.guide-tag {
  align-self: flex-start;
  font-size: 0.7rem; font-weight: 700; letter-spacing: 0.07em; text-transform: uppercase;
  color: var(--am-600); background: var(--am-50); border: 1px solid #F6E4C4;
  padding: 4px 10px; border-radius: var(--r-pill);
}
.arrowlink { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: 0.9rem; text-decoration: none; color: var(--in-700); margin-top: auto; }
.arrowlink svg { transition: transform var(--t-mid) var(--ease); }
.arrowlink:hover svg { transform: translateX(4px); }

/* --------------------------------------------------------------------------
   12. Checklist panel
   -------------------------------------------------------------------------- */
.panel { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s8); align-items: center; }
.checklist { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s3); }
.checklist li {
  display: flex; gap: var(--s3); align-items: flex-start;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--r-md);
  padding: var(--s4); box-shadow: var(--shadow-sm);
  transition: transform var(--t-mid) var(--ease), box-shadow var(--t-mid) var(--ease), border-color var(--t-mid) var(--ease);
}
.checklist li:hover { transform: translateX(4px); box-shadow: var(--shadow-md); border-color: var(--line-2); }
.checklist svg { flex: 0 0 auto; color: var(--in-700); margin-top: 2px; }
.checklist strong { display: block; color: var(--ink); font-size: 0.97rem; }
.checklist span { font-size: 0.89rem; color: var(--muted); }
.panel-figure { border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-lg); margin: 0; }
.panel-figure img { width: 100%; height: clamp(280px, 34vw, 430px); object-fit: cover; }
.panel-figure figcaption { font-size: 0.83rem; color: var(--muted); padding: var(--s3) var(--s4); background: var(--white); border-top: 1px solid var(--line); }

/* --------------------------------------------------------------------------
   13. FAQ
   -------------------------------------------------------------------------- */
.faq { display: grid; gap: var(--s3); max-width: 78ch; }
.faq details {
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--r-md); box-shadow: var(--shadow-sm);
  transition: border-color var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease);
}
.faq details[open] { border-color: var(--line-2); box-shadow: var(--shadow-md); }
.faq summary {
  list-style: none; cursor: pointer;
  padding: var(--s4) var(--s7) var(--s4) var(--s5);
  position: relative; font-weight: 700; color: var(--ink);
  font-size: var(--step-0); line-height: 1.4;
  border-radius: var(--r-md);
  transition: color var(--t-fast) var(--ease);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--in-700); }
.faq summary::before,
.faq summary::after {
  content: ""; position: absolute; right: var(--s5); top: 50%; background: var(--in-600);
  border-radius: 1px; transition: transform var(--t-mid) var(--ease), opacity var(--t-mid) var(--ease);
}
.faq summary::before { width: 13px; height: 2px; margin-top: -1px; }
.faq summary::after  { width: 2px; height: 13px; margin-top: -6.5px; right: calc(var(--s5) + 5.5px); }
.faq details[open] summary::after { transform: rotate(90deg); opacity: 0; }
.faq .faq-a { padding: 0 var(--s7) var(--s5) var(--s5); }
.faq .faq-a p { color: var(--muted); font-size: var(--step--1); margin-bottom: var(--s3); }
.faq .faq-a p:last-child { margin-bottom: 0; }

/* --------------------------------------------------------------------------
   14. CTA band
   -------------------------------------------------------------------------- */
.cta {
  background:
    radial-gradient(80% 120% at 88% 0%, rgba(245, 158, 11, 0.16), transparent 58%),
    linear-gradient(135deg, var(--in-700) 0%, var(--in-900) 62%, var(--in-950) 100%);
  color: #DCE2FA; padding: var(--s10) 0;
  position: relative; overflow: hidden;
}
.cta h2 { color: #fff; }
.cta p { color: var(--in-200); max-width: 54ch; }
.cta-in { display: grid; grid-template-columns: 1.35fr 1fr; gap: var(--s7); align-items: center; }
.cta-actions { display: flex; flex-wrap: wrap; gap: var(--s3); }
.cta-note {
  margin-top: var(--s5); padding-top: var(--s4);
  border-top: 1px solid rgba(255,255,255,0.16);
  font-size: var(--step--2); color: var(--in-300); max-width: 48ch;
}

/* --------------------------------------------------------------------------
   15. Breadcrumbs + article
   -------------------------------------------------------------------------- */
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s2); font-size: 0.85rem; color: var(--muted); padding: var(--s5) 0 0; margin: 0; list-style: none; }
.crumbs li { display: flex; align-items: center; gap: var(--s2); }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--in-700); text-decoration: underline; }
.crumbs [aria-current="page"] { color: var(--ink); font-weight: 600; }
.crumbs .sep { color: var(--line-2); }

.page-head { padding: var(--s5) 0 var(--s7); }
.page-head h1 { max-width: 20ch; font-size: var(--step-5); }
.page-head .lead { max-width: 60ch; }

.hero-img { border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-lg); margin: 0 0 var(--s8); }
.hero-img img { width: 100%; height: clamp(200px, 30vw, 380px); object-fit: cover; }
.hero-img figcaption { font-size: 0.84rem; color: var(--muted); background: var(--white); padding: var(--s3) var(--s5); border-top: 1px solid var(--line); }

.doc { display: grid; grid-template-columns: minmax(0, 1fr) 288px; gap: var(--s8); padding-bottom: var(--s9); }
.copy { max-width: 68ch; }
.copy h2 { margin-top: var(--s8); font-size: var(--step-3); }
.copy h2:first-child { margin-top: 0; }
.copy h3 { margin-top: var(--s6); }
.copy ul, .copy ol { margin: 0 0 var(--s5); padding-left: var(--s5); }
.copy li { margin-bottom: var(--s3); }
.copy li::marker { color: var(--in-600); font-weight: 700; }
.copy strong { color: var(--ink); font-weight: 700; }

.tip {
  background: linear-gradient(160deg, var(--in-50), var(--surface-1));
  border: 1px solid var(--in-100); border-left: 4px solid var(--in-600);
  border-radius: var(--r-md); padding: var(--s5); margin: var(--s7) 0;
  box-shadow: var(--shadow-sm);
}
.tip.warn { background: linear-gradient(160deg, var(--am-50), #FFFDF8); border-color: #F5DCA9; border-left-color: var(--am-400); }
.tip p:last-child { margin-bottom: 0; }
.tip .kicker { margin-bottom: var(--s3); }

.datatable { width: 100%; border-collapse: separate; border-spacing: 0; margin: var(--s7) 0; font-size: 0.93rem; border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; font-variant-numeric: tabular-nums; }
.datatable caption { caption-side: top; text-align: left; font-size: 0.82rem; color: var(--muted); padding-bottom: var(--s3); }
.datatable th, .datatable td { text-align: left; padding: var(--s3) var(--s4); border-bottom: 1px solid var(--line); vertical-align: top; }
.datatable thead th { background: var(--surface-2); color: var(--ink); font-weight: 700; font-size: 0.82rem; letter-spacing: 0.04em; text-transform: uppercase; }
.datatable tbody tr { transition: background var(--t-fast) var(--ease); }
.datatable tbody tr:nth-child(even) { background: var(--surface-1); }
.datatable tbody tr:hover { background: var(--in-50); }
.datatable tbody tr:last-child th, .datatable tbody tr:last-child td { border-bottom: 0; }
.tablescroll { overflow-x: auto; }

.side { align-self: start; position: sticky; top: 96px; display: grid; gap: var(--s5); }
.sidecard { background: var(--surface-1); border: 1px solid var(--line); border-radius: var(--r-lg); padding: var(--s5); }
.sidecard p.foot-head, .sidecard h4 { margin-bottom: var(--s3); }
.sidecard ul { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s2); }
.sidecard li a {
  display: block; font-size: 0.91rem; font-weight: 600; color: var(--ink-2); text-decoration: none;
  padding: var(--s2) var(--s3); border-radius: var(--r-sm);
  transition: background var(--t-fast) var(--ease), color var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease);
}
.sidecard li a:hover { background: var(--white); color: var(--in-700); box-shadow: var(--shadow-sm); }
.sidecard li a[aria-current="page"] { background: var(--in-700); color: #fff; }
.sidecard p { font-size: 0.9rem; color: var(--muted); }
.sidecard p:last-child { margin-bottom: 0; }

.pager { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s4); padding: var(--s7) 0 var(--s9); }
.pager a { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg); padding: var(--s5); text-decoration: none; box-shadow: var(--shadow-sm); transition: transform var(--t-mid) var(--ease), box-shadow var(--t-mid) var(--ease), border-color var(--t-mid) var(--ease); }
.pager a:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--line-2); }
.pager span { display: block; font-size: 0.76rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.pager strong { color: var(--ink); font-size: 1.02rem; }

/* --------------------------------------------------------------------------
   16. Forms
   -------------------------------------------------------------------------- */
.formgrid { display: grid; grid-template-columns: 1fr 340px; gap: var(--s8); padding-bottom: var(--s9); }
.formcard { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-xl); padding: var(--s7); box-shadow: var(--shadow-lg); }
.f { margin-bottom: var(--s5); }
.f label { display: block; font-size: 0.88rem; font-weight: 700; color: var(--ink); margin-bottom: var(--s2); }
.f label .opt { font-weight: 500; color: var(--muted); }
.f input, .f select, .f textarea {
  width: 100%; font-family: var(--font); font-size: 0.98rem; color: var(--ink);
  padding: 12px 14px; border: 1.5px solid var(--line); border-radius: var(--r-md); background: var(--white);
  transition: border-color var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease);
}
.f input:hover, .f select:hover, .f textarea:hover { border-color: var(--line-2); }
.f input:focus, .f select:focus, .f textarea:focus { border-color: var(--in-500); box-shadow: var(--shadow-focus); outline: none; }
.f textarea { min-height: 165px; resize: vertical; }
.f .help { font-size: 0.84rem; color: var(--muted); margin: var(--s2) 0 0; }

.alert { border-radius: var(--r-md); padding: var(--s4) var(--s5); margin-bottom: var(--s5); font-size: 0.94rem; }
.alert p { margin: 0; }
.alert-ok { background: #ECFDF3; border: 1px solid #B7E9C8; color: #14532D; }
.alert-bad { background: #FEF2F2; border: 1px solid #F5C2C2; color: #7F1D1D; }
.alert ul { margin: var(--s2) 0 0; padding-left: var(--s5); }

/* --------------------------------------------------------------------------
   17. TCO worksheet
   -------------------------------------------------------------------------- */
.calcgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s4); margin-top: var(--s4); }
.calcgrid .f { margin-bottom: 0; }
.calcgrid .f label { font-size: 0.82rem; }
.calcgrid .f input { padding: 10px 12px; background: var(--white); font-variant-numeric: tabular-nums; }

.calcout {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s4);
  margin: var(--s5) 0 var(--s4); padding-top: var(--s5);
  border-top: 1px solid var(--in-100);
}
.calcout > div { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-md); padding: var(--s4); box-shadow: var(--shadow-sm); }
.calcout dt { font-size: 0.74rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.calcout dd { margin: 6px 0 0; font-size: var(--step-3); font-weight: 800; letter-spacing: -0.028em; color: var(--in-700); line-height: 1.1; font-variant-numeric: tabular-nums; }

.center-actions { justify-content: center; }

/* --------------------------------------------------------------------------
   18. Legal, 404, footer
   -------------------------------------------------------------------------- */
.legal { padding: var(--s5) 0 var(--s9); }
.legal .copy { max-width: 76ch; }
.legal .copy h2 { font-size: var(--step-2); margin-top: var(--s7); }

.notfound { padding: var(--s10) 0; text-align: center; }
.notfound .big { font-size: clamp(4.5rem, 16vw, 9rem); font-weight: 800; letter-spacing: -0.055em; color: var(--in-700); line-height: 0.9; margin: 0 0 var(--s5); font-variant-numeric: tabular-nums; }
.notfound .big em { font-style: normal; color: var(--am-400); }
.notfound h1 { max-width: 20ch; margin-left: auto; margin-right: auto; }
.notfound .lead { margin-left: auto; margin-right: auto; }
.notfound .catgrid { margin-top: var(--s7); text-align: left; }

.sitefoot { background: var(--in-950); color: #A9B0CA; padding: var(--s9) 0 var(--s6); }
.foot-top { display: grid; grid-template-columns: 1.15fr 2fr; gap: var(--s8); padding-bottom: var(--s7); border-bottom: 1px solid rgba(255,255,255,0.10); }
.foot-title { color: #fff; font-weight: 800; font-size: 1.05rem; margin: var(--s3) 0 var(--s2); letter-spacing: -0.028em; }
.foot-blurb { font-size: 0.92rem; max-width: 34ch; }
.foot-addr { font-size: 0.85rem; color: #8E96B4; margin-bottom: 0; }
.foot-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s6); }
.foot-head { color: #fff; font-weight: 700; font-size: 0.82rem; letter-spacing: 0.08em; text-transform: uppercase; margin: 0 0 var(--s4); }
.foot-cols ul { list-style: none; margin: 0; padding: 0; }
.foot-cols li { margin-bottom: var(--s3); }
.foot-cols a { color: #A9B0CA; text-decoration: none; font-size: 0.92rem; }
.foot-cols a:hover { color: #fff; text-decoration: underline; }
.foot-bottom { padding-top: var(--s5); }
.foot-bottom p { font-size: 0.83rem; color: #8E96B4; margin: 0 0 var(--s3); }
.foot-note { max-width: 92ch; }

/* --------------------------------------------------------------------------
   19. Sticky mobile CTA
   -------------------------------------------------------------------------- */
.stickycta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 65;
  display: none; gap: var(--s2);
  padding: var(--s3) var(--s4) calc(var(--s3) + env(safe-area-inset-bottom, 0px));
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: saturate(1.6) blur(12px);
  -webkit-backdrop-filter: saturate(1.6) blur(12px);
  border-top: 1px solid var(--line);
  box-shadow: 0 -8px 26px rgba(20, 26, 51, 0.10);
  transform: translateY(115%);
  transition: transform var(--t-mid) var(--ease);
}
.stickycta.is-up { transform: translateY(0); }
.stickycta .btn { flex: 1 1 0; padding: 11px 14px; font-size: 0.86rem; }

/* --------------------------------------------------------------------------
   20. Reveal / motion
   -------------------------------------------------------------------------- */
.rise {
  opacity: 0; transform: translateY(18px);
  transition: opacity var(--t-slow) var(--ease), transform var(--t-slow) var(--ease);
  transition-delay: var(--d, 0ms);
}
.rise.shown { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .rise { opacity: 1 !important; transform: none !important; transition: none !important; }
  .cat, .tile, .guide, .checklist li, .pager a, .btn, .chip { transition: none !important; }
  .catgrid .cat.is-entering, .catgrid .cat.is-entered { opacity: 1 !important; transform: none !important; }
  .tile:nth-child(2), .tile:nth-child(5) { transform: none; }
  .stickycta { transition: none; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

/* --------------------------------------------------------------------------
   21. Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 1080px) {
  .catgrid { grid-template-columns: repeat(3, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); row-gap: var(--s8); }
  .step:nth-child(2n)::after, .step::after { display: none; }
}

@media (max-width: 940px) {
  .hero-in, .panel, .cta-in, .doc, .formgrid, .match { grid-template-columns: 1fr; gap: var(--s7); }
  .hero { padding-bottom: var(--s7); }
  .mosaic-wrap { margin-bottom: 0; }
  .mosaic-wrap::before { display: none; }
  .doc { padding-bottom: var(--s8); }
  .side, .match-card { position: static; }
  .guides { grid-template-columns: 1fr; }
  .foot-top { grid-template-columns: 1fr; gap: var(--s7); }
  .match { padding: var(--s6); }
}

/* The primary nav plus its CTA needs more room than the breakpoints below. */
@media (max-width: 900px) {
  .burger { display: block; }
  .mainnav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: var(--s4);
    background: var(--white); border-bottom: 1px solid var(--line);
    padding: var(--s5); box-shadow: var(--shadow-lg);
  }
  .mainnav.open { display: flex; }
  .mainnav ul { flex-direction: column; align-items: stretch; gap: 0; }
  .mainnav li { border-bottom: 1px solid var(--line); }
  .mainnav a { display: block; padding: var(--s4) 0; }
  .mainnav a::after { display: none; }
  .nav-cta { align-self: flex-start; }
}

@media (max-width: 780px) {
  .catgrid { grid-template-columns: repeat(2, 1fr); }
  .section { padding: var(--s9) 0; }
  .searchwrap { margin-left: 0; flex: 1 1 100%; }
  .pager { grid-template-columns: 1fr; }
  .foot-cols { grid-template-columns: 1fr 1fr; }
  .calcgrid { grid-template-columns: 1fr 1fr; }
  .calcout { grid-template-columns: 1fr; }

  .stickycta { display: flex; }
  .foot-bottom { padding-bottom: var(--s8); }
}

@media (max-width: 560px) {
  .catgrid, .steps { grid-template-columns: 1fr; }
  .guide { grid-template-columns: 1fr; }
  .guide img { min-height: 170px; height: 170px; }
  .mosaic { grid-template-columns: repeat(2, 1fr); }
  .tile:nth-child(2), .tile:nth-child(5) { transform: none; }
  .tile:nth-child(2):hover, .tile:nth-child(5):hover { transform: translateY(-6px); }
  .foot-cols { grid-template-columns: 1fr; }
  .formcard { padding: var(--s5); }
  .filterbar { border-radius: var(--r-lg); }
}

@media (max-width: 460px) {
  .calcgrid { grid-template-columns: 1fr; }
}

@media (max-width: 400px) {
  .wrap { padding: 0 var(--s4); }
  .logo-text { font-size: 0.94rem; }
  .match { padding: var(--s5) var(--s4); }
}
