:root {
  --ink: #19332a;
  --muted: #6d7b74;
  --paper: #f7f8f3;
  --surface: #ffffff;
  --soft: #edf2eb;
  --line: #dce5dc;
  --green: #0f6b4e;
  --green-deep: #0a4f3a;
  --green-soft: #dceee5;
  --coral: #c75d43;
  --coral-soft: #fff0e9;
  --yellow-soft: #fff8dd;
  --yellow-line: #f0df9d;
  --shadow: 0 18px 42px rgba(31, 63, 47, 0.08);
  --radius: 20px;
  --radius-small: 12px;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; background: var(--paper); color: var(--ink); }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible, a:focus-visible { outline: 3px solid rgba(15, 107, 78, 0.26); outline-offset: 2px; }

.app-shell { min-height: 100vh; overflow: hidden; }
.topbar { height: 72px; padding: 0 clamp(20px, 5vw, 72px); display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid rgba(220, 229, 220, .85); background: rgba(247, 248, 243, .94); position: sticky; top: 0; z-index: 5; backdrop-filter: blur(18px); }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; }
.brand-mark { color: var(--green); width: 35px; height: 35px; display: inline-grid; place-items: center; }
.brand-mark svg { width: 35px; height: 35px; }
.brand-text { display: flex; align-items: baseline; gap: 5px; font-size: 15px; letter-spacing: -.02em; }
.brand-text strong { font-weight: 800; }
.brand-text span { color: var(--green); font-weight: 600; }
.topbar-meta { display: flex; align-items: center; gap: 14px; }
.saved-status { color: var(--muted); font-size: 12px; display: inline-flex; align-items: center; gap: 7px; }
.status-dot { width: 7px; height: 7px; border-radius: 50%; background: #72ad74; box-shadow: 0 0 0 4px rgba(114, 173, 116, .14); }
.guide-button { border: 1px solid #bdd8c6; background: var(--green-soft); color: var(--green); border-radius: 9px; padding: 8px 11px; font-size: 11px; font-weight: 800; }
.guide-button:hover { background: #cfe7d8; border-color: #a9cdb5; }
.icon-button { border: 0; background: transparent; color: #829087; padding: 7px; border-radius: 9px; display: inline-grid; place-items: center; }
.icon-button:hover { color: var(--coral); background: var(--coral-soft); }
.icon-button svg { width: 18px; height: 18px; }

.main-content { width: min(1080px, calc(100% - 36px)); margin: 0 auto; padding: 58px 0 38px; }
.hero-intro { display: grid; grid-template-columns: 1fr 300px; gap: 52px; align-items: end; margin-bottom: 28px; }
.eyebrow { text-transform: uppercase; letter-spacing: .14em; font-size: 11px; font-weight: 800; color: var(--green); margin: 0 0 12px; }
h1, h2, h3, p { margin-top: 0; }
h1 { max-width: 750px; font-size: clamp(34px, 5vw, 58px); line-height: 1.03; letter-spacing: -.055em; margin-bottom: 18px; font-weight: 800; }
h2 { font-size: clamp(27px, 4vw, 38px); line-height: 1.08; letter-spacing: -.045em; margin-bottom: 12px; }
h3 { font-size: 17px; line-height: 1.2; margin-bottom: 8px; letter-spacing: -.02em; }
.hero-copy, .section-heading p { color: var(--muted); max-width: 650px; font-size: 16px; line-height: 1.65; margin-bottom: 0; }
.hero-note { border-left: 2px solid var(--green); padding: 6px 0 6px 17px; color: var(--muted); font-size: 13px; line-height: 1.55; align-self: center; }
.hero-note-icon { color: var(--coral); font-size: 19px; margin-right: 6px; vertical-align: -1px; }

.safety-banner { display: flex; align-items: center; gap: 12px; background: var(--yellow-soft); border: 1px solid var(--yellow-line); color: #715c1e; border-radius: 12px; padding: 12px 15px; margin-bottom: 34px; font-size: 13px; line-height: 1.4; }
.safety-banner p { margin: 0; }
.safety-icon { display: grid; place-items: center; flex: 0 0 21px; width: 21px; height: 21px; border-radius: 50%; background: #e1be4f; color: white; font-weight: 800; font-size: 13px; }

.stepper { display: flex; align-items: center; width: 100%; margin-bottom: 36px; }
.step { border: 0; background: transparent; color: #849188; display: inline-flex; align-items: center; gap: 9px; padding: 0; text-align: left; }
.step-number { width: 28px; height: 28px; border: 1px solid #cbd7cd; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 800; transition: all .2s ease; }
.step-label { font-size: 12px; font-weight: 750; letter-spacing: -.01em; white-space: nowrap; }
.step.active { color: var(--green); }
.step.active .step-number { color: white; background: var(--green); border-color: var(--green); box-shadow: 0 0 0 5px rgba(15, 107, 78, .10); }
.step.done { color: var(--ink); }
.step.done .step-number { color: var(--green); border-color: #a5cab5; background: var(--green-soft); }
.step-line { height: 1px; background: var(--line); flex: 1; margin: 0 15px; min-width: 22px; }

.screen { animation: rise .25s ease both; }
.screen[hidden] { display: none; }
.guide-panel { background: #eef7f0; border: 1px solid #cce3d1; border-radius: var(--radius); padding: clamp(20px, 3vw, 28px); margin-bottom: 28px; animation: rise .25s ease both; }
.guide-panel[hidden] { display: none; }
.guide-panel-heading { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; margin-bottom: 20px; }
.guide-panel-heading h2 { margin-bottom: 0; }
.guide-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.guide-item { display: flex; gap: 13px; background: rgba(255,255,255,.72); border: 1px solid rgba(204, 227, 209, .95); border-radius: 13px; padding: 15px; }
.guide-item > span { color: var(--coral); font-size: 11px; font-weight: 850; letter-spacing: .1em; }
.guide-item h3 { font-size: 15px; margin-bottom: 6px; }
.guide-item p { color: var(--muted); font-size: 12px; line-height: 1.55; margin: 0; }
@keyframes rise { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }
.section-heading { display: flex; justify-content: space-between; align-items: flex-start; gap: 28px; margin-bottom: 25px; }
.compact-heading { align-items: center; }
.demo-pill, .step-context { flex: 0 0 auto; border-radius: 100px; padding: 8px 12px; font-size: 11px; font-weight: 750; color: var(--green); background: var(--green-soft); white-space: nowrap; }
.step-context { color: var(--muted); background: var(--soft); font-weight: 650; max-width: 240px; overflow: hidden; text-overflow: ellipsis; }

.form-stack { display: flex; flex-direction: column; gap: 14px; }
.form-card { background: var(--surface); border: 1px solid rgba(220, 229, 220, .85); border-radius: var(--radius); padding: clamp(19px, 3vw, 28px); box-shadow: 0 8px 22px rgba(31, 63, 47, .025); }
.card-kicker { color: var(--green); text-transform: uppercase; letter-spacing: .12em; font-size: 11px; font-weight: 800; margin-bottom: 20px; display: flex; align-items: center; gap: 9px; }
.card-kicker span { color: var(--coral); font-variant-numeric: tabular-nums; }
.field-grid { display: grid; gap: 16px; }
.field-grid + .field-grid { margin-top: 16px; }
.two-columns { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.three-columns { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.field { display: flex; flex-direction: column; gap: 7px; color: var(--ink); font-size: 13px; font-weight: 700; }
.field b { color: var(--coral); }
.field input, .field textarea, .field select { width: 100%; border: 1px solid var(--line); border-radius: 10px; background: #fbfcfa; color: var(--ink); padding: 12px 13px; font-size: 14px; line-height: 1.45; font-weight: 450; transition: border-color .2s ease, box-shadow .2s ease, background .2s ease; }
.field input::placeholder, .field textarea::placeholder { color: #a5b0a8; }
.field input:hover, .field textarea:hover, .field select:hover { border-color: #b6cbbd; }
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--green); background: white; box-shadow: 0 0 0 4px rgba(15, 107, 78, .08); outline: none; }
.field textarea { resize: vertical; min-height: 60px; }
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, #849188 50%), linear-gradient(135deg, #849188 50%, transparent 50%); background-position: calc(100% - 16px) calc(50% - 2px), calc(100% - 11px) calc(50% - 2px); background-size: 5px 5px, 5px 5px; background-repeat: no-repeat; }
.field-help { font-size: 12px; color: var(--muted); margin: -9px 0 17px; }
.form-actions { display: flex; justify-content: space-between; gap: 12px; align-items: center; padding-top: 9px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 9px; border-radius: 10px; border: 1px solid transparent; padding: 12px 17px; font-size: 13px; font-weight: 800; line-height: 1; transition: transform .18s ease, box-shadow .18s ease, background .18s ease, border-color .18s ease; }
.button:hover { transform: translateY(-1px); }
.button-primary { background: var(--green); color: white; box-shadow: 0 8px 17px rgba(15, 107, 78, .15); }
.button-primary:hover { background: var(--green-deep); box-shadow: 0 11px 20px rgba(15, 107, 78, .2); }
.button-ghost { background: transparent; border-color: var(--line); color: var(--ink); }
.button-ghost:hover { background: white; border-color: #b9cdbd; }
.danger-button { color: var(--coral); border-color: transparent; padding-left: 0; }
.danger-button:hover { background: var(--coral-soft); border-color: #f3d4c8; padding-left: 10px; }
.small-button { padding: 9px 12px; font-size: 12px; white-space: nowrap; }

.query-layout { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(230px, .75fr); gap: 15px; align-items: stretch; }
.query-card { padding-bottom: 18px; }
.whatsapp-label { display: flex; align-items: center; gap: 8px; color: var(--green); font-size: 12px; font-weight: 800; margin-bottom: 15px; }
.wa-dot { width: 9px; height: 9px; border-radius: 50%; background: #46b77a; box-shadow: 0 0 0 4px rgba(70, 183, 122, .13); }
.query-card textarea { min-height: 300px; border: 0; background: #fbfcfa; padding: 16px; font-size: 15px; line-height: 1.7; }
.query-card textarea:focus { box-shadow: inset 0 0 0 2px rgba(15, 107, 78, .14); }
.query-footer { display: flex; justify-content: space-between; gap: 10px; color: #95a199; font-size: 11px; padding-top: 12px; }
.side-note { background: var(--green); color: white; border-radius: var(--radius); padding: 25px; position: relative; overflow: hidden; }
.side-note::after { content: ""; width: 145px; height: 145px; border: 1px solid rgba(255,255,255,.15); border-radius: 50%; position: absolute; right: -58px; top: -52px; }
.side-note-number { display: inline-block; color: #bde9d4; text-transform: uppercase; font-size: 10px; letter-spacing: .14em; font-weight: 800; margin-bottom: 25px; }
.side-note h3 { font-size: 21px; letter-spacing: -.04em; max-width: 180px; position: relative; z-index: 1; }
.side-note p { color: #d2ede0; font-size: 13px; line-height: 1.6; position: relative; z-index: 1; }
.mini-rule { border-top: 1px solid rgba(255,255,255,.22); padding-top: 14px; margin-top: 28px; font-size: 11px; color: #d2ede0; position: relative; z-index: 1; }
.mini-rule span { display: inline-block; width: 6px; height: 6px; background: #f0bd5d; border-radius: 50%; margin-right: 4px; }
.query-actions { margin-top: 20px; }

.review-strip { border: 1px solid #c6e5d2; background: #f1fbf4; border-radius: 12px; display: flex; align-items: flex-start; gap: 10px; color: #397255; padding: 13px 15px; font-size: 12px; line-height: 1.45; margin-bottom: 18px; }
.review-strip strong { color: var(--green-deep); }
.review-icon { width: 18px; height: 18px; border-radius: 50%; background: #bde4ca; color: #277048; display: inline-grid; place-items: center; font-weight: 900; flex: 0 0 18px; }
.responses-list { display: flex; flex-direction: column; gap: 15px; }
.response-section { background: transparent; }
.response-section-heading { display: flex; align-items: baseline; gap: 11px; padding: 7px 0 11px; }
.response-section-number { color: var(--coral); font-size: 11px; font-weight: 850; letter-spacing: .1em; }
.response-section-heading h3 { margin: 0; font-size: 18px; }
.response-section-heading p { margin: 0 0 0 auto; color: var(--muted); font-size: 11px; }
.response-grid { display: grid; gap: 10px; }
.response-grid.five { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.message-card { background: var(--surface); border: 1px solid rgba(220, 229, 220, .95); border-radius: 15px; padding: 16px; position: relative; }
.message-card.featured { border-color: #bad6c5; box-shadow: var(--shadow); }
.message-card-label { color: var(--green); text-transform: uppercase; letter-spacing: .11em; font-size: 10px; font-weight: 850; margin-bottom: 10px; padding-right: 65px; }
.message-text { white-space: pre-wrap; color: #34453d; font-size: 13px; line-height: 1.65; padding-right: 2px; }
.copy-button { position: absolute; top: 13px; right: 13px; border: 1px solid var(--line); background: #fbfcfa; color: var(--green); border-radius: 8px; padding: 7px 9px; font-size: 11px; font-weight: 800; }
.copy-button:hover { background: var(--green-soft); border-color: #b8d9c5; }
.copy-button.copied { color: #397255; border-color: #a9d5b9; background: #edfaf0; }
.response-spacer { height: 3px; }

.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 16px); opacity: 0; pointer-events: none; background: var(--ink); color: white; border-radius: 10px; padding: 11px 15px; font-size: 12px; font-weight: 700; box-shadow: 0 12px 35px rgba(19, 48, 37, .2); transition: opacity .22s ease, transform .22s ease; z-index: 10; }
.toast.visible { opacity: 1; transform: translate(-50%, 0); }
.app-footer { width: min(1080px, calc(100% - 36px)); margin: 0 auto; padding: 34px 0 26px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 15px; color: #91a098; font-size: 11px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

@media (max-width: 750px) {
  .topbar { height: auto; min-height: 63px; padding: 8px 18px; }
  .saved-status { display: none; }
  .guide-button { padding: 7px 9px; }
  .main-content { width: min(100% - 28px, 640px); padding-top: 34px; }
  .hero-intro { display: block; margin-bottom: 22px; }
  h1 { font-size: clamp(34px, 10vw, 48px); }
  .hero-note { margin-top: 22px; max-width: 330px; }
  .safety-banner { margin-bottom: 24px; }
  .stepper { margin-bottom: 29px; }
  .step { flex-direction: column; gap: 6px; align-items: flex-start; }
  .step-number { width: 26px; height: 26px; }
  .step-label { white-space: normal; font-size: 10px; line-height: 1.2; max-width: 86px; }
  .step-line { align-self: flex-start; margin-top: 13px; margin-left: 8px; margin-right: 8px; }
  .section-heading { display: block; }
  .guide-grid { grid-template-columns: 1fr; }
  .demo-pill, .step-context { display: inline-block; margin-top: 16px; }
  .two-columns, .three-columns, .query-layout { grid-template-columns: 1fr; }
  .form-actions { align-items: stretch; flex-direction: column-reverse; }
  .form-actions .button { width: 100%; }
  .query-actions { flex-direction: column; }
  .side-note { min-height: 190px; }
  .response-heading .small-button { margin-top: 15px; }
  .response-section-heading { align-items: flex-start; }
  .response-section-heading p { display: none; }
  .response-grid.five { grid-template-columns: 1fr; }
  .app-footer { width: min(100% - 28px, 640px); display: block; line-height: 1.7; padding-bottom: 22px; }
  .app-footer span { display: block; }
  .app-footer span + span { margin-top: 5px; }
}

@media (max-width: 410px) {
  .brand-text { flex-direction: column; gap: 0; line-height: 1.15; font-size: 13px; }
  .topbar-meta { gap: 3px; }
  .main-content { width: calc(100% - 22px); }
  .form-card, .side-note { border-radius: 15px; padding: 17px; }
  .step-label { max-width: 72px; }
}
