:root {
  --ink: #1a1410;
  --muted: #6b5e52;
  --paper: #fff8f1;
  --card: rgba(255, 252, 248, 0.94);
  --line: rgba(26, 20, 16, 0.1);
  --accent: #c45c26;
  --accent-2: #0f6b5c;
  --hot: #d91f5c;
  --info: #3d5a80;
  --info-bg: #e8eef5;
  --ok: #0f6b5c;
  --ok-bg: #e4f5ef;
  --draft: #8a5a2b;
  --draft-bg: #f7ead8;
  --shadow: 0 10px 28px rgba(40, 20, 10, 0.08);
  --shadow-hover: 0 16px 36px rgba(40, 20, 10, 0.14);
  --radius: 16px;
  --font: "DM Sans", system-ui, sans-serif;
  --display: "Fraunces", Georgia, serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --section-gap: 1.75rem;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--paper);
  min-height: 100vh;
  font-weight: 400;
}
.bg {
  position: fixed; inset: 0; z-index: -1;
  background:
    radial-gradient(900px 500px at 8% -8%, #ffd6a8 0%, transparent 55%),
    radial-gradient(700px 420px at 100% 0%, #ffc2d4 0%, transparent 48%),
    radial-gradient(600px 400px at 85% 100%, #9fe8d8 0%, transparent 45%),
    linear-gradient(180deg, #fff4ea, #fff8f1 42%, #f3faf7);
}

.demo-chip {
  position: fixed; top: 10px; right: 10px; z-index: 50;
  font-size: .65rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase;
  padding: .28rem .55rem; border-radius: 999px;
  background: rgba(26, 20, 16, 0.5); color: #fff8f1;
  backdrop-filter: blur(6px); opacity: .7;
}

.top {
  display: flex; justify-content: space-between; align-items: center;
  padding: 1.35rem 1.5rem 0.5rem; gap: 1rem; flex-wrap: wrap;
  max-width: 1120px; margin: 0 auto;
}
.brand { display: flex; gap: .9rem; align-items: center; }
.mark {
  width: 48px; height: 48px; border-radius: 14px;
  display: grid; place-items: center; font-weight: 700; color: white;
  background: linear-gradient(135deg, var(--hot), var(--accent));
  box-shadow: var(--shadow);
}
.eyebrow { margin: 0; font-size: .72rem; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
h1 { margin: .15rem 0 0; font-family: var(--display); font-size: 1.55rem; font-weight: 700; }
.top-actions { display: flex; gap: .55rem; align-items: center; flex-wrap: wrap; }
.site-link-short { display: none; }
.site-link-full { display: inline; }

.sound-toggle {
  display: inline-flex; align-items: center; gap: .4rem;
  font-size: .75rem; font-weight: 600; color: var(--muted);
  background: rgba(255,255,255,.7); border: 1px solid var(--line);
  border-radius: 999px; padding: .35rem .65rem; cursor: pointer;
}
.sound-toggle.on { color: var(--accent-2); border-color: rgba(15,107,92,.35); }

main { max-width: 1120px; margin: 0 auto; padding: 0 1.25rem 3.5rem; }
.hero { margin: 1rem 0 1.5rem; }
.lede { font-size: 1.05rem; line-height: 1.55; color: var(--muted); max-width: 46rem; margin: 0 0 1.15rem; }

/* Journey pipeline with connectors */
.journey {
  list-style: none; margin: 0 0 1.25rem; padding: 0;
  display: grid; grid-template-columns: 1fr auto 1fr auto 1fr;
  gap: .35rem; align-items: stretch;
}
.journey-step {
  display: flex; gap: .7rem; align-items: center;
  background: var(--card); border: 1px solid var(--line);
  border-radius: 14px; padding: .8rem .9rem; box-shadow: var(--shadow);
  transition: border-color .25s var(--ease), transform .25s var(--ease), box-shadow .25s var(--ease);
}
.journey-step:hover { box-shadow: var(--shadow-hover); transform: translateY(-2px); }
.journey-step.active { border-color: var(--accent-2); box-shadow: var(--shadow-hover); }
.journey-step.done .num { background: linear-gradient(135deg, var(--accent-2), #168a74); }
.journey-step .num {
  width: 28px; height: 28px; border-radius: 50%;
  display: grid; place-items: center; flex-shrink: 0;
  background: var(--ink); color: #fff; font-size: .8rem; font-weight: 700;
}
.journey-step strong { display: block; font-size: .92rem; }
.journey-step small { color: var(--muted); font-size: .75rem; }
.journey-connector {
  display: flex; align-items: center; justify-content: center;
  color: var(--accent); font-size: 1.1rem; font-weight: 700; opacity: .55;
  min-width: 28px;
}
.journey-connector::before {
  content: "";
  width: 18px; height: 0;
  border-top: 2px dotted rgba(196, 92, 38, 0.55);
  margin-right: 2px;
}
.journey-connector::after { content: "›"; }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: .75rem; }
.stat {
  display: flex; gap: .75rem; align-items: flex-start;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1rem; box-shadow: var(--shadow);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.stat:hover { transform: translateY(-2px); box-shadow: var(--shadow-hover); }
.stat-icon {
  width: 36px; height: 36px; border-radius: 10px; flex-shrink: 0;
  display: grid; place-items: center; font-size: .78rem; font-weight: 700;
  background: linear-gradient(135deg, #ffe8d6, #ffd0e0); color: var(--ink);
}
.stat span {
  display: block; font-family: var(--display); font-size: 1.45rem; font-weight: 700; line-height: 1.1;
  transition: transform .2s var(--ease);
}
.stat span.bump { animation: bump .35s var(--ease); }
@keyframes bump {
  0% { transform: translateY(4px); opacity: .5; }
  100% { transform: none; opacity: 1; }
}
.stat label { display: block; color: var(--muted); font-size: .78rem; margin-top: .15rem; font-weight: 500; }
.trend { display: block; margin-top: .35rem; font-size: .7rem; font-style: normal; color: var(--muted); font-weight: 600; }
.trend.up { color: var(--ok); }

.panel {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.35rem 1.35rem; box-shadow: var(--shadow); margin-bottom: var(--section-gap);
  transition: box-shadow .25s var(--ease), transform .25s var(--ease);
}
.panel:hover { box-shadow: var(--shadow-hover); }
.panel.wide { width: 100%; }
.panel-head {
  display: flex; justify-content: space-between; align-items: flex-start;
  gap: 1rem; flex-wrap: wrap; margin-bottom: .95rem;
}
.panel-head h2, .row-head h2, .panel h2 {
  margin: 0; font-family: var(--display); font-size: 1.28rem; font-weight: 700;
}
.panel-head p, .panel > p { color: var(--muted); line-height: 1.45; margin: .35rem 0 0; font-size: .92rem; }
.step-label {
  margin: 0 0 .25rem !important;
  font-size: .7rem !important; font-weight: 700; letter-spacing: .06em;
  text-transform: uppercase; color: var(--accent) !important;
}

.field { display: grid; gap: .35rem; font-size: .82rem; color: var(--muted); font-weight: 500; }
.field em { font-style: normal; opacity: .7; font-weight: 400; }
.field input, .field select, #chat-input {
  border: 1px solid var(--line); border-radius: 12px; padding: .7rem .8rem;
  font: inherit; background: #fff; color: var(--ink); font-weight: 400;
  transition: border-color .2s;
}
.field input:focus, .field select:focus, #chat-input:focus {
  outline: none; border-color: rgba(196, 92, 38, 0.45);
}
.blog-controls {
  display: grid; grid-template-columns: 1.4fr 1fr auto; gap: .75rem; align-items: end;
}

.primary, .ghost, #chat-form button, .copy-btn, .preview-btn, .quick-replies button, .follow-chip {
  border: 0; border-radius: 12px; padding: .7rem 1rem; font: inherit; font-weight: 600; cursor: pointer;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), background .2s;
}
.primary {
  background: linear-gradient(135deg, var(--accent), var(--hot)); color: white;
  display: inline-flex; flex-direction: column; align-items: stretch; justify-content: center;
  gap: 0; min-height: 44px; position: relative; overflow: hidden;
  min-width: 200px;
}
.primary .btn-inner {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .15rem 0;
}
.primary.shrink { width: auto; }
.primary:disabled { opacity: .78; cursor: wait; }
.primary:not(:disabled):hover { transform: translateY(-1px); box-shadow: 0 8px 20px rgba(196,92,38,.28); }
.btn-progress {
  position: absolute; left: 0; bottom: 0; height: 3px; width: 0%;
  background: rgba(255,255,255,.85);
  transition: width .35s linear;
}
.primary.busy .btn-progress { width: 100%; transition: width 1.4s linear; }

.ghost {
  background: rgba(255,255,255,.75); border: 1px solid var(--line); color: var(--ink);
  text-decoration: none; display: inline-flex; align-items: center; justify-content: center; gap: .4rem;
}
.ghost:hover, .preview-btn:hover { border-color: rgba(26,20,16,.25); transform: translateY(-1px); }

.spinner {
  width: 15px; height: 15px; border: 2px solid rgba(255,255,255,.35);
  border-top-color: #fff; border-radius: 50%; animation: spin .65s linear infinite;
}
.ghost .spinner { border-color: rgba(26,20,16,.2); border-top-color: var(--ink); }
@keyframes spin { to { transform: rotate(360deg); } }

.action-status {
  margin: .7rem 0; padding: .65rem .85rem; border-radius: 12px; font-size: .88rem; font-weight: 500;
  animation: fadeSlide .3s var(--ease);
}
.action-status.loading { background: #fff3e6; color: #8a4b16; }
.action-status.success { background: var(--ok-bg); color: var(--ok); }
.action-status.error { background: #fde8ec; color: #9b1c3a; }
@keyframes fadeSlide {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: none; }
}

.process-log {
  background: #1a1410; color: #f6e7d8; border-radius: 12px; padding: .75rem 1rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: .78rem; line-height: 1.55; max-height: 150px; overflow: auto; margin-bottom: .95rem;
}
.process-log .line { opacity: 0; animation: fadeIn .3s forwards; }
@keyframes fadeIn { to { opacity: 1; } }

.deal-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: .8rem;
}
.deal-card {
  background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: .95rem 1rem;
  display: grid; gap: .35rem;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
  animation: cardIn .35s var(--ease);
}
.deal-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); }
@keyframes cardIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}
.deal-top { display: flex; justify-content: space-between; gap: .5rem; align-items: center; }
.deal-top strong { font-size: .95rem; }
.countdown {
  font-size: .68rem; font-weight: 700; color: var(--accent);
  background: #fff0e6; padding: .2rem .45rem; border-radius: 999px; white-space: nowrap;
}
.deal-title { margin: 0; font-size: .88rem; line-height: 1.35; font-weight: 500; }
.deal-meta { margin: 0; font-size: .75rem; color: var(--muted); }
.deal-meta .fresh { font-weight: 600; color: var(--accent-2); }
.deal-actions { display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; margin-top: .35rem; }
.code-pill {
  font-size: .78rem; background: #f4efe8; padding: .28rem .5rem; border-radius: 8px; font-weight: 700;
}
.copy-btn {
  padding: .28rem .55rem; font-size: .72rem; border-radius: 8px;
  background: var(--accent-2); color: #fff; min-width: 58px;
}
.copy-btn.copied { background: var(--ok); }
.auto-pill, .tag {
  font-size: .68rem; font-weight: 600; padding: .22rem .45rem; border-radius: 999px;
  background: #f0ebe4; color: var(--muted);
}

.blog-table { display: grid; gap: .7rem; margin-top: .8rem; }
.blog-card {
  display: flex; justify-content: space-between; gap: 1rem; align-items: flex-start;
  padding: 1.05rem 1.1rem; border-radius: 14px; border: 1px solid var(--line); background: #fff;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
  animation: cardIn .4s var(--ease);
}
.blog-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-hover); }
.blog-card.enter {
  animation: slideIn .4s var(--ease);
}
@keyframes slideIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: none; }
}
.blog-card-main { min-width: 0; flex: 1; }
.blog-badges { display: flex; flex-wrap: wrap; gap: .35rem; margin-bottom: .45rem; }
.status-pill {
  font-size: .65rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
  padding: .22rem .5rem; border-radius: 999px;
}
.status-pill.draft { background: var(--draft-bg); color: var(--draft); }
.status-pill.seo { background: var(--ok-bg); color: var(--ok); }
.blog-title { display: block; font-size: 1rem; line-height: 1.35; margin-bottom: .35rem; }
.excerpt { margin: 0; color: var(--muted); font-size: .85rem; line-height: 1.45; }
.blog-meta { margin: .4rem 0 0; font-size: .75rem; color: var(--muted); }
.row-head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; flex-wrap: wrap; }
.muted { color: var(--muted); font-size: .88rem; }

.chat-box { border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: #fff; }
.chat-log { height: 260px; overflow: auto; padding: .9rem; display: grid; gap: .55rem; align-content: start; scroll-behavior: smooth; }
.bubble {
  padding: .6rem .75rem; border-radius: 12px; font-size: .88rem; line-height: 1.45; max-width: 92%;
  word-break: break-word; animation: fadeSlide .25s var(--ease);
}
.bubble.user { background: #ffe8d6; margin-left: auto; }
.bubble.bot { background: #e8f7f3; }
.bubble a { color: var(--accent); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.bubble-meta { display: flex; gap: .4rem; margin-bottom: .3rem; }
.source-badge {
  font-size: .65rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em;
  background: #d8efe8; color: var(--accent-2); padding: .15rem .4rem; border-radius: 999px;
}
.follow-wrap { display: flex; flex-wrap: wrap; gap: .35rem; margin-top: .55rem; }
.follow-chip {
  padding: .32rem .6rem !important; font-size: .72rem !important; border-radius: 999px !important;
  background: #fff; border: 1px solid var(--line) !important; color: var(--ink); font-weight: 500 !important;
}
.follow-chip:hover { border-color: var(--accent) !important; color: var(--accent); }

.typing { display: inline-flex; gap: 4px; padding: .55rem .75rem; background: #e8f7f3; border-radius: 12px; width: fit-content; }
.typing i {
  width: 6px; height: 6px; border-radius: 50%; background: var(--accent-2); opacity: .4;
  animation: blink 1s infinite ease-in-out;
}
.typing i:nth-child(2) { animation-delay: .15s; }
.typing i:nth-child(3) { animation-delay: .3s; }
@keyframes blink { 0%, 80%, 100% { opacity: .25; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-2px); } }

.quick-replies {
  display: flex; flex-wrap: wrap; gap: .4rem; padding: .55rem .75rem 0; border-top: 1px solid var(--line);
  background: #fffaf5;
}
.quick-replies button {
  padding: .4rem .65rem; font-size: .75rem; border-radius: 999px;
  background: #fff; border: 1px solid var(--line); color: var(--ink); font-weight: 500;
}
.quick-replies button:hover { border-color: var(--accent); color: var(--accent); }
#chat-form { display: flex; gap: .45rem; padding: .55rem; border-top: 1px solid var(--line); }
#chat-form button { background: var(--accent-2); color: white; }

.wp-panel .wp-lead { max-width: 40rem; }
.info-pill {
  font-size: .72rem; font-weight: 700; letter-spacing: .03em;
  padding: .4rem .7rem; border-radius: 999px;
  background: var(--info-bg); color: var(--info); white-space: nowrap;
}
.how-steps {
  list-style: none; margin: 0 0 1rem; padding: 0;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: .65rem;
}
.how-steps li {
  display: flex; gap: .55rem; align-items: center;
  background: #fff; border: 1px solid var(--line); border-radius: 12px;
  padding: .75rem .85rem; font-size: .88rem; font-weight: 500;
  transition: transform .2s var(--ease), box-shadow .2s;
}
.how-steps li:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.how-steps span {
  width: 24px; height: 24px; border-radius: 50%; flex-shrink: 0;
  display: grid; place-items: center; font-size: .75rem; font-weight: 700;
  background: linear-gradient(135deg, #ffe8d6, #ffd0e0); color: var(--ink);
}
.wp-row { display: flex; flex-wrap: wrap; gap: 1rem; align-items: end; }
.wp-row label { display: block; font-size: .72rem; color: var(--muted); font-weight: 600; margin-bottom: .2rem; }
.wp-result {
  margin-top: .85rem; padding: .85rem 1rem; border-radius: 12px; font-size: .9rem;
  display: flex; gap: .75rem; align-items: flex-start; animation: fadeSlide .3s var(--ease);
}
.wp-result.ok { background: var(--ok-bg); color: var(--ok); }
.wp-result.info { background: var(--info-bg); color: var(--info); }
.wp-result .dot {
  width: 10px; height: 10px; border-radius: 50%; margin-top: .35rem; flex-shrink: 0;
  background: currentColor;
}

footer { text-align: center; padding: .5rem 1rem 2rem; color: var(--muted); font-size: .82rem; }

/* Toast */
.toast-host {
  position: fixed; bottom: 88px; left: 50%; transform: translateX(-50%);
  z-index: 100001; display: grid; gap: .45rem; pointer-events: none; width: min(420px, calc(100% - 2rem));
}
.toast {
  pointer-events: auto;
  background: #1a1410; color: #fff8f1; padding: .75rem 1rem; border-radius: 12px;
  font-size: .88rem; font-weight: 600; box-shadow: 0 12px 30px rgba(0,0,0,.25);
  animation: toastIn .3s var(--ease);
  display: flex; align-items: center; gap: .5rem;
}
.toast.ok::before { content: "✓"; color: #7ddeb8; font-weight: 700; }
.toast.out { animation: toastOut .25s var(--ease) forwards; }
@keyframes toastIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes toastOut { to { opacity: 0; transform: translateY(6px); } }

/* Skeleton */
.skeleton-wrap[hidden] { display: none !important; }
.skeleton-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: .8rem; margin-top: .5rem; }
.skel {
  height: 110px; border-radius: 14px;
  background: linear-gradient(90deg, #efe8e0 25%, #f7f1ea 37%, #efe8e0 63%);
  background-size: 400% 100%;
  animation: shimmer 1.2s ease infinite;
}
@keyframes shimmer { 0% { background-position: 100% 0; } 100% { background-position: 0 0; } }

/* Modal */
.modal[hidden] { display: none !important; }
.modal { position: fixed; inset: 0; z-index: 100000; display: grid; place-items: center; padding: 1rem; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(26, 20, 16, 0.45); backdrop-filter: blur(3px); }
.modal-sheet {
  position: relative; z-index: 1; width: min(760px, 100%); max-height: min(88vh, 900px);
  overflow: auto; background: #fffaf5; border-radius: 18px; box-shadow: 0 24px 80px rgba(0,0,0,.25);
  border: 1px solid var(--line); animation: fadeSlide .3s var(--ease);
}
.modal-head {
  display: flex; justify-content: space-between; gap: 1rem; align-items: flex-start;
  padding: 1.1rem 1.25rem; border-bottom: 1px solid var(--line); position: sticky; top: 0;
  background: rgba(255,250,245,.95); backdrop-filter: blur(8px);
}
.modal-head h2 { margin: .2rem 0 0; font-family: var(--display); font-size: 1.35rem; line-height: 1.25; }
.modal-badges { display: flex; flex-wrap: wrap; gap: .35rem; padding: .75rem 1.25rem 0; }
.modal-body { padding: 1rem 1.25rem 1.75rem; line-height: 1.65; }
.modal-body h2 { font-family: var(--display); margin-top: 1.4rem; font-size: 1.15rem; }
.modal-body a { color: var(--accent); }

.preview-body .preview { max-width: 760px; margin: 1.5rem auto 3rem; padding: 0 1.25rem; }
.preview h1 { font-family: var(--display); font-size: 2rem; line-height: 1.2; }
.preview .content { line-height: 1.65; }
.preview .content h2 { font-family: var(--display); margin-top: 1.6rem; }
.preview .content a { color: var(--accent); }
.top.compact { border-bottom: 1px solid var(--line); background: rgba(255,255,255,.55); backdrop-filter: blur(8px); max-width: none; padding: 1rem 1.25rem; }

.page-boot .panel, .page-boot .stats, .page-boot .journey { opacity: 0; }
.page-boot.is-ready .panel, .page-boot.is-ready .stats, .page-boot.is-ready .journey {
  animation: fadeSlide .35s var(--ease) forwards;
}

@media (max-width: 960px) {
  .stats, .how-steps, .deal-grid, .skeleton-grid { grid-template-columns: 1fr 1fr; }
  .journey { grid-template-columns: 1fr; }
  .journey-connector { display: none; }
  .blog-controls { grid-template-columns: 1fr; }
  .panel-head { flex-direction: column; align-items: stretch; }
  .primary.shrink { width: 100%; }
}
@media (max-width: 640px) {
  html, body { overflow-x: hidden; }
  body { padding-bottom: calc(88px + env(safe-area-inset-bottom, 0px)); }

  .top {
    padding: 1rem 1rem 0.35rem;
    padding-top: calc(1rem + env(safe-area-inset-top, 0px));
  }
  .brand { max-width: 100%; }
  .mark { width: 42px; height: 42px; border-radius: 12px; }
  h1 { font-size: 1.22rem; line-height: 1.25; word-break: break-word; }
  .top-actions { width: 100%; flex-direction: column; align-items: stretch; }
  .top-actions .ghost, .sound-toggle { width: 100%; flex: none; justify-content: center; min-height: 42px; }
  .site-link-full { display: none; }
  .site-link-short { display: inline; }

  .stats, .how-steps, .deal-grid, .skeleton-grid { grid-template-columns: 1fr; }
  .blog-card { flex-direction: column; align-items: stretch; }
  .blog-card .preview-btn { width: 100%; min-height: 44px; }
  .blog-title { word-break: break-word; }
  .primary, .primary.shrink { width: 100%; min-width: 0; min-height: 48px; }
  .demo-chip {
    top: auto; bottom: calc(78px + env(safe-area-inset-bottom, 0px)); right: 12px;
    font-size: .58rem; opacity: .65; z-index: 40;
  }
  main {
    padding-left: max(1rem, env(safe-area-inset-left, 0px));
    padding-right: max(1rem, env(safe-area-inset-right, 0px));
    padding-bottom: 2rem;
  }
  .hero { margin-bottom: 1.1rem; }
  .lede { font-size: .98rem; }
  .panel { padding: 1.05rem 1rem; margin-bottom: 1.35rem; }
  .panel-head h2 { font-size: 1.15rem; }
  .field input, .field select, #chat-input {
    font-size: 16px; /* prevents iOS zoom on focus */
    min-height: 44px;
  }
  .deal-top { flex-wrap: wrap; }
  .countdown { margin-top: .15rem; }
  .chat-log { height: 220px; }
  .quick-replies { padding-bottom: .35rem; }
  .quick-replies button, .follow-chip { min-height: 36px; }
  #chat-form button { min-width: 72px; min-height: 44px; }
  .info-pill { white-space: normal; text-align: center; width: fit-content; }
  .wp-row { flex-direction: column; align-items: stretch; gap: .75rem; }
  .wp-row > div, .wp-row .ghost { width: 100%; }
  .how-steps li { font-size: .84rem; }
  .toast-host {
    bottom: calc(86px + env(safe-area-inset-bottom, 0px));
    width: calc(100% - 1.5rem);
  }
  .modal { padding: .5rem; align-items: flex-end; }
  .modal-sheet {
    width: 100%; max-height: min(92vh, 100%);
    border-radius: 16px 16px 0 0;
  }
  .modal-head { padding: .9rem 1rem; }
  .modal-head h2 { font-size: 1.1rem; }
  .modal-body { padding: .85rem 1rem 1.4rem; }
  .process-log { font-size: .72rem; max-height: 130px; }
}

/* Floating chat widget — mobile */
@media (max-width: 640px) {
  #cf-agent-launcher {
    right: max(14px, env(safe-area-inset-right, 0px)) !important;
    bottom: max(14px, env(safe-area-inset-bottom, 0px)) !important;
  }
  #cf-agent-panel {
    right: 8px !important;
    left: 8px !important;
    width: auto !important;
    max-width: none !important;
    bottom: calc(76px + env(safe-area-inset-bottom, 0px)) !important;
    height: min(70vh, 480px) !important;
  }
}
