:root {
  --night: #0b1d1b;
  --forest: #153e2d;
  --moss: #46634a;
  --pale: #eef2e6;
  --display: Anton, Impact, sans-serif;
  --body: Inter, system-ui, sans-serif;
}

body, input, button, select, textarea { font-family: var(--body); }

.hero h1, h2, .card h3, .dialog-top h2 {
  font-family: var(--display);
  font-weight: 400;
  letter-spacing: 0;
  text-transform: uppercase;
}

.logo { object-fit: contain; }
.topline { background: var(--night); }
.hero h1 { font-size: clamp(54px, 7.2vw, 102px); line-height: .94; }
.hero h1 em { color: var(--moss); }
.hero { background: radial-gradient(ellipse at 12% 58%, #e3ebd7, transparent 54%); }
.hero p { color: #405b49; }
.hero .eyebrow { color: var(--forest); }
.hero .button, .process-box .button { border-radius: 999px; }
.hero .textlink { font-weight: 700; }

.photo {
  height: clamp(400px, 42vw, 610px);
  border: 1px solid #23443826;
  border-radius: 110px 16px 16px;
  box-shadow: 0 24px 56px #0b1d1b26;
}

.photo:after { background: linear-gradient(180deg, transparent 52%, #071a15dd); }
.photoframe img, .visual.lawn img, .visual.brochure img {
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: 100%;
  aspect-ratio: auto;
  transform: none;
  object-fit: cover;
}

.visual.brochure img { object-fit: contain; }
.hero-stamp { box-shadow: 0 0 0 4px #f5f5ec, 0 8px 25px #071a1548; }
.tag { z-index: 2; text-wrap: balance; }
.strip { background: var(--night); color: var(--lime); }
.card h3 { font-size: 25px; }
.contact { background: var(--night); }
.contact-whatsapp, .agent-whatsapp { color: var(--lime); font-weight: 750; }
.contact-whatsapp { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 8px; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.quick-dock {
  position: fixed;
  display: flex;
  align-items: center;
  gap: 5px;
  bottom: max(14px, env(safe-area-inset-bottom));
  right: max(14px, env(safe-area-inset-right));
  z-index: 19;
  max-width: calc(100% - 28px);
  padding: 4px;
  border-radius: 999px;
  border: 1px solid #e5eed240;
  background: #0b1d1bf2;
  backdrop-filter: blur(14px);
  box-shadow: 0 10px 30px #0b1d1b40;
}

.dock-whatsapp, .dock-agent, .key-sticker, .dialog-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  border-radius: 999px;
  font-size: 16px;
}

.dock-whatsapp { color: var(--lime); }
.dock-whatsapp:hover { background: #ffffff18; }
.dock-whatsapp svg, .key-sticker svg { width: 22px; height: 22px; }
.dock-agent { gap: 8px; padding: 8px 16px; border: 0; background: var(--lime); color: var(--night); font-weight: 800; cursor: pointer; }
.agent-spark { font-size: 20px; line-height: 1; }

footer { flex-wrap: wrap; gap: 16px; padding-bottom: 100px; }
.key-sticker {
  border: 1px solid #46634a60;
  color: var(--forest);
  background: #ffffff25;
  box-shadow: 0 0 0 3px #ffffff82, 0 4px 12px #0b1d1b18;
  backdrop-filter: blur(8px);
  transform: rotate(-10deg);
  cursor: pointer;
}
.key-sticker:hover { color: var(--pale); background: var(--forest); }

dialog {
  padding: 0;
  border: 1px solid #d5e7b544;
  border-radius: 20px;
  box-shadow: 0 18px 55px #0b1d1b66;
  max-width: calc(100vw - 24px);
  max-height: calc(100dvh - 24px);
  overflow: auto;
  overscroll-behavior: contain;
}
dialog::backdrop { background: #05110f9c; backdrop-filter: blur(4px); }
dialog [hidden] { display: none !important; }
.dialog-inner { padding: clamp(16px, 4vw, 28px); overflow-wrap: anywhere; }
.dialog-top { display: flex; justify-content: space-between; gap: 10px; }
.dialog-top h2 { font-size: clamp(28px, 6vw, 42px); line-height: 1.02; margin: 6px 0 16px; }
.dialog-close { align-self: flex-start; flex-shrink: 0; background: transparent; border: 1px solid currentColor; color: inherit; font-size: 25px; cursor: pointer; }
.panel-kicker { color: inherit; font-size: 13px; font-weight: 800; letter-spacing: .1em; margin: 0; }

.agent-panel {
  inset: auto max(12px, env(safe-area-inset-right)) max(12px, env(safe-area-inset-bottom)) auto;
  margin: 0;
  width: 455px;
  background: radial-gradient(ellipse at top right, #295441, var(--night) 64%);
  color: var(--pale);
  color-scheme: dark;
}
.agent-panel .panel-kicker, .agent-panel h2 { color: var(--lime); }
.agent-messages { display: grid; align-content: start; gap: 10px; min-height: 96px; max-height: min(34dvh, 280px); padding: 8px; overflow: auto; }
.agent-message { justify-self: start; margin: 0; max-width: 92%; border-radius: 12px; padding: 9px 12px; background: #fff2; color: var(--pale); font-size: 16px; line-height: 1.5; white-space: pre-wrap; }
.agent-message.user { justify-self: end; background: var(--lime); color: var(--night); }
.agent-prompts { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0; }
.agent-prompts button { border: 1px solid #e5eed257; border-radius: 12px; color: var(--pale); background: #ffffff08; font-size: 16px; min-height: 44px; padding: 6px 10px; cursor: pointer; text-align: left; }
.agent-prompts button:hover { background: #ffffff26; }
#agent-form { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; }
#agent-form .button { min-height: 44px; font-size: 16px; padding: 10px 14px; cursor: pointer; }
#agent-input { min-width: 0; min-height: 44px; font-size: 16px; }
.agent-notice { margin: 8px 0 0; color: var(--lime); line-height: 1.4; }
.agent-notice:empty { display: none; }
.agent-note { color: #dce5d8; margin: 10px 0 0; font-size: 16px; line-height: 1.4; }
.agent-whatsapp { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; margin-top: 4px; }

.photo-panel { width: 720px; background: var(--paper); color: var(--forest); }
.photo-panel .panel-kicker { color: var(--moss); }
.photo-panel label { font-size: 16px; font-weight: 650; }
.photo-panel input { color-scheme: light; min-height: 44px; background: #fff; color: var(--night); border-color: #66836a70; font-size: 16px; }
.photo-status, #photo-workspace > p { color: var(--moss); line-height: 1.5; }
#photo-login, #photo-invite { max-width: 380px; }
#photo-editors { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(180px, 100%), 1fr)); gap: 12px; }
.photo-editor { padding: 12px; border: 1px solid #66836a60; border-radius: 12px; min-width: 0; }
.photo-editor h3 { margin: 0 0 8px; }
.photo-editor img { display: block; width: 100%; height: auto; aspect-ratio: 1080 / 760; border-radius: 7px; object-fit: cover; }
.photo-editor[data-slot="brochure"] img { aspect-ratio: 1080 / 680; object-fit: contain; background: #e3ebd7; }
.photo-editor input { margin-top: 8px; padding: 4px; width: 100%; }
.photo-editor input::file-selector-button { font: inherit; max-width: 100%; min-height: 44px; color: var(--forest); border: 0; border-radius: 6px; background: var(--pale); cursor: pointer; }
.photo-editor .button, .panel-logout { margin-top: 8px; min-height: 44px; font-size: 16px; cursor: pointer; }
.panel-logout { padding-inline: 12px; background: transparent; border: 1px solid currentColor; border-radius: 8px; color: var(--forest); }
button:disabled { opacity: .55; cursor: not-allowed; }

@media (max-width: 900px) {
  .hero h1 { font-size: clamp(43px, 7.4vw, 75px); letter-spacing: 0; }
  footer { padding-bottom: 100px; }
}

@media (max-width: 760px) {
  .hero h1 { font-size: clamp(43px, 11vw, 74px); }
  .photo { height: auto; border-top-left-radius: clamp(52px, 12vw, 90px); }
  .agent-panel { inset-inline: 12px; margin-inline: auto; }
  .quick-dock { z-index: 5; }
}

@media (max-height: 440px) {
  .agent-panel { inset-block: 12px; margin-block: auto; }
}
