:root {
  --bg: #f7f4ee;
  --surface: #fffdf9;
  --surface-strong: #ffffff;
  --text: #1f2a25;
  --muted: #66726c;
  --line: rgba(31, 42, 37, 0.11);
  --green: #1f8f5f;
  --green-dark: #176b49;
  --green-soft: #e8f5ee;
  --peach: #f3c4a6;
  --gold: #d5a248;
  --shadow: 0 24px 70px rgba(45, 54, 49, 0.11);
  --radius-xl: 34px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --max: 1160px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 83% 7%, rgba(243, 196, 166, 0.30), transparent 31%),
    radial-gradient(circle at 13% 31%, rgba(31, 143, 95, 0.08), transparent 24%),
    var(--bg);
  color: var(--text);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }

.skip-link {
  position: fixed;
  left: 12px;
  top: -80px;
  z-index: 999;
  background: #fff;
  padding: 10px 14px;
  border-radius: 10px;
}
.skip-link:focus { top: 12px; }

.section-shell {
  width: min(calc(100% - 40px), var(--max));
  margin-inline: auto;
}

.hero {
  min-height: 100svh;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 0.9fr;
  gap: 40px;
  align-items: center;
  padding-block: 42px 52px;
}

.brand-chip {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 6px 12px 6px 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(31, 42, 37, 0.08);
  box-shadow: 0 10px 30px rgba(45, 54, 49, 0.06);
  font-weight: 750;
}
.brand-chip img { border-radius: 50%; object-fit: cover; }
.hero-copy { max-width: 640px; }

h1, h2, h3, p { margin-top: 0; }
h1 {
  font-size: clamp(2.9rem, 5.7vw, 5.2rem);
  line-height: 0.96;
  letter-spacing: -0.065em;
  max-width: 760px;
  margin: 22px 0 18px;
}
.hero-lead {
  font-size: clamp(1.08rem, 2vw, 1.32rem);
  line-height: 1.62;
  color: var(--muted);
  max-width: 670px;
  margin-bottom: 16px;
}
.hero-free-badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: #dff4d4;
  color: var(--green-dark);
  border-radius: 999px;
  padding: 10px 16px;
  font-weight: 900;
  font-size: clamp(1rem, 1.6vw, 1.35rem);
  line-height: 1;
  margin-bottom: 16px;
  box-shadow: 0 10px 24px rgba(31, 143, 95, .10);
}
.hero-free-badge span:last-child {
  font-size: .9em;
}
.hero-connect {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
}
.hero-qr-wrap {
  display: flex;
  align-items: center;
  gap: 16px;
}
.hero-qr-caption {
  max-width: 100%;
  text-align: center;
}
.hero-qr-caption strong {
  display: block;
  font-size: 1.05rem;
  line-height: 1.28;
  margin-bottom: 7px;
}
.hero-qr-caption p {
  color: var(--muted);
  font-size: .88rem;
  margin: 0;
}
.hero-qr-caption code {
  background: #f1eee8;
  padding: 2px 5px;
  border-radius: 5px;
}
.hero-actions {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 10px;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-decoration: none;
  border-radius: 999px;
  padding: 15px 22px;
  min-height: 54px;
  font-weight: 820;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn:focus-visible { outline: 3px solid rgba(31,143,95,.28); outline-offset: 4px; }
.btn-primary {
  background: var(--green);
  color: white;
  box-shadow: 0 14px 30px rgba(31, 143, 95, .22);
}
.btn-primary:hover { background: var(--green-dark); box-shadow: 0 17px 38px rgba(31, 143, 95, .28); }
.whatsapp-dot {
  width: 24px;
  height: 24px;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255,255,255,.18);
  font-size: .85rem;
}
.microcopy { margin: 0; color: var(--muted); font-size: .91rem; max-width: 320px; }

.hero-card { display: flex; justify-content: center; }
.phone-frame {
  width: min(100%, 390px);
  background: #efeae2;
  border: 11px solid #1e2421;
  border-radius: 44px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transform: rotate(1.4deg);
}
.phone-topbar {
  min-height: 72px;
  background: #f8f7f3;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid rgba(31,42,37,.08);
}
.phone-topbar img { border-radius: 50%; }
.phone-topbar div { display: flex; flex-direction: column; }
.phone-topbar strong { font-size: .98rem; }
.phone-topbar span { font-size: .8rem; color: var(--muted); }
.chat-area {
  min-height: 470px;
  padding: 27px 18px 32px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  justify-content: center;
  background:
    linear-gradient(rgba(239,234,226,.88), rgba(239,234,226,.88)),
    radial-gradient(circle at 30% 20%, rgba(255,255,255,.55), transparent 20%);
}
.bubble {
  max-width: 83%;
  padding: 11px 13px;
  border-radius: 15px;
  font-size: .96rem;
  line-height: 1.42;
  box-shadow: 0 5px 10px rgba(31,42,37,.04);
}
.bubble-user { align-self: flex-end; background: #d8f8c6; border-bottom-right-radius: 5px; }
.bubble-photo {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 150px;
  padding: 10px;
}
.bubble-photo small {
  font-size: .78rem;
  color: rgba(31,42,37,.72);
}
.receipt-shot {
  width: 132px;
  height: 102px;
  border-radius: 14px;
  background: linear-gradient(180deg, #fffdf8 0%, #f4efe6 100%);
  border: 1px solid rgba(31,42,37,.08);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.8);
  padding: 10px 11px;
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.receipt-top {
  width: 38px;
  height: 8px;
  border-radius: 999px;
  background: #d9cfbe;
}
.receipt-line {
  height: 6px;
  border-radius: 999px;
  background: #e2d8c8;
  width: 100%;
}
.receipt-line.short {
  width: 62%;
}
.receipt-total {
  margin-top: auto;
  align-self: flex-end;
  font-size: .86rem;
  font-weight: 800;
  color: var(--green-dark);
}
.bubble-silvia { align-self: flex-start; background: white; border-bottom-left-radius: 5px; }

.conversation-section, .features, .manifesto, .start { padding-block: 98px; }
.section-heading { max-width: 760px; margin-bottom: 42px; }
.section-heading.compact { margin-bottom: 32px; }
.eyebrow {
  display: inline-block;
  color: var(--green-dark);
  font-weight: 850;
  letter-spacing: .08em;
  text-transform: uppercase;
  font-size: .76rem;
  margin-bottom: 12px;
}
h2 {
  font-size: clamp(2.25rem, 5vw, 4.2rem);
  line-height: 1.02;
  letter-spacing: -0.05em;
  margin-bottom: 16px;
}
.section-heading p { color: var(--muted); font-size: 1.08rem; max-width: 620px; }

.conversation-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.conversation-card {
  padding: 24px;
  border-radius: var(--radius-lg);
  background: rgba(255,255,255,.72);
  border: 1px solid rgba(31,42,37,.08);
  box-shadow: 0 12px 35px rgba(45,54,49,.05);
}
.message-label { font-size: .75rem; font-weight: 820; color: var(--muted); margin: 8px 0 6px; }
.silvia-label { color: var(--green-dark); }
.demo-message { padding: 11px 13px; border-radius: 15px; font-size: .93rem; }
.user-message { background: #d9f8c8; margin-left: 18px; }
.silvia-message { background: #fff; border: 1px solid var(--line); margin-right: 18px; }

.feature-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.feature-card {
  background: var(--surface-strong);
  padding: 34px;
  border-radius: var(--radius-xl);
  border: 1px solid rgba(31,42,37,.07);
  box-shadow: 0 16px 44px rgba(45,54,49,.06);
}
.feature-icon { font-size: 2rem; margin-bottom: 26px; }
.feature-card h3 { font-size: 1.6rem; letter-spacing: -0.03em; margin-bottom: 10px; }
.feature-card p { color: var(--muted); margin-bottom: 12px; }
.feature-note { font-size: .92rem; }

.manifesto-box {
  padding: clamp(36px, 7vw, 76px);
  border-radius: var(--radius-xl);
  background: #1f2a25;
  color: white;
  text-align: center;
  box-shadow: var(--shadow);
  overflow: hidden;
  position: relative;
}
.manifesto-box::after {
  content: "";
  position: absolute;
  width: 360px;
  height: 360px;
  right: -140px;
  top: -130px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(243,196,166,.30), rgba(243,196,166,0));
}
.manifesto-box .eyebrow { color: #a8e2c3; }
.manifesto-box h2 { max-width: 800px; margin-inline: auto; }
.manifesto-line { color: rgba(255,255,255,.72); font-size: clamp(1.1rem, 2vw, 1.35rem); }
.pill-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 28px; }
.pill-row span { padding: 9px 13px; border: 1px solid rgba(255,255,255,.14); border-radius: 999px; background: rgba(255,255,255,.07); font-size: .88rem; }

.start {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 62px;
  align-items: center;
}
.start.start-single {
  grid-template-columns: 1fr;
}
.start.start-single .start-copy {
  max-width: 760px;
}
.steps { list-style: none; padding: 0; margin: 28px 0 32px; display: grid; gap: 18px; }
.steps li { display: grid; grid-template-columns: 38px 1fr; gap: 14px; align-items: start; }
.steps li > span {
  width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center;
  background: var(--green-soft); color: var(--green-dark); font-weight: 900;
}
.steps strong { display: block; margin-top: 3px; }
.steps p { color: var(--muted); margin: 4px 0 0; }

.qr-placeholder, #qr-image {
  width: 138px;
  height: 138px;
  border-radius: 22px;
  background: #fff;
  border: 1px solid var(--line);
  padding: 18px;
  object-fit: contain;
  flex: 0 0 auto;
}
.qr-grid { width: 100%; height: 100%; display: grid; grid-template-columns: repeat(6, 1fr); gap: 4px; opacity: .18; }
.qr-grid span { background: #1f2a25; border-radius: 2px; }
.qr-grid span:nth-child(3n), .qr-grid span:nth-child(5n) { opacity: .35; transform: scale(.75); }

footer { border-top: 1px solid var(--line); margin-top: 40px; }
.footer-inner { display: flex; justify-content: space-between; gap: 28px; padding-block: 30px 90px; }
.footer-brand { display: flex; gap: 10px; align-items: center; }
.footer-brand img { border-radius: 50%; }
.footer-brand div { display: flex; flex-direction: column; }
.footer-brand span, .footer-meta { font-size: .82rem; color: var(--muted); }
.footer-meta { display: flex; flex-wrap: wrap; gap: 12px 18px; justify-content: flex-end; align-items: center; text-align: right; }
.footer-meta a { color: var(--green-dark); }

.floating-whatsapp { display: none; }

@media (max-width: 920px) {
  .hero { grid-template-columns: 1fr; min-height: auto; padding-top: 34px; gap: 36px; }
  .hero-copy { text-align: center; }
  .brand-chip { margin-inline: auto; }
  .hero-lead { margin-inline: auto; }
  .hero-free-badge { justify-content: center; }
  .hero-connect {
    grid-template-columns: 1fr;
    align-items: center;
    justify-items: center;
    text-align: center;
  }
  .hero-qr-wrap {
    flex-direction: column;
    text-align: center;
  }
  .hero-qr-caption { max-width: 320px; }
  .hero-actions { align-items: center; width: 100%; }
  .hero-actions .btn { width: 100%; max-width: 360px; }
  .hero-card { order: 2; }
  .phone-frame { transform: none; }
  .conversation-grid { grid-template-columns: 1fr; }
  .feature-grid { grid-template-columns: 1fr; }
  .start { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; }
  .footer-meta { justify-content: flex-start; text-align: left; }
}

@media (max-width: 640px) {
  .section-shell { width: min(calc(100% - 28px), var(--max)); }
  .hero { padding-bottom: 56px; }
  h1 { font-size: clamp(3rem, 16vw, 4.6rem); }
  .hero-lead { font-size: 1.02rem; }
  .phone-frame { width: 100%; border-width: 8px; border-radius: 34px; }
  .chat-area { min-height: 420px; }
  .conversation-section, .features, .manifesto, .start { padding-block: 68px; }
  .feature-card, .conversation-card { padding: 22px; }
  .manifesto { width: 100%; }
  .manifesto-box { border-radius: 0; }
  .qr-placeholder, #qr-image { width: 200px; height: 200px; }
  footer { margin-bottom: 74px; }
  .footer-inner { padding-bottom: 36px; }
  .floating-whatsapp {
    display: flex;
    position: fixed;
    left: 12px;
    right: 12px;
    bottom: 12px;
    z-index: 50;
    min-height: 56px;
    box-shadow: 0 14px 34px rgba(31, 143, 95, .33);
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .001ms !important; animation-duration: .001ms !important; animation-iteration-count: 1 !important; }
}
