* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

:root {
  font-family: var(--font-family-base);
  color: var(--color-text);
  background: var(--color-background);
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--color-background);
}

button,
input,
select {
  font: inherit;
}

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

button {
  border: 0;
  cursor: pointer;
}

h1,
h2,
h3 {
  font-family: var(--font-family-heading);
}

.site-header {
  position: relative;
  z-index: 10;
  background: var(--color-header);
  color: var(--color-on-dark);
  border-bottom: 1px solid rgb(255 255 255 / 8%);
}

.header-inner {
  width: min(100% - 40px, var(--content-width));
  min-height: 78px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 28px;
}

.brand-link {
  flex: 0 0 auto;
  padding: 0;
  display: flex;
  align-items: center;
  background: transparent;
}

.brand-link img {
  display: block;
  width: auto;
  height: 46px;
  max-width: 210px;
  object-fit: contain;
}

.main-nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 25px;
}

.nav-link {
  position: relative;
  padding: 29px 0 25px;
  border: 0;
  background: transparent;
  color: #E5E7EB;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}

.nav-link::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 19px;
  left: 0;
  height: 2px;
  border-radius: var(--radius-pill);
  background: var(--brand-gradient);
  transform: scaleX(0);
  transition: transform .2s ease;
}

.nav-link:hover::after,
.nav-link:focus-visible::after,
.nav-link.is-active::after {
  transform: scaleX(1);
}

.login-button {
  flex: 0 0 auto;
  padding: 10px 19px;
  border: 1px solid rgb(255 255 255 / 55%);
  border-radius: var(--radius-button);
  background: transparent;
  color: var(--color-on-dark);
  font-weight: 700;
}

.hero {
  position: relative;
  min-height: 570px;
  overflow: hidden;
  display: grid;
  align-items: center;
  color: var(--color-on-dark);
  background:
    linear-gradient(90deg, rgb(7 12 19 / 100%) 0%, rgb(7 12 19 / 96%) 43%, rgb(7 12 19 / 70%) 72%, rgb(7 12 19 / 92%) 100%),
    radial-gradient(circle at 79% 47%, rgb(227 27 35 / 54%) 0 3%, transparent 29%),
    linear-gradient(135deg, #111827 0%, #070C13 54%, #19070B 100%);
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.hero::before {
  inset: 0 0 0 46%;
  background:
    linear-gradient(118deg, transparent 0 39%, rgb(227 27 35 / 75%) 39.5% 40%, transparent 40.5%),
    linear-gradient(164deg, transparent 0 57%, rgb(227 27 35 / 55%) 57.5% 58%, transparent 58.5%),
    radial-gradient(ellipse at 78% 60%, rgb(179 76 155 / 18%), transparent 58%);
  filter: blur(.2px);
}

.hero::after {
  width: 520px;
  height: 230px;
  right: -80px;
  bottom: -90px;
  border: 2px solid rgb(227 27 35 / 52%);
  border-left-color: transparent;
  border-radius: 70% 20% 0 0;
  box-shadow: 0 -12px 45px rgb(227 27 35 / 20%);
  transform: skewX(-17deg);
}

.hero-light {
  position: absolute;
  right: 4%;
  top: 16%;
  width: 42%;
  height: 55%;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgb(227 27 35 / 24%), transparent 68%);
  filter: blur(22px);
}

.hero-inner {
  position: relative;
  z-index: 1;
  width: min(100% - 40px, var(--content-width));
  margin: 0 auto;
  padding: var(--space-13) 0;
}

.hero-kicker,
.section-eyebrow {
  margin: 0 0 14px;
  color: var(--color-primary);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.hero h1 {
  max-width: var(--hero-title-width);
  margin: 0 0 20px;
  font-size: clamp(40px, 5.2vw, 68px);
  line-height: 1.03;
  letter-spacing: -.045em;
}

.hero h1 span {
  background: var(--brand-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-copy {
  max-width: var(--hero-copy-width);
  margin: 0 0 30px;
  color: var(--color-text-on-dark-muted);
  font-size: 17px;
  line-height: 1.65;
}

.actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.button-primary,
.button-secondary {
  min-height: 52px;
  padding: 0 24px;
  border-radius: var(--radius-pill);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  color: var(--color-on-dark);
  font-weight: 750;
}

.button-primary {
  background: var(--color-primary);
}

.button-secondary {
  border: 1px solid transparent;
  background:
    linear-gradient(var(--color-graphite-deep), var(--color-graphite-deep)) padding-box,
    var(--brand-gradient) border-box;
}

main {
  width: min(100% - 40px, var(--content-width));
  margin: 0 auto;
  padding: 64px 0 72px;
}

.view {
  display: none;
}

.view.active {
  display: block;
}

.cols {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  padding: 30px;
  box-shadow: 0 18px 45px var(--color-card-shadow);
}

.card h2 {
  margin: 0 0 12px;
  font-size: 25px;
  letter-spacing: -.03em;
}

.card p {
  color: var(--color-text-muted);
  line-height: 1.65;
}

.card > button,
.card form button {
  width: 100%;
  margin-top: 12px;
  padding: 14px 22px;
  border-radius: var(--radius-button);
  background: var(--color-primary);
  color: var(--color-on-dark);
  font-weight: 750;
}

.audience-card {
  position: relative;
  overflow: hidden;
  padding-top: 42px;
}

.audience-card::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 4px;
  border-radius: var(--radius-pill) var(--radius-pill) 0 0;
  background: var(--brand-gradient);
}

.card-index {
  display: inline-block;
  margin-bottom: 18px;
  color: var(--color-primary);
  font-family: var(--font-family-heading);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .12em;
}

.benefits {
  padding-top: 78px;
  scroll-margin-top: 92px;
}

.section-heading {
  max-width: 690px;
  margin-bottom: 36px;
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(30px, 4vw, 44px);
  line-height: 1.12;
  letter-spacing: -.04em;
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  background: var(--color-surface);
  box-shadow: 0 14px 35px var(--color-card-shadow);
}

.benefit-item {
  min-width: 0;
  padding: 28px 24px;
  display: flex;
  gap: 16px;
}

.benefit-item + .benefit-item {
  border-left: 1px solid var(--color-border);
}

.benefit-item svg {
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  fill: none;
  stroke: var(--color-primary);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.benefit-item h3 {
  margin: 2px 0 7px;
  font-size: 15px;
}

.benefit-item p {
  margin: 0;
  color: var(--color-note);
  font-size: 13px;
  line-height: 1.5;
}

.back {
  margin-bottom: 20px;
  padding: 11px 18px;
  border-radius: var(--radius-button);
  background: var(--color-secondary-button);
  color: var(--color-on-dark);
  font-weight: 700;
}

#lojista,
#participante,
#cadastro-loja,
#cadastro-loja-pendente,
#cadastro-pessoa,
#login,
#recuperar-senha,
#nova-senha {
  max-width: var(--form-width);
  margin: 0 auto;
}

label {
  display: block;
  margin: 14px 0;
  font-weight: 650;
  font-size: 14px;
}

input,
select {
  display: block;
  width: 100%;
  margin-top: 6px;
  padding: 13px;
  border: 1px solid var(--color-input-border);
  border-radius: var(--radius-input);
  background: var(--color-surface);
  color: var(--color-text);
}

.note {
  color: var(--color-note);
  font-size: 13px;
}

.home-note {
  margin-top: 24px;
}

/* Identidade visual dos pré-cadastros existentes. */
#cadastro-loja > .back,
#cadastro-pessoa > .back,
#cadastro-loja form button[type="submit"],
#cadastro-pessoa form button[type="submit"] {
  border-radius: var(--radius-pill);
  background: var(--brand-gradient);
  color: var(--color-on-dark);
}

#cadastro-loja input,
#cadastro-pessoa input {
  border: 1px solid transparent;
  background:
    linear-gradient(var(--color-surface), var(--color-surface)) padding-box,
    linear-gradient(var(--color-input-border), var(--color-input-border)) border-box;
}

#cadastro-loja input:focus,
#cadastro-pessoa input:focus {
  border-color: transparent;
  background:
    linear-gradient(var(--color-surface), var(--color-surface)) padding-box,
    var(--brand-gradient) border-box;
  outline: none;
  box-shadow: 0 0 0 3px rgb(89 84 200 / 12%);
}

/* Autenticação — reutiliza a identidade visual aprovada. */
.auth-view .card > p {
  margin-top: 0;
}

.auth-view input {
  border: 1px solid transparent;
  background:
    linear-gradient(var(--color-surface), var(--color-surface)) padding-box,
    linear-gradient(var(--color-input-border), var(--color-input-border)) border-box;
}

.auth-view input:focus {
  border-color: transparent;
  background:
    linear-gradient(var(--color-surface), var(--color-surface)) padding-box,
    var(--brand-gradient) border-box;
  outline: none;
  box-shadow: 0 0 0 3px rgb(89 84 200 / 12%);
}

.auth-links {
  margin-top: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px 18px;
  flex-wrap: wrap;
  color: var(--color-note);
  font-size: 13px;
}

.auth-links button {
  padding: 0;
  background: transparent;
  color: var(--color-secondary);
  font-weight: 750;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.form-feedback {
  min-height: 20px;
  margin: 12px 0 0;
  color: var(--color-note);
  font-size: 13px;
  line-height: 1.5;
}

.form-feedback:empty {
  min-height: 0;
  margin-top: 0;
}

.form-feedback[data-state="success"] {
  color: #15803D;
}

.form-feedback[data-state="error"] {
  color: #B91C1C;
}

button:disabled {
  cursor: wait;
  opacity: .68;
}
/* Componentes reservados para o futuro catálogo privado autenticado. */
.catalog-search {
  display: flex;
  align-items: center;
  width: 100%;
  padding: 2px;
  border-radius: var(--radius-pill);
  background: var(--brand-gradient);
}

.catalog-search__field {
  width: 100%;
  margin: 0;
  border: 0;
  border-radius: var(--radius-pill);
  background: var(--color-surface);
  color: var(--color-text);
  outline: 0;
}

.catalog-search__field:focus-visible {
  box-shadow: inset 0 0 0 2px var(--color-secondary);
}

.catalog-search__placeholder {
  color: var(--color-text-muted);
}

@supports ((background-clip: text) or (-webkit-background-clip: text)) {
  .catalog-search__placeholder {
    background: var(--brand-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
  }
}

.progress-track {
  width: 100%;
  overflow: hidden;
  border-radius: var(--radius-pill);
  background: var(--color-progress-track);
}

.progress-bar {
  min-height: 8px;
  border-radius: var(--radius-pill);
  background: var(--brand-gradient);
}

.filter-control {
  border: 1px solid var(--color-secondary);
  border-radius: var(--radius-pill);
  background: var(--color-surface);
  color: var(--color-secondary);
}

.filter-control[aria-pressed="true"],
.filter-control.is-selected {
  border-color: transparent;
  border-radius: var(--radius-pill);
  background: var(--brand-gradient);
  color: var(--color-on-dark);
}

footer {
  min-height: 92px;
  padding: 28px 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: var(--color-graphite-deep);
  color: #9CA3AF;
  font-size: 13px;
  text-align: center;
}

footer span:first-child {
  color: var(--color-on-dark);
  font-family: var(--font-family-heading);
  font-weight: 700;
}

@media (max-width: 980px) {
  .header-inner {
    padding: 14px 0;
    flex-wrap: wrap;
  }

  .main-nav {
    order: 3;
    width: 100%;
    margin: 0;
    justify-content: flex-start;
    gap: 22px;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .main-nav::-webkit-scrollbar {
    display: none;
  }

  .nav-link {
    padding: 10px 0 14px;
  }

  .nav-link::after {
    bottom: 7px;
  }

  .login-button {
    margin-left: auto;
  }

  .benefits-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .benefit-item:nth-child(3) {
    border-left: 0;
  }

  .benefit-item:nth-child(n+3) {
    border-top: 1px solid var(--color-border);
  }
}

@media (max-width: 720px) {
  .header-inner,
  .hero-inner,
  main {
    width: min(100% - 32px, var(--content-width));
  }

  .brand-link img {
    height: 38px;
    max-width: 174px;
  }

  .login-button {
    padding: 9px 15px;
  }

  .hero {
    min-height: 560px;
  }

  .hero::before {
    left: 20%;
    opacity: .65;
  }

  .hero h1 {
    font-size: clamp(38px, 11vw, 54px);
  }

  .hero-copy {
    font-size: 15px;
  }

  .actions,
  .button-primary,
  .button-secondary {
    width: 100%;
  }

  main {
    padding-top: 40px;
  }

  .cols,
  .benefits-grid {
    grid-template-columns: 1fr;
  }

  .benefit-item + .benefit-item,
  .benefit-item:nth-child(3) {
    border-left: 0;
    border-top: 1px solid var(--color-border);
  }

  .benefits {
    padding-top: 58px;
  }

  .card {
    padding: 24px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .nav-link::after {
    transition: none;
  }
}
/* Alinhamento dos botões dos cartões */
.audience-card {
  display: flex;
  flex-direction: column;
}

.audience-card > button {
  margin-top: auto;
}
