:root {
  --bg: #f8f5ee;
  --paper: #fffdfa;
  --surface: rgba(255, 252, 246, 0.82);
  --surface-strong: rgba(255, 252, 246, 0.94);
  --ink: #173662;
  --muted: #566981;
  --line: rgba(23, 54, 98, 0.12);
  --accent: #b6944c;
  --accent-strong: #8f7236;
  --leaf: #1fa463;
  --leaf-strong: #13834d;
  --shadow: 0 20px 50px rgba(17, 39, 72, 0.12);
  --radius-xl: 30px;
  --radius-lg: 22px;
  --radius-md: 16px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Manrope", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(182, 148, 76, 0.12), transparent 30%),
    radial-gradient(circle at bottom right, rgba(23, 54, 98, 0.09), transparent 32%),
    linear-gradient(180deg, #fcfaf5 0%, #f8f5ee 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(23, 54, 98, 0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(23, 54, 98, 0.018) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.55), transparent 85%);
}

.page-shell {
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
  padding: 48px 0 80px;
}

.brand-bar,
.hero-copy,
.hero-experience,
.form-shell {
  background: var(--surface);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.75);
  box-shadow: var(--shadow);
}

.brand-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  margin-bottom: 18px;
  padding: 18px 22px;
  border-radius: 999px;
  border-color: rgba(182, 148, 76, 0.22);
}

.brand-mark {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand-seal {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #31598f, var(--ink));
  color: #fff8ef;
  font-family: "Cormorant Garamond", serif;
  font-size: 2rem;
  font-weight: 700;
}

.brand-text {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.brand-text strong {
  font-family: "Cormorant Garamond", serif;
  font-size: 2rem;
  line-height: 1;
}

.brand-text span {
  color: var(--muted);
  font-size: 0.95rem;
}

.brand-credentials {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 2px;
}

.brand-credentials span {
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(182, 148, 76, 0.28);
  background: rgba(255, 253, 250, 0.74);
  color: var(--accent-strong);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.brand-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.brand-links a,
.contact-link {
  color: var(--ink);
  text-decoration: none;
  font-weight: 800;
}

.hero {
  display: grid;
  grid-template-columns: minmax(320px, 0.92fr) minmax(420px, 1.08fr);
  gap: 26px;
  align-items: start;
}

.hero-copy {
  padding: 52px;
  border-radius: var(--radius-xl);
  position: sticky;
  top: 24px;
}

.hero-experience {
  padding: 24px;
  border-radius: var(--radius-xl);
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.eyebrow,
.section-kicker,
.card-label,
.case-stage-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 16px;
  color: var(--accent-strong);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero-copy h1,
.hero-experience h2,
.form-step h3,
.success-panel h3,
.case-stage-header h3 {
  margin: 0;
  font-family: "Cormorant Garamond", serif;
  font-weight: 700;
  line-height: 1.04;
}

.hero-copy h1 {
  max-width: 13ch;
  font-size: clamp(2.5rem, 5vw, 4.8rem);
}

.hero-experience h2 {
  font-size: clamp(2rem, 3vw, 2.8rem);
  max-width: 15ch;
}

.hero-text,
.experience-intro p,
.success-panel p,
.case-stage-description {
  color: var(--muted);
  line-height: 1.7;
}

.hero-highlights {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.hero-highlights span {
  padding: 12px 16px;
  border-radius: 999px;
  background: rgba(255, 253, 250, 0.86);
  border: 1px solid var(--line);
  font-weight: 700;
  color: var(--ink);
}

.hero-contact {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
  margin-top: 28px;
}

.experience-intro {
  padding: 8px 8px 0;
}

.case-stage {
  padding: 22px;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(36, 51, 43, 0.08);
}

.case-stage-header {
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(220px, 1fr);
  gap: 18px;
  align-items: end;
  margin-bottom: 18px;
}

.case-stage-header h3 {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
}

.case-stage-kicker {
  margin-bottom: 10px;
}

.case-stage-description {
  margin: 0;
}

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

.comparison.single {
  grid-template-columns: 1fr;
}

.comparison-photo {
  position: relative;
  min-height: 320px;
  margin: 0;
  overflow: hidden;
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(23, 54, 98, 0.12), rgba(23, 54, 98, 0.82));
}

.comparison-photo img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 320px;
  object-fit: cover;
}

.comparison-photo figcaption {
  position: absolute;
  left: 16px;
  bottom: 16px;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(16, 27, 47, 0.72);
  color: white;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.form-shell {
  padding: 28px;
  border-radius: var(--radius-lg);
  background: var(--surface-strong);
}

.progress-panel {
  margin-bottom: 26px;
}

.progress-header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
  color: var(--muted);
  font-weight: 700;
}

.progress-bar {
  height: 12px;
  border-radius: 999px;
  background: rgba(36, 51, 43, 0.08);
  overflow: hidden;
}

.progress-fill {
  width: 25%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent), #f1b27d);
  transition: width 240ms ease;
}

.progress-fill.progress-step-1 {
  width: 25%;
}

.progress-fill.progress-step-2 {
  width: 50%;
}

.progress-fill.progress-step-3 {
  width: 75%;
}

.progress-fill.progress-step-4 {
  width: 100%;
}

.form-step {
  animation: fadeUp 240ms ease;
}

.form-step h3 {
  margin-bottom: 22px;
  font-size: clamp(1.5rem, 3vw, 2.1rem);
}

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

.field,
.choice-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 18px;
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.72);
}

.field.full,
.choice-group.full {
  grid-column: 1 / -1;
}

.field span,
.choice-group legend {
  padding: 0;
  font-weight: 800;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  border: 1px solid rgba(36, 51, 43, 0.14);
  border-radius: 14px;
  padding: 14px 16px;
  font: inherit;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.92);
  outline: none;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(207, 111, 66, 0.14);
}

.choice-group {
  margin: 0;
}

.choice-group label {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  color: var(--muted);
}

.choice-group input {
  accent-color: var(--accent);
}

.form-actions {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  margin-top: 24px;
}

.ghost-button,
.primary-button,
.secondary-button,
.whatsapp-button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 54px;
  padding: 14px 24px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 800;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    background-color 180ms ease,
    color 180ms ease;
}

.ghost-button:hover,
.primary-button:hover,
.secondary-button:hover,
.whatsapp-button:hover {
  transform: translateY(-1px);
}

.ghost-button {
  color: var(--ink);
  background: rgba(255, 253, 250, 0.82);
  border: 1px solid rgba(182, 148, 76, 0.3);
}

.primary-button,
.secondary-button {
  border: none;
  cursor: pointer;
  font: inherit;
}

.primary-button {
  min-width: 164px;
  color: white;
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  box-shadow: 0 16px 30px rgba(143, 114, 54, 0.22);
}

.secondary-button {
  min-width: 132px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid var(--line);
}

.secondary-button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
}

.success-panel {
  padding-top: 4px;
}

.summary-card {
  margin: 22px 0;
  padding: 22px;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid var(--line);
  color: var(--muted);
  line-height: 1.7;
}

.summary-card strong {
  color: var(--ink);
}

.whatsapp-button {
  width: 100%;
  color: white;
  background: linear-gradient(135deg, var(--leaf), var(--leaf-strong));
  box-shadow: 0 20px 34px rgba(19, 131, 77, 0.24);
}

.success-links {
  margin-bottom: 16px;
}

.field.invalid,
.choice-group.invalid {
  border-color: rgba(189, 63, 63, 0.36);
  box-shadow: 0 0 0 4px rgba(189, 63, 63, 0.08);
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  margin-top: 26px;
  padding: 24px 28px;
  border-radius: var(--radius-lg);
  background: rgba(255, 252, 246, 0.78);
  border: 1px solid rgba(182, 148, 76, 0.22);
  color: var(--muted);
  box-shadow: 0 14px 34px rgba(17, 39, 72, 0.08);
}

.footer-identity {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 240px;
}

.footer-identity strong {
  color: var(--ink);
  font-family: "Cormorant Garamond", serif;
  font-size: 1.7rem;
  line-height: 1;
}

.footer-identity span,
.footer-legal p {
  margin: 0;
  line-height: 1.6;
}

.footer-legal {
  max-width: 760px;
  text-align: right;
  font-size: 0.86rem;
}

.footer-legal p:first-child {
  color: var(--accent-strong);
  font-weight: 800;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 1100px) {
  .hero {
    grid-template-columns: 1fr;
  }

  .hero-copy {
    position: static;
  }
}

@media (max-width: 820px) {
  .case-stage-header,
  .field-grid {
    grid-template-columns: 1fr;
  }

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

  .brand-bar {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    border-radius: 28px;
  }

  .brand-links,
  .site-footer {
    width: 100%;
  }

  .site-footer {
    flex-direction: column;
  }

  .footer-legal {
    text-align: left;
  }

  .hero-copy {
    padding: 38px 28px;
  }
}

@media (max-width: 720px) {
  .page-shell {
    width: min(100% - 20px, 100%);
    padding-top: 20px;
  }

  .hero-copy,
  .hero-experience,
  .form-shell {
    padding: 24px;
    border-radius: 24px;
  }

  .hero-copy h1 {
    font-size: clamp(2.2rem, 12vw, 3.5rem);
  }

  .hero-experience h2,
  .case-stage-header h3 {
    font-size: clamp(1.8rem, 9vw, 2.5rem);
  }

  .comparison-photo,
  .comparison-photo img {
    min-height: 240px;
  }

  .progress-header,
  .form-actions {
    flex-direction: column;
  }

  .brand-text strong {
    font-size: 1.75rem;
  }

  .primary-button,
  .secondary-button {
    width: 100%;
  }
}
