body:has(.brazil-opening),
.rap-landing:has(.brazil-opening) {
  background: #fff7e8;
}

.rap-safe-sample-placeholder {
  min-height: 240px;
  width: 100%;
  display: grid;
  align-content: center;
  gap: 8px;
  padding: 28px;
  color: #fff9e9;
  text-align: center;
  background: radial-gradient(circle at 20% 20%, rgba(255,215,74,.28), transparent 32%), linear-gradient(145deg, #063b35, #09231f 62%, #ef5b31);
  border-radius: inherit;
  box-sizing: border-box;
}
.rap-safe-sample-placeholder .rap-safe-sample-kicker {
  color: #ffd74a;
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.rap-safe-sample-placeholder strong { font-size: 1.05rem; }
.rap-stage-choice input[value="recording-studio"] + span.rap-stage-swatch { background: url("/samples/scene-recording-studio.webp") center / cover, linear-gradient(135deg, #073dc2, #70a5ff); }
.rap-stage-choice input[value="street-cypher"] + span.rap-stage-swatch { background: url("/samples/scene-street-cypher.webp") center / cover, linear-gradient(135deg, #ef5b31, #ffd34c); }
.rap-stage-choice input[value="sunset-rooftop"] + span.rap-stage-swatch { background: url("/samples/scene-sunset-rooftop.webp") center / cover, linear-gradient(135deg, #073b35, #20a37a); }
.rap-stage-choice input[value="live-stage"] + span.rap-stage-swatch { background: url("/samples/scene-live-stage.webp") center / cover, linear-gradient(135deg, #20164d, #a461d9); }

.rap-landing:has(.brazil-opening) {
  --lp-text: #17211c;
  --lp-body: #343b32;
  --lp-muted: #524e43;
  --lp-line: #d3c3a4;
  --lp-warm: #f7ecd7;
  --lp-warm-2: #f0e3cb;
  --lp-orange: #073dc2;
  --lp-orange-text: #073dc2;
}

.brazil-opening {
  --brazil-ink: #17211c;
  --brazil-blue: #073dc2;
  --brazil-yellow: #ffd34c;
  --brazil-paper: #fff7e8;
  --brazil-panel: #fffdf5;
  --brazil-line: #d3c3a4;
  display: grid;
  grid-template-columns: minmax(0, .94fr) minmax(0, 1.06fr);
  align-items: stretch;
  gap: clamp(16px, 3vw, 38px);
  width: min(1236px, calc(100% - 40px));
  margin-inline: auto;
  padding-block: clamp(18px, 3.5vw, 48px) clamp(24px, 4vw, 58px);
}

.rap-landing .brazil-opening :is(.lp-hero, .lp-dock, .studio-grid),
.rap-landing .brazil-opening .lp-hero > .rap-page-width {
  display: contents;
}

.rap-landing .brazil-opening .lp-hero .lp-hero-copy {
  grid-column: 1;
  grid-row: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  min-width: 0;
  max-width: none;
  padding: clamp(22px, 4.1vw, 56px);
  background: var(--brazil-blue);
  color: var(--brazil-paper);
  text-align: left;
}

.rap-landing .brazil-opening .lp-hero h1 {
  max-width: 9ch;
  margin-block: 14px 18px;
  color: var(--brazil-yellow);
  font-size: clamp(42px, 7vw, 104px);
  font-weight: 800;
  line-height: .92;
  letter-spacing: -.075em;
  overflow-wrap: normal;
}
.rap-landing .brazil-opening .lp-hero :is(.lp-eyebrow, .lp-hero-lede) { color: var(--brazil-paper); }
.rap-landing .brazil-opening .lp-hero-lede { max-width: 43ch; margin: 0; line-height: 1.45; }
.rap-landing .couple-opening .lp-hero .lp-hero-copy { grid-column: 1 / -1; }
.rap-landing .couple-opening .lp-hero h1 { max-width: none; }
.rap-landing .brazil-opening .lp-facts { justify-content: flex-start; gap: 6px; margin-top: 14px; }
.rap-landing .brazil-opening .lp-facts li {
  background: transparent;
  border-color: #fff7e88a;
  color: var(--brazil-paper);
  border-radius: 3px;
}

.home-hero-sample {
  grid-column: 2;
  grid-row: 1;
  align-self: center;
  justify-self: center;
  width: min(100%, 348px);
  margin: 0;
}

.home-hero-sample figcaption {
  margin-bottom: 8px;
  color: var(--brazil-ink);
  font-size: .875rem;
  font-weight: 700;
  text-align: center;
}

.home-hero-sample video {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 9 / 16;
  border-radius: 8px;
  background: #211a17;
}

.rap-landing .brazil-opening .studio-grid > .studio-gallery {
  grid-column: 2;
  grid-row: 1;
  display: grid;
  grid-template-columns: minmax(0, 220px) minmax(0, 1fr);
  align-content: center;
  align-items: center;
  gap: 12px;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
}
.rap-landing .brazil-opening .studio-gallery .rap-video-frame,
.rap-landing .brazil-opening .studio-gallery .rap-inline-video {
  width: 100%;
  background: transparent;
  border: 0;
  border-radius: 0;
}
.rap-landing .brazil-opening .studio-gallery .rap-inline-video { aspect-ratio: 9 / 16; }
.rap-landing .brazil-opening .studio-gallery video { object-fit: cover; }
.brazil-opening .studio-play {
  inset: auto auto 12px 12px;
  background: var(--brazil-yellow);
  color: var(--brazil-ink);
  border: 0;
  border-radius: 3px;
  font-weight: 800;
}
.rap-landing .brazil-opening .studio-gallery .studio-thumbs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(50px, 1fr));
  align-items: start;
  gap: 8px;
  overflow: visible;
  padding: 3px;
}
.brazil-opening .studio-thumbs button {
  position: relative;
  min-width: 0;
  padding: 2px;
  border-radius: 0;
  border-color: var(--brazil-line);
  background: var(--brazil-panel);
  transition: border-color .16s ease;
}
.brazil-opening .studio-thumbs button[aria-pressed="true"],
.brazil-opening .studio-thumbs button:hover { border-color: var(--brazil-blue); }
.brazil-opening .studio-thumbs button::after {
  content: "▶";
  position: absolute;
  inset: auto auto 7px 7px;
  padding: 3px 5px;
  background: var(--brazil-yellow);
  color: var(--brazil-ink);
  font-size: .68rem;
  line-height: 1;
}
.brazil-opening .studio-thumbs img { aspect-ratio: 9 / 16; border-radius: 0; }

.rap-landing .brazil-opening .studio-grid > .rap-tool {
  --lp-text: #17211c;
  --lp-body: #343b32;
  --lp-muted: #524e43;
  --lp-line: #d3c3a4;
  --lp-orange: #073dc2;
  --lp-orange-text: #073dc2;
  grid-column: 1/-1;
  grid-row: 2;
  padding: clamp(14px, 2.6vw, 30px);
  background: var(--brazil-panel);
  color: var(--brazil-ink);
  border: 1px solid var(--brazil-line);
  border-top: 5px solid #237455;
  border-radius: 0;
  box-shadow: none;
}

.brazil-opening .rap-tool form {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  gap: 16px 26px;
}
.brazil-opening .rap-tool form > * { min-width: 0; margin: 0; }
.brazil-opening .rap-tool form > :nth-child(n + 3) { grid-column: 1/-1; }
.brazil-opening .rap-tool form > .rap-tool-step:nth-child(2) {
  border-left: 1px solid var(--brazil-line);
  padding-left: 25px;
}
.brazil-opening .rap-tool :is(h3, .rap-stage-choice strong, .rap-upload-name, .rap-settings-current, .rap-settings-current span, .rap-upload-label) {
  color: var(--brazil-ink);
}
.brazil-opening .rap-tool :is(.rap-upload, .rap-stage-choice, .rap-settings, .rap-creative-brief, input[type="text"], textarea),
.brazil-opening .rap-tool .rap-settings button {
  background: #f5ead2;
  color: var(--brazil-ink);
  border-color: var(--brazil-line);
  border-radius: 3px;
}
.brazil-opening .rap-tool .rap-upload-plus { background: var(--brazil-yellow); color: var(--brazil-ink); }
.brazil-opening .rap-tool .rap-upload { min-height: 112px; }
.brazil-opening .rap-tool .rap-upload:has(img[data-preview]),
.brazil-opening .rap-tool .rap-stage-choice:has(input:checked) {
  background: #edf0fd;
  border-color: var(--brazil-blue);
  box-shadow: inset 0 0 0 1px var(--brazil-blue);
}
.brazil-opening .rap-tool .rap-stage-choice strong { color: var(--brazil-ink); }
.brazil-opening .rap-stage-note {
  padding-inline: 4px;
  color: #524e43;
  font-size: .7rem;
  line-height: 1.3;
}
.brazil-opening .rap-scene-help { margin: 10px 0 0; }
.brazil-opening .rap-tool .rap-stage-swatch { border-radius: 0; }
.brazil-opening .rap-tool .rap-stage-choice input[value="studio"] + .rap-stage-swatch {
  background: #ac5725 url("/samples/rap-duo-example-en.webp") center / cover;
}
.brazil-opening .rap-tool :is(.rap-field-help, .merge-help, .rap-topic summary, summary small, input::placeholder) {
  color: #524e43;
}
.brazil-opening .rap-tool details > summary { color: var(--brazil-ink); }
.brazil-opening .rap-tool .rap-mode-switch { background: #f5ead2; border-color: var(--brazil-line); }
.brazil-opening .rap-mode-switch::before { background: var(--brazil-blue); border-radius: 5px; }
.brazil-opening .rap-tool .rap-mode-switch button { color: var(--brazil-ink); }
.brazil-opening .rap-tool .rap-mode-switch button[aria-pressed="true"],
.brazil-opening .rap-tool .rap-settings button[aria-pressed="true"] {
  color: white;
  border-color: var(--brazil-blue);
}
.brazil-opening .rap-tool .rap-settings button[aria-pressed="true"],
.brazil-opening .rap-tool .rap-primary { background: var(--brazil-blue); }
.brazil-opening .rap-tool .rap-primary { color: white; border-radius: 3px; }
.brazil-opening .rap-tool .rap-primary:hover:not(:disabled),
.brazil-opening .rap-tool .rap-settings button:hover:not([aria-pressed="true"]) { background: #244fc3; color: white; }
.brazil-opening .rap-tool .rap-primary:disabled { background: #dcdfe7; color: #4c5260; }
.brazil-opening .rap-tool .rap-upload:is(:hover, :focus-within),
.brazil-opening .rap-tool .rap-upload[data-drag-over] {
  background: #edf0fd;
  border-color: var(--brazil-blue);
  outline-color: var(--brazil-blue);
}
.brazil-opening :is(.rap-tool, .studio-gallery) :focus-visible { outline-color: var(--brazil-blue); }

@media (max-width: 760px) {
  .brazil-opening {
    width: calc(100% - 24px);
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
    padding-block: 12px 26px;
  }
  .rap-landing .brazil-opening .lp-hero .lp-hero-copy { padding: 18px 15px; }
  .rap-landing .brazil-opening .lp-hero h1 {
    max-width: none;
    margin-block: 8px 10px;
    font-size: clamp(35px, 10vw, 58px);
  }
  .rap-landing .brazil-opening .lp-facts { margin-top: 10px; }
  .home-hero-sample {
    grid-column: 1;
    grid-row: 2;
    width: min(100%, 240px);
  }
  .rap-landing .brazil-opening:has(.home-hero-sample) .studio-grid > .rap-tool { grid-row: 3; }
  .rap-landing .brazil-opening .studio-grid > .studio-gallery {
    grid-column: 1;
    grid-row: 3;
    grid-template-columns: minmax(0, 162px) minmax(0, 1fr);
  }
  .brazil-opening .rap-tool form { grid-template-columns: minmax(0, 1fr); gap: 13px; }
  .brazil-opening .rap-tool form > .rap-tool-step:nth-child(2) { border-left: 0; padding-left: 0; }
}

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

.brazil-opening form:has(.rap-mode-switch button:nth-of-type(2)[aria-pressed="true"]) .rap-upload-grid {
  grid-template-columns: minmax(0, 1fr);
}

@media (max-width: 760px) {
  .rap-landing .brazil-opening .lp-facts {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
  }
  .rap-landing .brazil-opening .lp-facts li {
    display: flex;
    align-items: center;
    padding: 5px 7px;
    line-height: 1.25;
  }
}
.rap-landing:has(.brazil-opening) > .lp-section {
  padding-block: clamp(38px, 6vw, 92px);
  border-top: 1px solid #d3c3a4;
  background: #fff7e8;
}
.rap-landing:has(.brazil-opening) > .lp-section.is-warm { background: #f6ecd7; }
.rap-landing:has(.brazil-opening) > .lp-section > .rap-page-width,
.rap-landing:has(.brazil-opening) > .lp-closing > .rap-page-width {
  width: min(1236px, calc(100% - 40px));
  max-width: none;
}
.rap-landing:has(.brazil-opening) > .lp-section .lp-head {
  max-width: 68ch;
  margin: 0 0 clamp(18px, 3.5vw, 42px);
  text-align: left;
}
.rap-landing:has(.brazil-opening) > .lp-section :is(.lp-head h2, .tp-row h2) {
  max-width: 20ch;
  font-size: clamp(29px, 4.6vw, 65px);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -.065em;
}
.rap-landing:has(.brazil-opening) > .lp-section .lp-eyebrow {
  color: #073dc2;
  padding-bottom: 4px;
  border-bottom: 2px solid currentColor;
  border-radius: 0;
  background: transparent;
}
.rap-landing:has(.brazil-opening) .lp-intro {
  align-items: start;
  gap: clamp(24px, 5vw, 72px);
}
.rap-landing:has(.brazil-opening) .lp-booth {
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}
.rap-landing:has(.brazil-opening) :is(.lp-duo, .lp-cards, .lp-features) {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0 22px;
}
.rap-landing:has(.brazil-opening) .lp-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.rap-landing:has(.brazil-opening) :is(.lp-duo-row, .lp-card, .lp-features > li) {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  gap: 10px;
  min-width: 0;
  margin: 0;
  padding: 16px 0 24px;
  background: transparent;
  border: 0;
  border-top: 3px solid #237455;
  border-radius: 0;
  box-shadow: none;
}
.rap-landing:has(.brazil-opening) .lp-duo-row:nth-child(even) :is(.lp-duo-copy, .lp-duo-figure) { order: initial; }
.rap-landing:has(.brazil-opening) .lp-duo-figure {
  width: 100%;
  max-width: none;
  margin: auto 0 0;
  border-radius: 0;
  box-shadow: none;
}
.rap-landing:has(.brazil-opening) .lp-duo-figure img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 0;
}
.rap-landing:has(.brazil-opening) .lp-topic { background: #f6ecd7; border-radius: 0; }
.rap-landing:has(.brazil-opening) .lp-panel {
  padding: clamp(16px, 3vw, 36px);
  border: 1px solid #d3c3a4;
  border-left: 6px solid #073dc2;
  border-radius: 0;
  background: #fffdf5;
  box-shadow: none;
}
.rap-landing:has(.brazil-opening) :is(.lp-steps, .tp-steps) {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
}
.rap-landing:has(.brazil-opening) .lp-steps > li {
  min-width: 0;
  padding: 14px 0;
  border: 0;
  border-top: 1px solid #d3c3a4;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
.rap-landing:has(.brazil-opening) .lp-tool-directory {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 24px;
}
.rap-landing:has(.brazil-opening) .lp-tool-directory > li {
  display: grid;
  grid-template-columns: minmax(0, 96px) minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  min-width: 0;
  padding: 12px 0;
  border: 0;
  border-top: 1px solid #d3c3a4;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
.rap-landing:has(.brazil-opening) .lp-tool-directory > li .rap-video-examples {
  max-width: 100%;
  margin: 0;
}
.rap-landing:has(.brazil-opening) .lp-tool-directory-name {
  border: 0;
  border-top: 1px solid #d3c3a4;
  border-radius: 0;
  background: transparent;
}
.rap-landing:has(.brazil-opening) :is(.lp-single, .lp-plan) {
  border-color: #d3c3a4;
  border-top: 3px solid #237455;
  border-radius: 0;
  box-shadow: none;
  background: #fffdf5;
}
.rap-landing:has(.brazil-opening) .lp-plan-price { color: #073dc2; }
.rap-landing:has(.brazil-opening) .lp-split {
  display: grid;
  grid-template-columns: minmax(0, .72fr) minmax(0, 1.28fr);
  gap: clamp(18px, 5vw, 72px);
  align-items: start;
}
.rap-landing:has(.brazil-opening) .lp-split .lp-head {
  padding: clamp(16px, 3vw, 35px);
  background: #ffd34c;
  color: #17211c;
}
.rap-landing:has(.brazil-opening) .lp-faq details {
  margin: 0;
  padding-inline: 0;
  border: 0;
  border-bottom: 1px solid #d3c3a4;
  border-radius: 0;
  box-shadow: none;
  background: transparent;
}
.rap-landing:has(.brazil-opening) .lp-faq details:first-child { border-top: 1px solid #d3c3a4; }
.rap-landing:has(.brazil-opening) .lp-faq summary { min-height: 44px; }
.rap-landing:has(.brazil-opening) .tp-row {
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr);
  align-items: start;
  gap: clamp(16px, 4vw, 60px);
}
.rap-landing:has(.brazil-opening) .tp-row h2 { margin: 0; }
.rap-landing:has(.brazil-opening) .tp-row .tp-body { min-width: 0; }
.rap-landing:has(.brazil-opening) .lp-flow {
  background: transparent;
  border-radius: 0;
  box-shadow: none;
}
.rap-landing:has(.brazil-opening) .lp-closing {
  padding: clamp(32px, 5vw, 66px) 20px;
  background: #073dc2;
  color: #fff7e8;
}
.rap-landing:has(.brazil-opening) .lp-closing-card {
  display: block;
  max-width: 1236px;
  margin: 0 auto;
  padding: 0;
  text-align: left;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
.rap-landing:has(.brazil-opening) .lp-closing-card h2 { color: #ffd34c; text-wrap: balance; }
.rap-landing:has(.brazil-opening) .lp-closing-card p { color: #fff7e8; margin-inline: 0; }
.rap-landing:has(.brazil-opening) .lp-closing-actions { justify-content: flex-start; }
.rap-landing:has(.brazil-opening) .lp-closing-mark { display: none; }
.rap-landing:has(.brazil-opening) .lp-button { border-radius: 3px; }
.rap-landing:has(.brazil-opening) .lp-button.is-dark { background: #073dc2; color: white; }
.rap-landing:has(.brazil-opening) .lp-closing .lp-button.is-dark { background: #ffd34c; color: #17211c; }
.rap-landing:has(.brazil-opening) .lp-closing .lp-button.is-ghost { color: #fff7e8; border-color: #fff7e8; }

body:has(.brazil-opening) .rap-footer {
  background: #17211c;
  color: #fff7e8;
  border-top: 5px solid #ffd34c;
}
body:has(.brazil-opening) .rap-footer-top {
  display: block;
  padding-block: clamp(25px, 5vw, 64px) 24px;
}
body:has(.brazil-opening) .rap-footer-intro {
  max-width: none;
  padding: 0 0 24px;
  margin: 0 0 24px;
  border-bottom: 1px solid #637369;
}
body:has(.brazil-opening) .rap-footer-columns {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}
body:has(.brazil-opening) .rap-footer :is(.rap-brand, .rap-footer-cta, .rap-footer-columns h3) { color: #ffd34c; }
body:has(.brazil-opening) .rap-footer :is(p, small, .rap-footer-columns a, .rap-footer-columns span) { color: #f1eadb; }
body:has(.brazil-opening) .rap-footer-bottom { border-color: #637369; }

@media (max-width: 760px) {
  .rap-landing:has(.brazil-opening) > .lp-section > .rap-page-width { width: calc(100% - 24px); }
  .rap-landing:has(.brazil-opening) :is(.lp-intro, .lp-duo, .lp-cards, .lp-features, .lp-tool-directory, .lp-split, .tp-row) {
    grid-template-columns: minmax(0, 1fr);
  }
  .rap-landing:has(.brazil-opening) .lp-duo-figure img { aspect-ratio: 16 / 10; }
  .rap-landing:has(.brazil-opening) .lp-tool-directory > li { grid-template-columns: minmax(0, 74px) minmax(0, 1fr); }
  .rap-landing:has(.brazil-opening) .lp-split .lp-head { margin-bottom: 0; }
  body:has(.brazil-opening) .rap-footer-columns { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

body:has(.brazil-opening) .rap-footer + div:has(#ai-resources-title) {
  background: #17211c;
}
body:has(.brazil-opening) .rap-footer + div:has(#ai-resources-title) section > div {
  border-color: #637369;
}
body:has(.brazil-opening) #ai-resources-title { color: #ffd34c; font-weight: 750; }
body:has(.brazil-opening) section:has(#ai-resources-title) :is(p, nav[aria-label="AI reading resources"]) {
  color: #f1eadb;
}
body:has(.brazil-opening) section:has(#ai-resources-title) nav[aria-label="Ask an AI"] a {
  border-radius: 3px;
  background: #fff7e8;
}
