/* Smile Bot page (/smile-bot/). Loaded only on that page, after styles.css. */

.sb-sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.sb-eyebrow { color: var(--blue-600); letter-spacing: .18em; opacity: 1; }
.band--dark .sb-eyebrow { color: var(--cyan-400); }
.sb-head { max-width: 760px; margin-bottom: clamp(32px, 4vw, 52px); }
.sb-head--center { margin-inline: auto; text-align: center; }
.sb-head .h2, .sb-what .h2 { font-size: clamp(2rem, 1.35rem + 1.9vw, 2.9rem); }
.sb-head__lead { margin-top: 18px; font-size: 1.125rem; color: var(--c-text); }

/* Hero ------------------------------------------------------------------ */
.sb-hero { min-height: 0; padding-top: calc(var(--header-h) + clamp(18px, 2.4vw, 32px)); padding-bottom: clamp(56px, 6vw, 88px); }
.sb-hero__wave { position: absolute; inset: auto 0 0; z-index: -1; width: 100%; height: 75%; fill: none; stroke: rgba(59, 123, 255, .32); stroke-width: 1.5; pointer-events: none; }
.sb-crumbs ol { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 clamp(22px, 3vw, 36px); padding: 0; list-style: none; font-size: .875rem; color: rgba(255, 255, 255, .72); }
.sb-crumbs li + li::before { content: "/"; margin-right: 6px; color: rgba(255, 255, 255, .42); }
.sb-crumbs a { color: #fff; text-decoration: none; }
.sb-crumbs a:hover { color: var(--cyan-400); text-decoration: underline; text-underline-offset: 3px; }
.sb-hero__grid { grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); }
.sb-pill { display: inline-flex; margin: 0 0 22px; padding: 8px 16px; border-radius: 999px; background: var(--blue-600); color: #fff; font-size: .75rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; box-shadow: 0 0 32px rgba(29, 99, 255, .55); }
.sb-hero .hero__title { font-size: clamp(2.5rem, 1.35rem + 3vw, 4rem); }
.sb-hero .hero__actions { margin-top: 30px; }
.sb-hero__note { margin-top: 22px; font-size: .9375rem; color: rgba(255, 255, 255, .72); }

/* Chat preview */
.sb-chat { width: 100%; max-width: 470px; margin: 0; justify-self: end; }
.sb-chat__window { overflow: hidden; border-radius: 18px; background: #fff; color: var(--ink-900); box-shadow: 0 30px 80px -24px rgba(0, 0, 0, .65), 0 0 0 1px rgba(255, 255, 255, .55), 0 0 70px -12px rgba(29, 99, 255, .6); }
.sb-chat__bar { display: flex; align-items: center; gap: 12px; padding: 14px 20px; background: var(--navy-900); }
.sb-chat__logo { flex: none; width: 30px; height: 30px; background: url("../img/brand/logo-mark.svg") center / contain no-repeat; }
.sb-chat__bar strong { color: #fff; font-size: 1.0625rem; font-weight: 800; }
.sb-chat__status { display: inline-flex; align-items: center; gap: 8px; margin-left: auto; font-size: .8125rem; font-weight: 600; color: rgba(255, 255, 255, .86); }
.sb-chat__status::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--cyan-400); box-shadow: 0 0 0 3px rgba(46, 229, 242, .2); }
.sb-chat__body { display: flex; flex-direction: column; gap: 14px; padding: 22px 20px 18px; }
.sb-msg { display: flex; align-items: flex-start; gap: 10px; }
.sb-msg p { max-width: 82%; margin: 0; padding: 10px 14px; border-radius: 14px; font-size: .875rem; line-height: 1.45; }
.sb-msg--bot p { border-top-left-radius: 4px; background: #eef2f8; color: var(--ink-900); }
.sb-msg--user { justify-content: flex-end; }
.sb-msg--user p { border-top-right-radius: 4px; background: var(--blue-600); color: #fff; }
.sb-msg__avatar { flex: none; width: 32px; height: 32px; border-radius: 50%; background: url("../img/brand/logo-mark.svg") center / 20px no-repeat, #eef2f8; }
.sb-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 0 42px; padding: 0; list-style: none; }
.sb-chips li { padding: 6px 12px; border: 1px solid rgba(29, 99, 255, .4); border-radius: 999px; background: #fff; color: var(--blue-600); font-size: .78rem; font-weight: 600; line-height: 1.3; }
.sb-chat__input { display: flex; align-items: center; gap: 10px; margin: 0 16px 16px; padding: 6px 6px 6px 16px; border: 1px solid rgba(8, 20, 47, .12); border-radius: 999px; background: #f6f8fc; color: var(--ink-500); font-size: .85rem; }
.sb-chat__send { display: grid; place-items: center; width: 36px; height: 36px; margin-left: auto; border-radius: 50%; background: var(--blue-600); color: #fff; }
.sb-chat__send .ico { width: 17px; height: 17px; }
.sb-chat figcaption { margin-top: 14px; text-align: center; font-size: .8125rem; font-style: italic; color: rgba(255, 255, 255, .72); }
@media (prefers-reduced-motion: no-preference) {
  .js .sb-chat__body > * { animation: sb-in .45s var(--ease-out) both; animation-delay: calc(.1s + var(--d, 0) * .22s); }
}
@keyframes sb-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* What is Smile Bot ----------------------------------------------------- */
.sb-what__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.sb-what__copy { padding-right: clamp(0px, 4vw, 64px); border-right: 1px solid var(--c-line-strong); }
.sb-lead { margin-top: 22px; font-size: 1.125rem; }
.sb-what__list { margin: 0; padding: 0; list-style: none; }
.sb-what__list li { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 20px; align-items: start; padding: 22px 0; border-top: 1px solid var(--c-line); }
.sb-what__list li:first-child { padding-top: 0; border-top: 0; }
.sb-what__list li:last-child { padding-bottom: 0; }
.sb-what__icon { color: var(--blue-600); }
.sb-what__icon .ico { width: 48px; height: 48px; stroke-width: 1.5; }
.sb-what__list h3 { margin-bottom: 4px; font-size: 1.25rem; }
.sb-what__list p { margin: 0; font-size: 1rem; }

/* How it works ---------------------------------------------------------- */
.sb-steps { padding-block: clamp(48px, 5vw, 72px); background: #fff; }
.sb-steps__title { margin: 0 0 28px; font-size: .8125rem; font-weight: 800; line-height: 1.4; letter-spacing: .18em; text-transform: uppercase; }
.sb-steps__list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin: 0; padding: 0; list-style: none; }
.sb-steps__list li { display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 16px; align-items: start; }
.sb-steps__num { display: grid; place-items: center; width: 52px; height: 52px; border: 1.5px solid rgba(29, 99, 255, .35); border-radius: 50%; background: #f2f6ff; color: var(--blue-600); font-size: 1.0625rem; font-weight: 800; }
.sb-steps__list h3 { display: flex; align-items: center; gap: 16px; min-height: 52px; font-size: 1.1875rem; }
.sb-steps__list li:not(:last-child) h3::after { content: ""; flex: 1; min-width: 24px; height: 1.5px; margin-right: -12px; background: rgba(29, 99, 255, .3); }
.sb-steps__list p { margin: 2px 0 0; font-size: .9375rem; color: var(--ink-500); }

/* Pricing --------------------------------------------------------------- */
.sb-pricing .sb-head { margin-bottom: clamp(40px, 4.4vw, 56px); }

.sb-plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2vw, 24px); align-items: stretch; }
.sb-plan { position: relative; display: flex; flex-direction: column; padding: clamp(24px, 2.4vw, 32px); border: 1px solid rgba(8, 20, 47, .1); border-radius: 22px; background: #fff; box-shadow: 0 18px 40px -28px rgba(8, 20, 47, .35); }
.sb-plan--featured {
  --c-heading: #fff; --c-text: rgba(255, 255, 255, .84); --c-muted: rgba(255, 255, 255, .66); --c-line: rgba(255, 255, 255, .16);
  --btn-bg: var(--cyan-400); --btn-bg-hover: var(--cyan-300); --btn-fg: var(--navy-900); --focus: var(--cyan-400);
  border: 0; border-top: 4px solid var(--cyan-400); color: var(--c-text);
  background: radial-gradient(80% 60% at 100% 0%, rgba(29, 99, 255, .38), transparent 70%), var(--navy-900);
  box-shadow: 0 30px 60px -30px rgba(5, 14, 41, .8);
}
.sb-plan__name { font-size: 1.6rem; letter-spacing: -.03em; }
/* "Most popular" sits on the top edge of the featured card, as on the reference. */
.sb-plan__badge { position: absolute; top: -2px; left: 50%; z-index: 1; margin: 0; padding: 7px 16px; border-radius: 999px; background: var(--cyan-400); color: var(--navy-900); font-size: .75rem; font-weight: 800; letter-spacing: .14em; line-height: 1.2; text-transform: uppercase; white-space: nowrap; transform: translate(-50%, -50%); box-shadow: 0 6px 20px -6px rgba(46, 229, 242, .7); }
.sb-plan__tagline { min-height: 3em; margin: 10px 0 0; font-size: .9375rem; line-height: 1.5; color: var(--c-muted); }
.sb-plan__price { margin-top: 22px; padding-bottom: 22px; border-bottom: 1px solid var(--c-line); }
.sb-price { display: flex; align-items: baseline; gap: 4px; margin: 0; }
.sb-price__amount { font-size: clamp(2.4rem, 1.8rem + 1.4vw, 3rem); font-weight: 800; line-height: 1; letter-spacing: -.04em; color: var(--blue-600); font-variant-numeric: tabular-nums; }
.sb-plan--featured .sb-price__amount { color: #fff; }
.sb-price__per { font-size: 1rem; font-weight: 600; color: var(--c-muted); }
.sb-plan__plus { margin: 20px 0 0; font-size: .875rem; font-weight: 800; color: var(--c-heading); }
.sb-plan__features { display: grid; gap: 12px; margin: 18px 0 28px; padding: 0; list-style: none; }
.sb-plan__features li { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 12px; align-items: start; font-size: .9375rem; line-height: 1.45; }
.sb-plan__features .ico { width: 22px; height: 22px; margin-top: -1px; color: var(--blue-600); stroke-width: 1.7; }
.sb-plan--featured .sb-plan__features .ico { color: var(--cyan-400); }
.sb-plan .btn { margin-top: auto; }
.sb-plan .btn--secondary { border-color: var(--blue-600); color: var(--blue-600); }
.sb-plan .btn--secondary:hover { background: var(--blue-600); color: #fff; }
.sb-pricing__note { max-width: 640px; margin: 28px auto 0; text-align: center; font-size: .875rem; color: var(--ink-500); }

/* Closing card ---------------------------------------------------------- */
.sb-cta { padding-block: clamp(48px, 6vw, 88px); background: #fff; }
.sb-cta__card {
  --c-heading: #fff; --c-text: rgba(255, 255, 255, .84); --btn-bg: var(--cyan-400); --btn-bg-hover: var(--cyan-300); --btn-fg: var(--navy-900); --focus: var(--cyan-400);
  position: relative; isolation: isolate; overflow: hidden; display: flex; align-items: center; justify-content: space-between; gap: 32px;
  padding: clamp(32px, 4.4vw, 56px) clamp(28px, 4.4vw, 64px); border-radius: 24px; color: var(--c-text);
  background: radial-gradient(60% 120% at 100% 100%, rgba(29, 99, 255, .45), transparent 70%), radial-gradient(40% 80% at 0% 0%, rgba(46, 229, 242, .12), transparent 70%), var(--navy-900);
}
.sb-cta__card::after { content: ""; position: absolute; right: -12%; bottom: -90%; z-index: -1; width: 70%; height: 190%; border: 1px solid rgba(46, 229, 242, .18); border-radius: 50%; pointer-events: none; }
.sb-cta__copy .h2 { font-size: clamp(1.9rem, 1.3rem + 1.8vw, 2.75rem); }
.sb-cta__copy p { margin-top: 14px; font-size: 1.125rem; }
.sb-cta__actions { flex: none; }

/* Responsive ------------------------------------------------------------ */
@media (max-width: 1024px) {
  .sb-hero__grid { grid-template-columns: minmax(0, 1fr); }
  .sb-chat { justify-self: center; }
  .sb-what__grid { grid-template-columns: minmax(0, 1fr); }
  .sb-what__copy { padding: 0 0 32px; border-right: 0; border-bottom: 1px solid var(--c-line-strong); }
}
@media (max-width: 900px) {
  .sb-plans { grid-template-columns: minmax(0, 1fr); row-gap: 36px; max-width: 560px; margin-inline: auto; }
  .sb-plan__tagline { min-height: 0; }
}
@media (max-width: 760px) {
  .sb-steps__list { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .sb-steps__list li:not(:last-child) h3::after { display: none; }
  .sb-cta__card { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 640px) {
  .sb-what__list li { grid-template-columns: 44px minmax(0, 1fr); gap: 16px; }
  .sb-what__icon .ico { width: 40px; height: 40px; }
  .sb-chips { margin-left: 0; }
  .sb-cta__actions, .sb-cta__actions .btn { width: 100%; }
}
