/* =====================================================================
   CAB-prevention — Design System
   ===================================================================== */

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
body { line-height: 1.6; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility; }
img, picture, svg, video { max-width: 100%; height: auto; display: block; }
button, input, textarea, select { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; border-radius: 4px; }

/* ---------- Tokens ---------- */
:root {
  /* Brand */
  --brand: #FF6A1A;
  --brand-soft: #FFB489;
  --brand-pale: #FFE7D6;
  --brand-wash: #FFF4EC;
  --brand-dark: #E85510;
  --brand-deep: #B53B05;

  /* Ink (dark navy from existing illustrations) */
  --ink: #0B1538;
  --ink-2: #182454;
  --ink-3: #2C3870;
  --muted: #5A6580;
  --muted-2: #8A95B0;
  --muted-3: #B7BFD3;

  /* Surfaces */
  --surface: #FFFFFF;
  --surface-soft: #FAFAF7;
  --surface-cream: #FDF7F0;
  --surface-cool: #F4F6FB;

  /* Accents */
  --mint: #10B981;
  --mint-soft: #D7F7E9;
  --sky: #5B9BFF;
  --sky-soft: #DDE9FF;
  --gold: #F5B83A;

  /* Lines */
  --line: #E8EAF2;
  --line-strong: #D7DAE8;
  --line-dark: #1E2A56;

  /* Typography */
  --font-display: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;

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

  /* Shadows */
  --sh-xs: 0 1px 2px rgba(11,21,56,.04);
  --sh-sm: 0 2px 6px rgba(11,21,56,.06), 0 1px 2px rgba(11,21,56,.04);
  --sh-md: 0 8px 24px rgba(11,21,56,.08), 0 2px 6px rgba(11,21,56,.04);
  --sh-lg: 0 24px 60px rgba(11,21,56,.12), 0 4px 12px rgba(11,21,56,.06);
  --sh-xl: 0 40px 100px rgba(11,21,56,.18), 0 8px 24px rgba(11,21,56,.08);
  --sh-brand: 0 12px 32px rgba(255,106,26,.28);
  --sh-brand-strong: 0 18px 48px rgba(255,106,26,.40);

  /* Transitions */
  --ease: cubic-bezier(.2, .8, .2, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --t-fast: 160ms var(--ease);
  --t-base: 240ms var(--ease);
  --t-slow: 480ms var(--ease-out);

  /* Layout */
  --container: 1200px;
  --container-narrow: 920px;
  --container-wide: 1320px;
  --gutter: clamp(1.25rem, 3vw, 2rem);
  --section-y: clamp(4rem, 9vw, 7.5rem);
}

/* ---------- Base ---------- */
html, body { min-height: 100%; }
body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--surface);
  font-size: 16px;
  font-feature-settings: "cv11", "ss01", "ss03";
  overflow-x: hidden;
}

h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.08;
  color: var(--ink);
}
h1 { font-size: clamp(2.4rem, 5.6vw, 4.6rem); letter-spacing: -0.035em; }
h2 { font-size: clamp(1.85rem, 3.6vw, 3rem); letter-spacing: -0.03em; }
h3 { font-size: clamp(1.3rem, 2.2vw, 1.8rem); letter-spacing: -0.02em; line-height: 1.18; }
h4 { font-size: 1.15rem; letter-spacing: -0.01em; line-height: 1.3; }
p  { color: var(--muted); }

::selection { background: var(--brand); color: #fff; }

/* ---------- Layout primitives ---------- */
.container { width: 100%; max-width: var(--container); padding-inline: var(--gutter); margin-inline: auto; }
.container-narrow { width: 100%; max-width: var(--container-narrow); padding-inline: var(--gutter); margin-inline: auto; }
.container-wide { width: 100%; max-width: var(--container-wide); padding-inline: var(--gutter); margin-inline: auto; }
section { padding-block: var(--section-y); position: relative; }
.section-tight { padding-block: clamp(2.5rem, 5vw, 4rem); }

/* ---------- Utilities ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: .55rem;
  font-family: var(--font-display);
  font-weight: 700; font-size: .78rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--brand-deep);
  background: var(--brand-wash);
  padding: .5rem 1rem; border-radius: var(--r-pill);
  border: 1px solid rgba(255,106,26,.18);
}
.eyebrow.is-light { color: #fff; background: rgba(255,255,255,.10); border-color: rgba(255,255,255,.18); }
.eyebrow .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 0 4px rgba(255,106,26,.16); }

.lead { font-size: clamp(1.05rem, 1.4vw, 1.18rem); color: var(--muted); line-height: 1.65; max-width: 60ch; }
.muted { color: var(--muted); }
.ink { color: var(--ink); }

.grid { display: grid; gap: 1.5rem; }
.row  { display: flex; gap: 1rem; align-items: center; flex-wrap: wrap; }

.center { text-align: center; }
.section-head { max-width: 760px; margin-inline: auto; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 1.1rem; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.section-head .eyebrow { margin-bottom: .25rem; }
.section-head p { font-size: clamp(1rem, 1.3vw, 1.12rem); }

.divider { height: 1px; background: var(--line); margin-block: 3rem; }

.shine {
  background: linear-gradient(90deg, var(--ink) 30%, var(--brand) 50%, var(--ink) 70%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  background-size: 200% 100%;
  animation: shine 6s linear infinite;
}
@keyframes shine { to { background-position: -200% 0; } }

.text-brand { color: var(--brand); }
.text-ink { color: var(--ink); }
.bg-ink { background: var(--ink); color: #fff; }
.bg-cream { background: var(--surface-cream); }
.bg-cool { background: var(--surface-cool); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  font-family: var(--font-display);
  font-weight: 700; font-size: .98rem;
  padding: .95rem 1.5rem; border-radius: var(--r-pill);
  transition: transform var(--t-fast), box-shadow var(--t-base), background var(--t-base), color var(--t-base), border-color var(--t-base);
  white-space: nowrap;
  user-select: none;
  position: relative; isolation: isolate;
}
.btn svg { transition: transform var(--t-base); }
.btn:hover svg { transform: translateX(3px); }

.btn-primary {
  background: var(--brand); color: #fff;
  box-shadow: var(--sh-brand);
}
.btn-primary:hover { background: var(--brand-dark); box-shadow: var(--sh-brand-strong); transform: translateY(-2px); }
.btn-primary:active { transform: translateY(0); }

.btn-dark {
  background: var(--ink); color: #fff;
}
.btn-dark:hover { background: var(--ink-2); transform: translateY(-2px); box-shadow: var(--sh-md); }

.btn-outline {
  background: transparent; color: var(--ink);
  border: 1.5px solid var(--line-strong);
}
.btn-outline:hover { border-color: var(--ink); background: var(--ink); color: #fff; transform: translateY(-2px); }

.btn-ghost {
  background: transparent; color: var(--ink);
  padding-inline: 1rem;
}
.btn-ghost:hover { color: var(--brand); }

.btn-sm { padding: .65rem 1.1rem; font-size: .9rem; }
.btn-lg { padding: 1.1rem 1.85rem; font-size: 1.05rem; }
.btn-block { width: 100%; }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.78);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: background var(--t-base), border-color var(--t-base), box-shadow var(--t-base);
}
.site-header.is-scrolled { background: rgba(255,255,255,.92); border-bottom-color: var(--line); box-shadow: 0 2px 12px rgba(11,21,56,.04); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 76px; gap: 2rem; }
.nav-logo { display: inline-flex; align-items: center; gap: .65rem; font-family: var(--font-display); font-weight: 800; font-size: 1.18rem; color: var(--ink); letter-spacing: -0.02em; }
.nav-logo img { height: 54px; width: auto; }
.nav-logo .logo-mark { display: inline-grid; place-items: center; width: 38px; height: 38px; background: var(--brand); color: #fff; border-radius: 10px; font-weight: 800; font-size: 1.05rem; box-shadow: var(--sh-brand); }
.nav-links { display: flex; align-items: center; gap: .25rem; }
.nav-links a {
  position: relative;
  padding: .6rem .95rem;
  font-weight: 600; font-size: .98rem;
  color: var(--ink);
  border-radius: 8px;
  transition: color var(--t-fast);
}
.nav-links a::after {
  content: ""; position: absolute; left: 50%; bottom: 6px; width: 0; height: 2px; background: var(--brand);
  transform: translateX(-50%); transition: width var(--t-base);
  border-radius: 2px;
}
.nav-links a:hover { color: var(--brand); }
.nav-links a:hover::after, .nav-links a.is-active::after { width: 22px; }
.nav-links a.is-active { color: var(--brand); }
.nav-cta { display: flex; align-items: center; gap: .5rem; }

.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  border-radius: 12px;
  align-items: center; justify-content: center;
  background: var(--surface-cream);
  border: 1px solid var(--line);
}
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--ink); position: relative; transition: transform var(--t-base), background var(--t-base); }
.nav-toggle span::before, .nav-toggle span::after { content: ""; position: absolute; left: 0; width: 22px; height: 2px; background: var(--ink); transition: transform var(--t-base), top var(--t-base); }
.nav-toggle span::before { top: -7px; }
.nav-toggle span::after  { top: 7px; }
.nav-toggle.is-open span { background: transparent; }
.nav-toggle.is-open span::before { top: 0; transform: rotate(45deg); }
.nav-toggle.is-open span::after  { top: 0; transform: rotate(-45deg); }

/* Mobile drawer */
.mobile-drawer {
  position: fixed; inset: 76px 0 0 0; z-index: 99;
  background: #fff;
  padding: 1.5rem var(--gutter) 2rem;
  display: flex; flex-direction: column; gap: .25rem;
  transform: translateY(-12px);
  opacity: 0; pointer-events: none;
  transition: transform var(--t-base), opacity var(--t-base);
  border-top: 1px solid var(--line);
}
.mobile-drawer.is-open { transform: translateY(0); opacity: 1; pointer-events: auto; }
.mobile-drawer a {
  padding: 1rem 0; font-family: var(--font-display); font-weight: 700; font-size: 1.4rem;
  color: var(--ink); border-bottom: 1px solid var(--line);
}
.mobile-drawer a.is-active { color: var(--brand); }
.mobile-drawer .btn { margin-top: 1.5rem; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding-top: clamp(3rem, 6vw, 5rem);
  padding-bottom: clamp(4rem, 8vw, 6.5rem);
  overflow: hidden;
}
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(60% 60% at 80% 0%, rgba(255,106,26,.10) 0%, transparent 60%),
    radial-gradient(50% 50% at 10% 30%, rgba(91,155,255,.10) 0%, transparent 60%),
    linear-gradient(180deg, var(--surface-cream) 0%, var(--surface) 80%);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
.hero-eyebrow { margin-bottom: 1.4rem; }
.hero h1 { margin-bottom: 1.25rem; }
.hero h1 .accent { background: linear-gradient(180deg, transparent 60%, rgba(255,106,26,.32) 60%); padding: 0 .15em; }
.hero .lead { margin-bottom: 2rem; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: .85rem; margin-bottom: 2.2rem; }
.hero-trust {
  display: flex; align-items: center; gap: 1rem; flex-wrap: wrap;
  color: var(--muted); font-size: .9rem; font-weight: 500;
}
.hero-trust .stars { display: inline-flex; gap: 2px; color: var(--gold); }
.hero-trust strong { color: var(--ink); font-weight: 700; }

.hero-visual {
  position: relative;
  aspect-ratio: 5/5;
  display: flex; align-items: center; justify-content: center;
}
.hero-visual .blob {
  position: absolute; inset: 6%;
  background:
    radial-gradient(circle at 30% 25%, rgba(255,106,26,.22), transparent 55%),
    radial-gradient(circle at 80% 75%, rgba(91,155,255,.18), transparent 55%);
  filter: blur(40px);
  border-radius: 50%;
  animation: blobPulse 9s ease-in-out infinite alternate;
}
@keyframes blobPulse {
  0%   { transform: scale(1) rotate(0deg); }
  100% { transform: scale(1.05) rotate(8deg); }
}

/* phone mockup */
.mockup-phone {
  position: relative;
  width: 280px; aspect-ratio: 9/19;
  background: #0B1538;
  border-radius: 38px;
  padding: 12px;
  box-shadow: var(--sh-xl), inset 0 0 0 2px #1A2447;
  transform: rotate(-4deg);
}
.mockup-phone::before { content: ""; position: absolute; top: 14px; left: 50%; transform: translateX(-50%); width: 96px; height: 22px; background: #060B22; border-radius: 12px; z-index: 2; }
.mockup-screen {
  width: 100%; height: 100%; border-radius: 28px;
  background: linear-gradient(180deg, #FDF7F0, #FFFFFF);
  overflow: hidden;
  display: flex; flex-direction: column;
  padding: 38px 16px 16px;
  gap: 12px;
  position: relative;
}
.mockup-screen .qrhead { display: flex; align-items: center; gap: 8px; }
.mockup-screen .qrhead .logo { width: 26px; height: 26px; background: var(--brand); border-radius: 7px; display: grid; place-items: center; color: #fff; font-family: var(--font-display); font-weight: 800; font-size: .72rem; }
.mockup-screen .qrhead .logoimg { height: 26px; width: auto; flex: none; }
.mockup-screen .qrhead .meta { display: flex; flex-direction: column; }
.mockup-screen .qrhead .meta b { font-size: .72rem; color: var(--ink); font-weight: 700; }
.mockup-screen .qrhead .meta span { font-size: .58rem; color: var(--muted-2); }
.mockup-screen .title { font-family: var(--font-display); font-weight: 800; font-size: .82rem; color: var(--ink); margin-top: 4px; }
.mockup-screen .sub { font-size: .58rem; color: var(--muted); line-height: 1.4; }
.mockup-screen .qrow {
  display: flex; align-items: center; gap: 8px;
  background: #fff; border: 1px solid var(--line); border-radius: 10px;
  padding: 8px 10px;
  box-shadow: var(--sh-xs);
}
.mockup-screen .qcheck { width: 14px; height: 14px; border-radius: 4px; background: var(--mint); display: grid; place-items: center; color: #fff; font-size: 9px; flex: none; }
.mockup-screen .qrow:nth-child(odd) .qcheck { background: var(--brand); }
.mockup-screen .qtxt { font-size: .58rem; color: var(--ink); font-weight: 600; }
.mockup-screen .qopts { display: flex; gap: 4px; flex-wrap: wrap; margin-top: 2px; }
.mockup-screen .pill {
  font-size: .54rem; padding: 3px 7px; border-radius: 99px;
  background: var(--surface-cream); color: var(--muted); border: 1px solid var(--line);
  font-weight: 600;
}
.mockup-screen .pill.is-on { background: var(--brand-wash); color: var(--brand-deep); border-color: var(--brand-pale); }
.mockup-screen .submit-btn {
  margin-top: auto;
  background: var(--brand); color: #fff;
  font-family: var(--font-display); font-weight: 800;
  font-size: .68rem;
  padding: 10px 12px;
  border-radius: 10px; text-align: center;
  box-shadow: 0 6px 14px rgba(255,106,26,.32);
}

.mockup-card {
  position: absolute;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: .85rem 1rem;
  box-shadow: var(--sh-lg);
  display: flex; align-items: center; gap: .7rem;
  font-size: .82rem; font-weight: 600;
  z-index: 2;
}
.mockup-card .ic { width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; color: #fff; flex: none; }
.mockup-card-1 { top: 12%; right: -2%; animation: floatA 5.2s ease-in-out infinite alternate; }
.mockup-card-1 .ic { background: var(--mint); }
.mockup-card-2 { bottom: 14%; left: -4%; animation: floatB 6s ease-in-out infinite alternate; }
.mockup-card-2 .ic { background: var(--brand); }
.mockup-card .lbl { color: var(--muted-2); font-size: .68rem; font-weight: 500; }
.mockup-card .val { color: var(--ink); }
@keyframes floatA { from { transform: translateY(0); } to { transform: translateY(-12px); } }
@keyframes floatB { from { transform: translateY(0); } to { transform: translateY(10px); } }

/* ---------- Trust strip ---------- */
.trust-strip {
  padding-block: 2.5rem;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}
.trust-strip .row { justify-content: space-between; align-items: center; }
.trust-strip .label { font-family: var(--font-display); font-weight: 700; font-size: .82rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.trust-strip .stats { display: flex; gap: clamp(1.5rem, 4vw, 3.5rem); flex-wrap: wrap; }
.trust-strip .stat { display: flex; flex-direction: column; }
.trust-strip .stat b { font-family: var(--font-display); font-size: clamp(1.6rem, 2.5vw, 2.1rem); font-weight: 800; color: var(--ink); letter-spacing: -0.03em; }
.trust-strip .stat span { font-size: .82rem; color: var(--muted); }

/* ---------- Value cards (3-up) ---------- */
.values-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem;
}
.value-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  padding: 2rem 1.75rem 1.75rem;
  transition: transform var(--t-base), box-shadow var(--t-base), border-color var(--t-base);
  overflow: hidden;
}
.value-card:hover { transform: translateY(-6px); border-color: var(--brand-pale); box-shadow: var(--sh-lg); }
.value-card::before {
  content: ""; position: absolute; inset: -1px -1px auto -1px; height: 4px; background: var(--brand);
  transform: scaleX(0); transform-origin: left; transition: transform var(--t-slow);
  border-top-left-radius: var(--r-xl); border-top-right-radius: var(--r-xl);
}
.value-card:hover::before { transform: scaleX(1); }
.value-card .ic {
  width: 56px; height: 56px; border-radius: 16px;
  display: grid; place-items: center;
  background: var(--brand-wash); color: var(--brand);
  margin-bottom: 1.25rem;
  transition: transform var(--t-base);
}
.value-card:hover .ic { transform: rotate(-6deg) scale(1.05); }
.value-card h3 { margin-bottom: .65rem; }
.value-card p { font-size: .98rem; }

/* ---------- Solutions overview (6 cards) ---------- */
.solutions-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}
.solution-card .card-top { display: flex; align-items: center; gap: .6rem; }
.solution-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 1.75rem;
  display: flex; flex-direction: column; gap: 1rem;
  transition: transform var(--t-base), box-shadow var(--t-base), border-color var(--t-base);
  overflow: hidden;
}
.solution-card:hover { transform: translateY(-4px); border-color: transparent; box-shadow: var(--sh-lg); }
.solution-card .num {
  position: absolute; top: 1.25rem; right: 1.25rem;
  font-family: var(--font-display); font-weight: 800; font-size: 1.1rem;
  color: var(--muted-3);
  transition: color var(--t-base);
}
.solution-card:hover .num { color: var(--brand); }
.solution-card .ic {
  width: 52px; height: 52px; border-radius: 14px;
  display: grid; place-items: center;
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-dark) 100%);
  color: #fff;
  box-shadow: var(--sh-brand);
}
.solution-card h3 { font-size: 1.18rem; }
.solution-card p { font-size: .95rem; }
.solution-card .read-more {
  margin-top: auto;
  font-family: var(--font-display); font-weight: 700; font-size: .9rem; color: var(--brand);
  display: inline-flex; align-items: center; gap: .35rem;
}
.solution-card .read-more svg { transition: transform var(--t-base); }
.solution-card:hover .read-more svg { transform: translateX(4px); }

/* ---------- How it works (3 steps) ---------- */
.how {
  background: var(--ink);
  color: #fff;
  border-radius: var(--r-2xl);
  padding: clamp(2.5rem, 5vw, 4.5rem);
  position: relative; overflow: hidden;
}
.how::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(40% 50% at 90% 10%, rgba(255,106,26,.18), transparent 60%),
    radial-gradient(40% 50% at 10% 90%, rgba(91,155,255,.16), transparent 60%);
  pointer-events: none;
}
.how-head { position: relative; text-align: center; margin-bottom: 3rem; }
.how-head h2, .how-head h3 { color: #fff; }
.how-head .eyebrow { color: var(--brand-soft); background: rgba(255,106,26,.14); border-color: rgba(255,106,26,.30); }
.how-grid { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.how-step { display: flex; flex-direction: column; gap: 1rem; position: relative; }
.how-step .stepnum {
  width: 64px; height: 64px; border-radius: 50%;
  background: var(--brand); color: #fff;
  display: grid; place-items: center;
  font-family: var(--font-display); font-weight: 800; font-size: 1.4rem;
  box-shadow: var(--sh-brand-strong), 0 0 0 8px rgba(255,106,26,.10);
  margin-bottom: .5rem;
}
.how-step h4 { color: #fff; font-size: 1.35rem; }
.how-step p { color: rgba(255,255,255,.72); }
.how-step::after {
  content: ""; position: absolute;
  top: 32px; left: calc(64px + 1rem); right: -1rem; height: 2px;
  background: repeating-linear-gradient(90deg, rgba(255,255,255,.20) 0 8px, transparent 8px 16px);
}
.how-step:last-child::after { display: none; }

/* ---------- Solutions detailed (alternating) ---------- */
.feat {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
  padding-block: clamp(2rem, 4vw, 3.5rem);
}
.feat .copy h2 { margin-bottom: 1.25rem; max-width: 22ch; }
.feat .copy p.lead { margin-bottom: 1.5rem; }
.feat .copy .eyebrow { margin-bottom: 1rem; }
ul.check { display: grid; gap: .8rem; margin-bottom: 1.75rem; }
ul.check li { display: flex; align-items: flex-start; gap: .75rem; font-weight: 500; color: var(--ink); font-size: 1.02rem; }
ul.check li svg { flex: none; width: 22px; height: 22px; color: var(--brand); margin-top: 2px; }

.feat .visual {
  position: relative;
  border-radius: var(--r-xl);
  overflow: hidden;
  background: linear-gradient(135deg, var(--brand-wash), var(--surface-cream));
  padding: clamp(1.5rem, 3vw, 2.5rem);
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--sh-md);
}
.feat .visual::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(circle at 70% 20%, rgba(255,106,26,.18), transparent 60%);
  pointer-events: none;
}
.feat .visual img { max-width: 100%; height: auto; position: relative; transition: transform var(--t-slow); }
.feat .visual:hover img { transform: scale(1.03); }
.feat.alt { direction: rtl; }
.feat.alt > * { direction: ltr; }

/* ---------- Badge "Nouveau" ---------- */
.tag-new {
  display: inline-flex; align-items: center; gap: .35rem;
  font-family: var(--font-display); font-weight: 800; font-size: .64rem;
  letter-spacing: .09em; text-transform: uppercase;
  color: #fff;
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-dark) 100%);
  padding: .3rem .65rem; border-radius: var(--r-pill);
  box-shadow: 0 4px 12px rgba(255,106,26,.30);
  vertical-align: middle;
}
.tag-new::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: #fff; }

/* ---------- Espace médecin (dark feature band) ---------- */
.medspace {
  background: var(--ink);
  color: #fff;
  border-radius: var(--r-2xl);
  padding: clamp(2.5rem, 5vw, 4.5rem);
  position: relative; overflow: hidden;
}
.medspace::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(45% 55% at 92% 8%, rgba(255,106,26,.20), transparent 60%),
    radial-gradient(40% 50% at 4% 96%, rgba(91,155,255,.16), transparent 60%);
  pointer-events: none;
}
.medspace-grid {
  position: relative;
  display: grid; grid-template-columns: 1.05fr .95fr;
  gap: clamp(2rem, 4.5vw, 4rem);
  align-items: center;
}
.medspace .eyebrow { color: var(--brand-soft); background: rgba(255,106,26,.14); border-color: rgba(255,106,26,.30); }
.medspace h2 { color: #fff; margin: 1.4rem 0 1.1rem; }
.medspace .lead { color: rgba(255,255,255,.74); margin-bottom: 1.9rem; }
.medspace-feats { display: grid; gap: .9rem; }
.medspace-feat {
  display: flex; gap: .95rem; align-items: flex-start;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.10);
  border-radius: var(--r-lg);
  padding: 1.05rem 1.15rem;
  transition: background var(--t-base), transform var(--t-base), border-color var(--t-base);
}
.medspace-feat:hover { background: rgba(255,255,255,.09); border-color: rgba(255,106,26,.35); transform: translateX(5px); }
.medspace-feat .ic {
  width: 42px; height: 42px; border-radius: 12px; flex: none;
  display: grid; place-items: center;
  background: var(--brand); color: #fff;
  box-shadow: 0 8px 20px rgba(255,106,26,.35);
}
.medspace-feat h4 { color: #fff; font-size: 1.02rem; margin-bottom: .25rem; }
.medspace-feat p { color: rgba(255,255,255,.66); font-size: .9rem; line-height: 1.55; }

/* Dashboard mockup (espace médecin) */
.dash-mock {
  background: #fff; color: var(--ink);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-xl);
  overflow: hidden;
  transform: rotate(1.5deg);
  transition: transform var(--t-slow);
}
.medspace:hover .dash-mock { transform: rotate(0deg); }
.dash-mock .dbar {
  display: flex; align-items: center; gap: .75rem;
  padding: .7rem 1rem;
  background: var(--surface-cream);
  border-bottom: 1px solid var(--line);
}
.dash-mock .dbar .dots { display: inline-flex; gap: 5px; }
.dash-mock .dbar .dots i { width: 9px; height: 9px; border-radius: 50%; display: inline-block; }
.dash-mock .dbar .dots i:nth-child(1) { background: #FC5753; }
.dash-mock .dbar .dots i:nth-child(2) { background: #FDBC40; }
.dash-mock .dbar .dots i:nth-child(3) { background: #33C748; }
.dash-mock .dbar .ttl { font-family: var(--font-display); font-weight: 700; font-size: .76rem; color: var(--muted); }
.dash-mock .dbar .lock { margin-left: auto; display: inline-flex; align-items: center; gap: .3rem; font-size: .62rem; font-weight: 700; color: var(--mint); }
.dash-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: .6rem; padding: .95rem 1rem 0; }
.dash-tile { background: var(--surface-cream); border: 1px solid var(--line); border-radius: 10px; padding: .6rem .75rem; }
.dash-tile b { display: block; font-family: var(--font-display); font-weight: 800; font-size: 1.08rem; letter-spacing: -0.02em; }
.dash-tile span { font-size: .6rem; color: var(--muted); line-height: 1.3; display: block; }
.dash-rows { padding: .9rem 1rem 1.1rem; display: grid; gap: .55rem; }
.dash-row {
  display: flex; align-items: center; gap: .7rem;
  border: 1px solid var(--line); border-radius: 10px;
  padding: .58rem .75rem;
  box-shadow: var(--sh-xs);
}
.dash-row .fic {
  width: 30px; height: 30px; border-radius: 8px; flex: none;
  display: grid; place-items: center;
  font-family: var(--font-display); font-weight: 800; font-size: .56rem;
}
.dash-row .fic.is-orange { background: var(--brand-wash); color: var(--brand-deep); }
.dash-row .fic.is-blue { background: var(--sky-soft); color: #2563EB; }
.dash-row .fic.is-mint { background: var(--mint-soft); color: #047857; }
.dash-row .m { flex: 1; min-width: 0; }
.dash-row .m b { display: block; font-size: .72rem; font-weight: 700; }
.dash-row .m span { font-size: .6rem; color: var(--muted); }
.dash-status { font-size: .56rem; font-weight: 700; padding: .26rem .55rem; border-radius: var(--r-pill); flex: none; }
.dash-status.is-done { background: var(--mint-soft); color: #047857; }
.dash-status.is-new { background: var(--brand-wash); color: var(--brand-deep); }
.dash-status.is-progress { background: var(--sky-soft); color: #2563EB; }

/* ---------- Multilingue (9 langues) ---------- */
.langband {
  background: var(--surface-cream);
  border-radius: var(--r-2xl);
  padding: clamp(2.5rem, 5vw, 4.5rem);
  position: relative; overflow: hidden;
}
.langband::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(45% 60% at 95% 5%, rgba(255,106,26,.10), transparent 60%);
  pointer-events: none;
}
.langband-grid { position: relative; display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(2rem, 4.5vw, 4rem); align-items: center; }
.langband h2 { margin: 1.4rem 0 1.1rem; }
.langband .lead { margin-bottom: 1.75rem; }
.lang-flow { display: grid; gap: .8rem; }
.lang-flow-step { display: flex; align-items: flex-start; gap: .85rem; }
.lang-flow-step .n {
  width: 34px; height: 34px; border-radius: 50%; flex: none;
  display: grid; place-items: center;
  background: var(--brand); color: #fff;
  font-family: var(--font-display); font-weight: 800; font-size: .95rem;
  box-shadow: 0 6px 16px rgba(255,106,26,.28);
}
.lang-flow-step b { display: block; color: var(--ink); font-family: var(--font-display); font-weight: 700; font-size: 1rem; }
.lang-flow-step p { font-size: .92rem; }
.lang-chips { display: flex; flex-wrap: wrap; gap: .6rem; justify-content: center; }
.lang-chip {
  display: inline-flex; align-items: center; gap: .55rem;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-pill);
  padding: .6rem 1.05rem;
  font-weight: 600; font-size: .95rem; color: var(--ink);
  box-shadow: var(--sh-xs);
  transition: transform var(--t-base), box-shadow var(--t-base), border-color var(--t-base);
}
.lang-chip:hover { transform: translateY(-3px); box-shadow: var(--sh-md); border-color: var(--brand-pale); }
.lang-chip .code {
  font-family: var(--font-display); font-weight: 800; font-size: .6rem;
  letter-spacing: .06em;
  color: var(--brand-deep); background: var(--brand-wash);
  padding: .22rem .45rem; border-radius: 6px;
}
.lang-chip.is-main { border-color: var(--brand); background: var(--brand-wash); }
.lang-note { text-align: center; font-size: .85rem; color: var(--muted); margin-top: 1.25rem; }

/* ---------- Document mockup (MDPH / préconsultation) ---------- */
.doc-mock {
  background: #fff;
  border-radius: 14px;
  box-shadow: var(--sh-lg);
  width: min(380px, 100%);
  padding: 1.35rem 1.35rem 1.5rem;
  position: relative;
  border: 1px solid var(--line);
}
.doc-mock .dochead {
  display: flex; align-items: center; justify-content: space-between; gap: .75rem;
  padding-bottom: .85rem; margin-bottom: 1rem;
  border-bottom: 2px solid var(--ink);
}
.doc-mock .dochead b { font-family: var(--font-display); font-weight: 800; font-size: .82rem; letter-spacing: .02em; }
.doc-mock .dochead span { font-size: .6rem; color: var(--muted); display: block; }
.doc-stamp {
  flex: none;
  display: inline-flex; align-items: center; gap: .3rem;
  font-family: var(--font-display); font-weight: 800; font-size: .6rem;
  letter-spacing: .05em; text-transform: uppercase;
  color: #047857; background: var(--mint-soft);
  border: 1px solid rgba(16,185,129,.35);
  padding: .32rem .6rem; border-radius: var(--r-pill);
}
.doc-field { margin-bottom: .8rem; }
.doc-field label { display: block; font-family: var(--font-display); font-weight: 700; font-size: .6rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted-2); margin-bottom: .3rem; }
.doc-field .val {
  background: var(--mint-soft);
  border: 1px dashed rgba(16,185,129,.45);
  border-radius: 8px;
  padding: .5rem .65rem;
  font-size: .74rem; color: var(--ink); font-weight: 500;
  display: flex; align-items: center; gap: .45rem;
}
.doc-field .val svg { flex: none; color: var(--mint); }
.doc-field .val.is-empty {
  background: var(--surface-soft);
  border: 1.5px solid var(--line);
  color: var(--muted-2); font-style: italic;
}
.doc-foot { display: flex; align-items: center; gap: .5rem; margin-top: 1rem; font-size: .66rem; color: var(--muted); }
.doc-foot .bar { flex: 1; height: 7px; border-radius: 4px; background: var(--line); overflow: hidden; position: relative; }
.doc-foot .bar i { position: absolute; inset: 0; width: 80%; background: linear-gradient(90deg, var(--mint), #34D399); border-radius: 4px; }
.doc-foot b { color: var(--ink); font-family: var(--font-display); }

/* ---------- Testimonials ---------- */
.testimonials-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem;
}
.testimonial {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  padding: 2rem 1.85rem;
  position: relative;
  display: flex; flex-direction: column;
  transition: transform var(--t-base), box-shadow var(--t-base), border-color var(--t-base);
}
.testimonial:hover { transform: translateY(-4px); border-color: transparent; box-shadow: var(--sh-lg); }
.testimonial .stars { display: inline-flex; gap: 2px; color: var(--gold); margin-bottom: 1.25rem; }
.testimonial blockquote {
  font-family: var(--font-display);
  font-size: 1.18rem; line-height: 1.45;
  color: var(--ink); font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 1.5rem;
  flex: 1;
}
.testimonial .author { display: flex; align-items: center; gap: .85rem; padding-top: 1.25rem; border-top: 1px solid var(--line); }
.testimonial .author .avatar {
  width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center;
  background: linear-gradient(135deg, var(--brand), var(--brand-dark));
  color: #fff; font-family: var(--font-display); font-weight: 800;
}
.testimonial .author .meta b { display: block; font-family: var(--font-display); font-weight: 700; color: var(--ink); }
.testimonial .author .meta span { font-size: .82rem; color: var(--muted); }
.testimonial::before {
  content: "\201C";
  position: absolute; top: .25rem; right: 1.5rem;
  font-family: 'Manrope', serif; font-size: 6.5rem; line-height: 1; color: var(--brand-pale);
  pointer-events: none;
  font-weight: 800;
}

/* ---------- CTA section ---------- */
.cta-band {
  background: linear-gradient(135deg, var(--ink) 0%, #1A2654 100%);
  color: #fff;
  border-radius: var(--r-2xl);
  padding: clamp(3rem, 6vw, 5rem);
  position: relative; overflow: hidden;
  text-align: center;
}
.cta-band::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(40% 50% at 80% 10%, rgba(255,106,26,.22), transparent 60%),
    radial-gradient(40% 60% at 0% 100%, rgba(91,155,255,.16), transparent 60%);
}
.cta-band > * { position: relative; }
.cta-band h2 { color: #fff; max-width: 22ch; margin: 0 auto 1.25rem; }
.cta-band .lead { color: rgba(255,255,255,.75); margin: 0 auto 2rem; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--ink); color: rgba(255,255,255,.82);
  padding-block: clamp(3.5rem, 6vw, 5rem) 2rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 3.5rem;
}
.footer-brand .nav-logo { color: #fff; }
.footer-brand .nav-logo img {
  width: 200px; height: auto;
  background: #fff;
  padding: .7rem .9rem;
  border-radius: 14px;
  box-shadow: var(--sh-md);
}
.footer-brand p { color: rgba(255,255,255,.62); margin-top: 1rem; font-size: .95rem; max-width: 32ch; }
.footer-col h5 { font-family: var(--font-display); font-weight: 800; font-size: .82rem; letter-spacing: .14em; text-transform: uppercase; color: #fff; margin-bottom: 1.25rem; }
.footer-col ul { display: grid; gap: .7rem; }
.footer-col a { color: rgba(255,255,255,.72); font-size: .95rem; transition: color var(--t-fast); display: inline-block; }
.footer-col a:hover { color: var(--brand-soft); }
.footer-col .icon-link { display: inline-flex; align-items: center; gap: .55rem; }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; padding-top: 1.75rem; border-top: 1px solid var(--line-dark); flex-wrap: wrap; gap: 1rem; font-size: .85rem; color: rgba(255,255,255,.55); }

/* ---------- Page hero (sub pages) ---------- */
.page-hero {
  padding-block: clamp(3.5rem, 6vw, 5.5rem) clamp(2.5rem, 5vw, 4.5rem);
  text-align: center;
  position: relative; overflow: hidden;
  background:
    radial-gradient(60% 60% at 50% 0%, rgba(255,106,26,.10) 0%, transparent 70%),
    linear-gradient(180deg, var(--surface-cream) 0%, var(--surface) 90%);
}
.page-hero .eyebrow { margin-bottom: 1.25rem; }
.page-hero h1 { max-width: 22ch; margin: 0 auto 1.25rem; }
.page-hero .lead { margin: 0 auto 2rem; text-align: center; }

/* ---------- Solutions page mini-cards ---------- */
.mini-features {
  display: grid; grid-template-columns: repeat(6, 1fr); gap: 1rem;
  margin-top: 2.5rem;
}
.mini-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md);
  padding: 1.25rem 1rem; text-align: center;
  transition: transform var(--t-base), box-shadow var(--t-base);
}
.mini-card:hover { transform: translateY(-3px); box-shadow: var(--sh-md); }
.mini-card .ic { width: 40px; height: 40px; margin: 0 auto .65rem; display: grid; place-items: center; border-radius: 10px; background: var(--brand-wash); color: var(--brand); }
.mini-card h4 { font-size: .92rem; margin-bottom: .35rem; }
.mini-card p { font-size: .8rem; line-height: 1.45; }

/* ---------- Site personnel (3 cards) ---------- */
.persite {
  background: var(--surface-cream);
  border-radius: var(--r-2xl);
  padding: clamp(2.5rem, 5vw, 4.5rem);
  position: relative; overflow: hidden;
}
.persite-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
.persite .cards { display: grid; gap: 1rem; }
.persite .pcard {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 1.5rem;
  display: flex; align-items: flex-start; gap: 1rem;
  transition: transform var(--t-base);
}
.persite .pcard:hover { transform: translateX(6px); }
.persite .pcard .ic { width: 48px; height: 48px; border-radius: 12px; background: var(--brand); color: #fff; display: grid; place-items: center; flex: none; }
.persite .pcard h4 { margin-bottom: .25rem; }
.persite .pcard p { font-size: .92rem; }

/* ---------- Pricing ---------- */
.pricing-toggle {
  display: inline-flex; align-items: center; gap: 0;
  background: var(--surface); border: 1px solid var(--line);
  padding: 6px; border-radius: var(--r-pill);
  margin: 0 auto 3rem;
  box-shadow: var(--sh-sm);
}
.pricing-toggle button {
  font-family: var(--font-display); font-weight: 700; font-size: .95rem;
  padding: .7rem 1.5rem; border-radius: var(--r-pill);
  color: var(--muted); transition: all var(--t-base);
}
.pricing-toggle button.is-active { background: var(--ink); color: #fff; box-shadow: var(--sh-md); }

.pricing-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem;
  max-width: 1100px; margin-inline: auto;
}
.pricing-grid.is-single { grid-template-columns: minmax(0, 480px); justify-content: center; }
.plan {
  background: var(--surface);
  border: 1.5px solid var(--line);
  border-radius: var(--r-xl);
  padding: 2rem 1.85rem 2.25rem;
  display: flex; flex-direction: column;
  position: relative;
  transition: transform var(--t-base), box-shadow var(--t-base), border-color var(--t-base);
}
.plan:hover { transform: translateY(-4px); box-shadow: var(--sh-lg); }
.plan.is-featured { border-color: var(--brand); box-shadow: var(--sh-lg); transform: translateY(-8px); }
.plan.is-featured:hover { transform: translateY(-12px); }
.plan.is-featured::before {
  content: "Le plus populaire";
  position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
  background: var(--brand); color: #fff;
  font-family: var(--font-display); font-weight: 700; font-size: .78rem;
  padding: .4rem .9rem; border-radius: var(--r-pill);
  box-shadow: var(--sh-brand);
  white-space: nowrap;
}
.plan .badge {
  display: inline-flex; align-items: center; gap: .4rem;
  font-family: var(--font-display); font-weight: 700; font-size: .82rem;
  padding: .4rem .85rem; border-radius: var(--r-pill);
  background: var(--brand-wash); color: var(--brand-deep);
  margin-bottom: 1.25rem;
  align-self: flex-start;
}
.plan h3 { font-size: 1.55rem; margin-bottom: .35rem; }
.plan .desc { color: var(--muted); font-size: .95rem; min-height: 3.5em; margin-bottom: 1.5rem; }
.plan .price-block { display: flex; align-items: baseline; gap: .65rem; flex-wrap: wrap; margin-bottom: .4rem; }
.plan .price-old { font-size: 1.05rem; color: var(--muted-2); text-decoration: line-through; text-decoration-thickness: 2px; }
.plan .price-pct { font-family: var(--font-display); font-weight: 800; font-size: .82rem; color: #fff; background: var(--mint); padding: .25rem .6rem; border-radius: var(--r-pill); }
.plan .price { font-family: var(--font-display); font-weight: 800; font-size: 3rem; color: var(--ink); letter-spacing: -0.035em; line-height: 1; }
.plan .period { font-family: var(--font-display); font-weight: 600; color: var(--muted); font-size: 1rem; }
.plan .install-note { font-size: .82rem; color: var(--muted); margin-bottom: 1.5rem; }
.plan ul.features { display: grid; gap: .85rem; margin-bottom: 1.75rem; }
.plan ul.features li { display: flex; gap: .65rem; font-size: .95rem; color: var(--ink); align-items: flex-start; }
.plan ul.features li svg { flex: none; width: 20px; height: 20px; color: var(--brand); margin-top: 2px; }
.plan .cta { margin-top: auto; }

/* ---------- Contact page ---------- */
.contact-grid {
  display: grid; grid-template-columns: 1.2fr .8fr; gap: 3rem;
  align-items: start;
}
.contact-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-xl);
  padding: clamp(1.75rem, 3vw, 2.5rem);
}
.contact-form { display: grid; gap: 1.1rem; }
.field { display: flex; flex-direction: column; gap: .45rem; }
.field label { font-family: var(--font-display); font-weight: 700; font-size: .85rem; color: var(--ink); }
.field input, .field textarea {
  width: 100%; padding: .9rem 1rem;
  border: 1.5px solid var(--line); border-radius: var(--r-sm);
  background: var(--surface-soft);
  font-size: 1rem; color: var(--ink);
  transition: border-color var(--t-fast), background var(--t-fast), box-shadow var(--t-fast);
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--brand); background: var(--surface); box-shadow: 0 0 0 4px rgba(255,106,26,.12); }
.field textarea { resize: vertical; min-height: 140px; line-height: 1.55; }
.consent { display: flex; gap: .7rem; align-items: flex-start; font-size: .9rem; color: var(--muted); }
.consent input { margin-top: 3px; width: 18px; height: 18px; accent-color: var(--brand); flex: none; }
.form-feedback { padding: 1rem 1.1rem; border-radius: var(--r-sm); font-size: .92rem; }
.form-feedback.ok { background: var(--mint-soft); color: #065F46; border: 1px solid rgba(16,185,129,.30); }
.form-feedback.err { background: #FEE2E2; color: #991B1B; border: 1px solid rgba(220,38,38,.25); }
.hidden { display: none !important; }

.contact-side { display: grid; gap: 1.25rem; }
.info-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 1.5rem 1.65rem;
  display: flex; gap: 1rem; align-items: flex-start;
  transition: transform var(--t-base), box-shadow var(--t-base);
}
.info-card:hover { transform: translateY(-3px); box-shadow: var(--sh-md); }
.info-card .ic { width: 44px; height: 44px; border-radius: 12px; background: var(--brand-wash); color: var(--brand); display: grid; place-items: center; flex: none; }
.info-card h4 { font-size: 1rem; margin-bottom: .25rem; }
.info-card p, .info-card a { font-size: .95rem; color: var(--muted); line-height: 1.5; }
.info-card a:hover { color: var(--brand); }

/* ---------- Ressources page ---------- */
.res-toolbar {
  display: flex; align-items: center; gap: 1rem; flex-wrap: wrap;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-pill);
  padding: .5rem .5rem .5rem 1.25rem;
  box-shadow: var(--sh-sm);
  margin-bottom: 2rem;
}
.res-search {
  display: flex; align-items: center; gap: .65rem; flex: 1; min-width: 200px;
}
.res-search svg { flex: none; color: var(--muted-2); }
.res-search input {
  border: 0; background: transparent;
  font-size: 1rem; width: 100%;
  padding: .65rem 0;
}
.res-search input:focus { outline: none; }
.res-count { color: var(--muted); font-size: .9rem; padding-right: .25rem; }
.res-clear { color: var(--brand); font-family: var(--font-display); font-weight: 700; font-size: .85rem; padding: .65rem 1rem; border-radius: var(--r-pill); }

.res-chips { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 2.5rem; }
.res-chip {
  font-family: var(--font-display); font-weight: 600; font-size: .88rem;
  padding: .55rem 1rem; border-radius: var(--r-pill);
  background: var(--surface); color: var(--ink); border: 1.5px solid var(--line);
  transition: all var(--t-fast);
}
.res-chip:hover { border-color: var(--ink); }
.res-chip.is-active { background: var(--ink); color: #fff; border-color: var(--ink); }
.res-chip .count { color: var(--muted); margin-left: .3rem; font-weight: 500; }
.res-chip.is-active .count { color: rgba(255,255,255,.6); }

.res-category { margin-bottom: 3rem; }
.res-cat-head { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.5rem; flex-wrap: wrap; }
.res-cat-head h3 { font-size: 1.5rem; }
.res-cat-head .cat-meta { font-size: .9rem; color: var(--muted); }
.res-cat-head .cat-ic { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; color: #fff; flex: none; }

.res-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1rem; }
.res-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 1.25rem;
  display: flex; gap: .85rem;
  transition: transform var(--t-base), box-shadow var(--t-base), border-color var(--t-base);
  text-decoration: none; color: var(--ink);
}
.res-card:hover { transform: translateY(-3px); box-shadow: var(--sh-md); border-color: var(--brand-pale); }
.res-card .pdf-ic {
  flex: none; width: 40px; height: 50px;
  border-radius: 6px;
  background: linear-gradient(135deg, #FEE9DA, #FFD0A8);
  color: var(--brand-deep);
  display: grid; place-items: center;
  font-family: var(--font-display); font-weight: 800; font-size: .68rem;
  position: relative;
  border: 1px solid rgba(255,106,26,.25);
}
.res-card .pdf-ic::before { content: ""; position: absolute; top: 0; right: 0; width: 10px; height: 10px; background: rgba(255,106,26,.35); border-bottom-left-radius: 4px; }
.res-card .body { flex: 1; min-width: 0; }
.res-card h4 { font-size: .98rem; line-height: 1.3; margin-bottom: .35rem; word-break: break-word; }
.res-card .dl { display: inline-flex; align-items: center; gap: .25rem; font-family: var(--font-display); font-weight: 700; font-size: .82rem; color: var(--brand); }
.res-card .dl svg { transition: transform var(--t-base); }
.res-card:hover .dl svg { transform: translateY(2px); }

.res-empty {
  padding: 4rem 2rem; text-align: center;
  background: var(--surface-cream); border-radius: var(--r-lg);
}
.res-empty h3 { margin-bottom: .5rem; }

/* ---------- Reveal animations ---------- */
[data-reveal] {
  opacity: 0; transform: translateY(28px);
  transition: opacity .9s var(--ease-out), transform .9s var(--ease-out);
  will-change: opacity, transform;
}
[data-reveal].is-visible { opacity: 1; transform: translateY(0); }
[data-reveal-delay="100"] { transition-delay: .10s; }
[data-reveal-delay="200"] { transition-delay: .20s; }
[data-reveal-delay="300"] { transition-delay: .30s; }
[data-reveal-delay="400"] { transition-delay: .40s; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
  [data-reveal] { opacity: 1; transform: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; gap: 3rem; }
  .hero-visual { aspect-ratio: 4/3; max-width: 500px; margin: 0 auto; }
  .values-grid, .solutions-grid, .testimonials-grid { grid-template-columns: repeat(2, 1fr); }
  .medspace-grid, .langband-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .dash-mock { max-width: 460px; margin-inline: auto; transform: rotate(0); }
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; }
  .footer-grid .footer-col:nth-child(4) { grid-column: 2 / 4; }
  .mini-features { grid-template-columns: repeat(3, 1fr); }
  .persite-grid { grid-template-columns: 1fr; }
  .pricing-grid { grid-template-columns: 1fr; max-width: 480px; }
  .plan.is-featured { transform: none; }
  .plan.is-featured:hover { transform: translateY(-4px); }
  .contact-grid { grid-template-columns: 1fr; }
  .feat { grid-template-columns: 1fr; }
  .feat.alt { direction: ltr; }
  .feat .visual { order: -1; }
  .how-grid { grid-template-columns: 1fr; }
  .how-step::after { display: none; }
  .trust-strip .row { flex-direction: column; align-items: flex-start; gap: 1.25rem; }
}

@media (max-width: 720px) {
  .nav-links, .nav-cta .btn-ghost, .nav-cta .btn-primary { display: none; }
  .nav-toggle { display: inline-flex; }
  .values-grid, .solutions-grid, .testimonials-grid { grid-template-columns: 1fr; }
  .mini-features { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid .footer-col:nth-child(4) { grid-column: 1 / 3; }
  .footer-brand { grid-column: 1 / 3; }
  .res-toolbar { flex-direction: column; align-items: stretch; padding: .75rem; border-radius: var(--r-lg); }
  .res-search { padding: .25rem .5rem; }
  .res-clear, .res-count { padding: .5rem; }
}

@media (max-width: 480px) {
  :root { --section-y: 4rem; }
  h1 { font-size: 2.2rem; }
  h2 { font-size: 1.8rem; }
  .btn { width: auto; }
  .btn-lg { padding: 1rem 1.4rem; font-size: 1rem; }
  .mockup-phone { width: 220px; }
  .mockup-card { font-size: .72rem; padding: .65rem .8rem; }
}
