:root {
  color-scheme: light;
  --bg: #fbf5ea;
  --surface: #ffffff;
  --surface-soft: #fffaf2;
  --surface-tint: #edf7f3;
  --text: #26323a;
  --muted: #66757a;
  --line: #e7dac8;
  --primary: #2f746b;
  --primary-dark: #245f58;
  --primary-soft: #e5f3ef;
  --accent: #b56a3b;
  --accent-soft: #fff1e4;
  --blue-soft: #eaf4fb;
  --success: #227a58;
  --danger: #b85a4b;
  --shadow: 0 16px 40px rgba(71, 58, 43, 0.1);
  --shadow-soft: 0 8px 24px rgba(71, 58, 43, 0.08);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    "Microsoft YaHei", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, rgba(229, 243, 239, 0.92), transparent 34rem),
    linear-gradient(180deg, #fffaf2 0%, #fbf5ea 48%, #f6fbf8 100%),
    var(--bg);
  color: var(--text);
  padding-bottom: calc(72px + env(safe-area-inset-bottom));
}

button,
input,
select,
textarea {
  font: inherit;
}

.app-shell {
  width: min(100%, 980px);
  margin: 0 auto;
  padding: 14px 15px 40px;
}

.page[hidden] {
  display: none;
}

.site-brand {
  margin-bottom: 10px;
}

.site-brand__link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  color: var(--text);
  text-decoration: none;
}

.site-brand__logo {
  display: block;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  object-fit: contain;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 6px 18px rgba(71, 58, 43, 0.1);
}

.site-brand__name {
  font-size: 1rem;
  font-weight: 850;
  letter-spacing: 0;
}

.page {
  display: grid;
  gap: 16px;
}

.hero,
.page-header {
  display: grid;
  gap: 10px;
  padding: 22px 0 6px;
}

.hero {
  position: relative;
  overflow: hidden;
  padding: 22px 16px 18px;
  border: 1px solid rgba(47, 116, 107, 0.16);
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(237, 247, 243, 0.9)),
    var(--surface);
  box-shadow: var(--shadow);
}

.hero::after {
  content: "";
  position: absolute;
  right: -76px;
  bottom: -82px;
  width: 180px;
  height: 180px;
  border-radius: 999px;
  background: rgba(255, 241, 228, 0.95);
  pointer-events: none;
}

.hero > * {
  position: relative;
  z-index: 1;
}

.hero__content {
  display: grid;
  gap: 10px;
}

.hero-visual,
.contact-visual,
.feature-visual {
  position: relative;
  overflow: hidden;
  min-height: 170px;
  border: 1px solid rgba(47, 116, 107, 0.14);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(237, 247, 243, 0.94), rgba(255, 241, 228, 0.9)),
    var(--surface);
  box-shadow: var(--shadow-soft);
}

.hero-visual img,
.contact-visual img,
.feature-visual img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.visual-placeholder {
  display: grid;
  min-height: 170px;
  align-content: center;
  gap: 8px;
  padding: 18px;
  color: #2d4540;
}

.visual-placeholder__icon {
  display: inline-flex;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--primary);
  font-size: 1.35rem;
  font-weight: 900;
}

.visual-placeholder strong {
  font-size: 1.08rem;
}

.visual-placeholder p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.visual-placeholder--small,
.contact-visual {
  min-height: 150px;
}

.feature-layout {
  display: grid;
  gap: 14px;
}

.feature-visual,
.feature-visual .visual-placeholder {
  min-height: 160px;
}

.hero-actions {
  display: grid;
  gap: 10px;
  margin-top: 4px;
}

.hero-actions .button {
  width: 100%;
}

.eyebrow {
  margin: 0;
  width: fit-content;
  color: var(--primary-dark);
  background: rgba(229, 243, 239, 0.92);
  border: 1px solid rgba(47, 116, 107, 0.12);
  border-radius: 999px;
  padding: 5px 9px;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 0;
  max-width: 780px;
  font-size: clamp(1.85rem, 7vw, 3rem);
  line-height: 1.12;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 0;
  font-size: 1.3rem;
  line-height: 1.3;
}

h3 {
  margin-bottom: 0;
  font-size: 1rem;
}

.hero__copy,
.page-header__copy {
  max-width: 720px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.65;
}

.hero__scenario {
  margin-bottom: 0;
  width: fit-content;
  color: #345048;
  background: rgba(255, 241, 228, 0.9);
  border: 1px solid rgba(181, 106, 59, 0.12);
  border-radius: 999px;
  padding: 7px 10px;
  font-weight: 800;
  line-height: 1.4;
}

.helper-text {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.55;
}

.content-band,
.notice,
.visit-form,
.result-card,
.next-steps,
.common-actions,
.empty-state {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow-soft);
}

.content-band,
.next-steps,
.empty-state {
  display: grid;
  gap: 14px;
  padding: 16px;
}

.empty-state {
  justify-items: start;
}

.info-grid {
  display: grid;
  gap: 12px;
}

.info-card {
  padding: 15px;
  border: 1px solid rgba(47, 116, 107, 0.1);
  border-radius: 8px;
  background: linear-gradient(180deg, #ffffff, var(--surface-soft));
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.8) inset;
}

.info-card h3 {
  color: #2d4540;
}

.info-card p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.55;
}

.feature-list,
.next-steps ul {
  display: grid;
  gap: 10px;
  margin: 0;
  padding-left: 1.25rem;
  color: #34404b;
  line-height: 1.6;
}

.feature-list li,
.next-steps li {
  padding-left: 2px;
}

.feature-list--visual {
  padding-left: 0;
  list-style: none;
}

.feature-list--visual li {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid rgba(47, 116, 107, 0.1);
  border-radius: 8px;
  background: rgba(255, 253, 249, 0.78);
}

.feature-icon {
  display: inline-flex;
  width: 32px;
  height: 32px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: var(--primary-soft);
  color: var(--primary-dark);
  font-size: 0.86rem;
  font-weight: 900;
}

.notice {
  padding: 14px 16px;
  background: rgba(255, 250, 242, 0.72);
}

.notice strong {
  display: block;
  margin-bottom: 6px;
}

.notice p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.65;
}

.notice--quiet {
  box-shadow: none;
  background: rgba(255, 250, 242, 0.58);
  border-style: dashed;
}

.notice--quiet strong,
.notice--quiet p {
  font-size: 0.82rem;
}

.text-link {
  width: fit-content;
  color: var(--primary);
  font-weight: 800;
  text-decoration: none;
  background: var(--primary-soft);
  border-radius: 999px;
  padding: 7px 10px;
}

.text-link:hover {
  text-decoration: underline;
}

.visit-form {
  display: grid;
  gap: 16px;
  padding: 16px;
}

.form-section {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid rgba(47, 116, 107, 0.1);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(237, 247, 243, 0.38), rgba(255, 255, 255, 0.82));
}

.form-section + .form-section {
  margin-top: 0;
}

.form-section {
  padding-bottom: 16px;
}

.form-section:not(:last-of-type) {
  border-bottom: 1px solid #efe4da;
}

.form-section:last-of-type {
  border-bottom: 1px solid rgba(47, 116, 107, 0.1);
}

.form-section h2 {
  color: var(--primary-dark);
  font-size: 1.12rem;
}

.form-grid {
  display: grid;
  gap: 14px;
}

.field {
  display: grid;
  gap: 7px;
}

.field span {
  font-size: 0.92rem;
  font-weight: 750;
}

.field em {
  color: var(--danger);
  font-style: normal;
}

.checkbox-group {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  border: 0;
}

.checkbox-group legend {
  margin-bottom: 2px;
  color: var(--primary-dark);
  font-size: 0.92rem;
  font-weight: 800;
}

.checkbox-group label {
  display: flex;
  min-height: 44px;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid rgba(47, 116, 107, 0.12);
  border-radius: 8px;
  background: rgba(255, 253, 249, 0.88);
  color: var(--text);
}

.checkbox-group input {
  width: 18px;
  min-height: 18px;
  accent-color: var(--primary);
}

input,
select,
textarea {
  width: 100%;
  min-height: 48px;
  border: 1px solid #d9d0c3;
  border-radius: 11px;
  background: rgba(255, 253, 249, 0.96);
  color: var(--text);
  padding: 13px 14px;
  outline: none;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    background 0.2s ease;
}

textarea {
  resize: vertical;
  min-height: 108px;
}

input::placeholder,
textarea::placeholder {
  color: #9a8d7f;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--primary);
  background: #ffffff;
  box-shadow: 0 0 0 4px rgba(47, 116, 107, 0.13);
}

.field.is-invalid input,
.field.is-invalid textarea {
  border-color: var(--danger);
  box-shadow: 0 0 0 3px rgba(184, 90, 75, 0.1);
}

.error-message {
  min-height: 17px;
  color: var(--danger);
  font-size: 0.78rem;
}

.contact-status {
  display: grid;
  gap: 10px;
}

.contact-trust {
  display: grid;
  gap: 14px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(237, 247, 243, 0.84)),
    var(--surface);
  box-shadow: var(--shadow-soft);
}

.contact-trust p:not(.eyebrow) {
  margin: 0;
  color: var(--muted);
  line-height: 1.62;
}

.success-message {
  margin: 0;
  padding: 12px 14px;
  border: 1px solid rgba(34, 122, 88, 0.18);
  border-radius: 8px;
  background: rgba(229, 243, 239, 0.88);
  color: var(--success);
  font-weight: 800;
  line-height: 1.45;
}

.actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 11px;
  margin-top: 14px;
}

.button,
.copy-button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 12px;
  cursor: pointer;
  font-weight: 800;
  text-align: center;
  text-decoration: none;
  transition:
    transform 0.2s ease,
    background 0.2s ease,
    box-shadow 0.2s ease;
}

.button:active,
.copy-button:active {
  transform: translateY(1px);
}

.button--primary {
  position: relative;
  background: linear-gradient(180deg, #347f75, var(--primary));
  color: #ffffff;
  box-shadow: 0 12px 24px rgba(47, 116, 107, 0.24);
}

.button--primary:hover {
  background: var(--primary-dark);
}

.button--secondary {
  background: var(--primary-soft);
  color: var(--primary-dark);
  border: 1px solid rgba(47, 116, 107, 0.14);
}

.button--ghost {
  background: rgba(255, 255, 255, 0.58);
  color: var(--primary);
  border: 1px solid rgba(47, 111, 103, 0.28);
}

.button--whatsapp {
  width: 100%;
  background: linear-gradient(180deg, #42c987, #2aa96d);
  color: #062a19;
  box-shadow: 0 10px 22px rgba(42, 169, 109, 0.22);
}

.sticky-generate {
  position: sticky;
  bottom: calc(10px + env(safe-area-inset-bottom));
  z-index: 5;
  width: 100%;
  margin-top: -4px;
  border: 1px solid rgba(255, 255, 255, 0.54);
}

.button.is-loading .button__label {
  opacity: 0;
}

.loader {
  position: absolute;
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-top-color: #ffffff;
  border-radius: 50%;
  opacity: 0;
  animation: spin 0.8s linear infinite;
}

.button.is-loading .loader {
  opacity: 1;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.result-grid {
  display: grid;
  gap: 16px;
}

.result-content {
  display: grid;
  gap: 18px;
}

.result-content[hidden] {
  display: none;
}

.common-actions {
  display: grid;
  gap: 14px;
  padding: 18px;
  border-color: rgba(47, 116, 107, 0.16);
  background:
    linear-gradient(135deg, rgba(237, 247, 243, 0.94), rgba(255, 250, 242, 0.96)),
    var(--surface);
  box-shadow: var(--shadow);
}

.common-actions__buttons {
  display: grid;
  gap: 10px;
}

.whatsapp-action-note {
  display: grid;
  gap: 8px;
}

.whatsapp-action-note p {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.45;
}

.result-card {
  padding: 16px;
  background: linear-gradient(180deg, #ffffff, #fffbf5);
}

.result-card__top {
  display: grid;
  gap: 10px;
  margin-bottom: 12px;
}

.result-card__top h2 {
  color: #2c413c;
  font-size: 1.12rem;
}

.copy-button {
  min-height: 40px;
  width: 100%;
  padding: 0 12px;
  background: #fff2e6;
  color: #9b5833;
  border: 1px solid rgba(181, 106, 59, 0.14);
}

.copy-button.is-copied {
  background: rgba(31, 143, 98, 0.12);
  color: var(--success);
}

pre {
  min-height: 160px;
  margin: 0;
  padding: 14px;
  overflow-x: auto;
  white-space: pre-wrap;
  word-break: break-word;
  border: 1px solid #eee2d3;
  border-radius: 11px;
  background: #fffaf3;
  color: #34404b;
  font-family: inherit;
  font-size: 0.92rem;
  line-height: 1.62;
}

@media (min-width: 720px) {
  body {
    padding-bottom: 0;
  }

  .app-shell {
    width: min(100%, 920px);
    padding: 28px 24px 56px;
  }

  .site-brand {
    margin-bottom: 12px;
  }

  .site-brand__logo {
    width: 46px;
    height: 46px;
    border-radius: 12px;
  }

  .site-brand__name {
    font-size: 1.08rem;
  }

  .hero,
  .page-header {
    padding-top: 30px;
  }

  .hero {
    padding: 34px 32px 30px;
    grid-template-columns: minmax(0, 1.15fr) minmax(240px, 0.85fr);
    align-items: center;
    gap: 26px;
  }

  .hero-visual {
    min-height: 280px;
  }

  .hero .button {
    width: fit-content;
    min-width: 220px;
    padding: 0 22px;
  }

  .hero-actions {
    grid-template-columns: auto auto;
    justify-content: start;
  }

  .hero-actions .button {
    width: auto;
  }

  .content-band,
  .next-steps,
  .common-actions,
  .empty-state,
  .contact-trust,
  .visit-form {
    padding: 22px;
  }

  .info-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .form-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }

  .field--wide {
    grid-column: 1 / -1;
  }

  .actions {
    align-items: center;
  }

  .actions--three {
    grid-template-columns: minmax(220px, 0.45fr) minmax(150px, 0.24fr) minmax(150px, 0.24fr);
  }

  .actions--result {
    grid-template-columns: minmax(240px, 0.45fr) minmax(150px, 0.24fr) minmax(150px, 0.24fr);
  }

  .sticky-generate {
    display: none;
  }

  .common-actions {
    grid-template-columns: 1fr auto;
    align-items: center;
  }

  .common-actions__buttons {
    grid-template-columns: auto auto;
  }

  .button--whatsapp {
    width: auto;
  }

  .result-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .contact-trust {
    grid-template-columns: minmax(0, 1fr) minmax(220px, 0.42fr);
    align-items: center;
  }

  .feature-layout {
    grid-template-columns: minmax(0, 1fr) minmax(220px, 0.42fr);
    align-items: center;
  }

  .feature-visual {
    min-height: 220px;
  }

  .contact-visual {
    min-height: 210px;
  }

  .result-card__top {
    grid-template-columns: 1fr auto;
    align-items: center;
  }

  .copy-button {
    width: auto;
    min-width: 128px;
  }
}

@media (min-width: 960px) {
  .app-shell {
    width: min(100%, 980px);
    padding-top: 34px;
  }

  h1 {
    font-size: clamp(3rem, 4.4vw, 3.45rem);
  }

  .hero {
    padding: 40px 38px 34px;
  }

  .hero-visual {
    min-height: 310px;
  }

  .info-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
