/* drsmiles.ai: the Apple language for every page
   Loaded after brand.css and premium.css on every page (body.px).
   The old stylesheet is token-driven, so most of the change is a palette:
   white and light grey, near-black type, one blue, the system font, big radii.
   Components that need more than a palette get a rule below. */

body.px {
  --ink: #1d1d1f;
  --ink-2: #424245;
  --paper: #ffffff;
  --surface: #ffffff;
  --surface-2: #f5f5f7;
  --surface-lift: #ffffff;
  --teal: #0071e3;
  --teal-deep: #0066cc;
  --teal-hi: #0077ed;
  --teal-soft: #e8f1fc;
  --sand: #f5f5f7;
  --sand-ink: #6e6e73;
  --clay: #d9580a;
  --clay-ink: #a14200;
  --clay-soft: #fff1e6;
  --line: #d2d2d7;
  --line-2: #e8e8ed;
  --line-strong: #c7c7cc;
  --muted: #6e6e73;
  --muted-2: #6e6e73;
  --on-dark: #a1a1a6;
  --on-dark-accent: #2997ff;
  --on-dark-line: #d2d2d7;
  --warn-line: #f3d3b8;
  --band-sand: #f5f5f7;
  --band-mint: #f5f5f7;
  --band-clay: #f5f5f7;
  --hero-wash: none;
  --shadow-btn: none;
  --shadow-lift: 0 1px 2px rgba(0, 0, 0, 0.04), 0 18px 40px -16px rgba(0, 0, 0, 0.14);
  --shadow-1: 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-2: 0 1px 2px rgba(0, 0, 0, 0.04), 0 20px 44px -18px rgba(0, 0, 0, 0.16);
  --shadow-3: 0 2px 6px rgba(0, 0, 0, 0.06), 0 40px 80px -24px rgba(0, 0, 0, 0.3);
  --focus-ring: 0 0 0 4px rgba(0, 113, 227, 0.22);
  --r-sm: 12px;
  --r-md: 18px;
  --r-lg: 28px;
  --maxw: 1240px;
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Inter", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --serif: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Inter", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-family: var(--sans);
  letter-spacing: -0.012em;
  -webkit-font-smoothing: antialiased;
  background: #fff;
  color: var(--ink);
}

/* type */
body.px:not(.px-home) h1, body.px:not(.px-home) h2, body.px:not(.px-home) h3, body.px:not(.px-home) h4 { font-family: var(--sans); font-weight: 600; text-wrap: balance; }
body.px:not(.px-home) h1 { font-size: clamp(2.5rem, 6.2vw, 4.5rem); line-height: 1.05; letter-spacing: -0.035em; }
body.px:not(.px-home) h2 { font-size: clamp(2rem, 4.4vw, 3.25rem); line-height: 1.08; letter-spacing: -0.032em; }
body.px:not(.px-home) h3 { font-size: clamp(1.25rem, 2vw, 1.5rem); letter-spacing: -0.022em; }
.px .lede, .px .hero-sub { font-size: clamp(1.1rem, 1.9vw, 1.4rem); line-height: 1.4; color: var(--ink-2); letter-spacing: -0.016em; }
.px .eyebrow { font-size: 1.0625rem; font-weight: 600; letter-spacing: -0.012em; text-transform: none; color: var(--clay-ink); }
.px .small, .px small { color: var(--muted); }
.px a:not(.btn):not(.nav-cta):not(.px-btn) { text-underline-offset: 3px; }
.px strong, .px b { font-weight: 600; }

/* the bar's page-level links in the body */
.px main a:not(.btn):not(.card):not(.post-card):not(.px-btn):not(.px-link) { color: var(--teal-deep); }

/* buttons */
.px .btn { border-radius: 980px; font-weight: 400; font-size: 1.0625rem; letter-spacing: -0.012em; padding: 12px 24px; box-shadow: none; border-width: 1px; }
.px .btn-lg { padding: 14px 28px; font-size: 1.0625rem; }
.px .btn-primary, .px .btn-clay { background: var(--teal); border-color: var(--teal); color: #fff !important; box-shadow: none; }
.px .btn-primary:hover, .px .btn-clay:hover { background: var(--teal-hi); border-color: var(--teal-hi); }
.px .btn-ghost { background: transparent; color: var(--teal-deep) !important; border-color: var(--teal-deep); }
.px .btn-ghost:hover { background: var(--teal-deep); color: #fff !important; border-color: var(--teal-deep); }
.px .btn:focus-visible { box-shadow: var(--focus-ring); }
.px section.dark .btn-ghost { color: #2997ff !important; border-color: #2997ff; background: transparent; }
.px section.dark .btn-ghost:hover { background: #2997ff; color: #000 !important; }

/* sections */
.px section { padding: clamp(72px, 9vw, 128px) 0; }
.px section.tight { padding: clamp(48px, 6vw, 80px) 0; }
.px section.sand, .px section.mint, .px section.clay { background: #f5f5f7; }
.px section.dark { background: #000; color: #f5f5f7; }
.px section.dark h1, .px section.dark h2, .px section.dark h3 { color: #f5f5f7; }
.px .hero { padding: clamp(64px, 9vw, 120px) 0 clamp(56px, 7vw, 96px); }
.px .hero h1 .hl { color: var(--teal); }
.px .sec-head { max-width: 720px; margin-bottom: clamp(36px, 5vw, 64px); }
.px .sec-head.center { text-align: center; }
.px .strip { background: #f5f5f7; border: 0; }
.px .strip-in b { letter-spacing: -0.03em; }

/* cards: soft grey tiles, no borders */
.px .card, .px .sol-card, .px .post-card, .px .aside-card, .px .upsell-tier, .px .testi, .px .step, .px .sol-panel, .px .hero-box, .px .quote {
  background: #f5f5f7; border: 0; border-radius: 28px; box-shadow: none; color: var(--ink);
}
.px .card:hover, .px a.card:hover, .px .post-card:hover { transform: none; border: 0; background: #ececf0; }
.px section.sand .card, .px section.mint .card, .px section.clay .card, .px section.sand .post-card, .px .card-feature, .px section.sand .sol-card { background: #fff; }
.px .card-feature { box-shadow: var(--shadow-lift); }
.px .hero-box { border-left: 0; border-radius: 18px; }

/* plans */
.px .plan { background: #fff; border: 0; border-radius: 28px; box-shadow: inset 0 0 0 1px var(--line-2); }
.px .plan.pop { box-shadow: 0 0 0 2px var(--teal); }
.px .plan .tag, .px .pill, .px .tag { border-radius: 980px; text-transform: none; letter-spacing: 0; font-weight: 600; background: var(--teal-soft); color: var(--teal-deep); }

/* forms */
.px .form-card { background: #fff; border: 0; border-radius: 28px; box-shadow: var(--shadow-2); }
.px .field label { font-weight: 500; color: var(--ink-2); }
.px .field input, .px .field select, .px .field textarea, .px input[type="text"], .px input[type="email"], .px input[type="url"], .px input[type="tel"], .px textarea, .px select {
  border: 1px solid var(--line); border-radius: 12px; background: #fff; min-height: 48px; font: 400 1rem/1.3 var(--sans); color: var(--ink); letter-spacing: -0.012em;
}
.px .field input:focus, .px .field select:focus, .px .field textarea:focus, .px textarea:focus { outline: none; border-color: var(--teal); box-shadow: var(--focus-ring); }
.px .checkline input { accent-color: var(--teal); }
.px .form-status.ok { color: #1f9d4a; }
.px .form-status.err { color: #d70015; }

/* faq, tables, bands */
.px .faq details { border-bottom: 1px solid var(--line); }
.px .faq summary { font-weight: 600; letter-spacing: -0.022em; }
.px table th, .px .role-table th, .px .cmp th { text-transform: none; letter-spacing: 0; font-weight: 600; font-size: 0.9375rem; color: var(--ink); }
.px .cta-band { background: #000; color: #f5f5f7; border-radius: 28px; }
.px .cta-band h2, .px .cta-band h3 { color: #f5f5f7; }
.px .tick { background-color: var(--teal); }
.px .next3 b, .px .stat-value { color: var(--teal); }

/* legal pages' quiet bar */
.px .nav-back { color: var(--ink-2); }

/* ------------------------------------------------------------ the chat */
.px .smiles-ai { right: 20px; bottom: 20px; }
body.px.has-sticky-cta .smiles-ai { bottom: 84px; }
.px .smiles-btn {
  background: rgba(255, 255, 255, 0.96); color: #1d1d1f; border: 1px solid rgba(0, 0, 0, 0.08); border-radius: 980px;
  backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06), 0 12px 32px rgba(0, 0, 0, 0.16); font: 400 0.9375rem/1 var(--sans); letter-spacing: -0.012em; padding: 10px 18px 10px 10px;
  transition: transform 0.2s cubic-bezier(0.28, 0.11, 0.32, 1), background-color 0.2s;
}
.px .smiles-btn:hover { background: #fff; box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08), 0 16px 38px rgba(0, 0, 0, 0.2); transform: translateY(-1px); }
.px .smiles-btn:focus-visible { box-shadow: 0 0 0 3px #fff, 0 0 0 5px var(--teal); outline: none; }
.px .smiles-avatar { background: transparent; box-shadow: none; }
.px .smiles-avatar .smiles-face { width: 100%; height: 100%; }
.px .smiles-panel {
  background: rgba(255, 255, 255, 0.98); border: 0; border-radius: 28px; overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08), 0 40px 90px -24px rgba(0, 0, 0, 0.4);
  font-family: var(--sans); letter-spacing: -0.012em;
}
.px .smiles-head { background: transparent; border-bottom: 1px solid var(--line-2); padding: 16px 18px; }
.px .smiles-title { font-weight: 600; font-size: 1rem; letter-spacing: -0.02em; color: var(--ink); }
.px .smiles-sub { color: var(--muted); font-size: 0.8125rem; }
.px .smiles-avatar-lg { background: transparent; }
.px .smiles-avatar-lg .smiles-face { width: 100%; height: 100%; }
.px .smiles-close { border: 0; background: #f5f5f7; border-radius: 50%; color: var(--ink); }
.px .smiles-close:hover { background: #e8e8ed; }
.px .smiles-log { background: #fff; }
.px .smiles-bubble { background: #f5f5f7; color: var(--ink); border: 0; border-radius: 20px; border-bottom-left-radius: 6px; box-shadow: none; font-size: 0.9688rem; line-height: 1.45; }
.px .smiles-msg-you .smiles-bubble { background: #0071e3; color: #fff; border-radius: 20px; border-bottom-right-radius: 6px; }
.px .smiles-chip { background: #fff; color: var(--teal-deep); border: 1px solid var(--line); border-radius: 980px; font-weight: 400; letter-spacing: -0.012em; }
.px .smiles-chip:hover { background: var(--teal-soft); border-color: var(--teal); color: var(--teal-deep); }
.px .smiles-next { color: var(--teal-deep); font-weight: 500; }
.px .smiles-capture { background: #f5f5f7; border: 0; border-radius: 20px; }
.px .smiles-capture-title { font-weight: 600; letter-spacing: -0.02em; }
.px .smiles-input { background: #fff; border: 1px solid var(--line); border-radius: 12px; font-family: var(--sans); }
.px .smiles-input:focus { outline: none; border-color: var(--teal); box-shadow: var(--focus-ring); }
.px .smiles-send, .px .smiles-submit { background: var(--teal); color: #fff; border: 0; border-radius: 980px; font-weight: 500; letter-spacing: -0.012em; }
.px .smiles-send:hover, .px .smiles-submit:hover { background: var(--teal-hi); }
.px .smiles-talk { background: var(--teal); color: #fff; border: 0; border-radius: 980px; font-weight: 500; letter-spacing: -0.012em; box-shadow: none; }
.px .smiles-talk:hover { background: var(--teal-hi); }
.px .smiles-talk-icon { color: #fff; }
.px .smiles-fine { color: var(--muted); }
.px .smiles-status.is-ok { color: #1f9d4a; }
.px .smiles-status.is-err { color: #d70015; }
.px .smiles-scrim { background: rgba(0, 0, 0, 0.32); }
@media (max-width: 768px) { .px .smiles-ai { right: 14px; bottom: 14px; } body.px.has-sticky-cta .smiles-ai { bottom: 78px; } }

/* sizes that keep long headlines and in-card headings in proportion */
body.px:not(.px-home) h1 { font-size: clamp(2.25rem, 5.4vw, 3.9rem); }
.px .card h2, .px .plan h2, .px .form-card h2, .px .sol-card h2, .px .aside-card h2 { font-size: clamp(1.375rem, 2.2vw, 1.75rem); letter-spacing: -0.025em; }
.px .wrap.narrow h1 { font-size: clamp(2.25rem, 5vw, 3.25rem); }
.px .wrap.narrow h2 { font-size: clamp(1.5rem, 2.4vw, 1.875rem); letter-spacing: -0.026em; }
.px .wrap.narrow h3 { font-size: 1.25rem; }
.px .article-body h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); }

/* the chat reads in sentence case, like the rest of the site */
.px .smiles-chip, .px .smiles-label, .px .smiles-btn, .px .smiles-talk, .px .smiles-next { text-transform: none; }
.px .smiles-label { font-size: 0.8125rem; letter-spacing: 0; font-weight: 500; color: var(--muted); }

/* the menu's call to action sits on a solid strip so the list never shows through */
.px .nav-sheet-cta { background: transparent; box-shadow: none; }
.px .nav-sheet-note { display: none; }

/* ---- search / capture containers: one clean capsule, not boxes inside a box ---- */
.px .px-capture .px-row {
  background: #fff; border: 1px solid rgba(0, 0, 0, .08); border-radius: 980px;
  padding: 8px 8px 8px 10px; gap: 0;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .04), 0 12px 36px rgba(0, 0, 0, .09);
  transition: box-shadow .2s ease, border-color .2s ease;
}
.px .px-capture .px-row:focus-within { border-color: rgba(0, 113, 227, .55); box-shadow: 0 0 0 4px rgba(0, 113, 227, .14), 0 12px 36px rgba(0, 0, 0, .09); }
.px .px-capture .field { position: relative; }
.px .px-capture .field + .field::before { content: ""; position: absolute; left: 0; top: 22%; bottom: 22%; width: 1px; background: #e5e5ea; }
.px .px-capture input[type="url"], .px .px-capture input[type="email"], .px .px-capture input[type="text"] {
  border: 0 !important; background: transparent !important; box-shadow: none !important; outline: none !important;
  border-radius: 980px; min-height: 52px; padding: 0 22px; font-size: 1.0625rem; width: 100%;
}
.px .px-capture input:focus { outline: none !important; }
.px .px-capture .px-row .px-btn { min-height: 52px; padding: 0 28px; margin-left: 8px; font-size: 1.0625rem; }
.px .px-capture .px-step2-fields input {
  background: #f5f5f7 !important; border: 1px solid transparent !important; border-radius: 16px; min-height: 54px; padding: 0 18px;
}
.px .px-capture .px-step2-fields input:focus { background: #fff !important; border-color: rgba(0, 113, 227, .6) !important; box-shadow: 0 0 0 4px rgba(0, 113, 227, .14) !important; }
@media (max-width: 40rem) {
  .px .px-capture .px-row { flex-direction: column; align-items: stretch; border-radius: 28px; padding: 8px; }
  .px .px-capture .field + .field::before { left: 18px; right: 18px; top: 0; bottom: auto; width: auto; height: 1px; }
  .px .px-capture input[type="url"], .px .px-capture input[type="email"] { min-height: 56px; }
  .px .px-capture .px-row .px-btn { margin: 6px 0 0; width: 100%; min-height: 54px; }
  .px .px-capture .px-step2-fields { grid-template-columns: 1fr; }
}

/* ---- every other field on the site: soft fill, no hard outline, a blue ring on focus ---- */
.px .input, .px input[type="text"], .px input[type="email"], .px input[type="url"], .px input[type="tel"],
.px input[type="search"], .px input[type="number"], .px select, .px textarea {
  background: #f5f5f7; border: 1px solid transparent; border-radius: 14px; min-height: 52px; padding: 0 16px;
  font-size: 1rem; color: #1d1d1f; transition: background-color .15s ease, border-color .15s ease, box-shadow .15s ease;
}
.px textarea { padding: 14px 16px; min-height: 120px; }
.px .input:hover, .px input:not([type="checkbox"]):not([type="radio"]):hover, .px select:hover, .px textarea:hover { background: #efeff2; }
.px .input:focus, .px input:not([type="checkbox"]):not([type="radio"]):focus, .px select:focus, .px textarea:focus {
  background: #fff; border-color: rgba(0, 113, 227, .65); box-shadow: 0 0 0 4px rgba(0, 113, 227, .14); outline: none;
}
.px .px-capture .px-row input:not([type="checkbox"]):hover { background: transparent !important; }
.px input::placeholder, .px textarea::placeholder { color: #86868b; opacity: 1; }
.px .field > label, .px .flabel { font-weight: 500; font-size: .875rem; color: #1d1d1f; letter-spacing: -.005em; text-transform: none; }
.px .field input:not([type="checkbox"]):not([type="radio"]), .px .field select, .px .field textarea { background-color: #f5f5f7; border: 1px solid transparent; border-radius: 14px; box-shadow: none; }
.px .field select, .px select {
  -webkit-appearance: none; appearance: none; padding-right: 44px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 6 6.5l5-5' fill='none' stroke='%231d1d1f' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 18px center;
}
.px .field input:focus, .px .field select:focus, .px .field textarea:focus { background-color: #fff; border-color: rgba(0, 113, 227, .65); box-shadow: 0 0 0 4px rgba(0, 113, 227, .14); }

/* ---- home: tighter vertical rhythm ---- */
.px.px-home { --px-sec: clamp(60px, 7.5vw, 104px); }
.px-home .px-tile { min-height: 400px; gap: 24px; padding: clamp(28px, 3.4vw, 44px); }
.px-home .px-figures > div { padding: clamp(28px, 3.6vw, 48px) 16px; }
.px-home .px-trio > div { padding: clamp(24px, 3vw, 36px); }
.px-home .px-testi, .px-home .px-result { padding: clamp(24px, 3vw, 40px); }

/* ---- the AI Visibility Index box ---- */
.px .px-band:has(.px-news) { background: #f5f5f7; }
.px .px-news {
  background: #fff; border-radius: 28px; padding: clamp(28px, 4vw, 52px); max-width: 1040px; margin-inline: auto;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .04), 0 16px 44px rgba(0, 0, 0, .07); align-items: center; gap: clamp(28px, 4vw, 56px);
}
.px .px-news h3 { font-size: clamp(1.5rem, 2.4vw, 1.875rem); letter-spacing: -.02em; margin: 0; }
.px .px-news h3::before { content: "Monthly"; display: block; margin-bottom: 10px; font-size: .8125rem; font-weight: 600; color: #0071e3; letter-spacing: 0; }
.px .px-news p { margin-top: 10px; line-height: 1.5; font-size: 1.0625rem; }
.px .px-news form { gap: 14px; }
.px .px-news .px-news-row { background: #f5f5f7; border: 1px solid transparent; border-radius: 980px; padding: 6px 6px 6px 8px; transition: background-color .15s ease, border-color .15s ease, box-shadow .15s ease; }
.px .px-news .px-news-row:focus-within { background: #fff; border-color: rgba(0, 113, 227, .6); box-shadow: 0 0 0 4px rgba(0, 113, 227, .14); }
.px .px-news input[type="email"] { background: transparent !important; border: 0 !important; box-shadow: none !important; outline: none !important; min-height: 48px; padding: 0 16px; font-size: 1.0625rem; }
.px .px-news .px-news-row .px-btn { min-height: 48px; padding: 0 24px; margin-left: 8px; }
.px .px-news .checkline { display: flex; gap: 12px; align-items: flex-start; border: 0; background: transparent; padding: 0 6px; font-size: .8125rem; line-height: 1.45; color: #6e6e73; cursor: pointer; }
.px .px-news .checkline input {
  -webkit-appearance: none; appearance: none; flex: 0 0 20px; width: 20px; height: 20px; min-height: 0; margin-top: 1px; padding: 0;
  border: 1.5px solid #c7c7cc; border-radius: 6px; background: #fff; box-shadow: none; cursor: pointer; transition: background-color .15s ease, border-color .15s ease;
}
.px .px-news .checkline input:checked {
  background: #0071e3 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='10' viewBox='0 0 12 10'%3E%3Cpath d='M1.5 5.2 4.6 8.2 10.5 1.8' fill='none' stroke='white' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 12px no-repeat; border-color: #0071e3;
}
.px .px-news .checkline input:focus-visible { outline: 3px solid rgba(0, 113, 227, .35); outline-offset: 2px; }
@media (max-width: 40rem) {
  .px .px-news { border-radius: 24px; }
  .px .px-news .px-news-row { flex-direction: column; align-items: stretch; border-radius: 22px; padding: 6px; background: #f5f5f7; gap: 6px; }
  .px .px-news .px-news-row .px-btn { margin: 0; width: 100%; }
}
.px .px-news .px-news-row .field { flex: 1 1 auto; min-width: 0; }
@media (max-width: 52rem) { .px .px-news { margin-inline: 16px; max-width: calc(100% - 32px); } }
.px .smiles-fine { margin: 6px 22px 16px; font-size: .75rem; }
.px .smiles-label { font-size: .8125rem; font-weight: 500; color: #6e6e73; letter-spacing: 0; }
/* the smiley gets a ring and a soft shadow so it lifts off the button and the header */
.px .smiles-avatar { border-radius: 50%; box-shadow: 0 0 0 2px #fff, 0 0 0 3.5px rgba(0, 0, 0, 0.14), 0 6px 14px rgba(0, 0, 0, 0.28); }
.px .smiles-avatar-lg { box-shadow: 0 0 0 3px #fff, 0 0 0 4.5px rgba(0, 0, 0, 0.14), 0 8px 18px rgba(0, 0, 0, 0.26); }
.px .smiles-btn { padding-left: 11px; }
.px .smiles-btn { border: 1.5px solid #0071e3; }
.px .smiles-btn:hover { border-color: #0058b0; }

/* ---- the menu is a drawer on the right, under the header, with a dimmed page behind it ---- */
.px .nav-sheet-scrim { display: block; background: rgba(0, 0, 0, 0.3); opacity: 0; transition: opacity .3s ease; }
.px .nav-sheet.is-open .nav-sheet-scrim { opacity: 1; }
.px .nav-sheet-panel {
  inset: 0 0 0 auto; width: min(420px, 100%); max-width: 100%; opacity: 1; transform: translateX(104%);
  background: #fff; backdrop-filter: none; -webkit-backdrop-filter: none; border-top-left-radius: 24px;
  box-shadow: -24px 0 64px rgba(0, 0, 0, 0.16); padding: 18px 32px calc(32px + env(safe-area-inset-bottom));
  overflow-y: auto; transition: transform .4s cubic-bezier(0.28, 0.11, 0.32, 1);
}
.px .nav-sheet.is-open .nav-sheet-panel { transform: none; }
.px .nav-sheet-links { max-width: none; }
.px .nav-sheet-links a { font-size: 1.5rem; padding: 11px 0; }
.px .nav-sheet-label { padding: 22px 0 2px; }
.px .nav-sheet-cta { max-width: none; }
@media (max-width: 30rem) { .px .nav-sheet-panel { width: 100%; border-top-left-radius: 0; } }
@media (prefers-reduced-motion: reduce) { .px .nav-sheet-panel, .px .nav-sheet-scrim { transition: none; } }

/* ======== Smiles AI chat: one layout that scrolls inside the panel, fields you can see, the site's own look ======== */
.px .smiles-panel[hidden], .px .smiles-capture[hidden], .px .smiles-phone-row[hidden], .px .smiles-scrim[hidden] { display: none !important; }
.px .smiles-panel {
  display: flex; flex-direction: column; overflow: hidden; width: min(400px, calc(100vw - 24px));
  max-height: min(700px, calc(100vh - 150px)); max-height: min(700px, calc(100dvh - 150px));
  background: #fff; border: 1px solid rgba(0, 0, 0, .06); border-radius: 28px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .06), 0 24px 64px rgba(0, 0, 0, .22);
}
.px .smiles-head { flex: none; padding: 18px 20px 14px; border-bottom: 1px solid #efeff3; background: #fff; }
.px .smiles-log { flex: 1 1 auto; min-height: 120px; padding: 18px 20px 8px; overflow-y: auto; background: #fff; }
.px .smiles-bubble { padding: 12px 16px; border: 0; border-radius: 20px; background: #f5f5f7; color: #1d1d1f; font-size: .9375rem; line-height: 1.5; max-width: 88%; }
.px .smiles-msg-you .smiles-bubble { background: #0071e3; color: #fff; }
.px .smiles-replies { flex: none; gap: 8px; padding: 6px 20px 14px; background: #fff; }
.px .smiles-chip { padding: 9px 14px; border-radius: 980px; background: #fff; border: 1px solid #d2d2d7; color: #0071e3; font-size: .8125rem; }
.px .smiles-chip:hover { background: #f5faff; border-color: #0071e3; }
.px .smiles-next { border-radius: 980px; padding: 10px 16px; background: #0071e3; color: #fff; }

/* the callback / capture form */
.px .smiles-capture {
  display: flex; flex-direction: column; gap: 2px; flex: 1 1 auto; min-height: 0; overflow-y: auto;
  padding: 20px 22px 22px; background: #fff; border-top: 1px solid #efeff3;
}
.px .smiles-capture-title { margin: 0 0 8px; font-size: 1.125rem; font-weight: 600; letter-spacing: -.015em; color: #1d1d1f; }
.px .smiles-label { display: block; margin: 10px 0 6px; font-size: .8125rem; font-weight: 500; letter-spacing: 0; color: #1d1d1f; }
.px .smiles-input {
  width: 100%; min-height: 48px; padding: 0 16px; border: 1px solid transparent; border-radius: 14px; background: #f5f5f7;
  color: #1d1d1f; font-size: 1rem; box-shadow: none; transition: background-color .15s ease, border-color .15s ease, box-shadow .15s ease;
}
.px .smiles-input:focus { background: #fff; border-color: rgba(0, 113, 227, .65); box-shadow: 0 0 0 4px rgba(0, 113, 227, .14); outline: none; }
.px .smiles-status { margin: 10px 0 0; min-height: 1.2em; font-size: .875rem; }
.px .smiles-submit { margin-top: 14px; min-height: 50px; border-radius: 980px; font-size: 1rem; }
.px .smiles-capture .smiles-fine { margin: 12px 0 0; text-align: center; font-size: .75rem; }

/* the question row and the callback button */
.px .smiles-form { flex: none; padding: 12px 20px 6px; background: #fff; border-top: 1px solid #efeff3; }
.px .smiles-form .smiles-label { margin: 4px 0 8px; color: #6e6e73; }
.px .smiles-row { gap: 10px; align-items: stretch; }
.px .smiles-send { min-height: 48px; padding: 0 20px; border-radius: 980px; }
.px .smiles-talk { flex: none; margin: 8px 20px 0; min-height: 46px; border: 0; border-radius: 980px; background: #f5f5f7; color: #0071e3; font-size: .9375rem; font-weight: 500; }
.px .smiles-talk:hover { background: #e8f1fc; }
.px .smiles-fine { flex: none; margin: 10px 24px 16px; font-size: .75rem; line-height: 1.45; color: #6e6e73; }
@media (max-width: 30rem) {
  .px .smiles-panel { width: 100%; max-height: 86vh; max-height: 86dvh; border-radius: 24px 24px 0 0; }
  .px .smiles-capture { padding: 18px 18px 22px; }
}

/* while the callback form is open it gets the room: the question box and buttons step aside */
.px .smiles-panel:has(.smiles-capture:not([hidden])) .smiles-form,
.px .smiles-panel:has(.smiles-capture:not([hidden])) .smiles-talk,
.px .smiles-panel:has(.smiles-capture:not([hidden])) .smiles-replies:not(:has(.smiles-next)) { display: none; }
.px .smiles-panel:has(.smiles-capture:not([hidden])) > .smiles-fine { display: none; }
.px .smiles-panel:has(.smiles-capture:not([hidden])) .smiles-log { flex: 0 1 auto; max-height: 150px; }
.px .smiles-panel:has(.smiles-capture:not([hidden])) .smiles-capture { flex: 1 1 auto; min-height: 320px; }
.px .smiles-panel:has(.smiles-capture:not([hidden])) .smiles-log { display: none; }
.px .smiles-panel:has(.smiles-capture:not([hidden])) .smiles-replies { padding: 14px 22px 0; }
.px .smiles-panel:has(.smiles-capture:not([hidden])) .smiles-capture { border-top: 0; padding-top: 12px; min-height: 0; }
@media (max-width: 30rem) { .px .smiles-input { min-height: 46px; } .px .smiles-label { margin: 8px 0 5px; } }
.px .smiles-capture { padding-bottom: 32px; }
.px .smiles-panel:has(.smiles-capture:not([hidden])) .smiles-submit { margin-top: 18px; }

/* ---- the figures: less air above the statement, and digits that roll ---- */
.px-home .px-figures > div { padding: clamp(20px, 2.8vw, 36px) 16px; }
.px-home section[aria-label="What every audit measures"] + .px-sec { padding-top: clamp(28px, 3.5vw, 52px); }
.px-figures dt { display: inline-flex; justify-content: center; }
.od-col { display: inline-block; height: 1em; overflow: hidden; line-height: 1; vertical-align: top; }
.od-strip { display: flex; flex-direction: column; transition-property: transform; transition-timing-function: cubic-bezier(0.16, 0.84, 0.28, 1); will-change: transform; }
.od-strip > span { display: block; height: 1em; line-height: 1; }
@media (prefers-reduced-motion: reduce) { .od-strip { transition: none; } }
.px-home section[aria-label="What every audit measures"] { padding-block: clamp(8px, 1.6vw, 20px) 0; }
.px-home section[aria-label="What every audit measures"] + .px-sec { padding-top: clamp(20px, 2.6vw, 40px); }
/* the drawer meets the header square, and its first link starts well below the edge */
.px .nav-sheet-panel { border-top-left-radius: 0; border-radius: 0; padding-top: 44px; }
@media (max-width: 30rem) { .px .nav-sheet-panel { padding-top: 32px; } }

/* ---- chat on a phone: the button clears the blue bar, the panel is a bottom sheet centred on the screen ---- */
@media (max-width: 768px) {
  .px .smiles-ai { right: 14px; bottom: calc(14px + env(safe-area-inset-bottom, 0px)); }
  body.px.has-sticky-cta .smiles-ai { bottom: calc(86px + env(safe-area-inset-bottom, 0px)); }
  .px .smiles-btn { padding: 8px; font-size: .875rem; }
  .px .smiles-btn.is-nudging { padding: 8px 16px 8px 8px; }
  .px .smiles-btn.is-nudging .smiles-btn-text { display: inline; }
}
@media (max-width: 640px) {
  .px .smiles-panel {
    position: fixed; left: 0; right: 0; bottom: 0; top: auto; margin: 0;
    width: 100%; max-width: 100%; box-sizing: border-box;
    max-height: 88vh; max-height: 88dvh; border-radius: 24px 24px 0 0;
    padding-bottom: env(safe-area-inset-bottom, 0px);
  }
  .px .smiles-scrim { position: fixed; inset: 0; }
}
@media (max-width: 768px) { body.px.form-in-view .smiles-ai { opacity: 0; pointer-events: none; transition: opacity .2s; } }

/* ---- the idle nudge: a card above the button, and a light that runs round its edge ---- */
.px .smiles-btn { position: relative; isolation: isolate; }
@property --smiles-a { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
.px .smiles-btn.is-nudging::before {
  content: ""; position: absolute; inset: -2px; padding: 2px; border-radius: inherit; pointer-events: none;
  background: conic-gradient(from var(--smiles-a), rgba(41,151,255,0) 0deg, #2997ff 80deg, #5ee0a8 150deg, rgba(41,151,255,0) 230deg);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  animation: smiles-edge 1.8s linear infinite;
}
.px .smiles-btn.is-nudging { box-shadow: 0 0 24px rgba(41,151,255,.35), 0 12px 32px rgba(0,0,0,.16); animation: smiles-glow 1.6s ease-in-out infinite; }
@keyframes smiles-edge { to { --smiles-a: 360deg; } }
@keyframes smiles-glow { 50% { box-shadow: 0 0 40px rgba(41,151,255,.55), 0 12px 32px rgba(0,0,0,.16); } }
@media (prefers-reduced-motion: reduce) {
  .px .smiles-btn.is-nudging::before { animation: none; background: #2997ff; opacity: .5; }
  .px .smiles-btn.is-nudging { animation: none; }
}
.px .smiles-btn-text { transition: opacity .25s; }

/* ---- phone menu: a full-screen, opaque sheet that covers the top bar too, with its own close button ---- */
@media (max-width: 47.99rem) {
  .px .nav-sheet { inset: 0; z-index: 200; }
  .px .nav-sheet-scrim { display: none; }
  .px .nav-sheet-panel { width: 100%; border-radius: 0; background: #fff; box-shadow: none; padding-top: 0; }
  .px .nav-sheet-head { display: flex; align-items: center; justify-content: space-between; min-height: 60px; margin: 0 0 4px; border-bottom: 1px solid rgba(0, 0, 0, .08); }
  .px .nav-sheet-title { font-size: 1rem; font-weight: 600; letter-spacing: -.01em; text-transform: none; color: var(--px-ink, #1d1d1f); }
  .px .nav-sheet-close { width: 44px; height: 44px; margin-right: -10px; border: 0; border-radius: 50%; background: #f5f5f7; }
}
