/* ============================================================
   FRAMEUP — landing de venda de sites (tema claro, identidade FRAMEUP:
   preto + dourado, Playfair Display + Inter). Fontes hospedadas aqui
   mesmo em fonts/ porque o CSP do servidor não libera Google Fonts.
   ============================================================ */
@font-face {
  font-family: "Inter"; src: url("fonts/inter-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Playfair Display"; src: url("fonts/playfair-display-latin-wght-normal.woff2") format("woff2");
  font-weight: 400 900; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Playfair Display"; src: url("fonts/playfair-display-latin-wght-italic.woff2") format("woff2");
  font-weight: 400 900; font-style: italic; font-display: swap;
}
:root {
  --bg: #ffffff;
  --bg-soft: #faf8f3;
  --text: #0A0A0A;
  --muted: #5c5a55;
  --faint: #9a968c;
  --line: rgba(10, 10, 10, .12);
  --gold: #C9A227;
  --gold-dark: #9A7B1C;
  --gold-tint: #faf4e1;
  --red: #c0392b;
  --green: #2e7d4f;
  --serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --shadow: 0 6px 24px rgba(10, 10, 10, .10);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
html.fform-open, html.fform-open body { overflow: hidden; }
body {
  font-family: Inter, -apple-system, "Segoe UI", Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
a { color: inherit; }
.serif { font-family: var(--serif); font-style: italic; }

/* ---------- topo ---------- */
.gtop {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 24px; max-width: 1200px; margin: 0 auto;
}
.gbrand { display: inline-flex; align-items: center; gap: 10px; font-size: 16px; font-weight: 800; letter-spacing: .12em; text-decoration: none; }
.gbrand img { width: 22px; height: auto; display: block; }
.gbrand b { color: var(--gold-dark); font-weight: 500; letter-spacing: .04em; }
.gnav { display: flex; gap: 6px; }
.glink {
  font-size: 14px; padding: 8px 14px; border-radius: 999px; text-decoration: none;
  color: var(--text); transition: background .2s;
}
.glink:hover { background: var(--bg-soft); }

/* ---------- hero ---------- */
.gmain { max-width: 1200px; margin: 0 auto; padding: 0 16px; }
.ghero { text-align: center; padding: 48px 0 40px; }
.gmark { width: 52px; height: auto; margin: 0 auto 24px; display: block; }
.gtitle {
  font-family: var(--serif); font-size: clamp(32px, 5.6vw, 60px); font-weight: 700; line-height: 1.12;
  letter-spacing: -.01em; margin-bottom: 18px;
}
.gamp { color: var(--gold); font-style: italic; font-weight: 500; }
.gword {
  font-style: italic; color: var(--gold-dark);
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.gsub { max-width: 620px; margin: 0 auto 28px; color: var(--muted); font-size: clamp(15px, 2vw, 18px); }

.gsearch {
  display: flex; align-items: center; gap: 12px; width: 100%; max-width: 584px;
  margin: 0 auto; height: 50px; padding: 0 16px; border: 1px solid var(--line);
  border-radius: 999px; background: #fff; text-align: left; transition: box-shadow .2s, border-color .2s;
}
.gsearch:hover, .gsearch:focus-visible { box-shadow: var(--shadow); border-color: var(--gold); outline: none; }
.gs-lupa, .gs-mic { width: 20px; height: 20px; flex: none; }
.gs-text { flex: 1; color: var(--muted); font-size: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gs-text::after { content: "|"; margin-left: 1px; color: var(--gold); animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

.gbtns { display: flex; justify-content: center; gap: 12px; margin: 28px 0 18px; flex-wrap: wrap; }
.gbtn {
  background: #fff; border: 1px solid var(--text); border-radius: 999px;
  color: var(--text); font-size: 14px; font-weight: 600; padding: 0 22px; height: 44px; line-height: 42px;
  text-decoration: none; transition: background .2s, color .2s, box-shadow .2s;
}
.gbtn:first-child { background: var(--text); color: #fff; }
.gbtn:hover { box-shadow: 0 8px 24px rgba(201, 162, 39, .35); }
.gbtn:first-child:hover { color: var(--gold); }
.gmeta { font-size: 13px; color: var(--muted); }

/* ---------- cards ---------- */
.gcards {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px;
  max-width: 1100px; margin: 24px auto 64px;
}
.gcard {
  border: 1px solid var(--line); border-radius: 20px; padding: 26px; background: #fff;
  transition: box-shadow .2s, transform .2s;
}
.gcard:hover { box-shadow: var(--shadow); border-color: rgba(201,162,39,.5); transform: translateY(-2px); }
.gic {
  display: inline-grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; margin-bottom: 16px;
  background: var(--gold-tint); color: var(--gold-dark);
}
.gic svg { width: 22px; height: 22px; }
.gcard h3 { font-family: var(--serif); font-size: 20px; font-weight: 700; margin-bottom: 6px; }
.gcard p { font-size: 14px; color: var(--muted); }

/* ---------- faixa de clientes ---------- */
.gtrust { margin: 0 auto 72px; text-align: center; }
.gtrust-label { font-size: 12px; font-weight: 600; color: var(--gold-dark); text-transform: uppercase; letter-spacing: .22em; margin-bottom: 20px; }
.gtrust-marquee {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.gtrust-track { display: flex; width: max-content; animation: marquee 32s linear infinite; }
.gtrust-marquee:hover .gtrust-track { animation-play-state: paused; }
.gtrust-set { display: flex; gap: 56px; padding-right: 56px; }
.glogo {
  display: flex; align-items: baseline; gap: 6px; white-space: nowrap;
  color: var(--faint); transition: color .25s;
}
.glogo:hover { color: var(--text); }
.glogo b { font-size: 22px; font-weight: 700; letter-spacing: -.01em; }
.glogo small { font-size: 13px; text-transform: uppercase; letter-spacing: .1em; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- projetos (anel 3D) ---------- */
.greviews { text-align: center; margin-bottom: 80px; }
.greviews h2 { font-family: var(--serif); font-size: clamp(28px, 4vw, 42px); font-weight: 700; letter-spacing: -.01em; }
.grev-sub { color: var(--muted); margin: 8px 0 12px; }
.t3d-stage { perspective: 1400px; height: 380px; position: relative; margin: 0 auto; overflow: hidden; }
.t3d-ring {
  position: absolute; left: 50%; top: 40px; width: 300px; height: 280px; margin-left: -150px;
  transform-style: preserve-3d; will-change: transform;
}
.grev {
  position: absolute; inset: 0; background: #fff; border: 1px solid var(--line); border-radius: 20px;
  padding: 20px; text-align: left; backface-visibility: hidden;
  box-shadow: 0 4px 18px rgba(10,10,10,.08);
}
.grev header { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.grev-avatar {
  width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
  background: var(--text); color: var(--gold); font-family: var(--serif); font-weight: 700; font-size: 18px; flex: none;
}
.av-o { background: linear-gradient(135deg, var(--gold), var(--gold-dark)); color: #fff; }
.grev-who { display: flex; flex-direction: column; min-width: 0; }
.grev-who strong { font-size: 15px; font-weight: 700; }
.grev-who span { font-size: 12px; color: var(--muted); }
.grev-tag {
  display: inline-block; font-size: 12px; font-weight: 600; color: var(--gold-dark); background: var(--gold-tint);
  padding: 3px 10px; border-radius: 999px; margin-bottom: 10px;
}
.grev p { font-size: 14px; color: var(--muted); }
.grev-you { border-style: dashed; border-color: var(--gold); }

.gcta {
  margin-top: 24px; background: var(--text); color: #fff; font-weight: 600; font-size: 15px;
  padding: 15px 30px; border-radius: 999px; transition: color .2s, box-shadow .2s;
}
.gcta:hover { color: var(--gold); box-shadow: 0 8px 28px rgba(201, 162, 39, .4); }

/* ---------- rodapé ---------- */
.gfooter { background: var(--bg-soft); border-top: 1px solid var(--line); padding: 28px 16px; text-align: center; font-size: 13px; color: var(--muted); }
.gpay { margin-bottom: 18px; }
.gpay-label { display: block; margin-bottom: 10px; }
.gpay-icons { display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; }
.gpay-ic {
  display: inline-grid; place-items: center; height: 26px; min-width: 42px; padding: 0 8px;
  border-radius: 4px; background: #fff; border: 1px solid var(--line); font-size: 11px; font-weight: 700;
}
.gpay-ic.pix { color: #32bcad; } .gpay-ic.visa { color: #1a1f71; font-style: italic; }
.gpay-ic.elo { color: #000; } .gpay-ic.amex { color: #fff; background: #2e77bc; border-color: #2e77bc; }
.gpay-ic.hiper { color: #fff; background: #b3131b; border-color: #b3131b; font-size: 9px; }
.gpay-ic.mc { position: relative; }
.gpay-ic.mc i { position: absolute; top: 5px; width: 16px; height: 16px; border-radius: 50%; }
.gpay-ic.mc .m1 { left: 8px; background: #eb001b; }
.gpay-ic.mc .m2 { left: 17px; background: #f79e1b; mix-blend-mode: multiply; }
.gfoot-company { margin-bottom: 4px; }
.gfoot-company a { color: var(--muted); }

/* ---------- toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); opacity: 0;
  background: #323232; color: #fff; padding: 12px 20px; border-radius: 6px; font-size: 14px;
  transition: .25s; pointer-events: none; z-index: 200; max-width: calc(100% - 32px);
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ============================================================
   FORMULÁRIO DE ENTRADA
   ============================================================ */
.fform {
  position: fixed; inset: 0; z-index: 100; background: #fff; display: flex; flex-direction: column;
  transition: opacity .35s, transform .35s;
}
.fform.fform-hide { opacity: 0; transform: translateY(-12px); pointer-events: none; visibility: hidden; }
.fform-progress { height: 4px; background: #eeeae0; }
.fform-progress i { display: block; height: 100%; width: 100%; background: linear-gradient(90deg, var(--gold), var(--gold-dark)); transform: scaleX(0); transform-origin: left; transition: transform .4s; }
.fform-top { display: flex; justify-content: space-between; align-items: center; padding: 16px 24px; }
.fform-brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 16px; letter-spacing: .12em; }
.fform-brand img { width: 22px; height: auto; display: block; }
.fform-brand em { font-style: normal; color: var(--gold-dark); font-weight: 500; letter-spacing: .04em; }
.fform-skip { font-size: 14px; color: var(--muted); padding: 6px 10px; border-radius: 6px; }
.fform-skip:hover { background: var(--bg-soft); color: var(--text); }
.fform-viewport { flex: 1; position: relative; overflow: hidden; }
.ff-step {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; padding: 16px;
  opacity: 0; transform: translateY(40px); transition: opacity .4s, transform .4s; overflow-y: auto;
}
.ff-step.up { transform: translateY(-40px); }
.ff-step.active { opacity: 1; transform: none; }
.ff-step.leave-up { opacity: 0; transform: translateY(-40px); }
.ff-step.leave-down { opacity: 0; transform: translateY(40px); }
.ff-card { width: 100%; max-width: 640px; }
.ff-card.center { text-align: center; }
.ff-card.shake { animation: shake .35s; }
@keyframes shake { 25% { transform: translateX(-6px); } 75% { transform: translateX(6px); } }
.ff-hero-title { font-family: var(--serif); font-size: clamp(30px, 5vw, 50px); font-weight: 700; line-height: 1.15; letter-spacing: -.02em; margin-bottom: 14px; }
.ff-hero-sub { color: var(--muted); font-size: 17px; margin-bottom: 28px; }
.ff-num { display: flex; align-items: center; gap: 6px; color: var(--gold-dark); font-size: 14px; font-weight: 600; margin-bottom: 8px; }
.ff-num svg { width: 14px; height: 14px; }
.ff-q { font-family: var(--serif); font-size: clamp(24px, 3.6vw, 32px); font-weight: 600; line-height: 1.3; margin-bottom: 20px; }
.ff-input {
  width: 100%; border: 0; border-bottom: 2px solid #e8dcb4; font: inherit; font-size: clamp(20px, 3vw, 26px);
  padding: 8px 0; color: var(--text); outline: none; background: transparent;
}
.ff-input:focus { border-bottom-color: var(--gold); }
.ff-input::placeholder { color: #cfc6ad; }
.ff-okrow { display: flex; align-items: center; gap: 14px; margin-top: 22px; flex-wrap: wrap; }
.ff-ok {
  display: inline-flex; align-items: center; gap: 8px; background: var(--text); color: #fff;
  font-weight: 600; font-size: 16px; padding: 11px 22px; border-radius: 999px; transition: color .2s, box-shadow .2s;
}
.ff-ok:hover { color: var(--gold); box-shadow: 0 8px 24px rgba(201, 162, 39, .35); }
.ff-ok.big { font-size: 18px; padding: 14px 26px; }
.ff-hint { font-size: 13px; color: var(--muted); }
.ff-opts { display: flex; flex-direction: column; gap: 8px; max-width: 460px; }
.ff-opt {
  display: flex; align-items: center; gap: 12px; text-align: left; padding: 10px 12px;
  border: 1px solid #e8dcb4; background: var(--bg-soft); border-radius: 10px; font-size: 16px; color: var(--text);
  transition: background .15s, border-color .15s;
}
.ff-opt:hover { background: var(--gold-tint); border-color: var(--gold); }
.ff-opt i {
  font-style: normal; font-size: 12px; font-weight: 700; width: 24px; height: 24px; flex: none;
  display: grid; place-items: center; border: 1px solid #e0cf9a; border-radius: 6px; background: #fff; color: var(--gold-dark);
}
.ff-opt.sel { background: var(--text); border-color: var(--text); color: #fff; }
.ff-opt.sel i { background: var(--gold); border-color: var(--gold); color: var(--text); }
.ff-consent { display: flex; gap: 10px; align-items: flex-start; margin-top: 18px; font-size: 13px; color: var(--muted); text-align: left; }
.ff-consent input { margin-top: 3px; width: 16px; height: 16px; flex: none; accent-color: var(--gold-dark); }
.ff-consent a { color: var(--gold-dark); }
.ff-err { color: var(--red); font-size: 14px; margin-top: 10px; min-height: 20px; }
.ff-check {
  width: 64px; height: 64px; border-radius: 50%; background: var(--gold-tint); color: var(--gold-dark);
  display: grid; place-items: center; margin: 0 auto 18px;
}
.ff-check svg { width: 32px; height: 32px; }
.ff-final-btns { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.ff-ghost { color: var(--muted); font-size: 15px; padding: 8px 12px; }
.ff-ghost:hover { color: var(--text); }
.fform-nav { position: absolute; right: 20px; bottom: 20px; display: flex; gap: 2px; }
.fform-nav button {
  width: 36px; height: 36px; display: grid; place-items: center; background: var(--text); color: var(--gold);
}
.fform-nav button:first-child { border-radius: 6px 0 0 6px; }
.fform-nav button:last-child { border-radius: 0 6px 6px 0; }
.fform-nav button:disabled { opacity: .45; cursor: default; }

/* ---------- responsivo ---------- */
@media (max-width: 1000px) {
  .gcards { grid-template-columns: repeat(2, 1fr); max-width: 720px; }
}
@media (max-width: 760px) {
  .gtop { padding: 12px 16px; }
  .ghero { padding: 28px 0 32px; }
  .gcards { grid-template-columns: 1fr; margin-bottom: 48px; }
  .t3d-stage { height: 400px; }
  .t3d-ring { width: 260px; margin-left: -130px; height: 300px; }
  .gtrust-set { gap: 36px; padding-right: 36px; }
  .fform-nav { right: 16px; bottom: 16px; }
}

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