/* DentalChat concept redesign. Sample for client review. */

:root {
  --ink: #10142e;
  --ink-soft: #4b5170;
  --ink-faint: #7d82a0;
  --brand: #2e3192;
  --action: #2f4fd8;
  --action-deep: #2440b4;
  --sun: #ffd83d;
  --mint: #14996b;
  --bg: #ffffff;
  --bg-cool: #f5f7fc;
  --line: #e4e8f4;
  --radius-lg: 28px;
  --radius-md: 18px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --font: "Outfit", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; }
button { font-family: inherit; cursor: pointer; }

.wrap { max-width: 1180px; margin: 0 auto; padding: 0 24px; }

h1, h2, h3 { letter-spacing: -0.03em; line-height: 1.08; font-weight: 700; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 0.83rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--brand);
  background: #eef1fb;
  border: 1px solid #dde3f8;
  border-radius: 999px;
  padding: 7px 15px;
}

.dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--mint);
  position: relative;
}
.dot::after {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid var(--mint);
  opacity: 0;
  animation: ping 2.2s var(--ease) infinite;
}
@keyframes ping {
  0% { transform: scale(0.4); opacity: 0.8; }
  70%, 100% { transform: scale(1.15); opacity: 0; }
}

/* ---------- nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  display: flex;
  align-items: center;
  gap: 32px;
  padding: 14px 24px;
  max-width: 1180px;
  margin: 0 auto;
}
.nav-logo img { height: 44px; width: auto; }
.nav-links {
  display: flex;
  gap: 26px;
  margin-left: auto;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--ink-soft);
}
.nav-links a { text-decoration: none; transition: color 0.25s var(--ease); }
.nav-links a:hover { color: var(--ink); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border: none;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  padding: 13px 26px;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s var(--ease);
}
.btn:active { transform: scale(0.98); }
.btn-primary {
  background: var(--action);
  color: #fff;
  box-shadow: 0 12px 28px -12px rgba(47, 79, 216, 0.55);
}
.btn-primary:hover { background: var(--action-deep); transform: translateY(-1px); }
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1.5px solid #d6dcf0;
}
.btn-ghost:hover { border-color: var(--action); color: var(--action); }
.btn-sun {
  background: var(--sun);
  color: var(--ink);
  box-shadow: 0 12px 28px -14px rgba(255, 216, 61, 0.8);
}
.btn-sun:hover { transform: translateY(-1px); }
.nav .btn { padding: 10px 20px; font-size: 0.88rem; }

/* ---------- hero ---------- */
.hero { overflow: hidden; background:
  radial-gradient(1100px 520px at 85% -10%, #e8edfd 0%, rgba(232, 237, 253, 0) 60%),
  var(--bg);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 56px;
  align-items: center;
  padding: 72px 0 84px;
}
.hero h1 {
  font-size: clamp(2.3rem, 4.6vw, 3.6rem);
  margin: 22px 0 18px;
}
.hero h1 .hl {
  position: relative;
  white-space: nowrap;
  isolation: isolate;
}
.hero h1 .hl::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0.06em;
  height: 0.32em;
  background: var(--sun);
  opacity: 0.55;
  z-index: -1;
  border-radius: 3px;
}
.hero .lede {
  font-size: 1.13rem;
  color: var(--ink-soft);
  max-width: 34rem;
  margin-bottom: 30px;
}
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.hero .btn-primary { padding: 16px 32px; font-size: 1.02rem; }

.trust-strip {
  display: flex;
  gap: 26px;
  flex-wrap: wrap;
  margin-top: 34px;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--ink-soft);
}
.trust-strip span { display: inline-flex; align-items: center; gap: 8px; }
.trust-strip svg { width: 17px; height: 17px; color: var(--brand); flex: none; }

/* ---------- chat widget ---------- */
.chat {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: 0 30px 60px -30px rgba(16, 20, 46, 0.25);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  max-width: 430px;
  width: 100%;
  justify-self: end;
}
.chat-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 18px;
  background: var(--brand);
  color: #fff;
}
.chat-avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: #fff;
  display: grid;
  place-items: center;
  flex: none;
}
.chat-avatar svg { width: 22px; height: 22px; color: var(--brand); }
.chat-head-name { font-weight: 600; font-size: 0.98rem; line-height: 1.2; }
.chat-head-status {
  font-size: 0.76rem;
  color: #c3d0ff;
  display: flex;
  align-items: center;
  gap: 6px;
}
.chat-head-status .dot { width: 7px; height: 7px; background: #57e0a2; }
.chat-head-status .dot::after { border-color: #57e0a2; }

.chat-body {
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 330px;
  max-height: 430px;
  overflow-y: auto;
  background: var(--bg-cool);
}
.msg {
  max-width: 85%;
  padding: 11px 15px;
  border-radius: 16px;
  font-size: 0.92rem;
  line-height: 1.5;
  animation: msg-in 0.45s var(--ease) both;
}
@keyframes msg-in {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}
.msg-bot {
  background: #fff;
  border: 1px solid var(--line);
  border-bottom-left-radius: 5px;
  align-self: flex-start;
}
.msg-user {
  background: var(--action);
  color: #fff;
  border-bottom-right-radius: 5px;
  align-self: flex-end;
}
.typing {
  display: inline-flex;
  gap: 5px;
  padding: 14px 16px;
}
.typing i {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #a6acd0;
  animation: bounce 1.1s infinite;
}
.typing i:nth-child(2) { animation-delay: 0.15s; }
.typing i:nth-child(3) { animation-delay: 0.3s; }
@keyframes bounce {
  0%, 60%, 100% { transform: translateY(0); }
  30% { transform: translateY(-5px); }
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  animation: msg-in 0.45s var(--ease) both;
}
.chip {
  background: #fff;
  border: 1.5px solid #ccd5f2;
  color: var(--action-deep);
  font-size: 0.83rem;
  font-weight: 500;
  border-radius: 999px;
  padding: 8px 14px;
  transition: all 0.22s var(--ease);
}
.chip:hover { border-color: var(--action); background: #eef1fd; }
.chip:active { transform: scale(0.97); }

.book-card {
  align-self: flex-start;
  background: var(--ink);
  color: #fff;
  border-radius: var(--radius-md);
  padding: 17px 18px;
  max-width: 92%;
  animation: msg-in 0.5s var(--ease) both;
}
.book-card h4 { font-size: 0.98rem; letter-spacing: -0.01em; margin-bottom: 5px; }
.book-card p { font-size: 0.83rem; color: #b9bfdd; margin-bottom: 13px; }
.book-card .price { color: var(--sun); font-weight: 700; }
.book-card .btn { width: 100%; padding: 12px 18px; font-size: 0.9rem; }
.book-card .book-alt {
  display: block;
  width: 100%;
  background: none;
  border: none;
  color: #b9bfdd;
  font-size: 0.79rem;
  text-decoration: underline;
  text-underline-offset: 3px;
  margin-top: 10px;
}
.book-card .book-alt:hover { color: #fff; }
.book-confirm { display: flex; gap: 10px; align-items: flex-start; }
.book-confirm svg { width: 22px; height: 22px; color: #57e0a2; flex: none; margin-top: 2px; }
.book-confirm p { margin: 0; color: #dfe3f7; font-size: 0.86rem; }

.chat-foot {
  display: flex;
  gap: 10px;
  padding: 13px 14px;
  border-top: 1px solid var(--line);
  background: #fff;
}
.chat-foot input {
  flex: 1;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  padding: 11px 18px;
  font-family: inherit;
  font-size: 0.9rem;
  outline: none;
  transition: border-color 0.2s var(--ease);
}
.chat-foot input:focus { border-color: var(--action); }
.chat-send {
  width: 44px; height: 44px;
  border-radius: 50%;
  border: none;
  background: var(--action);
  color: #fff;
  display: grid;
  place-items: center;
  flex: none;
  transition: background 0.2s var(--ease), transform 0.2s var(--ease);
}
.chat-send:hover { background: var(--action-deep); }
.chat-send:active { transform: scale(0.94); }
.chat-send svg { width: 18px; height: 18px; }

/* ---------- sections ---------- */
section { padding: 88px 0; }
.sec-label {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--action);
  margin-bottom: 14px;
}
.sec-title {
  font-size: clamp(1.7rem, 3.2vw, 2.5rem);
  max-width: 24ch;
  margin-bottom: 16px;
}
.sec-sub { color: var(--ink-soft); max-width: 56ch; font-size: 1.05rem; }

/* how it works */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 44px;
  margin-top: 56px;
}
.step { border-top: 3px solid var(--line); padding-top: 22px; position: relative; }
.step::before {
  content: "";
  position: absolute;
  top: -3px; left: 0;
  width: 52px; height: 3px;
  background: var(--sun);
}
.step-num {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--ink-faint);
  letter-spacing: 0.1em;
}
.step h3 { font-size: 1.22rem; margin: 8px 0 8px; }
.step p { color: var(--ink-soft); font-size: 0.95rem; }

/* concerns grid */
.concerns { background: var(--bg-cool); }
.concern-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  grid-template-rows: auto auto;
  gap: 18px;
  margin-top: 52px;
}
.concern {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 26px;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
}
.concern:hover {
  transform: translateY(-4px);
  border-color: #c8d2f2;
  box-shadow: 0 22px 40px -24px rgba(16, 20, 46, 0.28);
}
.concern:active { transform: translateY(-1px) scale(0.995); }
.concern.featured {
  grid-row: span 2;
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
  justify-content: flex-end;
  min-height: 320px;
}
.concern.featured .concern-q { color: #c3d0ff; }
.concern.featured .concern-cta { color: var(--sun); }
.concern.wide {
  grid-column: 1 / -1;
  flex-direction: row;
  align-items: center;
  gap: 22px;
}
.concern.wide .concern-icon { margin-bottom: 0; flex: none; }
.concern.wide h3 { flex: none; min-width: 170px; }
.concern.wide .concern-q { flex: 1; }
.concern.wide .concern-cta { margin-top: 0; flex: none; }
.concern-icon {
  width: 42px; height: 42px;
  border-radius: 12px;
  background: #eef1fb;
  color: var(--brand);
  display: grid;
  place-items: center;
  margin-bottom: 8px;
}
.concern-icon svg { width: 22px; height: 22px; }
.concern.featured .concern-icon { background: rgba(255, 255, 255, 0.12); color: var(--sun); }
.concern h3 { font-size: 1.15rem; }
.concern.featured h3 { font-size: 1.55rem; }
.concern-q { font-size: 0.9rem; color: var(--ink-soft); flex: 1; }
.concern-cta {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--action);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 6px;
}
.concern-cta svg { width: 15px; height: 15px; transition: transform 0.25s var(--ease); }
.concern:hover .concern-cta svg { transform: translateX(4px); }

/* testimonials */
.social-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 48px;
  align-items: start;
  margin-top: 52px;
}
.quotes { display: grid; gap: 16px; }
.quote {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 24px 26px;
}
.quote .stars { color: #f5b90f; display: flex; gap: 2px; margin-bottom: 10px; }
.quote .stars svg { width: 15px; height: 15px; }
.quote p { font-size: 0.98rem; }
.quote footer { margin-top: 10px; font-size: 0.83rem; font-weight: 600; color: var(--ink-faint); }
.quote.wide { grid-column: span 1; }

.proof-cta {
  position: sticky;
  top: 96px;
  background: var(--ink);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 36px 32px;
}
.proof-cta h3 { font-size: 1.5rem; margin-bottom: 10px; }
.proof-cta > p { color: #b9bfdd; font-size: 0.95rem; margin-bottom: 22px; }
.proof-cta ul { list-style: none; display: grid; gap: 10px; margin-bottom: 26px; }
.proof-cta li {
  display: flex;
  gap: 10px;
  align-items: center;
  font-size: 0.9rem;
  color: #dfe3f7;
}
.proof-cta li svg { width: 17px; height: 17px; color: var(--sun); flex: none; }
.proof-cta .btn { width: 100%; }

/* dentist band */
.dentists { background: var(--brand); color: #fff; }
.dentist-grid {
  display: grid;
  grid-template-columns: 1fr 0.9fr;
  gap: 56px;
  align-items: center;
}
.dentists .sec-label { color: var(--sun); }
.dentists .sec-sub { color: #c3d0ff; }
.dentist-points { list-style: none; display: grid; gap: 18px; margin: 30px 0 34px; }
.dentist-points li { display: flex; gap: 14px; align-items: flex-start; }
.dentist-points svg { width: 22px; height: 22px; color: var(--sun); flex: none; margin-top: 3px; }
.dentist-points strong { display: block; font-size: 1.02rem; letter-spacing: -0.01em; }
.dentist-points span { font-size: 0.9rem; color: #c3d0ff; }
.dentist-photo {
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4 / 4.6;
  box-shadow: 0 34px 70px -30px rgba(0, 0, 0, 0.5);
}
.dentist-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 0%; }

/* app band */
.app-band { padding: 72px 0; }
.app-inner {
  background: var(--bg-cool);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 52px 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}
.app-inner h2 { font-size: 1.7rem; margin-bottom: 8px; }
.app-inner p { color: var(--ink-soft); max-width: 40ch; }
.store-badges { display: flex; gap: 14px; align-items: center; }
.store-badges img { height: 52px; width: auto; border-radius: 9px; transition: transform 0.25s var(--ease); }
.store-badges a:hover img { transform: translateY(-3px); }

/* footer */
footer.site {
  border-top: 1px solid var(--line);
  padding: 42px 0 48px;
  font-size: 0.85rem;
  color: var(--ink-faint);
}
.foot-grid {
  display: flex;
  justify-content: space-between;
  gap: 28px;
  flex-wrap: wrap;
  align-items: center;
}
.foot-grid img { height: 38px; width: auto; }
.foot-links { display: flex; gap: 22px; }
.foot-links a { text-decoration: none; }
.foot-links a:hover { color: var(--ink); }
.foot-note { margin-top: 22px; font-size: 0.78rem; max-width: 70ch; }

/* floating chat button */
.fab {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 50;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--action);
  color: #fff;
  border: none;
  border-radius: 999px;
  padding: 14px 22px;
  font-size: 0.92rem;
  font-weight: 600;
  box-shadow: 0 18px 40px -12px rgba(47, 79, 216, 0.6);
  opacity: 0;
  transform: translateY(16px);
  pointer-events: none;
  transition: opacity 0.35s var(--ease), transform 0.35s var(--ease), background 0.2s var(--ease);
}
.fab.show { opacity: 1; transform: translateY(0); pointer-events: auto; }
.fab:hover { background: var(--action-deep); }
.fab svg { width: 19px; height: 19px; }

/* reveal on scroll */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.in { opacity: 1; transform: translateY(0); }
.reveal-stagger > * { opacity: 0; transform: translateY(26px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal-stagger.in > * { opacity: 1; transform: translateY(0); }
.reveal-stagger.in > *:nth-child(2) { transition-delay: 0.09s; }
.reveal-stagger.in > *:nth-child(3) { transition-delay: 0.18s; }
.reveal-stagger.in > *:nth-child(4) { transition-delay: 0.27s; }
.reveal-stagger.in > *:nth-child(5) { transition-delay: 0.36s; }
.reveal-stagger.in > *:nth-child(6) { transition-delay: 0.45s; }

:focus-visible { outline: 3px solid var(--action); outline-offset: 2px; border-radius: 4px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal, .reveal-stagger > * { opacity: 1; transform: none; }
}

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; gap: 44px; padding: 48px 0 64px; }
  .chat { justify-self: stretch; max-width: 560px; margin: 0 auto; }
  .steps { grid-template-columns: 1fr; gap: 30px; }
  .concern-grid { grid-template-columns: 1fr 1fr; }
  .concern.featured { grid-row: span 1; min-height: 220px; }
  .social-grid { grid-template-columns: 1fr; }
  .proof-cta { position: static; }
  .dentist-grid { grid-template-columns: 1fr; }
  .dentist-photo { max-width: 460px; }
  .nav-links { display: none; }
}
@media (max-width: 600px) {
  section { padding: 60px 0; }
  .concern-grid { grid-template-columns: 1fr; }
  .concern.wide { flex-direction: column; align-items: flex-start; gap: 8px; }
  .concern.wide h3 { min-width: 0; }
  .app-inner { padding: 36px 26px; }
  .hero .btn-primary { width: 100%; }
  .hero-ctas .btn-ghost { width: 100%; }
}
