:root {
  /* ── Paleta unificada MeuCora ─────────────────────────────────────────── */
  --bg:            #f4f0e8;
  --bg-soft:       #faf8f4;
  --surface:       #fffdf9;
  --surface-alt:   #f0ede6;
  --line:          rgba(42, 66, 54, 0.1);
  --line-strong:   rgba(42, 66, 54, 0.18);

  --text:          #1c2a22;
  --muted:         #5c6e61;
  --subtle:        #7a8e81;

  --green:         #2a4236;
  --green-mid:     #3d6b54;
  --green-light:   #eef5ef;
  --green-pale:    #deeee2;

  --warm:          #8b6040;
  --warm-soft:     #e8d8c8;
  --warm-pale:     #f5ede4;

  --shadow-sm:     0 4px 16px rgba(42, 66, 54, 0.08);
  --shadow-md:     0 12px 36px rgba(42, 66, 54, 0.10);
  --shadow-lg:     0 24px 72px rgba(42, 66, 54, 0.12);

  --radius-xl: 36px;
  --radius-lg: 28px;
  --radius-md: 20px;
  --radius-sm: 14px;
  --container: 1180px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "DM Sans", sans-serif;
  color: var(--text);
  background:
    radial-gradient(ellipse at top left, rgba(238,245,239,0.9), transparent 38%),
    radial-gradient(ellipse at bottom right, rgba(232,216,200,0.65), transparent 36%),
    linear-gradient(180deg, #f4f0e8 0%, #ede9e0 100%);
}

a { color: inherit; text-decoration: none; }
button { font: inherit; }

/* ── Shell ───────────────────────────────────────────────────────────────── */
.page-shell {
  width: min(calc(100% - 32px), var(--container));
  margin: 0 auto;
  padding: 22px 0 60px;
}

/* ── Topbar ──────────────────────────────────────────────────────────────── */
.topbar {
  position: sticky;
  top: 14px;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 10px 14px 10px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 253, 249, 0.82);
  backdrop-filter: blur(20px);
  box-shadow: var(--shadow-sm);
}

/* ── Brand ───────────────────────────────────────────────────────────────── */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 13px;
  background: var(--green);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  box-shadow: 0 4px 12px rgba(42,66,54,0.28);
}

.brand-copy {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand-copy strong {
  font-size: 0.98rem;
  font-weight: 800;
  color: var(--text);
}

.brand-copy small {
  color: var(--subtle);
  font-size: 0.78rem;
}

/* ── Topnav ──────────────────────────────────────────────────────────────── */
.topnav {
  display: inline-flex;
  align-items: center;
  gap: 22px;
  color: var(--muted);
  font-size: 0.93rem;
  font-weight: 500;
}

.topnav a:hover { color: var(--text); }

/* ── Buttons ─────────────────────────────────────────────────────────────── */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 0.93rem;
  font-weight: 700;
  transition: transform 140ms ease, box-shadow 140ms ease;
  cursor: pointer;
}

.button:hover { transform: translateY(-1px); }

.button-primary {
  background: var(--green);
  color: #fff;
  box-shadow: 0 8px 28px rgba(42, 66, 54, 0.28);
}

.button-primary:hover {
  box-shadow: 0 12px 36px rgba(42, 66, 54, 0.34);
}

.button-secondary {
  border-color: var(--line-strong);
  background: rgba(255, 253, 249, 0.6);
  color: var(--text);
}

/* ── Hero ────────────────────────────────────────────────────────────────── */
.hero {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  align-items: center;
  gap: 48px;
  padding: 80px 0 52px;
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--warm);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.hero h1,
.section-heading h2,
.experience-copy h2,
.cta-copy h2 {
  margin: 0;
  font-family: "Cormorant Garamond", serif;
  font-weight: 600;
  line-height: 0.94;
  letter-spacing: -0.04em;
}

.hero h1 {
  font-size: clamp(3.4rem, 7vw, 6rem);
  color: var(--text);
}

.hero-text,
.experience-copy p,
.cta-copy p {
  max-width: 600px;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 1.06rem;
  line-height: 1.76;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.hero-proof {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
}

.hero-proof li {
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 253, 249, 0.6);
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 500;
}

/* ── Phone mockup ────────────────────────────────────────────────────────── */
.hero-visual { position: relative; }

.phone-stage {
  position: relative;
  min-height: 720px;
}

.phone-frame {
  position: absolute;
  top: 54px;
  right: 26px;
  width: min(100%, 380px);
  padding: 14px;
  border-radius: 44px;
  background: linear-gradient(180deg, #1c2a22 0%, #111a14 100%);
  box-shadow: 0 32px 80px rgba(28, 42, 34, 0.32);
}

.phone-frame::before {
  content: "";
  position: absolute;
  top: 10px;
  left: 50%;
  width: 80px;
  height: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  transform: translateX(-50%);
}

/* phone screen replicates app bg */
.phone-screen {
  min-height: 640px;
  border-radius: 32px;
  padding: 0;
  overflow: hidden;
  background: #f4f0e8;
}

.phone-screen-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 18px 18px 12px;
  background: #f4f0e8;
  border-bottom: 1px solid rgba(42,66,54,0.07);
}

.phone-logo {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: var(--green);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 800;
}

.phone-brand-name {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--text);
  line-height: 1.1;
}

.phone-brand-tag {
  font-size: 0.72rem;
  color: var(--subtle);
}

.phone-body {
  padding: 14px 14px 80px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.phone-card-inner {
  background: #fffdf9;
  border-radius: 20px;
  padding: 16px;
  border: 1px solid rgba(42,66,54,0.09);
  box-shadow: 0 4px 14px rgba(42,66,54,0.06);
}

.phone-card-label {
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--warm);
  margin-bottom: 8px;
}

.phone-card-inner h3 {
  margin: 0;
  font-size: 1.1rem;
  color: var(--text);
  font-weight: 800;
  line-height: 1.2;
}

.phone-card-inner p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.6;
}

.phone-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.phone-grid-item {
  background: #f0ede6;
  border-radius: 14px;
  padding: 12px;
  border: 1px solid rgba(42,66,54,0.08);
}

.phone-grid-item strong {
  display: block;
  font-size: 0.86rem;
  color: var(--text);
  font-weight: 700;
}

.phone-grid-item span {
  display: block;
  font-size: 0.75rem;
  color: var(--muted);
  margin-top: 3px;
  line-height: 1.4;
}

.phone-tabbar {
  position: absolute;
  bottom: 10px;
  left: 10px;
  right: 10px;
  background: #fffdf9;
  border-radius: 20px;
  border: 1px solid rgba(42,66,54,0.1);
  display: flex;
  padding: 6px;
  gap: 2px;
  box-shadow: 0 4px 16px rgba(42,66,54,0.1);
}

.phone-tab {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 6px 4px;
  border-radius: 14px;
  gap: 2px;
}

.phone-tab.active { background: var(--green); }

.phone-tab-icon { font-size: 0.9rem; }

.phone-tab-label {
  font-size: 0.58rem;
  font-weight: 700;
  color: var(--subtle);
  letter-spacing: 0.05em;
}

.phone-tab.active .phone-tab-label { color: #fff; }

/* Floating cards around phone */
.phone-card {
  position: absolute;
  max-width: 270px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(255, 253, 249, 0.88);
  box-shadow: var(--shadow-md);
  backdrop-filter: blur(12px);
}

.phone-card h2, .phone-card p { margin: 0; }

.phone-card-top { top: 0; left: 0; }

.phone-card-top h2 {
  margin-top: 10px;
  font-family: "Cormorant Garamond", serif;
  font-size: 1.8rem;
  line-height: 1.05;
  color: var(--text);
}

.phone-card-top p,
.phone-card-bottom p {
  margin-top: 8px;
  color: var(--muted);
  line-height: 1.65;
  font-size: 0.88rem;
}

.phone-card-bottom { right: 0; bottom: 18px; }

/* ── Chip / badge ────────────────────────────────────────────────────────── */
.chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 0 12px;
  border-radius: 999px;
  background: var(--green-pale);
  color: var(--green);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.chip-soft {
  background: var(--warm-soft);
  color: var(--warm);
}

/* ── Metrics ─────────────────────────────────────────────────────────────── */
.metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 20px;
}

.metrics article,
.benefit-card,
.step-card,
.experience-list article,
.cta-panel {
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.metrics article {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 24px;
  border-radius: var(--radius-md);
}

.metrics strong {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--text);
}

.metrics span {
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.6;
}

/* ── Sections spacing ────────────────────────────────────────────────────── */
.benefits,
.experience,
.how-it-works,
.cta-panel { margin-top: 90px; }

.section-heading { max-width: 740px; }

.section-heading h2,
.experience-copy h2,
.cta-copy h2 {
  font-size: clamp(2.4rem, 5vw, 4rem);
  color: var(--text);
}

/* ── Benefits ────────────────────────────────────────────────────────────── */
.benefit-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 26px;
}

.benefit-card {
  min-height: 270px;
  padding: 28px;
  border-radius: var(--radius-lg);
}

.benefit-number {
  display: inline-flex;
  margin-bottom: 20px;
  color: var(--warm);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.14em;
}

.benefit-card h3,
.step-card h3,
.experience-list h3 {
  margin: 0;
  font-size: 1.28rem;
  line-height: 1.2;
  font-weight: 800;
  color: var(--text);
}

.benefit-card p,
.step-card p,
.experience-list p {
  margin: 12px 0 0;
  color: var(--muted);
  line-height: 1.76;
  font-size: 0.95rem;
}

/* card accent variants tied to the app palette */
.accent-sand {
  background: linear-gradient(160deg, #f5ede4 0%, #fffdf9 100%);
}

.accent-rose {
  background: linear-gradient(160deg, #f0ede6 0%, #fffdf9 100%);
}

.accent-olive {
  background: linear-gradient(160deg, #deeee2 0%, #fffdf9 100%);
}

/* ── Experience ──────────────────────────────────────────────────────────── */
.experience {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 24px;
  align-items: start;
}

.experience-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.experience-list article {
  padding: 22px;
  border-radius: 24px;
}

/* ── How it works ────────────────────────────────────────────────────────── */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 26px;
}

.step-card {
  padding: 26px;
  border-radius: var(--radius-lg);
}

.step-card span {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  margin-bottom: 18px;
  border-radius: 13px;
  background: var(--green);
  color: #fff;
  font-weight: 800;
  font-size: 0.95rem;
  box-shadow: 0 4px 12px rgba(42,66,54,0.24);
}

/* ── CTA panel ───────────────────────────────────────────────────────────── */
.cta-panel {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 28px;
  align-items: center;
  margin-top: 90px;
  padding: 38px;
  border-radius: var(--radius-xl);
  background:
    radial-gradient(circle at top right, rgba(222,238,226,0.7), transparent 36%),
    radial-gradient(circle at bottom left, rgba(232,216,200,0.5), transparent 36%),
    linear-gradient(135deg, #fffdf9 0%, #f4f0e8 100%);
}

.cta-actions {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 10px;
  min-width: 240px;
}

.copy-feedback {
  min-height: 18px;
  color: var(--muted);
  text-align: center;
  font-size: 0.82rem;
}

/* ── Footer ──────────────────────────────────────────────────────────────── */
.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 44px;
  padding: 22px 4px 6px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.9rem;
}

.footer strong {
  display: block;
  color: var(--text);
  font-weight: 800;
  margin-bottom: 4px;
}

.footer-links {
  display: flex;
  gap: 18px;
}

.footer-links a:hover { color: var(--text); }

/* ── Responsive ──────────────────────────────────────────────────────────── */
@media (max-width: 1080px) {
  .hero,
  .experience,
  .cta-panel {
    grid-template-columns: 1fr;
  }

  .hero-visual { order: -1; }

  .phone-stage { min-height: 680px; }

  .phone-frame {
    position: relative;
    top: auto;
    right: auto;
    margin: 100px auto 0;
  }

  .phone-card-top { left: 0; }
  .phone-card-bottom { right: 0; bottom: 0; }
}

@media (max-width: 820px) {
  .page-shell {
    width: min(calc(100% - 20px), var(--container));
    padding-top: 12px;
  }

  .topbar {
    position: static;
    flex-wrap: wrap;
    justify-content: center;
    border-radius: 24px;
  }

  .topnav {
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
  }

  .button-top { width: 100%; }

  .metrics,
  .benefit-grid,
  .steps,
  .experience-list {
    grid-template-columns: 1fr;
  }

  .hero { padding-top: 44px; }
  .hero h1 { font-size: 3rem; }

  .phone-stage {
    min-height: auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
  }

  .phone-card,
  .phone-frame {
    position: relative;
    top: auto;
    right: auto;
    left: auto;
    bottom: auto;
    max-width: none;
    width: 100%;
    margin: 0;
  }

  .phone-screen { min-height: auto; }

  .footer {
    flex-direction: column;
    align-items: flex-start;
  }
}
