*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --cream: #FEF1DF; --cream2: #faf3e0;
  --gold: #f5c842;  --gold-dark: #d4a017; --gold-soft: #fdf3d8;
  --brown: #3b2f18; --brown-light: #6b5533;
  --gray: #9e9e9e;  --gray-light: #f0f0f0;
  --white: #ffffff;
  --green-soft: #e8f5e9; --green: #4caf50;
  --red-soft: #fde8e8; --red: #e05757;
  --shadow: 0 2px 16px rgba(0,0,0,.08);
  --shadow-md: 0 10px 40px rgba(59,47,24,.14);
  --radius: 16px; --radius-sm: 10px;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Nunito', sans-serif;
  background: var(--cream);
  color: var(--brown);
  overflow-x: hidden;
}

h1, h2, h3, .display {
  font-family: 'Fraunces', serif;
  font-weight: 600;
  letter-spacing: -0.01em;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
section { position: relative; }
.wrap { max-width: 1140px; margin: 0 auto; padding: 0 24px; }

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
}

button:focus-visible, a:focus-visible { outline: 2px solid var(--brown); outline-offset: 3px; border-radius: 4px; }

/* ─── NAV ────────────────────────────────────────────── */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: #FBF0D9;
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(59,47,24,.08);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 24px;
}
.nav-inner.wrap {
  max-width: 1140px;
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px;
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 17px; }
.brand-mark {
  width: 205px; height: 42px; border-radius: 9px;
  background: var(--gold);
  display: flex; align-items: center; justify-content: center;
  color: var(--brown); font-size: 16px;
  object-fit: cover; object-position: center;
}
.nav-links { display: flex; gap: 32px; font-size: 14px; font-weight: 700; }
.nav-links a { opacity: .75; transition: opacity .2s; }
.nav-links a:hover { opacity: 1; }
.nav-cta {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--brown); color: var(--cream);
  padding: 11px 20px; border-radius: 12px;
  font-size: 14px; font-weight: 700;
  transition: transform .15s, background .2s;
}
.nav-cta:hover { background: #2a2110; transform: translateY(-1px); }
.nav-mobile-hide { display: flex; }
@media (max-width: 760px) { .nav-links { display: none; } }

/* ─── HERO ───────────────────────────────────────────── */
.hero { padding: 64px 0 40px; }
.hero-grid {
  display: grid; grid-template-columns: 1.05fr .95fr;
  gap: 56px; align-items: center;
}
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; gap: 48px; } }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--gold-soft); color: var(--gold-dark);
  padding: 7px 14px; border-radius: 100px;
  font-size: 12.5px; font-weight: 800; letter-spacing: .02em;
  margin-bottom: 22px;
}
.eyebrow i { font-size: 13px; }

.hero h1 {
  font-size: clamp(36px, 5vw, 54px);
  line-height: 1.07;
  margin-bottom: 20px;
}
.hero h1 em { font-style: normal; color: var(--gold-dark); position: relative; }
.hero h1 .underline { position: relative; display: inline-block; }
.hero h1 .underline svg { position: absolute; left: -2%; bottom: -6px; width: 104%; height: 14px; }

.hero p.lead {
  font-size: 17px; line-height: 1.65; color: var(--brown-light);
  max-width: 460px; margin-bottom: 32px;
}

.hero-actions { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 28px; }
.btn-primary {
  display: inline-flex; align-items: center; gap: 9px;
  background: var(--gold); color: var(--brown);
  padding: 16px 26px; border: none; border-radius: 14px;
  font-family: inherit; font-size: 15.5px; font-weight: 800;
  cursor: pointer; box-shadow: var(--shadow-md);
  transition: transform .15s, background .2s;
}
.btn-primary:hover { background: #e8b800; transform: translateY(-2px); }
.btn-primary:active { transform: translateY(0); }
.btn-secondary {
  display: inline-flex; align-items: center; gap: 9px;
  background: transparent; color: var(--brown);
  padding: 16px 22px; border: 1.5px solid rgba(59,47,24,.18); border-radius: 14px;
  font-family: inherit; font-size: 15.5px; font-weight: 700;
  cursor: pointer; transition: border-color .2s, background .2s;
}
.btn-secondary:hover { border-color: var(--brown); background: var(--cream2); }

.hero-trust { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--gray); }
.trust-avatars { display: flex; }
.trust-avatars span {
  width: 26px; height: 26px; border-radius: 50%;
  border: 2px solid var(--cream);
  background: var(--gold-soft);
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 800; color: var(--gold-dark);
  margin-left: -8px;
}
.trust-avatars span:first-child { margin-left: 0; }

/* ─── HERO VISUAL: PHONE MOCK ───────────────────────── */
.hero-visual { position: relative; display: flex; justify-content: center; }
.phone {
  width: 280px; background: var(--white);
  border-radius: 34px; padding: 14px;
  box-shadow: var(--shadow-md), 0 2px 0 rgba(59,47,24,.05) inset;
  border: 1px solid rgba(59,47,24,.06);
  position: relative; z-index: 2;
  animation: floaty 6s ease-in-out infinite;
}
@keyframes floaty { 0%,100% { transform: translateY(0) rotate(-1.2deg); } 50% { transform: translateY(-10px) rotate(0deg); } }

.phone-screen { background: var(--cream2); border-radius: 22px; padding: 16px 14px 18px; }
.phone-topbar { display: flex; align-items: center; gap: 8px; margin-bottom: 14px; }
.phone-topbar .dot { width: 26px; height: 26px; border-radius: 8px; background: var(--gold); display: flex; align-items: center; justify-content: center; font-size: 13px; }
.phone-topbar strong { font-size: 13px; font-weight: 800; }
.phone-topbar small { display: block; font-size: 9px; color: var(--gray); font-weight: 600; }

.phone-card {
  background: var(--white); border-radius: 14px; padding: 11px 12px;
  display: flex; align-items: center; gap: 10px;
  box-shadow: 0 2px 10px rgba(0,0,0,.05);
  margin-bottom: 9px;
}
.phone-card .thumb { width: 36px; height: 36px; border-radius: 9px; background: var(--gold-soft); display: flex; align-items: center; justify-content: center; font-size: 15px; flex-shrink: 0; }
.phone-card .meta { flex: 1; min-width: 0; }
.phone-card .meta strong { display: block; font-size: 12px; font-weight: 800; }
.phone-card .meta span { font-size: 10.5px; color: var(--gray); }
.phone-card .price { font-size: 12px; font-weight: 800; color: var(--gold-dark); white-space: nowrap; }
.phone-card.low .thumb { background: var(--red-soft); }
.phone-card.low .price { color: var(--red); }

.phone-fab {
  margin-top: 6px; background: var(--brown); color: var(--cream);
  border-radius: 12px; padding: 11px; text-align: center;
  font-size: 12px; font-weight: 800; display: flex; align-items: center; justify-content: center; gap: 7px;
}

.float-card {
  position: absolute; background: var(--white); border-radius: 14px;
  box-shadow: var(--shadow-md); padding: 12px 14px; z-index: 3;
  font-size: 12px; font-weight: 700; display: flex; align-items: center; gap: 9px;
}
.float-card.sale { top: 6%; left: -8%; animation: floaty 7s ease-in-out infinite; animation-delay: -2s; }
.float-card.sale i { color: var(--green); font-size: 16px; }
.float-card.alert { bottom: 10%; right: -10%; animation: floaty 6.5s ease-in-out infinite; animation-delay: -4s; }
.float-card.alert i { color: var(--gold-dark); font-size: 16px; }
@media (max-width: 540px) {
  .float-card.sale { left: 0; }
  .float-card.alert { right: 0; }
}

/* ─── LOGO / TICKER STRIP ────────────────────────────── */
.strip { padding: 28px 0; border-top: 1px solid rgba(59,47,24,.08); border-bottom: 1px solid rgba(59,47,24,.08); }
.strip-inner { display: flex; align-items: center; justify-content: center; gap: 40px; flex-wrap: wrap; font-size: 13px; font-weight: 700; color: var(--brown-light); text-align: center; }
.strip-inner span { white-space: nowrap; opacity: .8; }

/* ─── SECTION HEADERS ────────────────────────────────── */
.section-head { max-width: 600px; margin: 0 auto 52px; text-align: center; }
.section-head .eyebrow { background: var(--cream2); }
.section-head h2 { font-size: clamp(28px, 3.4vw, 38px); line-height: 1.15; margin-bottom: 14px; }
.section-head p { color: var(--brown-light); font-size: 16px; line-height: 1.6; }

/* ─── FEATURES (mapped to the app's 4 tabs) ─────────── */
.features { padding: 96px 0; }
.feature-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
@media (max-width: 940px) { .feature-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .feature-grid { grid-template-columns: 1fr; } }

.feature-card {
  background: var(--white); border-radius: var(--radius);
  padding: 28px 24px; box-shadow: var(--shadow);
  transition: transform .2s, box-shadow .2s;
}
.feature-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.feature-icon {
  width: 46px; height: 46px; border-radius: 13px;
  background: var(--gold-soft);
  display: flex; align-items: center; justify-content: center;
  font-size: 21px; color: var(--gold-dark);
  margin-bottom: 18px;
}
.feature-card h3 { font-size: 17px; font-weight: 800; font-family: 'Nunito', sans-serif; margin-bottom: 8px; }
.feature-card p { font-size: 14px; color: var(--brown-light); line-height: 1.55; }

/* ─── SPOTLIGHT: FIADO ───────────────────────────────── */
.spotlight { padding: 40px 0 100px; }
.spotlight-card {
  background: var(--brown); color: var(--cream);
  border-radius: 28px; padding: 56px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center;
  overflow: hidden; position: relative;
}
@media (max-width: 860px) { .spotlight-card { grid-template-columns: 1fr; padding: 36px 26px; } }
.spotlight-card::before {
  content: ''; position: absolute; width: 360px; height: 360px;
  background: radial-gradient(circle, rgba(245,200,66,.16), transparent 70%);
  top: -120px; right: -100px;
}
.spotlight-text .eyebrow { background: rgba(245,200,66,.16); color: var(--gold); }
.spotlight-text h2 { font-size: clamp(26px,3vw,32px); margin-bottom: 16px; color: var(--cream); }
.spotlight-text p { color: rgba(253,248,238,.7); font-size: 15px; line-height: 1.65; margin-bottom: 26px; }
.spotlight-list { list-style: none; display: flex; flex-direction: column; gap: 13px; }
.spotlight-list li { display: flex; gap: 11px; font-size: 14.5px; align-items: flex-start; }
.spotlight-list i { color: var(--gold); font-size: 17px; margin-top: 1px; }

.fiado-mock { background: rgba(253,248,238,.06); border-radius: 18px; padding: 22px; border: 1px solid rgba(253,248,238,.1); }
.fiado-row { display: flex; align-items: center; justify-content: space-between; padding: 13px 0; border-bottom: 1px solid rgba(253,248,238,.08); }
.fiado-row:last-child { border-bottom: none; }
.fiado-who { display: flex; align-items: center; gap: 11px; }
.fiado-who .av { width: 34px; height: 34px; border-radius: 50%; background: var(--gold); color: var(--brown); display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 13px; }
.fiado-who strong { display: block; font-size: 13.5px; }
.fiado-who span { font-size: 11.5px; color: rgba(253,248,238,.55); }
.fiado-tag { font-size: 11px; font-weight: 800; padding: 5px 10px; border-radius: 100px; }
.fiado-tag.due { background: rgba(245,87,87,.18); color: #ff9b9b; }
.fiado-tag.ok { background: rgba(76,175,80,.18); color: #8fdb93; }

/* ─── HOW IT WORKS ────────────────────────────────── */
.how { padding: 30px 0 100px; }
.how-flow { display: flex; align-items: stretch; gap: 0; }
@media (max-width: 860px) { .how-flow { flex-direction: column; gap: 18px; } }
.how-step { flex: 1; padding: 0 22px; position: relative; }
.how-step:first-child { padding-left: 0; }
.how-step:last-child { padding-right: 0; }
.how-step-num { font-family: 'Fraunces', serif; font-size: 13px; font-weight: 600; color: var(--gold-dark); margin-bottom: 12px; letter-spacing: .04em; }
.how-step h3 { font-family: 'Nunito',sans-serif; font-size: 16.5px; font-weight: 800; margin-bottom: 8px; }
.how-step p { font-size: 13.5px; color: var(--brown-light); line-height: 1.55; }
.how-arrow { display: flex; align-items: center; color: var(--gold-dark); font-size: 20px; padding: 0 4px; }
@media (max-width: 860px) { .how-arrow { display: none; } }

/* ─── CTA BAND ────────────────────────────────────── */
.cta-band { padding: 0 0 110px; }
.cta-card {
  background: var(--gold); border-radius: 28px;
  padding: 64px 48px; text-align: center;
  position: relative; overflow: hidden;
}
.cta-card h2 { font-size: clamp(28px,3.6vw,40px); margin-bottom: 14px; color: var(--brown); }
.cta-card p { font-size: 16px; color: var(--brown-light); margin-bottom: 30px; }
.cta-card .btn-primary { background: var(--brown); color: var(--cream); }
.cta-card .btn-primary:hover { background: #2a2110; }
.cta-card .meta { margin-top: 16px; font-size: 12.5px; color: var(--brown-light); }

/* ─── FOOTER ─────────────────────────────────────── */
footer { border-top: 1px solid rgba(59,47,24,.08); padding: 40px 0; }
.foot-inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 18px; }
.foot-inner .brand { font-size: 15px; }
.foot-links { display: flex; gap: 26px; font-size: 13px; color: var(--brown-light); font-weight: 600; }
.foot-links a:hover { color: var(--brown); }
.foot-copy { font-size: 12px; color: var(--gray); }
