/* ============================================================
   Crédito.vc — Home (mobile-first, app-shaped, photo-rich)
   Narrow column on phones, a proper two-column layout on desktop.
   ============================================================ */

body.home {
  background:
    radial-gradient(120% 60% at 50% -8%, var(--brand-050), transparent 62%),
    radial-gradient(58% 40% at 100% 0%, var(--amber-050), transparent 60%),
    #fff;
  padding-bottom: 0;
}

/* App column: a phone-like measure on mobile, a real width on desktop. */
.app-shell {
  width: 100%;
  max-width: 620px;
  margin-inline: auto;
  padding-inline: 20px;
}

/* ---------- App bar ---------- */
.appbar {
  position: sticky;
  top: 0;
  z-index: 40;
  transition: background 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.appbar.is-stuck {
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: saturate(180%) blur(14px);
  box-shadow: 0 1px 0 rgba(0, 40, 35, 0.06);
}
.appbar__inner {
  max-width: 620px;
  margin-inline: auto;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}
.appbar__brand img { height: 26px; width: auto; display: block; }
.appbar__cta {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.9rem;
  color: #fff;
  background: var(--brand-700);
  padding: 9px 18px;
  border-radius: 999px;
  transition: transform 0.2s var(--ease), background 0.2s;
}
.appbar__cta:hover { transform: translateY(-1px); background: var(--brand-800); }

/* ---------- Hero ---------- */
/* Calm surface: the page already carries a soft brand radial at the top, so
   the hero itself is transparent. The intelligence cue (amber) shows up in the
   badge, the highlighted word and the phone backdrop, breaking the all-green. */
.hero {
  position: relative;
  padding: 22px 0 6px;
}
.hero__grid { display: grid; gap: 6px; text-align: center; }
.hero__copy { display: grid; justify-items: center; }
.hero__badge {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-head); font-weight: 600; font-size: 0.8rem;
  color: var(--ink-soft); background: #fff;
  border: 1px solid var(--line); border-radius: 999px;
  padding: 7px 14px 7px 8px; box-shadow: var(--shadow-sm);
}
.hero__badge-ic { width: 24px; height: 24px; flex: none; display: grid; place-items: center; border-radius: 50%; background: var(--amber-050); color: var(--amber-700); border: 1px solid var(--amber-100); }
.hero__badge-ic svg { width: 15px; height: 15px; }
/* Amber "highlighter" under the key phrase: warm complement to the green, subtle. */
.hero .hl { color: var(--brand-800); box-shadow: inset 0 -0.32em var(--amber-100); border-radius: 2px; }
.hero h1 { font-size: clamp(2.1rem, 9vw, 3rem); line-height: 1.06; margin: 16px 0 0; }
.hero__sub { color: var(--ink-soft); font-size: 1.06rem; max-width: 40ch; margin: 12px auto 0; }
.hero__cta { margin-top: 22px; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.hero__note { display: inline-flex; align-items: center; gap: 7px; color: var(--muted); font-size: 0.86rem; }
.hero__note svg { width: 16px; height: 16px; color: var(--brand-700); }

/* Social proof: stacked avatars + count */
.hero__trust { list-style: none; margin: 18px 0 0; padding: 0; display: inline-flex; align-items: center; gap: 10px; color: var(--ink-soft); font-size: 0.9rem; }
.hero__trust b { color: var(--ink); }
.avatars { display: inline-flex; }
.avatars img { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; border: 2px solid #fff; box-shadow: 0 1px 3px rgba(0,40,35,0.18); }
.avatars img + img { margin-left: -10px; }

/* Hero stage: phone centered over a soft two-tone (green + amber) halo */
.hero__stage { position: relative; display: flex; justify-content: center; align-items: center; margin: 26px 0 6px; }
.hero__stage-bg { position: absolute; z-index: 0; left: 50%; top: 50%; translate: -50% -50%; width: min(430px, 94%); aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle at 34% 26%, var(--brand-100), transparent 62%), radial-gradient(circle at 72% 76%, var(--amber-100), transparent 60%); }

/* ---------- Phone mockup ---------- */
.phone-wrap { position: relative; z-index: 2; display: flex; justify-content: center; }
.phone { width: min(290px, 76vw); }
.phone__frame {
  position: relative;
  aspect-ratio: 9 / 19.2;
  background: linear-gradient(160deg, #18241f 0%, #0a1310 100%);
  border-radius: 46px;
  padding: 12px;
  box-shadow:
    0 40px 70px -34px rgba(0, 40, 35, 0.6),
    0 0 0 2px rgba(255, 255, 255, 0.05) inset,
    0 2px 6px rgba(255, 255, 255, 0.08) inset;
  transition: transform 0.3s var(--ease);
}
.phone__island {
  position: absolute; top: 24px; left: 50%; translate: -50% 0;
  width: 74px; height: 21px; background: #050b09; border-radius: 999px; z-index: 5;
}
.phone__screen {
  position: relative; height: 100%; background: #fff; border-radius: 36px; overflow: hidden;
  display: flex; flex-direction: column; padding: 14px 15px 14px; color: var(--ink);
}
/* Faux iOS status bar: time left, signal/wifi/battery right, island in the gap */
.ps-status { display: flex; align-items: center; justify-content: space-between; height: 22px; padding: 0 4px; color: var(--ink); }
.ps-time { font-family: var(--font-head); font-weight: 700; font-size: 0.74rem; letter-spacing: -0.01em; }
.ps-icons { display: inline-flex; align-items: center; gap: 5px; }
.ps-icons svg { display: block; }
.app-top { display: flex; align-items: center; justify-content: space-between; margin-top: 4px; }
.app-top__brand { display: inline-flex; align-items: center; gap: 6px; font-family: var(--font-head); font-weight: 700; font-size: 0.82rem; color: var(--brand-800); }
.app-top__brand img { height: 18px; width: auto; }
.app-top__steps { font-family: var(--font-head); font-weight: 600; font-size: 0.72rem; color: var(--muted); }
.app-prog { height: 5px; border-radius: 999px; background: var(--brand-050); margin: 12px 0 14px; overflow: hidden; }
.app-prog i { display: block; height: 100%; border-radius: 999px; background: var(--grad-brand); }
.app-body { flex: 1; display: flex; flex-direction: column; gap: 11px; }
.app-eyebrow { margin: -2px 0 0; font-family: var(--font-head); font-weight: 700; font-size: 0.62rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--brand-600); }
.app-body h3 { font-size: 1.06rem; margin: 0; line-height: 1.2; }
.app-money {
  display: grid; gap: 3px; margin-top: 2px;
  background: linear-gradient(160deg, var(--brand-050), #fff);
  border: 1px solid var(--brand-100); border-radius: 16px; padding: 13px 15px;
}
.app-money__label { font-size: 0.68rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); }
.app-money strong { font-family: var(--font-head); font-weight: 800; font-size: 1.9rem; letter-spacing: -0.03em; color: var(--brand-800); line-height: 1; }
/* Range slider that mirrors the real amount control: filled track + knob */
.app-slider { position: relative; height: 8px; border-radius: 999px; background: var(--brand-050); box-shadow: inset 0 0 0 1px var(--brand-100); }
.app-slider__fill { position: absolute; top: 0; bottom: 0; left: 0; width: var(--p, 40%); border-radius: 999px; background: var(--grad-brand); }
.app-slider__knob { position: absolute; top: 50%; left: var(--p, 40%); translate: -50% -50%; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 2px 6px rgba(0, 140, 110, 0.45), 0 0 0 1.5px var(--brand-500); }
.app-scale { display: flex; justify-content: space-between; margin-top: -4px; font-size: 0.62rem; color: var(--muted); }
.app-choices { display: grid; gap: 8px; margin-top: 2px; }
.app-choice {
  text-align: left; font-family: var(--font-head); font-weight: 600; font-size: 0.86rem; color: var(--ink-soft);
  padding: 12px 13px; border: 1.6px solid var(--line); border-radius: 12px; background: #fff; cursor: default;
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
}
.app-choice.is-on { border-color: var(--brand-500); background: var(--brand-050); color: var(--brand-800); }
.app-choice svg { width: 16px; height: 16px; flex: none; color: var(--brand-600); }
.app-btn {
  margin-top: 8px; width: 100%; border: none; cursor: default;
  font-family: var(--font-head); font-weight: 600; font-size: 0.95rem; color: #fff;
  background: var(--grad-brand); border-radius: 14px; padding: 13px;
  display: flex; align-items: center; justify-content: center; gap: 8px; box-shadow: var(--shadow-brand);
}
.app-btn svg { width: 18px; height: 18px; }
.app-homebar { width: 96px; height: 5px; border-radius: 999px; background: #0f1f1b; opacity: 0.2; margin: 12px auto 2px; }

/* Floating life cards (desktop only) */
.float-card {
  position: absolute; z-index: 3; display: none; align-items: center; gap: 10px;
  background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 10px 14px;
  box-shadow: var(--shadow-md);
}
.float-card b { display: block; font-family: var(--font-head); font-size: 0.86rem; color: var(--ink); line-height: 1.1; }
.float-card small { font-size: 0.74rem; color: var(--muted); }
.float-card__ic { width: 34px; height: 34px; flex: none; border-radius: 11px; display: grid; place-items: center; background: var(--brand-050); color: var(--brand-700); }
.float-card__ic svg { width: 18px; height: 18px; }
.float-card__ic--amber { background: var(--amber-050); color: var(--amber-700); border: 1px solid var(--amber-100); }

/* ---------- Sections ---------- */
.section { padding: 40px 0; }
.section-head { margin-bottom: 18px; }
.section-head h2 { font-size: 1.5rem; margin: 6px 0 0; }
.section-head--row { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; }
.kicker { font-family: var(--font-head); font-weight: 700; font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--amber-700); }
.link-more { display: inline-flex; align-items: center; gap: 5px; font-family: var(--font-head); font-weight: 600; font-size: 0.9rem; color: var(--brand-700); white-space: nowrap; }
.link-more svg { width: 16px; height: 16px; }

/* ---------- Como funciona (brand-neutral steps) ---------- */
/* Uses only Crédito.vc's own iconography: no partner logo or brand mark, since
   partners are added/removed dynamically and their marks must never be baked
   into this static block. Numbered steps on a card grid, joined by a chevron. */
.how { display: grid; gap: 14px; list-style: none; margin: 0; padding: 0; }
.how-step {
  position: relative; display: grid; gap: 14px; align-content: start;
  background: #fff; border: 1px solid var(--line); border-radius: 22px;
  padding: 24px; box-shadow: var(--shadow-sm);
}
.how-step__head { display: flex; align-items: center; gap: 14px; }
.how-step__ic {
  width: 54px; height: 54px; flex: none; border-radius: 16px; display: grid; place-items: center;
  background: var(--brand-050); color: var(--brand-700); border: 1px solid var(--brand-100);
}
.how-step__ic svg { width: 26px; height: 26px; }
.how-step__n {
  margin-left: auto; width: 30px; height: 30px; border-radius: 50%; flex: none;
  display: grid; place-items: center; font-family: var(--font-head); font-weight: 800;
  font-size: 0.84rem; color: var(--brand-700); background: var(--brand-050); border: 1px solid var(--brand-100);
}
.how-step h3 { font-size: 1.14rem; margin: 0; }
.how-step > p { margin: 0; color: var(--muted); font-size: 0.98rem; line-height: 1.5; }

/* The middle step leans on the warm accent for the "intelligence" cue. */
.how-step--match .how-step__ic { background: var(--amber-050); color: var(--amber-700); border-color: var(--amber-100); }
.how-step--match .how-step__n { background: var(--amber-050); color: var(--amber-700); border-color: var(--amber-100); }

/* Connectors between steps: vertical on mobile, horizontal on desktop. */
.how-step__conn { position: absolute; z-index: 2; color: var(--brand-500); }
.how-step__conn svg { width: 20px; height: 20px; }
.how-step__conn--v { left: 50%; bottom: -21px; translate: -50% 0; }
.how-step__conn--v svg { transform: rotate(90deg); }
.how-step__conn--h { display: none; right: -23px; top: 42px; }
.how-step:last-child .how-step__conn { display: none; }

/* ---------- Product chips ---------- */
.chips { display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x proximity; margin-inline: -20px; padding: 4px 20px 14px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: none; scroll-snap-align: start;
  display: inline-flex; align-items: center; gap: 9px; white-space: nowrap;
  font-family: var(--font-head); font-weight: 600; font-size: 0.92rem; color: var(--ink);
  background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 10px 16px 10px 10px;
  box-shadow: var(--shadow-sm); transition: transform 0.2s var(--ease), border-color 0.2s;
}
.chip:hover { transform: translateY(-2px); border-color: var(--brand-100); }
.chip__ic { width: 30px; height: 30px; border-radius: 50%; flex: none; display: grid; place-items: center; background: var(--brand-050); color: var(--brand-700); }
.chips .chip:nth-child(even) .chip__ic { background: var(--amber-050); color: var(--amber-700); }
.chip__ic svg { width: 17px; height: 17px; }

/* ---------- People / testimonials ---------- */
.voices { display: grid; gap: 14px; }
.voice {
  margin: 0; display: grid; gap: 12px; align-content: start;
  background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 20px;
  box-shadow: var(--shadow-sm);
}
.voice__stars { color: #f5a623; font-size: 0.9rem; letter-spacing: 2px; }
.voice blockquote { margin: 0; font-family: var(--font-head); font-size: 1rem; line-height: 1.45; color: var(--ink); }
.voice figcaption { display: flex; align-items: center; gap: 10px; margin-top: 2px; }
.voice figcaption img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; flex: none; }
.voice figcaption b { display: block; font-family: var(--font-head); font-size: 0.92rem; color: var(--ink); }
.voice figcaption small { color: var(--muted); font-size: 0.8rem; }

/* ---------- Partners ---------- */
.partners { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.partner {
  display: grid; gap: 10px; justify-items: center; text-align: center;
  background: #fff; border: 1px solid var(--line); border-top: 3px solid var(--pc, var(--brand-500));
  border-radius: 18px; padding: 20px 12px; box-shadow: var(--shadow-sm);
  transition: transform 0.2s var(--ease), box-shadow 0.2s;
}
.partner:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.partner .plogo { display: inline-flex; }
.partner .plogo svg { height: 28px; width: auto; }
.partner small { color: var(--muted); font-size: 0.78rem; line-height: 1.3; }

/* ---------- CTA ---------- */
.cta-final { padding-bottom: 20px; }
.cta-card {
  position: relative; overflow: hidden; border-radius: 28px; isolation: isolate;
  background: var(--brand-900); color: #eafaf4;
}
.cta-card__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.cta-card::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(120deg, rgba(0,40,35,0.92) 0%, rgba(0,60,50,0.72) 55%, rgba(0,40,35,0.4) 100%); }
.cta-card__body { padding: 40px 24px; text-align: center; }
.cta-card h2 { color: #fff; font-size: clamp(1.5rem, 5vw, 2rem); margin: 0 0 8px; }
.cta-card p { color: #d6efe6; margin: 0 auto 20px; }
.cta-card .btn { background: #fff; color: var(--brand-800); }
.cta-card .btn:hover { transform: translateY(-2px); }

/* ---------- App dock (mobile) ---------- */
.appdock {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 45;
  padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
  background: rgba(255,255,255,0.9); backdrop-filter: blur(14px);
  border-top: 1px solid var(--line);
  transform: translateY(120%); transition: transform 0.4s var(--ease);
}
.appdock.is-shown { transform: none; }
.appdock__inner { max-width: 620px; margin-inline: auto; display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.appdock__meta b { display: block; font-family: var(--font-head); font-size: 0.95rem; }
.appdock__meta span { font-size: 0.78rem; color: var(--muted); }
.appdock .btn { padding: 12px 22px; }

/* ---------- Footer ---------- */
.appfoot { background: var(--mist); border-top: 1px solid var(--line); padding: 34px 20px calc(28px + env(safe-area-inset-bottom)); text-align: center; }
.appfoot__inner { max-width: 620px; margin-inline: auto; display: grid; gap: 16px; justify-items: center; }
.appfoot__brand img { height: 24px; width: auto; }
.appfoot__links { display: flex; flex-wrap: wrap; gap: 18px; justify-content: center; }
.appfoot__links a { color: var(--ink-soft); font-weight: 500; font-size: 0.92rem; transition: color 0.2s; }
.appfoot__links a:hover { color: var(--brand-700); }
.appfoot__note { display: inline-flex; align-items: center; gap: 7px; color: var(--muted); font-size: 0.82rem; margin: 0; }
.appfoot__note svg { width: 15px; height: 15px; color: var(--brand-700); }
.appfoot__copy { color: var(--muted); font-size: 0.8rem; margin: 0; }

/* ---------- Larger screens ---------- */
@media (min-width: 620px) {
  .app-shell, .appbar__inner, .appdock__inner, .appfoot__inner { max-width: 620px; }
  .how { gap: 16px; }
}

@media (min-width: 900px) {
  .app-shell, .appbar__inner, .appdock__inner { max-width: 1120px; padding-inline: 32px; }
  .appfoot__inner { max-width: 1120px; }

  /* Hero becomes a two-column split */
  .hero { padding: 40px 0 12px; }
  .hero__grid { grid-template-columns: 1.02fr 0.98fr; align-items: center; gap: 40px; text-align: left; }
  .hero__copy { justify-items: start; }
  .hero__sub { margin-inline: 0; max-width: 46ch; }
  .hero__cta { align-items: flex-start; }
  .hero__trust { justify-self: start; }

  /* Float cards frame the phone; the hidden background photo is gone */
  .hero__stage { margin: 0; min-height: 540px; }
  .hero__stage-bg { width: 440px; }
  .phone-wrap { align-self: center; }
  .phone { width: 300px; }
  .float-card { display: flex; animation: float 6s var(--ease) infinite; }
  .float-card--match { left: -2%; top: 14%; }
  .float-card--ok { right: -2%; bottom: 12%; animation-delay: 1.4s; }

  /* Multi-column sections fill the desktop width */
  .section { padding: 56px 0; }
  .section-head h2 { font-size: 2rem; }
  .how { grid-template-columns: repeat(3, 1fr); gap: 26px; }
  .how-step__conn--v { display: none; }
  .how-step__conn--h { display: block; }
  .chips { flex-wrap: wrap; overflow: visible; margin-inline: 0; padding: 4px 0 0; }
  .voices { grid-template-columns: repeat(3, 1fr); }
  .partners { grid-template-columns: repeat(3, 1fr); gap: 16px; }
  .cta-card__body { padding: 60px 40px; }
}

/* Dock never competes with content on desktop */
@media (min-width: 901px) {
  .appdock { display: none; }
}
