/* Boas Compras landing — design tokens from new-app-expo/src/boas/theme/tokens.ts */
:root {
  --brand: #267A98;
  --brand-dark: #1a5f7a;
  --bg-screen: #F9FAFB;
  --bg-app: #E2E8F0;
  --surface: #FFFFFF;
  --text: #1E293B;
  --text-muted: #6B7280;
  --text-subtle: #9CA3AF;
  --border: #E2E8F0;
  --success: #22C55E;
  --corner-teal: #2dd4bf;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --max-width: 1100px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  background: var(--bg-screen);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

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

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.section-title {
  font-size: 1.5rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 2rem;
  color: var(--text);
}

.section-title--dark {
  color: var(--text);
}

/* ── Hero ── */
.hero {
  background: linear-gradient(160deg, var(--brand) 0%, var(--brand-dark) 100%);
  color: #fff;
  padding: 3rem 1.25rem 4rem;
  text-align: center;
}

.hero__inner {
  max-width: 36rem;
  margin: 0 auto;
}

.hero__brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 1.25rem;
}

.hero__brand-name {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  margin-bottom: 1.375rem;
}

.hero__brand-word {
  height: 1.625rem;
  width: auto;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.12));
}

@media (min-width: 600px) {
  .hero__brand-word {
    height: 1.875rem;
  }

  .hero__logo {
    width: 141px;
  }
}

.hero__logo {
  width: 120px;
  height: auto;
  margin: 0;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.15));
}

.hero__title {
  font-size: 1.625rem;
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 0.75rem;
}

.hero__keywords {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 1.75rem;
  max-width: 460px;
  margin-left: auto;
  margin-right: auto;
}

.hero__keywords span {
  font-size: 0.8125rem;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 999px;
  padding: 0.35rem 0.75rem;
  white-space: nowrap;
}

.hero__highlight {
  font-size: 1.0625rem;
  font-weight: 700;
  line-height: 1.45;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 2.5rem;
  opacity: 0.95;
}

.hero__cta {
  margin-top: 0.25rem;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
  min-width: 15.5rem;
  padding: 0.875rem 1.625rem;
  background: #fff;
  border-radius: 1rem;
  text-align: center;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  box-shadow:
    0 4px 14px rgba(0, 0, 0, 0.12),
    0 0 0 1px rgba(255, 255, 255, 0.08);
}

.hero__cta-eyebrow {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.hero__cta-main {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 1rem;
  font-weight: 700;
  color: var(--brand);
  line-height: 1.2;
}

.hero__cta-arrow {
  font-size: 1.0625rem;
  line-height: 1;
  transition: transform 0.15s ease;
}

.hero__cta:hover {
  transform: translateY(-2px);
  box-shadow:
    0 8px 24px rgba(0, 0, 0, 0.16),
    0 0 0 1px rgba(255, 255, 255, 0.1);
}

.hero__cta:hover .hero__cta-arrow {
  transform: translateX(3px);
}

.hero__cta:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}

/* ── Story sections ── */
.story-section {
  padding: 3.5rem 1.25rem;
  border-top: 1px solid var(--border);
}

.story-section__inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.story-section__title {
  max-width: 42rem;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.35;
  font-size: 1.375rem;
}

.story-section__demo {
  display: flex;
  justify-content: center;
  margin-top: 2rem;
}

.scan-demo,
.list-demo,
.ai-demo {
  background: var(--bg-screen);
}

.cards-demo,
.suggest-demo {
  background: var(--surface);
}

.scan-demo__layout {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
}

/* Phone bezel */
.phone {
  flex-shrink: 0;
}

.phone__bezel {
  width: 220px;
  background: #111;
  border-radius: 32px;
  padding: 10px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
}

.phone__notch {
  width: 80px;
  height: 22px;
  background: #111;
  border-radius: 0 0 14px 14px;
  margin: 0 auto -11px;
  position: relative;
  z-index: 2;
}

.phone__screen {
  position: relative;
  background: #000;
  border-radius: 24px;
  overflow: hidden;
  height: 420px;
  font-size: 1rem;
}

/* Scan sequence slides (inside phone) */
.scan-slide .slide-scan,
.scan-slide .slide-import,
.scan-slide .slide-invoice {
  width: 100%;
  height: 100%;
}

/* ── QR scan (matches QrScanScreen) ── */
.slide-scan {
  display: flex;
  flex-direction: column;
  background: #000;
  height: 100%;
}

.slide-scan__header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.625rem 0.625rem;
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-dark) 100%);
  flex-shrink: 0;
}

.slide-scan__back {
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
  font-size: 1.125rem;
  line-height: 1.5rem;
  text-align: center;
  flex-shrink: 0;
}

.slide-scan__title {
  font-size: 0.625rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.2;
}

.slide-scan__subtitle {
  font-size: 0.5rem;
  color: rgba(255, 255, 255, 0.75);
  margin-top: 1px;
}

.slide-scan__body {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
  background: linear-gradient(180deg, #1c2c2f 0%, #0a1415 55%, #000 100%);
}

.slide-scan__row {
  display: flex;
  flex: 2.5;
  min-height: 0;
  flex-shrink: 0;
  align-items: center;
}

.slide-scan__dim {
  background: rgba(0, 0, 0, 0.62);
}

.slide-scan__dim--top {
  flex: 0.85;
  min-height: 0;
  padding: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.slide-scan__dim--bottom {
  flex: 0.85;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem;
}

.slide-scan__dim--side {
  flex: 1;
}

.slide-scan__instruction {
  text-align: center;
  font-size: 0.5625rem;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.65);
  max-width: 12rem;
}

.slide-scan__instruction strong {
  color: #4dd9b8;
  font-weight: 700;
}

.slide-scan__frame {
  position: relative;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 7.75rem;
  height: 100%;
  overflow: visible;
}

.corner {
  position: absolute;
  width: 1.125rem;
  height: 1.125rem;
  border-color: var(--corner-teal);
  border-style: solid;
  z-index: 3;
  pointer-events: none;
}

.corner--tl { top: 0; left: 0; border-width: 2.5px 0 0 2.5px; border-top-left-radius: 6px; }
.corner--tr { top: 0; right: 0; border-width: 2.5px 2.5px 0 0; border-top-right-radius: 6px; }
.corner--bl { bottom: 0; left: 0; border-width: 0 0 2.5px 2.5px; border-bottom-left-radius: 6px; }
.corner--br { bottom: 0; right: 0; border-width: 0 2.5px 2.5px 0; border-bottom-right-radius: 6px; }

.nfce-slip {
  width: 100%;
  height: 100%;
  max-height: 100%;
  padding: 0.625rem 0.4rem;
  background: linear-gradient(180deg, #fff9c4 0%, #fff59d 45%, #ffee58 100%);
  border: 1px solid #e6d85c;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.4);
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: space-evenly;
  align-items: center;
}

.nfce-slip__label {
  font-size: 0.4375rem;
  font-weight: 800;
  letter-spacing: 0.01em;
  color: #1a1a1a;
  line-height: 1.25;
  max-width: 100%;
}

.nfce-slip__store {
  font-size: 0.5rem;
  font-weight: 700;
  color: #1a1a1a;
  margin: 0;
  line-height: 1.2;
  max-width: 100%;
}

.nfce-slip__scan-target {
  position: relative;
  width: 4.125rem;
  height: 4.125rem;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.nfce-slip__qr {
  display: block;
  width: 3.375rem;
  height: 3.375rem;
  border: 1px solid #e6d85c;
  background: #fff59d;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
}

.nfce-slip__lines {
  display: flex;
  flex-direction: column;
  gap: 3px;
  width: 100%;
  margin: 0;
}

.nfce-slip__lines span {
  display: block;
  height: 2.5px;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 1px;
}

.nfce-slip__lines span:nth-child(1) { width: 94%; margin: 0 auto; }
.nfce-slip__lines span:nth-child(2) { width: 82%; margin: 0 auto; }
.nfce-slip__lines span:nth-child(3) { width: 88%; margin: 0 auto; }
.nfce-slip__lines span:nth-child(4) { width: 76%; margin: 0 auto; }
.nfce-slip__lines span:nth-child(5) { width: 90%; margin: 0 auto; }
.nfce-slip__lines span:nth-child(6) { width: 68%; margin: 0 auto; }

.nfce-slip__total {
  font-size: 0.5625rem;
  font-weight: 800;
  color: #1a1a1a;
  margin: 0;
}

.slide-scan__status {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.5625rem;
  font-weight: 600;
  color: #fff;
}

.slide-scan__spinner {
  width: 0.5rem;
  height: 0.5rem;
  border: 1.5px solid rgba(255, 255, 255, 0.25);
  border-top-color: #4dd9b8;
  border-radius: 50%;
  animation: scanSpin 0.8s linear infinite;
}

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

/* ── Import / capture overlay (matches InvoiceCaptureScreen) ── */
.slide-import {
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-evenly;
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-dark) 100%);
  padding: 2rem 1.25rem;
  gap: 1rem;
}

.slide-import__title {
  font-size: 0.875rem;
  font-weight: 700;
  color: #fff;
  text-align: center;
  line-height: 1.3;
}

.slide-import__progress {
  width: 100%;
  max-width: 9rem;
  height: 6px;
  background: rgba(255, 255, 255, 0.25);
  border-radius: 5px;
  overflow: hidden;
}

.slide-import__progress-fill {
  height: 100%;
  width: 65%;
  background: #fff;
  border-radius: 5px;
  animation: importProgress 1.5s ease-in-out infinite;
}

@keyframes importProgress {
  0%, 100% { width: 35%; }
  50% { width: 88%; }
}

.slide-import__hint {
  font-size: 0.625rem;
  color: rgba(255, 255, 255, 0.9);
  text-align: center;
}

/* ── Invoice detail (matches InvoiceDetailScreen) ── */
.slide-invoice {
  height: 100%;
  display: flex;
  flex-direction: column;
  background: var(--bg-screen);
  overflow: hidden;
}

.slide-invoice__top {
  flex-shrink: 0;
  background: #fff;
  border-bottom: 1px solid #f3f4f6;
  padding-bottom: 0.35rem;
}

.slide-invoice__nav {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.5rem 0.35rem;
}

.slide-invoice__back {
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 50%;
  background: #f3f4f6;
  color: #374151;
  font-size: 0.875rem;
  line-height: 1.25rem;
  text-align: center;
  flex-shrink: 0;
}

.slide-invoice__nav-text {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.slide-invoice__kicker {
  font-size: 0.4375rem;
  font-weight: 700;
  color: var(--text-subtle);
  letter-spacing: 0.02em;
}

.slide-invoice__store {
  font-size: 0.625rem;
  font-weight: 700;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.slide-invoice__badge {
  width: 1.375rem;
  height: 1.375rem;
  border-radius: 0.375rem;
  background: var(--brand);
  color: #fff;
  font-size: 0.625rem;
  font-weight: 700;
  line-height: 1.375rem;
  text-align: center;
  flex-shrink: 0;
}

.slide-invoice__meta {
  font-size: 0.4375rem;
  color: #4b5563;
  line-height: 1.3;
  padding: 0 0.5rem;
  margin-bottom: 0.15rem;
}

.slide-invoice__stats {
  display: flex;
  gap: 0.25rem;
  padding: 0.25rem 0.5rem 0.35rem;
}

.slide-invoice__stat {
  flex: 1;
  font-size: 0.5rem;
  font-weight: 700;
  color: var(--text);
  background: var(--bg-screen);
  border-radius: 0.375rem;
  padding: 0.3rem 0.25rem;
  text-align: center;
  white-space: nowrap;
}

.slide-invoice__stat--down {
  background: #dcfce7;
  color: #16a34a;
}

.slide-invoice__sort {
  display: flex;
  gap: 0.2rem;
  padding: 0 0.5rem;
  flex-wrap: wrap;
}

.slide-invoice__chip {
  font-size: 0.4375rem;
  font-weight: 600;
  color: #64748b;
  background: #f1f5f9;
  border-radius: 0.375rem;
  padding: 0.2rem 0.35rem;
}

.slide-invoice__chip--on {
  background: var(--brand);
  color: #fff;
}

.slide-invoice__list {
  flex: 1;
  min-height: 0;
  overflow: hidden;
  background: #fff;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.slide-invoice__row {
  display: flex;
  align-items: flex-start;
  gap: 0.3rem;
  padding: 0.3rem 0.5rem;
  border-bottom: 1px solid #f8fafc;
}

.slide-invoice__row--fade {
  opacity: 0.45;
  mask-image: linear-gradient(180deg, #000 30%, transparent 100%);
}

.slide-invoice__dot {
  width: 0.375rem;
  height: 0.375rem;
  border-radius: 50%;
  margin-top: 0.2rem;
  flex-shrink: 0;
}

.slide-invoice__dot--grain { background: #f59e0b; }
.slide-invoice__dot--bean { background: #84cc16; }
.slide-invoice__dot--dairy { background: #38bdf8; }
.slide-invoice__dot--other { background: #94a3b8; }

.slide-invoice__prod {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.slide-invoice__name {
  font-size: 0.5rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.2;
}

.slide-invoice__unit {
  font-size: 0.4375rem;
  color: #4b5563;
  margin-top: 1px;
}

.slide-invoice__diff {
  font-size: 0.4375rem;
  font-weight: 700;
  border-radius: 999px;
  padding: 0.1rem 0.25rem;
  flex-shrink: 0;
  margin-top: 0.1rem;
}

.slide-invoice__diff--up {
  background: #fee2e2;
  color: #dc2626;
}

.slide-invoice__diff--down {
  background: #dcfce7;
  color: #16a34a;
}

.slide-invoice__price {
  font-size: 0.5rem;
  font-weight: 700;
  color: var(--text);
  flex-shrink: 0;
  min-width: 2rem;
  text-align: right;
}

.scan-demo__captions {
  display: none;
}

.scan-caption {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  opacity: 0.35;
}

.scan-caption p {
  font-size: 0.9375rem;
  color: var(--text-muted);
  font-weight: 600;
}

.scan-caption__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--border);
  flex-shrink: 0;
}

.scan-dots {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1.5rem;
}

.scan-dots__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--border);
}

/* ── Stacked home cards (no phone frame) ── */
.cards-stack {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
  max-width: 22.5rem;
  margin: 0 auto;
  width: 100%;
}

.cards-stack .app-card {
  width: 100%;
  padding: 1rem 1.125rem 0.875rem;
}

.cards-stack .app-card__heading {
  font-size: 0.8125rem;
  margin-bottom: 0.625rem;
}

.cards-stack .app-card__subtle {
  font-size: 0.75rem;
}

.cards-stack .app-card__title-row {
  margin-bottom: 0.625rem;
}

.cards-stack .app-stat {
  padding: 0.5rem 0.375rem;
}

.cards-stack .app-stat__tag {
  font-size: 0.625rem;
  margin-bottom: 0.25rem;
}

.cards-stack .app-stat__num {
  font-size: 1.375rem;
}

.cards-stack .app-stat__unit {
  font-size: 0.625rem;
}

.cards-stack .app-card-gastos {
  gap: 0.75rem;
}

.cards-stack .app-card-lista__grid {
  gap: 0.5rem;
}

.cards-stack .app-card-gastos__amount {
  font-size: 1.75rem;
}

.cards-stack .app-card-gastos__meta,
.cards-stack .app-card-gastos__vs,
.cards-stack .app-card-gastos__prev {
  font-size: 0.75rem;
}

.cards-stack .app-card-gastos__bar {
  height: 10px;
  margin-bottom: 0.375rem;
}

.cards-stack .app-card-inflacao {
  gap: 0.75rem;
  align-items: center;
}

.cards-stack .app-card-inflacao__bar {
  width: 12px;
  height: 76px;
  flex-shrink: 0;
}

.cards-stack .app-card-inflacao__bar span {
  height: 55%;
}

.cards-stack .app-card-inflacao__label {
  font-size: 0.75rem;
}

.cards-stack .app-card-inflacao__pct {
  font-size: 1.5rem;
  line-height: 1.15;
}

.cards-stack .app-card-inflacao__side {
  gap: 0.5rem;
  font-size: 0.6875rem;
}

.cards-stack .app-card-inflacao__side strong {
  font-size: 0.875rem;
}

.app-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 12px 14px 10px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.app-card__heading {
  font-size: 0.6875rem;
  font-weight: 800;
  color: var(--text);
  letter-spacing: 0.02em;
  margin-bottom: 8px;
}

.app-card__title-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 8px;
}

.app-card__title-row .app-card__heading {
  margin-bottom: 0;
}

.app-card__subtle {
  font-size: 0.5625rem;
  color: var(--text-subtle);
  font-weight: 600;
}

/* Gastos card */
.app-card-gastos {
  display: flex;
  gap: 10px;
}

.app-card-gastos__amount {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text);
  line-height: 1.1;
}

.app-card-gastos__meta {
  font-size: 0.5rem;
  color: var(--text-subtle);
  margin-top: 2px;
}

.app-card-gastos__right {
  flex: 1;
}

.app-card-gastos__vs {
  display: flex;
  justify-content: space-between;
  font-size: 0.5rem;
  color: var(--text-subtle);
  margin-bottom: 4px;
}

.app-card-gastos__vs strong {
  color: #16A34A;
  font-weight: 700;
}

.app-card-gastos__bar {
  height: 8px;
  background: var(--border);
  border-radius: 7px;
  overflow: hidden;
  margin-bottom: 4px;
}

.app-card-gastos__bar span {
  display: block;
  height: 100%;
  width: 68%;
  background: linear-gradient(90deg, #16A34A, #4ADE80);
  border-radius: 7px;
}

.app-card-gastos__prev {
  font-size: 0.5rem;
  color: var(--text-subtle);
}

/* Próxima Lista card */
.app-card-lista__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}

.app-stat {
  border-radius: var(--radius-sm);
  padding: 6px 4px;
  text-align: center;
}

.app-stat--urgent { background: #FEF2F2; }
.app-stat--soon { background: #FFFBEB; }
.app-stat--total { background: var(--bg-screen); }

.app-stat__tag {
  display: block;
  font-size: 0.4375rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  margin-bottom: 2px;
}

.app-stat--urgent .app-stat__tag { color: #EF4444; }
.app-stat--soon .app-stat__tag { color: #F59E0B; }
.app-stat--total .app-stat__tag { color: var(--text-subtle); }

.app-stat__num {
  display: block;
  font-size: 1rem;
  font-weight: 800;
  line-height: 1;
}

.app-stat--urgent .app-stat__num { color: #EF4444; }
.app-stat--soon .app-stat__num { color: #F59E0B; }
.app-stat--total .app-stat__num { color: var(--text); }

.app-stat__unit {
  font-size: 0.4375rem;
  color: var(--text-subtle);
  font-weight: 600;
}

/* Inflação card */
.app-card-inflacao {
  display: flex;
  gap: 8px;
  align-items: stretch;
}

.app-card-inflacao__bar {
  width: 10px;
  background: var(--border);
  border-radius: 4px;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
}

.app-card-inflacao__bar span {
  display: block;
  width: 100%;
  height: 55%;
  background: var(--brand);
  border-radius: 4px;
}

.app-card-inflacao__main {
  flex: 1;
}

.app-card-inflacao__label {
  display: block;
  font-size: 0.5rem;
  color: var(--text-subtle);
  font-weight: 600;
}

.app-card-inflacao__pct {
  display: block;
  font-size: 1.125rem;
  font-weight: 800;
  color: var(--text);
}

.app-card-inflacao__side {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.4375rem;
  color: var(--text-subtle);
  font-weight: 600;
}

.app-card-inflacao__side strong {
  display: block;
  color: var(--text);
  font-size: 0.5625rem;
}

/* Lista items detail */
.app-card-items {
  list-style: none;
}

.app-card-items__row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.625rem;
  font-weight: 600;
  padding: 6px 8px;
  border-radius: var(--radius-sm);
  margin-bottom: 4px;
  color: var(--text);
}

.app-card-items__row--urgent { background: #FEF2F2; }
.app-card-items__row--soon { background: #FFFBEB; }

.app-card-items__badge {
  font-size: 0.4375rem;
  font-weight: 700;
  color: #EF4444;
  text-transform: uppercase;
}

.app-card-items__badge--soon {
  color: #F59E0B;
}

.app-card-items--compact {
  margin-top: 6px;
}

.app-card-items--compact .app-card-items__row {
  padding: 4px 6px;
  margin-bottom: 3px;
}

/* ── App screen mockups (stories 3–5) ── */
.mock-screen {
  width: 100%;
  height: 100%;
  background: var(--bg-screen);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.mock-nav {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.5rem 0.35rem;
  background: #fff;
  border-bottom: 1px solid #f3f4f6;
  flex-shrink: 0;
}

.mock-nav__back {
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 50%;
  background: #f3f4f6;
  color: #374151;
  font-size: 0.875rem;
  line-height: 1.25rem;
  text-align: center;
  flex-shrink: 0;
}

.mock-nav__text {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.mock-nav__kicker {
  font-size: 0.4375rem;
  font-weight: 700;
  color: var(--text-subtle);
  letter-spacing: 0.02em;
}

.mock-nav__title {
  font-size: 0.625rem;
  font-weight: 700;
  color: var(--text);
}

.mock-search {
  margin: 0.4rem 0.5rem 0.35rem;
  padding: 0.35rem 0.5rem;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  font-size: 0.5rem;
  color: var(--text-subtle);
  flex-shrink: 0;
}

.mock-chips {
  display: flex;
  gap: 0.25rem;
  padding: 0 0.5rem 0.35rem;
  flex-wrap: wrap;
  flex-shrink: 0;
}

.mock-chip {
  font-size: 0.4375rem;
  font-weight: 600;
  color: #64748b;
  background: #f1f5f9;
  border-radius: 999px;
  padding: 0.2rem 0.4rem;
}

.mock-chip--on {
  background: var(--brand);
  color: #fff;
}

.mock-rows {
  flex: 1;
  overflow: hidden;
  padding: 0 0.35rem;
}

.mock-row {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.4rem;
  margin-bottom: 0.25rem;
  background: #fff;
  border-radius: 0.5rem;
  border: 1px solid #f1f5f9;
}

.mock-row--added {
  background: #f0fdf4;
  border-color: #dcfce7;
}

.mock-row--fade {
  opacity: 0.45;
  mask-image: linear-gradient(180deg, #000 40%, transparent 100%);
}

.mock-row__dot {
  width: 0.375rem;
  height: 0.375rem;
  border-radius: 50%;
  flex-shrink: 0;
}

.mock-row__dot--grain { background: #f59e0b; }
.mock-row__dot--bean { background: #84cc16; }
.mock-row__dot--dairy { background: #38bdf8; }
.mock-row__dot--other { background: #94a3b8; }

.mock-row__body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.mock-row__name {
  font-size: 0.5rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.2;
}

.mock-row__meta {
  font-size: 0.4375rem;
  color: var(--text-muted);
  margin-top: 1px;
}

.mock-row__badge {
  font-size: 0.375rem;
  font-weight: 700;
  border-radius: 999px;
  padding: 0.1rem 0.3rem;
  flex-shrink: 0;
}

.mock-row__badge--urgent {
  background: #fef2f2;
  color: #ef4444;
}

.mock-row__badge--soon {
  background: #fffbeb;
  color: #f59e0b;
}

.mock-row__add,
.mock-row__check {
  width: 1.125rem;
  height: 1.125rem;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1.125rem;
  text-align: center;
  flex-shrink: 0;
}

.mock-row__check {
  background: #dcfce7;
  color: #16a34a;
  font-size: 0.625rem;
}

/* Story 4: suggestions */
.mock-screen--suggest {
  background: #fff;
}

.mock-suggest__head {
  padding: 0.5rem 0.5rem 0.35rem;
  border-bottom: 1px solid #f3f4f6;
  flex-shrink: 0;
}

.mock-suggest__title {
  font-size: 0.5625rem;
  font-weight: 800;
  color: var(--text);
  letter-spacing: 0.02em;
}

.mock-suggest__sub {
  font-size: 0.4375rem;
  color: var(--text-subtle);
  margin-top: 1px;
}

.mock-suggest__stats {
  display: flex;
  gap: 0.3rem;
  margin-top: 0.35rem;
}

.mock-suggest__stat {
  font-size: 0.4375rem;
  font-weight: 700;
  border-radius: 0.375rem;
  padding: 0.2rem 0.35rem;
}

.mock-suggest__stat--urgent {
  background: #fef2f2;
  color: #ef4444;
}

.mock-suggest__stat--soon {
  background: #fffbeb;
  color: #f59e0b;
}

.mock-suggest__action {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.5rem;
  flex-shrink: 0;
}

.mock-suggest__list-name {
  flex: 1;
  font-size: 0.5rem;
  font-weight: 600;
  color: var(--text);
  background: #f9fafb;
  border: 1px solid var(--border);
  border-radius: 0.375rem;
  padding: 0.25rem 0.4rem;
}

.mock-suggest__btn {
  font-size: 0.4375rem;
  font-weight: 700;
  color: #fff;
  background: var(--brand);
  border-radius: 0.375rem;
  padding: 0.3rem 0.45rem;
  white-space: nowrap;
}

.mock-screen--suggest .mock-rows {
  background: var(--bg-screen);
  padding-top: 0.25rem;
}

.mock-screen--suggest .mock-row {
  background: #f8fafc;
}

/* Story 5: AI buddy */
.mock-screen--ai {
  background: #fff;
}

.mock-ai__header {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.45rem 0.5rem;
  border-bottom: 1px solid #f3f4f6;
  flex-shrink: 0;
}

.mock-ai__bot {
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand), var(--brand-dark));
  color: #fff;
  font-size: 0.625rem;
  line-height: 1.25rem;
  text-align: center;
}

.mock-ai__title {
  flex: 1;
  font-size: 0.5625rem;
  font-weight: 700;
  color: var(--text);
}

.mock-ai__close {
  font-size: 0.875rem;
  color: var(--text-subtle);
  line-height: 1;
}

.mock-ai__chat {
  flex: 1;
  overflow: hidden;
  padding: 0.4rem 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  background: #f9fafb;
}

.mock-ai__msg {
  max-width: 92%;
  border-radius: 0.625rem;
  padding: 0.35rem 0.45rem;
}

.mock-ai__msg p {
  font-size: 0.4375rem;
  line-height: 1.35;
  margin: 0;
}

.mock-ai__msg--bot {
  align-self: flex-start;
  background: #fff;
  border: 1px solid #e5e7eb;
  color: #374151;
}

.mock-ai__msg--user {
  align-self: flex-end;
  background: var(--brand);
  color: #fff;
}

.mock-ai__list-card {
  display: block;
  margin-top: 0.3rem;
  font-size: 0.4375rem;
  font-weight: 700;
  color: var(--brand);
  background: #edf7fa;
  border-radius: 0.375rem;
  padding: 0.25rem 0.35rem;
}

.mock-ai__chips {
  display: flex;
  gap: 0.25rem;
  padding: 0.3rem 0.5rem;
  overflow: hidden;
  flex-shrink: 0;
}

.mock-ai__chips span {
  font-size: 0.4375rem;
  font-weight: 600;
  color: #64748b;
  background: #f1f5f9;
  border-radius: 999px;
  padding: 0.2rem 0.4rem;
  white-space: nowrap;
}

.mock-ai__input {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  margin: 0 0.5rem 0.45rem;
  padding: 0.3rem 0.35rem 0.3rem 0.5rem;
  background: #f3f4f6;
  border-radius: 999px;
  flex-shrink: 0;
}

.mock-ai__input > span:first-child {
  flex: 1;
  font-size: 0.4375rem;
  color: var(--text-subtle);
}

.mock-ai__send {
  width: 1.125rem;
  height: 1.125rem;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  font-size: 0.625rem;
  line-height: 1.125rem;
  text-align: center;
}

/* ── Newsletter ── */
.newsletter {
  background: linear-gradient(160deg, var(--brand) 0%, var(--brand-dark) 100%);
  color: #fff;
  padding: 3.5rem 1.25rem;
  text-align: center;
}

.newsletter__inner {
  max-width: 480px;
  margin: 0 auto;
}

.newsletter .section-title {
  color: #fff;
  font-size: 1.375rem;
}

.newsletter__sub {
  font-size: 0.9375rem;
  opacity: 0.9;
  margin-bottom: 1.5rem;
  margin-top: -1rem;
}

.newsletter__form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 1rem;
}

.newsletter__platform {
  border: none;
  padding: 0;
  margin: 0;
}

.newsletter__platform-label {
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 0.625rem;
  opacity: 0.95;
}

.newsletter__platform-options {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
}

.newsletter__platform-pill {
  cursor: pointer;
}

.newsletter__platform-pill input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.newsletter__platform-pill span {
  display: inline-block;
  padding: 0.5rem 0.875rem;
  border-radius: 999px;
  font-size: 0.875rem;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.15);
  border: 2px solid rgba(255, 255, 255, 0.35);
  transition: background 0.15s, border-color 0.15s;
}

.newsletter__platform-pill input:checked + span {
  background: #fff;
  color: var(--brand);
  border-color: #fff;
}

.newsletter__platform-pill input:focus-visible + span {
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.4);
}

.newsletter__form-row {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.newsletter__form input[type="email"] {
  padding: 0.875rem 1rem;
  border: none;
  border-radius: var(--radius-md);
  font-size: 1rem;
  color: var(--text);
  outline: none;
}

.newsletter__form input[type="email"]:focus {
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.4);
}

.newsletter__form-row button {
  padding: 0.875rem 1rem;
  background: #fff;
  color: var(--brand);
  border: none;
  border-radius: var(--radius-md);
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.15s;
}

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

.newsletter__honeypot {
  display: none !important;
}

.newsletter__status {
  margin: 0;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-md);
  font-size: 0.9375rem;
  font-weight: 600;
}

.newsletter__status--success {
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.45);
}

.newsletter__status--error {
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.35);
}

.newsletter__form--success .newsletter__platform,
.newsletter__form--success .newsletter__form-row {
  display: none;
}

.newsletter__form-row button:disabled {
  opacity: 0.7;
  cursor: wait;
  transform: none;
}

.newsletter__privacy {
  font-size: 0.75rem;
  opacity: 0.75;
}

/* ── Footer ── */
.footer {
  background: var(--text);
  color: rgba(255, 255, 255, 0.8);
  padding: 2rem 1.25rem;
  text-align: center;
}

.footer__inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.footer a {
  color: #fff;
  font-weight: 600;
  font-size: 0.9375rem;
}

.footer a:hover {
  text-decoration: underline;
}

.footer__copy {
  margin-top: 0.5rem;
  font-size: 0.8125rem;
  opacity: 0.6;
}

/* ── Responsive ── */
@media (min-width: 600px) {
  .hero__title {
    font-size: 2rem;
  }

  .story-section__title {
    font-size: 1.5rem;
  }

  .newsletter__form-row {
    flex-direction: row;
  }

  .newsletter__form input[type="email"] {
    flex: 1;
  }

  .newsletter__form-row button {
    flex-shrink: 0;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
}

@media (min-width: 900px) {
  .hero {
    padding: 4.5rem 2rem 5rem;
  }

  .hero__inner {
    max-width: 48rem;
  }

  .hero__title {
    font-size: 2.25rem;
  }

  .hero__keywords {
    max-width: 36rem;
  }

  .hero__highlight {
    max-width: 36rem;
    font-size: 1.125rem;
  }

  .story-section {
    padding: 4.5rem 2rem;
  }

  .story-section__title {
    max-width: 52rem;
    font-size: 1.75rem;
  }

  .section-title {
    font-size: 1.75rem;
  }

  .scan-demo__layout {
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 4rem;
    max-width: 56rem;
    margin: 0 auto;
  }

  .scan-demo__captions {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    flex: 1;
    max-width: 18rem;
  }

  .cards-stack {
    max-width: none;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5rem;
    align-items: start;
  }

  .cards-stack .app-card-gastos__amount {
    font-size: 1.875rem;
  }

  .cards-stack .app-stat__num {
    font-size: 1.5rem;
  }

  .cards-stack .app-card-inflacao__pct {
    font-size: 1.625rem;
  }

  .story-section__demo {
    margin-top: 2.5rem;
  }

  .phone__bezel {
    width: 280px;
  }

  .phone__screen {
    height: 520px;
    font-size: 1.12rem;
  }

  .newsletter__inner {
    max-width: 36rem;
  }
}

@media (min-width: 1200px) {
  .hero__inner {
    max-width: 54rem;
  }

  .story-section__title {
    max-width: 58rem;
    font-size: 1.875rem;
  }

  .scan-demo__layout {
    max-width: 64rem;
    gap: 5rem;
  }

  .phone__bezel {
    width: 300px;
  }

  .phone__screen {
    height: 560px;
    font-size: 1.18rem;
  }
}
