:root {
  color-scheme: light;
  --ink: #21342b;
  --muted: #65736c;
  --cream: #f8f4ea;
  --paper: #fffdf8;
  --olive: #496b4f;
  --olive-dark: #34523a;
  --olive-soft: #e4eee3;
  --terracotta: #b96b4f;
  --border: #dfe4dc;
  --danger: #a64035;
  --shadow: 0 18px 45px rgba(48, 66, 52, 0.1);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  background: var(--cream);
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at top right, rgba(185, 107, 79, 0.13), transparent 34rem),
    linear-gradient(180deg, #f4efe3 0, var(--cream) 24rem);
}

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

.app-shell {
  width: min(100%, 740px);
  margin: 0 auto;
  padding: 24px 16px 48px;
}

.hero {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 10px 2px 22px;
}

.brand-mark {
  display: grid;
  flex: 0 0 54px;
  width: 54px;
  height: 54px;
  place-items: center;
  border-radius: 17px;
  background: var(--olive);
  box-shadow: 0 10px 26px rgba(73, 107, 79, 0.22);
}

.brand-mark svg {
  width: 32px;
  fill: none;
  stroke: #fff;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.3;
}

.eyebrow {
  margin: 2px 0 5px;
  color: var(--terracotta);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

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

h1 {
  margin-bottom: 8px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.7rem, 7vw, 2.3rem);
  line-height: 1.05;
}

h2 {
  margin-bottom: 3px;
  font-size: 1.06rem;
}

.hero-copy {
  max-width: 560px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.5;
}

.privacy-note {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-bottom: 16px;
  padding: 12px 14px;
  border: 1px solid #cdddc9;
  border-radius: 14px;
  color: var(--olive-dark);
  background: var(--olive-soft);
  font-size: 0.84rem;
  line-height: 1.45;
}

.privacy-note span {
  display: grid;
  flex: 0 0 20px;
  width: 20px;
  height: 20px;
  place-items: center;
  border-radius: 50%;
  color: white;
  background: var(--olive);
  font-size: 0.72rem;
  font-weight: 800;
}

.privacy-note p {
  margin-bottom: 0;
}

.install-panel {
  display: flex;
  gap: 14px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  padding: 13px 14px;
  border: 1px solid #e2d5c6;
  border-radius: 14px;
  background: rgba(255, 253, 248, 0.86);
}

.install-panel strong {
  display: block;
  margin-bottom: 3px;
  font-size: 0.84rem;
}

.install-panel p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.76rem;
  line-height: 1.4;
}

.install-button {
  flex: 0 0 auto;
  min-height: 40px;
  padding: 0 14px;
  border: 0;
  border-radius: 11px;
  color: #fff;
  background: var(--olive);
  font-size: 0.8rem;
  font-weight: 800;
  cursor: pointer;
}

.install-button:hover,
.install-button:focus-visible {
  background: var(--olive-dark);
}

.card,
.action-card {
  margin-bottom: 16px;
  padding: 20px;
  border: 1px solid rgba(223, 228, 220, 0.9);
  border-radius: 22px;
  background: rgba(255, 253, 248, 0.96);
  box-shadow: var(--shadow);
}

.section-heading {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 18px;
}

.section-heading p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.83rem;
  line-height: 1.4;
}

.step {
  display: inline-grid;
  flex: 0 0 28px;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 9px;
  color: #fff;
  background: var(--terracotta);
  font-size: 0.83rem;
  font-weight: 800;
}

.field-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px 12px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 7px;
  min-width: 0;
  color: var(--ink);
  font-size: 0.84rem;
  font-weight: 700;
}

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

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 13px;
  color: var(--ink);
  outline: none;
  background: #fff;
  transition:
    border-color 160ms ease,
    box-shadow 160ms ease;
}

input,
select {
  min-height: 48px;
  padding: 0 13px;
}

textarea {
  min-height: 390px;
  padding: 15px;
  resize: vertical;
  font-family: inherit;
  font-size: 0.92rem;
  line-height: 1.55;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--olive);
  box-shadow: 0 0 0 4px rgba(73, 107, 79, 0.12);
}

small {
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 500;
  line-height: 1.35;
}

.field-status.is-error,
.action-status.is-error {
  color: var(--danger);
}

.field-status.is-valid {
  color: var(--olive);
}

.secondary-button,
.whatsapp-button {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 14px;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
  transition:
    transform 150ms ease,
    background 150ms ease,
    box-shadow 150ms ease;
}

.secondary-button {
  width: 100%;
  margin-top: 18px;
  color: var(--olive-dark);
  background: var(--olive-soft);
}

.secondary-button:hover,
.secondary-button:focus-visible {
  background: #d7e6d5;
}

.message-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 9px;
  color: var(--muted);
  font-size: 0.75rem;
}

.action-card {
  color: white;
  border-color: transparent;
  background: var(--olive-dark);
}

.action-card > div {
  display: flex;
  gap: 12px;
  align-items: center;
}

.action-card h2 {
  margin-bottom: 0;
  font-size: 1.18rem;
}

.action-card > p {
  margin: 14px 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.84rem;
  line-height: 1.5;
}

.whatsapp-button {
  width: 100%;
  gap: 9px;
  color: #183722;
  background: #8fe3a5;
  box-shadow: 0 9px 24px rgba(5, 24, 13, 0.2);
}

.whatsapp-button svg {
  width: 23px;
  fill: currentColor;
}

.whatsapp-button:hover,
.whatsapp-button:focus-visible {
  transform: translateY(-1px);
  background: #a2e9b4;
}

.whatsapp-button[aria-disabled="true"] {
  opacity: 0.48;
  box-shadow: none;
  cursor: not-allowed;
  transform: none;
}

.action-status {
  min-height: 18px;
  margin: 9px 0 0 !important;
  color: #ffd5cf !important;
  text-align: center;
}

footer {
  padding-top: 5px;
  color: var(--muted);
  font-size: 0.72rem;
  text-align: center;
}

.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: 460px) {
  .app-shell {
    padding-inline: 12px;
  }

  .hero {
    gap: 12px;
  }

  .brand-mark {
    flex-basis: 48px;
    width: 48px;
    height: 48px;
  }

  .card,
  .action-card {
    padding: 17px;
    border-radius: 19px;
  }

  .field-grid {
    grid-template-columns: 1fr;
  }

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

  textarea {
    min-height: 430px;
  }

  .install-panel {
    align-items: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
