@font-face {
  font-family: "Early Sans Official";
  src: url("assets/fonts/early-sans-variable-light.ttf") format("truetype");
  font-style: normal;
  font-weight: 300;
  font-display: swap;
}

@font-face {
  font-family: "Early Sans Official";
  src: url("assets/fonts/early-sans-variable-light-italic.ttf") format("truetype");
  font-style: italic;
  font-weight: 300;
  font-display: swap;
}

@font-face {
  font-family: "Wirants Official";
  src: url("assets/fonts/wirants-regular.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Wirants Official";
  src: url("assets/fonts/wirants-bold.ttf") format("truetype");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

@font-face {
  font-family: "Wirants Official";
  src: url("assets/fonts/wirants-black.ttf") format("truetype");
  font-style: normal;
  font-weight: 900;
  font-display: swap;
}

@font-face {
  font-family: "Midable Official";
  src: url("assets/fonts/midable.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

:root {
  --navy: #00145f;
  --blue: #0750dd;
  --cyan: #08aef0;
  --orange: #ff6500;
  --orange-dark: #df4f00;
  --yellow: #ffd000;
  --ink: #061541;
  --muted: #5f6b7f;
  --cream: #f5f1e8;
  --paper: #fffdf8;
  --line: rgba(7, 29, 73, 0.16);
  --success: #0d7257;
  --shadow: 0 24px 70px rgba(7, 29, 73, 0.14);
  color-scheme: light;
  font-family: "Early Sans Official", ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: weight;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background: var(--cream);
  line-height: 1.5;
}

button,
input { font: inherit; }

button,
a { -webkit-tap-highlight-color: transparent; }

a { color: inherit; }

.skip-link {
  position: fixed;
  z-index: 100;
  top: 12px;
  left: 12px;
  padding: 10px 14px;
  color: white;
  background: var(--orange-dark);
  border-radius: 8px;
  transform: translateY(-160%);
}

.skip-link:focus { transform: none; }

.site-header {
  position: absolute;
  z-index: 10;
  top: 0;
  left: 0;
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  padding: 34px clamp(22px, 5vw, 76px) 26px;
  color: white;
}

.site-header::before {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 10px;
  background: linear-gradient(90deg, var(--cyan) 0 33.333%, var(--orange) 33.333% 66.666%, var(--yellow) 66.666% 100%);
  content: "";
}

.brand {
  display: inline-flex;
  align-items: center;
  color: inherit;
  text-decoration: none;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.campaign-back {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  color: var(--navy);
  border: 1px solid var(--yellow);
  border-radius: 999px;
  background: var(--yellow);
  box-shadow: 0 5px 0 var(--orange);
  font-size: 0.78rem;
  font-weight: 800;
  text-decoration: none;
}

.campaign-back:hover {
  color: var(--navy);
  border-color: white;
  background: white;
}

.brand-logo {
  display: block;
  width: clamp(118px, 10.5vw, 154px);
  height: auto;
}

.header-tag {
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 999px;
  padding: 8px 13px;
  font-family: "Wirants Official", sans-serif;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.hero {
  position: relative;
  display: grid;
  min-height: 720px;
  grid-template-columns: minmax(0, 1.15fr) minmax(340px, 0.85fr);
  gap: clamp(50px, 8vw, 120px);
  align-items: center;
  overflow: hidden;
  padding: 178px clamp(22px, 7vw, 110px) 90px;
  color: white;
  background-color: var(--navy);
  background-image:
    linear-gradient(90deg, rgba(0, 20, 95, 0.98) 0%, rgba(0, 20, 95, 0.94) 46%, rgba(0, 20, 95, 0.58) 74%, rgba(0, 20, 95, 0.22) 100%),
    url("assets/fundo-oficial.png");
  background-position: center, right 30%;
  background-repeat: no-repeat;
  background-size: cover, auto 122%;
}

.hero::before {
  position: absolute;
  inset: auto 0 0;
  height: 42%;
  background: linear-gradient(180deg, transparent, rgba(0, 7, 46, 0.5));
  content: "";
}

.hero-copy,
.hero-card { position: relative; z-index: 1; }

.hero-copy { align-self: center; }

.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 18px;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.eyebrow strong {
  color: var(--yellow);
  font-family: "Midable Official", cursive;
  font-size: 1.55rem;
  font-weight: 400;
  letter-spacing: 0;
  line-height: 0.7;
  text-transform: none;
}

.eyebrow .candidate-name {
  color: white;
  font-family: "Wirants Official", sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  line-height: 1;
}

.eyebrow > span {
  width: 26px;
  height: 3px;
  background: var(--yellow);
}

.hero h1 {
  max-width: 760px;
  margin: 0;
  font-family: "Wirants Official", sans-serif;
  font-size: clamp(4.25rem, 8.5vw, 8.4rem);
  font-weight: 900;
  letter-spacing: -0.035em;
  line-height: 0.84;
  text-transform: uppercase;
}

.hero h1 em {
  display: inline-block;
  color: var(--yellow);
  font-style: normal;
  font-weight: 900;
  text-shadow: 5px 5px 0 var(--orange);
}

.hero-lead {
  max-width: 620px;
  margin: 34px 0 30px;
  color: rgba(255, 255, 255, 0.78);
  font-size: clamp(1.04rem, 1.5vw, 1.25rem);
}

.primary-link {
  display: inline-flex;
  align-items: center;
  gap: 38px;
  padding: 16px 20px;
  color: var(--navy);
  background: var(--yellow);
  border: 3px solid var(--navy);
  border-radius: 3px;
  box-shadow: 7px 7px 0 var(--orange);
  font-weight: 800;
  text-decoration: none;
  transition: transform 180ms ease, background 180ms ease;
}

.primary-link:hover { background: white; transform: translate(-2px, -2px); }

.privacy-seal {
  display: flex;
  max-width: 430px;
  align-items: center;
  gap: 13px;
  margin-top: 34px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.privacy-seal svg {
  width: 30px;
  flex: 0 0 auto;
  fill: none;
  stroke: #9fb6e7;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.6;
}

.privacy-seal div { display: grid; }
.privacy-seal strong { font-size: 0.88rem; }
.privacy-seal span { color: rgba(255, 255, 255, 0.62); font-size: 0.77rem; }

.hero-card {
  padding: clamp(30px, 4vw, 50px);
  border: 3px solid var(--cyan);
  background: rgba(0, 20, 95, 0.88);
  box-shadow: 12px 12px 0 var(--orange);
  backdrop-filter: blur(7px);
}

.hero-campaign-mark {
  display: block;
  width: min(100%, 410px);
  height: auto;
  margin: -12px auto 24px;
}

.card-kicker {
  color: var(--yellow);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero-card ol { margin: 24px 0; padding: 0; list-style: none; }

.hero-card li {
  display: grid;
  grid-template-columns: 46px 1fr;
  gap: 16px;
  align-items: center;
  padding: 19px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.hero-card li > span { color: var(--yellow); font-family: "Wirants Official", sans-serif; font-size: 1.45rem; font-weight: 900; }
.hero-card li p { margin: 0; color: rgba(255, 255, 255, 0.68); }
.hero-card li strong { color: white; }
.card-note { margin: 0; color: rgba(255, 255, 255, 0.55); font-size: 0.78rem; }

.campaign-band {
  height: clamp(116px, 15vw, 210px);
  background: var(--navy);
  background-image: url("assets/faixa-identidade.jpg");
  background-position: center top;
  background-repeat: no-repeat;
  background-size: auto 132%;
  border-bottom: 8px solid var(--orange);
}

.generator-section {
  padding: clamp(76px, 9vw, 130px) clamp(18px, 5vw, 76px);
  background: var(--paper);
}

.section-heading { max-width: 750px; margin: 0 auto 48px; text-align: center; }
.eyebrow-dark { justify-content: center; color: var(--blue); }
.section-heading h2,
.trust-section h2 {
  margin: 0;
  color: var(--navy);
  font-family: "Wirants Official", sans-serif;
  font-size: clamp(2.65rem, 5.5vw, 5.2rem);
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 0.92;
  text-transform: uppercase;
}

.section-heading > p:last-child { color: var(--muted); }

.generator-shell {
  display: grid;
  max-width: 1180px;
  grid-template-columns: minmax(280px, 0.8fr) minmax(380px, 1.2fr);
  gap: clamp(28px, 5vw, 74px);
  margin: 0 auto;
  align-items: start;
}

.upload-column,
.preview-column {
  min-width: 0;
}

.step-label {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 14px;
  color: var(--navy);
  font-size: 0.77rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.step-label > span {
  display: inline-grid;
  width: 27px;
  height: 27px;
  place-items: center;
  color: white;
  background: var(--blue);
  border-radius: 50%;
  font-size: 0.7rem;
}

.drop-zone {
  display: grid;
  min-height: 225px;
  place-items: center;
  align-content: center;
  gap: 8px;
  padding: 28px;
  border: 1.5px dashed rgba(18, 55, 121, 0.34);
  border-radius: 16px;
  text-align: center;
  background: #f8f9fb;
  cursor: pointer;
  transition: border 180ms ease, background 180ms ease, transform 180ms ease;
}

.drop-zone:hover,
.drop-zone.is-dragging {
  border-color: var(--orange);
  background: #fff7f1;
  transform: translateY(-2px);
}

.drop-zone input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.drop-zone:focus-within { outline: 3px solid rgba(239, 107, 46, 0.28); outline-offset: 3px; }

.upload-icon {
  display: grid;
  width: 56px;
  height: 56px;
  place-items: center;
  margin-bottom: 6px;
  color: white;
  background: var(--orange);
  border-radius: 50%;
}

.upload-icon svg { width: 27px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; }
.drop-zone strong { color: var(--navy); }
.drop-zone small { color: var(--muted); }

.controls,
.consent-panel {
  margin-top: 28px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
}

.zoom-control {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 12px;
  align-items: center;
  color: var(--muted);
  font-size: 0.84rem;
}

.zoom-control input { width: 100%; accent-color: var(--orange); }
.zoom-control output { min-width: 76px; color: var(--navy); font-weight: 750; text-align: right; }
.drag-hint { margin: 12px 0 5px; color: var(--muted); font-size: 0.78rem; }

.text-button {
  padding: 4px 0;
  color: var(--blue);
  border: 0;
  border-bottom: 1px solid currentColor;
  background: none;
  cursor: pointer;
  font-size: 0.78rem;
  font-weight: 750;
}

.check-row {
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: 10px;
  margin: 14px 0;
  color: #38465d;
  font-size: 0.79rem;
  line-height: 1.48;
}

.check-row input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--blue); }
.consent-panel > p { color: var(--muted); font-size: 0.73rem; }
.consent-panel a { color: var(--blue); font-weight: 700; }

.preview-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.view-switch {
  display: flex;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #f5f6f8;
}

.view-switch button {
  padding: 7px 11px;
  color: var(--muted);
  border: 0;
  border-radius: 999px;
  background: transparent;
  cursor: pointer;
  font-size: 0.7rem;
  font-weight: 750;
}

.view-switch button.is-active { color: white; background: var(--blue); }

.canvas-frame {
  position: relative;
  overflow: hidden;
  width: 100%;
  aspect-ratio: 1;
  border: 4px solid var(--navy);
  border-radius: 8px;
  background: #e8ebf1;
  box-shadow: 10px 10px 0 var(--orange);
  transition: border-radius 220ms ease;
  touch-action: none;
  user-select: none;
}

.canvas-frame.is-circle { border-radius: 50%; }

.canvas-frame::after {
  position: absolute;
  inset: 4.6%;
  pointer-events: none;
  border: 1px dashed rgba(255, 255, 255, 0.72);
  border-radius: 50%;
  box-shadow: 0 0 0 1px rgba(7, 29, 73, 0.22);
  content: "";
  opacity: 0;
  transition: opacity 180ms ease;
}

.canvas-frame.is-circle::after { opacity: 1; }

canvas {
  display: block;
  width: 100%;
  height: 100%;
  cursor: grab;
}

canvas:active { cursor: grabbing; }
canvas:focus-visible { outline: 4px solid rgba(239, 107, 46, 0.55); outline-offset: -4px; }

.canvas-help { margin: 12px 0 0; color: var(--muted); font-size: 0.74rem; }

.action-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 22px; }

.button {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 13px 17px;
  border: 1px solid transparent;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 800;
  transition: background 180ms ease, transform 180ms ease, opacity 180ms ease;
}

.button:not(:disabled):hover { transform: translateY(-2px); }
.button:disabled { cursor: not-allowed; opacity: 0.42; }
.button svg { width: 20px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; }
.button-primary { color: white; background: var(--orange); }
.button-secondary { color: var(--navy); border-color: var(--navy); background: transparent; }
.status { min-height: 22px; margin: 11px 0 0; color: var(--success); font-size: 0.77rem; text-align: center; }

.election-pause {
  max-width: 920px;
  margin: 0 auto 34px;
  padding: 20px 22px;
  color: #682000;
  border: 1px solid #f2a17d;
  border-radius: 12px;
  background: #fff0e8;
}

.election-pause p { margin: 5px 0 0; }

.trust-section {
  display: grid;
  grid-template-columns: minmax(280px, 0.8fr) minmax(430px, 1.2fr);
  gap: clamp(40px, 8vw, 120px);
  padding: clamp(80px, 9vw, 130px) clamp(22px, 7vw, 110px);
  color: white;
  background: var(--navy);
  border-top: 10px solid;
  border-image: linear-gradient(90deg, var(--cyan) 0 33.333%, var(--orange) 33.333% 66.666%, var(--yellow) 66.666% 100%) 1;
}

.trust-section h2 { color: white; font-size: clamp(2.8rem, 5.3vw, 5.3rem); }
.trust-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: start; }
.trust-grid article { padding-top: 18px; border-top: 1px solid rgba(255, 255, 255, 0.2); }
.trust-grid article > span { color: var(--orange); font-family: "Wirants Official", sans-serif; font-size: 1.35rem; font-weight: 900; }
.trust-grid h3 { margin: 24px 0 8px; font-size: 1rem; }
.trust-grid p { margin: 0; color: rgba(255, 255, 255, 0.62); font-size: 0.82rem; }

.campaign-return {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 34px clamp(22px, 7vw, 110px);
  color: var(--navy);
  background: var(--yellow);
  border-top: 8px solid var(--cyan);
}

.campaign-return-kicker {
  display: block;
  margin-bottom: 5px;
  color: var(--navy);
  font-size: 0.69rem;
  font-weight: 850;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.campaign-return h2 {
  margin: 0;
  color: var(--navy);
  font-size: clamp(1.45rem, 2.3vw, 2.45rem);
  line-height: 1;
}

.campaign-return-button {
  display: inline-flex;
  min-height: 54px;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 22px;
  color: white;
  border: 2px solid var(--navy);
  border-radius: 999px;
  background: var(--navy);
  box-shadow: 0 6px 0 var(--orange);
  font-size: 0.9rem;
  font-weight: 850;
  text-decoration: none;
}

.campaign-return-button:hover {
  color: var(--navy);
  background: white;
}

.site-footer {
  position: relative;
  display: grid;
  overflow: hidden;
  grid-template-columns: minmax(230px, 0.7fr) minmax(360px, 1.3fr);
  gap: 38px clamp(50px, 8vw, 130px);
  align-items: center;
  padding: 64px clamp(22px, 7vw, 110px) 42px;
  color: white;
  background-color: var(--navy);
  background-image:
    linear-gradient(90deg, rgba(0, 20, 95, 0.98), rgba(0, 20, 95, 0.88)),
    url("assets/fundo-oficial.png");
  background-position: center, right 42%;
  background-repeat: no-repeat;
  background-size: cover, auto 190%;
}

.site-footer::before {
  position: absolute;
  inset: 0 0 auto;
  height: 10px;
  background: linear-gradient(90deg, var(--cyan) 0 33.333%, var(--orange) 33.333% 66.666%, var(--yellow) 66.666% 100%);
  content: "";
}

.footer-brand,
.footer-legal,
.prelaunch-warning { position: relative; z-index: 1; }

.footer-brand { display: flex; align-items: center; }
.footer-brand img { display: block; width: min(100%, 300px); height: auto; }
.footer-legal { justify-self: end; max-width: 740px; text-align: right; }
.footer-kicker {
  display: inline-block;
  margin-bottom: 10px;
  color: var(--yellow);
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.footer-legal p { margin: 0 0 20px; color: rgba(255, 255, 255, 0.74); font-size: 0.79rem; }
.footer-legal nav { display: flex; justify-content: flex-end; gap: 10px; font-size: 0.76rem; font-weight: 750; }
.footer-legal nav a {
  padding: 9px 13px;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 999px;
  text-decoration: none;
}
.footer-legal nav a:hover { color: var(--navy); background: white; }
.footer-legal nav .footer-campaign-back {
  color: var(--navy);
  border-color: var(--yellow);
  background: var(--yellow);
  font-weight: 850;
}
.footer-legal nav .footer-campaign-back:hover { border-color: white; background: white; }
.prelaunch-warning {
  grid-column: 1 / -1;
  margin: 0;
  padding: 18px 20px 0;
  color: #ffd8c2;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  font-size: 0.72rem;
  text-align: center;
}

@media (max-width: 930px) {
  .hero {
    grid-template-columns: 1fr;
    padding-top: 196px;
    background-position: center, right top;
    background-size: cover, auto 94%;
  }
  .hero h1 { font-size: clamp(4.2rem, 15vw, 7.8rem); }
  .hero-card { max-width: 640px; }
  .generator-shell { grid-template-columns: 1fr; max-width: 680px; }
  .trust-section { grid-template-columns: 1fr; }
}

@media (max-width: 620px) {
  .site-header { gap: 12px; padding: 24px 18px; }
  .brand-logo { width: 116px; }
  .header-actions { margin-left: auto; }
  .campaign-back {
    max-width: 164px;
    min-height: 38px;
    justify-content: center;
    padding: 7px 11px;
    font-size: 0.7rem;
    line-height: 1.08;
    text-align: center;
  }
  .header-tag { display: none; }
  .hero {
    min-height: auto;
    padding: 150px 20px 68px;
    background-image:
      linear-gradient(180deg, rgba(0, 20, 95, 0.7) 0%, rgba(0, 20, 95, 0.92) 40%, rgba(0, 20, 95, 0.99) 78%),
      url("assets/fundo-oficial.png");
    background-position: center, center top;
    background-size: cover, 100% auto;
  }
  .hero h1 { font-size: clamp(3.8rem, 18vw, 5.5rem); line-height: 0.86; }
  .hero-lead { margin-top: 28px; }
  .hero-card { padding: 25px; }
  .generator-section { padding-inline: 15px; }
  .preview-toolbar { align-items: flex-start; flex-direction: column; }
  .canvas-frame { border-radius: 12px; }
  .action-row { grid-template-columns: 1fr; }
  .trust-grid { grid-template-columns: 1fr; }
  .trust-grid h3 { margin-top: 10px; }
  .campaign-band { height: 124px; background-size: auto 136%; }
  .campaign-return { align-items: stretch; flex-direction: column; }
  .campaign-return-button { align-self: flex-start; }
  .site-footer { grid-template-columns: 1fr; padding-top: 54px; }
  .footer-brand img { width: 220px; }
  .footer-legal { justify-self: start; text-align: left; }
  .footer-legal nav { flex-wrap: wrap; justify-content: flex-start; }
}

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