/* ============================================================
   Dr Feeliz v2 — Modern Dentistry + Human Care + Clinical Tech
   Overrides + new homepage / header / footer system
   ============================================================ */

:root {
  --df-pink: #9b1b5a;
  --df-rose: #9b1b5a;
  --df-rose-2: #c43a7a;
  --df-ink: #1c1520;
  --df-ink-2: #3d3344;
  --df-muted: #6b6170;
  --df-faint: #948a98;
  --df-paper: #fffcfa;
  --df-soft: #f4f1ed;
  --df-mist: #ece7e2;
  --df-card: #ffffff;
  --df-line: #e7e0da;
  --df-tint: #f8eef3;
  --df-deep: #1a1020;
  --df-gold: #b89a4c;
  --df-ok: #1d7a52;
  --df-shadow: 0 18px 40px -24px rgba(40, 20, 30, .28);
  --df-shadow-sm: 0 8px 22px -16px rgba(40, 20, 30, .2);
  --df-ease: cubic-bezier(0.22, 1, 0.36, 1);
  --df-micro: 180ms;
  --df-card-ms: 300ms;
  --df-section-ms: 580ms;
  --df-radius: 22px;
  --df-maxw: 1180px;
  --df-header: 78px;
}

html[data-tone="night"] {
  --df-ink: #f4eef6;
  --df-ink-2: #d5cbd8;
  --df-muted: #b2a6b4;
  --df-faint: #8b808e;
  --df-paper: #121014;
  --df-soft: #1a171c;
  --df-mist: #221e24;
  --df-card: #1c181f;
  --df-line: #322b33;
  --df-tint: #2a1c26;
  --df-deep: #0c0a0e;
  --df-shadow: 0 18px 40px -20px rgba(0, 0, 0, .55);
}

body.df-site {
  background: var(--df-paper);
  color: var(--df-ink);
}
body.df-site a { color: var(--df-pink); }
.df-ease, .btn, .nav-parent, .site-nav > a { transition-timing-function: var(--df-ease); }

/* Animation tokens */
.df-reveal { transition: opacity var(--df-section-ms) var(--df-ease), transform var(--df-section-ms) var(--df-ease); }
.df-stagger > .df-reveal:nth-child(1) { transition-delay: 0ms; }
.df-stagger > .df-reveal:nth-child(2) { transition-delay: 70ms; }
.df-stagger > .df-reveal:nth-child(3) { transition-delay: 140ms; }
.df-stagger > .df-reveal:nth-child(4) { transition-delay: 210ms; }

/* Header — premium healthcare */
.df-site .topbar { display: none; }
.df-site .site-header { position: sticky; top: 0; z-index: 90; }
.df-site .navwrap {
  background: color-mix(in srgb, var(--df-paper) 78%, transparent);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: background var(--df-micro) var(--df-ease), box-shadow var(--df-micro) var(--df-ease), height var(--df-micro) var(--df-ease);
}
.df-site .nav-inner { padding: .85rem 24px; transition: padding var(--df-micro) var(--df-ease); }
.df-site .navwrap.scrolled {
  background: var(--df-paper);
  border-bottom-color: var(--df-line);
  box-shadow: var(--df-shadow-sm);
}
.df-site .navwrap.scrolled .nav-inner { padding: .5rem 24px; }
.df-site .brand-text small { letter-spacing: .18em; }
.df-site .site-nav { gap: .15rem; }
.df-site .nav-utils { display: flex; align-items: center; gap: .45rem; margin-left: .4rem; }
.df-mega { display: grid; grid-template-columns: 1fr 1fr; gap: .2rem 1.2rem; min-width: 420px; padding: 1rem !important; }
.df-mega-all { grid-column: 1 / -1; font-weight: 800 !important; color: var(--df-pink) !important; margin-top: .4rem; }
.df-branch-panel { min-width: 300px; padding: .9rem !important; }
.df-bmini { display: flex !important; align-items: center; gap: .7rem; }
.df-bmini img { width: 56px; height: 40px; object-fit: cover; border-radius: 8px; flex: none; }
.df-bmini span { display: flex; flex-direction: column; }
.df-bmini small { color: var(--df-muted); font-weight: 500; }
.df-site .nav-cta { margin-left: .4rem; }
.df-site .nav-toggle { margin-left: auto; }
.df-site .nav-drop {
  min-width: 320px; padding: .85rem;
  border: 0; box-shadow: var(--df-shadow); border-radius: 18px;
}
.df-mega { display: grid; grid-template-columns: 1fr 1fr; gap: .35rem 1rem; min-width: 460px; }
.df-mega-col strong {
  display: block; font-size: .68rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--df-faint); padding: .35rem .55rem;
}
.df-mega a { display: flex; align-items: center; gap: .5rem; }
.df-mega .mi {
  width: 22px; height: 22px; color: var(--df-pink); flex: none;
}
.df-branch-drop { min-width: 280px; max-height: 70vh; overflow-y: auto; }
.df-branch-drop a { display: flex; flex-direction: column; gap: .1rem; }
.df-branch-drop small { color: var(--df-muted); font-weight: 500; font-size: .78rem; }
.df-site .nav-cta .btn { min-height: 42px; border-radius: 999px; }
.df-site .btn { transition: transform var(--df-micro) var(--df-ease), box-shadow var(--df-micro) var(--df-ease), background var(--df-micro) var(--df-ease), color var(--df-micro) var(--df-ease); }
.df-site .btn:hover { transform: translateY(-1px); }
.df-site .btn.primary {
  background: var(--df-pink); box-shadow: 0 10px 22px -12px rgba(194, 24, 106, .55);
}
.df-site .btn.primary:hover { background: #a8145a; }
.df-site .btn.ghost { border-color: color-mix(in srgb, var(--df-ink) 14%, transparent); }

/* Section primitives */
.df-kicker {
  display: inline-block; font-size: .72rem; font-weight: 800; letter-spacing: .16em;
  text-transform: uppercase; color: var(--df-pink); margin-bottom: .7rem;
}
.df-lead { color: var(--df-muted); font-size: 1.05rem; max-width: 620px; }
.sec { padding: 88px 0; }
.sec-head { max-width: 640px; margin-bottom: 36px; }
.sec-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.sec-head h2 { font-family: var(--df-serif); font-weight: 600; letter-spacing: -.03em; }
.bg-mist { background: var(--df-soft); }
.bg-white { background: var(--df-paper); }
.bg-tint { background: var(--df-tint); }
.bg-photo { background: var(--df-deep); color: #f6eef4; }
.bg-photo .df-lead, .bg-photo p { color: #d8c8d4; }
.bg-contrast { background: var(--df-deep); color: #fff; }

/* Hero */
.home-hero-v2 {
  position: relative; overflow: hidden;
  padding: 36px 0 64px;
  background:
    radial-gradient(720px 280px at 90% 0%, rgba(194,24,106,.08), transparent 60%),
    linear-gradient(180deg, #fff 0%, var(--df-paper) 100%);
}
html[data-tone="night"] .home-hero-v2 {
  background:
    radial-gradient(720px 280px at 90% 0%, rgba(194,24,106,.14), transparent 60%),
    var(--df-paper);
}
.hero-v2 { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; }
.hero-v2 h1 {
  font-family: var(--df-serif); font-weight: 600; letter-spacing: -.035em;
  font-size: clamp(2.4rem, 5vw, 3.7rem); margin: 0 0 .4em;
}
.hero-v2 h1 em { font-style: italic; color: var(--df-pink); }
.hero-stage { position: relative; overflow: hidden; border-radius: 28px; }
.hero-photo {
  width: 100%; aspect-ratio: 4/5; object-fit: cover; border-radius: 28px;
  box-shadow: var(--df-shadow);
}
.hero-line {
  position: absolute; left: 8%; right: 8%; bottom: 22%; height: 36px;
  color: #fff; opacity: .7; pointer-events: none;
}
.hero-line path { stroke-dasharray: 240; animation: dfDraw 8s var(--df-ease) infinite; }
@keyframes dfDraw { 0% { stroke-dashoffset: 240; } 40%,100% { stroke-dashoffset: 0; } }
.hero-scan {
  position: absolute; inset: 8% 10% auto 10%; pointer-events: none;
}
.hero-scan svg { width: 100%; height: auto; opacity: .85; }
.hero-float {
  position: absolute; background: var(--df-card); color: var(--df-ink);
  border-radius: 16px; padding: .75rem 1rem; box-shadow: var(--df-shadow);
  font-size: .82rem; line-height: 1.35;
}
.hero-float strong { display: block; font-size: .95rem; }
.hero-float-a { left: -12px; top: 18px; }
.hero-float-b { right: -8px; bottom: 28px; }
.tooth-tilt { transform-origin: 50% 58%; animation: dfTooth 10s var(--df-ease) infinite; }
.scan-dots circle { fill: var(--df-pink); opacity: .55; animation: dfDot 3.2s ease-in-out infinite; }
.scan-dots circle:nth-child(2) { animation-delay: .4s; }
.scan-dots circle:nth-child(3) { animation-delay: .8s; }
.scan-dots circle:nth-child(4) { animation-delay: 1.2s; }
@keyframes dfTooth { 0%,100% { transform: rotate(-3deg); } 50% { transform: rotate(4deg); } }
@keyframes dfDot { 0%,100% { opacity: .25; } 50% { opacity: .9; } }

/* Trust strip */
.trust-strip { padding: 0 0 8px; }
.trust-row {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 0; border-block: 1px solid var(--df-line);
}
.trust-item {
  padding: 22px 16px; text-align: center;
  border-right: 1px solid var(--df-line);
}
.trust-item:last-child { border-right: 0; }
.trust-item b { display: block; font-size: 1.35rem; letter-spacing: -.03em; }
.trust-item span { color: var(--df-muted); font-size: .86rem; }

/* Intent */
.intent-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.intent {
  display: flex; flex-direction: column; justify-content: space-between; gap: 18px;
  min-height: 220px; padding: 22px 20px; border-radius: 22px;
  background: var(--df-card); color: inherit; text-decoration: none;
  box-shadow: var(--df-shadow-sm);
  transition: transform var(--df-card-ms) var(--df-ease), box-shadow var(--df-card-ms) var(--df-ease);
}
.intent:hover { text-decoration: none; transform: translateY(-4px) scale(1.015); box-shadow: var(--df-shadow); color: inherit; }
.intent .ico { width: 42px; height: 42px; color: var(--df-pink); }
.intent h3 { margin: 0 0 .3em; font-size: 1.15rem; }
.intent p { margin: 0; color: var(--df-muted); font-size: .9rem; }
.intent .go { font-weight: 800; font-size: .86rem; color: var(--df-pink); }
.intent .go span { display: inline-block; transition: transform var(--df-micro) var(--df-ease); }
.intent:hover .go span { transform: translateX(5px); }
.intent .more { max-height: 0; overflow: hidden; opacity: 0; transition: max-height var(--df-card-ms) var(--df-ease), opacity var(--df-card-ms) var(--df-ease); color: var(--df-muted); font-size: .82rem; }
.intent:hover .more, .intent:focus-visible .more { max-height: 48px; opacity: 1; }

/* Treatment explorer */
.tx-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.tx-tab {
  border: 0; background: var(--df-mist); color: var(--df-ink-2);
  padding: .45rem 1rem; border-radius: 999px; font: 800 .75rem/1 var(--df-font);
  letter-spacing: .08em; text-transform: uppercase; cursor: pointer;
}
.tx-tab[aria-pressed="true"] { background: var(--df-pink); color: #fff; }
.tx-grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr; grid-template-rows: auto auto;
  gap: 14px;
}
.tx {
  position: relative; display: flex; flex-direction: column; justify-content: flex-end;
  min-height: 210px; border-radius: 22px; overflow: hidden; color: inherit; text-decoration: none;
  background: var(--df-card); box-shadow: var(--df-shadow-sm);
}
.tx:hover { text-decoration: none; color: inherit; }
.tx.feat { grid-row: 1 / span 2; min-height: 440px; }
.tx img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform var(--df-card-ms) var(--df-ease); }
.tx:hover img { transform: scale(1.03); }
.tx .shade {
  position: relative; z-index: 1; padding: 18px;
  background: linear-gradient(180deg, transparent, rgba(16,10,16,.72));
  color: #fff;
}
.tx.plain .shade { background: transparent; color: var(--df-ink); padding: 20px; }
.tx.plain { justify-content: space-between; }
.tx .cat { font-size: .68rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; opacity: .8; }
.tx h3 { margin: .2em 0 .25em; font-size: 1.2rem; }
.tx p { margin: 0; font-size: .88rem; opacity: .9; }
.tx .arr { display: inline-block; transition: transform var(--df-micro) var(--df-ease); }
.tx:hover .arr { transform: translateX(5px); }
.tx[hidden] { display: none !important; }

/* Smile explorer */
.smile {
  display: grid; grid-template-columns: .9fr 1.1fr; gap: 32px; align-items: center;
}
.smile-vis {
  background: var(--df-card); border-radius: 28px; padding: 24px;
  box-shadow: var(--df-shadow-sm);
}
.smile-vis svg { width: 100%; height: auto; }
.smile-opts { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0; }
.smile-opts button {
  border: 0; background: var(--df-mist); color: var(--df-ink);
  padding: .55rem .95rem; border-radius: 999px; font: 700 .86rem var(--df-font); cursor: pointer;
}
.smile-opts button[aria-pressed="true"] { background: var(--df-pink); color: #fff; }
.smile-out { min-height: 120px; }
.smile-out a { display: inline-flex; margin: .25rem .35rem 0 0; }

/* Featured story */
.story {
  display: grid; grid-template-columns: 1.15fr .85fr; min-height: 520px;
}
.story-media { position: relative; overflow: hidden; }
.story-media img { width: 100%; height: 100%; object-fit: cover; min-height: 420px; }
.wire {
  position: absolute; left: 10%; right: 10%; top: 46%; height: 2px;
  background: linear-gradient(90deg, transparent, #fff, transparent);
  animation: dfWire 7s linear infinite;
}
@keyframes dfWire { from { transform: scaleX(.2); opacity: .2; } 50% { transform: scaleX(1); opacity: .8; } to { transform: scaleX(.2); opacity: .2; } }
.story-copy { padding: 56px 40px; display: flex; flex-direction: column; justify-content: center; }

/* Branch finder */
.finder { display: grid; grid-template-columns: 1.1fr .9fr; gap: 28px; align-items: stretch; }
.finder-visual { position: relative; border-radius: 24px; overflow: hidden; min-height: 380px; }
.finder-visual img { width: 100%; height: 100%; object-fit: cover; transition: opacity 280ms var(--df-ease); }
.finder-list { display: grid; gap: 10px; }
.finder-btn {
  text-align: left; width: 100%; border: 0; background: var(--df-card);
  border-radius: 16px; padding: 16px 18px; cursor: pointer;
  box-shadow: var(--df-shadow-sm); color: var(--df-ink); font-family: var(--df-font);
  transition: transform var(--df-micro) var(--df-ease);
}
.finder-btn[aria-pressed="true"] { box-shadow: 0 0 0 2px var(--df-pink); }
.finder-btn strong { display: block; font-size: 1.05rem; }
.finder-btn small { color: var(--df-muted); }
.branch-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 28px; }
.bcard {
  display: flex; flex-direction: column; color: inherit; text-decoration: none;
  border-radius: 22px; overflow: hidden; background: var(--df-card);
  box-shadow: var(--df-shadow-sm);
  transition: transform var(--df-card-ms) var(--df-ease);
}
.bcard:hover { text-decoration: none; color: inherit; transform: translateY(-4px); }
.bcard .ph { overflow: hidden; height: 180px; }
.bcard img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--df-card-ms) var(--df-ease); }
.bcard:hover img { transform: scale(1.02) translateY(-4px); }
.bcard .bd { padding: 16px 18px 18px; display: grid; gap: .35rem; }
.bcard .st { font-size: .75rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--df-ok); }
.bcard .st.is-closed { color: var(--df-muted); }
.pin { width: 10px; height: 10px; border-radius: 50%; background: var(--df-pink); display: inline-block; margin-right: 6px; }
.bcard.is-on { box-shadow: 0 0 0 2px var(--df-pink); }
.bcard:hover .pin { animation: dfPin .9s var(--df-ease) 1; }
@keyframes dfPin { 0% { transform: scale(1); } 50% { transform: scale(1.45); } 100% { transform: scale(1); } }

.branch-mosaic {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.bmosaic {
  position: relative; display: block; overflow: hidden; border-radius: 18px;
  color: #fff; text-decoration: none; min-height: 200px; background: #1a1020;
}
.bmosaic img { width: 100%; height: 220px; object-fit: cover; display: block; transition: transform var(--df-card-ms) var(--df-ease); }
.bmosaic:hover { text-decoration: none; color: #fff; }
.bmosaic:hover img { transform: scale(1.03); }
.bmosaic span {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 14px 14px 12px;
  background: linear-gradient(180deg, transparent, rgba(16,10,16,.78));
}
.bmosaic strong { display: block; font-size: 1rem; }
.bmosaic small { opacity: .9; font-size: .8rem; }
.doc-grid {
  display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 16px;
}
.doc-tile { color: inherit; text-decoration: none; }
.doc-tile:hover { text-decoration: none; color: inherit; }
.doc-tile img {
  width: 100%; aspect-ratio: 3/4; object-fit: cover; object-position: top; border-radius: 18px;
}
.doc-tile strong { display: block; margin-top: .55rem; }
.doc-tile span { color: var(--df-muted); font-size: .85rem; }
.why-simple { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.why-simple h3 { margin: 0 0 .3em; font-size: 1.05rem; }
.why-simple p { margin: 0; color: var(--df-muted); }
.gallery figcaption { display: block; padding: 8px 2px 0; font-size: .82rem; color: var(--df-muted); }
@media (max-width: 1024px) {
  .branch-mosaic, .doc-grid, .why-simple { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .branch-mosaic, .doc-grid, .why-simple { grid-template-columns: 1fr; }
}

/* Gallery */
.gallery { columns: 3; column-gap: 12px; }
.gallery figure { margin: 0 0 12px; break-inside: avoid; overflow: hidden; border-radius: 16px; }
.gallery img { width: 100%; display: block; filter: saturate(1.02); }
.gallery figcaption { display: none; }

/* Dentists */
.doc-feat {
  display: grid; grid-template-columns: .7fr 1.3fr; gap: 28px; align-items: center;
  margin-bottom: 22px;
}
.doc-feat img {
  width: 100%; aspect-ratio: 3/4; object-fit: cover; object-position: top;
  border-radius: 24px;
}
.doc-row { display: flex; gap: 14px; overflow-x: auto; padding-bottom: 8px; scroll-snap-type: x mandatory; }
.doc-mini {
  flex: 0 0 200px; scroll-snap-align: start; color: inherit; text-decoration: none;
}
.doc-mini:hover { text-decoration: none; color: inherit; }
.doc-mini img {
  width: 100%; height: 240px; object-fit: cover; object-position: top; border-radius: 18px;
}
.doc-mini strong { display: block; margin-top: .55rem; }
.doc-mini span { color: var(--df-muted); font-size: .82rem; }

/* Human care */
.care { display: grid; grid-template-columns: 1.2fr .8fr; min-height: 480px; }
.care-photo { position: relative; overflow: hidden; }
.care-photo img { width: 100%; height: 100%; object-fit: cover; min-height: 400px; }
.care-copy { padding: 48px 36px; display: flex; flex-direction: column; justify-content: center; }
.care-copy li { margin: .55rem 0; font-weight: 600; }

/* Why orbit */
.why-orbit {
  display: grid; grid-template-columns: 1fr 180px 1fr; grid-template-rows: 1fr 1fr;
  gap: 16px; align-items: center; max-width: 920px; margin: 0 auto;
}
.why-core {
  grid-column: 2; grid-row: 1 / span 2;
  width: 180px; height: 180px; border-radius: 50%;
  background: var(--df-tint); color: var(--df-pink);
  display: grid; place-items: center; margin: 0 auto;
}
.why-item h3 { margin: 0 0 .25em; font-size: 1.05rem; }
.why-item p { margin: 0; color: var(--df-muted); font-size: .9rem; }

/* Testimonials */
.testi-hero { display: grid; grid-template-columns: 1.2fr .8fr; gap: 36px; align-items: center; }
.testi-quote { font-family: var(--df-serif); font-size: clamp(1.4rem, 2.6vw, 2rem); line-height: 1.35; }
.testi-quote::before { content: "“"; color: var(--df-pink); font-size: 1.4em; }
.testi-who { display: flex; align-items: center; gap: 12px; margin-top: 18px; }
.testi-who img { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; }
.testi-rail { display: grid; gap: 10px; }
.testi-rail button {
  text-align: left; border: 0; background: transparent; color: var(--df-muted);
  font: 600 .9rem var(--df-font); cursor: pointer; padding: .4rem 0;
}
.testi-rail button[aria-pressed="true"] { color: var(--df-ink); }

/* Journal */
.jgrid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 22px; }
.jfeat { color: inherit; text-decoration: none; display: block; }
.jfeat:hover { text-decoration: none; color: inherit; }
.jfeat img { width: 100%; height: 280px; object-fit: cover; border-radius: 20px; transition: transform var(--df-card-ms) var(--df-ease); }
.jfeat:hover img { transform: scale(1.02); }
.jfeat .cat, .jrow .cat { font-size: .7rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--df-pink); }
.jrow { display: grid; gap: 14px; }
.jitem { color: inherit; text-decoration: none; padding-bottom: 12px; border-bottom: 1px solid var(--df-line); }
.jitem:hover { text-decoration: none; color: inherit; }
.jitem h3 { margin: .15em 0; font-size: 1.02rem; }

/* AI intro */
.ai-band {
  display: grid; grid-template-columns: auto 1fr auto; gap: 18px; align-items: center;
  padding: 22px 24px; border-radius: 20px; background: var(--df-soft);
}
.ai-band button { justify-self: end; }

/* Appointment */
.appt-cta { padding: 88px 0; }
.appt-steps-vis { display: flex; gap: 18px; justify-content: center; margin: 28px 0; flex-wrap: wrap; }
.appt-step {
  min-width: 160px; padding: 16px; border-radius: 16px; background: rgba(255,255,255,.08);
  text-align: center;
}
.cal-line { height: 2px; background: linear-gradient(90deg, transparent, #fff, transparent); width: 48px; align-self: center; animation: dfWire 6s linear infinite; }

/* Footer */
.df-site .site-footer { background: var(--df-deep); margin-top: 0; }
.df-site .footer-grid { grid-template-columns: 1.2fr 1fr 1fr 1fr; }
.df-site .footer-build { max-width: 640px; font-size: .78rem; opacity: .6; }
.ainna-tech-drawer { padding: 0 24px 28px; }
.ainna-tech-drawer > button {
  border: 1px solid rgba(255,255,255,.14); background: transparent; color: #cfc4e8;
  padding: .55rem 1rem; border-radius: 999px; font: 700 .78rem var(--df-font); cursor: pointer;
}
body.df-site:not(.ainna-net-open) #cyber-network-root,
body.df-site:not(.ainna-net-open) .cyber-globe-wrapper { display: none !important; }

/* Assistant */
.df-site .ai-assist { bottom: 22px; }
.df-site .ai-assist-fab {
  width: 54px; height: 54px; background: var(--df-deep); box-shadow: var(--df-shadow);
}
.df-site .ai-assist-head { background: var(--df-deep); }
.ai-quick { display: flex; flex-wrap: wrap; gap: 6px; padding: .6rem 1.1rem 0; }
.ai-quick button {
  border: 1px solid var(--df-line); background: var(--df-soft); color: var(--df-ink);
  border-radius: 999px; padding: .3rem .65rem; font: 700 .74rem var(--df-font); cursor: pointer;
}

/* Mobile bar */
.df-site .mobar {
  grid-template-columns: repeat(3, 1fr);
  padding-bottom: env(safe-area-inset-bottom);
  box-shadow: 0 -10px 24px -18px rgba(20,10,16,.35);
}
.df-site .mobar a { border: 0; padding: .85rem .3rem calc(.55rem + env(safe-area-inset-bottom)); }
@media (max-width: 960px) {
  .df-site .ai-assist { bottom: 78px; }
}

/* Treatments index */
.tx-search { max-width: 420px; display: flex; gap: .5rem; margin-top: 1.1rem; }
.tx-search input {
  flex: 1; padding: .75rem 1rem; border-radius: 999px; border: 1px solid var(--df-line);
  background: var(--df-card); color: var(--df-ink); font-family: var(--df-font);
}

/* Card family overrides — less chrome */
.df-site .card {
  border: 0; box-shadow: var(--df-shadow-sm);
}
.df-site .card:hover { border-color: transparent; }

@media (max-width: 1024px) {
  .hero-v2, .smile, .story, .finder, .care, .testi-hero, .jgrid, .doc-feat { grid-template-columns: 1fr; }
  .tx-grid { grid-template-columns: 1fr 1fr; }
  .tx.feat { grid-row: auto; min-height: 280px; }
  .intent-grid, .branch-cards { grid-template-columns: 1fr 1fr; }
  .gallery { columns: 2; }
  .why-orbit { grid-template-columns: 1fr 1fr; }
  .why-core { grid-column: 1 / -1; grid-row: auto; }
}
@media (max-width: 720px) {
  .trust-row { grid-template-columns: 1fr 1fr; }
  .trust-item:nth-child(odd) { border-right: 1px solid var(--df-line); }
  .intent-grid, .branch-cards, .tx-grid { grid-template-columns: 1fr; }
  .gallery { columns: 1; }
  .hero-float-a { left: 8px; }
  .hero-float-b { right: 8px; }
  .sec { padding: 64px 0; }
  .ai-band { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .tooth-tilt, .scan-dots circle, .wire, .cal-line, .hero-line path { animation: none !important; }
}
html[data-anim="off"] .tooth-tilt,
html[data-anim="off"] .scan-dots circle,
html[data-anim="off"] .wire,
html[data-anim="off"] .cal-line { animation: none !important; }

.treat-gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.treat-gallery .note { grid-column: 1 / -1; }
.ex-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 12px 0 28px; }
.ex-pair { margin: 0; }
.ex-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.ex-cols img { width: 100%; height: 160px; object-fit: cover; border-radius: 12px; background: var(--df-mist); }
.ex-cols span { display:block; font-size:.72rem; font-weight:800; letter-spacing:.08em; text-transform:uppercase; color:var(--df-muted); margin-top:4px; }
.ex-pair figcaption { font-size:.82rem; color:var(--df-muted); margin-top:6px; }
@media (max-width: 720px) {
  .treat-gallery, .ex-grid { grid-template-columns: 1fr; }
}
