/* InstantBot Brand 2026 — Editorial Premium Design System
   Replaces all inline tokens. Design-Source-of-Truth for marketing pages.
   Audience: DACH SMB owners (dental, shop, hotel, agency).
   Style: Warm light mode, editorial typography, asymmetric bento, single CTA isolation. */

:root {
  /* ------------ COLOR (60-30-10) ------------ */
  --bg: #F8F5F1;              /* warm off-white background (60%) */
  --surface: #FFFFFF;          /* white cards (30%) */
  --surface-2: #FCFAF7;        /* subtle alternate surface */
  --text: #1A1A2E;             /* off-black, never #000 */
  --text-muted: #5B5B73;       /* readable secondary */
  --text-soft: #8A8AA0;        /* tertiary, captions */

  --primary: #1E40AF;          /* deep trustworthy blue (NOT default #2563EB) */
  --primary-hover: #1E3A8A;
  --primary-tint: #EFF3FB;     /* primary 10% wash */

  --accent: #EA580C;           /* orange CTA (10%, isolated to buttons only) */
  --accent-hover: #C2410C;
  --accent-shadow: rgba(234,88,12,.25);

  --success: #15803D;
  --success-soft: #DCFCE7;

  --border: #E8E2D8;           /* warm-tinted, not cold gray */
  --border-strong: #D8D0C2;

  --error: #B91C1C;
  --warn: #B45309;

  /* ------------ ELEVATION ------------ */
  --shadow-card: 0 1px 2px rgba(20,20,40,.04), 0 4px 8px rgba(20,20,40,.04);
  --shadow-card-hover: 0 4px 8px rgba(20,20,40,.06), 0 12px 24px rgba(20,20,40,.08);
  --shadow-cta: 0 4px 14px rgba(234,88,12,.25);
  --shadow-cta-hover: 0 6px 20px rgba(234,88,12,.32);
  --shadow-nav: 0 1px 3px rgba(20,20,40,.06);
  --shadow-hero: 0 30px 80px -30px rgba(20,20,40,.18), 0 12px 32px -12px rgba(20,20,40,.10);

  /* ------------ RADIUS ------------ */
  --r-sm: 6px;
  --r-md: 8px;
  --r-lg: 12px;
  --r-xl: 16px;
  --r-2xl: 20px;
  --r-pill: 999px;

  /* ------------ TYPE ------------
     Single-font strategy (like Linear, Vercel): DM Sans for everything.
     Editorial feel via size/weight contrast, NOT serif. */
  --font-heading: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-body: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
}

/* ============================================================
   BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, svg { max-width: 100%; height: auto; display: block; }

a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-hover); }

::selection { background: var(--primary-tint); color: var(--primary); }

/* ============================================================
   TYPOGRAPHY
   Editorial scale — Fraunces serif headlines, DM Sans body.
   ============================================================ */
.font-heading { font-family: var(--font-heading); }

h1, .h1 {
  font-family: var(--font-heading);
  font-size: clamp(1.875rem, 5.6vw, 4rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 1rem;
  text-wrap: balance;
  word-break: break-word;
  overflow-wrap: anywhere;
}

h2, .h2 {
  font-family: var(--font-heading);
  font-size: clamp(1.625rem, 3.8vw, 2.75rem);
  line-height: 1.1;
  letter-spacing: -0.022em;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 1rem;
  text-wrap: balance;
  word-break: break-word;
  overflow-wrap: anywhere;
}

h3, .h3 {
  font-family: var(--font-body);
  font-size: clamp(1.25rem, 1.6vw, 1.5rem);
  line-height: 1.25;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 0.5rem;
  letter-spacing: -0.005em;
}

h4 {
  font-family: var(--font-body);
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 0.5rem;
}

p {
  margin: 0 0 1rem;
  color: var(--text-muted);
  max-width: 65ch;
}

.lead {
  font-size: clamp(1.125rem, 1.4vw, 1.25rem);
  line-height: 1.6;
  color: var(--text-muted);
  max-width: 38rem;
}

.eyebrow {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 0.75rem;
}

/* ============================================================
   LAYOUT
   ============================================================ */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}
@media (min-width: 1024px) { .container { padding: 0 2rem; } }

.section { padding: 4.5rem 0; }
.section-lg { padding: 6rem 0; }
@media (min-width: 768px) {
  .section { padding: 5.5rem 0; }
  .section-lg { padding: 8rem 0; }
}

/* ============================================================
   BUTTONS — single accent isolation
   ============================================================ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  font-family: var(--font-body);
  font-size: 1rem; font-weight: 600;
  padding: 0.875rem 1.625rem;
  min-height: 48px;
  border-radius: var(--r-md);
  border: 1px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  transition: transform .15s, box-shadow .15s, background-color .15s, color .15s, border-color .15s;
  text-decoration: none;
}
.btn:active { transform: scale(0.97); }

.btn-primary,
.btn-primary:link,
.btn-primary:visited {
  background: var(--accent);
  color: #fff;
  box-shadow: var(--shadow-cta);
}
.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active {
  background: var(--accent-hover);
  color: #fff;
  box-shadow: var(--shadow-cta-hover);
  transform: translateY(-1px);
  text-decoration: none;
}

.btn-secondary {
  background: var(--text);
  color: #fff;
}
.btn-secondary:hover { background: #2A2A45; color: #fff; transform: translateY(-1px); }

.btn-outline {
  background: var(--surface);
  color: var(--text);
  border-color: var(--border-strong);
}
.btn-outline:hover {
  border-color: var(--text);
  color: var(--text);
  transform: translateY(-1px);
}

.btn-lg { font-size: 1.0625rem; padding: 1rem 2rem; min-height: 56px; }

/* ============================================================
   CARDS / BENTO
   ============================================================ */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: 1.75rem;
  box-shadow: var(--shadow-card);
  transition: box-shadow .3s, transform .3s;
}
.card:hover {
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-3px);
}

.card-icon {
  width: 44px; height: 44px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: var(--r-md);
  background: var(--primary-tint);
  color: var(--primary);
  margin-bottom: 1rem;
}

/* Industries grid — 3x2 symmetric, photo-led */
.use-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
@media (min-width: 720px)  { .use-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1080px) { .use-grid { grid-template-columns: repeat(3, 1fr); } }

.industry-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: box-shadow .2s ease, transform .2s ease, border-color .2s ease;
  display: flex; flex-direction: column;
  padding: 0;
  text-align: left;
  font: inherit;
  color: inherit;
  cursor: pointer;
  width: 100%;
}
.industry-card:hover, .industry-card:focus-visible {
  border-color: var(--accent);
  box-shadow: 0 16px 40px -12px rgba(234,88,12,.18);
  transform: translateY(-4px);
  outline: none;
}
.industry-card:hover .industry-cta { color: var(--accent); }
.industry-cta {
  display: inline-flex; align-items: center;
  margin-top: 0.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--primary);
  letter-spacing: -0.005em;
  transition: color .2s;
}
.industry-img {
  position: relative;
  aspect-ratio: 16 / 10;
  background: linear-gradient(135deg, var(--primary-tint) 0%, var(--surface-2) 100%);
  overflow: hidden;
}
.industry-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.industry-img-fallback img { display: none; }
.industry-img-fallback::after {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(120% 80% at 80% 20%, rgba(234,88,12,.12), transparent 60%),
    linear-gradient(135deg, var(--primary-tint), var(--surface-2));
}
.industry-body {
  padding: 1.25rem 1.5rem 1.5rem;
  display: flex; flex-direction: column; gap: .75rem;
}
.industry-body h3 {
  margin: 0;
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.industry-body ul {
  list-style: none; padding: 0; margin: 0;
  font-size: .94rem; color: var(--text-muted); line-height: 1.65;
}
.industry-body li { padding: .15rem 0; }

.industries-bottom-cta {
  text-align: center;
  margin-top: 3rem;
  display: flex; flex-direction: column; align-items: center; gap: 1rem;
}
.industries-bottom-cta p {
  font-size: 1.0625rem;
  color: var(--text-muted);
  margin: 0;
  max-width: 32rem;
}

/* ============================================================
   PRICING — best-in-class converting tables
   ============================================================ */
.pricing-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  align-items: stretch;
  max-width: 1100px;
  margin: 0 auto;
  padding: 1rem 0;
}
@media (min-width: 720px)  { .pricing-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .pricing-grid { grid-template-columns: repeat(3, 1fr); } }
.pricing-grid--two { max-width: 760px; }
@media (min-width: 1024px) { .pricing-grid--two { grid-template-columns: repeat(2, 1fr); } }

.price-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 2.25rem 1.75rem 2rem;
  display: flex; flex-direction: column;
  transition: box-shadow .25s ease, transform .25s ease, border-color .25s ease;
}
.price-card:hover {
  border-color: rgba(30,64,175,.25);
  box-shadow: 0 14px 40px -16px rgba(15,23,42,.18);
  transform: translateY(-2px);
}
.price-card--featured {
  border: 2px solid var(--accent);
  box-shadow: 0 24px 60px -20px rgba(234,88,12,.28), 0 0 0 6px rgba(234,88,12,.05);
}
@media (min-width: 1024px) {
  .price-card--featured { transform: scale(1.04); z-index: 2; }
  .price-card--featured:hover { transform: scale(1.04) translateY(-2px); }
}

.price-badge {
  position: absolute; top: -0.875rem; left: 50%; transform: translateX(-50%);
  white-space: nowrap;
  background: var(--accent);
  color: #fff;
  border: none;
  padding: 0.4rem 0.9rem;
  border-radius: var(--r-pill);
  font-size: 0.78rem; font-weight: 700;
  letter-spacing: 0.04em;
  box-shadow: 0 6px 18px rgba(234,88,12,.32);
  z-index: 3;
}

.price-tier {
  font-size: 0.78rem; font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--text-soft);
  margin-bottom: 0.875rem;
}
.price-card--featured .price-tier { color: var(--accent); }

.price-amount {
  display: flex; align-items: baseline;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text);
  line-height: 1;
  font-size: 3rem;
  margin-bottom: 0.375rem;
}
.price-amount .currency {
  font-size: 1.5rem;
  font-weight: 700;
  margin-right: 0.125rem;
  color: var(--text);
}
.price-amount .period {
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-muted);
  margin-left: 0.375rem;
}
.price-anchor {
  font-size: 0.82rem;
  color: var(--text-soft);
  margin: 0 0 0.25rem;
}
.price-anchor s { color: var(--text-soft); }
.price-tagline {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin: 0.75rem 0 1.25rem;
  min-height: 2.6em;
}
.price-features {
  list-style: none;
  padding: 0;
  margin: 0 0 1.75rem;
  border-top: 1px solid var(--border);
  font-size: 0.95rem;
  color: var(--text);
}
.price-features li {
  display: flex; align-items: flex-start; gap: 0.625rem;
  padding: 0.625rem 0;
  border-bottom: 1px solid var(--border);
  line-height: 1.45;
}
.price-features li::before {
  content: '';
  flex-shrink: 0;
  width: 18px; height: 18px;
  margin-top: 2px;
  background-color: rgba(22,163,74,.12);
  border-radius: 50%;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2316a34a' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><polyline points='20 6 9 17 4 12'/></svg>");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 12px;
}
.price-features li:last-child { border-bottom: 0; }
.price-features li.is-highlight {
  font-weight: 600;
  color: var(--text);
}

.price-cta {
  display: block; width: 100%;
  text-align: center;
  padding: 0.95rem 1rem;
  font-size: 1rem;
  font-weight: 700;
  border-radius: 12px;
  text-decoration: none;
  transition: all .2s ease;
  margin-top: auto;
}
.price-cta--primary {
  background: var(--accent);
  color: #fff;
  border: 2px solid var(--accent);
  box-shadow: 0 6px 18px rgba(234,88,12,.32);
}
.price-cta--primary:hover { background: #C2410C; border-color: #C2410C; box-shadow: 0 10px 28px rgba(234,88,12,.42); transform: translateY(-1px); }
.price-cta--outline {
  background: transparent;
  color: var(--text);
  border: 2px solid var(--border-strong);
}
.price-cta--outline:hover { border-color: var(--accent); color: var(--accent); }
.price-cta-meta {
  display: block;
  margin-top: 0.625rem;
  font-size: 0.78rem;
  color: var(--text-soft);
  text-align: center;
}

/* Trust strip below the pricing grid */
.pricing-trust {
  display: flex; justify-content: center; flex-wrap: wrap;
  gap: 0.75rem 2rem;
  margin: 2.5rem auto 0;
  padding: 1.25rem 1.5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  max-width: 1000px;
  font-size: 0.9rem;
  color: var(--text-muted);
}
.pricing-trust span {
  display: inline-flex; align-items: center; gap: 0.5rem;
}
.pricing-trust svg { color: #16a34a; flex-shrink: 0; }

/* Section eyebrow + guarantee pill */
.pricing-guarantee {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: rgba(22,163,74,.08);
  color: #15803d;
  padding: 0.5rem 1rem;
  border-radius: var(--r-pill);
  font-size: 0.875rem;
  font-weight: 600;
  margin-top: 1rem;
}

/* Bento layout — asymmetric, NOT 3-column-template */
.bento {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}
@media (min-width: 768px) {
  .bento { grid-template-columns: repeat(6, 1fr); }
  .bento-wide   { grid-column: span 4; }
  .bento-narrow { grid-column: span 2; }
  .bento-half   { grid-column: span 3; }
  .bento-third  { grid-column: span 2; }
}

/* ============================================================
   BADGES / TRUST
   ============================================================ */
.badge {
  display: inline-flex; align-items: center; gap: 0.4rem;
  padding: 0.375rem 0.75rem;
  border-radius: var(--r-pill);
  font-size: 0.8125rem;
  font-weight: 600;
  background: var(--primary-tint);
  color: var(--primary);
  border: 1px solid rgba(30,64,175,.12);
}
.badge-success {
  background: var(--success-soft); color: var(--success);
  border-color: rgba(21,128,61,.18);
}
.badge-accent {
  background: #FFF7ED;
  color: #9A3412;
  border: 1px solid #EA580C;
}

.trust-bar {
  display: flex; flex-wrap: wrap; gap: 1.25rem 2.25rem;
  align-items: center; justify-content: center;
  font-size: 0.9rem;
  color: var(--text-muted);
}
.trust-bar > span {
  display: inline-flex; align-items: center; gap: 0.5rem;
}
.trust-bar svg { color: var(--success); }

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(248, 245, 241, 0.8);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 64px; gap: 1rem;
}
.nav-logo {
  font-family: var(--font-heading);
  font-size: 1.375rem; font-weight: 600;
  color: var(--text);
  letter-spacing: -0.01em;
}
.nav-logo .dot { color: var(--accent); }
.nav-links { display: none; gap: 1.75rem; }
.nav-links a {
  color: var(--text-muted); font-weight: 500; font-size: 0.95rem;
  transition: color .15s;
  white-space: nowrap;
}
.nav-links a:hover { color: var(--text); }
@media (min-width: 1024px) { .nav-links { display: flex; } }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  padding: 2.5rem 0 2.5rem;
  overflow: hidden;
}
@media (min-width: 768px) { .hero { padding: 5rem 0 4rem; } }
@media (min-width: 1024px) { .hero { padding: 5.5rem 0 4.5rem; } }

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
}
@media (min-width: 1024px) {
  .hero-grid { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 4rem; }
}

.hero h1 .accent-word {
  color: var(--primary);
  background-image: linear-gradient(transparent 64%, rgba(234,88,12,0.22) 64%, rgba(234,88,12,0.22) 92%, transparent 92%);
  background-repeat: no-repeat;
}

/* Subtle background ambient — NOT the cliché blue+purple radial */
.hero-ambient {
  position: absolute; inset: 0;
  z-index: -1; pointer-events: none;
  background:
    radial-gradient(ellipse 60% 40% at 80% 20%, rgba(234,88,12,.05), transparent 60%),
    radial-gradient(ellipse 50% 35% at 10% 90%, rgba(30,64,175,.04), transparent 60%);
}

/* ============================================================
   SECTION HEADERS
   ============================================================ */
.section-header { max-width: 42rem; margin: 0 auto 3rem; text-align: center; }
.section-header.left { margin: 0 0 3rem; text-align: left; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--text);
  color: rgba(255,255,255,.82);
  padding: 3rem 0 2rem;
}
.footer a { color: rgba(255,255,255,.92); }
.footer a:hover { color: #fff; }

/* ============================================================
   UTILITIES
   ============================================================ */
.flex { display: flex; }
.items-center { align-items: center; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-4 { margin-top: 1rem; }
.mt-6 { margin-top: 1.5rem; }
.mt-8 { margin-top: 2rem; }
.mt-10 { margin-top: 2.5rem; }
.text-center { text-align: center; }

.divider { height: 1px; background: var(--border); margin: 2rem 0; }

/* ============================================================
   ACCESSIBILITY / MOTION
   ============================================================ */
:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
  border-radius: 4px;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
}

/* Scroll-reveal helper (opt-in via .reveal class)
   Default: visible. JS adds .reveal-prep class to enable hidden state for users with motion enabled. */
.reveal { opacity: 1; transform: none; transition: opacity .6s cubic-bezier(.25,1,.5,1), transform .6s cubic-bezier(.25,1,.5,1); }
.reveal-prep .reveal:not(.is-visible) { opacity: 0; transform: translateY(16px); }
.reveal.is-visible { opacity: 1; transform: none; }

/* ============================================================
   CHECKOUT MODAL — Email + Provider choice (Stripe / PayPal)
   ============================================================ */
.cm-overlay { position: fixed; inset: 0; background: rgba(15,23,42,.55); backdrop-filter: blur(6px); z-index: 99999; display: none; align-items: center; justify-content: center; padding: 1rem; opacity: 0; transition: opacity .2s ease; }
.cm-overlay.open { display: flex; opacity: 1; }
.cm-card { background: var(--surface); border-radius: 18px; max-width: 460px; width: 100%; padding: 2rem; box-shadow: 0 30px 80px -20px rgba(15,23,42,.4); position: relative; transform: translateY(12px); transition: transform .25s cubic-bezier(.25,1,.5,1); }
.cm-overlay.open .cm-card { transform: translateY(0); }
.cm-close { position: absolute; top: 14px; right: 14px; background: none; border: none; font-size: 22px; color: var(--text-soft); cursor: pointer; padding: 4px 10px; border-radius: 6px; line-height: 1; }
.cm-close:hover { background: var(--bg); color: var(--text); }
.cm-header { text-align: center; margin-bottom: 1.5rem; }
.cm-eyebrow { display: inline-block; font-size: .72rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); background: rgba(234,88,12,.08); padding: .25rem .625rem; border-radius: var(--r-pill); margin-bottom: .75rem; }
.cm-title { font-size: 1.375rem; font-weight: 800; letter-spacing: -.02em; color: var(--text); margin: 0 0 .375rem; }
.cm-plan-line { font-size: .92rem; color: var(--text-muted); margin: 0; }
.cm-plan-price { font-weight: 700; color: var(--text); }
.cm-field { margin-bottom: 1rem; }
.cm-field label { display: block; font-size: .82rem; font-weight: 600; color: var(--text); margin-bottom: .375rem; }
.cm-field input { width: 100%; padding: .75rem .9rem; border: 1px solid var(--border-strong); border-radius: var(--r-md); font-size: 1rem; font-family: inherit; box-sizing: border-box; background: var(--bg); }
.cm-field input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-tint); }
.cm-providers { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; margin-top: 1.25rem; }
.cm-provider { display: flex; flex-direction: column; align-items: center; gap: .5rem; padding: 1rem .75rem; background: var(--surface); border: 2px solid var(--border-strong); border-radius: var(--r-md); cursor: pointer; transition: all .15s ease; font-family: inherit; }
.cm-provider:hover { border-color: var(--primary); background: var(--primary-tint); }
.cm-provider:disabled { opacity: .55; cursor: not-allowed; }
.cm-provider-logo { font-size: 1.5rem; line-height: 1; }
.cm-provider-name { font-size: .9rem; font-weight: 700; color: var(--text); }
.cm-provider-sub { font-size: .72rem; color: var(--text-soft); text-align: center; }
.cm-trust { display: flex; gap: .75rem; justify-content: center; flex-wrap: wrap; margin-top: 1.25rem; padding-top: 1rem; border-top: 1px solid var(--border); font-size: .78rem; color: var(--text-muted); }
.cm-trust span { display: inline-flex; align-items: center; gap: .25rem; }
.cm-trust svg { color: #16a34a; }
.cm-error { background: #FEF2F2; color: #B91C1C; border: 1px solid #FCA5A5; padding: .625rem .875rem; border-radius: 8px; font-size: .85rem; margin-top: .75rem; display: none; }
.cm-error.show { display: block; }
.cm-success { background: #F0FDF4; color: #15803d; border: 1px solid #86EFAC; padding: 1rem; border-radius: 10px; font-size: .92rem; margin-top: 1rem; display: none; line-height: 1.5; }
.cm-success.show { display: block; }
.cm-loading { display: none; text-align: center; padding: 2rem 0; color: var(--text-muted); font-size: .92rem; }
.cm-loading.show { display: block; }

/* ============================================================
   MOBILE OVERFLOW HARDENING (≤480px)
   ============================================================ */
@media (max-width: 600px) {
  html, body { max-width: 100vw !important; overflow-x: hidden !important; }
  nav, .nav, .nav-inner { flex-wrap: nowrap !important; row-gap: 0 !important; column-gap: 8px !important; padding: 0 16px !important; }
  .nav-inner > a.nav-logo { flex-shrink: 0; }
  .nav-inner #lang-toggle { margin-left: auto !important; }
  .nav-links { gap: 6px !important; flex-wrap: wrap !important; row-gap: 4px !important; flex-shrink: 1 !important; }
  .nav-links a:not(.btn) { font-size: .78rem !important; padding: 8px 6px !important; min-height: 36px; display: inline-flex; align-items: center; }
  .nav-links a.btn { font-size: .8rem !important; padding: 10px 14px !important; min-height: 40px; white-space: nowrap; display: inline-flex; align-items: center; }
  /* Footer tap targets — meet 44px minimum on mobile */
  footer a, .footer a { padding: 10px 6px; display: inline-block; min-height: 44px; line-height: 24px; }
  /* Brand link / logo tap area */
  .logo, .nav-logo, .topbar-logo { display: inline-flex; align-items: center; min-height: 40px; }
}
@media (max-width: 480px) {
  .card[style*="padding:2rem"] { padding: 1.25rem !important; }
  .card[style*="grid-template-columns:auto"] { grid-template-columns: 1fr !important; gap: .875rem !important; }
  .card .badge { font-size: .72rem; padding: .25rem .5rem; }
  .card div[style*="display:flex"][style*="gap:0.5rem"] { flex-wrap: wrap; }
  .badge { white-space: normal; word-break: break-word; }
  pre, code { max-width: 100%; overflow-x: auto; word-break: break-word; }
  table { display: block; max-width: 100%; overflow-x: auto; }
  img, video, iframe { max-width: 100%; height: auto; }
  .nav-links a:not(.btn) { font-size: .72rem; padding: 2px 4px; }
}

/* ============================================================
   DONE-FOR-YOU EXPLAINER — premium two-column card, brand-2026
   ============================================================ */
.dfy-explainer {
  margin-top: 3.5rem;
  background: linear-gradient(180deg, #F4EDE3 0%, #FFFFFF 70%);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 2.5rem;
  box-shadow: 0 2px 6px rgba(20,20,40,.06), 0 24px 56px -22px rgba(30,64,175,.18);
  position: relative;
  overflow: hidden;
}
.dfy-explainer::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, #1E40AF 0%, #1E40AF 40%, #EA580C 70%, #EA580C 100%);
}

.dfy-grid {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) minmax(280px, 1.15fr);
  gap: 3rem;
  align-items: start;
  margin-bottom: 2rem;
}

.dfy-headline {
  position: sticky;
  top: 2rem;
}
.dfy-eyebrow {
  display: inline-block;
  background: #EFF3FB;
  color: #1E40AF;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 1.1rem;
}
.dfy-title {
  font-size: clamp(1.45rem, 2.5vw, 1.85rem);
  font-weight: 800;
  letter-spacing: -.025em;
  line-height: 1.15;
  margin: 0 0 .85rem;
  color: var(--text);
}
.dfy-sub {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin: 0 0 1.5rem;
}
.dfy-cta-row {
  display: flex;
  flex-direction: column;
  gap: .6rem;
  align-items: flex-start;
}
.dfy-cta {
  padding: .95rem 1.6rem;
  font-size: .98rem;
  font-weight: 700;
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(234,88,12,.22);
  display: inline-flex;
  align-items: center;
  gap: .4rem;
}
.dfy-cta::after { content: "→"; transition: transform .15s ease; }
.dfy-cta:hover::after { transform: translateX(3px); }
.dfy-cta-meta {
  font-size: .8rem;
  color: var(--text-soft);
  font-weight: 500;
}

/* Step timeline */
.dfy-steps {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  position: relative;
}
.dfy-steps::before {
  content: "";
  position: absolute;
  left: 17px;
  top: 36px;
  bottom: 36px;
  width: 2px;
  background: linear-gradient(180deg, #1E40AF 0%, #1E40AF 75%, #EA580C 100%);
  opacity: .15;
}
.dfy-step {
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 1rem;
  align-items: flex-start;
  position: relative;
}
.dfy-step-num {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--surface);
  border: 2px solid #1E40AF;
  color: #1E40AF;
  font-weight: 700;
  font-size: .95rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
  box-shadow: 0 0 0 4px var(--surface);
  /* Optical alignment: nudge circle to baseline of adjacent h4 cap-height */
  margin-top: 2px;
}
.dfy-step-final .dfy-step-num {
  background: #EA580C;
  border-color: #EA580C;
  color: #fff;
}
.dfy-step h4 {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -.01em;
  margin: 0 0 .25rem;
  color: var(--text);
  line-height: 1.3;
}
.dfy-step p {
  font-size: .9rem;
  color: var(--text-muted);
  line-height: 1.55;
  margin: 0;
}

/* Inclusion grid — 3×2 balanced, no orphan rows */
.dfy-includes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: .85rem 1.5rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--border);
}
.dfy-include {
  display: flex;
  align-items: flex-start;
  gap: .55rem;
  font-size: .9rem;
  color: var(--text-muted);
  line-height: 1.45;
}
.dfy-include strong {
  color: var(--text);
  font-weight: 700;
}
.dfy-check {
  flex-shrink: 0;
  color: #15803D;
  margin-top: 3px;
}

@media (max-width: 960px) {
  .dfy-grid { grid-template-columns: 1fr; gap: 2rem; }
  .dfy-headline { position: static; }
  .dfy-includes { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .dfy-explainer { padding: 1.75rem 1.5rem; margin-top: 2.5rem; border-radius: 16px; }
  .dfy-title { font-size: 1.35rem; }
  .dfy-includes { grid-template-columns: 1fr; gap: .7rem; padding-top: 1.4rem; }
  .dfy-cta { width: 100%; justify-content: center; }
}

/* ============================================================
   BLOG ARTICLE HERO IMAGE — capped height, editorial proportions
   ============================================================ */
.article-hero-image img {
  max-height: 360px !important;
  aspect-ratio: 21/9 !important;
}
@media (max-width: 768px) {
  .article-hero-image img { max-height: 240px !important; aspect-ratio: 16/9 !important; }
}

/* ============================================================
   INLINE MID-ARTICLE CTA — single isolated CTA, brand-2026
   ============================================================ */
.inline-cta {
  background: linear-gradient(135deg, #FCFAF7 0%, #F8F5F1 100%);
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent);
  border-radius: 14px;
  padding: 24px 28px;
  margin: 36px 0;
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}
.inline-cta-text { flex: 1 1 280px; min-width: 0; }
.inline-cta-text strong {
  display: block;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 4px;
  letter-spacing: -.01em;
}
.inline-cta-text span {
  font-size: .92rem;
  color: var(--text-muted);
  line-height: 1.5;
}
.inline-cta a.inline-cta-btn {
  flex-shrink: 0;
  background: var(--accent);
  color: #fff !important;
  padding: 12px 22px;
  border-radius: 10px;
  font-weight: 700;
  font-size: .95rem;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 2px 10px rgba(234,88,12,.2);
  transition: background .15s, transform .15s;
}
.inline-cta a.inline-cta-btn:hover { background: var(--accent-hover); transform: translateY(-1px); text-decoration: none; }
@media (max-width: 540px) {
  .inline-cta { padding: 18px 20px; gap: 14px; }
  .inline-cta a.inline-cta-btn { width: 100%; text-align: center; padding: 14px 18px; }
}

/* ============================================================
   Task 4.6 — Hero-Mockup + Anti-Halluzination + Setup-Trust-Bar
   ============================================================ */

/* Hero Chat Mockup */
.hero-mockup {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-2xl);
  padding: 1.25rem;
  box-shadow: var(--shadow-hero);
}

.hero-demo-bubble-user {
  background: var(--primary-tint);
  border: 1px solid var(--primary);
  border-radius: var(--r-lg) var(--r-lg) var(--r-lg) 4px;
  padding: 0.75rem 1rem;
  font-size: 0.95rem;
  color: var(--primary);
  font-weight: 500;
  display: inline-block;
  max-width: 90%;
}

.hero-demo-bubble-good {
  background: #f0fdf4;
  border: 1.5px solid #86efac;
  border-radius: 4px var(--r-lg) var(--r-lg) var(--r-lg);
  padding: 0.75rem 1rem;
  font-size: 0.95rem;
  color: #166534;
}

.hero-demo-bubble-bad {
  background: #fff1f2;
  border: 1.5px solid #fca5a5;
  border-radius: var(--r-lg);
  padding: 0.75rem 1rem;
  font-size: 0.95rem;
  color: #991b1b;
}

.confidence-badge {
  background: #d1fae5;
  color: #065f46;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
}

/* Anti-Halluzination Section */
.anti-hallucination-section {
  background: var(--surface-2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.anti-hal-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  max-width: 56rem;
  margin: 0 auto;
}

.anti-hal-col {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.anti-hal-col-center {
  border-left: 1px solid var(--border);
  border-right: 1px solid var(--border);
  padding: 0 1.25rem;
}

.anti-hal-label {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.anti-hal-label-bad {
  background: #fff1f2;
  color: #991b1b;
}

.anti-hal-label-good {
  background: #d1fae5;
  color: #065f46;
}

.anti-hal-caption {
  font-size: 0.82rem;
  margin: 0;
}

.anti-hal-caption-bad { color: #991b1b; }
.anti-hal-caption-good { color: #15803d; }

@media (max-width: 767px) {
  .anti-hal-grid {
    grid-template-columns: 1fr;
  }
  .anti-hal-col-center {
    border-left: none;
    border-right: none;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    padding: 1.25rem 0;
  }
}

/* Setup-Time Trust Bar */
.setup-trust-bar {
  background: var(--primary);
  color: #fff;
  text-align: center;
  padding: 0.875rem 1rem;
}

.setup-trust-text {
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}

/* Desktop hero: 2-col text + mockup */
@media (min-width: 901px) {
  .hero-mockup {
    margin-left: 0;
  }
}

@media (max-width: 900px) {
  .hero-mockup {
    margin: 0;
    width: 100%;
  }
}
