/* ============================================================
   Dr Feeliz — Dental Clinics — Design System
   Premium medical brand · Day/Night · Reduced-motion aware
   ============================================================ */

:root {
  --df-rose: #b0227f;
  --df-rose-2: #e856d0;
  --df-violet: #7a5cff;
  --df-cyan: #00d4ff;
  --df-amber: #f59e0b;
  --df-ink: #241735;
  --df-ink-2: #4a3a60;
  --df-soft: #f8f6ff;
  --df-card: #ffffff;
  --df-line: #e9e2f5;
  --df-muted: #6f6290;
  --df-shadow: 0 18px 50px -18px rgba(80, 40, 120, 0.22);
  --df-grad: linear-gradient(135deg, #b0227f, #e856d0 55%, #7a5cff);
  --df-grad-cyan: linear-gradient(135deg, #00d4ff, #7a5cff);
  --df-radius: 20px;
  --df-maxw: 1200px;
  --df-font: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --df-serif: 'Source Serif 4', Georgia, 'Times New Roman', serif;
}
html[data-tone="night"] {
  --df-ink: #f2ecff;
  --df-ink-2: #c6bcdd;
  --df-soft: #160f24;
  --df-card: #221636;
  --df-line: #352648;
  --df-muted: #a597c0;
  --df-shadow: 0 18px 50px -18px rgba(0, 0, 0, 0.6);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--df-font);
  background: var(--df-soft);
  color: var(--df-ink);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  transition: background .35s ease, color .35s ease;
}
img, svg { max-width: 100%; }
a { color: var(--df-rose); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 4vw, 3.2rem); font-weight: 800; }
h2 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); font-weight: 800; }
h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0 0 1em; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip {
  position: absolute; left: -9999px; top: 0; z-index: 1000;
  background: var(--df-ink); color: var(--df-soft); padding: .75rem 1rem; border-radius: 0 0 8px 0;
}
.skip:focus { left: 0; }

.wrap { max-width: var(--df-maxw); margin: 0 auto; padding: 0 24px; }
.section { padding: 72px 0; }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 48px; }
.section-head .kicker {
  display: inline-block; font-size: .78rem; font-weight: 800; letter-spacing: .14em;
  text-transform: uppercase; color: var(--df-rose);
  background: rgba(176, 34, 127, 0.09); border: 1px solid rgba(176, 34, 127, 0.25);
  padding: .35rem .8rem; border-radius: 99px; margin-bottom: 14px;
}
.section-head p { color: var(--df-muted); font-size: 1.05rem; }

.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .8rem 1.4rem; border-radius: 12px; font-weight: 700; font-size: .95rem;
  border: 1.5px solid transparent; cursor: pointer; transition: transform .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease;
  font-family: var(--df-font);
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn.primary { background: var(--df-grad); color: #fff; box-shadow: 0 10px 26px -10px rgba(232, 86, 208, 0.6); }
.btn.primary:hover { box-shadow: 0 14px 32px -10px rgba(232, 86, 208, 0.7); }
.btn.ghost { background: transparent; color: var(--df-ink); border-color: var(--df-line); }
.btn.ghost:hover { border-color: var(--df-rose); color: var(--df-rose); }
.btn.em { background: var(--df-grad-cyan); color: #0b1026; box-shadow: 0 10px 26px -10px rgba(0, 212, 255, 0.5); }
.btn.sm { padding: .55rem 1rem; font-size: .85rem; border-radius: 10px; }
.btn .arr { transition: transform .18s ease; }
.btn:hover .arr { transform: translateX(3px); }
.cta-row { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.5rem; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 90; }
.topbar {
  background: var(--df-ink); color: #cfc4e8; font-size: .82rem;
}
html[data-tone="night"] .topbar { background: #0c0716; color: #a597c0; }
.topbar-inner { display: flex; gap: 1.2rem; justify-content: space-between; padding: .45rem 24px; align-items: center; }
.topbar a { color: #fff; }
.topbar-branches { opacity: .75; }
.navwrap {
  background: var(--df-card); border-bottom: 1px solid var(--df-line);
  transition: background .35s ease, border-color .35s ease;
}
.navwrap.scrolled { box-shadow: var(--df-shadow); }
.nav-inner { display: flex; align-items: center; gap: 1.2rem; padding: .7rem 24px; }
.brand { display: flex; align-items: center; gap: .6rem; color: var(--df-ink); }
.brand:hover { text-decoration: none; }
.brand-mark { color: var(--df-rose); flex: none; }
.brand-text { font-size: 1.25rem; font-weight: 700; line-height: 1.1; display: flex; flex-direction: column; }
.brand-text strong { color: var(--df-rose); font-weight: 800; }
.brand-text small { font-size: .62rem; letter-spacing: .16em; text-transform: uppercase; color: var(--df-muted); font-weight: 700; }
.site-nav { display: flex; align-items: center; gap: .35rem; margin-left: auto; }
.site-nav > a, .nav-parent {
  padding: .55rem .8rem; border-radius: 10px; color: var(--df-ink-2); font-weight: 600; font-size: .92rem;
}
.site-nav > a:hover, .nav-parent:hover, .nav-parent[aria-expanded="true"] { color: var(--df-rose); text-decoration: none; background: rgba(176, 34, 127, 0.07); }
.nav-item { position: relative; }
.nav-drop {
  position: absolute; top: calc(100% + 10px); left: 0; min-width: 250px;
  background: var(--df-card); border: 1px solid var(--df-line); border-radius: 14px;
  padding: .6rem; box-shadow: var(--df-shadow);
  opacity: 0; visibility: hidden; transform: translateY(6px);
  transition: opacity .16s ease, transform .16s ease, visibility .16s;
  z-index: 120;
}
.nav-item:hover .nav-drop, .nav-item:focus-within .nav-drop { opacity: 1; visibility: visible; transform: translateY(0); }
.nav-drop a { display: block; padding: .5rem .7rem; border-radius: 9px; color: var(--df-ink-2); font-size: .9rem; }
.nav-drop a:hover { background: rgba(176, 34, 127, 0.08); color: var(--df-rose); text-decoration: none; }
.caret { display: inline-block; width: 6px; height: 6px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translateY(-2px); margin-left: 2px; }
.nav-tools { display: flex; align-items: center; gap: .6rem; }
.lang-switch { display: flex; border: 1px solid var(--df-line); border-radius: 99px; overflow: hidden; }
.lang-switch a { padding: .32rem .65rem; font-size: .78rem; font-weight: 700; color: var(--df-muted); }
.lang-switch a[aria-current="true"] { background: var(--df-ink); color: var(--df-soft); }
.tone-toggle { display: flex; gap: 2px; border: 1px solid var(--df-line); border-radius: 99px; padding: 2px; }
.tone-toggle button {
  border: 0; background: transparent; color: var(--df-muted); width: 30px; height: 28px;
  border-radius: 99px; cursor: pointer; display: grid; place-items: center;
}
.tone-toggle button[aria-pressed="true"] { background: var(--df-grad); color: #fff; }
.nav-toggle { display: none; border: 0; background: transparent; color: var(--df-ink); font-weight: 700; cursor: pointer; align-items: center; gap: .4rem; font-family: var(--df-font); }
.burger, .burger::before, .burger::after { display: block; width: 20px; height: 2px; background: currentColor; border-radius: 2px; }
.burger { position: relative; }
.burger::before, .burger::after { content: ""; position: absolute; left: 0; }
.burger::before { top: -6px; }
.burger::after { top: 6px; }
.nav-cta { display: flex; gap: .6rem; }

/* ---------- Page hero ---------- */
.page-hero {
  padding: 56px 0 48px;
  background:
    radial-gradient(900px 320px at 85% -10%, rgba(0, 212, 255, 0.14), transparent 60%),
    radial-gradient(700px 300px at 10% 120%, rgba(232, 86, 208, 0.12), transparent 60%);
  border-bottom: 1px solid var(--df-line);
}
.page-hero h1 { margin-bottom: .35em; }
.page-hero .lead { color: var(--df-muted); font-size: 1.12rem; max-width: 720px; }
.crumbs { font-size: .85rem; color: var(--df-muted); margin-bottom: .8rem; }
.crumbs a { color: var(--df-muted); }
.crumbs a:hover { color: var(--df-rose); }

/* ---------- Cards / grids ---------- */
.grid { display: grid; gap: 1.5rem; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 960px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}
.card {
  background: var(--df-card); border: 1px solid var(--df-line); border-radius: var(--df-radius);
  padding: 1.6rem; transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
  position: relative; overflow: hidden;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--df-shadow); border-color: rgba(176, 34, 127, 0.4); }
.card.treat-card { display: flex; flex-direction: column; gap: .6rem; }
.treat-icon {
  width: 54px; height: 54px; border-radius: 14px; display: grid; place-items: center;
  background: rgba(176, 34, 127, 0.08); color: var(--df-rose); flex: none;
}
.treat-card h3 { margin-bottom: .2em; }
.treat-card p { color: var(--df-muted); font-size: .92rem; margin-bottom: .6rem; flex: 1; }
.treat-card .card-meta { display: flex; justify-content: space-between; align-items: center; font-size: .82rem; color: var(--df-muted); }
.treat-card .card-link { color: var(--df-rose); font-weight: 700; font-size: .85rem; }
.treat-card .card-link:hover { text-decoration: underline; }

/* ---------- Home hero ---------- */
.home-hero {
  position: relative; overflow: hidden;
  padding: 64px 0 72px;
  background:
    radial-gradient(900px 400px at 85% -20%, rgba(0, 212, 255, 0.16), transparent 60%),
    radial-gradient(800px 380px at 0% 110%, rgba(232, 86, 208, 0.16), transparent 60%),
    var(--df-soft);
  border-bottom: 1px solid var(--df-line);
}
.home-hero-inner { display: grid; grid-template-columns: 1.05fr .95fr; gap: 3rem; align-items: center; }
.hero-kicker {
  display: inline-block; font-size: .78rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase;
  color: var(--df-violet); background: rgba(122, 92, 255, 0.1); border: 1px solid rgba(122, 92, 255, 0.3);
  padding: .35rem .85rem; border-radius: 99px; margin-bottom: 18px;
}
.home-hero h1 { font-size: clamp(2.3rem, 4.6vw, 3.6rem); }
.home-hero h1 .accent { background: var(--df-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-lead { color: var(--df-muted); font-size: 1.15rem; max-width: 560px; }
.hero-visual { position: relative; }
.hero-visual .hero-img { border-radius: 28px; box-shadow: var(--df-shadow); width: 100%; height: auto; display: block; }
.hero-chip {
  position: absolute; display: flex; align-items: center; gap: .6rem;
  background: var(--df-card); border: 1px solid var(--df-line); border-radius: 14px;
  padding: .7rem 1rem; box-shadow: var(--df-shadow); font-size: .82rem; font-weight: 700;
  animation: dfFloat 6s ease-in-out infinite;
}
.hero-chip span { color: var(--df-muted); font-weight: 600; display: block; }
.hero-chip-1 { top: 22px; left: -18px; }
.hero-chip-2 { bottom: 34px; right: -14px; animation-delay: 1.6s; }
@keyframes dfFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

/* ---------- Stats ---------- */
.stats-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; }
@media (max-width: 760px) { .stats-row { grid-template-columns: repeat(2, 1fr); } }
.stat { text-align: center; padding: 1.4rem 1rem; }
.stat .num { font-size: 2rem; font-weight: 800; background: var(--df-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat .lbl { color: var(--df-muted); font-size: .9rem; }

/* ---------- Branch cards ---------- */
.branch-card { display: flex; flex-direction: column; gap: .5rem; }
.branch-card .branch-head { display: flex; align-items: center; gap: .8rem; }
.branch-pin { color: var(--df-violet); flex: none; }
.branch-card h3 { margin: 0; }
.branch-card .area { color: var(--df-muted); font-size: .88rem; }
.branch-card .hours { font-size: .88rem; color: var(--df-ink-2); }
.branch-card .hours li { display: flex; justify-content: space-between; border-bottom: 1px dashed var(--df-line); padding: .3rem 0; }
.branch-card .hours li:last-child { border-bottom: 0; }
.branch-card .hours dt { color: var(--df-muted); }
.branch-card .hours dd { margin: 0; font-weight: 700; }
.branch-card .cta-row { margin-top: auto; }

/* ---------- Feature list ---------- */
.feature-list { list-style: none; padding: 0; margin: 0; display: grid; gap: .6rem; }
.feature-list li { display: flex; gap: .6rem; align-items: flex-start; }
.feature-list svg { color: var(--df-rose); flex: none; margin-top: 3px; }

/* ---------- Testimonials ---------- */
.testi-card { display: flex; flex-direction: column; gap: .7rem; }
.testi-head { display: flex; align-items: center; gap: .8rem; }
.testi-avatar {
  width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
  background: var(--df-grad); color: #fff; font-weight: 800; font-size: 1.05rem; flex: none;
}
.testi-card blockquote { margin: 0; color: var(--df-ink-2); font-size: .95rem; }
.testi-card .stars { color: #f5b301; }
.testi-card .testi-branch { font-size: .8rem; color: var(--df-muted); }
.testi-photo { width: 48px; height: 48px; object-fit: cover; border-radius: 50%; border: 2px solid var(--df-grad); flex: 0 0 auto; }

/* ---------- Journal cards ---------- */
.journal-card { display: flex; flex-direction: column; gap: .5rem; }
.journal-card .cat {
  font-size: .74rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase;
  color: var(--df-violet);
}
.journal-card h3 { font-size: 1.05rem; }
.journal-card p { color: var(--df-muted); font-size: .9rem; flex: 1; }
.journal-card .journal-meta { display: flex; justify-content: space-between; font-size: .8rem; color: var(--df-muted); }
.journal-card .journal-meta a { font-weight: 700; }

/* ---------- Team ---------- */
.team-card { display: flex; flex-direction: column; align-items: center; text-align: center; gap: .5rem; }
.team-avatar {
  width: 96px; height: 96px; border-radius: 50%; display: grid; place-items: center;
  background: var(--df-grad); color: #fff; font-size: 1.7rem; font-weight: 800;
  box-shadow: 0 12px 30px -12px rgba(176, 34, 127, 0.5);
}
.team-card h3 { margin: 0; }
.team-card .role { color: var(--df-rose); font-weight: 700; font-size: .85rem; letter-spacing: .06em; text-transform: uppercase; }
.team-card p { color: var(--df-muted); font-size: .9rem; margin: 0; }
.team-card .creds { font-size: .8rem; color: var(--df-muted); }
.team-photo { width: 160px; height: 160px; object-fit: cover; object-position: top center; border-radius: 50%; border: 3px solid var(--df-grad); box-shadow: 0 12px 30px -12px rgba(176, 34, 127, 0.45); }
.role-badge { font-size: .72rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--df-amber, #b45309); background: rgba(251, 191, 36, .15); border: 1px solid rgba(251, 191, 36, .4); padding: .2rem .6rem; border-radius: 999px; }

.treat-hero-fig { margin: 1.6rem 0 0; }
.treat-hero-img { width: 100%; max-width: 900px; border-radius: 20px; border: 1px solid var(--df-line); display: block; }
.treat-hero-fig figcaption { margin-top: .5rem; }

/* ---------- Process steps ---------- */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 1.2rem; counter-reset: step; }
.step { position: relative; padding: 1.3rem 1.2rem 1.1rem; background: var(--df-card); border: 1px solid var(--df-line); border-radius: 16px; }
.step::before {
  counter-increment: step; content: counter(step);
  position: absolute; top: -12px; left: 16px;
  width: 26px; height: 26px; border-radius: 50%;
  background: var(--df-grad); color: #fff; font-size: .8rem; font-weight: 800;
  display: grid; place-items: center;
}
.step strong { display: block; margin-bottom: .25rem; }
.step span { color: var(--df-muted); font-size: .88rem; }

/* ---------- Treatment detail ---------- */
.treat-layout { display: grid; grid-template-columns: 240px 1fr; gap: 2.2rem; align-items: start; }
@media (max-width: 900px) { .treat-layout { grid-template-columns: 1fr; } }
.treat-toc {
  position: sticky; top: 120px;
  background: var(--df-card); border: 1px solid var(--df-line); border-radius: 16px; padding: 1rem;
}
.treat-toc a { display: block; padding: .4rem .6rem; border-radius: 8px; color: var(--df-ink-2); font-size: .9rem; }
.treat-toc a:hover { background: rgba(176, 34, 127, 0.08); color: var(--df-rose); text-decoration: none; }
.treat-content h2 { margin-top: 1.8em; scroll-margin-top: 120px; }
.pricing-table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.pricing-table th, .pricing-table td { text-align: left; padding: .75rem 1rem; border-bottom: 1px solid var(--df-line); }
.pricing-table th { background: rgba(122, 92, 255, 0.07); font-weight: 700; }
.pricing-table tr:hover td { background: rgba(176, 34, 127, 0.04); }
.price-amt { font-weight: 800; color: var(--df-rose); white-space: nowrap; }
.pricing-note { font-size: .82rem; color: var(--df-muted); margin-top: .8rem; }
.faq-item { border: 1px solid var(--df-line); border-radius: 14px; margin-bottom: .7rem; overflow: hidden; background: var(--df-card); }
.faq-item summary {
  cursor: pointer; padding: 1rem 1.2rem; font-weight: 700; list-style: none; display: flex; justify-content: space-between; gap: 1rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-weight: 800; color: var(--df-rose); }
.faq-item[open] summary::after { content: "–"; }
.faq-item .faq-a { padding: 0 1.2rem 1.1rem; color: var(--df-muted); }

/* ---------- Appointment ---------- */
.appt-steps { display: flex; gap: .4rem; list-style: none; padding: 0; margin: 0 0 2rem; flex-wrap: wrap; }
.appt-steps li {
  display: flex; align-items: center; gap: .45rem; font-size: .82rem; font-weight: 700; color: var(--df-muted);
  padding: .4rem .8rem; border-radius: 99px; border: 1px solid var(--df-line); background: var(--df-card);
}
.appt-steps li span { width: 22px; height: 22px; border-radius: 50%; background: var(--df-line); color: var(--df-muted); display: grid; place-items: center; font-size: .75rem; }
.appt-steps li.is-on { color: var(--df-rose); border-color: rgba(176, 34, 127, 0.4); }
.appt-steps li.is-on span { background: var(--df-grad); color: #fff; }
.appt-steps li.is-done span { background: var(--df-cyan); color: #0b1026; }
.appt-layout { display: grid; grid-template-columns: 1fr 340px; gap: 2rem; align-items: start; }
@media (max-width: 960px) { .appt-layout { grid-template-columns: 1fr; } }
.appt-panel { background: var(--df-card); border: 1px solid var(--df-line); border-radius: var(--df-radius); padding: 1.8rem; }
.appt-pane { animation: dfFadeIn .25s ease; }
.appt-pane h2 { margin-bottom: .3em; }
.appt-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 1rem; margin-top: 1.2rem; }
.appt-card {
  display: flex; flex-direction: column; align-items: flex-start; gap: .4rem; text-align: left;
  background: var(--df-soft); border: 1.5px solid var(--df-line); border-radius: 14px;
  padding: 1.1rem; cursor: pointer; font-family: var(--df-font); transition: border-color .15s ease, transform .15s ease, box-shadow .15s ease;
}
.appt-card:hover { border-color: var(--df-rose); transform: translateY(-2px); box-shadow: var(--df-shadow); }
.appt-card:focus-visible { outline: 2px solid var(--df-rose); outline-offset: 2px; }
.appt-card strong { color: var(--df-ink); }
.appt-card span { color: var(--df-muted); font-size: .82rem; }
.appt-card.is-sel { border-color: var(--df-rose); background: rgba(176, 34, 127, 0.07); }
.appt-summary { display: grid; gap: .6rem; margin: 1.2rem 0; }
.appt-summary div { display: grid; grid-template-columns: 160px 1fr; gap: 1rem; padding: .6rem 0; border-bottom: 1px dashed var(--df-line); }
.appt-summary dt { color: var(--df-muted); font-weight: 600; }
.appt-summary dd { margin: 0; font-weight: 700; }
.appt-bar { display: flex; gap: .75rem; margin-top: 1.6rem; flex-wrap: wrap; }
.appt-aside .appt-help { background: var(--df-card); border: 1px solid var(--df-line); border-radius: 16px; padding: 1.3rem; margin-bottom: 1rem; }
.appt-help form { display: flex; gap: .5rem; margin-top: .8rem; }
.appt-help input {
  flex: 1; padding: .65rem .9rem; border-radius: 10px; border: 1.5px solid var(--df-line);
  background: var(--df-soft); color: var(--df-ink); font-family: var(--df-font); font-size: .9rem;
}
.appt-help input:focus { outline: 2px solid var(--df-rose); border-color: transparent; }
.appt-assist-out { margin-top: .9rem; font-size: .9rem; color: var(--df-ink-2); background: rgba(0, 212, 255, 0.08); border-left: 3px solid var(--df-cyan); padding: .7rem .9rem; border-radius: 8px; }
.form-row { display: grid; gap: .5rem; margin-bottom: 1rem; }
.form-row label { font-weight: 700; font-size: .88rem; }
.form-row input, .form-row select, .form-row textarea {
  padding: .7rem .9rem; border-radius: 10px; border: 1.5px solid var(--df-line);
  background: var(--df-soft); color: var(--df-ink); font-family: var(--df-font); font-size: .95rem;
}
.form-row input:focus, .form-row select:focus, .form-row textarea:focus { outline: 2px solid var(--df-rose); border-color: transparent; }
.flag {
  background: rgba(0, 212, 255, 0.1); border-left: 4px solid var(--df-cyan);
  padding: .9rem 1.1rem; border-radius: 10px; font-size: .92rem; margin: 1rem 0;
}
.note { font-size: .84rem; color: var(--df-muted); }

/* ---------- AI assistant ---------- */
.ai-assist { position: fixed; right: 22px; bottom: 22px; z-index: 130; }
.ai-assist-fab {
  width: 58px; height: 58px; border-radius: 50%; border: 0; cursor: pointer;
  background: var(--df-grad); color: #fff; box-shadow: 0 12px 34px -8px rgba(176, 34, 127, 0.6);
  display: grid; place-items: center; transition: transform .2s ease;
}
.ai-assist-fab:hover { transform: scale(1.06); }
.ai-assist-panel {
  position: absolute; right: 0; bottom: 72px; width: min(360px, calc(100vw - 44px));
  background: var(--df-card); border: 1px solid var(--df-line); border-radius: 18px;
  box-shadow: var(--df-shadow); overflow: hidden; display: flex; flex-direction: column; max-height: 480px;
  z-index: 140;
}
.ai-assist-panel[hidden] { display: none !important; }
.ai-assist-head {
  display: flex; justify-content: space-between; align-items: center;
  padding: .9rem 1.1rem; background: var(--df-ink); color: #fff;
}
.ai-assist-head strong { font-size: .95rem; }
.ai-assist-close {
  background: rgba(255,255,255,.12); border: 0; color: #fff; font-size: 1.5rem; cursor: pointer;
  line-height: 1; width: 36px; height: 36px; border-radius: 50%; position: relative; z-index: 2;
}
.ai-assist-body { padding: 1rem 1.1rem; overflow-y: auto; flex: 1; display: grid; gap: .5rem; font-size: .9rem; }
.ai-assist-msg { padding: .6rem .8rem; border-radius: 12px; background: var(--df-soft); color: var(--df-ink-2); white-space: pre-wrap; }
.ai-assist-msg.user { background: var(--df-grad); color: #fff; justify-self: end; }
.ai-assist-msg a { color: var(--df-cyan); font-weight: 700; }
.ai-assist-msg .chips { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .5rem; }
.ai-assist-msg .chip {
  font-size: .78rem; font-weight: 700; padding: .3rem .65rem; border-radius: 99px;
  border: 1px solid var(--df-cyan); color: var(--df-cyan); cursor: pointer; background: transparent;
}
.ai-assist-welcome { color: var(--df-muted); }
.ai-assist-form { display: flex; gap: .5rem; padding: .8rem 1.1rem; border-top: 1px solid var(--df-line); }
.ai-assist-form input {
  flex: 1; padding: .6rem .8rem; border-radius: 10px; border: 1.5px solid var(--df-line);
  background: var(--df-soft); color: var(--df-ink); font-family: var(--df-font); font-size: .9rem;
}
.ai-assist-note { padding: .5rem 1.1rem .8rem; font-size: .72rem; color: var(--df-muted); background: var(--df-soft); margin: 0; }

/* ---------- Explainer / visualisation ---------- */
.explainer {
  background: var(--df-card); border: 1px solid var(--df-line); border-radius: var(--df-radius);
  padding: 1.6rem; margin-top: 1.6rem;
}
.explainer-badge {
  display: inline-block; font-size: .72rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase;
  color: var(--df-violet); background: rgba(122, 92, 255, 0.1); border: 1px solid rgba(122, 92, 255, 0.3);
  padding: .25rem .6rem; border-radius: 99px; margin-bottom: 1rem;
}
.dfx-stage { position: relative; overflow: hidden; border-radius: 16px; background: var(--df-soft); border: 1px solid var(--df-line); }
.dfx-stage svg { width: 100%; height: auto; display: block; }
.dfx-controls { display: flex; gap: .5rem; margin-top: .9rem; flex-wrap: wrap; }
.dfx-controls button {
  border: 1.5px solid var(--df-line); background: var(--df-card); color: var(--df-ink);
  padding: .5rem 1rem; border-radius: 10px; font-weight: 700; font-size: .85rem; cursor: pointer; font-family: var(--df-font);
}
.dfx-controls button[aria-pressed="true"], .dfx-controls button.active { background: var(--df-grad); color: #fff; border-color: transparent; }
.dfx-caption { font-size: .85rem; color: var(--df-muted); margin-top: .7rem; }

/* ---------- Marquee ---------- */
.df-marquee { overflow: hidden; background: var(--df-card); border-block: 1px solid var(--df-line); padding: 1rem 0; }
.df-marquee-track { display: flex; gap: 3rem; width: max-content; animation: dfMarquee 40s linear infinite; }
.df-marquee:hover .df-marquee-track { animation-play-state: paused; }
.df-marquee-track span { font-weight: 800; font-size: .92rem; color: var(--df-muted); white-space: nowrap; display: flex; align-items: center; gap: .6rem; }
.df-marquee-track span::before { content: "·"; color: var(--df-rose); font-size: 1.4rem; }
@keyframes dfMarquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- Why us ---------- */
.why-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; }
@media (max-width: 960px) { .why-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .why-grid { grid-template-columns: 1fr; } }
.why-card { text-align: center; padding: 1.6rem 1.2rem; }
.why-card .treat-icon { margin: 0 auto .8rem; width: 60px; height: 60px; border-radius: 50%; }
.why-card h3 { font-size: 1.02rem; }
.why-card p { color: var(--df-muted); font-size: .9rem; }

/* ---------- CTA band ---------- */
.cta-band {
  background: var(--df-grad); color: #fff; border-radius: 28px; padding: 3rem 2.5rem;
  text-align: center; position: relative; overflow: hidden;
}
.cta-band::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(400px 200px at 15% 20%, rgba(255, 255, 255, 0.16), transparent 60%),
    radial-gradient(400px 200px at 85% 80%, rgba(0, 212, 255, 0.28), transparent 60%);
}
.cta-band > * { position: relative; }
.cta-band h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); }
.cta-band p { opacity: .92; max-width: 600px; margin: 0 auto 1.4rem; }
.cta-band .btn.primary { background: #fff; color: var(--df-rose); box-shadow: none; }
.cta-band .btn.ghost { border-color: rgba(255, 255, 255, 0.7); color: #fff; }
.cta-band .btn.ghost:hover { background: rgba(255, 255, 255, 0.12); border-color: #fff; }

/* ---------- Footer ---------- */
.site-footer { background: var(--df-ink); color: #cfc4e8; margin-top: 80px; }
html[data-tone="night"] .site-footer { background: #0c0716; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 2rem; padding: 3rem 24px 2rem; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer h2 { font-size: .95rem; color: #fff; text-transform: uppercase; letter-spacing: .08em; }
.site-footer a { color: #cfc4e8; display: block; padding: .22rem 0; font-size: .9rem; }
.site-footer a:hover { color: var(--df-rose-2); }
.footer-brand .brand-text { color: #fff; }
.footer-brand .brand-mark { color: var(--df-rose-2); }
.footer-tag { font-size: .95rem; }
.footer-legal { border-top: 1px solid rgba(255, 255, 255, 0.12); padding: 1.6rem 24px 2rem; font-size: .85rem; }
.footer-build { font-size: .8rem; opacity: .75; max-width: 900px; }
.footer-build a { display: inline; color: var(--df-rose-2); }
.footer-ainna-badges { display: flex; gap: .6rem; align-items: center; margin-top: 1rem; flex-wrap: wrap; }
.footer-ainna-badge {
  display: inline-flex; align-items: center; gap: .45rem; padding: .4rem .8rem;
  border: 1px solid rgba(255, 255, 255, 0.25); border-radius: 99px; font-size: .82rem;
}
.footer-ainna-pill {
  padding: .35rem .8rem; border: 1px solid rgba(0, 212, 255, 0.4); border-radius: 99px;
  font-size: .75rem; color: var(--df-cyan); letter-spacing: .06em; text-transform: uppercase; font-weight: 700;
}

/* ---------- Mobile bottom bar ---------- */
.mobar {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 100;
  display: none; grid-template-columns: repeat(4, 1fr);
  background: var(--df-card); border-top: 1px solid var(--df-line);
}
.mobar a {
  text-align: center; padding: .8rem .3rem; font-size: .78rem; font-weight: 700; color: var(--df-ink-2);
  border-right: 1px solid var(--df-line);
}
.mobar a:last-child { border-right: 0; }
.mobar a.em { color: var(--df-rose); }

/* ---------- Prose ---------- */
.prose { max-width: 780px; }
.prose p { margin-bottom: 1.1em; }
.prose h2 { margin-top: 1.6em; }
.prose ul { padding-left: 1.2rem; }

/* ---------- Animation / reveal ---------- */
@keyframes dfFadeIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
.df-reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s ease; }
.df-reveal.is-visible { opacity: 1; transform: translateY(0); }

/* ---------- Demo control ---------- */
.demo-control {
  position: fixed; left: 22px; bottom: 22px; z-index: 120;
  background: var(--df-card); border: 1px solid var(--df-line); border-radius: 16px;
  box-shadow: var(--df-shadow); padding: .6rem; display: flex; flex-direction: column; gap: .35rem;
}
.demo-control button {
  border: 1.5px solid var(--df-line); background: var(--df-soft); color: var(--df-ink);
  padding: .4rem .8rem; border-radius: 9px; font-size: .78rem; font-weight: 700; cursor: pointer; font-family: var(--df-font);
}
.demo-control button[aria-pressed="true"] { background: var(--df-grad); color: #fff; border-color: transparent; }

/* ---------- Cookie consent ---------- */
.cookie-consent {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 140;
  background: var(--df-ink); color: #e6ddf5; border-radius: 16px;
  box-shadow: var(--df-shadow); padding: 1.1rem 1.3rem;
}
html[data-tone="night"] .cookie-consent { background: #1a1228; }
.cookie-inner { max-width: 720px; margin: 0 auto; }
.cookie-consent p { margin: 0; font-size: .9rem; }
.cookie-consent a { color: var(--df-rose-2); }
.cookie-consent .cta-row { margin-top: .8rem; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .nav-cta .btn.ghost { display: none; }
}
@media (max-width: 960px) {
  .site-nav {
    position: fixed; top: 0; right: -100%; bottom: 0; width: min(330px, 84vw);
    flex-direction: column; align-items: stretch; gap: .2rem;
    background: var(--df-card); border-left: 1px solid var(--df-line);
    padding: 5rem 1.2rem 1.5rem; box-shadow: var(--df-shadow);
    transition: right .28s ease; z-index: 200; overflow-y: auto;
  }
  .site-nav.open { right: 0; }
  .site-nav > a, .nav-parent { display: block; font-size: 1rem; }
  .nav-drop { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; padding: 0 0 0 .8rem; min-width: 0; }
  .nav-item:hover .nav-drop { transform: none; }
  .nav-toggle { display: inline-flex; }
  .home-hero-inner { grid-template-columns: 1fr; gap: 2.5rem; }
  .hero-visual { order: -1; }
  .hero-chip-1 { left: 6px; }
  .hero-chip-2 { right: 6px; }
  .mobar { display: grid; }
  body { padding-bottom: 0; }
  .ai-assist { bottom: 74px; }
}
@media (min-width: 961px) {
  .mobar { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .df-reveal { opacity: 1; transform: none; }
}
html[data-anim="off"] *,
html[data-anim="off"] *::before,
html[data-anim="off"] *::after {
  animation: none !important;
  animation-duration: .01ms !important;
  animation-iteration-count: 1 !important;
  transition-duration: .01ms !important;
}
html[data-anim="off"] .df-reveal { opacity: 1; transform: none; }
html[data-anim="off"] .df-marquee-track { animation: none !important; }
