@font-face {
  font-family: Geometria;
  src: url("./fonts/Geometria.ttf") format("truetype");
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: Geometria;
  src: url("./fonts/Geometria-Bold.ttf") format("truetype");
  font-weight: 700;
  font-display: swap;
}

@font-face {
  font-family: Geometria;
  src: url("./fonts/Geometria-ExtraBold.ttf") format("truetype");
  font-weight: 800;
  font-display: swap;
}

:root {
  --navy: #061428;
  --navy-2: #0b2344;
  --blue: #005ca9;
  --blue-deep: #00386b;
  --yellow: #fdc300;
  --yellow-2: #ffe067;
  --ink: #f4f7fb;
  --muted: #b7c4d6;
  --line: rgb(255 255 255 / 0.12);
  --card: rgb(8 28 54 / 0.78);
  --danger: #ffb4b4;
  --radius: 22px;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html,
body {
  margin: 0;
  min-height: 100%;
  overflow-x: clip;
  background:
    radial-gradient(1200px 700px at 80% -10%, rgb(0 158 61 / 0.16), transparent 55%),
    radial-gradient(900px 600px at -10% 20%, rgb(0 92 169 / 0.45), transparent 50%),
    linear-gradient(180deg, #07182e 0%, var(--navy) 48%, #04101f 100%);
  color: var(--ink);
  font-family: Geometria, "Avenir Next", "Segoe UI", sans-serif;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  min-height: 100dvh;
}

img,
canvas {
  max-width: 100%;
  height: auto;
}

.page {
  width: min(1120px, 100%);
  margin: 0 auto;
  padding: 28px max(16px, env(safe-area-inset-right)) calc(64px + env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left));
}

.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px 24px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line);
}

.logo {
  display: block;
  width: min(220px, 46vw);
  height: auto;
}

.tag {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.hero {
  padding: 36px 0 28px;
  max-width: 720px;
}

.kicker {
  margin: 0 0 10px;
  color: var(--yellow);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

h1 {
  margin: 0 0 14px;
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 800;
  line-height: 0.98;
  letter-spacing: -0.03em;
}

.lead {
  margin: 0 0 22px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.5;
  max-width: 58ch;
}

.lead strong {
  color: var(--ink);
  font-weight: 700;
}

.steps {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.steps li {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.steps span {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: var(--yellow);
  color: var(--navy);
  font-size: 12px;
}

.stage {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.95fr);
  gap: 36px;
  align-items: center;
  padding: 8px 0 48px;
}

.composer {
  display: grid;
  justify-items: center;
  gap: 14px;
}

.ring {
  width: min(100%, 520px);
  aspect-ratio: 1;
  padding: 10px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 40%, rgb(253 195 0 / 0.22), transparent 58%),
    rgb(255 255 255 / 0.04);
  box-shadow:
    0 0 0 1px rgb(253 195 0 / 0.28),
    0 30px 80px rgb(0 0 0 / 0.35);
}

#preview {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 50%;
  background: #000;
  cursor: grab;
  touch-action: none;
}

#preview.is-dragging {
  cursor: grabbing;
}

.hint {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  text-align: center;
}

.card {
  margin: 0;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  backdrop-filter: blur(16px);
  box-shadow: 0 18px 50px rgb(0 0 0 / 0.22);
}

.card h2 {
  margin: 0 0 8px;
  font-size: 22px;
  font-weight: 800;
}

.card-lead {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}

.drop {
  display: grid;
  justify-items: center;
  gap: 6px;
  padding: 22px 16px;
  border: 1.5px dashed rgb(253 195 0 / 0.45);
  border-radius: 16px;
  background: rgb(253 195 0 / 0.05);
  text-align: center;
  cursor: pointer;
}

.drop:hover,
.drop.is-over {
  background: rgb(253 195 0 / 0.1);
  border-color: var(--yellow);
}

.drop:focus-within {
  outline: 2px solid var(--yellow);
  outline-offset: 3px;
}

.drop[aria-busy="true"] {
  pointer-events: none;
  opacity: 0.7;
}

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

.drop-icon {
  width: 42px;
  height: 42px;
  margin-bottom: 4px;
  border-radius: 12px;
  background:
    linear-gradient(180deg, var(--yellow) 0%, #e0ae00 100%);
  box-shadow: 0 8px 16px rgb(253 195 0 / 0.2);
  position: relative;
}

.drop-icon::before,
.drop-icon::after {
  content: "";
  position: absolute;
  background: var(--navy);
}

.drop-icon::before {
  width: 16px;
  height: 2px;
  left: 13px;
  top: 20px;
}

.drop-icon::after {
  width: 2px;
  height: 16px;
  left: 20px;
  top: 13px;
}

.drop-title {
  font-size: 15px;
  font-weight: 700;
  max-width: 100%;
  overflow-wrap: anywhere;
}

.drop-sub {
  color: var(--muted);
  font-size: 12px;
}

.status {
  margin: 12px 0 0;
  font-size: 13px;
}

.status[data-kind="error"] {
  color: var(--danger);
}

.status[data-kind="ok"] {
  color: #c8f5c0;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 48px;
  margin-top: 14px;
  border: 0;
  border-radius: 12px;
  font: inherit;
  font-size: 15px;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}

.btn:disabled {
  opacity: 0.42;
  cursor: not-allowed;
}

.btn-primary {
  background: var(--yellow);
  color: var(--navy);
}

.btn-primary:hover:not(:disabled) {
  background: var(--yellow-2);
}

.btn-download {
  background: #fff;
  color: var(--navy);
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line);
  min-height: 42px;
  font-size: 13px;
}

.adjust {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.zoom-label {
  margin: 0 0 10px;
  font-size: 13px;
  font-weight: 700;
}

.zoom-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
}

.zoom-row input[type="range"] {
  width: 100%;
  min-width: 0;
  accent-color: var(--yellow);
}

#menor {
  grid-area: auto;
}

#maior {
  grid-area: auto;
}

.btn-size {
  width: auto;
  min-height: 40px;
  margin-top: 0;
  padding: 0 12px;
  background: var(--yellow);
  color: var(--navy);
  font-size: 13px;
  white-space: nowrap;
}

.btn-size:hover:not(:disabled) {
  background: var(--yellow-2);
}

.adjust-help {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 12px;
}

@media (max-width: 700px) {
  .zoom-row {
    grid-template-columns: 1fr 1fr;
    grid-template-areas:
      "range range"
      "menor maior";
  }

  .zoom-row input[type="range"] {
    grid-area: range;
  }

  #menor {
    grid-area: menor;
  }

  #maior {
    grid-area: maior;
  }

  .btn-size {
    width: 100%;
    min-height: 44px;
  }
}

.fine {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 12px;
  text-align: center;
}

.salvo {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.salvo-ok {
  margin: 0 0 8px;
  color: var(--yellow);
  font-size: 20px;
  font-weight: 800;
  line-height: 1.25;
}

.salvo-help {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.4;
}

.save-sheet {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgb(4 12 24 / 0.82);
}

.save-sheet[hidden] {
  display: none;
}

.save-sheet-card {
  width: min(100%, 420px);
  padding: 18px;
  border-radius: var(--radius);
  background: var(--card);
  text-align: center;
}

.save-title {
  margin: 0 0 6px;
  color: var(--yellow);
  font-size: 20px;
  font-weight: 800;
}

.save-help {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.4;
}

.save-sheet-card img {
  display: block;
  width: 100%;
  height: auto;
  margin-bottom: 14px;
  border-radius: 50%;
  background: #000;
  -webkit-touch-callout: default;
  -webkit-user-select: none;
  user-select: none;
  pointer-events: auto;
  touch-action: manipulation;
}

.examples {
  padding-top: 12px;
}

.examples-head h2 {
  margin: 0 0 6px;
  font-size: 28px;
  font-weight: 800;
}

.examples-head p {
  margin: 0 0 18px;
  color: var(--muted);
}

.example-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.example-grid img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 50%;
  background: #000;
  box-shadow: 0 0 0 1px rgb(255 255 255 / 0.1);
}

.mais {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  margin-top: 28px;
  max-width: 520px;
}

.promo {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 18px;
  align-items: center;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
}

.promo-zap {
  grid-template-columns: 1fr;
}

.promo-logo {
  width: 88px;
  height: 88px;
  border-radius: 22px;
  object-fit: cover;
}

.promo-kicker {
  margin: 0 0 6px;
  color: var(--yellow);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.promo-body h2 {
  margin: 0 0 8px;
  font-size: 22px;
  font-weight: 800;
}

.promo-body p {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}

.promo .btn {
  margin-top: 0;
  width: auto;
  min-width: 220px;
}

.btn-whatsapp {
  background: #25d366;
  color: #06210f;
}

.btn-whatsapp:hover {
  background: #4ae07f;
}

.foot {
  margin-top: 48px;
  padding: 18px 0 8px;
  border-top: 1px solid var(--line);
}

.foot p {
  margin: 0 0 6px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
}

.foot .legal-title {
  margin-bottom: 8px;
  color: var(--ink);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.foot .cnpj {
  margin-top: 8px;
  color: var(--yellow);
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.foot .credit {
  margin-top: 14px;
  color: var(--muted);
  font-size: 12px;
}

@media (max-width: 1100px) and (min-width: 701px) {
  .page {
    padding-top: 22px;
    padding-left: max(20px, env(safe-area-inset-left));
    padding-right: max(20px, env(safe-area-inset-right));
  }

  .stage {
    grid-template-columns: minmax(280px, 1fr) minmax(280px, 1fr);
    gap: 24px;
    align-items: start;
  }

  .ring {
    width: min(100%, 440px);
  }

  .card {
    padding: 20px;
  }
}

@media (max-width: 700px) {
  .page {
    padding-top: calc(14px + env(safe-area-inset-top));
    padding-left: max(12px, env(safe-area-inset-left));
    padding-right: max(12px, env(safe-area-inset-right));
    padding-bottom: calc(40px + env(safe-area-inset-bottom));
  }

  .top {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .logo {
    width: min(180px, 58vw);
  }

  .tag {
    font-size: 12px;
  }

  .hero {
    padding: 18px 0 10px;
  }

  h1 {
    font-size: clamp(26px, 8vw, 36px);
  }

  .lead {
    font-size: 15px;
    margin-bottom: 14px;
  }

  .steps {
    gap: 8px 12px;
  }

  .steps li {
    font-size: 12px;
  }

  .stage {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 4px 0 28px;
  }

  .ring {
    width: min(100%, 340px);
    padding: 7px;
  }

  .hint {
    font-size: 12px;
    padding: 0 8px;
  }

  .card {
    padding: 18px 16px;
  }

  .card h2 {
    font-size: 20px;
  }

  .drop {
    padding: 18px 12px;
  }

  .example-grid {
    gap: 10px;
  }

  .examples-head h2 {
    font-size: 24px;
  }

  .mais {
    grid-template-columns: 1fr;
  }

  .promo {
    grid-template-columns: 1fr;
    justify-items: start;
  }

  .promo .btn {
    width: 100%;
    min-width: 0;
  }

  .foot {
    margin-top: 32px;
  }

  .foot .cnpj {
    font-size: 14px;
    overflow-wrap: anywhere;
  }
}

@media (max-width: 380px) {
  .ring {
    width: min(100%, 280px);
  }

  .btn-size {
    font-size: 12px;
    padding: 0 8px;
  }
}

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