/* Landing page do Freteiro. Páginas internas (termos, privacidade, excluir-conta) seguem em styles.css. */

:root {
  --bg: #f4f6f9;
  --white: #fff;
  --ink: #1d2733;
  --muted: #5a6573;
  --line: #dde3ea;
  --blue: #4f7ba8;        /* azul do app */
  --blue-deep: #2f5f93;
  --blue-ink: #234a75;
  --blue-soft: #e4ecf5;
  --charcoal: #30343a;    /* grafite do logo */
  --amber: #b5862a;       /* "a receber" no app */
  --profit: #1e7a45;

  --font-display: "Barlow Condensed", "Arial Narrow", system-ui, sans-serif;
  --font-body: "Barlow", system-ui, sans-serif;

  --step-1: 1.25rem;
  --step-2: clamp(1.9rem, 1.3rem + 2vw, 2.9rem);
  --step-3: clamp(2.2rem, 1.4rem + 3vw, 3.5rem);
  --step-4: clamp(2.8rem, 1.6rem + 4.4vw, 5rem);

  --gutter: clamp(16px, 4vw, 32px);
  --max: 1160px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 1.0625rem/1.55 var(--font-body);
  font-variant-ligatures: none;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
h1, h2, h3 { margin: 0; font-family: var(--font-display); font-weight: 700; line-height: 1.02; text-wrap: balance; }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-1); line-height: 1.15; }
p, figure { margin: 0; }
a { color: inherit; }
button, input { font: inherit; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 6px; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

.skip { position: absolute; left: 12px; top: -60px; z-index: 50; background: var(--ink); color: var(--white); padding: 10px 14px; border-radius: 8px; }
.skip:focus { top: 12px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 22px; border-radius: 14px; border: 2px solid transparent;
  font-weight: 700; font-size: 1.05rem; text-decoration: none; cursor: pointer;
  transition: background-color .15s, box-shadow .15s, transform .15s;
}
.btn:active { transform: translateY(1px); }
.btn-go { background: var(--blue-deep); color: var(--white); box-shadow: 0 10px 24px -10px rgba(47,95,147,.7); }
.btn-go:hover { background: var(--blue-ink); }
.btn-line { border-color: var(--blue-deep); color: var(--blue-deep); }
.btn-line:hover { background: var(--blue-soft); }
.btn-sm { min-height: 42px; padding: 0 16px; font-size: .98rem; border-radius: 11px; box-shadow: none; }
.btn-play { min-height: 58px; padding: 0 26px; font-size: 1.1rem; }
.link { font-weight: 600; color: var(--blue-deep); text-underline-offset: 5px; text-decoration-thickness: 2px; text-decoration-color: rgba(47,95,147,.3); padding: 10px 0; }
.link:hover { text-decoration-color: var(--blue-deep); }

/* Header */
.top { position: sticky; top: 0; z-index: 20; background: rgba(244,246,249,.88); backdrop-filter: blur(12px); border-bottom: 1px solid transparent; transition: border-color .2s; }
.top.scrolled { border-bottom-color: var(--line); }
.top-in { max-width: var(--max); margin: 0 auto; padding: 12px var(--gutter); display: flex; align-items: center; gap: 24px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand-mark { width: 36px; height: 36px; border-radius: 10px; }
.brand-name { font-family: var(--font-display); font-weight: 700; font-size: 1.65rem; color: var(--charcoal); }
.top-nav { display: flex; gap: 28px; margin-left: auto; }
.top-nav a { text-decoration: none; color: var(--muted); font-weight: 500; padding: 6px 0; }
.top-nav a:hover { color: var(--ink); }
.menu-btn, .menu { display: none; }
@media (max-width: 860px) {
  .top-nav { display: none; }
  .top-cta { margin-left: auto; }
  .menu-btn { display: inline-flex; flex-direction: column; justify-content: center; gap: 5px; width: 44px; height: 44px; padding: 0 10px; background: none; border: 0; cursor: pointer; }
  .menu-btn span { height: 2px; background: var(--ink); border-radius: 2px; transition: transform .2s, opacity .2s; }
  .menu-btn[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .menu-btn[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .menu-btn[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .menu.open { display: flex; flex-direction: column; padding: 0 var(--gutter) 12px; }
  .menu a { padding: 14px 0; text-decoration: none; font-size: 1.1rem; font-weight: 500; border-bottom: 1px solid var(--line); }
}
@media (max-width: 380px) { .top-cta { display: none; } .menu-btn { margin-left: auto; } }

/* Phone frame + image skeleton */
.phone {
  position: relative; width: 280px; aspect-ratio: 720 / 1472;
  padding: 9px; border-radius: 40px;
  background: var(--charcoal);
  box-shadow: 0 2px 0 1px #4a5058 inset, 0 40px 70px -28px rgba(29,39,51,.45);
}
.phone img { width: 100%; height: 100%; object-fit: cover; object-position: top; border-radius: 31px; }
.shot { isolation: isolate; }
.shot::before { /* skeleton shown until the screenshot loads */
  content: ""; position: absolute; z-index: -1; inset: 9px; border-radius: 31px;
  background: linear-gradient(100deg, #e6ebf1 30%, #f4f6f9 50%, #e6ebf1 70%) 0 0 / 250% 100%;
}
.js .shot:not(.is-loaded)::before { animation: shimmer 1.3s linear infinite; }
.js .shot img { opacity: 0; transition: opacity .4s ease-out; }
.js .shot.is-loaded img { opacity: 1; }
@keyframes shimmer { to { background-position: -150% 0; } }

/* Hero */
.hero { position: relative; overflow: hidden; }
.hero::before { /* soft blue field behind the phones */
  content: ""; position: absolute; z-index: -1;
  right: -12vw; top: -10%; width: 62vw; height: 125%;
  background: radial-gradient(closest-side, #d6e3f1, rgba(214,227,241,0));
}
.hero-in {
  max-width: var(--max); margin: 0 auto;
  padding: clamp(36px, 6vw, 72px) var(--gutter) clamp(56px, 8vw, 96px);
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 4vw, 56px); align-items: center;
}
.hero-for { color: var(--blue-deep); font-weight: 600; margin-bottom: 14px; }
.hero h1 { font-size: var(--step-4); font-weight: 800; line-height: .96; color: var(--ink); max-width: 11ch; }
.hero-sub { margin-top: 22px; font-size: 1.2rem; color: var(--muted); max-width: 44ch; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 26px; margin-top: 32px; }
.hero-proof { list-style: none; padding: 0; margin: 26px 0 0; display: flex; flex-wrap: wrap; gap: 8px 22px; color: var(--muted); font-size: .98rem; }
.hero-proof li, .checks li { display: flex; align-items: flex-start; gap: 10px; }
.hero-proof li::before, .checks li::before {
  content: ""; flex: none; width: 13px; height: 7px; margin: 7px 2px 0 2px;
  border-left: 2.5px solid var(--profit); border-bottom: 2.5px solid var(--profit); transform: rotate(-45deg);
}

.hero-shots { position: relative; height: 640px; }
.hero-shots .phone { position: absolute; }
.phone-front { width: 300px; left: 50%; top: 0; transform: translateX(-50%); z-index: 2; }
.phone-back { width: 240px; top: 70px; opacity: .97; }
.phone-left { left: 50%; transform: translateX(-118%) rotate(-6deg); }
.phone-right { left: 50%; transform: translateX(18%) rotate(6deg); }
.hero-chip {
  position: absolute; z-index: 3; left: 50%; bottom: 40px; transform: translateX(-118%);
  background: var(--white); border-radius: 16px; padding: 12px 18px;
  box-shadow: 0 18px 40px -16px rgba(29,39,51,.4);
  display: flex; flex-direction: column;
}
.hero-chip span { font-size: .9rem; color: var(--muted); }
.hero-chip b { font-family: var(--font-display); font-size: 2rem; color: var(--profit); line-height: 1.05; }

/* Page-load moment: phones rise into place once */
.js .hero-shots .phone-front { animation: rise .7s cubic-bezier(.2,.7,.2,1) both; }
.js .hero-shots .phone-left { animation: rise-left .8s .15s cubic-bezier(.2,.7,.2,1) both; }
.js .hero-shots .phone-right { animation: rise-right .8s .25s cubic-bezier(.2,.7,.2,1) both; }
.js .hero-chip { animation: pop .45s .8s ease-out both; }
@keyframes rise { from { opacity: 0; transform: translate(-50%, 40px); } }
@keyframes rise-left { from { opacity: 0; transform: translateX(-90%) rotate(0); } }
@keyframes rise-right { from { opacity: 0; transform: translateX(-10%) rotate(0); } }
@keyframes pop { from { opacity: 0; transform: translateX(-118%) translateY(12px); } }

@media (max-width: 960px) {
  .hero-in { grid-template-columns: 1fr; }
  .hero h1 { max-width: 14ch; }
  .hero::before { right: -30vw; top: 35%; width: 120vw; height: 80%; }
}
@media (max-width: 560px) {
  .hero-actions { flex-direction: column; align-items: stretch; text-align: center; }
  .hero-shots { height: 500px; }
  .phone-front { width: 230px; }
  .phone-back { width: 180px; top: 56px; }
  .phone-left { transform: translateX(-108%) rotate(-6deg); }
  .phone-right { transform: translateX(8%) rotate(6deg); }
  .hero-chip { bottom: 18px; transform: translateX(-100%); padding: 10px 14px; }
  .hero-chip b { font-size: 1.6rem; }
  @keyframes pop { from { opacity: 0; transform: translateX(-100%) translateY(12px); } }
}

/* Como funciona */
.como { background: var(--white); padding: clamp(64px, 8vw, 104px) 0; }
.steps { list-style: none; padding: 0; margin: 44px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: step; }
.steps li { counter-increment: step; padding: 28px; border-radius: 20px; background: var(--bg); }
.steps li::before {
  content: counter(step); display: grid; place-items: center;
  width: 44px; height: 44px; border-radius: 12px; margin-bottom: 20px;
  background: var(--blue); color: var(--white);
  font-family: var(--font-display); font-weight: 800; font-size: 1.5rem;
}
.steps h3 { font-size: 1.65rem; margin-bottom: 8px; }
.steps p { color: var(--muted); }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; } }

/* Showcase rows */
.show { padding: clamp(72px, 9vw, 120px) 0 clamp(56px, 7vw, 88px); }
.row { display: grid; grid-template-columns: auto 1fr; gap: clamp(36px, 7vw, 104px); align-items: center; }
.row + .row { margin-top: clamp(72px, 9vw, 128px); }
.row-flip { grid-template-columns: 1fr auto; }
.row-flip .row-copy { order: -1; }
.row .phone { justify-self: center; }
.row-copy { max-width: 520px; }
.row-tag { color: var(--blue-deep); font-weight: 600; margin-bottom: 12px; }
.row-copy h2 { font-size: var(--step-2); margin-bottom: 18px; }
.row-copy p:not(.row-tag) { color: var(--muted); font-size: 1.12rem; }

.report-stack { position: relative; width: 440px; padding-bottom: 220px; }
.card-shot {
  position: relative; border-radius: 24px; overflow: hidden; background: var(--white);
  box-shadow: 0 30px 60px -30px rgba(29,39,51,.45);
}
.card-shot img { width: 100%; height: auto; }
.card-shot::before { inset: 0; border-radius: 0; }
.card-shot-over { position: absolute; width: 380px; right: -48px; bottom: 0; border: 6px solid var(--bg); }

.extras { list-style: none; padding: 0; margin: clamp(80px, 10vw, 128px) 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 36px; border-top: 1px solid var(--line); padding-top: 48px; }
.extras svg { width: 30px; height: 30px; margin-bottom: 14px; fill: none; stroke: var(--blue-deep); stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.extras h3 { font-size: 1.45rem; margin-bottom: 6px; }
.extras p { color: var(--muted); }

@media (max-width: 900px) {
  .row, .row-flip { grid-template-columns: 1fr; }
  .row-flip .row-copy { order: 0; }
  .row .phone, .report-stack { order: 2; justify-self: center; }
  .row-copy { max-width: none; }
  .extras { grid-template-columns: 1fr; gap: 28px; }
}
@media (max-width: 560px) {
  .row .phone { width: 250px; }
  .report-stack { width: 100%; max-width: 380px; padding-bottom: 180px; }
  .card-shot-over { width: 82%; right: -8px; }
}

/* Planos */
.planos { background: var(--white); padding: clamp(64px, 9vw, 112px) 0; }
.plans { display: grid; grid-template-columns: 1fr 1.08fr; gap: 24px; margin-top: 44px; align-items: start; }
.plan { background: var(--bg); border-radius: 24px; padding: clamp(24px, 3vw, 38px); display: flex; flex-direction: column; gap: 18px; }
.plan h3 { font-size: 2rem; }
.plan-sub { color: var(--muted); margin-top: 2px; }
.plan-price { color: var(--muted); }
.plan-price b { font-family: var(--font-display); font-size: 3.3rem; font-weight: 800; color: var(--ink); line-height: 1; margin-right: 4px; }
.plan-price s { margin-right: 6px; }
.plan-then { font-size: .98rem; color: var(--muted); margin-top: -8px; }
.checks { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.plan .btn { margin-top: 6px; }
.plan-pro { background: var(--blue-deep); color: var(--white); box-shadow: 0 30px 60px -30px rgba(47,95,147,.8); }
.plan-pro .plan-sub, .plan-pro .plan-price, .plan-pro .plan-then { color: #cddbea; }
.plan-pro .plan-price b { color: var(--white); }
.plan-pro .checks li::before { border-color: #9fd3b4; }
.plan-pro .btn-go { background: var(--white); color: var(--blue-deep); box-shadow: none; }
.plan-pro .btn-go:hover { background: var(--blue-soft); }
.plan-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.tag { background: #f6d77a; color: var(--ink); font-weight: 700; font-size: .92rem; padding: 6px 12px; border-radius: 99px; white-space: nowrap; }
.plan-note { font-size: .9rem; color: #bfd0e3; }
@media (max-width: 820px) { .plans { grid-template-columns: 1fr; } .plan-pro { order: -1; } }

/* Dúvidas */
.duvidas { padding: clamp(64px, 9vw, 112px) 0; }
.duvidas-in { display: grid; grid-template-columns: 1fr 1.6fr; gap: 48px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-child { border-top: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 18px; padding: 20px 0; font-weight: 600; font-size: 1.1rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 11px; height: 11px; border-right: 2.5px solid var(--blue-deep); border-bottom: 2.5px solid var(--blue-deep); transform: rotate(45deg) translate(-3px, -3px); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(-135deg); }
.faq summary:hover { color: var(--blue-deep); }
.faq details p { padding: 0 0 22px; color: var(--muted); max-width: 64ch; }
.faq details[open] p { animation: reveal .25s ease-out; }
@keyframes reveal { from { opacity: 0; } }
@media (max-width: 820px) { .duvidas-in { grid-template-columns: 1fr; gap: 24px; } }

/* Baixar */
.baixar { background: var(--blue-deep); color: var(--white); overflow: hidden; }
.baixar-in { display: grid; grid-template-columns: 1.3fr auto; gap: 48px; align-items: center; padding-top: clamp(56px, 8vw, 88px); }
.baixar-copy { padding-bottom: clamp(56px, 8vw, 88px); }
.baixar h2 { max-width: 15ch; }
.baixar-copy > p { margin-top: 16px; color: #d4e0ee; font-size: 1.12rem; max-width: 46ch; }
.baixar-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.baixar .btn-go { background: var(--white); color: var(--blue-deep); box-shadow: none; }
.baixar .btn-go:hover { background: var(--blue-soft); }
.baixar-phone { width: 260px; align-self: end; margin-bottom: -120px; }
.baixar-phone::before { background: #3c6b9e; }
@media (max-width: 820px) {
  .baixar-in { grid-template-columns: 1fr; gap: 0; }
  .baixar-phone { justify-self: center; width: 230px; margin-bottom: -180px; }
  .baixar { padding-bottom: 0; }
  .baixar-actions { flex-direction: column; }
  .baixar-actions .btn-play { width: 100%; }
}

/* Footer */
.foot { background: var(--charcoal); color: #b3bac3; padding: 28px 0 32px; font-size: .95rem; position: relative; }
.foot-in { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; }
.foot-brand { display: flex; align-items: center; gap: 8px; color: var(--white); font-family: var(--font-display); font-weight: 700; font-size: 1.25rem; }
.foot-brand img { border-radius: 5px; }
.foot-links { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-left: auto; }
.foot-links a { text-decoration: none; padding: 6px 0; }
.foot-links a:hover { color: var(--white); }
@media (max-width: 640px) { .foot-links { margin-left: 0; } }

/* Mobile dock CTA */
.dock { display: none; }
@media (max-width: 760px) {
  .dock {
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
    padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom));
    background: rgba(255,255,255,.96); backdrop-filter: blur(10px);
    border-top: 1px solid var(--line);
    transform: translateY(110%); transition: transform .25s ease-out;
  }
  .dock.show { transform: none; }
  .dock-txt { font-weight: 600; color: var(--muted); }
  .foot { padding-bottom: 96px; }
}

.lazy-section { content-visibility: auto; contain-intrinsic-size: auto 900px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
