/* Mensajo customer signup shared styles */

@import url("./tokens.css");

* { box-sizing: border-box; }
html, body {
  min-height: 100%; margin: 0; padding: 0;
  background: var(--paper); color: var(--ink);
  font-family: Inter, "Helvetica Neue", Arial, sans-serif;
  font-kerning: normal;
  overflow-x: hidden;
  overflow-y: auto;
}

:root {
  /* Tokens live in tokens.css. Only chabot-local overrides belong here. */
  --header-fg: #141516;
}

.page {
  min-height: 100vh;
  height: auto;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  position: relative;
}

.dir-label {
  position: absolute; top: 20px; left: 50%; transform: translateX(-50%);
  z-index: 10;
  font-size: 14px;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ink-4);
}

/* --- Top nav --- */
nav.top {
  position: absolute; top: 22px; left: 44px; right: 44px;
  display: flex; align-items: center; justify-content: space-between;
  z-index: 3;
}
.brand { display: flex; align-items: center; min-width: 0; }
.brand-logo { display: block; width: 138px; height: auto; }
.nav-links { display: flex; gap: 28px; font-size: 1.0625rem; color: var(--ink-3); }
.nav-links a { color: inherit; text-decoration: none; }
.nav-links a:hover { color: var(--accent); }
.cta-top {
  background: var(--ink); color: var(--surface);
  min-height: 44px;
  padding: 8px 16px; border-radius: 100px;
  font-size: 1.0625rem; font-weight: 600;
  text-decoration: none; border: none; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
}
:focus-visible {
  outline: 3px solid rgba(47, 169, 93, 0.45);
  outline-offset: 3px;
}

/* --- Left pane (marketing / side copy) --- */
.left {
  padding: 88px 56px 88px;
  display: flex; flex-direction: column;
  justify-content: center;
  gap: 14px;
  max-width: 700px;
  position: relative;
}
.eyebrow {
  font-size: 15px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--accent); font-weight: 500;
  display: inline-flex; align-items: center; gap: 8px;
}
.eyebrow::before { content: ""; width: 20px; height: 1px; background: var(--accent); }
.left h1 {
  font-family: Inter, "Helvetica Neue", Arial, sans-serif;
  font-weight: 700;
  font-size: 3.25rem;
  line-height: 1.04;
  letter-spacing: 0;
  margin: 0; color: var(--ink);
}
.left h1 em { font-style: normal; color: var(--accent); font-weight: 700; }
.lede { font-size: 1.1875rem; line-height: 1.5; color: var(--ink-2); max-width: 500px; margin: 0; }
.cta-note {
  margin: 0;
  max-width: 420px;
  font-size: 16px;
  line-height: 1.4;
  color: var(--ink-3);
}

.flow-proof {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  max-width: 520px;
  margin-top: 6px;
}
.flow-proof-card {
  min-height: 74px;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.flow-proof-card .label {
  font-size: 14px;
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}
.flow-proof-card .copy {
  font-size: 15px;
  line-height: 1.35;
  color: var(--ink-2);
}

.ctas { display: flex; gap: 10px; margin-top: 4px; }
.cta-stack {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
  margin-top: 6px;
}
.ctas .primary, .cta-stack .primary, .btn.primary {
  background: var(--accent); color: var(--accent-text); padding: 12px 20px; border-radius: 100px;
  font-size: 17px; font-weight: 500;
  border: none; cursor: pointer;
  box-shadow: 0 2px 4px rgba(47,169,93,0.15), 0 10px 24px -10px rgba(47,169,93,0.35);
  font-family: inherit;
}
.ctas .ghost, .cta-stack .ghost, .btn.ghost {
  background: transparent; color: var(--ink);
  padding: 12px 18px; border-radius: 100px;
  font-size: 17px; font-weight: 500;
  border: 1px solid var(--line-2); cursor: pointer;
  font-family: inherit;
}
.demo-cta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  width: min(100%, 430px);
  margin-top: 0;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}
.demo-cta .ghost {
  min-height: 28px;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  color: var(--ink);
  cursor: pointer;
  font-family: inherit;
  font-size: 16px;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 4px;
}
.demo-cta .ghost:hover {
  color: var(--accent-strong);
}

.offer-panel {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  max-width: 640px;
  margin-top: 10px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px 20px;
}
.offer-price {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
}
.offer-kicker {
  color: var(--accent);
  font-size: 15px;
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.price-stack {
  display: grid;
  grid-template-columns: minmax(150px, 0.75fr) minmax(220px, 1fr);
  gap: 28px;
  align-items: start;
}
.price-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 5px;
  min-width: 0;
}
.price-label {
  color: var(--ink-3);
  font-size: 15px;
  line-height: 1.2;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.offer-panel .amt {
  font-family: Inter, "Helvetica Neue", Arial, sans-serif;
  font-weight: 700;
  font-size: 40px;
  line-height: 0.92;
  letter-spacing: 0;
  color: var(--ink);
}
.offer-panel .amt small {
  font-size: 17px;
  color: var(--ink-3);
  font-family: Inter, "Helvetica Neue", Arial, sans-serif;
  margin-left: 3px;
}
.offer-panel .original-price {
  color: var(--ink-4);
  font-size: 16px;
  line-height: 1;
  text-decoration-line: line-through;
  text-decoration-thickness: 2px;
  text-decoration-color: rgba(21, 21, 18, 0.45);
}
.price-item p {
  margin: 0;
  color: var(--ink-3);
  font-size: 16px;
  line-height: 1.4;
}
.offer-details {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}
.offer-summary-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px 18px;
  color: var(--success-text);
  font-size: 17px;
  line-height: 1.35;
  font-weight: 600;
}
.offer-summary-list li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}
.offer-summary-list li::before {
  content: "";
  width: 6px;
  height: 6px;
  margin-top: 8px;
  border-radius: 50%;
  background: var(--accent);
  flex: 0 0 auto;
}
.reset-link {
  display: inline-flex; align-items: center;
  min-height: 44px;
  margin-top: 8px; padding: 0;
  background: transparent; border: 0; cursor: pointer;
  font: inherit; font-size: 15px; color: var(--ink-3);
  text-decoration: underline; text-underline-offset: 3px; opacity: 0.7;
}
.reset-link:hover { opacity: 1; }
.reset-link[hidden] { display: none; }
.phone-reset {
  position: absolute;
  top: 18px;
  right: -16px;
  z-index: 5;
  min-height: 38px;
  margin-top: 0;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: 100px;
  background: var(--surface);
  color: var(--ink-2);
  text-decoration: none;
  opacity: 1;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}
.phone-reset:hover { color: var(--accent); }

/* Progress stepper (reused by onboarding/kb/ready/checkout left panes) */
.stepper {
  display: flex; flex-direction: column; gap: 10px;
  margin-top: 4px;
}
.stepper .step {
  display: flex; align-items: center; gap: 12px;
  font-size: 17px; color: var(--ink-3);
}
.stepper .step .num {
  width: 22px; height: 22px; border-radius: 50%;
  border: 1px solid var(--line-2);
  display: grid; place-items: center;
  font-size: 14px; font-weight: 600;
  color: var(--ink-3); background: var(--surface);
  flex-shrink: 0;
  font-family: Inter, "Helvetica Neue", Arial, sans-serif;
}
.stepper .step.done .num { background: var(--accent); border-color: var(--accent); color: var(--accent-text); }
.stepper .step.done .num::before { content: "✓"; }
.stepper .step.done .num > span { display: none; }
.stepper .step.active { color: var(--ink); font-weight: 500; }
.stepper .step.active .num { border-color: var(--accent); color: var(--accent); background: var(--surface); }

.kicker {
  font-size: 15px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ink-3); font-weight: 500;
}

/* Side tips card — small callout on left pane */
.tip {
  display: flex; gap: 12px;
  padding: 14px 16px; background: var(--surface);
  border: 1px solid var(--line); border-radius: 14px;
  max-width: 420px;
  margin-top: 10px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.03);
}
.tip .ico {
  width: 32px; height: 32px; border-radius: 50%;
  background: #f1ede3;
  display: grid; place-items: center;
  flex-shrink: 0;
  color: var(--accent);
}
.tip .t-title { font-weight: 600; font-size: 16px; color: var(--ink); }
.tip .t-body { font-size: 15px; color: var(--ink-3); margin-top: 2px; line-height: 1.45; }

/* --- Right pane — iPhone stage --- */
.right {
  position: relative;
  background: linear-gradient(180deg, var(--bg-right-1) 0%, var(--bg-right-2) 100%);
  display: grid; place-items: center;
  padding: 60px 44px 40px;
  overflow: hidden;
}
.right::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(600px 400px at 50% 50%, rgba(47, 169, 93, 0.08), transparent 70%);
}
.phone-stage {
  position: relative;
  z-index: 2;
  width: 360px;
  max-width: 100%;
}
.phone-stage.is-guiding .iphone {
  outline: 3px solid rgba(47, 169, 93, 0.36);
  outline-offset: 9px;
}

/* iPhone bezel */
.iphone {
  position: relative; z-index: 2;
  width: 360px;
  height: 740px;
  background: var(--ink);
  border-radius: 52px;
  padding: 12px;
  box-shadow:
    0 0 0 2px #232323 inset,
    0 1px 2px rgba(0,0,0,0.06),
    0 30px 60px -20px rgba(0,0,0,0.28),
    0 60px 100px -40px rgba(0,0,0,0.35);
  transition: outline-color 180ms ease, outline-offset 180ms ease;
}
.iphone .screen {
  width: 100%; height: 100%;
  background: var(--wall);
  border-radius: 42px;
  overflow: hidden;
  position: relative;
  display: flex; flex-direction: column;
}
.iphone .notch {
  position: absolute; top: 10px; left: 50%; transform: translateX(-50%);
  width: 110px; height: 30px;
  background: var(--ink);
  border-radius: 18px;
  z-index: 6;
}
.iphone .status {
  position: absolute; top: 0; left: 0; right: 0; height: 44px;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 26px;
  /* iPhone status-bar text — pinned to floor (14px). */
  font-size: 14px; font-weight: 600; color: var(--surface);
  z-index: 5;
}
.iphone .status .icons { display: inline-flex; align-items: center; gap: 6px; }
.iphone .status .icons svg { display: block; }

/* Messaging-app-familiar header */
.msg-head {
  background: var(--accent);
  color: var(--header-fg);
  padding: 48px 12px 10px;
  display: flex; align-items: center; gap: 10px;
  position: relative; z-index: 3;
  flex-shrink: 0;
}
.msg-head .back {
  color: var(--header-fg); padding: 4px 2px;
  display: flex; align-items: center; gap: 2px;
}
.msg-head .ava {
  width: 36px; height: 36px; border-radius: 50%;
  background: #e9dfc8; color: var(--ink-2);
  display: grid; place-items: center;
  font-family: Inter, "Helvetica Neue", Arial, sans-serif; font-weight: 700; font-size: 17px;
}
.msg-head .who { flex: 1; line-height: 1.15; min-width: 0; }
.msg-head .who .name { font-size: 19px; font-weight: 600; }
.msg-head .who .sub { font-size: 15px; color: rgba(20,21,22,0.72); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.msg-head .icons { display: flex; gap: 18px; padding-right: 4px; color: rgba(20,21,22,0.86); }
.msg-head .icons svg { display: block; }

/* Body / wallpaper */
.msg-body {
  flex: 1;
  background-color: var(--wall);
  background-image:
    radial-gradient(circle at 20% 18%, rgba(107, 85, 52, 0.12) 0, rgba(107, 85, 52, 0.12) 3px, transparent 3.5px),
    radial-gradient(circle at 75% 62%, rgba(107, 85, 52, 0.10) 0, rgba(107, 85, 52, 0.10) 2px, transparent 2.5px),
    radial-gradient(circle at 52% 88%, rgba(107, 85, 52, 0.10) 0, rgba(107, 85, 52, 0.10) 2.5px, transparent 3px),
    radial-gradient(circle at 12% 72%, rgba(107, 85, 52, 0.08) 0, rgba(107, 85, 52, 0.08) 2px, transparent 2.5px),
    radial-gradient(circle at 88% 22%, rgba(107, 85, 52, 0.10) 0, rgba(107, 85, 52, 0.10) 2.5px, transparent 3px);
  background-size: 180px 200px;
  overflow-y: auto;
  padding: 12px 9px 8px;
  display: flex; flex-direction: column; gap: 10px;
}

/* Wrapper divs that group multiple bubbles/chips inherit the same 10px
   vertical rhythm as .msg-body, so nested bubbles and chips don't collapse
   against each other. Classes with their own layout are excluded. */
.msg-body > div:not(.row):not(.chips):not(.chip-grid):not(.date-chip):not(.sys-chip):not(.ribbon):not(.typing-row):not(.rich-card):not(.bub) {
  display: flex; flex-direction: column; gap: 10px;
}

.date-chip {
  align-self: center;
  background: rgba(225, 211, 181, 0.85);
  color: #4a3a22;
  font-size: 15px; font-weight: 500;
  padding: 4px 10px; border-radius: 8px;
  margin: 6px 0 8px;
  box-shadow: 0 1px 1px rgba(0,0,0,0.04);
}

.sys-chip {
  align-self: center;
  background: rgba(255, 252, 242, 0.88);
  color: #4a3a22;
  font-size: 15px; font-weight: 500;
  padding: 5px 12px; border-radius: 8px;
  margin: 6px 10%;
  text-align: center;
  line-height: 1.3;
  box-shadow: 0 1px 1px rgba(0,0,0,0.04);
}

/* Bubbles */
.row { display: flex; align-items: flex-end; gap: 4px; }
.row.in { justify-content: flex-start; }
.row.out { justify-content: flex-end; }
.bub {
  max-width: 84%;
  padding: 6px 9px 6px;
  font-size: 17px; line-height: 1.35;
  position: relative;
  box-shadow: 0 1px 0.5px rgba(0,0,0,0.13);
  word-wrap: break-word;
}
.bub.in {
  background: var(--bub-in);
  color: var(--ink);
  border-radius: 8px 8px 8px 2px;
}
.bub.in.first::before {
  content: "";
  position: absolute; left: -6px; bottom: 0;
  border: 6px solid transparent;
  border-right-color: var(--bub-in);
  border-bottom: 0;
}
.bub.out {
  background: var(--bub-out);
  color: var(--ink);
  border-radius: 8px 8px 2px 8px;
}
.bub.out.first::after {
  content: "";
  position: absolute; right: -6px; bottom: 0;
  border: 6px solid transparent;
  border-left-color: var(--bub-out);
  border-bottom: 0;
}
.bub .meta {
  display: inline-flex; align-items: center; gap: 3px;
  float: right; margin-left: 8px; margin-top: 4px;
  /* Bubble meta — pinned to floor (14px). */
  font-size: 14px; color: #625c50;
  line-height: 1;
}
.bub .meta svg { display: block; }
.bub b { font-weight: 600; }
.bub em { font-style: italic; color: #4a4237; }

/* Entrance animation — applied to every bubble/card/typing indicator
   so user-sent messages, canned-answer echoes, and bot replies all
   fade + slide in, matching the initial intro flow. */
@keyframes bubbleIn {
  from { opacity: 0; transform: translateY(6px) scale(0.98); }
  to   { opacity: 1; transform: translateY(0)   scale(1); }
}
.bub,
.typing-row,
.rich-card,
.qr-bubble,
.code-bubble,
.steps-bubble {
  animation: bubbleIn 220ms cubic-bezier(0.2, 0.7, 0.2, 1) both;
  transform-origin: bottom left;
}
.row.out .bub { transform-origin: bottom right; }
@media (prefers-reduced-motion: reduce) {
  .bub, .typing-row, .rich-card, .qr-bubble, .code-bubble, .steps-bubble {
    animation: none;
  }
  .live-badge .dot, .typing span, .rc-file .spin {
    animation: none;
  }
  .iphone {
    transition: none;
  }
}

/* Chip replies */
.chips {
  align-self: flex-end;
  display: flex; flex-direction: column; gap: 4px;
  max-width: 84%;
}
.chips .chip {
  background: var(--accent-soft);
  color: var(--accent-text);
  border: 1px solid color-mix(in oklch, var(--accent) 42%, var(--line));
  border-radius: 8px;
  min-height: 44px;
  padding: 7px 11px;
  font-size: 16px;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
  box-shadow: 0 1px 0.5px rgba(0,0,0,0.06);
  font-family: inherit;
  display: inline-flex; align-items: center;
}
.chips .chip.on { background: var(--accent); color: var(--accent-text); border-color: var(--accent); }
.chips .chip:hover { filter: brightness(0.97); }

/* Chip grid (multi-select) */
.chip-grid {
  align-self: flex-end;
  display: flex; flex-wrap: wrap; gap: 4px;
  max-width: 84%;
  justify-content: flex-end;
}
.chip-grid .chip {
  background: var(--accent-soft);
  color: var(--accent-text);
  border: 1px solid color-mix(in oklch, var(--accent) 42%, var(--line));
  border-radius: 100px;
  min-height: 44px;
  padding: 6px 11px;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  box-shadow: 0 1px 0.5px rgba(0,0,0,0.06);
  font-family: inherit;
  display: inline-flex; align-items: center;
}
.chip-grid .chip.on { background: var(--accent); color: var(--accent-text); border-color: var(--accent); }

/* Typing indicator */
.typing-row { display: flex; justify-content: flex-start; }
.typing {
  background: var(--bub-in);
  border-radius: 8px 8px 8px 2px;
  padding: 8px 12px;
  display: inline-flex; gap: 3px;
  box-shadow: 0 1px 0.5px rgba(0,0,0,0.13);
}
.typing span {
  width: 6px; height: 6px; border-radius: 50%;
  background: #a89f8a;
  animation: bounce 1.3s infinite;
}
.typing span:nth-child(2) { animation-delay: 0.15s; }
.typing span:nth-child(3) { animation-delay: 0.3s; }
@keyframes bounce {
  0%, 80%, 100% { transform: translateY(0); opacity: 0.55; }
  40% { transform: translateY(-3px); opacity: 1; }
}

/* Rich in-chat cards (KB upload, processing, etc.) */
.rich-card {
  background: var(--surface);
  border-radius: 10px 10px 10px 2px;
  padding: 10px 11px 11px;
  max-width: 86%;
  box-shadow: 0 1px 0.5px rgba(0,0,0,0.13);
  font-size: 16px;
  color: var(--ink);
  display: flex; flex-direction: column; gap: 8px;
}
.rich-card .rc-title {
  font-weight: 700; font-size: 16px; letter-spacing: 0;
}
.rich-card .rc-sub { font-size: 15px; color: var(--ink-3); }

.rc-url {
  display: flex; gap: 6px; align-items: center;
}
.rc-url input {
  flex: 1; min-width: 0;
  min-height: 44px;
  padding: 7px 10px; border-radius: 8px;
  border: 1px solid #e4ddd0; background: var(--surface);
  font-family: inherit; font-size: 15px; color: var(--ink);
  outline: none;
}
.rc-url button {
  background: var(--accent); color: var(--accent-text);
  border: none; border-radius: 8px;
  min-height: 44px;
  padding: 7px 12px; font-size: 15px; font-weight: 500;
  cursor: pointer; font-family: inherit;
}
.rc-drop {
  border: 1.5px dashed #c9bfa3;
  border-radius: 10px;
  padding: 14px 10px;
  text-align: center;
  background: #fbf6ea;
  color: var(--warning-text);
}
.rc-drop .big { font-size: 16px; font-weight: 600; }
.rc-drop .small { font-size: 15px; margin-top: 3px; color: #625c50; }
.rc-files { display: flex; flex-direction: column; gap: 4px; }
.rc-file {
  display: flex; align-items: center; gap: 6px;
  background: #faf4e4;
  border-radius: 8px;
  padding: 7px 9px;
  font-size: 15px;
}
.rc-file .fi {
  width: 22px; height: 22px; border-radius: 5px;
  background: var(--accent); color: var(--accent-text);
  display: grid; place-items: center;
  /* Two-letter file-type tag inside a 22px chip — pinned to floor (14px). */
  font-size: 14px; font-weight: 700; letter-spacing: 0.02em;
  flex-shrink: 0;
}
.rc-file .fname { flex: 1; color: var(--ink); }
.rc-file .fmeta { color: #625c50; font-size: 15px; }
.rc-file .spin {
  width: 14px; height: 14px; border: 2px solid #e4ddd0;
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.9s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.rc-file .ok { color: var(--accent); font-weight: 700; font-size: 16px; }

/* Ribbon — role flip */
.ribbon {
  align-self: stretch;
  margin: 8px 4px;
  padding: 10px 12px;
  background: linear-gradient(90deg, rgba(47,169,93,0.04), rgba(47,169,93,0.12), rgba(47,169,93,0.04));
  border: 1px dashed rgba(47,169,93,0.35);
  border-radius: 10px;
  text-align: center;
  color: var(--accent);
  font-size: 14px; font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase;
}

/* Composer */
.composer {
  background: #f3ece0;
  padding: 8px 10px 10px;
  display: flex; align-items: center; gap: 8px;
  padding-bottom: max(10px, env(safe-area-inset-bottom, 10px));
  border-top: 1px solid rgba(0,0,0,0.04);
  flex-shrink: 0;
}
.composer .field {
  flex: 1;
  background: var(--surface);
  border-radius: 22px;
  min-height: 44px;
  padding: 0 10px 0 14px;
  display: flex; align-items: center; gap: 8px;
  box-shadow: 0 1px 0.5px rgba(0,0,0,0.05);
}
.composer .field .ic {
  width: 22px; height: 22px; color: #8a8070;
  flex-shrink: 0;
  display: grid; place-items: center;
}
.composer .field input {
  flex: 1; border: none; background: transparent; outline: none;
  /* Composer text + placeholder — pinned to 17px to match chat bubbles. */
  font-size: 17px; color: var(--ink);
  font-family: inherit;
  min-width: 0; min-height: 44px;
}
.composer .field input::placeholder { color: #a89f8a; }
.composer .send {
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--accent); color: var(--accent-text);
  display: grid; place-items: center;
  border: none; cursor: pointer;
  flex-shrink: 0;
}
.composer .send svg { transform: translateX(1px); }

/* Live pill & other floats */
.live-badge {
  position: absolute;
  top: 18px;
  left: -16px;
  z-index: 4;
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--surface); border: 1px solid #ededea;
  padding: 5px 11px; border-radius: 100px;
  font-size: 14px; color: var(--ink); font-weight: 500;
  box-shadow: 0 2px 6px rgba(0,0,0,0.04);
}
.live-badge .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent); animation: pulse 1.6s infinite;
}
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.4; } }

@media (min-width: 901px) and (max-height: 820px) {
  .phone-stage {
    transform: scale(0.84);
    transform-origin: center;
  }
}

@media (min-width: 901px) and (max-height: 760px) {
  .phone-stage {
    transform: scale(0.76);
  }
}

/* Preview / phase pill (sits on the right pane) */
.phase-badge {
  position: absolute;
  top: 80px; right: 54px;
  z-index: 3;
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--surface); border: 1px solid #ededea;
  padding: 5px 12px; border-radius: 100px;
  font-size: 14px; color: var(--ink); font-weight: 500;
  box-shadow: 0 2px 6px rgba(0,0,0,0.04);
}
.phase-badge .num {
  background: var(--accent); color: var(--accent-text);
  border-radius: 100px;
  font-size: 14px; padding: 2px 7px;
  font-weight: 600;
}

/* --- Checkout modal (screen 5) --- */
.modal-backdrop {
  position: absolute; inset: 0;
  background: rgba(10, 10, 10, 0.42);
  display: grid; place-items: center;
  z-index: 20;
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}
.checkout-modal {
  background: var(--surface);
  border-radius: 18px;
  padding: 26px 28px 24px;
  width: min(420px, calc(100vw - 32px));
  box-shadow: 0 40px 80px -20px rgba(0,0,0,0.3);
  display: flex; flex-direction: column;
  gap: 14px;
}
.checkout-modal h2 {
  font-family: Inter, "Helvetica Neue", Arial, sans-serif; font-weight: 700;
  font-size: 24px; line-height: 1.1; letter-spacing: 0;
  margin: 0;
}
.checkout-modal .mod-sub { font-size: 16px; color: var(--ink-2); margin: 4px 0 0; }
.checkout-modal .price-row {
  display: flex; justify-content: space-between;
  gap: 18px;
  font-size: 17px; color: var(--ink-2);
  padding: 7px 0;
}
.checkout-modal .price-row .amt {
  max-width: 190px;
  text-align: right;
}
.checkout-modal .price-row .amt del {
  color: var(--ink-4);
  font-weight: 500;
  margin-right: 6px;
}
.checkout-modal .price-row.savings {
  color: var(--success-text);
  font-size: 16px;
}
.checkout-modal .price-row.total {
  border-top: 1px solid var(--line);
  padding-top: 12px;
  font-size: 19px; color: var(--ink); font-weight: 600;
}
.checkout-modal .price-row .amt { font-family: Inter, "Helvetica Neue", Arial, sans-serif; font-weight: 700; }
.checkout-modal .field-grp { display: flex; flex-direction: column; gap: 4px; }
.checkout-modal .field-grp label {
  font-size: 15px; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--ink-3); font-weight: 500;
}
.checkout-modal .field-grp input {
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid var(--line); border-radius: 8px;
  font-family: inherit; font-size: 17px; color: var(--ink);
  outline: none; background: var(--surface);
}
.checkout-modal .field-grp input:focus { border-color: var(--accent); }
.checkout-modal .row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.checkout-modal .pay-btn {
  background: var(--accent); color: var(--accent-text);
  padding: 13px; border-radius: 100px;
  font-size: 19px; font-weight: 600;
  border: none; cursor: pointer; font-family: inherit;
  margin-top: 4px;
}
.checkout-modal .secure {
  font-size: 15px; color: var(--ink-2);
  text-align: center;
  display: inline-flex; align-items: center; gap: 6px;
  justify-content: center;
}
.checkout-modal .form-error {
  border: 1px solid var(--danger-border);
  background: var(--danger-bg);
  color: var(--danger-text);
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 16px;
  line-height: 1.4;
}
.checkout-modal .form-error[hidden] { display: none; }
.checkout-modal .close {
  position: absolute; top: 10px; right: 10px;
  width: 44px; height: 44px; border-radius: 50%;
  border: none; background: #f0f0ec;
  cursor: pointer;
  display: grid; place-items: center;
  color: var(--ink-2);
}

/* Page-step cross-links (bottom strip) */
.flow-nav {
  position: absolute;
  bottom: 22px; left: 50%; transform: translateX(-50%);
  z-index: 10;
  display: flex; align-items: center; gap: 10px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 100px;
  padding: 5px 6px 5px 12px;
  box-shadow: 0 8px 20px -10px rgba(0,0,0,0.1);
  /* Flow-nav step labels — pinned to floor (14px). */
  font-size: 14px;
}
.flow-nav .label { color: var(--ink-3); font-size: 14px; letter-spacing: 0.08em; text-transform: uppercase; padding-right: 4px; }
.flow-nav .flow-step {
  text-decoration: none;
  color: var(--ink-3);
  padding: 5px 10px;
  border-radius: 100px;
}
.flow-nav .flow-step.on { background: var(--accent); color: var(--accent-text); font-weight: 600; }

/* ========= Link WhatsApp screen (06) ========= */

/* Segmented toggle to flip between Desktop and Mobile preview */
.seg-toggle {
  display: inline-flex; background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 100px;
  padding: 4px;
  gap: 2px;
  font-size: 15px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.03);
}
.seg-toggle button {
  padding: 7px 12px;
  border-radius: 100px;
  border: none; background: transparent;
  cursor: pointer;
  color: var(--ink-3);
  font-family: inherit; font-size: 15px; font-weight: 500;
  display: inline-flex; align-items: center; gap: 6px;
  white-space: nowrap;
}
.seg-toggle button.on { background: var(--ink); color: var(--surface); }

/* Right-pane stage: either "laptop + QR" (desktop) or phone showing deep-link sheet (mobile) */
.right.link-right { padding: 70px 24px 60px; overflow: hidden; }

/* Laptop frame (desktop case) */
.laptop {
  position: relative; z-index: 2;
  width: 100%;
  max-width: 440px;
  background: var(--ink);
  border-radius: 14px;
  padding: 10px 10px 14px;
  box-shadow:
    0 0 0 1px #232323 inset,
    0 30px 60px -20px rgba(0,0,0,0.28),
    0 60px 100px -40px rgba(0,0,0,0.35);
}
.laptop::after {
  content: "";
  position: absolute;
  bottom: -10px; left: -28px; right: -28px;
  height: 10px;
  background: linear-gradient(180deg, #e0dccb 0%, #c9c4b0 100%);
  border-radius: 0 0 8px 8px;
  box-shadow: 0 6px 14px -4px rgba(0,0,0,0.18);
}
.laptop::before {
  content: "";
  position: absolute;
  bottom: -10px; left: 50%; transform: translateX(-50%);
  width: 54px; height: 5px;
  background: var(--ink);
  border-radius: 0 0 8px 8px;
  z-index: 3;
}
.laptop .screen {
  width: 100%;
  background: var(--surface);
  border-radius: 8px;
  overflow: hidden;
  display: flex; flex-direction: column;
  min-height: 380px;
}
.laptop .browser-bar {
  height: 28px; background: #ededea;
  display: flex; align-items: center; gap: 6px;
  padding: 0 10px;
  border-bottom: 1px solid #e4e4dc;
}
.laptop .browser-bar .dots { display: inline-flex; gap: 5px; }
.laptop .browser-bar .dot {
  width: 10px; height: 10px; border-radius: 50%;
}
.laptop .browser-bar .dot.r { background: #ff5f57; }
.laptop .browser-bar .dot.y { background: #febc2e; }
.laptop .browser-bar .dot.g { background: #28c840; }
.laptop .browser-bar .url {
  flex: 1;
  background: var(--surface);
  border-radius: 4px;
  padding: 2px 10px;
  font-size: 14px;
  color: var(--ink-3);
  text-align: center;
  font-family: Inter, "Helvetica Neue", Arial, sans-serif;
  max-width: 340px;
  margin: 0 auto;
  border: 1px solid #e4e4dc;
}
.laptop .content {
  padding: 16px 18px 22px;
  display: grid;
  grid-template-columns: 1fr 160px;
  gap: 18px;
  align-items: center;
}
.laptop .content .qr-card { align-self: center; }
.laptop .content .steps-col h2 {
  font-family: Inter, "Helvetica Neue", Arial, sans-serif; font-weight: 700;
  font-size: 20px; line-height: 1.15; letter-spacing: 0;
  margin: 0 0 2px;
}
.laptop .content .steps-col .sub {
  font-size: 15px; color: var(--ink-3); margin: 0 0 12px;
}
.laptop .content ol {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-direction: column; gap: 9px;
}
.laptop .content ol li {
  display: flex; gap: 9px; align-items: flex-start;
  font-size: 15px; color: var(--ink-2);
  line-height: 1.35;
}
.laptop .content ol li b { font-weight: 600; color: var(--ink); }
.laptop .content ol li .n {
  width: 20px; height: 20px; border-radius: 50%;
  background: #f1ede3; color: var(--accent);
  display: grid; place-items: center;
  font-size: 14px; font-weight: 600;
  flex-shrink: 0;
}
.status-row {
  margin-top: 12px;
  display: inline-flex; align-items: center; gap: 7px;
  padding: 5px 10px;
  background: var(--warning-bg); border: 1px solid var(--warning-border);
  border-radius: 100px;
  font-size: 14px; color: var(--warning-text);
}
.status-row .pulse {
  width: 8px; height: 8px; border-radius: 50%;
  background: #e8b94a;
  animation: pulse 1.3s infinite;
}

/* QR card on laptop */
.qr-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.04);
  width: fit-content;
}
.qr-card .qr {
  width: 140px; height: 140px;
  position: relative;
}
.qr-card .qr svg { display: block; width: 100%; height: 100%; }
.qr-card .qr .logo-overlay {
  position: absolute;
  top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 48px; height: 48px; border-radius: 12px;
  background: var(--accent);
  display: grid; place-items: center;
  color: var(--accent-text);
  box-shadow: 0 0 0 4px var(--surface), 0 4px 10px rgba(0,0,0,0.1);
}
.qr-card .expires {
  font-size: 14px; color: var(--ink-3);
  display: inline-flex; align-items: center; gap: 4px;
}

/* Mobile case — phone showing the "link" screen */
.mobile-link {
  padding: 48px 16px 18px;
  background: #f6efe3;
  flex: 1;
  display: flex; flex-direction: column;
  gap: 14px;
  overflow-y: auto;
}
.mobile-link .hero {
  text-align: center;
  padding: 16px 12px 6px;
}
.mobile-link .hero .ico-wa {
  width: 60px; height: 60px; border-radius: 18px;
  background: var(--accent); color: var(--accent-text);
  display: grid; place-items: center;
  margin: 0 auto 12px;
  box-shadow: 0 8px 20px -6px rgba(47,169,93,0.35);
}
.mobile-link .hero h2 {
  font-family: Inter, "Helvetica Neue", Arial, sans-serif; font-weight: 700;
  font-size: 24px; line-height: 1.2; margin: 0 0 4px;
  color: var(--ink);
}
.mobile-link .hero p {
  margin: 0; color: var(--ink-3); font-size: 16px; line-height: 1.45;
}
.mobile-link .primary-btn {
  background: var(--accent); color: var(--accent-text);
  border: none; border-radius: 100px;
  padding: 14px 18px;
  font-family: inherit; font-size: 19px; font-weight: 600;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  box-shadow: 0 6px 16px -4px rgba(47,169,93,0.35);
}
.mobile-link .secondary-btn {
  background: var(--surface); color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 100px;
  padding: 13px 18px;
  font-family: inherit; font-size: 17px; font-weight: 500;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center; gap: 8px;
}
.mobile-link .muted-link {
  text-align: center;
  color: var(--ink-3);
  font-size: 15px;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
  padding: 8px;
  background: none; border: none;
  font-family: inherit;
}
.mobile-link .divider {
  display: flex; align-items: center; gap: 10px;
  color: var(--ink-4);
  font-size: 14px; letter-spacing: 0.12em; text-transform: uppercase;
  margin: 2px 0;
}
.mobile-link .divider::before, .mobile-link .divider::after {
  content: ""; flex: 1; height: 1px; background: rgba(0,0,0,0.08);
}
.mobile-link .info-card {
  background: var(--surface);
  border-radius: 14px;
  padding: 12px 14px;
  display: flex; gap: 10px; align-items: flex-start;
  box-shadow: 0 1px 2px rgba(0,0,0,0.04);
}
.mobile-link .info-card .ico {
  width: 28px; height: 28px; border-radius: 50%;
  background: #f1ede3; color: var(--accent);
  display: grid; place-items: center;
  flex-shrink: 0;
}
.mobile-link .info-card .t { font-size: 16px; font-weight: 600; color: var(--ink); }
.mobile-link .info-card .b { font-size: 15px; color: var(--ink-3); line-height: 1.4; margin-top: 2px; }

/* Success state overlay — used in both variants */
.success-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(250,250,247,0.96), rgba(250,250,247,0.86));
  display: flex; align-items: center; justify-content: center;
  z-index: 30;
  backdrop-filter: blur(6px);
}
.success-card {
  background: var(--surface);
  border-radius: 20px;
  padding: 32px 36px;
  max-width: 440px;
  text-align: center;
  box-shadow: 0 30px 60px -20px rgba(0,0,0,0.3);
}
.success-card .check {
  width: 64px; height: 64px; border-radius: 50%;
  background: var(--accent); color: var(--accent-text);
  display: grid; place-items: center;
  margin: 0 auto 14px;
  box-shadow: 0 10px 24px -6px rgba(47,169,93,0.35);
}
.success-card h3 {
  font-family: Inter, "Helvetica Neue", Arial, sans-serif; font-weight: 700;
  font-size: 30px; margin: 0 0 6px; line-height: 1.15;
}
.success-card p {
  margin: 0 0 4px; color: var(--ink-2); font-size: 17px; line-height: 1.5;
}
.success-card .num-pill {
  display: inline-block;
  margin-top: 10px;
  padding: 7px 14px;
  background: #f1ede3;
  border-radius: 100px;
  font-family: Inter, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  color: var(--ink);
}
.success-card .next-ctas {
  display: flex; gap: 8px; margin-top: 20px; justify-content: center;
}

/* ========= Mobile fallback (minor) ========= */
@media (max-width: 900px) {
  html, body { overflow-x: hidden; overflow-y: auto; }
  .page {
    min-height: 100dvh;
    height: auto;
    grid-template-columns: 1fr;
    overflow-x: hidden;
    padding-bottom: 76px;
  }
  nav.top {
    position: relative;
    top: auto;
    left: auto;
    right: auto;
    padding: 22px 32px 0;
  }
  .left {
    width: 100%;
    max-width: none;
    padding: 20px 32px;
    justify-content: flex-start;
    gap: 14px;
  }
  .left h1 { font-size: 2.125rem; }
  .lede { max-width: 34rem; }
  .flow-proof { display: none; }
  .ctas { flex-wrap: wrap; }
  .cta-stack {
    gap: 14px;
  }
  .ctas .primary, .ctas .ghost, .cta-stack .primary, .cta-stack .ghost, .btn.primary, .btn.ghost { min-height: 44px; }
  .ctas .ghost { display: none; }
  .demo-cta {
    width: 100%;
    margin-top: 0;
    padding-top: 10px;
  }
  .demo-cta .ghost {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
  }
  .cta-note {
    max-width: none;
  }
  .offer-panel {
    grid-template-columns: 1fr;
    gap: 14px;
    max-width: none;
    width: 100%;
    padding: 14px 14px 12px;
  }
  .offer-panel .amt {
    font-size: 38px;
  }
  .price-stack {
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1fr);
    gap: 18px;
  }
  .price-item {
    min-height: 44px;
  }
  .offer-details {
    padding-top: 12px;
  }
  .offer-summary-list {
    grid-template-columns: 1fr;
    font-size: 16px;
    gap: 6px;
  }
  .stepper { display: none; }
  .right {
    width: 100%;
    min-height: auto;
    padding: 12px 24px 40px;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    overflow: visible;
  }
  .right::before, .live-badge, .phase-badge { display: none; }
  .phone-stage {
    width: min(calc(100vw - 48px), 360px);
    transform: none;
  }
  .phone-reset {
    position: static;
    margin-top: 10px;
  }
  .iphone {
    width: min(calc(100vw - 48px), 360px);
    height: min(440px, calc(100dvh - 360px));
    min-height: 360px;
    max-height: 56dvh;
    background: transparent;
    border-radius: 24px;
    padding: 0;
    box-shadow: none;
    transform: none;
  }
  .iphone .screen {
    border-radius: 24px;
    box-shadow:
      0 1px 2px rgba(0,0,0,0.06),
      0 18px 36px -24px rgba(0,0,0,0.3);
  }
  .iphone .notch, .iphone .status { display: none; }
  .msg-head { padding: 12px; }
  .msg-head .back, .msg-head .icons { display: none; }
  .msg-body { padding: 14px 12px 12px; gap: 12px; }

  /* Chat-primary onboarding (02 cadastro, 03 base de conhecimento, 04 prévia)
     dominates the mobile viewport: body locks to 100dvh as a flex column so
     the page can fill the remaining height after the top nav, .left header
     stays compact, and the iPhone stretches to fill the remaining height. */
  body:has(.page[data-screen-label^="02 "]),
  body:has(.page[data-screen-label^="03 "]),
  body:has(.page[data-screen-label^="04 "]) {
    height: 100dvh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
  }
  .page[data-screen-label^="02 "],
  .page[data-screen-label^="03 "],
  .page[data-screen-label^="04 "] {
    flex: 1;
    height: auto;
    min-height: 0;
    grid-template-rows: auto 1fr;
    overflow: hidden;
    padding-bottom: 0;
  }
  .page[data-screen-label^="02 "] .left,
  .page[data-screen-label^="03 "] .left,
  .page[data-screen-label^="04 "] .left {
    padding: 14px 24px 6px;
    gap: 4px;
  }
  .page[data-screen-label^="02 "] .left h1,
  .page[data-screen-label^="03 "] .left h1,
  .page[data-screen-label^="04 "] .left h1 {
    font-size: 1.375rem;
    line-height: 1.2;
  }
  .page[data-screen-label^="02 "] .left > *:not(.kicker):not(h1),
  .page[data-screen-label^="03 "] .left > *:not(.kicker):not(h1),
  .page[data-screen-label^="04 "] .left > *:not(.kicker):not(h1) {
    display: none;
  }
  .page[data-screen-label^="02 "] .right,
  .page[data-screen-label^="03 "] .right,
  .page[data-screen-label^="04 "] .right {
    flex-direction: column;
    padding: 4px 16px 72px;
    align-items: stretch;
    overflow: hidden;
    min-height: 0;
  }
  .page[data-screen-label^="02 "] #phone,
  .page[data-screen-label^="03 "] #phone,
  .page[data-screen-label^="04 "] #phone {
    width: 100%;
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
  }
  .page[data-screen-label^="02 "] .iphone,
  .page[data-screen-label^="03 "] .iphone,
  .page[data-screen-label^="04 "] .iphone {
    width: 100%;
    height: auto;
    flex: 1;
    min-height: 0;
    max-height: none;
  }
  /* On short mobile viewports the iphone's content (chat thread) was forcing
     .iphone past its flex-allocated height, pushing the composer and the
     inline "Continuar para pagamento" CTA below the viewport where the fixed
     .flow-nav covered them. Cap the iphone to viewport height minus the
     non-iphone chrome (top nav + heading row + flow-nav reservation + iOS
     home-indicator inset) and let .msg-body scroll internally. */
  .page[data-screen-label^="04 "] .iphone {
    flex: none;
    height: calc(100dvh - 230px - env(safe-area-inset-bottom, 0px));
    max-height: calc(100dvh - 230px - env(safe-area-inset-bottom, 0px));
  }
  .page[data-screen-label^="04 "] .iphone .screen,
  .page[data-screen-label^="04 "] .msg-body {
    min-height: 0;
  }
  .page[data-screen-label^="04 "] .preview-sidetrack { display: none; }
  .flow-nav {
    position: fixed;
    left: 12px;
    right: 12px;
    bottom: max(12px, env(safe-area-inset-bottom, 12px));
    transform: none;
    max-width: calc(100vw - 24px);
    overflow-x: auto;
    justify-content: flex-start;
    gap: 6px;
    padding: 6px;
    border-radius: 18px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .flow-nav::-webkit-scrollbar { display: none; }
  .flow-nav .label { display: none; }
  .flow-nav .flow-step {
    display: none;
    flex: 0 0 auto;
    min-width: 64px;
    min-height: 44px;
    padding: 7px 10px;
    text-align: center;
  }
  .flow-nav .flow-step.prev, .flow-nav .flow-step.on, .flow-nav .flow-step.next {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
  .flow-nav-current-landing, .flow-nav-current-checkout { display: none; }
  body.checkout-page .page { padding-bottom: 0; }
  .checkout-modal {
    max-height: calc(100dvh - 32px);
    overflow-y: auto;
    padding: 26px 28px 24px;
  }
}

@media (min-width: 901px) {
  .flow-nav {
    left: 26%;
  }
  .flow-proof {
    display: grid;
  }
}

/* ========= SEO content blocks (server-rendered for LLM crawlers) ========= */
html:has(body.has-seo), body.has-seo {
  height: auto;
  min-height: 100%;
  overflow: visible;
}
body.has-seo .page {
  height: auto;
  min-height: 100dvh;
}
.seo-block {
  padding: 64px 32px;
  background: var(--surface);
  border-top: 1px solid var(--line);
}
.seo-block--alt { background: var(--paper); }
.seo-inner {
  max-width: 960px;
  margin: 0 auto;
}
.seo-inner h2 {
  font-size: 1.875rem;
  font-weight: 700;
  margin: 0 0 20px;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.seo-lede {
  font-size: 1.0625rem;
  line-height: 1.55;
  color: var(--ink-2);
  max-width: 60ch;
  margin: 0 0 24px;
}
.seo-steps {
  list-style: decimal;
  padding-left: 20px;
  margin: 0;
  display: grid;
  gap: 14px;
  color: var(--ink-2);
  line-height: 1.55;
  max-width: 64ch;
}
.seo-steps li strong { color: var(--ink); }
.seo-grid {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 14px 28px;
  color: var(--ink-2);
  line-height: 1.5;
}
.seo-grid li strong { color: var(--ink); }
.seo-faq {
  display: grid;
  gap: 8px;
}
.seo-faq-toolbar {
  display: grid;
  gap: 8px;
  margin: 0 0 20px;
}
.seo-faq-search-label {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--ink);
}
.seo-faq-search {
  width: 100%;
  min-height: 48px;
  padding: 0 15px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.03);
}
.seo-faq-search::placeholder {
  color: var(--ink-4);
}
.seo-faq-search-help,
.seo-faq-status,
.seo-faq-empty {
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.5;
}
.seo-faq-search-help {
  color: var(--ink-3);
}
.seo-faq-status {
  color: var(--accent-strong);
  font-weight: 600;
}
.seo-faq-empty {
  margin-top: 12px;
  color: var(--ink-3);
}
.seo-faq details {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  padding: 14px 18px;
}
.seo-faq summary {
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  color: var(--ink);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.seo-faq summary::-webkit-details-marker { display: none; }
.seo-faq summary::after {
  content: "+";
  color: var(--accent);
  font-size: 1.25rem;
  line-height: 1;
}
.seo-faq details[open] summary::after { content: "−"; }
.seo-faq details > p {
  margin: 12px 0 0;
  color: var(--ink-2);
  line-height: 1.55;
}
.seo-faq-more {
  margin: 28px 0 0;
}
.seo-faq-more a {
  color: var(--accent);
  font-weight: 500;
  text-decoration: none;
}
.seo-faq-more a:hover { text-decoration: underline; }

/* Standalone /faq page */
.seo-page {
  max-width: 760px;
  margin: 0 auto;
  padding: 56px 32px 80px;
  color: var(--ink-2);
  line-height: 1.6;
}
.seo-page-header { margin-bottom: 36px; }
.seo-eyebrow {
  font-size: 1rem;
  color: var(--ink-3);
  margin: 0 0 8px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.seo-eyebrow a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
}
.seo-page h1 {
  font-size: 2rem;
  font-weight: 700;
  color: var(--ink);
  margin: 0 0 12px;
  letter-spacing: -0.01em;
}
.seo-faq--page {
  display: grid;
  gap: 28px;
}
.seo-faq--page article h2 {
  font-size: 1.25rem;
  font-weight: 600;
  margin: 0 0 8px;
  color: var(--ink);
}
.seo-faq--page article p { margin: 0; }
.seo-cta-row { margin-top: 48px; }
.seo-cta {
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
}
.seo-cta:hover { text-decoration: underline; }

@media (max-width: 900px) {
  .seo-block { padding: 48px 22px; }
  .seo-page { padding: 40px 22px 64px; }
  .seo-page h1 { font-size: 1.875rem; }
  .seo-faq-toolbar {
    gap: 10px;
    margin-bottom: 18px;
  }
  .seo-faq-search {
    min-height: 50px;
  }
}

/* ============================================================
 * LANDING V2 — editorial, scrollable home screen.
 * Scoped under body.landing-v2 so the funnel screens 02–06
 * keep their split-pane layout untouched.
 * ============================================================ */

body.landing-v2 {
  height: auto;
  min-height: 100%;
  overflow: visible;
  background: var(--paper);
  font-size: var(--text-md);
  line-height: var(--lh-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
html:has(body.landing-v2) {
  height: auto;
  min-height: 100%;
  overflow: visible;
}
body.landing-v2 main { display: block; }
body.landing-v2 .flow-nav { display: none; }

::selection { background: var(--accent-soft); color: var(--ink); }

.lv2-shell {
  max-width: 1240px;
  margin: 0 auto;
  padding-inline: clamp(24px, 5vw, var(--s-14));
}

.lv2-topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  /* backdrop-filter dropped to spare cheap-Android GPUs (Adreno 506 jank
   * on every scroll). Near-opaque solid is visually indistinguishable
   * and free. */
  background: rgba(247, 244, 239, 0.96);
  border-bottom: 1px solid var(--line);
}
.lv2-topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: var(--s-5);
}
.lv2-wordmark {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  color: var(--ink);
}
.lv2-wordmark img {
  display: block;
  height: 36px;
  width: auto;
}
.lv2-toplinks {
  display: flex;
  gap: var(--s-9);
  align-items: center;
  font-family: var(--font-sans);
  font-size: var(--text-md);
  font-weight: var(--w-medium);
}
.lv2-toplinks a {
  color: var(--ink-3);
  text-decoration: none;
  transition: color var(--d-fast) var(--ease-out);
}
.lv2-toplinks a:hover { color: var(--accent); }
.lv2-toplinks a.entrar {
  color: var(--ink);
  border-left: 1px solid var(--line-2);
  padding-left: var(--s-9);
}
@media (max-width: 640px) {
  .lv2-toplinks a.muted { display: none; }
  .lv2-toplinks a.entrar { border-left: 0; padding-left: 0; }
}

.lv2-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  font-weight: var(--w-medium);
  letter-spacing: var(--ls-eyebrow);
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 var(--s-7);
}
.lv2-eyebrow::before {
  content: "";
  width: 20px;
  height: 1px;
  background: var(--accent);
}
.lv2-eyebrow.on-ink { color: var(--accent); }
.lv2-eyebrow.on-ink::before { background: var(--accent); }

/* Pill-chip variant of the eyebrow. Used on the hero to give the line a
   surface of its own — same accent-soft tint idle chips use, no
   uppercase, no hairline rule. Overrides .lv2-eyebrow defaults via
   higher specificity so admin copy overrides keep working unchanged. */
.lv2-eyebrow.is-chip {
  background: var(--accent-soft);
  color: var(--ink);
  padding: 8px 14px;
  border-radius: var(--r-pill);
  font-size: var(--text-xs);
  font-weight: var(--w-medium);
  letter-spacing: 0;
  text-transform: none;
  max-width: max-content;
}
.lv2-eyebrow.is-chip::before { display: none; }

/* Trust-signal variant of the hero chip. Dark pill so it reads as a
   separate proof element from the green vertical-context chip above. */
.lv2-eyebrow.is-chip.is-trust {
  margin-top: 8px;
  background: var(--ink, #141516);
  color: #fff;
}
.lv2-eyebrow.is-chip.is-trust .lv2-trust-sep {
  margin: 0 6px;
  opacity: 0.6;
}
.lv2-eyebrow.is-chip.is-trust .lv2-chip-icon {
  margin-right: 6px;
}

/* Hero risk-reducer strip. Flows as natural text (not flex) so when
   the line wraps on narrow viewports, continuation reads as one
   paragraph instead of a left-aligned ladder under the check. */
.lv2-trust {
  display: block;
  margin: calc(-1 * var(--s-3)) 0 0;
  font-family: var(--font-sans);
  font-size: var(--text-xs);
  font-weight: var(--w-regular);
  line-height: 1.45;
  letter-spacing: var(--ls-meta);
  color: var(--ink-3);
}
.lv2-trust strong {
  font-weight: var(--w-semibold);
  color: var(--ink-2);
}
.lv2-trust-sep {
  display: inline-block;
  margin: 0 6px;
  color: var(--line-2);
}
.lv2-trust-check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-strong);
  font-size: 10px;
  font-weight: var(--w-bold);
  line-height: 1;
  vertical-align: -3px;
  margin-right: 6px;
}

/* Form-first hero: single centered column. Replaces the prior
   2-column hero-grid that paired copy with a live phone preview. */
.lv2-hero-form {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
}
.lv2-hero-name-form {
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
  width: 100%;
  margin: 0 0 var(--s-6);
}
.lv2-hero-name-form .lv2-input { max-width: 420px; }
.lv2-input-label {
  display: block;
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  font-weight: var(--w-medium);
  letter-spacing: 0.02em;
  color: var(--ink-2);
  margin: 0;
}
.lv2-input {
  width: 100%;
  height: 48px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 0 14px;
  font-family: var(--font-sans);
  font-size: var(--text-md);
  color: var(--ink);
  outline: none;
  transition: border-color var(--d-fast) var(--ease-out),
              box-shadow var(--d-fast) var(--ease-out);
}
.lv2-input::placeholder { color: var(--ink-4); }
.lv2-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(47, 169, 93, 0.45);
}
/* Reset the default cta-row margin when it sits inside the form —
   the form's own gap handles spacing. */
.lv2-hero-name-form .lv2-cta-row { margin-bottom: 0; margin-top: var(--s-2); }

/* Outlined secondary CTA for the high-intent fast-buy path. Pill,
   ink text, outline-variant border — matches the system's
   button-ghost component (DESIGN.md). */
.lv2-btn-ghost-cta {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  height: 44px;
  padding: 0 18px;
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line-2);
  border-radius: var(--r-pill);
  font-family: var(--font-sans);
  font-size: var(--text-base);
  font-weight: var(--w-medium);
  text-decoration: none;
  cursor: pointer;
  transition: border-color var(--d-fast) var(--ease-out),
              background var(--d-fast) var(--ease-out);
}
.lv2-btn-ghost-cta:hover {
  border-color: var(--ink-3);
  background: var(--surface);
}
.lv2-btn-ghost-cta strong { font-weight: var(--w-semibold); color: var(--ink); }
.lv2-btn-ghost-cta .sep { color: var(--ink-4); }
.lv2-btn-ghost-cta .price { color: var(--accent-strong); font-weight: var(--w-semibold); }
.lv2-btn-ghost-cta .arrow { color: var(--ink-3); }

.lv2-hero-aux {
  margin-top: var(--s-6);
}

/* Mobile: both hero CTAs stretch to thumb width, ghost button text
   wraps to one line with the price tag inline. */
@media (max-width: 720px) {
  .lv2-hero-name-form .lv2-cta-row {
    flex-direction: column;
    align-items: stretch;
    gap: var(--s-3);
  }
  .lv2-hero-name-form .lv2-btn-primary,
  .lv2-hero-name-form .lv2-btn-ghost-cta {
    width: 100%;
    justify-content: center;
  }
  /* Drop the redundant "— assinar agora" middle phrase on narrow
     viewports — keeps "Já decidi R$ 99/mês →" on a single line with
     the existing flex gap as the breath between tokens. */
  .lv2-btn-ghost-cta .sep,
  .lv2-btn-ghost-cta .secondary { display: none; }
}

.lv2-section-title {
  font-family: var(--font-sans);
  font-size: clamp(var(--text-2xl), 4vw, 3rem);
  font-weight: var(--w-bold);
  line-height: 1.06;
  letter-spacing: -0.01em;
  margin: 0 0 clamp(var(--s-12), 6vh, 72px);
  max-width: 22ch;
  color: var(--ink);
}

.lv2-hero {
  padding-block: clamp(16px, 2.5vh, 28px) clamp(48px, 7vh, 96px);
  position: relative;
}
/* Hero eyebrow gets tighter margin since the H1 below is the visual focal point. */
.lv2-hero .lv2-eyebrow { margin: 0 0 var(--s-6); }
.lv2-hero-title {
  font-family: var(--font-sans);
  font-weight: var(--w-bold);
  font-size: clamp(var(--text-xl), 5vw, var(--text-3xl));
  line-height: var(--lh-tight);
  letter-spacing: -0.01em;
  color: var(--ink);
  margin: 0 0 clamp(20px, 3vh, 32px);
  max-width: 18ch;
}
.lv2-hero-title em {
  font-style: normal;
  color: var(--accent);
  font-weight: var(--w-bold);
}
.lv2-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: clamp(32px, 4vw, 80px);
  align-items: start;
}
.lv2-hero-lede {
  font-family: var(--font-sans);
  font-size: var(--text-lg);
  line-height: var(--lh-body);
  color: var(--ink-2);
  max-width: 36ch;
  margin: 0 0 clamp(28px, 4vh, 36px);
}
.lv2-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-6);
  align-items: center;
  margin-bottom: clamp(36px, 5vh, 56px);
}

.lv2-btn-primary {
  appearance: none;
  border: 0;
  background: var(--accent);
  color: var(--accent-text);
  font-family: var(--font-sans);
  font-size: var(--text-md);
  font-weight: var(--w-semibold);
  padding: 14px 24px;
  min-height: var(--s-12);
  border-radius: var(--r-pill);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: var(--s-3);
  box-shadow: var(--shadow-cta);
  transition: background var(--d-fast) var(--ease-out),
              transform var(--d-fast) var(--ease-out),
              box-shadow var(--d-base) var(--ease-out);
}
.lv2-btn-primary:hover {
  background: var(--accent-strong);
  transform: translateY(-1px);
  box-shadow: var(--shadow-cta-strong);
}
.lv2-btn-primary:active { transform: translateY(0); }
.lv2-btn-primary .arrow { transition: transform var(--d-base) var(--ease-out); }
.lv2-btn-primary:hover .arrow { transform: translateX(4px); }

.lv2-btn-ghost {
  appearance: none;
  background: transparent;
  border: 0;
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: var(--text-base);
  font-weight: var(--w-semibold);
  padding: 8px 0;
  min-height: var(--s-12);
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-thickness: 1px;
  text-decoration-color: var(--line-2);
  transition: text-decoration-color var(--d-fast) var(--ease-out),
              color var(--d-fast) var(--ease-out);
}
.lv2-btn-ghost:hover {
  color: var(--accent-strong);
  text-decoration-color: var(--accent);
}

body.landing-v2 .lv2-phone-stage {
  position: relative;
  width: 320px;
  justify-self: end;
  align-self: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 2;
  transform: none;
}
body.landing-v2 .lv2-phone-stage .live-badge {
  position: static;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  padding: 6px 12px 6px 10px;
  margin: 0 0 var(--s-4);
  font-family: var(--font-sans);
  font-size: var(--text-xs);
  font-weight: var(--w-semibold);
  color: var(--ink-2);
  letter-spacing: var(--ls-meta);
  box-shadow: var(--shadow-card);
}
body.landing-v2 .lv2-phone-stage .live-badge .dot {
  width: 8px; height: 8px;
  background: var(--accent);
  border-radius: 50%;
  position: relative;
  animation: none;
}
body.landing-v2 .lv2-phone-stage .live-badge .dot::after {
  content: "";
  position: absolute;
  inset: -3px;
  border: 1.5px solid var(--accent);
  border-radius: 50%;
  animation: livePulse 2.4s var(--ease-out) infinite;
}
@keyframes livePulse {
  0%   { transform: scale(1);   opacity: 0.7; }
  70%  { transform: scale(2.2); opacity: 0; }
  100% { transform: scale(2.2); opacity: 0; }
}
body.landing-v2 .lv2-phone-stage .iphone {
  width: 320px;
  height: 640px;
  border-radius: 46px;
  padding: 11px;
  box-shadow:
    0 0 0 2px #232323 inset,
    0 1px 2px rgba(0,0,0,0.06),
    0 26px 52px -18px rgba(0,0,0,0.28),
    0 50px 90px -36px rgba(0,0,0,0.35);
}
body.landing-v2 .lv2-phone-stage .iphone .screen { border-radius: 38px; }
body.landing-v2 .lv2-phone-stage .iphone .notch {
  width: 98px; height: 27px; top: 9px;
  border-radius: 16px;
}
body.landing-v2 .lv2-phone-stage .iphone .status {
  height: 40px;
  padding: 0 22px;
}
body.landing-v2 .lv2-phone-stage .msg-head { padding: 44px 11px 9px; }
body.landing-v2 .lv2-phone-stage .phone-reset {
  top: 12px;
  right: -12px;
}
.phone-stage-links {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  margin-top: 12px;
  text-align: center;
}
.phone-stage-links .reset-link { margin-top: 0; }
.demo-picker {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
  max-width: 340px;
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  color: var(--ink-3);
}
.demo-picker span {
  width: 100%;
  text-align: center;
  font-weight: var(--w-bold);
  color: var(--ink-2);
  margin-bottom: 2px;
}
/* DESIGN.md chip spec: pill-shaped, accent-soft, 44px hit floor.
 * Replaces the prior underlined-link treatment which created overlapping
 * touch targets on 360px viewports. */
.demo-picker .reset-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: var(--s-12);
  padding: 0 var(--s-6);
  border: 1px solid transparent;
  border-radius: var(--r-pill);
  background: var(--accent-soft);
  color: var(--ink);
  font: inherit;
  font-weight: var(--w-semibold);
  text-decoration: none;
  cursor: pointer;
  transition: filter var(--d-fast) var(--ease-out);
}
.demo-picker .reset-link:hover {
  filter: brightness(0.97);
}
.demo-picker .reset-link:active {
  filter: brightness(0.94);
}

.lv2-manifesto {
  padding-block: clamp(72px, 12vh, 160px);
  border-top: 1px solid var(--line);
}
.lv2-principles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(var(--s-9), 4vw, 56px);
}
.lv2-principle {
  position: relative;
  padding-top: var(--s-9);
  border-top: 1px solid var(--ink);
}
.lv2-principle-num {
  position: absolute;
  top: -12px;
  left: 0;
  background: var(--paper);
  padding-right: var(--s-4);
  font-family: var(--font-sans);
  font-size: var(--text-xs);
  font-weight: var(--w-bold);
  letter-spacing: var(--ls-label);
  text-transform: uppercase;
  color: var(--ink);
}
.lv2-principle h3 {
  font-family: var(--font-sans);
  font-size: var(--text-xl);
  font-weight: var(--w-bold);
  line-height: 1.2;
  letter-spacing: 0;
  margin: 0 0 var(--s-4);
  color: var(--ink);
}
.lv2-principle p {
  font-size: var(--text-md);
  line-height: var(--lh-body);
  color: var(--ink-2);
  margin: 0;
  max-width: 36ch;
}

.lv2-steps {
  padding-block: clamp(72px, 12vh, 160px);
  background: var(--wall);
  border-top: 1px solid var(--line-2);
  border-bottom: 1px solid var(--line-2);
}
.lv2-steps-lede {
  font-family: var(--font-sans);
  font-size: var(--text-lg);
  line-height: var(--lh-body);
  color: var(--ink-2);
  margin: calc(var(--s-8) * -1) 0 clamp(var(--s-10), 5vh, 56px);
  max-width: 52ch;
}
.lv2-steps-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: clamp(var(--s-9), 4vh, 48px);
}
.lv2-step {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: clamp(var(--s-7), 4vw, 56px);
  align-items: start;
  padding-bottom: clamp(var(--s-9), 4vh, 40px);
  border-bottom: 1px solid var(--line-2);
}
.lv2-step:last-child { border-bottom: 0; padding-bottom: 0; }
.lv2-step-num {
  font-family: var(--font-sans);
  font-size: clamp(60px, 8vw, 96px);
  font-weight: var(--w-bold);
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--ink);
  font-feature-settings: "tnum";
  margin-top: -0.06em;
}
.lv2-step h3 {
  font-family: var(--font-sans);
  font-size: clamp(1.25rem, 2vw, 1.625rem);
  font-weight: var(--w-bold);
  line-height: 1;
  letter-spacing: 0;
  color: var(--ink);
  margin: 0 0 var(--s-4);
}
.lv2-step h3 + p { margin-top: var(--s-4); }
.lv2-step p {
  font-size: var(--text-md);
  line-height: var(--lh-body);
  color: var(--ink-2);
  margin: 0;
  max-width: 56ch;
}
.lv2-duration {
  font-family: var(--font-sans);
  font-size: var(--text-xs);
  color: var(--ink-3);
  letter-spacing: var(--ls-meta);
  margin-top: var(--s-5);
  display: inline-block;
  text-transform: uppercase;
  font-weight: var(--w-medium);
}

.lv2-features {
  padding-block: clamp(72px, 12vh, 160px);
}
.lv2-features-lede {
  font-family: var(--font-sans);
  font-size: var(--text-lg);
  line-height: var(--lh-body);
  color: var(--ink-2);
  margin: calc(var(--s-8) * -1) 0 clamp(var(--s-10), 5vh, 56px);
  max-width: 42ch;
}
.lv2-features-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--s-5);
}
.lv2-feature-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: clamp(var(--s-7), 3vw, var(--s-9));
  background: rgba(255, 255, 255, 0.4);
}
.lv2-feature-card-wide {
  grid-column: span 2;
  background: var(--wall);
  border-color: var(--line-2);
}
.lv2-feature-kicker {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: var(--text-xs);
  font-weight: var(--w-bold);
  letter-spacing: var(--ls-eyebrow);
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: var(--s-5);
}
.lv2-feature-card h3 {
  font-family: var(--font-sans);
  font-size: var(--text-xl);
  font-weight: var(--w-bold);
  line-height: 1.2;
  letter-spacing: 0;
  color: var(--ink);
  margin: 0 0 var(--s-3);
}
.lv2-feature-card p {
  font-family: var(--font-sans);
  font-size: var(--text-md);
  line-height: var(--lh-body);
  color: var(--ink-2);
  margin: 0;
  max-width: 42ch;
}

.lv2-proof {
  padding-block: clamp(56px, 8vh, 96px);
  background: var(--ink);
  color: var(--paper);
}
.lv2-proof .lv2-section-title { color: var(--paper); }
.lv2-proof-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(var(--s-9), 4vw, 56px);
  align-items: start;
}
.lv2-proof-item h4 {
  font-family: var(--font-sans);
  font-size: var(--text-xl);
  font-weight: var(--w-bold);
  letter-spacing: 0;
  margin: 0 0 var(--s-3);
  color: var(--paper);
  line-height: 1.2;
}
.lv2-proof-item p {
  font-family: var(--font-sans);
  font-size: var(--text-md);
  line-height: var(--lh-body);
  color: rgba(247, 244, 239, 0.78);
  margin: 0;
  max-width: 32ch;
}
.lv2-proof-item .lv2-marker {
  font-family: var(--font-sans);
  font-size: var(--text-xs);
  font-weight: var(--w-bold);
  letter-spacing: var(--ls-eyebrow);
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: var(--s-5);
  display: inline-block;
}

.lv2-pricing { padding-block: clamp(72px, 12vh, 160px); }
.lv2-offer-card {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  border: 1px solid var(--ink);
  border-radius: var(--r-lg);
  background: var(--surface);
  overflow: hidden;
}
.lv2-offer-card-main {
  padding: clamp(var(--s-12), 5vw, 64px);
  border-right: 1px solid var(--line);
}
.lv2-offer-card-side {
  padding: clamp(var(--s-12), 5vw, 64px);
  background: var(--paper);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: var(--s-10);
}
.lv2-offer-stamp {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: var(--text-xs);
  font-weight: var(--w-bold);
  letter-spacing: var(--ls-eyebrow);
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-soft);
  border: 1px solid var(--accent);
  padding: 6px 14px 7px;
  border-radius: var(--r-pill);
  margin-bottom: var(--s-9);
}
.lv2-offer-numbers {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(var(--s-7), 3vw, 36px);
  margin-bottom: var(--s-9);
}
.lv2-offer-num {
  border-top: 1px solid var(--line-2);
  padding-top: var(--s-7);
}
.lv2-offer-num-label {
  font-family: var(--font-sans);
  font-size: var(--text-xs);
  font-weight: var(--w-bold);
  letter-spacing: var(--ls-label);
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: var(--s-2);
}
.lv2-offer-num-from {
  font-family: var(--font-sans);
  font-size: var(--text-base);
  color: var(--ink-4);
  text-decoration: line-through;
  text-decoration-thickness: 2px;
  text-decoration-color: rgba(21, 21, 18, 0.45);
  margin-bottom: var(--s-1);
}
.lv2-offer-num-now {
  font-family: var(--font-sans);
  font-size: clamp(40px, 6vw, 64px);
  font-weight: var(--w-bold);
  line-height: 0.92;
  letter-spacing: 0;
  color: var(--ink);
}
.lv2-offer-num-note {
  font-family: var(--font-sans);
  font-size: var(--text-md);
  color: var(--ink-3);
  margin: var(--s-4) 0 0;
  max-width: 26ch;
  line-height: var(--lh-base);
}
.lv2-offer-includes h4 {
  font-family: var(--font-sans);
  font-size: var(--text-xs);
  font-weight: var(--w-bold);
  letter-spacing: var(--ls-label);
  text-transform: uppercase;
  color: var(--ink-3);
  margin: 0 0 var(--s-4);
}
.lv2-offer-includes-lede {
  margin: 0 0 var(--s-6);
  font-size: var(--text-sm);
  color: var(--ink-2);
  line-height: var(--lh-base);
}
.lv2-offer-includes ul { list-style: none; margin: 0; padding: 0; }
.lv2-offer-includes li {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  gap: var(--s-5);
  align-items: start;
  padding: var(--s-3) 0;
  border-top: 1px solid var(--line);
  font-size: var(--text-md);
  color: var(--ink);
  line-height: var(--lh-base);
}
/* One wrapper per bullet — <strong> plus body text must not be separate grid items. */
.lv2-offer-includes-copy {
  min-width: 0;
}
.lv2-offer-includes li strong {
  font-weight: var(--w-semibold);
  color: var(--ink);
}
.lv2-offer-includes li:first-child { border-top: 0; padding-top: var(--s-1); }
.lv2-offer-includes li::before {
  content: "";
  width: 6px;
  height: 6px;
  margin-top: 9px;
  border-radius: 50%;
  background: var(--accent);
}
.lv2-offer-fineprint {
  margin: 0;
  font-size: var(--text-sm);
  color: var(--ink-3);
  line-height: var(--lh-base);
}
.lv2-offer-cta-row {
  margin-top: var(--s-7);
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-5);
  align-items: center;
}
.lv2-offer-cta-pair {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-3);
  align-items: center;
}
.lv2-offer-cta-pair .lv2-btn-primary,
.lv2-offer-cta-pair .lv2-btn-ghost-cta {
  min-height: 44px;
}
@media (max-width: 560px) {
  .lv2-offer-cta-pair {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
  }
  .lv2-offer-cta-pair .lv2-btn-primary,
  .lv2-offer-cta-pair .lv2-btn-ghost-cta {
    width: 100%;
    justify-content: center;
  }
}
.lv2-offer-cta-row .meta {
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  color: var(--ink-3);
}

.lv2-faq {
  padding-block: clamp(72px, 12vh, 160px);
  border-top: 1px solid var(--line);
}
.lv2-faq-toolbar {
  display: grid;
  gap: var(--s-2);
  margin: 0 0 var(--s-10);
  max-width: 56ch;
}
.lv2-faq-search-label {
  font-size: var(--text-sm);
  font-weight: var(--w-semibold);
  color: var(--ink);
}
.lv2-faq-search {
  width: 100%;
  min-height: 48px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.03);
}
.lv2-faq-search::placeholder { color: var(--ink-4); }
.lv2-faq-search-help,
.lv2-faq-status,
.lv2-faq-empty {
  margin: 0;
  font-size: var(--text-sm);
  line-height: 1.5;
}
.lv2-faq-search-help { color: var(--ink-3); }
.lv2-faq-status { color: var(--accent-strong); font-weight: var(--w-semibold); }
.lv2-faq-empty { margin-top: var(--s-6); color: var(--ink-3); }
.lv2-faq-list { display: grid; }
.lv2-faq-item { border-top: 1px solid var(--line-2); }
.lv2-faq-item:last-child { border-bottom: 1px solid var(--line-2); }
.lv2-faq-q {
  list-style: none;
  cursor: pointer;
  font-family: var(--font-sans);
  font-size: clamp(1.0625rem, 1.5vw, 1.25rem);
  font-weight: var(--w-semibold);
  letter-spacing: 0;
  color: var(--ink);
  padding: var(--s-8) var(--s-12) var(--s-8) 0;
  position: relative;
  transition: color var(--d-fast) var(--ease-out);
}
.lv2-faq-q::-webkit-details-marker { display: none; }
.lv2-faq-q:hover { color: var(--accent-strong); }
.lv2-faq-q::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 18px;
  font-family: var(--font-sans);
  font-size: 24px;
  font-weight: var(--w-regular);
  color: var(--ink);
  width: 28px;
  text-align: center;
  line-height: 1;
}
.lv2-faq-item[open] .lv2-faq-q::after { content: "×"; }
.lv2-faq-a {
  padding: 0 0 var(--s-9);
  font-family: var(--font-sans);
  font-size: var(--text-md);
  line-height: 1.6;
  color: var(--ink-2);
  max-width: 70ch;
  margin: 0;
}
.lv2-faq-more { margin: var(--s-10) 0 0; }
.lv2-faq-more a {
  color: var(--accent);
  font-weight: var(--w-semibold);
  text-decoration: none;
}
.lv2-faq-more a:hover { text-decoration: underline; }

.lv2-closer {
  padding-block: clamp(80px, 14vh, 180px) clamp(60px, 10vh, 120px);
  text-align: center;
}
.lv2-closer-h {
  font-family: var(--font-sans);
  font-size: clamp(2rem, 5vw, 3.75rem);
  font-weight: var(--w-bold);
  line-height: var(--lh-tight);
  letter-spacing: -0.01em;
  margin: 0 auto var(--s-7);
  color: var(--ink);
  max-width: 18ch;
}
.lv2-closer-sub {
  font-family: var(--font-sans);
  font-size: var(--text-lg);
  color: var(--ink-2);
  margin: 0 auto var(--s-12);
  max-width: 42ch;
  line-height: var(--lh-body);
}
.lv2-closer .lv2-btn-primary { margin: 0 auto; }

.lv2-footer {
  border-top: 1px solid var(--line);
  padding-block: var(--s-10) var(--s-14);
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  color: var(--ink-3);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--s-7);
}
.lv2-footer a { color: var(--ink-3); text-decoration: none; }
.lv2-footer a:hover {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.lv2-footer-links { display: flex; gap: var(--s-9); flex-wrap: wrap; }

body.landing-v2 .lv2-reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 700ms var(--ease-out), transform 700ms var(--ease-out);
}
body.landing-v2 .lv2-reveal.in {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  body.landing-v2 .lv2-reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

body.landing-v2 .lv2-phone-stage.is-guiding .iphone {
  outline: 3px solid rgba(47, 169, 93, 0.36);
  outline-offset: 9px;
}

@media (min-width: 901px) {
  body.landing-v2 .lv2-phone-stage,
  body.landing-v2 .phone-stage {
    transform: none;
  }
}

/* Mobile flex-order rules used to live here for the prior 2-column
 * phone-hero. With the form-first single-column hero, natural source
 * order is correct and no flex reordering is needed. */

@media (max-width: 760px) {
  body.landing-v2 .lv2-principles { grid-template-columns: 1fr; gap: var(--s-12); }
  body.landing-v2 .lv2-proof-grid { grid-template-columns: 1fr; gap: var(--s-12); }
  body.landing-v2 .lv2-features-grid { grid-template-columns: 1fr; }
  body.landing-v2 .lv2-feature-card-wide { grid-column: auto; }
  body.landing-v2 .lv2-offer-card { grid-template-columns: 1fr; }
  body.landing-v2 .lv2-offer-card-main {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
}

@media (max-width: 720px) {
  body.landing-v2 .lv2-hero      { padding-block: clamp(12px, 2vh, 24px) clamp(28px, 5vh, 56px); }
  body.landing-v2 .lv2-manifesto { padding-block: clamp(48px, 8vh, 80px); }
  body.landing-v2 .lv2-steps     { padding-block: clamp(48px, 8vh, 72px); }
  body.landing-v2 .lv2-features  { padding-block: clamp(48px, 8vh, 80px); }
  body.landing-v2 .lv2-proof     { padding-block: clamp(40px, 7vh, 64px); }
  body.landing-v2 .lv2-pricing   { padding-block: clamp(48px, 8vh, 80px); }
  body.landing-v2 .lv2-faq       { padding-block: clamp(48px, 8vh, 80px); }
  body.landing-v2 .lv2-closer    { padding-block: clamp(56px, 10vh, 96px) clamp(40px, 7vh, 72px); }

  body.landing-v2 .lv2-section-title { margin-bottom: clamp(28px, 5vh, 48px); }

  body.landing-v2 .lv2-principle-num {
    position: static;
    background: transparent;
    padding: 0 0 var(--s-2);
    display: block;
  }
  body.landing-v2 .lv2-principle { padding-top: var(--s-7); }
}

@media (max-width: 680px) {
  body.landing-v2 .lv2-step { grid-template-columns: 1fr; gap: var(--s-1); }
  body.landing-v2 .lv2-step-num { font-size: 56px; }
}

@media (max-width: 640px) {
  body.landing-v2 .lv2-toplinks a.muted { display: none; }
  body.landing-v2 .lv2-toplinks a.entrar { border-left: 0; padding-left: 0; }
}

@media (max-width: 420px) {
  body.landing-v2 .lv2-phone-stage { width: 100%; max-width: 320px; }
  body.landing-v2 .lv2-phone-stage .iphone {
    width: 100%;
    height: auto;
    aspect-ratio: 320 / 640;
  }
}

/* ============ Shared list/byline classes (named historically after the
 * landing-video block which used them first). The .lv2-agenda section
 * still uses .lv2-demo-video-tells and .lv2-demo-video-byline. */
body.landing-v2 .lv2-demo-video-tells {
  list-style: none;
  padding: 0;
  margin: 0 0 clamp(20px, 3vh, 28px);
  display: grid;
  gap: var(--s-3);
}
body.landing-v2 .lv2-demo-video-tells li {
  font-family: var(--font-sans);
  font-size: var(--text-md);
  line-height: var(--lh-base);
  color: var(--ink-2);
  padding-left: 22px;
  position: relative;
}
body.landing-v2 .lv2-demo-video-tells li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
}
body.landing-v2 .lv2-demo-video-tells strong {
  color: var(--ink);
  font-weight: var(--w-semibold);
}
body.landing-v2 .lv2-demo-video-byline {
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  color: var(--ink-3);
  margin: 0;
  letter-spacing: var(--ls-meta);
  max-width: 44ch;
}
body.landing-v2 .lv2-demo-video-byline strong {
  color: var(--ink-2);
  font-weight: var(--w-semibold);
}
body.landing-v2 .lv2-agenda { padding-block: clamp(48px, 8vh, 80px); }
body.landing-v2 .lv2-agenda-flow {
  max-width: 56ch;
  margin-block: clamp(24px, 4vh, 36px);
}
body.landing-v2 .lv2-agenda-flow li strong { display: block; margin-bottom: 4px; }

/* Phase 2.1 manifesto rule #1: when the bot answers from outside its
   knowledge block, the funnel preview surfaces an explicit "Falar com
   humano →" affordance inside the bubble, mirroring the production-bot
   behavior the customer will see on WhatsApp. */
.bub.ai-dontknow {
  background: color-mix(in oklch, var(--accent) 5%, var(--bub-in));
  border-left: 3px solid var(--accent);
  padding-left: 10px;
}
.bub .handoff-cta {
  display: inline-block;
  margin-top: 6px;
  padding: 3px 8px;
  background: color-mix(in oklch, var(--accent) 14%, var(--surface));
  border: 1px solid color-mix(in oklch, var(--accent) 32%, var(--line));
  border-radius: 100px;
  color: var(--accent-strong);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.2;
}
.bub .tag-exemplo {
  display: inline-flex;
  align-items: center;
  margin-right: 6px;
  padding: 0 5px;
  background: var(--accent-soft);
  color: var(--success-text);
  border-radius: 100px;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: 0.02em;
}

/* ============ Phase 2.1 onboarding knowledge editor ============ */
/* /preview (.ready-preview) shares /start's surface treatment — same split
   background, same top-anchored flow-nav — so the two steps feel like
   siblings rather than separate templates. */
.ready-preview,
.onboarding-knowledge {
  background:
    linear-gradient(90deg, var(--paper) 0%, var(--paper) 52%, var(--bg-right-1) 52%, var(--bg-right-2) 100%);
}
.ready-preview-page,
.onboarding-knowledge-page {
  min-height: calc(100svh - 64px);
  align-items: center;
}
.onboarding-knowledge-intro {
  max-width: 620px;
}
.knowledge-proof {
  display: grid;
  gap: var(--s-3);
  margin-top: var(--s-8);
  color: var(--ink-2);
  font-size: var(--text-md);
  line-height: 1.45;
}
.knowledge-proof span {
  position: relative;
  padding-left: var(--s-7);
}
.knowledge-proof span::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.65em;
  width: 8px;
  height: 8px;
  border-radius: var(--r-circle);
  background: var(--accent);
}
.onboarding-knowledge-workspace {
  align-items: start;
  overflow: visible;
}
.knowledge-editor-card {
  position: relative;
  z-index: 2;
  width: min(100%, 680px);
  display: grid;
  gap: var(--s-5);
  padding: var(--s-10);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--surface);
  box-shadow: var(--shadow-card);
}
.knowledge-editor-head {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: var(--s-6);
}
.knowledge-editor-head h2 {
  margin: 0;
  font-size: var(--text-xl);
  line-height: var(--lh-snug);
}
.knowledge-back-link,
.secondary-link {
  color: var(--ink-2);
  font-size: var(--text-sm);
  font-weight: var(--w-semibold);
  text-decoration: underline;
  text-underline-offset: 4px;
  white-space: nowrap;
}
.field-label {
  color: var(--ink-2);
  font-size: var(--text-sm);
  font-weight: var(--w-semibold);
}
.knowledge-hint {
  margin: calc(var(--s-3) * -1) 0 0;
  padding: var(--s-4) var(--s-5);
  display: grid;
  gap: 6px;
  list-style: none;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: color-mix(in oklch, var(--accent) 4%, var(--paper));
  color: var(--ink-2);
  font-size: var(--text-sm);
  line-height: 1.45;
}
.knowledge-hint li {
  position: relative;
  padding-left: var(--s-5);
}
.knowledge-hint li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 6px;
  height: 6px;
  border-radius: var(--r-circle);
  background: var(--accent);
}
.knowledge-hint strong {
  color: var(--ink);
  font-weight: var(--w-semibold);
}
.knowledge-editor-card textarea {
  min-height: 360px;
  resize: vertical;
  padding: 16px;
  border: 1px solid var(--line-2);
  border-radius: var(--r-md);
  background: var(--surface);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: var(--text-md);
  line-height: 1.5;
  outline: none;
}
.knowledge-editor-card textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in oklch, var(--accent) 14%, transparent);
}
.knowledge-editor-card textarea::placeholder,
.knowledge-editor-card textarea:focus::placeholder {
  color: var(--ink-4);
  opacity: 1;
}
.knowledge-shortcut {
  display: grid;
  gap: var(--s-3);
  padding: var(--s-5);
  border: 1px dashed color-mix(in oklch, var(--accent) 45%, var(--line));
  border-radius: var(--r-md);
  background: color-mix(in oklch, var(--accent) 5%, var(--paper));
}
.knowledge-shortcut-head {
  display: grid;
  gap: 2px;
}
.knowledge-shortcut-head strong {
  color: var(--ink);
  font-size: var(--text-md);
  font-weight: var(--w-semibold);
  line-height: 1.2;
}
.knowledge-shortcut-head span {
  color: var(--ink-2);
  font-size: var(--text-sm);
  line-height: 1.4;
}
.knowledge-template-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--s-2);
}
.knowledge-template {
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 6px;
  min-height: 76px;
  padding: var(--s-3) var(--s-2);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--surface);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  font-weight: var(--w-semibold);
  cursor: pointer;
  transition: border-color 120ms ease, background-color 120ms ease, transform 120ms ease;
}
.knowledge-template:hover {
  border-color: var(--accent);
  background: var(--surface);
}
.knowledge-template:focus-visible {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in oklch, var(--accent) 18%, transparent);
}
.knowledge-template:active {
  transform: translateY(1px);
}
.knowledge-template.on {
  border-color: var(--accent);
  background: color-mix(in oklch, var(--accent) 12%, var(--surface));
}
.knowledge-template-glyph {
  font-size: 22px;
  line-height: 1;
}
.knowledge-template-label {
  font-size: var(--text-sm);
  line-height: 1.2;
}
.knowledge-status {
  min-height: 21px;
  margin: 0;
  color: var(--ink-3);
  font-size: var(--text-sm);
  line-height: 1.4;
}
.knowledge-status[data-tone="error"] { color: var(--danger-text); }
.knowledge-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--s-4);
}
.knowledge-actions .primary {
  width: fit-content;
  padding: 12px 22px;
  border: none;
  border-radius: 100px;
  background: var(--accent);
  color: var(--accent-text);
  font-family: inherit;
  font-size: 17px;
  font-weight: 500;
  cursor: pointer;
  box-shadow: 0 2px 4px rgba(47,169,93,0.15), 0 10px 24px -10px rgba(47,169,93,0.35);
  transition: filter 120ms ease, transform 120ms ease;
}
.knowledge-actions .primary:hover { filter: brightness(0.96); }
.knowledge-actions .primary:active { transform: translateY(1px); }
.knowledge-actions .primary:disabled { opacity: 0.55; cursor: not-allowed; }

@media (min-width: 901px) {
  .ready-preview .flow-nav,
  .onboarding-knowledge .flow-nav {
    position: sticky;
    top: 76px;
    bottom: auto;
    left: auto;
    transform: none;
    width: max-content;
    max-width: calc(100vw - 32px);
    margin: var(--s-4) auto 0;
  }
  .ready-preview-page,
  .onboarding-knowledge-page {
    min-height: calc(100svh - 128px);
    align-items: start;
    padding-block: var(--s-8);
  }
  .ready-preview-intro,
  .ready-preview-stage,
  .onboarding-knowledge-intro,
  .onboarding-knowledge-workspace {
    align-self: start;
  }
}

@media (max-width: 900px) {
  body.onboarding-knowledge:has(.onboarding-knowledge-page) {
    background: var(--paper);
    min-height: 100dvh;
    height: auto;
    overflow: auto;
    display: block;
  }
  .onboarding-knowledge .onboarding-knowledge-page {
    height: auto;
    min-height: calc(100dvh - 64px);
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: auto auto;
    overflow: visible;
    padding: 86px 18px 96px;
    gap: var(--s-7);
  }
  .onboarding-knowledge .onboarding-knowledge-page .left,
  .onboarding-knowledge .onboarding-knowledge-page .right {
    padding: 0;
  }
  .onboarding-knowledge .onboarding-knowledge-page .right {
    display: block;
    overflow: visible;
    min-height: auto;
    align-items: stretch;
  }
  .onboarding-knowledge .onboarding-knowledge-page .left > * {
    display: block;
  }
  .knowledge-editor-card {
    padding: var(--s-6);
  }
  .knowledge-editor-head {
    flex-direction: column;
  }
  .knowledge-editor-card textarea {
    min-height: 320px;
  }
  .knowledge-template-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .knowledge-template {
    min-height: 64px;
  }
  .knowledge-actions {
    align-items: stretch;
  }
  .knowledge-actions .primary {
    flex: 1;
  }
}

/* =========================================================================
 * Demo gallery — 9 industry phone mockups replacing the single demo video.
 *
 * Desktop ≥1024px : 3×3 grid, all phones visible.
 *                   Phones are 264×528 (≈83% of the hero phone's 320×640) so
 *                   three fit comfortably in the lv2-shell ~1100px content
 *                   column with breathing room.
 * Tablet  640-1023 : 2-column grid, all 9 visible.
 * Mobile  <640px  : 1 column. First 3 phones shown; phones 4-9 hidden behind
 *                   "Ver mais exemplos" — 95% of Mensajo traffic is mobile,
 *                   and a 9-phone vertical scroll would push the rest of the
 *                   landing page (manifesto, FAQ, CTA) far below the fold.
 * ========================================================================= */
body.landing-v2 .lv2-demo-gallery {
  padding-block: clamp(64px, 9vh, 112px);
  background: var(--bg-right-1, #f7f4ef);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  color: var(--ink);
}
body.landing-v2 .lv2-demo-gallery .lv2-section-title { color: var(--ink); }
body.landing-v2 .lv2-demo-gallery-header {
  max-width: 720px;
  margin: 0 auto clamp(40px, 6vh, 64px);
  text-align: center;
}
body.landing-v2 .lv2-demo-gallery-header .lv2-section-title {
  margin-bottom: clamp(16px, 2.5vh, 24px);
}
body.landing-v2 .lv2-demo-gallery-lede {
  font-family: var(--font-sans);
  font-size: var(--text-lg);
  line-height: var(--lh-body);
  color: var(--ink-2);
  margin: 0 0 var(--s-3);
}
body.landing-v2 .lv2-demo-gallery-byline {
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  color: var(--ink-3);
  letter-spacing: var(--ls-meta);
  margin: 0;
}
body.landing-v2 .lv2-demo-gallery-byline strong {
  color: var(--ink-2);
  font-weight: var(--w-semibold);
}
body.landing-v2 .lv2-demo-gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(28px, 4vw, 56px) clamp(20px, 3vw, 36px);
  justify-items: center;
  align-items: start;
}

/* Phone-stage variant — smaller than the hero phone (.lv2-phone-stage). The
 * iPhone bezel design is meticulously tuned at 320×640, so instead of
 * scaling we override the size primitives with proportional values. */
body.landing-v2 .lv2-demo-gallery-phone {
  position: relative;
  width: 264px;
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 1;
}
body.landing-v2 .lv2-demo-gallery-phone .iphone {
  width: 264px;
  height: 528px;
  border-radius: 38px;
  padding: 9px;
  box-shadow:
    0 0 0 2px #232323 inset,
    0 1px 2px rgba(0,0,0,0.06),
    0 16px 32px -12px rgba(0,0,0,0.22),
    0 32px 60px -28px rgba(0,0,0,0.30);
}
body.landing-v2 .lv2-demo-gallery-phone .iphone .screen { border-radius: 30px; }
body.landing-v2 .lv2-demo-gallery-phone .iphone .notch {
  width: 80px; height: 22px; top: 7px;
  border-radius: 13px;
}
body.landing-v2 .lv2-demo-gallery-phone .iphone .status {
  height: 32px;
  padding: 0 18px;
  font-size: 13px;
}
body.landing-v2 .lv2-demo-gallery-phone .msg-head {
  padding: 36px 9px 7px;
  gap: 8px;
}
body.landing-v2 .lv2-demo-gallery-phone .msg-head .ava {
  width: 32px;
  height: 32px;
  font-size: 13px;
}
body.landing-v2 .lv2-demo-gallery-phone .msg-head .name {
  font-size: 14px;
}
body.landing-v2 .lv2-demo-gallery-phone .msg-head .sub {
  font-size: 11px;
}

/* The "redacted" effect — the business name in the chat header is blurred
 * and unselectable so it reads as "real client, name protected" without
 * being clickable/copyable. The clear vertical label sits BELOW the phone. */
body.landing-v2 .lv2-demo-gallery-phone .msg-head .name {
  filter: blur(4px);
  user-select: none;
  -webkit-user-select: none;
  pointer-events: none;
}

/* Caption above the phone bezel — vertical label + emoji, in clear type. */
body.landing-v2 .lv2-demo-gallery-caption {
  margin-bottom: var(--s-3);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  font-family: var(--font-sans);
  font-size: var(--text-xs);
  font-weight: var(--w-semibold);
  color: var(--ink-2);
  letter-spacing: var(--ls-meta);
  box-shadow: var(--shadow-card);
}
body.landing-v2 .lv2-demo-gallery-caption-icon {
  font-size: 14px;
  line-height: 1;
}

/* Soft fade on the bubble stream so the loop's reset isn't jarring across
 * 9 phones at once (mirrors the single-demo .is-fading behavior). */
body.landing-v2 .lv2-demo-gallery-phone .msg-body {
  transition: opacity 600ms var(--ease-out);
}
body.landing-v2 .lv2-demo-gallery-phone.is-fading .msg-body {
  opacity: 0;
}

/* Click-to-play overlay — a frosted scrim with a centered play glyph on top
 * of the iPhone bezel. Removed (via .is-playing on the stage) once the
 * viewer activates that phone. */
body.landing-v2 .lv2-demo-gallery-play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 38px;
  background: rgba(15, 17, 21, 0.34);
  -webkit-backdrop-filter: blur(2px) saturate(110%);
  backdrop-filter: blur(2px) saturate(110%);
  cursor: pointer;
  z-index: 3;
  transition:
    background-color 200ms var(--ease-out),
    opacity 240ms var(--ease-out);
  appearance: none;
  -webkit-appearance: none;
  font: inherit;
  color: #fff;
}
body.landing-v2 .lv2-demo-gallery-play:hover {
  background: rgba(15, 17, 21, 0.42);
}
body.landing-v2 .lv2-demo-gallery-play:focus-visible {
  outline: 3px solid var(--accent, #25d366);
  outline-offset: 4px;
}
body.landing-v2 .lv2-demo-gallery-play-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.96);
  color: var(--ink, #0f1115);
  box-shadow:
    0 8px 22px -10px rgba(0, 0, 0, 0.45),
    0 2px 4px rgba(0, 0, 0, 0.18);
  transition: transform 180ms var(--ease-out);
}
body.landing-v2 .lv2-demo-gallery-play-icon svg {
  display: block;
  /* The triangle path sits ~3px right of the viewBox center at 28px — pull
   * it back so the arrow centroid lines up with the white circle. */
  margin-left: -3px;
}
body.landing-v2 .lv2-demo-gallery-play:hover .lv2-demo-gallery-play-icon {
  transform: scale(1.06);
}
body.landing-v2 .lv2-demo-gallery-play:active .lv2-demo-gallery-play-icon {
  transform: scale(0.97);
}
body.landing-v2 .lv2-demo-gallery-phone.is-playing .lv2-demo-gallery-play {
  opacity: 0;
  pointer-events: none;
}

/* "Ver mais exemplos" button — only visible on mobile, only when collapsed. */
body.landing-v2 .lv2-demo-gallery-more {
  display: none;
  margin: clamp(28px, 4vh, 40px) auto 0;
  padding: 14px 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  font-family: var(--font-sans);
  font-size: var(--text-md);
  font-weight: var(--w-semibold);
  color: var(--ink);
  cursor: pointer;
  box-shadow: var(--shadow-card);
  align-items: center;
  gap: 10px;
  transition: transform 160ms var(--ease-out), box-shadow 160ms var(--ease-out);
}
body.landing-v2 .lv2-demo-gallery-more:hover {
  transform: translateY(-1px);
}
body.landing-v2 .lv2-demo-gallery-more-count {
  font-size: var(--text-sm);
  color: var(--ink-3);
  font-weight: var(--w-semibold);
}

/* Tablet — 2 columns, still no expand toggle. */
@media (max-width: 1023px) {
  body.landing-v2 .lv2-demo-gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(28px, 4vw, 44px) clamp(16px, 2.5vw, 28px);
  }
}

/* Mobile — 1 column, collapse phones 4-9 behind the toggle. */
@media (max-width: 639px) {
  body.landing-v2 .lv2-demo-gallery { padding-block: clamp(48px, 8vh, 80px); }
  body.landing-v2 .lv2-demo-gallery-grid {
    grid-template-columns: 1fr;
    gap: clamp(32px, 5vh, 48px);
  }
  /* Show first 3 phones by default; hide the rest behind the toggle. */
  body.landing-v2 .lv2-demo-gallery-grid:not([data-expanded="1"]) > .lv2-demo-gallery-phone-wrap:nth-child(n+4) {
    display: none;
  }
  body.landing-v2 .lv2-demo-gallery-more[hidden] {
    display: none !important;
  }
  body.landing-v2 .lv2-demo-gallery-more {
    display: inline-flex;
  }
  /* Once expanded, hide the toggle (no "Ver menos" to keep the UX simple). */
  body.landing-v2 .lv2-demo-gallery-grid[data-expanded="1"] + .lv2-demo-gallery-more {
    display: none;
  }
}

/* Wrapper around each phone+caption so :nth-child counts cleanly even when
 * the caption is a sibling element inside the same grid cell. */
body.landing-v2 .lv2-demo-gallery-phone-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
}

@media (prefers-reduced-motion: reduce) {
  body.landing-v2 .lv2-demo-gallery-phone .msg-body {
    transition: none;
  }
  body.landing-v2 .lv2-demo-gallery-more {
    transition: none;
  }
  body.landing-v2 .lv2-demo-gallery-play,
  body.landing-v2 .lv2-demo-gallery-play-icon {
    transition: none;
  }
  body.landing-v2 .lv2-demo-gallery-play:hover .lv2-demo-gallery-play-icon,
  body.landing-v2 .lv2-demo-gallery-play:active .lv2-demo-gallery-play-icon {
    transform: none;
  }
}
