/* 1. Base: variáveis centralizam cores e medidas usadas em toda a página. */
:root {
  --blue: #1877f2;
  --page: #f0f2f5;
  --button: #e4e6eb;
  --ink: #050505;
  --muted: #65676b;
  --line: #e4e6eb;
  --column: 680px;
  font-family: "Segoe UI Historic", "Segoe UI", Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--page);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding-top: 65px;
  font-size: 15px;
  line-height: 1.5;
}

button,
input {
  font: inherit;
}

button {
  border: 0;
  cursor: pointer;
  color: inherit;
}

.profile-buttons {
  pointer-events: none;
}

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

button:focus-visible,
a:focus-visible,
input:focus-visible {
  outline: 3px solid #0866ff;
  outline-offset: 3px;
}

button:hover {
  filter: brightness(.96);
}

button:disabled {
  cursor: default;
}

img {
  display: block;
  max-width: 100%;
}

p,
h1,
h2 {
  margin: 0;
}

a {
  color: var(--blue);
}

[hidden] {
  display: none !important;
}

/* Bloco liberado pelo player vTurb (displayHiddenElements) no tempo do pitch. */
.esconder {
  display: none;
}

.icon-library {
  width: 0;
  height: 0;
  position: absolute;
  overflow: hidden;
}

.icon {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
  vertical-align: middle;
}

.sr-only {
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  position: absolute;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  top: -80px;
  left: 16px;
  z-index: 100;
  background: white;
  padding: 12px;
  border-radius: 6px;
}

.skip-link:focus {
  top: 8px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  height: 36px;
  padding: 0 14px;
  border-radius: 6px;
  font-size: 15px;
  font-weight: 600;
  background: var(--button);
  white-space: nowrap;
}

.button .icon {
  width: 15px;
  height: 15px;
  stroke-width: 2.4;
}

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

.icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  padding: 5px;
  border-radius: 50%;
  background: transparent;
  color: var(--muted);
}

.icon-button:hover {
  background: var(--page);
}

/* 2. Flexbox distribui os três grupos do cabeçalho. */
.topbar {
  position: fixed;
  inset: 0 0 auto;
  height: 56px;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  background: white;
  box-shadow: 0 1px 3px #0000001a;
}

.topbar-left,
.topbar-right,
.topbar-center {
  display: flex;
  align-items: center;
}

.topbar-left {
  gap: 10px;
}

.brand {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: var(--blue);
  border-radius: 50%;
  font-family: Arial, sans-serif;
  font-weight: 700;
  font-size: 39px;
  line-height: 1.05;
  padding-right: 1px;
  color: white;
  text-decoration: none;
  overflow: hidden;
}

.search-box {
  height: 40px;
  width: 240px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 12px;
  border-radius: 24px;
  background: var(--page);
  color: var(--muted);
}

.search-box .icon {
  width: 17px;
  height: 17px;
}

.search-box input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: none;
  background: transparent;
  color: var(--ink);
  font-size: 15px;
}

.search-box:focus-within {
  box-shadow: 0 0 0 2px #1877f240;
}

.topbar-center {
  flex: 1;
  justify-content: center;
  height: 100%;
  gap: 8px;
}

.global-tab {
  height: 100%;
  width: 110px;
  position: relative;
  color: var(--muted);
  background: transparent;
  border-radius: 6px 6px 0 0;
}

.global-tab .icon {
  width: 26px;
  height: 26px;
  stroke-width: 2.3;
}

.global-tab.active {
  color: var(--blue);
}

.global-tab.active::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--blue);
}

.global-tab.active .icon {
  fill: currentColor;
}

.topbar-right {
  gap: 8px;
}

.circle-button {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--button);
}

.circle-button .icon {
  width: 19px;
  height: 19px;
  stroke-width: 2.3;
}

/* 3. Coluna central: a capa extrapola o padding com margens negativas. */
.profile-wrap {
  position: relative;
  background: white;
  border-bottom: 1px solid var(--line);
  margin-bottom: 16px;
  overflow: hidden;
  scroll-margin-top: 56px;
}

.profile-wrap::before {
  content: "";
  position: absolute;
  inset: -60px -60px auto;
  height: 420px;
  background: url("assets/cover.webp") center/cover;
  filter: blur(45px);
  opacity: .5;
  mask-image: linear-gradient(#000 45%, transparent);
  pointer-events: none;
}

.profile-inner {
  position: relative;
  width: 100%;
  max-width: var(--column);
  margin: 0 auto;
  padding: 18px 16px 0;
}

.cover {
  margin: -18px -16px 0;
  aspect-ratio: 2.5;
  overflow: hidden;
  border-radius: 0 0 10px 10px;
  background: var(--button);
  box-shadow: 0 2px 10px #0000001f;
}

.cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-top {
  display: flex;
  align-items: flex-start;
  gap: 18px;
}

.profile-avatar {
  width: 112px;
  height: 112px;
  flex-shrink: 0;
  margin-top: -44px;
  position: relative;
  padding: 3px;
  border: 3px solid var(--blue);
  border-radius: 50%;
  background: white;
}

.profile-avatar img {
  border-radius: 50%;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-info {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding-top: 4px;
}

.profile-info h1 {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 24px;
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: -.2px;
}

.verified {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  background: var(--blue);
  color: white;
  border-radius: 50%;
}

.verified .icon {
  width: 12px;
  height: 12px;
  stroke-width: 2.2;
}

.profile-stats {
  font-size: 15px;
  color: var(--muted);
}

.profile-stats strong {
  font-weight: 600;
}

.profile-bio {
  font-size: 15px;
  line-height: 1.5;
}

.profile-type {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  color: var(--muted);
}

.profile-type .icon {
  width: 13px;
  height: 13px;
}

.profile-buttons {
  display: flex;
  flex-shrink: 0;
  align-self: flex-end;
  gap: 8px;
  margin-bottom: 4px;
}

.profile-tabs {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-top: 18px;
  border-top: 1px solid var(--line);
  padding-top: 2px;
  overflow-x: auto;
  scrollbar-width: none;
  pointer-events: none;
}

.profile-tabs::-webkit-scrollbar {
  display: none;
}

.profile-tab {
  display: flex;
  align-items: center;
  gap: 5px;
  position: relative;
  padding: 14px;
  font-size: 15px;
  line-height: 22.5px;
  font-weight: 600;
  color: var(--muted);
  background: transparent;
  white-space: nowrap;
}

.profile-tab .icon {
  width: 14px;
  height: 14px;
}

.profile-tab.active {
  color: var(--blue);
}

.profile-tab.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  border-radius: 2px 2px 0 0;
  background: var(--blue);
}

.tab-options {
  display: grid;
  place-items: center;
  margin-left: auto;
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  border-radius: 6px;
  background: var(--button);
}

/* 4. Publicação e comentários: o HTML do cartão continua no fluxo normal. */
.feed {
  width: 100%;
  max-width: var(--column);
  margin: 0 auto;
}

#main-content,
.comments,
.offers,
.video-player {
  scroll-margin-top: 72px;
}

.post {
  background: white;
  border-radius: 8px;
  box-shadow: 0 1px 2px #00000026;
  overflow: hidden;
}

.post-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px 10px;
}

.post-author {
  display: flex;
  gap: 10px;
  align-items: center;
}

.post-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
}

.author-name {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.25;
}

.author-name .verified {
  width: 13px;
  height: 13px;
}

.author-name .verified .icon {
  width: 9px;
  height: 9px;
}

.post-date {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 3px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.25;
}

.post-date .icon {
  width: 12px;
  height: 12px;
}

.post-options {
  display: flex;
  gap: 7px;
}

.video-wrap {
  padding-bottom: 2px;
  background: white;
}

.video-player {
  position: relative;
  width: 100%;
  max-width: 400px;
  margin: 0 auto;
}

.reaction-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 40px;
  padding: 4px 16px;
  color: var(--muted);
}

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

.reaction-action {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 4px 0;
  background: transparent;
  font-size: 12px;
  color: var(--muted);
}

.reaction-action .icon {
  width: 16px;
  height: 16px;
}

[aria-pressed="true"] {
  color: var(--blue);
}

.mini-reactions {
  display: flex;
  align-items: center;
}

.mini-reactions span {
  display: grid;
  place-items: center;
  width: 16px;
  height: 16px;
  border: 1px solid white;
  color: white;
  background: var(--blue);
  border-radius: 50%;
  font-size: 10px;
}

.mini-reactions span+span {
  margin-left: -2px;
  background: #f33c62;
  font-size: 14px;
}

.comments {
  padding: 4px 16px 8px;
}

.comments-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-top: 6px;
}

.comment {
  display: flex;
  gap: 8px;
  position: relative;
  align-items: flex-start;
  padding-bottom: 2px;
}

.comment.reply {
  margin-left: 40px;
  max-width: calc(100% - 40px);
}

.comment-avatar {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  object-fit: cover;
  border-radius: 50%;
}

.reply .comment-avatar {
  width: 24px;
  height: 24px;
}

.comment-data {
  min-width: 0;
  max-width: calc(100% - 40px);
}

.reply .comment-data {
  max-width: calc(100% - 32px);
}

.comment-bubble {
  display: inline-block;
  background: var(--page);
  padding: 8px 12px;
  border-radius: 18px;
}

.comment-name {
  font-size: 13px;
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 1px;
}

.comment-text {
  font-size: 15px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.comment-meta {
  display: flex;
  gap: 14px;
  align-items: center;
  margin: 5px 0 0 12px;
  font-size: 12px;
  color: var(--muted);
}

.comment-meta button {
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
  background: transparent;
  padding: 0;
}

.comment-meta button[aria-pressed="true"] {
  color: var(--blue);
}

.comment-meta button:hover {
  text-decoration: underline;
}

.comment-likes {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
  font-size: 12px;
  font-weight: 400;
  padding-left: 10px;
}

.comment-likes img {
  width: 36px;
  height: 18px;
}

.comments-closed {
  color: #8a8d91;
  font-size: 13px;
  margin: 12px 0 8px;
}

.reference-note {
  font-size: 10px;
  color: #8a8d91;
  margin: 8px 0 2px;
}

.search-status {
  padding: 12px 0;
  font-size: 13px;
  color: var(--muted);
}

.panel-card {
  padding: 24px;
  background: white;
  box-shadow: 0 1px 2px #0002;
  border-radius: 8px;
  margin-bottom: 16px;
}

.panel-card h2 {
  font-size: 20px;
  margin-bottom: 8px;
}

.panel-card p+p {
  margin-top: 10px;
}

.panel-card .button {
  margin-top: 14px;
}

.photo-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.photo-grid img {
  width: 100%;
  height: 170px;
  object-fit: cover;
  border-radius: 6px;
  background: var(--page);
}

.page-footer {
  max-width: var(--column);
  padding: 22px 16px 96px;
  margin: 0 auto;
  text-align: center;
  color: var(--muted);
  font-size: 11px;
}

/* 5. CSS Grid: os cartões comerciais só aparecem quando JS remove hidden. */
.offers {
  background: #f9fafb;
  padding: 22px 16px;
}

.offer-demo-note {
  font-size: 11px;
  text-align: center;
  color: var(--muted);
  margin-bottom: 14px;
}

.offer-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  align-items: stretch;
}

.offer-card {
  display: flex;
  flex-direction: column;
  border: 2px solid #d5d8dd;
  border-radius: 12px;
  overflow: hidden;
  background: white;
  text-align: center;
}

.offer-banner {
  background: #e7e9ec;
  padding: 10px 4px;
  font-size: 15px;
  font-weight: 800;
}

.offer-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 14px 10px;
}

.offer-card h2 {
  font-size: 23px;
  font-weight: 800;
  line-height: 1.1;
}

.supply {
  font-size: 12px;
  font-weight: 600;
  margin-top: 4px;
}

.offer-body>img {
  width: 100%;
  height: 160px;
  object-fit: contain;
  margin: 14px 0;
}

.offer-price {
  font-size: 60px;
  line-height: 1;
  font-weight: 800;
  letter-spacing: -3px;
}

.offer-price sup {
  font-size: 28px;
  vertical-align: 18px;
  letter-spacing: 0;
}

.offer-price small {
  display: block;
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0;
  margin-top: 4px;
}

.benefits {
  border-block: 1px solid #d9dce1;
  padding: 10px 0;
  margin: 12px 0 10px;
  font-size: 10px;
  font-weight: 700;
  min-height: 76px;
}

.benefits p+p {
  margin-top: 4px;
}

.benefits p:first-child {
  color: #a31622;
}

.offer-total {
  font-size: 14px;
}

.offer-total s {
  color: #a6202c;
  margin: 0 3px;
}

.shipping {
  font-size: 11px;
  font-weight: 600;
  margin: 4px 0 16px;
}

.buy-button {
  display: flex;
  text-decoration: none;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  margin-top: auto;
  border-radius: 6px;
  background: #69717a;
  color: white;
  padding: 12px 4px;
  font-size: 18px;
  font-weight: 800;
  box-shadow: 0 3px 0 #0003;
}

.buy-button .icon {
  width: 17px;
  height: 17px;
}

.starter .buy-button {
  background: #9d1826;
}

.offer-card.best {
  border-color: #1b376b;
  background: #fff9df;
}

.best .offer-banner {
  background: #173463;
  color: white;
}

.best .buy-button {
  background: linear-gradient(#ffe56b, #ffc832);
  color: #111827;
}

/* 6. Interface de ensino: dialog nativo, estados visuais e foco por teclado. */
.lesson-launcher {
  position: fixed;
  bottom: 18px;
  left: 18px;
  z-index: 25;
  display: flex;
  align-items: center;
  gap: 10px;
  background: #172033;
  color: white;
  padding: 11px 16px;
  border: 1px solid #ffffff30;
  border-radius: 12px;
  box-shadow: 0 4px 22px #0003;
  text-align: left;
  font-weight: 600;
  font-size: 13px;
}

.code-mark {
  font: 700 22px Consolas, monospace;
  color: #7bb7ff;
}

.lesson-launcher small {
  display: block;
  color: #a9b7cb;
  font-size: 8px;
  letter-spacing: .09em;
  font-weight: 500;
  margin-top: 1px;
}

.dialog {
  width: min(600px, calc(100% - 32px));
  max-height: calc(100dvh - 40px);
  border: 1px solid #dbe2ec;
  border-radius: 18px;
  padding: 28px;
  color: #172033;
  background: white;
  box-shadow: 0 20px 80px #0003;
  overflow: auto;
}

.dialog::backdrop {
  background: #0f172a80;
  backdrop-filter: blur(4px);
}

.dialog-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 14px;
}

.dialog h2 {
  font-size: 25px;
  line-height: 1.2;
  letter-spacing: -.5px;
}

.eyebrow {
  font-size: 9px;
  font-weight: 700;
  color: var(--blue);
  letter-spacing: .15em;
  margin: 0 0 9px;
}

.dialog-description {
  margin-top: 14px;
  font-size: 14px;
  color: var(--muted);
}

.lesson-files {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 22px 0;
}

.lesson-files div {
  border: 1px solid #e5eaf0;
  border-radius: 10px;
  padding: 12px;
  min-width: 0;
}

.lesson-files span {
  display: block;
  font: 11px Consolas, monospace;
  color: #73839a;
  margin-bottom: 8px;
}

.lesson-files strong {
  display: block;
  font: 600 12px Consolas, monospace;
}

.lesson-files small {
  display: block;
  font-size: 10px;
  color: var(--muted);
  margin-top: 5px;
}

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

.lesson-tool {
  display: block;
  padding: 15px;
  background: #f5f7fa;
  border: 1px solid #edf0f4;
  border-radius: 10px;
  text-align: left;
  cursor: pointer;
}

.lesson-tool strong {
  display: block;
  font-size: 13px;
}

.lesson-tool span {
  display: block;
  color: #657084;
  font-size: 11px;
  line-height: 1.45;
  margin-top: 4px;
}

.lesson-tool[aria-pressed="true"] {
  border-color: #b7d7ff;
  background: #edf5ff;
}

.file-tool input {
  display: block;
  max-width: 100%;
  font-size: 10px;
  margin-top: 10px;
  color: var(--muted);
}

.file-tool input::file-selector-button {
  padding: 5px 7px;
  border: 0;
  border-radius: 4px;
  background: #dce9fc;
  color: #1762bf;
  cursor: pointer;
}

.lesson-tip {
  font-size: 12px;
  line-height: 1.65;
  margin-top: 18px;
  padding: 12px 14px;
  border-left: 3px solid var(--blue);
  background: #f1f6ff;
}

.lesson-footnote {
  color: #7d8796;
  font-size: 10px;
  margin-top: 16px;
}

.message-dialog {
  max-width: 440px;
}

.message-dialog h2 {
  font-size: 21px;
}

.message-dialog>p {
  font-size: 14px;
  line-height: 1.7;
  margin: 18px 0 22px;
}

.toast {
  position: fixed;
  bottom: 24px;
  right: 20px;
  z-index: 50;
  max-width: min(380px, calc(100% - 40px));
  border-radius: 10px;
  background: #172033;
  color: white;
  padding: 13px 18px;
  font-size: 13px;
  box-shadow: 0 4px 20px #0003;
}

.show-outlines [data-lesson] {
  outline: 2px dashed #1877f2;
  outline-offset: -2px;
  position: relative;
}

.show-outlines [data-lesson]::after {
  content: attr(data-lesson);
  position: absolute;
  top: 0;
  right: 0;
  z-index: 12;
  padding: 2px 6px;
  background: #1877f2;
  color: white;
  font: 10px/1.5 Consolas, monospace;
  pointer-events: none;
}

.show-outlines .topbar {
  position: fixed;
}

.noscript {
  background: #fff4cd;
  padding: 16px;
  text-align: center;
}

/* 7. Media queries adaptam a mesma estrutura a celulares e telas grandes. */
@media (min-width: 769px) {
  .video-player {
    max-width: 520px;
  }
}

@media (min-width: 1200px) {
  :root {
    --column: 760px;
  }

  .profile-inner {
    padding-left: 26px;
    padding-right: 26px;
  }

  .cover {
    margin-left: -26px;
    margin-right: -26px;
  }
}

@media (max-width: 1100px) {
  .search-box {
    width: 180px;
  }

  .global-tab {
    width: 80px;
  }
}

@media (max-width: 900px) {
  .topbar-center {
    display: none;
  }

  .search-box {
    width: 240px;
  }
}

@media (max-width: 767px) {
  .profile-wrap {
    margin-bottom: 8px;
  }

  .profile-wrap::before {
    display: none;
  }

  .profile-inner {
    padding: 14px 12px 0;
  }

  .cover {
    margin: -14px -12px 0;
    border-radius: 0;
    aspect-ratio: 2.4;
    box-shadow: none;
  }

  .profile-top {
    flex-wrap: wrap;
    gap: 14px;
  }

  .profile-avatar {
    width: 92px;
    height: 92px;
    margin-top: -34px;
  }

  .profile-info {
    padding-top: 2px;
  }

  .profile-info h1 {
    font-size: 20px;
  }

  .profile-info .verified {
    width: 16px;
    height: 16px;
  }

  .profile-stats {
    font-size: 14px;
  }

  .profile-buttons {
    width: 100%;
    margin: 0;
    pointer-events: none;
  }

  .profile-buttons .button {
    height: 38px;
    flex: 1 1 0;
  }

  .profile-tabs {
    margin-top: 12px;
  }

  .profile-tab {
    padding: 12px 8px;
    font-size: 14px;
  }

  .profile-tab:first-child {
    padding-left: 4px;
  }

  .tab-options {
    display: none;
  }

  .post {
    border-radius: 0;
    box-shadow: none;
  }

  .post-header {
    padding: 12px;
  }

  .panel-card {
    border-radius: 0;
  }

  .lesson-launcher {
    left: 10px;
    bottom: 10px;
    padding: 8px 12px;
  }

  .toast {
    bottom: 80px;
    right: 10px;
  }
}

@media (max-width: 550px) {
  .topbar {
    padding: 0 12px;
  }

  .search-box {
    width: 44px;
    padding: 0 13px;
  }

  .search-box input {
    width: 0;
    opacity: 0;
  }

  .search-box:focus-within,
  .search-open .search-box {
    width: min(230px, calc(100vw - 84px));
  }

  .search-box:focus-within input,
  .search-open .search-box input {
    width: 100%;
    opacity: 1;
  }

  .topbar:has(.search-box:focus-within) .topbar-right,
  .search-open .topbar-right {
    display: none;
  }

  .profile-bio {
    font-size: 14px;
  }

  .offer-grid {
    grid-template-columns: 1fr;
    max-width: 380px;
    margin-inline: auto;
    gap: 16px;
  }

  .best {
    order: -2;
  }

  .popular {
    order: -1;
  }

  .offer-body {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 16px;
    padding: 18px;
  }

  .offer-body h2,
  .supply {
    grid-column: 1;
  }

  .offer-body>img {
    grid-column: 1;
    grid-row: 3/7;
    height: 180px;
    margin: 8px 0;
  }

  .offer-price {
    grid-column: 2;
    grid-row: 1/4;
    font-size: 65px;
    align-self: center;
  }

  .benefits {
    grid-column: 2;
    grid-row: 4;
    margin: 8px 0;
    min-height: 0;
  }

  .offer-total {
    grid-column: 2;
    grid-row: 5;
  }

  .shipping {
    grid-column: 2;
    grid-row: 6;
    margin-bottom: 12px;
  }

  .buy-button {
    grid-column: 1/-1;
    margin-top: 8px;
  }

  .dialog {
    padding: 22px;
  }

  .dialog h2 {
    font-size: 22px;
  }

  .lesson-files {
    gap: 6px;
  }

  .lesson-files div {
    padding: 10px 7px;
  }

  .lesson-files strong {
    font-size: 10px;
  }

  .lesson-files small {
    font-size: 9px;
  }

  .lesson-tools {
    grid-template-columns: 1fr;
  }

  .photo-grid img {
    height: 120px;
  }
}

@media (max-width: 450px) {
  .video-player {
    max-width: 100%;
  }
}

@media (max-width: 380px) {
  .profile-buttons .button {
    padding: 0 8px;
    font-size: 14px;
    gap: 5px;
    min-width: 0;
  }

  .profile-buttons .icon {
    width: 14px;
    height: 14px;
  }
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }

  .button,
  .lesson-tool {
    transition: background .15s, color .15s;
  }
}

@media print {

  .topbar,
  .lesson-launcher,
  dialog,
  .toast {
    display: none;
  }

  body {
    padding-top: 0;
  }

  .page-footer {
    padding-bottom: 0;
  }
}
.brand-cover{height:100%;min-height:200px;background:linear-gradient(125deg,#113c35,#598f75);color:#fff;display:flex;flex-direction:column;justify-content:center;align-items:center;gap:12px;text-align:center;padding:24px}.brand-cover strong{font-size:clamp(26px,5vw,48px)}.brand-cover span{font-size:18px}.cover{height:260px}.reference-note{padding:20px;font-size:13px;line-height:1.6;color:#59636b}.profile-stats{font-size:14px}.page-footer{text-align:center;padding:24px}