/* Ulas Systems — Website
   Marke: ~/.claude/design-guidelines/ulas-systems-brand.md
   Komponenten: ~/.claude/design-guidelines/cards-and-buttons.md */

:root {
  --accent-rgb: 23, 88, 122;
  --accent: rgb(var(--accent-rgb));
  --accent-lt: #2E86B0;
  --accent-strong: #0E3A52;
  --secondary: #23282D;

  --bg: #F4F7F9;
  --surface: #FFFFFF;
  --ink: #23282D;
  --muted: #5B6874;
  --line: rgba(23, 88, 122, .16);

  --success: #1E9E6A;
  --warning: #C77A11;

  --font-display: "Chakra Petch", "Segoe UI", system-ui, sans-serif;
  --font-body: "Montserrat", "Segoe UI", system-ui, sans-serif;

  --pop-ease: cubic-bezier(0.34, 1.56, 0.64, 1);
  --pop-lift: translateY(-4px) scale(1.03);

  --glow-soft:   0 0 0 1px rgba(var(--accent-rgb), .35),
                 0 16px 34px -16px rgba(var(--accent-rgb), .22),
                 0 5px 14px rgba(var(--accent-rgb), .10);
  --glow-strong: 0 0 0 2px rgba(var(--accent-rgb), .70),
                 0 30px 55px -12px rgba(var(--accent-rgb), .40),
                 0 12px 26px rgba(var(--accent-rgb), .22);

  --r-sm: 10px; --r-md: 16px; --r-lg: 24px; --r-pill: 999px;
  --wrap: 1160px;
  --header-h: 72px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { background: var(--bg); scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  font-family: var(--font-body);
  color: var(--ink);
  line-height: 1.6;
  background:
    radial-gradient(900px 520px at 82% -10%, rgba(var(--accent-rgb), .09), transparent 60%),
    linear-gradient(180deg, #FFFFFF, var(--bg) 900px);
  background-color: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: var(--accent); }
.sym { font-family: "Segoe UI Symbol", "Segoe UI", system-ui, sans-serif; }

h1, h2, h3, .eyebrow, .btn, .stat-n, .step-n { font-family: var(--font-display); }
h1 { font-size: clamp(38px, 6vw, 72px); line-height: 1.04; letter-spacing: -.01em; font-weight: 700; }
h2 { font-size: clamp(28px, 4.2vw, 46px); line-height: 1.08; letter-spacing: -.01em; font-weight: 700; }
h3 { font-size: clamp(19px, 2vw, 22px); line-height: 1.2; font-weight: 600; }
p, li { font-size: clamp(15px, 1.4vw, 17px); }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  text-transform: uppercase; letter-spacing: .16em; font-weight: 600; font-size: 13px;
  color: var(--accent);
}
.eyebrow::before { content: ""; width: 22px; height: 2px; background: currentColor; }
.lead { font-size: clamp(16px, 1.7vw, 19px); color: var(--muted); max-width: 60ch; }
.hl { color: var(--accent); }

.wrap { width: min(var(--wrap), 100% - 32px); margin-inline: auto; }
section { padding: clamp(64px, 8.5vw, 112px) 0; position: relative; }
.section-head { max-width: 720px; margin-bottom: clamp(36px, 5vw, 56px); }
.section-head h2 { margin: 14px 0 16px; }

/* Blueprint-Raster */
.grid-texture::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image:
    linear-gradient(rgba(23, 88, 122, .05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(23, 88, 122, .05) 1px, transparent 1px);
  background-size: 32px 32px;
  -webkit-mask-image: radial-gradient(ellipse at 50% 40%, #000 0%, transparent 75%);
  mask-image: radial-gradient(ellipse at 50% 40%, #000 0%, transparent 75%);
}

/* ── Header ── */
.site-header {
  position: sticky; top: 0; z-index: 50;
  height: var(--header-h);
  background: rgba(255, 255, 255, .82);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s ease, box-shadow .3s ease;
}
.site-header.is-scrolled { border-color: var(--line); box-shadow: 0 8px 24px -18px rgba(var(--accent-rgb), .5); }
.site-header .wrap { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; }
.brand-logo { height: 28px; width: auto; }
.nav { display: flex; align-items: center; gap: 28px; }
.nav a:not(.btn) {
  position: relative; color: var(--ink); text-decoration: none;
  font-weight: 500; font-size: 15px; padding: 6px 0;
  transition: color .3s ease;
}
.nav a:not(.btn)::after {
  content: ""; position: absolute; left: 50%; bottom: 0; height: 1.5px; width: 0;
  background: var(--accent); transform: translateX(-50%); transition: width .3s ease;
}
.nav .btn { padding: 11px 20px; font-size: 14px; }
.nav-toggle { display: none; }

/* ── Buttons: schräger Sweep ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 15px 26px; border-radius: var(--r-pill);
  font-weight: 600; font-size: 16px; letter-spacing: .02em;
  cursor: pointer; border: 0; text-decoration: none;
  position: relative; z-index: 1; overflow: hidden; isolation: isolate;
  transition: color .45s ease, box-shadow .35s ease;
}
.btn::after {
  content: ""; position: absolute; inset: 0 -20%; z-index: -1;
  background: var(--sweep);
  transform: skewX(-45deg) scale(0, 1); transform-origin: center;
  transition: transform .5s ease;
}
.btn-accent  { background: var(--accent); color: #fff; --sweep: var(--secondary); }
.btn-primary { background: var(--secondary); color: #fff; --sweep: var(--accent); }
.btn-ghost   { background: transparent; color: var(--secondary); --sweep: var(--accent);
               box-shadow: inset 0 0 0 1.5px rgba(35, 40, 45, .22); }
.btn.is-activating::after { animation: btn-sweep .5s ease forwards; }
.btn-ghost.is-activating { color: #fff; }
@keyframes btn-sweep {
  from { transform: skewX(-45deg) scale(0, 1); }
  to   { transform: skewX(-45deg) scale(1, 1); }
}

/* ── Cards: Spotlight + Pop ── */
.card {
  background: var(--surface);
  border: 1.5px solid rgba(var(--accent-rgb), .30);
  border-radius: var(--r-lg); padding: 32px;
  box-shadow: var(--glow-soft);
  transition: transform .4s var(--pop-ease), box-shadow .4s ease, border-color .35s ease, opacity .6s ease;
}

/* Hover nur für Maus */
@media (hover: hover) and (pointer: fine) {
  .nav a:not(.btn):hover { color: var(--accent); }
  .nav a:not(.btn):hover::after { width: 100%; }
  .btn:hover::after { transform: skewX(-45deg) scale(1, 1); }
  .btn-ghost:hover { color: #fff; }
  .card:hover { transform: var(--pop-lift); border-color: var(--accent-strong); box-shadow: var(--glow-strong); }
}

/* ── Hero ── */
.hero { padding: clamp(48px, 8vw, 96px) 0 clamp(72px, 9vw, 112px); overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero h1 { margin: 18px 0 22px; }
.hero .lead { margin-bottom: 34px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-note { margin-top: 26px; display: flex; flex-wrap: wrap; gap: 8px 22px; color: var(--muted); font-size: 14px; }
.hero-note span { display: inline-flex; align-items: center; gap: 8px; }
.hero-note span::before { content: ""; width: 7px; height: 7px; border-radius: 2px; background: var(--accent); transform: rotate(45deg); }

/* Hero-Bild: nachgebaute App-Oberfläche */
.mock { position: relative; padding: 12px 0 48px 24px; }
.mock-panel {
  background: var(--surface); border-radius: var(--r-lg);
  box-shadow: var(--glow-soft), 0 40px 80px -40px rgba(14, 58, 82, .45);
  border: 1px solid var(--line); overflow: hidden;
}
.mock-bar { display: flex; align-items: center; gap: 8px; padding: 14px 18px; border-bottom: 1px solid var(--line); background: #FAFCFD; }
.mock-bar i { width: 10px; height: 10px; border-radius: 50%; background: rgba(var(--accent-rgb), .18); }
.mock-bar b { margin-left: 10px; font-family: var(--font-display); font-weight: 600; font-size: 14px; color: var(--muted); letter-spacing: .04em; }
.mock-body { padding: 20px; display: grid; gap: 12px; }
.mock-title { display: flex; justify-content: space-between; align-items: baseline; }
.mock-title strong { font-family: var(--font-display); font-size: 18px; }
.mock-title small { color: var(--muted); font-size: 13px; }
.msg {
  display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: center;
  padding: 14px 16px; border-radius: var(--r-md); border: 1px solid var(--line); background: #fff;
}
.msg-ic {
  width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center;
  background: rgba(var(--accent-rgb), .09); color: var(--accent);
}
.msg-ic svg { width: 20px; height: 20px; }
.msg p { font-size: 14px; line-height: 1.4; }
.msg p b { display: block; font-size: 14px; }
.msg p span { color: var(--muted); font-size: 13px; }
.tag {
  font-family: var(--font-display); font-weight: 600; font-size: 12px; letter-spacing: .04em;
  padding: 5px 10px; border-radius: var(--r-pill); white-space: nowrap;
  background: rgba(var(--accent-rgb), .10); color: var(--accent);
}
.tag.t-ok { background: rgba(30, 158, 106, .12); color: #157A52; }
.tag.t-warn { background: rgba(199, 122, 17, .12); color: #9A5E0C; }
.mock-float {
  position: absolute; left: -8px; bottom: 0;
  background: var(--secondary); color: #fff; border-radius: var(--r-md);
  padding: 14px 18px; display: flex; gap: 14px; align-items: center;
  box-shadow: 0 24px 40px -20px rgba(35, 40, 45, .6);
}
.mock-float .stat-n { font-size: 30px; line-height: 1; color: #8CC8E4; font-weight: 700; }
.mock-float p { font-size: 13px; line-height: 1.35; color: rgba(255, 255, 255, .82); }

/* ── Problem-Leiste ── */
.pain { padding: 0 0 clamp(56px, 8vw, 96px); }
.pain-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.pain-item { background: var(--surface); padding: 28px 28px 30px; }
.pain-item h3 { font-size: 18px; margin-bottom: 8px; }
.pain-item p { color: var(--muted); font-size: 15px; }
.pain-n { font-family: var(--font-display); font-weight: 700; color: var(--accent); font-size: 14px; letter-spacing: .1em; display: block; margin-bottom: 12px; }

/* ── Leistungen ── */
.services { background: linear-gradient(180deg, transparent, rgba(var(--accent-rgb), .04) 30%, transparent); }
.svc-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.svc { display: flex; flex-direction: column; }
.svc-ic {
  width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 22px;
  background: linear-gradient(135deg, var(--accent), var(--accent-strong)); color: #fff;
  clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
}
.svc-ic svg { width: 24px; height: 24px; }
.svc h3 { margin-bottom: 10px; }
.svc > p { color: var(--muted); margin-bottom: 18px; }
.ticks { list-style: none; display: grid; gap: 9px; margin-top: auto; }
.ticks li { position: relative; padding-left: 28px; font-size: 15px; }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: .35em; width: 16px; height: 16px; border-radius: 5px;
  background: rgba(var(--accent-rgb), .12) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.2l2.6 2.6L12 5.4' fill='none' stroke='%2317587A' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/12px no-repeat;
}
.svc-more { margin-top: 28px; padding: 22px 26px; border: 1.5px dashed rgba(var(--accent-rgb), .35); border-radius: var(--r-lg); display: flex; gap: 18px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.svc-more p { color: var(--muted); }
.svc-more strong { color: var(--ink); }

/* ── Aus der Praxis ── */
.cases-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.case { display: flex; flex-direction: column; gap: 18px; }
.case-kind { font-family: var(--font-display); font-weight: 600; color: var(--accent); letter-spacing: .06em; text-transform: uppercase; font-size: 13px; }
.case-row { display: grid; grid-template-columns: 92px 1fr; gap: 14px; padding-top: 14px; border-top: 1px solid var(--line); }
.case-row dt { font-family: var(--font-display); font-weight: 600; font-size: 14px; color: var(--muted); }
.case-row dd { font-size: 15px; }

/* ── Ablauf ── */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: step; position: relative; }
.steps::before {
  content: ""; position: absolute; left: 4%; right: 4%; top: 27px; height: 2px;
  background: repeating-linear-gradient(90deg, rgba(var(--accent-rgb), .35) 0 8px, transparent 8px 16px);
}
.step { position: relative; }
.step-n {
  width: 56px; height: 56px; display: grid; place-items: center; margin-bottom: 22px;
  background: var(--surface); color: var(--accent); font-size: 20px; font-weight: 700;
  border: 2px solid var(--accent); border-radius: 16px; position: relative;
  clip-path: polygon(12px 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%, 0 12px);
}
.step h3 { margin-bottom: 8px; }
.step p { color: var(--muted); font-size: 15px; }

/* ── Datenschutz (dunkles Band) ── */
.trust { background: var(--secondary); color: #fff; overflow: hidden; }
.trust::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(700px 400px at 90% 0%, rgba(46, 134, 176, .28), transparent 60%),
    linear-gradient(rgba(255, 255, 255, .04) 1px, transparent 1px) 0 0/32px 32px,
    linear-gradient(90deg, rgba(255, 255, 255, .04) 1px, transparent 1px) 0 0/32px 32px;
}
.trust .wrap { position: relative; display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
.trust .eyebrow { color: #8CC8E4; }
.trust h2 { margin: 14px 0 18px; }
.trust .lead { color: rgba(255, 255, 255, .72); }
.trust-list { list-style: none; display: grid; gap: 14px; }
.trust-list li {
  display: grid; grid-template-columns: 44px 1fr; gap: 16px; align-items: start;
  padding: 20px 22px; border-radius: var(--r-md);
  background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .10);
}
.trust-list .t-ic { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: rgba(46, 134, 176, .18); color: #8CC8E4; }
.trust-list .t-ic svg { width: 22px; height: 22px; }
.trust-list b { display: block; font-family: var(--font-display); font-weight: 600; font-size: 17px; margin-bottom: 4px; }
.trust-list p { color: rgba(255, 255, 255, .7); font-size: 15px; }

/* ── Pflegeheime / Über ── */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.split .card h3 { margin: 14px 0 10px; font-size: clamp(22px, 2.4vw, 28px); }
.split .card p { color: var(--muted); }
.split .card p + p { margin-top: 12px; }
.split .card .btn { margin-top: 24px; align-self: flex-start; }
.split .card { display: flex; flex-direction: column; }

/* ── Kontakt ── */
.contact-box {
  position: relative; overflow: hidden;
  border-radius: 32px; padding: clamp(36px, 6vw, 72px);
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-strong) 100%);
  color: #fff; display: grid; grid-template-columns: 1.2fr .8fr; gap: 40px; align-items: center;
}
.contact-box::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(rgba(255, 255, 255, .06) 1px, transparent 1px) 0 0/32px 32px,
    linear-gradient(90deg, rgba(255, 255, 255, .06) 1px, transparent 1px) 0 0/32px 32px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000);
  mask-image: linear-gradient(90deg, transparent, #000);
}
.contact-box > * { position: relative; }
.contact-box .eyebrow { color: #BFE3F3; }
.contact-box h2 { margin: 14px 0 16px; }
.contact-box .lead { color: rgba(255, 255, 255, .8); }
.contact-actions { display: grid; gap: 14px; }
.contact-actions .btn { width: 100%; justify-content: flex-start; padding: 18px 24px; }
.btn-white { background: #fff; color: var(--secondary); --sweep: var(--secondary); }
.btn-line  { background: rgba(255, 255, 255, .06); color: #fff; --sweep: var(--secondary); box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .4); }
.btn-white.is-activating { color: #fff; }
@media (hover: hover) and (pointer: fine) { .btn-white:hover { color: #fff; } }
.btn small { display: block; font-family: var(--font-body); font-weight: 500; font-size: 13px; opacity: .75; letter-spacing: 0; }
.btn .btn-ic { width: 22px; height: 22px; flex: none; }

/* ── Footer ── */
.site-footer { padding: 40px 0 48px; border-top: 1px solid var(--line); margin-top: clamp(72px, 10vw, 128px); }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 20px 40px; align-items: center; justify-content: space-between; }
.site-footer p, .site-footer a { font-size: 14px; color: var(--muted); text-decoration: none; }
.site-footer nav { display: flex; gap: 24px; }
@media (hover: hover) and (pointer: fine) { .site-footer a:hover { color: var(--accent); } }

/* ── Rechtstexte ── */
.legal { padding: clamp(48px, 8vw, 96px) 0 0; }
.legal .wrap { max-width: 780px; }
.legal h1 { font-size: clamp(34px, 5vw, 52px); margin: 14px 0 32px; }
.legal h2 { font-size: clamp(20px, 2.4vw, 24px); margin: 40px 0 12px; }
.legal p, .legal li { color: #3A434C; margin-bottom: 12px; }
.legal ul { padding-left: 22px; }


/* ── Hero: Fluss-Bild (Anzeige → Anfrage → Bericht) ── */
.flow { position: relative; display: grid; gap: 14px; padding: 28px 24px 24px; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--r-lg);
  box-shadow: var(--glow-soft), 0 40px 80px -40px rgba(14, 58, 82, .45); }
.flow-label { font-family: var(--font-display); font-weight: 600; font-size: 13px; letter-spacing: .06em; color: var(--muted); margin-bottom: 4px; }
.flow-step { position: relative; display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: center;
  padding: 14px 16px; border-radius: var(--r-md); border: 1px solid var(--line); background: #fff; }
.flow-step + .flow-step::before { content: ""; position: absolute; left: 34px; top: -15px; height: 14px; width: 2px;
  background: repeating-linear-gradient(180deg, rgba(var(--accent-rgb), .45) 0 3px, transparent 3px 6px); }
.flow-step.is-hot { border-color: rgba(var(--accent-rgb), .55); box-shadow: 0 0 0 3px rgba(var(--accent-rgb), .08); }
.flow-ic { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; background: rgba(var(--accent-rgb), .09); color: var(--accent); }
.flow-step.is-hot .flow-ic { background: var(--accent); color: #fff; }
.flow-ic svg { width: 20px; height: 20px; }
.flow-step p { font-size: 14px; line-height: 1.4; }
.flow-step p b { display: block; }
.flow-step p span { color: var(--muted); font-size: 13px; }

/* ── System-Intro + Bausteine ── */
.system-intro { display: grid; grid-template-columns: 1fr 1fr; gap: 24px 56px; align-items: end; margin-bottom: clamp(36px, 5vw, 56px); }
.system-intro h2 { margin-top: 14px; }
.blocks { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.block { padding: 28px; }
.block h3 { margin-bottom: 10px; }
.block p { color: var(--muted); font-size: 15px; }

/* ── Messbar ── */
.measure { padding-top: 0; }
.measure-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.measure-item { padding: 28px 0 0; border-top: 2px solid var(--accent); }
.measure-k { display: block; font-family: var(--font-display); font-weight: 700; font-size: clamp(26px, 3vw, 34px); color: var(--accent); margin-bottom: 8px; }
.measure-item p { color: var(--muted); }

/* ── Beispiel-Kennzahl ── */
.case-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.case-stat { font-family: var(--font-display); font-weight: 700; font-size: 26px; line-height: 1; color: var(--accent); text-align: right; white-space: nowrap; }
.case-stat small { display: block; font-family: var(--font-body); font-weight: 500; font-size: 12px; color: var(--muted); margin-top: 4px; }

@media (max-width: 980px) {
  .blocks { grid-template-columns: repeat(2, 1fr); }
  .system-intro { grid-template-columns: 1fr; }
  .flow { max-width: 560px; }
}
@media (max-width: 640px) {
  .blocks, .measure-grid { grid-template-columns: 1fr; }
  .flow { padding: 20px 16px 16px; }
  .flow-step { grid-template-columns: auto 1fr; }
  .flow-step .tag { grid-column: 2; justify-self: start; }
}

/* ── Scroll-Reveal ── */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }
/* Card-Hover nach der Reveal-Regel, höhere Spezifität (cards-and-buttons.md §6) */
.card.reveal { transition: transform .4s var(--pop-ease), box-shadow .4s ease, border-color .35s ease, opacity .7s ease; }
@media (hover: hover) and (pointer: fine) {
  .card.reveal.in:hover { transform: var(--pop-lift); }
}

/* ── Responsive ── */
@media (max-width: 1080px) {
  .hero .wrap, .trust .wrap, .contact-box { grid-template-columns: 1fr; }
  .mock { max-width: 560px; padding-left: 0; }
  .steps { grid-template-columns: repeat(2, 1fr); row-gap: 40px; }
  .steps::before { display: none; }
}
@media (max-width: 860px) {
  .nav-toggle {
    display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px;
    background: transparent; border: 1px solid var(--line); color: var(--ink); cursor: pointer;
  }
  .nav-toggle svg { width: 22px; height: 22px; }
  .nav {
    position: fixed; top: var(--header-h); left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 12px 16px 24px; background: #fff; border-bottom: 1px solid var(--line);
    box-shadow: 0 24px 40px -24px rgba(14, 58, 82, .35);
    transform: translateY(-8px); opacity: 0; visibility: hidden;
    transition: opacity .25s ease, transform .25s ease, visibility 0s .25s;
  }
  .nav.open { transform: none; opacity: 1; visibility: visible; transition: opacity .25s ease, transform .25s ease; }
  .nav a:not(.btn) { padding: 14px 4px; border-bottom: 1px solid var(--line); font-size: 16px; }
  .nav a:not(.btn)::after { display: none; }
  .nav .btn { margin-top: 16px; padding: 15px 22px; font-size: 15px; }
  .svc-grid, .cases-grid, .split { grid-template-columns: 1fr; }
  .pain-grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .card { padding: 24px; }
  .steps { grid-template-columns: 1fr; }
  .case-row { grid-template-columns: 1fr; gap: 4px; }
  .msg { grid-template-columns: auto 1fr; }
  .msg .tag { grid-column: 2; justify-self: start; }
  .mock-float { position: relative; left: 0; bottom: 0; margin-top: 14px; }
  .hero-actions .btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { background: var(--bg); scroll-behavior: auto; }
  .card, .btn, .reveal { transition: none; }
  .card:hover, .card.reveal.in:hover { transform: none; }
  .btn::after { transition: none; animation: none; }
  .reveal { opacity: 1; transform: none; }
}
