/* Brasil Showdown palette (docs/browser-shell-visual-proposal.md): navy, surface, cream, gold. Gumroad-like layout. */
:root {
  --navy: #080e26;
  --surface: #121d4a;
  --surface-2: #1a2860;
  --cream: #fff3d5;
  --gold: #ffc82e;
  --gold-soft: #ffe59e;
  --muted: #9aa7d0;
  --red: #ff3b4e;
  --line: rgba(255, 243, 213, 0.28);
  --radius: 6px;
  --font: "Barlow", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --display: "Barlow Condensed", "Barlow", ui-sans-serif, system-ui, sans-serif;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--navy);
  color: var(--cream);
  font-family: var(--font);
  font-size: 18px;
  line-height: 1.55;
}

img, video { display: block; max-width: 100%; height: auto; }

a { color: var(--gold-soft); }

h1, h2, .display {
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: 0.01em;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(8, 14, 38, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(6px);
}

.topbar-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 8px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--cream);
  font-family: var(--display);
  font-size: 20px;
  font-weight: 700;
  text-decoration: none;
}

.brand img {
  width: 32px;
  height: 32px;
  border-radius: 50%;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--cream);
  font-family: var(--display);
  font-size: 19px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: transform .12s ease, box-shadow .12s ease, background-color .12s ease;
}

.button:hover,
.button:focus-visible {
  transform: translate(-3px, -3px);
  box-shadow: 3px 3px 0 var(--gold);
  outline: none;
}

.button-gold {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--navy);
}

.button-gold:hover,
.button-gold:focus-visible {
  background: var(--gold-soft);
  box-shadow: 3px 3px 0 var(--cream);
}

.button-block { width: 100%; padding: 14px 18px; font-size: 22px; }
.button-small { min-height: 36px; padding: 6px 14px; font-size: 16px; }

main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px 16px 64px;
}

.product {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: clip;
}

.cover {
  width: 100%;
  aspect-ratio: 4 / 1;
  object-fit: cover;
  object-position: center 50%;
  border-bottom: 1px solid var(--line);
}

.product-grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr);
}

.product-main { border-right: 1px solid var(--line); }

.product-head {
  padding: 22px 24px;
  border-bottom: 1px solid var(--line);
}

h1 {
  margin: 0 0 14px;
  font-size: clamp(36px, 6vw, 60px);
  line-height: 0.98;
  text-transform: uppercase;
}

.meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 16px;
}

.price-tag {
  position: relative;
  display: inline-flex;
  align-items: center;
  height: 38px;
  padding: 0 12px 0 14px;
  margin-right: 14px;
  background: var(--gold);
  color: var(--navy);
  font-family: var(--display);
  font-size: 19px;
  font-weight: 700;
  white-space: nowrap;
}

.price-tag::after {
  content: "";
  position: absolute;
  right: -14px;
  top: 0;
  border-top: 19px solid transparent;
  border-bottom: 19px solid transparent;
  border-left: 14px solid var(--gold);
}

.creator {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--cream);
}

.creator img {
  width: 24px;
  height: 24px;
  border-radius: 50%;
}

.prose { padding: 8px 24px 24px; }

.prose h2 {
  margin: 30px 0 8px;
  font-size: 30px;
  line-height: 1.1;
  text-transform: uppercase;
  color: var(--gold-soft);
}

.prose p { margin: 0 0 14px; }

.prose ul { margin: 0 0 14px; padding-left: 22px; }

.prose li { margin-bottom: 6px; }

.prose li::marker { color: var(--gold); }

.lead { font-size: 21px; }

.media-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 16px 0;
}

.media-grid figure {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: #000;
}

.media-grid figure.wide { grid-column: 1 / -1; }

.media-grid img,
.media-grid video {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.media-grid figcaption {
  padding: 6px 10px;
  background: var(--navy);
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}

.note {
  padding: 14px 16px;
  margin: 18px 0;
  border: 1px solid var(--line);
  border-left: 4px solid var(--gold);
  border-radius: var(--radius);
  background: var(--navy);
  color: var(--muted);
  font-size: 16px;
}

.buy-card {
  position: sticky;
  top: 60px;
  padding: 22px;
  display: grid;
  gap: 14px;
}

.buy-price {
  display: flex;
  align-items: baseline;
  gap: 6px;
  font-family: var(--display);
  font-weight: 700;
}

.buy-price small { font-size: 18px; color: var(--muted); }
.buy-price strong { font-size: 52px; line-height: 1; color: var(--gold); }
.buy-price span { font-size: 20px; }

.buy-list {
  margin: 0;
  padding: 0;
  list-style: none;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.buy-list li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 14px;
  font-size: 16px;
}

.buy-list li + li { border-top: 1px solid var(--line); }

.buy-list span:first-child { color: var(--muted); }
.buy-list span:last-child { font-weight: 700; text-align: right; }

.small { font-size: 14px; color: var(--muted); margin: 0; }

.section {
  margin-top: 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.section > h2 {
  margin: 0;
  padding: 16px 24px;
  font-size: 30px;
  text-transform: uppercase;
  border-bottom: 1px solid var(--line);
}

.section-intro { margin: 0; padding: 16px 24px 0; }

.offers {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  padding: 16px 24px 24px;
}

.offer {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 18px;
  background: var(--navy);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.offer h3 {
  margin: 0;
  font-family: var(--display);
  font-size: 26px;
  line-height: 1.1;
  text-transform: uppercase;
}

.offer-art {
  width: calc(100% + 36px);
  max-width: none;
  height: auto;
  aspect-ratio: 15 / 7;
  margin: -18px -18px 8px;
  border-radius: 5px 5px 0 0;
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}

.offer .offer-price {
  font-family: var(--display);
  font-size: 34px;
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
}

.offer p { margin: 0; }

.offer ul { margin: 0; padding-left: 20px; }

.offer li::marker { color: var(--gold); }

.offer .button { margin-top: auto; }

.section-foot { margin: 0; padding: 0 24px 22px; }

.faq details { border-bottom: 1px solid var(--line); }
.faq details:last-child { border-bottom: 0; }

.faq summary {
  padding: 15px 24px;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 22px; line-height: 1; color: var(--gold); }
.faq details[open] summary::after { content: "\2013"; }

.faq details p { margin: 0; padding: 0 24px 18px; color: var(--muted); }

.footer {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px 40px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  color: var(--muted);
  font-size: 15px;
}

.footer a { color: var(--muted); }

.thanks {
  max-width: 720px;
  margin: 40px auto;
  padding: 32px 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  text-align: center;
  box-shadow: 8px 8px 0 var(--gold);
}

.thanks h1 { color: var(--gold); }

.thanks img {
  width: 96px;
  height: 96px;
  margin: 0 auto 16px;
  border-radius: 50%;
}

.thanks .actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 24px;
}

.mobile-cta {
  display: none;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 20;
  align-items: center;
  gap: 12px;
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  background: rgba(8, 14, 38, 0.96);
  border-top: 1px solid var(--line);
}

.mobile-cta .button { flex: 1; }
.mobile-cta strong { font-family: var(--display); font-size: 20px; white-space: nowrap; }

@media (max-width: 860px) {
  body { font-size: 17px; }
  .cover { aspect-ratio: 3 / 1; object-position: center 50%; }
  .product-grid { grid-template-columns: 1fr; }
  .product-main { border-right: 0; }
  .aside { border-top: 1px solid var(--line); }
  .buy-card { position: static; padding: 20px 16px; }
  .product-head, .prose { padding-left: 16px; padding-right: 16px; }
  .section > h2, .faq summary, .section-intro { padding-left: 16px; padding-right: 16px; }
  .faq details p, .section-foot { padding-left: 16px; padding-right: 16px; }
  .offers { grid-template-columns: 1fr; padding: 16px; }
  .media-grid { grid-template-columns: 1fr; }
  .mobile-cta { display: flex; }
  body.has-mobile-cta { padding-bottom: 80px; }
}

@media (prefers-reduced-motion: reduce) {
  .button { transition: none; }
}

a.price-tag { text-decoration: none; transition: background-color .12s ease; }
a.price-tag:hover, a.price-tag:focus-visible { background: var(--gold-soft); outline: none; }
a.price-tag:hover::after, a.price-tag:focus-visible::after { border-left-color: var(--gold-soft); }

.process {
  margin: 0 24px 18px;
  padding: 18px;
  background: var(--navy);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.process h3 {
  margin: 0 0 6px;
  font-family: var(--display);
  font-size: 24px;
  text-transform: uppercase;
  color: var(--gold-soft);
}

.process p { margin: 0 0 10px; color: var(--muted); }

.process ol { margin: 0; padding-left: 22px; display: grid; gap: 6px; }

.process li::marker { color: var(--gold); font-weight: 700; }

@media (max-width: 860px) {
  .process { margin: 0 16px 16px; }
}
