@import url("https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@400;600;700;800&family=Barlow+Semi+Condensed:wght@400;600;700&family=Roboto+Slab:wght@400;600&family=Roboto:wght@400;500;700&display=swap");

:root {
  --ink: #071440;
  --ink-soft: #707070;
  --muted: #707070;
  --paper: #ffffff;
  --paper-deep: #f6f8fb;
  --line: rgba(7, 20, 64, 0.12);
  --line-strong: rgba(7, 20, 64, 0.22);
  --line-dark: rgba(255, 255, 255, 0.18);
  --deep: #071440;
  --field: #ffffff;
  --warn: #8a5a2a;
  --display: "Barlow Condensed", sans-serif;
  --body: "Roboto", sans-serif;
  --mono: "Barlow Semi Condensed", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }

.shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.topbar {
  border-bottom: 1px solid var(--line);
  background: rgba(245, 241, 232, 0.92);
  backdrop-filter: blur(18px);
}
.topbar-inner,
.checkout-grid,
.footer-inner {
  width: min(1080px, calc(100% - 32px));
  margin: 0 auto;
}
.topbar-inner {
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand { display: flex; flex-direction: column; gap: 2px; }
.brand strong { line-height: 1.2; font-weight: 600; }
.brand span,
.mono,
.step {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.back-link {
  color: var(--ink-soft);
  font-size: 0.92rem;
}
.back-link:hover { color: var(--ink); }

main { flex: 1; }

.checkout-grid {
  padding: clamp(48px, 7vw, 80px) 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.62fr);
  gap: 48px;
  align-items: start;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 24px;
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 1px;
  background: var(--muted);
}

h1, h2, h3 {
  margin: 0;
  line-height: 1.06;
}
h1 {
  max-width: 14ch;
  font-family: var(--display);
  font-size: clamp(2rem, 5.2vw, 4rem);
  font-weight: 400;
  letter-spacing: -0.01em;
}
h2 { font-size: 1.1rem; font-weight: 600; }
h3 { font-size: 1rem; font-weight: 600; }

.lead {
  max-width: 620px;
  margin: 22px 0 0;
  color: var(--ink-soft);
  font-size: 1.05rem;
}

.stack {
  margin-top: 36px;
  border-top: 1px solid var(--line);
}
.line-item {
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 20px;
  align-items: baseline;
}
.line-item:last-child { border-bottom: 0; }

.step {
  display: inline-block;
  min-width: 28px;
  color: var(--muted);
  font-size: 0.78rem;
}

.line-item p,
.choice-card p {
  margin: 6px 0 0;
  color: var(--ink-soft);
}

.order-card {
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 3px;
  background: var(--field);
}
.order-head {
  padding: 26px;
  background: var(--deep);
  color: var(--paper);
}
.order-head .mono { color: rgba(245, 241, 232, 0.6); }
.order-head h2 {
  margin-top: 10px;
  font-family: var(--display);
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--paper);
}
.price {
  margin-top: 20px;
  font-family: var(--display);
  font-size: 2.6rem;
  font-weight: 400;
  line-height: 1;
}

.order-body { padding: 26px; }

.summary {
  display: grid;
  gap: 0;
  margin: 0 0 26px;
  padding: 0;
  list-style: none;
}
.summary li {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  border-bottom: 1px solid var(--line);
  padding: 12px 0;
  color: var(--ink-soft);
  font-size: 0.95rem;
}
.summary li:last-child { border-bottom: 0; }
.summary strong {
  color: var(--ink);
  font-weight: 600;
  text-align: right;
}

.select-row {
  display: grid;
  gap: 8px;
  margin-bottom: 22px;
}

label {
  font-family: var(--mono);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

select {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--line-strong);
  border-radius: 3px;
  background: #fffdf7;
  color: var(--ink);
  padding: 0 12px;
  font: 500 0.95rem/1 var(--body);
}

.button {
  min-height: 50px;
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--ink);
  border-radius: 3px;
  background: var(--ink);
  color: var(--paper);
  padding: 0 18px;
  font: 600 0.95rem/1 var(--body);
  cursor: pointer;
  transition: background 160ms ease, border-color 160ms ease;
}
.button:hover { background: #1c2422; }

.button.secondary {
  background: var(--paper);
  color: var(--ink);
  border-color: var(--ink);
}
.button.secondary:hover { background: var(--paper-deep); }

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

.notice {
  display: none;
  margin-top: 16px;
  border: 1px solid rgba(138, 90, 42, 0.4);
  border-radius: 3px;
  padding: 14px;
  background: rgba(138, 90, 42, 0.08);
  color: var(--ink-soft);
  font-size: 0.92rem;
}
.notice.visible { display: block; }

.choice-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 38px;
}

.choice-card {
  border: 1px solid var(--line-strong);
  border-radius: 3px;
  padding: 26px;
  background: var(--field);
  display: flex;
  flex-direction: column;
}
.choice-card h2 {
  margin: 10px 0 8px;
  font-family: var(--display);
  font-size: 1.25rem;
  font-weight: 500;
}
.choice-card p { margin: 0 0 22px; color: var(--ink-soft); font-size: 0.95rem; flex: 1; }

footer {
  border-top: 1px solid var(--line);
  background: var(--paper);
}

.footer-inner {
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.74rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

@media (max-width: 820px) {
  .topbar-inner,
  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    padding: 14px 0;
  }
  .checkout-grid,
  .choice-grid {
    grid-template-columns: 1fr;
  }
  .checkout-grid {
    gap: 32px;
  }
  h1 { max-width: 100%; }
}

/* ============================================================
   RM Academy visual identity overlay
   Fonte: content/id_visual.md
   ============================================================ */
:root {
  --rm-navy: #071440;
  --rm-navy-alt: #081555;
  --rm-navy-dark: #1e2132;
  --rm-green: #4b9274;
  --rm-green-light: #5b9b7f;
  --rm-white: #ffffff;
  --rm-text: #707070;
  --rm-soft: #f6f8fb;
  --rm-line: rgba(7, 20, 64, 0.12);
  --rm-line-strong: rgba(7, 20, 64, 0.22);
  --rm-shadow-card:
    0 2px 7px 1px rgb(0 0 0 / 0.05),
    0 6px 32px 0 rgb(18 43 70 / 0.10);
  --rm-container: 1060px;
  --rm-font-display: "Barlow Condensed", sans-serif;
  --rm-font-sub: "Barlow Semi Condensed", sans-serif;
  --rm-font-body: "Roboto", sans-serif;
  --rm-font-serif: "Roboto Slab", serif;

  --ink: var(--rm-navy);
  --ink-soft: var(--rm-text);
  --muted: var(--rm-text);
  --paper: var(--rm-white);
  --paper-deep: var(--rm-soft);
  --line: var(--rm-line);
  --line-strong: var(--rm-line-strong);
  --line-dark: rgba(255, 255, 255, 0.18);
  --deep: var(--rm-navy);
  --field: var(--rm-white);
  --warn: #8a5a2a;
  --display: var(--rm-font-display);
  --body: var(--rm-font-body);
  --mono: var(--rm-font-sub);
}

* { letter-spacing: 0; }

body {
  background:
    linear-gradient(132deg, rgba(91, 155, 127, 0.12) 0%, transparent 36%),
    linear-gradient(180deg, var(--rm-white) 0%, var(--rm-soft) 58%, var(--rm-white) 100%);
  color: var(--rm-text);
  font-family: var(--rm-font-body);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  opacity: 0.10;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(7, 20, 64, 0.24) 1px, transparent 1px),
    linear-gradient(90deg, rgba(7, 20, 64, 0.16) 1px, transparent 1px);
  background-size: 30px 30px;
}

a:focus-visible,
button:focus-visible,
select:focus-visible {
  outline: 3px solid rgba(75, 146, 116, 0.55);
  outline-offset: 3px;
}

.topbar {
  border-bottom: 1px solid rgba(7, 20, 64, 0.10);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 12px 36px rgb(7 20 64 / 0.08);
}

.topbar-inner,
.checkout-grid,
.footer-inner {
  width: min(var(--rm-container), calc(100% - clamp(32px, 8vw, 100px)));
}

.topbar-inner { min-height: 78px; }

.brand strong {
  color: var(--rm-navy);
  font-family: var(--rm-font-display);
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1;
}

.brand span,
.mono,
.step,
.eyebrow,
label {
  font-family: var(--rm-font-sub);
}

.brand span,
.mono,
.step {
  color: var(--rm-green);
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: none;
}

.back-link {
  color: var(--rm-navy);
  font-family: var(--rm-font-sub);
  font-size: 1rem;
  font-weight: 600;
}

.back-link:hover {
  color: var(--rm-green);
}

.checkout-grid {
  padding: clamp(54px, 7vw, 76px) 0;
}

.eyebrow {
  margin-bottom: 18px;
  color: var(--rm-green);
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 600;
  text-transform: none;
}

.eyebrow::before {
  width: 42px;
  height: 2px;
  background: var(--rm-green);
}

h1,
h2,
h3 {
  color: var(--rm-navy);
  letter-spacing: 0;
}

h1 {
  max-width: 760px;
  font-family: var(--rm-font-display);
  font-size: clamp(48px, 7vw, 82px);
  font-weight: 800;
  line-height: 0.95;
  text-transform: uppercase;
}

h2,
h3 {
  font-family: var(--rm-font-display);
  font-weight: 600;
}

h2 {
  font-size: clamp(24px, 2.4vw, 32px);
}

.lead {
  color: var(--rm-text);
  font-family: var(--rm-font-body);
  font-size: 1.12rem;
  line-height: 1.6;
}

.line-item {
  border-bottom: 1px solid var(--rm-line);
}

.line-item p,
.choice-card p,
.fineprint {
  color: var(--rm-text);
}

.order-card,
.choice-card {
  border: 0;
  border-radius: 6px;
  background: var(--rm-white);
  box-shadow: var(--rm-shadow-card);
}

.order-head {
  background:
    linear-gradient(135deg, rgba(91, 155, 127, 0.18), transparent 42%),
    linear-gradient(180deg, var(--rm-navy-alt), var(--rm-navy));
  color: var(--rm-white);
}

.order-head .mono {
  color: var(--rm-green-light);
}

.order-head h2,
.order-head .price {
  color: var(--rm-white);
  font-family: var(--rm-font-display);
}

.price {
  font-family: var(--rm-font-display);
  font-weight: 600;
}

.summary li {
  border-bottom: 1px solid var(--rm-line);
  color: var(--rm-text);
}

.summary strong {
  color: var(--rm-navy);
}

label {
  color: var(--rm-navy);
  font-size: 0.92rem;
  font-weight: 600;
  text-transform: none;
}

select {
  border-color: var(--rm-line-strong);
  border-radius: 5px;
  background: var(--rm-white);
  color: var(--rm-navy);
  font-family: var(--rm-font-body);
}

.button {
  min-height: 54px;
  border-color: var(--rm-green);
  border-radius: 5px;
  background: var(--rm-green);
  color: var(--rm-white);
  font-family: var(--rm-font-display);
  font-size: 1.35rem;
  font-weight: 600;
  box-shadow: 0 16px 32px rgb(75 146 116 / 0.22);
  transition:
    background 220ms ease,
    border-color 220ms ease,
    color 220ms ease,
    transform 220ms ease,
    box-shadow 220ms ease;
}

.button:hover {
  border-color: var(--rm-navy);
  background: var(--rm-navy);
  color: var(--rm-white);
  transform: translateY(-1px);
}

.button.secondary {
  border-color: var(--rm-green);
  background: var(--rm-white);
  color: var(--rm-navy);
  box-shadow: none;
}

.button.secondary:hover {
  border-color: var(--rm-green);
  background: rgba(75, 146, 116, 0.10);
  color: var(--rm-navy);
}

.notice {
  border-color: rgba(75, 146, 116, 0.34);
  border-radius: 6px;
  background: rgba(75, 146, 116, 0.08);
  color: var(--rm-navy);
}

.choice-grid {
  gap: 24px;
}

.choice-card {
  padding: 30px;
  transition: transform 220ms ease, box-shadow 220ms ease;
}

.choice-card:hover {
  transform: translateY(-3px);
  box-shadow:
    0 8px 18px rgb(0 0 0 / 0.07),
    0 18px 48px rgb(18 43 70 / 0.14);
}

footer {
  border-top: 0;
  background: var(--rm-navy-dark);
}

.footer-inner {
  min-height: 72px;
  color: rgba(255, 255, 255, 0.78);
  font-family: var(--rm-font-sub);
  font-size: 0.95rem;
  font-weight: 600;
  text-transform: none;
}

@media (max-width: 820px) {
  .topbar-inner,
  .checkout-grid,
  .footer-inner {
    width: min(var(--rm-container), calc(100% - 32px));
  }

  h1 {
    font-size: clamp(44px, 16vw, 58px);
  }
}
