:root {
  --ink: #1e2921;
  --forest: #2c4732;
  --moss: #61785d;
  --timber: #b97d47;
  --timber-dark: #965d2d;
  --paper: #f7f5f0;
  --line: #dedbd1;
  --muted: #6e766e;
  --white: #fffefa;
}

* { box-sizing: border-box; }
html { min-height: 100%; background: var(--paper); }
body { min-width: 320px; min-height: 100vh; margin: 0; color: var(--ink); background: radial-gradient(circle at 12% 8%, rgba(185, 125, 71, .12), transparent 25rem), radial-gradient(circle at 90% 20%, rgba(97, 120, 93, .11), transparent 23rem), var(--paper); font-family: "DM Sans", Arial, sans-serif; }
button, a { font: inherit; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }

.app-shell { min-height: 100vh; display: grid; grid-template-rows: auto 1fr auto; padding: 28px clamp(20px, 5vw, 72px) 24px; }
.topbar { position: relative; isolation: isolate; width: 100%; max-width: 1180px; min-height: 48px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; }
.topbar::before { position: absolute; z-index: -1; top: -28px; right: 50%; bottom: -18px; width: 100vw; content: ""; transform: translateX(50%); background: var(--white); border-bottom: 1px solid rgba(30, 41, 33, .08); }
.brand { display: inline-flex; align-items: center; width: 126px; }
.brand img { display: block; width: 100%; height: auto; object-fit: contain; }
.header-actions { display: flex; align-items: center; gap: 22px; }
.restart-button { border: 0; color: var(--forest); background: transparent; font-size: .9rem; font-weight: 600; padding: 10px 0; }
.restart-button:hover { color: var(--timber-dark); }
.header-phone { display: inline-flex; align-items: center; gap: 9px; color: var(--forest); font-size: .94rem; font-weight: 700; }
.header-phone svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.header-phone small { display: block; margin-bottom: 1px; color: var(--muted); font-size: .65rem; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; }
.header-phone span { line-height: 1.05; }

.conversation { display: grid; place-items: center; width: 100%; padding: 32px 0 86px; }
.welcome, .chat { width: min(100%, 720px); }
.welcome { text-align: center; animation: reveal .45s ease both; }
.welcome-mark { display: grid; place-items: center; width: 74px; height: 74px; margin: 0 auto 24px; color: var(--forest); background: rgba(255, 254, 250, .75); border: 1px solid rgba(44, 71, 50, .16); border-radius: 24px; box-shadow: 0 14px 30px rgba(47, 57, 45, .08); }
.welcome-mark svg { width: 38px; height: 38px; }
.eyebrow { margin: 0 0 13px; color: var(--timber-dark); font-size: .72rem; font-weight: 700; letter-spacing: .15em; }
h1 { max-width: 670px; margin: 0 auto; font-family: "Playfair Display", Georgia, serif; font-size: clamp(2.3rem, 5.2vw, 4.2rem); line-height: 1.08; letter-spacing: -.045em; }
.welcome-copy { max-width: 575px; margin: 23px auto 31px; color: var(--muted); font-size: clamp(1rem, 1.8vw, 1.14rem); line-height: 1.65; }
.primary-button { display: inline-flex; align-items: center; gap: 16px; padding: 16px 21px 16px 24px; border: 1px solid var(--forest); border-radius: 14px; color: var(--white); background: var(--forest); font-weight: 700; box-shadow: 0 10px 22px rgba(44, 71, 50, .18); transition: transform .2s ease, background .2s ease; }
.primary-button:hover { background: #203924; transform: translateY(-2px); }
.primary-button span { font-size: 1.3rem; line-height: .7; }
.fine-print { max-width: 510px; margin: 22px auto 0; color: #84877e; font-size: .78rem; line-height: 1.5; }

.chat { align-self: start; padding-top: clamp(20px, 4vh, 62px); animation: reveal .35s ease both; }
.progress-row { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px; margin-bottom: 32px; color: var(--muted); font-size: .78rem; font-weight: 600; }
.progress-track { height: 5px; overflow: hidden; background: #e7e4dc; border-radius: 99px; }
.progress-track span { display: block; width: 0; height: 100%; background: var(--timber); border-radius: inherit; transition: width .35s ease; }
.messages { display: grid; gap: 16px; }
.message { max-width: min(90%, 570px); padding: 17px 20px; border-radius: 18px; font-size: 1.05rem; line-height: 1.55; animation: message-in .3s ease both; }
.message.assistant { justify-self: start; border: 1px solid var(--line); border-top-left-radius: 5px; background: var(--white); box-shadow: 0 8px 24px rgba(44, 58, 46, .045); }
.message.user { justify-self: end; border-bottom-right-radius: 5px; color: var(--white); background: var(--forest); }
.message strong { color: var(--forest); }
.message.user strong { color: inherit; }
.options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 25px 0 0; }
.option-button { min-height: 58px; padding: 13px 16px; border: 1px solid #d9d6cc; border-radius: 13px; color: var(--ink); background: rgba(255, 254, 250, .72); text-align: left; font-weight: 600; transition: border-color .18s ease, background .18s ease, transform .18s ease; }
.option-button:hover { border-color: var(--timber); background: var(--white); transform: translateY(-1px); }
.option-button:focus-visible, .primary-button:focus-visible, .action-link:focus-visible, .restart-button:focus-visible { outline: 3px solid rgba(185, 125, 71, .45); outline-offset: 3px; }
.area-form { margin-top: 25px; padding: 18px; border: 1px solid var(--line); border-radius: 16px; background: rgba(255, 254, 250, .7); animation: reveal .3s ease both; }
.area-form label { display: block; margin-bottom: 10px; color: var(--muted); font-size: .82rem; font-weight: 700; }
.area-input-row { display: flex; gap: 10px; }
.area-input-row input { min-width: 0; flex: 1; border: 1px solid #d9d6cc; border-radius: 11px; padding: 0 14px; color: var(--ink); background: var(--white); font: inherit; font-weight: 600; }
.area-input-row input:focus { border-color: var(--timber); outline: 3px solid rgba(185, 125, 71, .16); }
.area-input-row .primary-button { padding: 13px 17px; border-radius: 11px; white-space: nowrap; }
.input-error { min-height: 18px; margin: 8px 0 0; color: #a34532; font-size: .78rem; }
.completion { margin-top: 24px; padding: 24px; border: 1px solid rgba(44, 71, 50, .15); border-radius: 18px; background: rgba(255, 254, 250, .8); text-align: center; animation: reveal .35s ease both; }
.completion-icon { display: grid; place-items: center; width: 38px; height: 38px; margin: 0 auto 12px; border-radius: 50%; color: var(--white); background: var(--forest); font-weight: 700; }
.completion h2 { margin: 0; font-family: "Playfair Display", Georgia, serif; font-size: 1.65rem; }
.completion p { margin: 10px 0 0; color: var(--muted); line-height: 1.55; }
.completion .contact-cta { margin-top: 17px; border-color: var(--timber); color: var(--timber-dark); }
.price-list { display: grid; gap: 10px; margin: 22px 0; text-align: left; }
.price-item { padding: 15px; border: 1px solid var(--line); border-radius: 12px; background: var(--white); }
.price-item span { display: block; color: var(--muted); font-size: .84rem; line-height: 1.45; }
.price-item strong { display: block; margin-top: 4px; color: var(--forest); font-size: 1.05rem; }
.instagram-link { display: inline-block; margin-top: 15px; color: var(--timber-dark); font-weight: 700; }

.persistent-actions { width: 100%; max-width: 1180px; margin: 0 auto; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-top: 14px; border-top: 1px solid rgba(30, 41, 33, .12); }
.action-link { display: inline-flex; align-items: center; gap: 9px; color: var(--forest); font-size: .88rem; font-weight: 700; }
.action-link svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.home-link { color: var(--muted); }
.call-link { color: var(--forest); }
.call-link small { display: block; margin-bottom: 1px; color: var(--muted); font-size: .65rem; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; }
.call-link span { line-height: 1.05; }

@keyframes reveal { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
@keyframes message-in { from { opacity: 0; transform: translateY(7px); } to { opacity: 1; transform: translateY(0); } }
@media (max-width: 620px) { .app-shell { padding: 22px 18px 18px; } .topbar::before { top: -22px; } .brand { width: 112px; } .header-actions { gap: 12px; } .restart-button { font-size: .78rem; } .conversation { padding: 20px 0 58px; } .welcome-mark { width: 62px; height: 62px; margin-bottom: 20px; border-radius: 20px; } .welcome-mark svg { width: 32px; } h1 { font-size: clamp(2.2rem, 10vw, 3.1rem); } .welcome-copy { margin-top: 18px; } .options { grid-template-columns: 1fr; } .area-input-row { flex-direction: column; } .area-input-row input { min-height: 48px; } .area-input-row .primary-button { justify-content: center; } .persistent-actions { align-items: flex-end; } .home-link { max-width: 152px; line-height: 1.25; } .message { max-width: 95%; font-size: 1rem; } }
