/* Wafloxi home page — Direction A "Chat-first". Mobile first; scoped to index.html only
   (the other public pages keep styles.css). */

:root {
  --bg: #f7faf8;
  --surface: #ffffff;
  --tint: #eef6f1;
  --line: #e1ebe5;
  --line-strong: #cfe0d5;
  --text: #0f1f17;
  --muted: #3f5247;
  --soft: #55685d;
  --green: #16a34a;
  --green-hover: #15803d;
  --green-ink: #166534;
  --green-wash: #dcf3e4;
  --deep: #0f3d26;
  --radius: 16px;
  --radius-lg: 22px;
  --shadow: 0 12px 32px rgba(15, 31, 23, 0.08);
  --header-h: 64px;
}

*,
*::before,
*::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
h1, h2, h3 { margin: 0; line-height: 1.15; letter-spacing: -0.02em; }
p { margin: 0; }
a { color: var(--green-ink); }
a:hover { color: var(--green-hover); }
:focus-visible { outline: 3px solid #86efac; outline-offset: 2px; border-radius: 6px; }

.wrap { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 20px; }
.wrap.narrow { max-width: 760px; }
.center { text-align: center; }

.skip-link { position: absolute; left: 12px; top: -48px; z-index: 100; background: var(--text); color: #fff; padding: 10px 14px; border-radius: 10px; }
.skip-link:focus { top: 12px; color: #fff; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 18px; border-radius: 12px; border: 1px solid transparent;
  font: inherit; font-size: 15px; font-weight: 600; text-decoration: none; cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
  white-space: nowrap;
}
.btn-lg { min-height: 52px; padding: 0 22px; font-size: 16px; border-radius: 14px; }
.btn-sm { min-height: 40px; padding: 0 16px; font-size: 14px; }
.btn-block { display: flex; width: 100%; }
.btn-primary { background: var(--green); color: #fff; }
.btn-primary:hover { background: var(--green-hover); color: #fff; }
.btn-outline { background: var(--surface); border-color: var(--line-strong); color: var(--text); }
.btn-outline:hover { border-color: var(--green); color: var(--text); }
.btn-outline svg { color: var(--green); }
.btn-ghost { background: transparent; color: var(--text); padding: 0 12px; }
.btn-ghost:hover { color: var(--green-ink); }
.btn-light { background: #fff; color: var(--deep); }
.btn-light:hover { background: var(--green-wash); color: var(--deep); }
.btn-on-dark { background: transparent; border-color: rgba(255, 255, 255, 0.45); color: #fff; }
.btn-on-dark:hover { border-color: #fff; color: #fff; }

.icon-btn {
  width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--line-strong); background: var(--surface); color: var(--text);
  border-radius: 12px; cursor: pointer;
}

.fineprint { font-size: 13px; color: var(--soft); }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(255, 255, 255, 0.92); backdrop-filter: saturate(150%) blur(10px);
  border-bottom: 1px solid var(--line);
  padding-top: env(safe-area-inset-top);
}
.header-row { height: var(--header-h); display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.brand { display: inline-flex; align-items: center; gap: 9px; min-height: 44px; color: var(--text); text-decoration: none; font-weight: 800; font-size: 20px; letter-spacing: -0.02em; }
.brand:hover { color: var(--text); }
.desktop-nav { display: none; gap: 6px; }
.desktop-nav a { color: var(--muted); text-decoration: none; font-weight: 500; font-size: 15px; padding: 10px 12px; border-radius: 10px; }
.desktop-nav a:hover { color: var(--text); background: var(--tint); }
.header-actions { display: flex; align-items: center; gap: 6px; }
.hide-sm { display: none; }

/* Mobile menu */
.mobile-menu {
  position: fixed; inset: 0; z-index: 60; background: var(--surface);
  display: flex; flex-direction: column; padding: env(safe-area-inset-top) 20px calc(20px + env(safe-area-inset-bottom));
}
.mobile-menu[hidden] { display: none; }
.mobile-menu-top { height: var(--header-h); display: flex; align-items: center; justify-content: space-between; }
.mobile-links { display: flex; flex-direction: column; padding: 12px 0; }
.mobile-links a { color: var(--text); text-decoration: none; font-size: 20px; font-weight: 600; padding: 14px 4px; border-bottom: 1px solid var(--line); }
.mobile-menu-cta { margin-top: auto; display: flex; flex-direction: column; gap: 10px; text-align: center; }
body.menu-open { overflow: hidden; }

/* Hero */
.hero { padding: 28px 0 12px; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; }
.hero-copy { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.pill { align-self: flex-start; font-size: 13px; font-weight: 600; color: var(--green-ink); background: var(--green-wash); padding: 6px 12px; border-radius: 999px; }
.hero h1 { font-size: clamp(32px, 8.6vw, 56px); font-weight: 800; }
.accent { color: var(--green); }
.lead { font-size: 17px; color: var(--muted); max-width: 560px; }
.cta-stack { display: flex; flex-direction: column; gap: 10px; padding-top: 4px; }
.cta-stack .btn { width: 100%; }

.hero-visual { min-width: 0; }
.chat-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); }
.chat-head { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-bottom: 1px solid #edf2ef; }
.avatar { width: 38px; height: 38px; border-radius: 50%; background: var(--green-wash); color: var(--green-ink); font-weight: 700; font-size: 14px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.chat-name { font-size: 15px; font-weight: 700; }
.chat-sub { font-size: 12.5px; color: var(--soft); }
.chat-body { display: flex; flex-direction: column; gap: 10px; padding: 14px; background: #f2f6f3; min-height: 230px; max-height: 340px; overflow-y: auto; }
.bubble { max-width: 82%; padding: 10px 12px; font-size: 14.5px; line-height: 1.45; overflow-wrap: anywhere; }
.bubble.in { align-self: flex-start; background: #fff; border-radius: 4px 14px 14px 14px; }
.bubble.out { align-self: flex-end; background: #d9f5e3; border-radius: 14px 4px 14px 14px; }
.bubble.new { animation: pop 0.25s ease-out; }
@keyframes pop { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .bubble.new { animation: none; } }
.chat-event { align-self: center; font-size: 12.5px; color: var(--muted); background: #fff; border: 1px solid #dfe8e2; padding: 5px 10px; border-radius: 999px; text-align: center; }
.typing { align-self: flex-end; background: #d9f5e3; border-radius: 14px; padding: 12px 14px; display: flex; gap: 4px; }
.typing span { width: 6px; height: 6px; border-radius: 50%; background: var(--green-ink); opacity: 0.4; animation: blink 1s infinite; }
.typing span:nth-child(2) { animation-delay: 0.15s; }
.typing span:nth-child(3) { animation-delay: 0.3s; }
@keyframes blink { 50% { opacity: 1; } }
.chat-try { padding: 12px 14px 14px; border-top: 1px solid #edf2ef; }
.chat-try p { font-size: 13px; font-weight: 600; color: var(--soft); margin-bottom: 8px; }
.chip-row { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { min-height: 40px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line-strong); background: #fff; color: var(--green-ink); font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; }
.chip:hover { border-color: var(--green); background: var(--green-wash); }
.chip:disabled { opacity: 0.55; cursor: default; }
.visual-note { font-size: 12.5px; color: var(--soft); margin-top: 10px; text-align: center; }

/* Sections */
.section { padding: 56px 0; }
.section-tint { background: var(--tint); }
.section-head { display: flex; flex-direction: column; gap: 10px; margin-bottom: 28px; max-width: 640px; }
.section-head h2 { font-size: clamp(26px, 6.4vw, 38px); font-weight: 800; }
.section-head p { color: var(--muted); font-size: 17px; }

.feature-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
.feature { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; display: grid; grid-template-columns: 44px minmax(0, 1fr); column-gap: 14px; row-gap: 4px; align-items: start; }
.feature-icon { grid-row: span 2; width: 44px; height: 44px; border-radius: 12px; background: var(--green-wash); color: var(--green-ink); display: flex; align-items: center; justify-content: center; }
.feature h3 { font-size: 17px; font-weight: 700; letter-spacing: -0.01em; }
.feature p { font-size: 15px; color: var(--muted); }

.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; }
.steps li { display: flex; gap: 14px; align-items: flex-start; background: var(--surface); border-radius: var(--radius); padding: 18px; border: 1px solid var(--line); }
.step-num { width: 36px; height: 36px; flex-shrink: 0; border-radius: 50%; background: var(--green); color: #fff; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.steps h3 { font-size: 17px; font-weight: 700; margin-bottom: 4px; letter-spacing: -0.01em; }
.steps p { font-size: 15px; color: var(--muted); }

/* Pricing */
.price-controls { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 20px; }
.segmented { display: inline-flex; padding: 4px; gap: 4px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); }
.seg-btn { min-height: 40px; padding: 0 14px; border: 0; border-radius: 10px; background: transparent; color: var(--muted); font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; }
.seg-btn[aria-pressed="true"] { background: var(--green); color: #fff; }
.seg-btn .save { font-size: 11.5px; font-weight: 700; background: var(--green-wash); color: var(--green-ink); padding: 2px 6px; border-radius: 999px; }
.seg-btn[aria-pressed="true"] .save { background: rgba(255, 255, 255, 0.22); color: #fff; }

.price-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; align-items: start; }
.price-card { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 22px; display: flex; flex-direction: column; gap: 10px; }
.price-card.featured { border: 2px solid var(--green); box-shadow: var(--shadow); }
.ribbon { align-self: flex-start; font-size: 12px; font-weight: 700; color: #fff; background: var(--green); padding: 4px 10px; border-radius: 999px; }
.price-card h3 { font-size: 20px; font-weight: 800; }
.plan-desc { font-size: 14.5px; color: var(--muted); }
.price { display: flex; align-items: baseline; gap: 6px; margin-top: 4px; }
.amount { font-size: 36px; font-weight: 800; letter-spacing: -0.02em; }
.per { font-size: 15px; color: var(--soft); }
.billed { font-size: 13px; color: var(--soft); margin-top: -6px; }
.plan-features { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.plan-features li { position: relative; padding-left: 26px; font-size: 14.5px; color: var(--text); }
.plan-features li::before { content: ""; position: absolute; left: 2px; top: 6px; width: 12px; height: 7px; border-left: 2.5px solid var(--green); border-bottom: 2.5px solid var(--green); transform: rotate(-45deg); }
#pricing .fineprint { margin-top: 18px; }

/* FAQ */
.faq { display: flex; flex-direction: column; gap: 10px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.faq summary { list-style: none; cursor: pointer; padding: 16px 52px 16px 18px; min-height: 56px; display: flex; align-items: center; font-weight: 600; font-size: 16px; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 20px; top: 50%; width: 9px; height: 9px; border-right: 2px solid var(--soft); border-bottom: 2px solid var(--soft); transform: translateY(-70%) rotate(45deg); transition: transform 0.2s ease; }
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq details p { padding: 0 18px 18px; color: var(--muted); font-size: 15px; }

/* CTA band */
.cta-band { background: var(--deep); color: #fff; border-radius: var(--radius-lg); padding: 32px 22px; display: flex; flex-direction: column; gap: 12px; text-align: center; align-items: center; }
.cta-band h2 { font-size: clamp(24px, 6vw, 36px); font-weight: 800; color: #fff; }
.cta-band p { color: #d7f3e2; font-size: 16px; }
.cta-row { display: flex; flex-direction: column; gap: 10px; width: 100%; margin-top: 8px; }
.cta-row .btn { width: 100%; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); background: var(--surface); padding: 40px 0 calc(96px + env(safe-area-inset-bottom)); }
.footer-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 20px; }
.footer-brand { grid-column: 1 / -1; display: flex; flex-direction: column; gap: 10px; }
.footer-brand p { color: var(--muted); font-size: 14.5px; max-width: 320px; }
.footer-h { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--soft); margin-bottom: 6px; }
.footer-grid a:not(.brand) { display: flex; align-items: center; min-height: 44px; color: var(--text); text-decoration: none; font-size: 15px; }
.footer-grid a:not(.brand):hover { color: var(--green-ink); }
.footer-bottom { margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--line); }
.footer-bottom p { font-size: 13px; color: var(--soft); }

/* Sticky phone CTA */
.sticky-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, 0.96); border-top: 1px solid var(--line);
  transform: translateY(110%); transition: transform 0.2s ease;
}
.sticky-cta.show { transform: none; }
.sticky-cta .btn { min-height: 50px; }

/* Cookie notice */
.cookie {
  position: fixed; left: 12px; right: 12px; z-index: 50;
  bottom: calc(12px + env(safe-area-inset-bottom));
  display: flex; align-items: center; gap: 12px;
  background: var(--text); color: #e8f1ec; border-radius: 14px; padding: 12px 12px 12px 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}
.cookie[hidden] { display: none; }
.cookie p { font-size: 13.5px; line-height: 1.45; flex: 1; }
.cookie a { color: #86efac; }
body.has-sticky .cookie { bottom: calc(82px + env(safe-area-inset-bottom)); }

/* ≥ 600px */
@media (min-width: 600px) {
  .cta-stack { flex-direction: row; flex-wrap: wrap; }
  .cta-stack .btn { width: auto; }
  .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cta-row { flex-direction: row; justify-content: center; width: auto; }
  .cta-row .btn { width: auto; }
  .footer-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .cookie { left: auto; max-width: 440px; }
}

/* ≥ 900px: desktop layout */
@media (min-width: 900px) {
  .desktop-nav { display: flex; }
  .menu-btn { display: none; }
  .hide-sm { display: inline-flex; }
  .hero { padding: 64px 0 40px; }
  .hero-grid { grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: 56px; align-items: center; }
  .section { padding: 88px 0; }
  .feature-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
  .feature { display: flex; flex-direction: column; gap: 10px; padding: 24px; }
  .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
  .steps li { flex-direction: column; padding: 24px; }
  .price-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
  .cta-band { padding: 56px 40px; }
  .footer-grid { grid-template-columns: 1.4fr repeat(3, minmax(0, 1fr)); }
  .footer-brand { grid-column: auto; }
  .site-footer { padding-bottom: 40px; }
  .sticky-cta { display: none; }
  body.has-sticky .cookie { bottom: 24px; }
  .cookie { right: 24px; bottom: 24px; }
}

/* ==========================================================================
   Content pages (policies and guides): same header/footer as the home page,
   a readable single column, and styles for the components those pages use.
   ========================================================================== */
.doc {
  /* Names the older page markup still references inline */
  --color-text-main: var(--text);
  --color-text-muted: var(--muted);
  --color-primary: var(--green);
  --color-border: var(--line);
  --color-bg-elevated: var(--tint);
  --radius-xl: var(--radius-lg);
  display: block;
  width: 100%;
  max-width: 820px;
  margin: 0 auto;
  padding: 28px 20px 64px;
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
  overflow-wrap: break-word;
}
.doc > *:first-child { margin-top: 0; }
.doc h1,
.doc .legal-title,
.doc .guidelines-title,
.doc .practices-title { font-size: clamp(28px, 7vw, 42px); font-weight: 800; line-height: 1.15; letter-spacing: -0.02em; margin: 8px 0 12px; }
.doc h2 { font-size: clamp(22px, 5.4vw, 28px); font-weight: 800; margin: 40px 0 12px; scroll-margin-top: 84px; }
.doc h3 { font-size: 19px; font-weight: 700; margin: 32px 0 10px; letter-spacing: -0.01em; scroll-margin-top: 84px; }
.doc h4 { font-size: 16px; font-weight: 700; margin: 20px 0 8px; letter-spacing: 0; }
.doc p { margin: 0 0 14px; color: var(--muted); }
.doc strong { color: var(--text); }
.doc ul, .doc ol { margin: 0 0 16px; padding-left: 22px; color: var(--muted); }
.doc li { margin: 6px 0; }
.doc li::marker { color: var(--green); }
.doc a { color: var(--green-ink); text-underline-offset: 3px; }
.doc code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 0.88em; background: var(--tint); border: 1px solid var(--line); border-radius: 6px; padding: 1px 6px; color: var(--green-ink); overflow-wrap: anywhere; }
.doc hr { border: 0; border-top: 1px solid var(--line); margin: 32px 0; }
.doc .text-cyan { color: var(--green-ink); }

/* Page heading block */
.doc .legal-header,
.doc .guidelines-header,
.doc .practices-header { padding-bottom: 20px; margin-bottom: 24px; border-bottom: 1px solid var(--line); }
.doc .legal-subtitle,
.doc .guidelines-subtitle,
.doc .practices-subtitle { font-size: 17px; color: var(--muted); }
.doc .legal-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.doc .legal-meta span { font-size: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 6px 12px; color: var(--muted); }
.doc .breadcrumb-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 14px; color: var(--soft); margin-bottom: 16px; }
.doc .breadcrumb-nav a { color: var(--green-ink); text-decoration: none; display: inline-flex; align-items: center; min-height: 44px; }
.doc .badge-row { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 4px; }
.doc .pill-badge,
.doc .bubble-category-tag { display: inline-flex; align-items: center; font-size: 12.5px; font-weight: 600; padding: 5px 11px; border-radius: 999px; background: var(--green-wash); color: var(--green-ink); line-height: 1.3; }
.doc .pill-cyan,
.doc .pill-blue { background: #e0edff; color: #1d4ed8; }
.doc .pill-purple { background: #efe7ff; color: #6d28d9; }

/* Boxes and cards */
.doc .legal-info-card,
.doc .compliance-box,
.doc .highlight-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; margin: 20px 0; }
.doc .compliance-box,
.doc .highlight-card { background: var(--tint); border-color: #cfe7d8; }
.doc .legal-info-card p:last-child,
.doc .compliance-box p:last-child,
.doc .highlight-card p:last-child { margin-bottom: 0; }
.doc .highlight-card-title { font-weight: 700; font-size: 16px; color: var(--text); margin-bottom: 8px; line-height: 1.45; }
.doc .rule-card-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; margin: 16px 0 24px; }
.doc .rule-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; }
.doc .rule-card-header { font-weight: 700; font-size: 16px; color: var(--text); margin-bottom: 6px; }
.doc .rule-card-desc { margin: 0; font-size: 15px; }

/* Tables: scroll inside their own box on phones */
.doc .summary-table-wrap,
.doc .table-responsive { width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); margin: 16px 0 24px; }
.doc table { width: 100%; border-collapse: collapse; font-size: 14.5px; min-width: 520px; }
.doc th { text-align: left; font-weight: 700; color: var(--text); background: var(--tint); padding: 12px 14px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.doc td { padding: 12px 14px; border-bottom: 1px solid var(--line); color: var(--muted); vertical-align: top; }
.doc tr:last-child td { border-bottom: 0; }
.doc .status-badge-tier { display: inline-flex; align-items: center; font-size: 13px; font-weight: 600; padding: 4px 10px; border-radius: 999px; white-space: nowrap; }
.doc .tier-green { background: var(--green-wash); color: var(--green-ink); }
.doc .tier-yellow { background: #fef3c7; color: #92400e; }
.doc .tier-red { background: #fee2e2; color: #b91c1c; }

/* Checklists */
.doc .quick-checklist { list-style: none; padding-left: 0; }
.doc .quick-checklist li { position: relative; padding-left: 28px; }
.doc .quick-checklist li::before { content: ""; position: absolute; left: 4px; top: 8px; width: 12px; height: 7px; border-left: 2.5px solid var(--green); border-bottom: 2.5px solid var(--green); transform: rotate(-45deg); }

/* Example WhatsApp template messages */
.doc .whatsapp-bubble { background: #f2f6f3; border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; margin: 12px 0; max-width: 420px; }
.doc .bubble-category-tag { margin-bottom: 10px; }
.doc .bubble-header { font-weight: 700; color: var(--text); margin-bottom: 6px; }
.doc .bubble-body { background: #fff; border-radius: 4px 14px 14px 14px; padding: 10px 12px; color: var(--text); font-size: 15px; line-height: 1.5; }
.doc .bubble-footer { font-size: 12.5px; color: var(--soft); margin-top: 6px; }
.doc .bubble-btn-group { display: flex; flex-direction: column; gap: 6px; margin-top: 8px; }
.doc .bubble-btn { display: flex; align-items: center; justify-content: center; min-height: 40px; background: #fff; border-radius: 10px; color: var(--green-ink); font-weight: 600; font-size: 14.5px; }

/* Call-to-action box inside guides */
.doc .cta-banner { background: var(--deep); color: #fff; border-radius: var(--radius-lg); padding: 28px 22px; text-align: center; margin: 40px 0 8px; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.doc .cta-banner h3 { color: #fff; margin: 0; font-size: 22px; }
.doc .cta-banner p { color: #d7f3e2; margin: 0; }
.doc .cta-banner .btn { background: #fff; color: var(--deep); min-height: 50px; padding: 0 22px !important; font-size: 16px !important; margin-top: 6px; }
.doc .cta-banner .btn:hover { background: var(--green-wash); }

/* Page-end call to action shared by the content pages */
.doc-cta { margin: 48px auto 0; max-width: 820px; padding: 0 20px 56px; }

@media (min-width: 700px) {
  .doc { padding-top: 48px; }
  .doc .rule-card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .doc .bubble-btn-group { flex-direction: row; flex-wrap: wrap; }
  .doc .bubble-btn { flex: 1 1 auto; padding: 0 12px; }
}

/* Two-column "label: value" summary tables stack on phones instead of scrolling */
@media (max-width: 599px) {
  .doc .summary-table { min-width: 0; }
  .doc .summary-table tr { display: block; border-bottom: 1px solid var(--line); }
  .doc .summary-table tr:last-child { border-bottom: 0; }
  .doc .summary-table th,
  .doc .summary-table td { display: block; width: auto; white-space: normal; border-bottom: 0; }
  .doc .summary-table th { padding: 12px 14px 4px; }
  .doc .summary-table td { padding: 0 14px 12px; background: var(--tint); }
}

/* Utility classes replacing inline style="" attributes (the CSP has no style unsafe-inline). */
.u-mb-0 { margin-bottom: 0; }
.u-mb-14 { margin-bottom: 14px; }
.u-text-danger { color: #ef4444; }
.u-text-main-strong { color: var(--color-text-main); font-weight: 600; }
.u-btn-lg { padding: 14px 32px; font-size: 1rem; }
