/* Nour Digital — brand: near-black navy, electric blue, Outfit + Inter */
:root {
  --ink: #080b12;
  --ink-2: #0c1220;
  --surface: #121a2c;
  --surface-2: #182236;
  --line: rgba(243, 245, 249, 0.1);
  --line-strong: rgba(243, 245, 249, 0.16);
  --text: #f3f5f9;
  --muted: #9aa3b8;
  --muted-2: #b7becc;
  --blue: #3a86ff;
  --blue-2: #5c9cff;
  --blue-soft: rgba(58, 134, 255, 0.14);
  --blue-glow: rgba(58, 134, 255, 0.28);
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
  --font-display: "Outfit", "Inter", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
  --nav-h: 72px;
  --max: 1120px;
  --pad: clamp(20px, 5vw, 40px);
}

@font-face {
  font-family: "Outfit";
  src: url("assets/fonts/Outfit-Variable.ttf") format("truetype");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Inter";
  src: url("assets/fonts/Inter-Variable.ttf") format("truetype");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

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

html {
  scroll-behavior: smooth;
  color-scheme: dark;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  background: var(--ink);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a { color: var(--blue-2); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: #fff; }

:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: 12px;
  top: -40px;
  background: var(--blue);
  color: #fff;
  padding: 8px 12px;
  border-radius: 8px;
  z-index: 100;
}
.skip:focus { top: 12px; }

.wrap {
  width: min(var(--max), 100% - var(--pad) * 2);
  margin-inline: auto;
}

/* Nav */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  background: rgba(8, 11, 18, 0.78);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}

.nav-inner {
  width: min(var(--max), 100% - var(--pad) * 2);
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 650;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}
.brand:hover { color: var(--text); }
.brand img, .brand svg { width: 40px; height: 40px; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  color: var(--muted-2);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
}
.nav-links a:hover { color: var(--text); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 18px;
  border-radius: 999px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: -0.01em;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}
.btn:hover { color: #fff; }
.btn-primary {
  background: var(--blue);
  color: #fff;
}
.btn-primary:hover { background: #2f76f0; color: #fff; }
.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--line-strong);
}
.btn-ghost:hover { background: var(--surface); color: var(--text); }
.btn-lg { padding: 15px 22px; font-size: 1.02rem; }

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  color: var(--text);
  padding: 0;
  cursor: pointer;
}
.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  display: block;
  width: 20px;
  height: 2px;
  background: currentColor;
  position: relative;
  margin: 0 auto;
  border-radius: 1px;
}
.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
}
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }

/* Hero */
.hero {
  position: relative;
  padding: clamp(48px, 8vw, 104px) 0 clamp(72px, 10vw, 128px);
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  right: -10%;
  top: -20%;
  width: 60vw;
  height: 70vw;
  max-width: 800px;
  max-height: 800px;
  background: radial-gradient(circle, var(--blue-glow) 0%, transparent 65%);
  pointer-events: none;
}
.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(32px, 6vw, 72px);
  align-items: center;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--blue-2);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 0 0 18px;
}
.eyebrow::before {
  content: "";
  width: 18px;
  height: 2px;
  background: var(--blue);
  border-radius: 1px;
}
h1, h2, h3 {
  font-family: var(--font-display);
  letter-spacing: -0.03em;
  line-height: 1.08;
  font-weight: 680;
  margin: 0;
}
h1 {
  font-size: clamp(2.4rem, 5.4vw, 4.4rem);
  max-width: 12ch;
}
.hero-lead {
  margin: 22px 0 0;
  font-size: 1.15rem;
  color: var(--muted-2);
  max-width: 38ch;
}
.hero-lead strong {
  color: var(--text);
  font-weight: 600;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}
.hero-note {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

/* Phone mockup */
.phone {
  width: 280px;
  margin: 0 auto;
  background: #1a2233;
  border: 2px solid rgba(255,255,255,0.12);
  border-radius: 32px;
  padding: 10px;
  box-shadow: var(--shadow), 0 0 0 1px rgba(58,134,255,0.08);
}
.phone-screen {
  background: #fff;
  color: #16181d;
  border-radius: 22px;
  overflow: hidden;
  min-height: 520px;
  font-family: var(--font-body);
}
.phone-bar {
  height: 22px;
  display: flex;
  justify-content: center;
  align-items: end;
}
.phone-bar i {
  width: 64px;
  height: 6px;
  background: #d5d7de;
  border-radius: 99px;
}
.mini {
  padding: 8px 16px 22px;
}
.mini-kicker {
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 600;
  margin: 0 0 6px;
}
.mini h3 {
  font-size: 1.35rem;
  letter-spacing: -0.03em;
  margin: 0 0 6px;
  color: inherit;
}
.mini p { margin: 0 0 12px; font-size: 0.78rem; line-height: 1.45; color: #4a4f5c; }
.mini-row { display: flex; gap: 6px; margin-bottom: 14px; }
.mini-chip, .mini-btn {
  border-radius: 99px;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 7px 10px;
}
.mini-chip { background: #f1f2f5; }
.mini-btn { background: #16181d; color: #fff; text-align: center; flex: 1; }
.mini-card {
  background: #f6f6f8;
  border-radius: 12px;
  padding: 10px 12px;
  margin-bottom: 8px;
  font-size: 0.75rem;
}
.mini-card strong { display: block; margin-bottom: 2px; }
.mini-map {
  height: 78px;
  border-radius: 12px;
  background:
    linear-gradient(180deg, rgba(22,24,29,0.04), rgba(22,24,29,0.08)),
    repeating-linear-gradient(90deg, #e9ebf0 0 12px, #e2e5ec 12px 13px),
    repeating-linear-gradient(0deg, #e9ebf0 0 12px, #e2e5ec 12px 13px);
  position: relative;
  margin-top: 4px;
}
.mini-map span {
  position: absolute;
  left: 50%;
  top: 46%;
  width: 16px;
  height: 16px;
  margin: -8px 0 0 -8px;
  background: var(--pin, #3a86ff);
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

/* Theme variants for examples */
.theme-salon .phone-screen { background: #f7f1ea; color: #2a211c; }
.theme-salon .mini-kicker { color: #c45c3a; }
.theme-salon .mini p { color: #6a5b52; }
.theme-salon .mini-chip { background: #efe4d8; }
.theme-salon .mini-btn { background: #c45c3a; }
.theme-salon .mini-card { background: #efe6dc; }
.theme-salon { --pin: #c45c3a; }

.theme-barber .phone-screen { background: #141210; color: #f4efe6; }
.theme-barber .mini-kicker { color: #c9a24a; }
.theme-barber .mini p { color: #b8ae9f; }
.theme-barber .mini-chip { background: #221e1a; color: #f4efe6; }
.theme-barber .mini-btn { background: #c9a24a; color: #141210; }
.theme-barber .mini-card { background: #1d1a16; }
.theme-barber .mini-map {
  background:
    linear-gradient(180deg, rgba(0,0,0,0.2), rgba(0,0,0,0.35)),
    repeating-linear-gradient(90deg, #2a261f 0 12px, #322d25 12px 13px),
    repeating-linear-gradient(0deg, #2a261f 0 12px, #322d25 12px 13px);
}
.theme-barber { --pin: #c9a24a; }

.theme-food .phone-screen { background: #fff8f0; color: #1e1712; }
.theme-food .mini-kicker { color: #d13b24; }
.theme-food .mini p { color: #63564b; }
.theme-food .mini-chip { background: #f3e6d6; }
.theme-food .mini-btn { background: #d13b24; }
.theme-food .mini-card { background: #f3e8da; }
.theme-food { --pin: #d13b24; }

.hero-visual { position: relative; }
.hero-visual .phone { transform: rotate(2deg); }
.example-label {
  display: inline-block;
  margin: 14px auto 0;
  text-align: center;
  width: 100%;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  font-family: var(--font-display);
}

/* Sections */
section { padding: clamp(72px, 10vw, 112px) 0; }
.section-head { max-width: 640px; margin-bottom: 48px; }
.section-head.center { margin-inline: auto; text-align: center; }
.kicker {
  color: var(--blue-2);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 0 0 12px;
}
h2 { font-size: clamp(1.8rem, 3.4vw, 2.7rem); }
.lede {
  margin: 14px 0 0;
  color: var(--muted-2);
  font-size: 1.08rem;
  max-width: 52ch;
}
.section-head.center .lede { margin-inline: auto; }

.alt { background: var(--ink-2); }
.divider { height: 1px; background: var(--line); border: 0; margin: 0; }

/* Problem */
.problem-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.problem-copy h2 { max-width: 16ch; }
.problem-points {
  display: grid;
  gap: 14px;
}
.point {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 24px;
}
.point h3 { font-size: 1.15rem; margin-bottom: 8px; }
.point p { margin: 0; color: var(--muted-2); font-size: 0.98rem; }

/* Services */
.services {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.service {
  background: var(--ink-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
}
.icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--blue-soft);
  color: var(--blue-2);
  display: grid;
  place-items: center;
  margin-bottom: 16px;
}
.icon svg { width: 20px; height: 20px; }
.service h3 { font-size: 1.12rem; margin-bottom: 8px; }
.service p { margin: 0; color: var(--muted-2); font-size: 0.96rem; }

/* Pricing */
.pricing {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 16px;
  align-items: stretch;
}
.plan {
  background: var(--ink-2);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 28px 26px;
  display: flex;
  flex-direction: column;
}
.plan.featured {
  border-color: rgba(58, 134, 255, 0.55);
  background:
    linear-gradient(180deg, rgba(58,134,255,0.1), rgba(58,134,255,0.02)),
    var(--surface);
  box-shadow: 0 0 0 1px rgba(58,134,255,0.15);
}
.plan-slot {
  min-height: 0;
  margin-bottom: 0;
  display: flex;
  align-items: flex-start;
}
@media (min-width: 961px) {
  .plan-slot {
    min-height: 26px;
    margin-bottom: 10px;
  }
}
.plan-tag {
  display: inline-flex;
  align-self: flex-start;
  background: var(--blue);
  color: #fff;
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 650;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 4px 8px;
  border-radius: 99px;
}
.plan h3 { font-size: 1.25rem; }
.price {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  margin: 12px 0 4px;
}
.price span { font-size: 1rem; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.plan-desc { color: var(--muted-2); margin: 0 0 18px; font-size: 0.95rem; }
.plan ul {
  list-style: none;
  margin: 0 0 24px;
  padding: 0;
  display: grid;
  gap: 10px;
  flex: 1;
}
.plan li {
  padding-left: 22px;
  position: relative;
  color: var(--muted-2);
  font-size: 0.95rem;
}
.plan li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--blue);
}

/* Process */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  counter-reset: step;
}
.step {
  position: relative;
  padding: 8px 8px 8px 0;
}
.step h3 { font-size: 1.25rem; margin: 0 0 10px; }
.step p { margin: 0; color: var(--muted-2); }
.step-num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  color: var(--blue-2);
  margin-bottom: 16px;
}

/* Audience */
.audience {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.aud {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 22px;
  min-height: 160px;
}
.aud h3 { font-size: 1.2rem; margin: 0 0 8px; }
.aud p { margin: 0; color: var(--muted-2); font-size: 0.95rem; }

/* Examples */
.examples {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  justify-items: center;
}
.example figcaption {
  margin-top: 16px;
  text-align: center;
}
.example .name {
  font-family: var(--font-display);
  font-weight: 650;
  margin: 0 0 4px;
}
.example .tag {
  margin: 0;
  color: var(--muted);
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 600;
  font-family: var(--font-display);
}

/* FAQ */
.faq {
  display: grid;
  gap: 10px;
  max-width: 760px;
}
.faq-item {
  background: var(--ink-2);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
}
.faq-item button {
  width: 100%;
  text-align: left;
  background: transparent;
  border: 0;
  color: var(--text);
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  padding: 18px 52px 18px 20px;
  cursor: pointer;
  position: relative;
}
.faq-item button::after {
  content: "";
  position: absolute;
  right: 22px;
  top: 50%;
  width: 10px;
  height: 10px;
  border-right: 2px solid var(--muted);
  border-bottom: 2px solid var(--muted);
  transform: translateY(-70%) rotate(45deg);
  transition: transform 0.15s ease;
}
.faq-item.open button::after { transform: translateY(-20%) rotate(225deg); }
.faq-item .answer {
  display: none;
  padding: 0 20px 18px;
  color: var(--muted-2);
  margin: 0;
}
.faq-item.open .answer { display: block; }

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 24px;
  align-items: start;
}
.contact-cards {
  display: grid;
  gap: 12px;
}
.contact-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 24px;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.contact-card:hover {
  border-color: rgba(58,134,255,0.5);
  background: var(--surface-2);
  color: inherit;
}
.contact-card .label {
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue-2);
  font-family: var(--font-display);
  font-weight: 650;
}
.contact-card strong {
  font-family: var(--font-display);
  font-size: 1.2rem;
  letter-spacing: -0.02em;
}
.contact-card span { color: var(--muted-2); font-size: 0.95rem; }

/* Footer */
footer {
  border-top: 1px solid var(--line);
  padding: 28px 0 40px;
  color: var(--muted);
  font-size: 0.9rem;
}
.foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 24px;
  align-items: center;
}
.foot a { color: var(--muted-2); text-decoration: none; }
.foot a:hover { color: var(--text); }

@media (max-width: 960px) {
  .hero-grid,
  .problem-grid,
  .pricing,
  .contact-grid {
    grid-template-columns: 1fr;
  }
  .services { grid-template-columns: 1fr 1fr; }
  .audience { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr; gap: 28px; }
  .examples { grid-template-columns: 1fr; }
  .hero-visual { order: 0; margin-top: 12px; }
  .hero-visual .phone { transform: none; width: 240px; }
  h1 { max-width: none; }
}

@media (max-width: 720px) {
  .nav-toggle { display: grid; place-items: center; }
  .nav-links {
    display: none;
    position: absolute;
    top: var(--nav-h);
    left: 0;
    right: 0;
    background: rgba(8, 11, 18, 0.97);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: stretch;
    padding: 12px 20px 20px;
    gap: 4px;
  }
  .nav.open .nav-links { display: flex; }
  .nav-links a { padding: 12px 8px; }
  .nav-links .btn { margin-top: 8px; width: 100%; }
  .services { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .contact-card, .faq-item button::after { transition: none; }
}

/* Legal pages */
.legal {
  padding: 64px 0 88px;
}
.legal-article {
  max-width: 720px;
}
.legal-article h1 {
  margin: 0 0 12px;
}
.legal-meta {
  color: var(--muted);
  margin: 0 0 36px;
  font-size: 0.95rem;
}
.legal-article h2 {
  margin: 36px 0 10px;
  font-size: 1.25rem;
}
.legal-article p,
.legal-article li {
  color: var(--muted-2);
}
.legal-article ul {
  margin: 0 0 16px;
  padding-left: 1.2em;
}
.legal-article li { margin: 0 0 8px; }
.legal-placeholder {
  display: inline;
  border-bottom: 1px dashed var(--blue-2);
  color: var(--text);
  font-weight: 600;
}

/* Cookie notice */
.nd-cookie {
  position: fixed;
  left: 16px;
  right: 96px;
  bottom: 16px;
  z-index: 70;
  max-width: 560px;
}
.nd-cookie-inner {
  display: flex;
  align-items: flex-end;
  gap: 16px;
  padding: 16px 18px;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.nd-cookie-title {
  margin: 0 0 4px;
  font-family: var(--font-display);
  font-weight: 650;
  font-size: 0.95rem;
  letter-spacing: -0.01em;
  color: var(--text);
}
.nd-cookie-copy p:last-child {
  margin: 0;
  color: var(--muted-2);
  font-size: 0.92rem;
  line-height: 1.5;
}
.nd-cookie-ok {
  flex-shrink: 0;
  appearance: none;
  border: 0;
  border-radius: 999px;
  background: var(--blue);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.92rem;
  padding: 10px 18px;
  cursor: pointer;
}
.nd-cookie-ok:hover { background: #2f76f0; }

/* Chat widget */
.nd-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.nd-chat {
  position: fixed;
  right: 16px;
  bottom: 32px;
  z-index: 80;
  font-family: var(--font-body);
}

.nd-chat-fab {
  position: relative;
  width: 56px;
  height: 56px;
  margin-left: auto;
}

.nd-chat-pulse {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  pointer-events: none;
  box-shadow: 0 0 0 0 rgba(58, 134, 255, 0.5);
  animation: nd-chat-pulse 2.8s ease-out infinite;
}

@keyframes nd-chat-pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(58, 134, 255, 0.5);
    opacity: 1;
  }
  70% {
    box-shadow: 0 0 0 18px rgba(58, 134, 255, 0);
    opacity: 0;
  }
  100% {
    box-shadow: 0 0 0 0 rgba(58, 134, 255, 0);
    opacity: 0;
  }
}

.nd-chat-toggle {
  position: relative;
  z-index: 1;
  width: 56px;
  height: 56px;
  border: 0;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
  box-shadow: 0 10px 28px var(--blue-glow);
  cursor: pointer;
  display: grid;
  place-items: center;
  padding: 0;
  animation: nd-chat-wiggle 5.5s ease-in-out infinite;
}
.nd-chat-toggle:hover { background: #2f76f0; }

@keyframes nd-chat-wiggle {
  0%, 72%, 100% { transform: translateY(0) rotate(0deg); }
  76% { transform: translateY(-7px) rotate(-8deg); }
  80% { transform: translateY(-2px) rotate(6deg); }
  84% { transform: translateY(-6px) rotate(-5deg); }
  88% { transform: translateY(0) rotate(3deg); }
  92% { transform: translateY(-3px) rotate(-2deg); }
  96% { transform: translateY(0) rotate(0deg); }
}

.nd-chat-icon { display: grid; place-items: center; }
.nd-chat.is-open .nd-chat-icon-open,
.nd-chat:not(.is-open) .nd-chat-icon-close { display: none; }
.nd-chat.is-open .nd-chat-pulse,
.nd-chat.is-open .nd-chat-tip { display: none; }
.nd-chat.is-open .nd-chat-toggle { animation: none; }

.nd-chat-tip {
  position: absolute;
  right: 68px;
  bottom: 6px;
  display: flex;
  align-items: center;
  gap: 2px;
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--line-strong);
  border-radius: 14px 14px 4px 14px;
  box-shadow: var(--shadow);
  padding: 4px 4px 4px 12px;
  animation: nd-chat-tip-in 0.35s ease;
  z-index: 2;
  white-space: nowrap;
}
.nd-chat-tip[hidden] { display: none; }

@keyframes nd-chat-tip-in {
  from { opacity: 0; transform: translateX(8px) scale(0.96); }
  to { opacity: 1; transform: none; }
}

.nd-chat-tip-text {
  border: 0;
  background: transparent;
  color: inherit;
  font-family: var(--font-display);
  font-weight: 650;
  font-size: 0.88rem;
  cursor: pointer;
  padding: 8px 6px 8px 0;
}
.nd-chat-tip-dismiss {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border: 0;
  background: transparent;
  color: var(--muted-2);
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.15rem;
  line-height: 1;
}
.nd-chat-tip-dismiss:hover { color: var(--text); background: var(--blue-soft); }

.nd-chat-panel {
  position: absolute;
  right: 0;
  bottom: 72px;
  width: min(360px, calc(100vw - 32px));
  height: min(520px, calc(100dvh - 140px));
  display: flex;
  flex-direction: column;
  background: var(--ink-2);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.nd-chat-panel[hidden] { display: none; }

.nd-chat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 14px 14px 16px;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}
.nd-chat-kicker {
  margin: 0;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue-2);
  font-family: var(--font-display);
  font-weight: 650;
}
.nd-chat-header h2 {
  margin: 0;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}
.nd-chat-close {
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--text);
  cursor: pointer;
  display: grid;
  place-items: center;
}
.nd-chat-close:hover { background: var(--blue-soft); }

.nd-chat-log {
  flex: 1;
  overflow-y: auto;
  padding: 16px 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.nd-chat-msg { display: flex; max-width: 100%; }
.nd-chat-msg-bot { justify-content: flex-start; }
.nd-chat-msg-user { justify-content: flex-end; }
.nd-chat-bubble {
  max-width: 88%;
  padding: 10px 12px;
  border-radius: 14px;
  font-size: 0.92rem;
  line-height: 1.45;
  color: var(--text);
}
.nd-chat-msg-bot .nd-chat-bubble {
  background: var(--surface);
  border: 1px solid var(--line);
  border-top-left-radius: 4px;
}
.nd-chat-msg-user .nd-chat-bubble {
  background: var(--blue);
  color: #fff;
  border-top-right-radius: 4px;
}
.nd-chat-bubble a { color: var(--blue-2); }
.nd-chat-msg-user .nd-chat-bubble a { color: #fff; }

.nd-chat-quick {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 2px;
}
.nd-chat-chip {
  appearance: none;
  border: 1px solid var(--line-strong);
  background: var(--blue-soft);
  color: var(--text);
  border-radius: 999px;
  padding: 7px 11px;
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  text-align: left;
}
.nd-chat-chip:hover {
  border-color: rgba(58, 134, 255, 0.5);
  background: rgba(58, 134, 255, 0.22);
}

.nd-chat-form {
  display: flex;
  gap: 8px;
  padding: 12px;
  border-top: 1px solid var(--line);
  background: var(--surface);
}
.nd-chat-form input {
  flex: 1;
  min-width: 0;
  border: 1px solid var(--line-strong);
  background: var(--ink);
  color: var(--text);
  border-radius: 999px;
  padding: 10px 14px;
  font: inherit;
  font-size: 0.92rem;
}
.nd-chat-form input::placeholder { color: var(--muted); }
.nd-chat-send {
  appearance: none;
  border: 0;
  border-radius: 999px;
  background: var(--blue);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.88rem;
  padding: 10px 14px;
  cursor: pointer;
}
.nd-chat-send:hover { background: #2f76f0; }

.foot-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  align-items: center;
}
.foot-links a { color: var(--muted-2); text-decoration: none; }
.foot-links a:hover { color: var(--text); }

@media (max-width: 720px) {
  .nd-chat {
    right: 12px;
    bottom: 20px;
  }
  .nd-cookie {
    left: 12px;
    right: 12px;
    bottom: 88px;
    max-width: none;
  }
  .nd-cookie-inner {
    align-items: stretch;
    flex-direction: column;
    gap: 12px;
  }
  .nd-cookie-ok { width: 100%; }
  .nd-chat-panel {
    width: calc(100vw - 24px);
    height: min(560px, calc(100dvh - 140px));
  }
  .nd-chat-tip {
    right: 0;
    bottom: 64px;
    border-radius: 14px 14px 14px 4px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .contact-card, .faq-item button::after,
  .nd-chat-toggle, .nd-chat-chip, .nd-cookie-ok, .nd-chat-send { transition: none; }
  .nd-chat-toggle,
  .nd-chat-pulse,
  .nd-chat-tip {
    animation: none !important;
  }
}
