/* ==========================================================
   PhotoFreela — site de divulgação
   Paleta, tipografia e componentes espelhados do app:
   Plus Jakarta Sans, fundo #080C14 / #0B0F17, cards #101623,
   dourado #FBBB23 / #C27D08 (ver docs/design-system.md).
   ========================================================== */

:root {
  --bg: #080C14;
  --bg-2: #0B0F17;
  --card: #101623;
  --card-2: #172032;
  --line: #1F2E47;
  --text: #F9FAFB;
  --muted: #94A3B8;
  --faint: #64748B;
  --gold: #FBBB23;
  --gold-2: #FDD142;
  --gold-deep: #C27D08;
  --on-gold: #0B0F17;
  --red: #F87171;
  --green: #34D399;
  --blue: #60A5FA;

  --font: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --radius: 18px;
  --shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.75);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
h1, h2, h3 { line-height: 1.12; letter-spacing: -0.025em; font-weight: 800; }

.container { width: min(1180px, 100% - 40px); margin-inline: auto; }

/* ---------- Tipografia ---------- */
.eyebrow {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 14px;
}
.lead { font-size: 1.08rem; color: var(--muted); max-width: 56ch; margin-top: 18px; }
.fineprint { font-size: 0.82rem; color: var(--faint); margin-top: 16px; }
.gold { color: var(--gold); }
h1 { font-size: clamp(2.6rem, 6vw, 4.5rem); }
h2 { font-size: clamp(1.9rem, 3.8vw, 2.7rem); max-width: 22ch; }
h3 { font-size: 1.15rem; font-weight: 700; }

.section, .section-app, .hero, .cta { scroll-margin-top: 90px; }
.section { padding: 110px 0; position: relative; }
.section-alt { background: var(--bg-2); border-block: 1px solid var(--line); }
.section-head { margin-bottom: 56px; }

/* ---------- Botões ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px; border-radius: 999px; font-weight: 700;
  transition: transform .2s ease, box-shadow .2s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-gold {
  background: linear-gradient(135deg, var(--gold-2), var(--gold) 60%, #E0A21B);
  color: var(--on-gold);
  box-shadow: 0 10px 30px -10px rgba(251, 187, 35, 0.6);
}
.btn-sm { padding: 10px 18px; font-size: 0.92rem; }

.store-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.store-row-center { justify-content: center; }
.store-row-inline { margin-top: 30px; }

.store-btn {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 12px 22px 12px 16px;
  border-radius: 14px;
  background: #000;
  border: 1px solid #2a3142;
  color: #fff;
  min-width: 205px;
  transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}
.store-btn:hover { border-color: var(--gold); transform: translateY(-2px); box-shadow: 0 14px 30px -12px rgba(251,187,35,.45); }
.store-btn svg { width: 28px; height: 28px; color: var(--gold); flex-shrink: 0; }
.store-btn span { display: flex; flex-direction: column; line-height: 1.15; font-weight: 700; font-size: 1.08rem; }
.store-btn small { font-size: 0.7rem; font-weight: 500; color: #B6BFCC; letter-spacing: 0.02em; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(8, 12, 20, 0.78);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav-wrap { display: flex; align-items: center; justify-content: space-between; height: 76px; gap: 24px; }
.nav-links { display: flex; gap: 28px; font-size: 0.92rem; color: var(--muted); }
.nav-links a { transition: color .2s ease; }
.nav-links a:hover { color: var(--text); }
.brand-logo { height: 50px; width: auto; }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 80px 0 110px; overflow: hidden; }
.hero-bg {
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(60% 60% at 80% 25%, rgba(251,187,35,.16), transparent 60%),
    radial-gradient(50% 50% at 10% 90%, rgba(194,125,8,.10), transparent 70%),
    var(--bg);
}
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 60px; align-items: center; }

.when { margin-top: 32px; }
.when-label { display: block; font-size: .85rem; color: var(--muted); margin-bottom: 10px; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
  padding: 10px 18px; border-radius: 999px;
  background: var(--card); border: 1px solid var(--line); color: var(--text);
  font-weight: 600; font-size: .92rem;
  transition: all .2s ease;
}
.chip:hover { border-color: var(--gold); }
.chip.is-on { background: var(--gold); color: var(--on-gold); border-color: var(--gold); box-shadow: 0 8px 22px -10px rgba(251,187,35,.7); }
.when-hint { margin-top: 12px; color: var(--gold); font-size: .95rem; min-height: 1.6em; }

/* ---------- Telefone com tela real ---------- */
.phone {
  position: relative;
  width: 300px; height: 630px;
  margin-inline: auto;
  border-radius: 46px;
  padding: 12px;
  background: linear-gradient(160deg, #2A3448, #0C111B 45%, #1B2435);
  box-shadow: var(--shadow), inset 0 0 0 1.5px #334058;
}
.phone-notch {
  position: absolute; top: 22px; left: 50%; transform: translateX(-50%);
  width: 96px; height: 26px; border-radius: 20px; background: #000; z-index: 3;
}
.phone-screen {
  position: relative; width: 100%; height: 100%;
  border-radius: 36px; overflow: hidden;
  background: var(--bg);
}
.phone-screen .loop-shot {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; object-position: top center;
  opacity: 0;
  transition: opacity .6s ease;
}
.phone-screen .loop-shot.is-on { opacity: 1; }

/* ---------- Marquee ---------- */
.marquee { border-block: 1px solid var(--line); background: var(--bg-2); overflow: hidden; padding: 22px 0; }
.marquee-track {
  display: flex; gap: 0; width: max-content;
  animation: marquee 38s linear infinite;
  font-size: 1.1rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .14em;
}
.marquee-track span { padding: 0 34px; }
.marquee-track i { font-style: normal; color: var(--gold); font-size: .9rem; align-self: center; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Serviços ---------- */
.cat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.cat-card {
  position: relative; min-height: 300px;
  border-radius: var(--radius); overflow: hidden;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 26px;
  border: 1px solid var(--line);
  background: var(--card) var(--img) center / cover no-repeat;
  isolation: isolate;
  transition: transform .3s ease, border-color .3s ease;
}
.cat-card::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(8,12,20,.05) 0%, rgba(8,12,20,.94) 78%);
}
.cat-card:hover { transform: translateY(-4px); border-color: var(--gold); }
.cat-card h3 { font-size: 1.25rem; margin-bottom: 6px; }
.cat-card p { color: #CBD5E1; font-size: .9rem; }

/* ---------- Passos ---------- */
.steps { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.step {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 34px 30px;
}
.step-num {
  display: inline-grid; place-items: center;
  width: 46px; height: 46px; border-radius: 14px;
  background: var(--gold-deep); color: var(--on-gold);
  font-weight: 800; font-size: .95rem; margin-bottom: 22px;
}
.step h3 { margin-bottom: 10px; }
.step p { color: var(--muted); font-size: .96rem; }

/* ---------- Prazos ---------- */
.deadline-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.deadline {
  background: linear-gradient(180deg, var(--card-2), var(--card));
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 32px 28px;
  display: flex; flex-direction: column;
  transition: border-color .3s ease;
}
.deadline:hover { border-color: var(--gold); }
.deadline-tag {
  align-self: flex-start; font-size: .72rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase;
  padding: 6px 12px; border-radius: 999px; margin-bottom: 22px;
}
.tag-red { background: rgba(239,68,68,.15); color: var(--red); }
.tag-blue { background: rgba(59,130,246,.15); color: var(--blue); }
.tag-gold { background: rgba(251,187,35,.14); color: var(--gold); }
.deadline h3 { font-size: 1.6rem; margin-bottom: 12px; }
.deadline p { color: var(--muted); font-size: .95rem; margin-bottom: 18px; }
.deadline ul { list-style: none; margin-top: auto; border-top: 1px solid var(--line); padding-top: 16px; display: grid; gap: 8px; }
.deadline li { font-size: .9rem; padding-left: 22px; position: relative; }
.deadline li::before { content: "✦"; position: absolute; left: 0; color: var(--gold); font-size: .75rem; top: 2px; }

/* ---------- App ---------- */
.section-app { background: radial-gradient(70% 60% at 85% 50%, rgba(251,187,35,.08), transparent 70%), var(--bg); }
.app-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 70px; align-items: center; }
.app-tabs {
  display: inline-flex; flex-wrap: wrap; gap: 6px; margin-top: 30px; padding: 5px;
  background: var(--card); border: 1px solid var(--line); border-radius: 999px;
}
.app-tab {
  background: transparent; border: 0; color: var(--muted);
  padding: 10px 18px; border-radius: 999px; font-weight: 700; font-size: .92rem;
  transition: all .2s ease;
}
.app-tab:hover { color: var(--text); }
.app-tab.is-on { background: var(--gold); color: var(--on-gold); }
.app-points { list-style: none; margin-top: 26px; display: grid; gap: 10px; }
.app-points li { padding-left: 26px; position: relative; font-size: .97rem; }
.app-points li::before { content: "✦"; position: absolute; left: 0; color: var(--gold); font-size: .8rem; top: 3px; }
.app-phone { display: flex; justify-content: center; }

/* ---------- Chamada final ---------- */
.cta { padding: 110px 0; }
.cta-inner {
  text-align: center; padding: 80px 30px;
  border-radius: 28px;
  border: 1px solid var(--line);
  background:
    radial-gradient(60% 80% at 50% 0%, rgba(251,187,35,.16), transparent 70%),
    var(--card);
}
.cta h2 { margin-inline: auto; }
.cta p { color: var(--muted); margin-top: 16px; font-size: 1.05rem; }

/* ---------- Rodapé ---------- */
.footer { border-top: 1px solid var(--line); padding: 50px 0 40px; background: var(--bg-2); }
.footer-inner { display: grid; gap: 10px; justify-items: center; text-align: center; }
.footer-logo { height: 70px; width: auto; margin-bottom: 6px; }
.footer p { color: var(--muted); font-size: .92rem; max-width: 60ch; }
.footer .copy { color: var(--faint); font-size: .82rem; margin-top: 8px; }
.footer .credit { color: var(--faint); font-size: .82rem; }
.footer .credit a { color: var(--gold); }
.footer p { margin-inline: auto; }

/* ---------- Aviso (toast) ---------- */
.toast {
  position: fixed; left: 50%; bottom: 28px; z-index: 100;
  transform: translate(-50%, 20px); opacity: 0; pointer-events: none;
  background: var(--card-2); color: var(--text);
  border: 1px solid var(--gold); border-radius: 999px;
  padding: 12px 20px; font-size: .9rem; font-weight: 600;
  box-shadow: var(--shadow);
  transition: opacity .3s ease, transform .3s ease;
  max-width: calc(100% - 32px); text-align: center;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Revelar ao rolar ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .8s ease, transform .8s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Responsivo ---------- */
@media (max-width: 1040px) {
  .cat-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 960px) {
  .hero-grid, .app-grid { grid-template-columns: 1fr; gap: 50px; }
  .hero-phone, .app-phone { order: 2; }
  .steps, .deadline-grid { grid-template-columns: 1fr; }
  .nav-links { display: none; }
}

@media (max-width: 560px) {
  .section { padding: 80px 0; }
  .hero { padding: 50px 0 80px; }
  .cat-grid { grid-template-columns: 1fr; }
  .cat-card { min-height: 220px; }
  .store-btn { flex: 1 1 100%; min-width: 0; }
  .phone { width: 100%; max-width: 300px; height: 620px; }
  .brand-logo { height: 42px; }
  .btn-sm { padding: 9px 14px; font-size: .85rem; }
  .cta-inner { padding: 56px 22px; }
}

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

/* ---------- Todas as telas do app (linhas centralizadas, sem rolagem) ---------- */
.screens-row {
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: 34px 22px;
  margin-top: 60px;
}
.mini-phone {
  flex: 0 0 200px; margin: 0;
  display: flex; flex-direction: column; align-items: center; gap: 14px;
}
.mini-screen {
  width: 100%;
  aspect-ratio: 390 / 800;
  padding: 7px; border-radius: 34px;
  background: linear-gradient(160deg, #2A3448, #0C111B 45%, #1B2435);
  box-shadow: var(--shadow), inset 0 0 0 1.5px #334058;
}
.mini-screen img {
  width: 100%; height: 100%;
  border-radius: 28px; object-fit: cover; object-position: top center;
  background: var(--bg);
}
.mini-phone figcaption { font-size: .92rem; font-weight: 700; color: var(--muted); }

@media (max-width: 960px) {
  .section-app .container > .app-copy { max-width: 60ch; }
}
@media (max-width: 560px) {
  .mini-phone { flex-basis: 150px; }
}

/* Espaço entre o título do hero e o texto de apoio */
.hero-copy h1 { margin-bottom: 30px; }
.hero-copy .lead { margin-top: 0; }
.hero-copy .lead strong { color: var(--gold); font-weight: 700; }
.hero-copy .lead-sub { color: var(--faint); font-size: .98rem; max-width: 56ch; margin-top: 14px; }
