/* White Glory — styles
   Palette: deep aubergine night, pearl white, skin-tone champagne glow */
:root {
  --ink: #15111A;
  --surface: #211A27;
  --line: #3A3041;
  --pearl: #F3EEE8;
  --mist: #ABA1B1;
  --glow: #E9C9B5;
  --glow-deep: #C99A82;

  --font: "Bricolage Grotesque", "Helvetica Neue", Arial, sans-serif;
  --wrap: 1180px;
  --pad: clamp(20px, 5vw, 48px);
  --section: clamp(88px, 12vw, 160px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--pearl);
  font-family: var(--font);
  font-size: 18px;
  line-height: 1.6;
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-weight: 700; line-height: 1.05; letter-spacing: -0.02em; }
p { margin: 0; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--pad); }
.muted { color: var(--mist); }
.small { font-size: 14px; }

.skip { position: absolute; left: -999px; top: 8px; background: var(--pearl); color: var(--ink); padding: 8px 14px; z-index: 100; }
.skip:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--glow); outline-offset: 3px; border-radius: 4px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  padding-top: env(safe-area-inset-top, 0px);
  background: rgba(21, 17, 26, 0.82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s;
}
.site-header.scrolled { border-bottom-color: var(--line); }
.header-inner { display: flex; align-items: center; gap: 32px; height: 72px; }
.wordmark { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 20px; text-decoration: none; letter-spacing: -0.01em; }
.mark { width: auto; height: 34px; }
.nav { display: flex; gap: 28px; margin-left: auto; }
.nav a { text-decoration: none; color: var(--pearl); font-size: 16px; }
.nav a:hover { color: var(--glow); }

/* Buttons */
.btn {
  display: inline-block; text-decoration: none;
  background: var(--pearl); color: var(--ink);
  font-weight: 700; font-size: 17px;
  padding: 16px 28px; border-radius: 999px;
  transition: background .2s, box-shadow .2s;
}
.btn:hover { background: #fff; box-shadow: 0 0 32px rgba(233, 201, 181, .45); }
.btn-small { padding: 10px 20px; font-size: 15px; }
.link { color: var(--pearl); font-weight: 500; text-underline-offset: 5px; text-decoration-color: var(--glow-deep); }
.link:hover { text-decoration-color: var(--glow); }

/* Hero — the one bold moment */
.hero { position: relative; overflow: hidden; padding: clamp(80px, 14vw, 180px) 0 var(--section); }
.halo {
  position: absolute; z-index: 0;
  width: min(900px, 120vw); aspect-ratio: 1;
  right: -18%; top: -10%;
  border-radius: 50%;
  background: radial-gradient(circle at center,
    rgba(243, 238, 232, .55) 0%,
    rgba(233, 201, 181, .28) 22%,
    rgba(201, 154, 130, .10) 45%,
    transparent 68%);
  filter: blur(8px);
  opacity: 0;
  animation: dawn 2.6s ease-out .2s forwards;
}
@keyframes dawn { from { opacity: 0; transform: scale(.85); } to { opacity: 1; transform: scale(1); } }
.hero .wrap { position: relative; z-index: 1; }
.hero-title {
  font-size: clamp(52px, 10vw, 136px);
  font-weight: 800;
  line-height: .92;
  letter-spacing: -0.045em;
  max-width: 15ch;
}
.hero-sub { margin-top: 36px; max-width: 34em; font-size: clamp(18px, 1.6vw, 21px); color: var(--mist); }
.hero-actions { margin-top: 40px; display: flex; flex-wrap: wrap; align-items: center; gap: 28px; }

/* Sections */
.section-title { font-size: clamp(36px, 5vw, 64px); max-width: 16ch; }
.problem, .why, .services, .process, .work, .faq { padding: var(--section) 0; border-top: 1px solid var(--line); }

/* Problem */
.problem-line {
  font-size: clamp(26px, 3.4vw, 44px);
  font-weight: 500; line-height: 1.2; letter-spacing: -0.02em;
  max-width: 24ch; color: var(--mist);
}
.problem-line + .problem-line { margin-top: 28px; }
.problem-close {
  margin-top: 64px; max-width: 22ch;
  font-size: clamp(30px, 4vw, 52px); font-weight: 700; line-height: 1.1; letter-spacing: -0.03em;
  color: var(--glow);
}

/* Why */
.why-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.why-body p { max-width: 34em; color: var(--mist); }
.why-body p + p { margin-top: 20px; }
.facts { display: flex; gap: 56px; margin: 48px 0 0; }
.facts dt { font-size: clamp(48px, 6vw, 72px); font-weight: 800; line-height: 1; letter-spacing: -0.04em; color: var(--glow); }
.facts dd { margin: 8px 0 0; color: var(--mist); font-size: 16px; max-width: 14em; }

/* Services */
.service-list {
  list-style: none; padding: 0; margin: 64px 0 0;
  display: grid; grid-template-columns: repeat(3, 1fr);
  column-gap: 48px; row-gap: 56px;
}
.service-list li { border-top: 1px solid var(--glow-deep); padding-top: 22px; }
.service-list h3 { font-size: 24px; margin-bottom: 12px; }
.service-list p { color: var(--mist); font-size: 17px; }

/* Process — a real sequence, so numbered */
.steps { list-style: none; counter-reset: step; padding: 0; margin: 64px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 48px; }
.steps li { counter-increment: step; }
.steps li::before {
  content: counter(step);
  display: block; font-size: clamp(72px, 9vw, 120px); font-weight: 800; line-height: .9;
  letter-spacing: -0.05em; color: transparent;
  -webkit-text-stroke: 1.5px var(--glow-deep);
  margin-bottom: 20px;
}
.steps h3 { font-size: 30px; margin-bottom: 12px; }
.steps p { color: var(--mist); font-size: 17px; max-width: 26em; }

/* Work */
.work-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 16px 48px; }
.work-head p { max-width: 26em; }
.project-grid { margin-top: 56px; display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 32px; }
.project {
  display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--line); border-radius: 20px; overflow: hidden;
  text-decoration: none;
}
a.project:hover { border-color: var(--glow-deep); }
.project-media { aspect-ratio: 16 / 10; background: #2A2130; position: relative; overflow: hidden; }
.project-media img { width: 100%; height: 100%; object-fit: cover; }
.project-media.placeholder {
  background:
    radial-gradient(circle at 70% 40%, rgba(233, 201, 181, .35), transparent 55%),
    linear-gradient(160deg, #2A2130, #1A141F);
}
.project-body { padding: 28px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.tag { align-self: flex-start; font-size: 14px; font-weight: 500; color: var(--ink); background: var(--glow); padding: 4px 12px; border-radius: 999px; }
.tag.in-progress { background: transparent; color: var(--glow); box-shadow: inset 0 0 0 1px var(--glow-deep); }
.project h3 { font-size: 26px; }
.project .client { color: var(--mist); font-size: 15px; }
.project p { color: var(--mist); font-size: 16px; }
.results { list-style: none; padding: 0; margin: 8px 0 0; display: grid; gap: 6px; }
.results li { font-size: 15px; padding-left: 18px; position: relative; }
.results li::before { content: ""; position: absolute; left: 0; top: .6em; width: 8px; height: 8px; border-radius: 50%; background: var(--glow); }
.project .more { margin-top: auto; padding-top: 12px; font-weight: 500; color: var(--pearl); text-decoration: underline; text-underline-offset: 5px; text-decoration-color: var(--glow-deep); }
.empty { color: var(--mist); }

/* FAQ */
.faq-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: 64px; align-items: start; }
.faq-list details { border-top: 1px solid var(--line); }
.faq-list details:last-child { border-bottom: 1px solid var(--line); }
.faq-list summary {
  cursor: pointer; list-style: none;
  padding: 26px 48px 26px 0; position: relative;
  font-size: 21px; font-weight: 500; line-height: 1.35;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: ""; position: absolute; right: 8px; top: 50%;
  width: 14px; height: 14px; margin-top: -10px;
  border-right: 2px solid var(--glow); border-bottom: 2px solid var(--glow);
  transform: rotate(45deg); transition: transform .25s;
}
.faq-list details[open] summary::after { transform: rotate(-135deg); margin-top: -3px; }
.faq-list details p { padding: 0 48px 28px 0; color: var(--mist); max-width: 36em; }

/* CTA */
.cta { padding: var(--section) 0; border-top: 1px solid var(--line); position: relative; overflow: hidden; }
.cta::before {
  content: ""; position: absolute; left: 50%; bottom: -60%; transform: translateX(-50%);
  width: min(1000px, 140vw); aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle, rgba(233, 201, 181, .22), transparent 62%);
  pointer-events: none;
}
.cta .wrap { position: relative; text-align: center; }
.cta-title { font-size: clamp(44px, 7vw, 96px); font-weight: 800; letter-spacing: -0.04em; line-height: .95; max-width: 14ch; margin: 0 auto; }
.cta-sub { margin: 28px auto 0; max-width: 32em; color: var(--mist); }
.cta .hero-actions { justify-content: center; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 40px 0 calc(40px + env(safe-area-inset-bottom, 0px)); }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 20px 40px; }
.footer-links { display: flex; gap: 24px; margin-left: auto; }
.footer-links a { color: var(--mist); text-decoration: none; font-size: 15px; }
.footer-links a:hover { color: var(--pearl); }

/* Privacy page */
.legal { padding: 96px 0 var(--section); }
.legal .wrap { max-width: 760px; }
.legal h1 { font-size: clamp(40px, 6vw, 64px); margin-bottom: 16px; }
.legal h2 { font-size: 26px; margin: 48px 0 12px; }
.legal p, .legal li { color: var(--mist); }
.legal p + p { margin-top: 14px; }

/* Responsive */
@media (max-width: 900px) {
  .why-grid, .faq-grid { grid-template-columns: 1fr; gap: 40px; }
  .service-list { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr; gap: 56px; }
}
@media (max-width: 640px) {
  body { font-size: 17px; }
  .nav { display: none; }
  .btn-small { margin-left: auto; }
  .service-list { grid-template-columns: 1fr; row-gap: 40px; }
  .project-grid { grid-template-columns: 1fr; }
  .facts { gap: 32px; }
  .footer-links { margin-left: 0; }
  .halo { right: -50%; top: -5%; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .halo { animation: none; opacity: 1; }
  * { transition: none !important; }
}

/* ---------- Free scan section ---------- */
.scan { padding: var(--section) 0; border-top: 1px solid var(--line); }
.scan-head { max-width: 760px; }
.scan-head p { margin-top: 18px; color: var(--mist); max-width: 36em; }
.scan-grid { margin-top: 56px; display: grid; grid-template-columns: 1fr 1.1fr; gap: 56px; align-items: start; }
.col-label { font-size: 15px; color: var(--glow); font-weight: 500; margin-bottom: 16px; }

.doc-preview {
  position: relative; display: block; text-decoration: none;
  background: #2A2130; border-radius: 18px; padding: 28px 28px 0;
  border: 1px solid var(--line); overflow: hidden;
}
.doc-preview img {
  width: 100%; height: auto; display: block;
  border-radius: 6px 6px 0 0;
  box-shadow: 0 18px 50px rgba(0,0,0,.5);
  transition: transform .3s ease;
}
.doc-preview:hover img { transform: translateY(-6px); }
.doc-tag {
  position: absolute; top: 40px; right: 40px;
  background: var(--ink); color: var(--glow);
  font-size: 13px; font-weight: 700; letter-spacing: .04em;
  padding: 5px 12px; border-radius: 999px; border: 1px solid var(--glow-deep);
}
.sample-actions { margin-top: 24px; display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; }
.btn-ghost { background: transparent; color: var(--pearl); box-shadow: inset 0 0 0 1.5px var(--pearl); }
.btn-ghost:hover { background: var(--pearl); color: var(--ink); }

.scan-form {
  background: var(--surface); border: 1px solid var(--glow-deep); border-radius: 24px;
  padding: clamp(28px, 4vw, 44px); display: grid; gap: 20px;
  box-shadow: 0 30px 80px rgba(0,0,0,.35);
}
.form-title { font-size: clamp(28px, 3vw, 36px); }
.form-sub { color: var(--mist); font-size: 16px; margin-top: -8px; }
.field { display: grid; gap: 8px; }
.field label { font-size: 16px; font-weight: 500; }
.optional { color: var(--mist); font-weight: 400; }
.field input {
  font: inherit; font-size: 18px; color: var(--pearl);
  background: var(--ink); border: 1px solid var(--line); border-radius: 12px;
  padding: 15px 16px; width: 100%;
}
.field input::placeholder { color: #6E6475; }
.field input:focus { outline: none; border-color: var(--glow); box-shadow: 0 0 0 3px rgba(233,201,181,.18); }
.field input[aria-invalid="true"] { border-color: #E89B9B; }
.consent { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; color: var(--mist); line-height: 1.5; padding: 12px; border-radius: 12px; border: 1px solid transparent; }
.consent.invalid { border-color: #E89B9B; background: rgba(232,155,155,.08); }
.consent input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--glow); flex-shrink: 0; }
.form-alert {
  display: flex; gap: 12px; align-items: flex-start;
  background: rgba(232,155,155,.12); border: 1px solid #E89B9B; color: var(--pearl);
  border-radius: 12px; padding: 14px 16px; font-size: 16px; line-height: 1.45;
}
.form-alert.ok { background: rgba(155,211,168,.12); border-color: #9BD3A8; }
.form-alert[hidden] { display: none; }
.form-alert strong { display: block; margin-bottom: 2px; }
.scan-form .btn { border: 0; cursor: pointer; font-family: inherit; width: 100%; font-size: 18px; padding: 18px 28px; }
.scan-form .btn[disabled] { opacity: .6; cursor: wait; }

@media (max-width: 900px) { .scan-grid { grid-template-columns: 1fr; gap: 48px; } }

/* ---------- Sample report: printed-document look ---------- */
.doc-page { background: #0F0C12; }
.doc-toolbar { max-width: 900px; margin: 0 auto; padding: 32px var(--pad) 24px; display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; }
.doc-toolbar .actions { display: flex; flex-wrap: wrap; gap: 12px; }
.doc-note { color: var(--mist); font-size: 15px; }

.paper {
  --p-ink: #1E1822; --p-mute: #6A6170; --p-line: #E6DDD5; --p-soft: #F4EEE8;
  --p-accent: #A8705A; --p-crit: #C0505C; --p-gap: #C28A26; --p-good: #3C8A58;
  max-width: 860px; margin: 0 auto 96px; background: #FBF8F4; color: var(--p-ink);
  border-radius: 6px; box-shadow: 0 40px 120px rgba(0,0,0,.6);
  padding: clamp(28px, 6vw, 64px); position: relative; overflow: hidden;
}
.paper h1, .paper h2, .paper h3 { color: var(--p-ink); }
.paper .p-mute { color: var(--p-mute); }
.paper-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-bottom: 20px; border-bottom: 2px solid var(--p-ink); }
.paper-brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 18px; }
.paper-brand img { height: 30px; width: auto; }
.paper-head .doc-type { padding-right: 56px; font-size: 14px; color: var(--p-mute); text-align: right; line-height: 1.4; }
.stamp { position: absolute; top: 28px; right: -46px; transform: rotate(35deg); background: var(--p-accent); color: #fff; font-size: 12px; font-weight: 700; letter-spacing: .12em; padding: 6px 60px; }

.p-summary { display: grid; grid-template-columns: auto 1fr; gap: 28px; align-items: center; margin-top: 32px; }
.p-ring { position: relative; width: 116px; height: 116px; }
.p-ring svg { width: 116px; height: 116px; transform: rotate(-90deg); display: block; }
.p-ring .bg { fill: none; stroke: var(--p-line); stroke-width: 10; }
.p-ring .fg { fill: none; stroke: var(--p-accent); stroke-width: 10; stroke-linecap: round; }
.p-ring .num { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.p-ring .num strong { font-size: 36px; line-height: 1; font-weight: 800; }
.p-ring .num span { font-size: 13px; color: var(--p-mute); margin-top: 2px; }
.p-label { font-size: 14px; color: var(--p-mute); font-weight: 500; }
.p-summary h1 { font-size: clamp(26px, 4vw, 36px); margin: 4px 0 8px; }
.p-summary p { font-size: 16px; }
.p-counts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 28px; }
.p-counts div { background: var(--p-soft); border-radius: 12px; padding: 14px 16px; display: flex; align-items: baseline; gap: 10px; }
.p-counts strong { font-size: 28px; line-height: 1; font-weight: 800; }
.p-counts span { font-size: 15px; color: var(--p-mute); }
.p-counts .crit strong { color: var(--p-crit); } .p-counts .gap strong { color: var(--p-gap); } .p-counts .good strong { color: var(--p-good); }

.p-block { margin-top: 36px; }
.p-block > h2 { font-size: 22px; margin-bottom: 16px; }
.p-opp { background: var(--p-soft); border-left: 4px solid var(--p-accent); border-radius: 8px; padding: 20px 24px; }
.p-opp .big { font-size: clamp(28px, 4.5vw, 40px); font-weight: 800; letter-spacing: -0.02em; line-height: 1.1; margin: 4px 0 10px; }
.p-opp .big span { font-size: 17px; font-weight: 500; color: var(--p-mute); letter-spacing: 0; }
.p-opp p { font-size: 14px; color: var(--p-mute); line-height: 1.5; }

.p-bars { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.p-bars li { display: grid; grid-template-columns: 190px 1fr 36px; gap: 14px; align-items: center; font-size: 15px; }
.p-bars b { text-align: right; }
.p-bar { height: 8px; background: var(--p-line); border-radius: 999px; overflow: hidden; }
.p-bar i { display: block; height: 100%; border-radius: 999px; }
.p-bar i.crit { background: var(--p-crit); } .p-bar i.gap { background: var(--p-gap); } .p-bar i.good { background: var(--p-good); }

.p-finding { border: 1px solid var(--p-line); border-radius: 12px; padding: 20px 22px; }
.p-finding + .p-finding { margin-top: 14px; }
.p-finding .top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; align-items: center; }
.p-pill { font-size: 12px; font-weight: 700; letter-spacing: .03em; color: var(--p-crit); background: #F7E3E4; padding: 3px 10px; border-radius: 999px; }
.p-est { font-size: 14px; color: var(--p-accent); font-weight: 700; }
.p-finding h3 { font-size: 20px; margin: 10px 0 8px; }
.p-finding p { font-size: 15.5px; color: var(--p-mute); line-height: 1.55; }
.p-fix { margin-top: 10px; color: var(--p-ink) !important; background: var(--p-soft); border-radius: 8px; padding: 10px 14px; }

.p-other { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.p-other h3 { font-size: 16px; margin-bottom: 6px; line-height: 1.3; }
.p-other p { font-size: 14.5px; color: var(--p-mute); line-height: 1.55; }
.p-plan { list-style: none; margin: 0; padding: 0; }
.p-plan li { display: grid; grid-template-columns: 80px 1fr; gap: 14px; padding: 10px 0; border-bottom: 1px solid var(--p-line); font-size: 15.5px; }
.p-plan li:last-child { border-bottom: 0; }
.p-plan b { color: var(--p-accent); }
.paper-foot { margin-top: 40px; padding-top: 16px; border-top: 1px solid var(--p-line); font-size: 13px; color: var(--p-mute); display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

.doc-cta { text-align: center; padding: 0 var(--pad) var(--section); }
.doc-cta h2 { font-size: clamp(32px, 5vw, 52px); margin-bottom: 14px; }
.doc-cta p { color: var(--mist); max-width: 30em; margin: 0 auto 28px; }

@media (max-width: 700px) {
  .p-summary { grid-template-columns: 1fr; }
  .p-counts { grid-template-columns: 1fr; }
  .p-bars li { grid-template-columns: 1fr 36px; }
  .p-bars li .p-bar { grid-column: 1 / -1; grid-row: 2; }
  .p-other { grid-template-columns: 1fr; }
}
@media print {
  @page { size: Letter; margin: 0.4in; }
  body, .doc-page { background: #fff !important; }
  .site-header, .doc-toolbar, .doc-cta, .site-footer { display: none !important; }
  .paper { box-shadow: none; margin: 0; max-width: none; border-radius: 0; padding: 0; background: #fff; }
  .paper-head .doc-type { padding-right: 110px; }
  .stamp { top: 18px; right: -52px; }
  .p-finding, .p-block { break-inside: avoid; }
}

/* ---------- Services: two pillars ---------- */
.pillars { margin-top: 64px; display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: stretch; }
.pillar {
  background: var(--surface); border: 1px solid var(--line); border-radius: 24px;
  padding: clamp(28px, 4vw, 48px); display: flex; flex-direction: column;
}
.pillar-label { font-size: 15px; font-weight: 500; color: var(--glow); letter-spacing: 0.08em; }
.pillar h3 { font-size: clamp(30px, 3.2vw, 40px); margin: 12px 0 18px; letter-spacing: -0.02em; }
.pillar-intro { color: var(--mist); font-size: 17px; }
.pillar-sub { margin-top: 32px; padding-top: 18px; border-top: 1px solid var(--glow-deep); font-size: 15px; font-weight: 500; color: var(--glow); }
.pillar-items, .pillar-gets { list-style: none; padding: 0; margin: 14px 0 0; }
.pillar-items li { color: var(--mist); font-size: 16px; }
.pillar-items li + li { margin-top: 12px; }
.pillar-items strong { color: var(--pearl); font-weight: 500; }
.pillar-gets li { position: relative; padding-left: 20px; color: var(--pearl); font-size: 16px; }
.pillar-gets li + li { margin-top: 8px; }
.pillar-gets li::before { content: ""; position: absolute; left: 0; top: .6em; width: 8px; height: 8px; border-radius: 50%; background: var(--glow); }
.pillar-note { margin-top: auto; padding-top: 28px; color: var(--mist); font-size: 15px; font-style: italic; }
@media (max-width: 900px) { .pillars { grid-template-columns: 1fr; } }

/* ---------- Language toggle ---------- */
.lang-toggle {
  color: var(--pearl); text-decoration: none; font-size: 15px; font-weight: 500;
  padding: 8px 14px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--line);
  transition: box-shadow .2s;
}
.lang-toggle:hover { box-shadow: inset 0 0 0 1px var(--glow-deep); }
.nav + .lang-toggle { margin-left: 0; }
@media (max-width: 640px) {
  .header-inner { gap: 12px; }
  .lang-toggle { margin-left: auto; padding: 8px 12px; }
  .lang-toggle + .btn-small { margin-left: 0; }
}
.btn-small { white-space: nowrap; }
@media (max-width: 640px) { .hide-sm { display: none; } }
/* ---------- Glow chatbot ---------- */
#n8n-chat {
  --chat--font-family: var(--font);
  --chat--color-primary: var(--ink);
  --chat--color-primary-shade-50: var(--surface);
  --chat--color-secondary: var(--glow-deep);
  --chat--color-white: #fff;
  --chat--color-light: var(--pearl);
  --chat--color-dark: var(--ink);
  --chat--border-radius: 14px;

  --chat--header--background: #fff;
  --chat--header--color: var(--ink);
  --chat--body--background: var(--pearl);
  --chat--footer--background: #fff;
  --chat--footer--color: var(--mist);
  --chat--window--border: 1px solid #fff;

  --chat--message--bot--background: #fff;
  --chat--message--bot--color: var(--ink);
  --chat--message--user--background: var(--ink);
  --chat--message--user--color: var(--pearl);

  --chat--input--background: #fff;
  --chat--input--text-color: var(--ink);
  --chat--input--send--button--background: var(--ink);
  --chat--input--send--button--color: var(--pearl);

  --chat--toggle--background: var(--pearl);
  --chat--toggle--hover--background: #fff;
  --chat--toggle--active--background: var(--glow);
  --chat--toggle--color: var(--ink);
}
#n8n-chat .chat-window { box-shadow: 0 24px 64px rgba(0, 0, 0, .6); }
#n8n-chat .chat-header { border-bottom: 1px solid #E6DFD8; }
#n8n-chat .chat-header h1,
#n8n-chat .chat-header p { color: var(--ink); }
#n8n-chat .chat-input { background: #fff; border-top: 1px solid #E6DFD8; }
#n8n-chat .chat-input textarea { background: #fff; color: var(--ink); }
#n8n-chat .chat-input textarea::placeholder { color: #8A808F; }
#n8n-chat .chat-input button { background: var(--ink); color: var(--pearl); border-radius: 10px; }
#n8n-chat a { color: var(--ink); text-decoration-color: var(--glow-deep); }
/* ---------- Header: keep labels on one line ---------- */
.wordmark, .nav a, .lang-toggle { white-space: nowrap; }
@media (max-width: 1100px) {
  .header-inner { gap: 18px; }
  .nav { gap: 18px; }
  .nav a { font-size: 15px; }
}
.wordmark { margin-right: 16px; }

/* Legal name above the wordmark (Solutions IA White Glory) */
.wm-text { display: inline-flex; flex-direction: column; line-height: 1.05; }
.wm-legal { font-size: 10px; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; opacity: 0.7; margin-bottom: 2px; }
@media (max-width: 480px) {
  .wordmark { font-size: 17px; gap: 8px; margin-right: 10px; }
  .wm-legal { font-size: 9px; }
}
