:root {
  /* Design system oficial do Hub Eleve. */
  --paper: #f6f7f9;
  --paper-deep: #eef1f4;
  --surface: #ffffff;
  --ink: #444b55;
  --ink-strong: #30343a;
  --muted: #737b87;
  --line: #dfe4ea;

  --orange: #ff6f3d;
  --orange-light: #fff0eb;
  --orange-dark: #b5471f;
  --orange-ink: #692510;

  --teal: #1ac2c2;
  --teal-light: #e9fbfb;
  --teal-dark: #0b4b4b;
  --violet: #7b61a8;
  --violet-light: #f2eef8;
  --danger: #d92d20;
  --danger-light: #fef3f2;
  --warning: #8a5a00;
  --warning-light: #fffaeb;
  --focus: #ff6f3d;

  --shadow-sm: 0 1px 3px rgba(36, 36, 36, 0.08);
  --shadow-md: 0 10px 28px rgba(36, 36, 36, 0.1);
  --radius-sm: 8px;
  --radius-md: 10px;
  --radius-lg: 12px;

  /* Compatibilidade com a área administrativa existente. */
  --laranja-claro: var(--orange-light);
  --laranja: var(--orange);
  --laranja-escuro: var(--orange-dark);
  --verde-agua-claro: var(--teal-light);
  --verde-agua: var(--teal);
  --verde-agua-escuro: var(--teal-dark);
  --roxo-claro: var(--violet-light);
  --roxo: var(--violet);
  --roxo-escuro: var(--violet);
  --azul-claro: var(--violet-light);
  --verde: var(--teal);
  --vermelho: var(--danger);
  --cinza: var(--muted);
  --borda: var(--line);
  --fundo: var(--paper);
  --texto: var(--ink);
  --gradiente: var(--orange);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 24px;
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: clip;
  background: var(--paper);
  color: var(--ink);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  line-height: 1.5;
}

body.modal-aberto {
  overflow: hidden;
}

[hidden] {
  display: none !important;
}

button,
input,
select,
textarea {
  font: inherit;
}

button,
a,
select {
  touch-action: manipulation;
  -webkit-tap-highlight-color: rgba(255, 111, 61, 0.18);
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

h1,
h2,
h3 {
  margin-top: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  line-height: 1.15;
  text-wrap: balance;
}

/* Títulos recebem foco programático apenas para orientar leitores de tela. */
h2[tabindex='-1']:focus {
  outline: none;
}

p {
  text-wrap: pretty;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 1000;
  transform: translateY(-150%);
  border-radius: 10px;
  background: var(--ink);
  color: #fff;
  padding: 10px 16px;
  font-weight: 800;
  text-decoration: none;
  transition: transform 160ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.brandbar {
  position: absolute;
  z-index: 10;
  top: 0;
  right: 0;
  left: 0;
  background: transparent;
  color: #fff;
}

.brandbar-inner {
  display: flex;
  width: min(1100px, calc(100% - 40px));
  min-height: 68px;
  margin: 0 auto;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: #fff;
  text-decoration: none;
}

.brand-logo-frame {
  display: grid;
  width: 38px;
  height: 46px;
  flex: 0 0 38px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.18);
}

.brand-logo {
  display: block;
  width: 27px;
  height: 38px;
  object-fit: contain;
}

.brand-wordmark {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.brand-wordmark strong {
  font-size: 1.05rem;
  letter-spacing: 0.13em;
}

.brand-wordmark small {
  margin-top: 4px;
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.55rem;
  font-weight: 700;
  letter-spacing: 0.22em;
}

.brand-product {
  border-left: 1px solid rgba(255, 255, 255, 0.18);
  color: rgba(255, 255, 255, 0.72);
  padding-left: 18px;
  font-size: 0.82rem;
  font-weight: 600;
}

.brandbar-student .brand-lockup,
.brandbar-student .brand-wordmark small,
.brandbar-student .brand-product {
  color: var(--ink-strong);
}

.brandbar-student .brand-product {
  border-left-color: rgba(48, 52, 58, 0.24);
}

.hero {
  position: relative;
  min-height: 320px;
  overflow: hidden;
  background: var(--orange);
  color: var(--ink-strong);
  border-radius: 0;
}

.hero::before {
  content: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  width: min(1100px, calc(100% - 40px));
  margin: 0 auto;
  padding: 116px 0 92px;
}

.hero-kicker,
.eyebrow {
  margin: 0 0 8px;
  color: var(--orange-dark);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(36, 36, 36, 0.28);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.18);
  color: var(--ink-strong);
  padding: 7px 12px;
}

.hero h1 {
  max-width: 740px;
  margin: 22px 0 12px;
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 800;
  letter-spacing: -0.045em;
  color: #484f57;
}

.hero-copy {
  max-width: 650px;
  margin: 0;
  font-size: clamp(1rem, 2vw, 1.25rem);
  font-weight: 700;
}

.hero-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 28px;
  color: var(--orange-ink);
  font-size: 0.9rem;
  font-weight: 800;
}

.hero-shape {
  position: absolute;
  border: 2px solid rgba(36, 36, 36, 0.2);
  pointer-events: none;
}

.hero-shape-one {
  top: 52px;
  right: 8%;
  width: 180px;
  height: 180px;
  transform: rotate(12deg);
  border-radius: 38% 62% 55% 45%;
}

.hero-shape-two {
  right: 25%;
  bottom: -70px;
  width: 140px;
  height: 140px;
  transform: rotate(-18deg);
  border-radius: 50%;
  background: rgba(45, 45, 45, 0.08);
}

.container {
  position: relative;
  z-index: 2;
  width: min(1100px, calc(100% - 32px));
  margin: -56px auto 0;
  padding-bottom: 72px;
}

.progress-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
  padding: 14px 20px;
  box-shadow: var(--shadow-md);
}

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin: 0;
  padding: 0;
  list-style: none;
}

.step {
  position: relative;
  display: flex;
  min-width: 0;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
  text-align: center;
}

.step:not(:last-child)::after {
  content: '';
  position: absolute;
  z-index: 0;
  top: 15px;
  right: calc(-50% + 22px);
  left: calc(50% + 22px);
  height: 2px;
  background: var(--line);
}

.step-number {
  position: relative;
  z-index: 1;
  display: grid;
  width: 32px;
  height: 32px;
  flex: 0 0 32px;
  place-items: center;
  border: 2px solid var(--line);
  border-radius: 50%;
  background: var(--surface);
  font-variant-numeric: tabular-nums;
}

.step.active,
.step.done {
  color: var(--ink);
}

.step.active .step-number {
  border-color: var(--orange);
  background: var(--orange);
  color: var(--ink-strong);
}

.step.done .step-number {
  border-color: var(--teal);
  background: var(--teal);
  color: var(--teal-dark);
}

.step.done:not(:last-child)::after {
  background: var(--teal);
}

.identity-card {
  display: grid;
  grid-template-columns: 0.85fr 1.45fr;
  gap: 46px;
  margin-top: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  padding: clamp(24px, 5vw, 48px);
  box-shadow: var(--shadow-sm);
}

.identity-intro h2,
.section-heading h2,
.success-section h2 {
  margin-bottom: 10px;
  font-size: clamp(1.7rem, 4vw, 2.5rem);
}

.identity-intro p:last-child,
.section-heading p:last-child {
  margin: 0;
  color: var(--muted);
}

.identity-form {
  display: grid;
  grid-template-columns: 1fr 0.72fr;
  gap: 16px;
  align-content: start;
}

.identity-form label,
.form-row label {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 7px;
  color: var(--ink);
  font-size: 0.84rem;
  font-weight: 800;
}

.identity-form input,
.identity-form select,
.form-row input,
.form-row select {
  width: 100%;
  min-height: 50px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #fff;
  color: var(--ink);
  padding: 11px 14px;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.identity-form input:hover,
.identity-form select:hover,
.form-row input:hover,
.form-row select:hover {
  border-color: #98a2b3;
}

.identity-form select:disabled {
  cursor: not-allowed;
  background: var(--paper-deep);
  color: var(--muted);
  opacity: 0.72;
}

.identity-form input:focus-visible,
.identity-form select:focus-visible,
.form-row input:focus-visible,
.form-row select:focus-visible {
  border-color: var(--focus);
  box-shadow: 0 0 0 3px rgba(255, 111, 61, 0.18);
}

.identity-form .btn-large,
.identity-form .form-error {
  grid-column: 1 / -1;
}

.form-error {
  margin: 0;
  border-left: 4px solid var(--danger);
  border-radius: 8px;
  background: var(--danger-light);
  color: #70231e;
  padding: 10px 12px;
  font-size: 0.88rem;
  font-weight: 700;
}

.privacy-note {
  grid-column: 1 / -1;
  margin: -16px 0 0;
  border-top: 1px dashed var(--line);
  color: var(--muted);
  padding-top: 18px;
  font-size: 0.82rem;
}

.btn {
  position: relative;
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  padding: 10px 20px;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
  transition: transform 160ms ease, background-color 160ms ease, border-color 160ms ease;
}

.btn:hover:not(:disabled) {
  transform: translateY(-1px);
}

.btn:active:not(:disabled) {
  transform: translateY(0);
}

.btn:disabled {
  cursor: not-allowed;
  opacity: 0.62;
}

.btn-primary {
  background: var(--orange);
  color: var(--ink-strong);
  box-shadow: none;
}

.btn-primary:hover:not(:disabled) {
  background: #f25f2e;
  box-shadow: none;
}

.btn-secondary {
  border-color: var(--teal);
  background: var(--teal);
  color: var(--teal-dark);
}

.btn-secondary:hover:not(:disabled) {
  border-color: #14aaaa;
  background: #14aaaa;
}

.btn-large {
  min-height: 54px;
  font-size: 1rem;
}

.btn-link,
.btn-detalhes {
  border: 0;
  background: transparent;
  color: var(--orange);
  padding: 6px;
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.btn-link:hover,
.btn-detalhes:hover {
  color: var(--orange-dark);
}

.btn-spinner {
  display: none;
  width: 18px;
  height: 18px;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: spin 700ms linear infinite;
}

.btn.loading .btn-spinner {
  display: block;
}

.btn.loading .btn-label {
  opacity: 0.86;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.student-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
  padding: 12px 16px;
  box-shadow: var(--shadow-sm);
}

.student-avatar {
  display: grid;
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  place-items: center;
  border-radius: var(--radius-sm);
  background: var(--orange-light);
  color: var(--orange-dark);
  font-family: 'Inter', sans-serif;
  font-size: 1.2rem;
  font-weight: 800;
}

.student-info {
  display: flex;
  min-width: 0;
  flex: 1;
  flex-direction: column;
}

.student-info span {
  color: var(--muted);
  font-size: 0.74rem;
}

.student-info strong {
  overflow-wrap: anywhere;
}

.day-switcher {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin: 24px 0;
}

.day-button {
  position: relative;
  display: flex;
  min-height: 74px;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
  color: var(--ink);
  padding: 12px 18px;
  text-align: left;
  cursor: pointer;
  transition: transform 160ms ease, border-color 160ms ease, background-color 160ms ease;
}

.day-button:hover:not(:disabled) {
  transform: translateY(-1px);
  border-color: var(--orange);
}

.day-button.active {
  border-color: var(--orange);
  background: var(--orange-light);
}

.day-button:disabled {
  cursor: not-allowed;
  opacity: 0.58;
}

.day-number {
  display: grid;
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  place-items: center;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  font-weight: 800;
}

.day-button > span:nth-child(2) {
  display: flex;
  min-width: 0;
  flex: 1;
  flex-direction: column;
  font-weight: 800;
}

.day-button small {
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 700;
}

.day-check {
  display: none;
  color: var(--teal);
  font-size: 1.3rem;
  font-weight: 900;
}

.day-button.done .day-check {
  display: block;
}

.choice-section,
.review-section,
.success-section {
  scroll-margin-top: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  padding: clamp(22px, 4vw, 40px);
  box-shadow: var(--shadow-sm);
}

.section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 26px;
}

.section-heading > div {
  min-width: 0;
}

.update-status {
  flex: 0 0 auto;
  margin: 0;
  color: var(--muted);
  font-size: 0.76rem;
}

.course-grid,
.skeleton-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.course-card {
  position: relative;
  display: flex;
  min-width: 0;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-top: 4px solid var(--orange);
  border-radius: var(--radius-md);
  background: #fff;
  padding: 18px;
  box-shadow: var(--shadow-sm);
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.course-card:hover {
  transform: translateY(-1px);
  border-color: #c6cdd5;
  border-top-color: var(--orange);
  box-shadow: 0 7px 18px rgba(36, 36, 36, 0.08);
}

.course-card.selected {
  border-color: var(--teal);
  border-top-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(26, 194, 194, 0.14);
}

.course-card.sold-out {
  border-color: #d9c4c1;
}

.course-selected-mark {
  position: absolute;
  z-index: 2;
  top: 12px;
  right: 12px;
  display: none;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 50%;
  background: var(--teal);
  color: var(--teal-dark);
  font-weight: 900;
}

.course-card.selected .course-selected-mark {
  display: grid;
}

.course-topline {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
  padding-right: 0;
}

.course-card.selected .course-topline {
  padding-right: 32px;
}

.course-subject {
  color: var(--orange-dark);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.badge-vagas {
  flex: 0 0 auto;
  border-radius: 999px;
  background: var(--teal-light);
  color: #10574d;
  padding: 5px 10px;
  font-size: 0.72rem;
  font-variant-numeric: tabular-nums;
  font-weight: 900;
  white-space: nowrap;
}

.badge-vagas.pouco {
  background: var(--warning-light);
  color: var(--warning);
}

.badge-vagas.esgotado {
  background: var(--danger-light);
  color: #7d2822;
}

.course-card h3 {
  min-height: 2.55em;
  margin: 0 0 8px;
  color: var(--ink);
  font-size: 1.22rem;
  overflow-wrap: anywhere;
}

.course-card .professor {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
}

.video-area {
  position: relative;
  display: flex;
  width: min(100%, 320px);
  aspect-ratio: 9 / 16;
  align-items: center;
  justify-content: center;
  margin-inline: auto;
  overflow: hidden;
  border-radius: var(--radius-sm);
  background: #2d2d2d;
}

.video-area iframe,
.video-area video {
  width: 100%;
  height: 100%;
  border: 0;
  object-fit: contain;
  background: #2d2d2d;
}

.video-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin: 0;
  color: #fff;
  padding: 20px;
  text-align: center;
  font-size: 0.86rem;
  font-weight: 700;
}

.video-empty::before {
  content: '▷';
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 2px solid rgba(255, 255, 255, 0.7);
  border-radius: 50%;
  font-size: 1.2rem;
}

.video-link {
  color: #fff;
  font-weight: 800;
}

.course-description {
  margin: 14px 0 16px;
}

.course-description .descricao {
  display: -webkit-box;
  min-height: 4.5em;
  margin: 0;
  overflow: hidden;
  color: #46413b;
  font-size: 0.88rem;
  line-height: 1.5;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.course-description.expanded .descricao {
  display: block;
  min-height: 0;
  overflow: visible;
}

.btn-detalhes {
  min-height: 36px;
  margin: 4px 0 0 -6px;
  font-size: 0.8rem;
}

.btn-select {
  width: 100%;
  margin-top: auto;
  border-color: var(--orange);
  background: #fff;
  color: var(--orange-dark);
}

.btn-select:hover:not(:disabled) {
  background: var(--orange-light);
}

.course-card.selected .btn-select {
  border-color: var(--teal);
  background: var(--teal);
  color: var(--teal-dark);
}

.course-card.sold-out .btn-select {
  border-color: #c8bdb5;
  background: #d7cec7;
  color: #5c554f;
}

.selection-action {
  position: fixed;
  z-index: 20;
  right: auto;
  bottom: max(16px, env(safe-area-inset-bottom));
  left: 50%;
  display: flex;
  width: min(1020px, calc(100% - 32px));
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 24px;
  border: 1px solid rgba(39, 48, 67, 0.12);
  border-radius: var(--radius-md);
  background: rgba(45, 45, 45, 0.97);
  color: #fff;
  padding: 14px 16px 14px 20px;
  box-shadow: 0 16px 36px rgba(39, 48, 67, 0.24);
  backdrop-filter: blur(10px);
  transform: translateX(-50%);
}

.choice-section.has-selection .course-grid {
  padding-bottom: 84px;
}

.selection-action > div {
  display: flex;
  min-width: 0;
  flex-direction: column;
}

.selection-label {
  color: #d7dbe3;
  font-size: 0.7rem;
  text-transform: uppercase;
}

.selection-action strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.selection-action .btn-primary {
  flex: 0 0 auto;
  background: var(--orange);
  color: var(--ink-strong);
  box-shadow: none;
}

.selection-action .btn-primary:hover {
  background: #f25f2e;
}

.skeleton-card {
  height: 520px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background:
    linear-gradient(var(--paper-deep) 0 0) 18px 18px / 42% 14px no-repeat,
    linear-gradient(var(--paper-deep) 0 0) 18px 48px / 70% 22px no-repeat,
    linear-gradient(#e5ded2 0 0) 18px 92px / calc(100% - 36px) 190px no-repeat,
    linear-gradient(var(--paper-deep) 0 0) 18px 306px / calc(100% - 36px) 12px no-repeat,
    linear-gradient(var(--paper-deep) 0 0) 18px 330px / 80% 12px no-repeat,
    #fff;
  animation: pulse 1.3s ease-in-out infinite alternate;
}

@keyframes pulse {
  to { opacity: 0.56; }
}

.state-card {
  display: flex;
  align-items: center;
  gap: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: #fff;
  padding: 20px;
}

.state-card h3,
.state-card p {
  margin: 0;
}

.state-card p {
  color: var(--muted);
}

.state-card .btn {
  margin-left: auto;
}

.state-icon {
  display: grid;
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  place-items: center;
  border-radius: var(--radius-sm);
  background: var(--teal-light);
  color: var(--teal-dark);
  font-size: 1.3rem;
  font-weight: 900;
}

.error-state .state-icon {
  background: var(--danger-light);
  color: var(--danger);
}

.review-heading {
  margin-bottom: 28px;
}

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

.review-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-top: 4px solid var(--orange);
  border-radius: var(--radius-md);
  background: #fff;
  padding: 24px;
}

.review-card::after {
  content: none;
}

.review-day {
  margin-bottom: 8px;
  color: var(--orange-dark);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.review-card h3 {
  max-width: 86%;
  margin-bottom: 8px;
  font-size: 1.35rem;
}

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

.review-confirmation {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-top: 24px;
  border: 1px solid rgba(26, 194, 194, 0.35);
  border-radius: var(--radius-md);
  background: var(--teal-light);
  padding: 18px 20px;
}

.review-confirmation > p:first-child {
  flex: 1;
  margin: 0;
  color: var(--teal-dark);
}

.review-confirmation .form-error {
  flex: 1 1 100%;
}

.success-section {
  max-width: 820px;
  margin: 24px auto 0;
  text-align: center;
}

.success-mark {
  display: grid;
  width: 74px;
  height: 74px;
  margin: 0 auto 18px;
  place-items: center;
  border-radius: var(--radius-md);
  background: var(--teal);
  color: #fff;
  box-shadow: none;
  color: var(--teal-dark);
  font-size: 2rem;
  font-weight: 900;
}

.success-copy {
  color: var(--muted);
}

.success-summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin: 28px 0;
  text-align: left;
}

.success-summary > div {
  display: flex;
  min-width: 0;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: #fff;
  padding: 18px;
}

.success-summary span {
  color: var(--orange-dark);
  font-size: 0.75rem;
  font-weight: 900;
  text-transform: uppercase;
}

.success-summary strong {
  overflow-wrap: anywhere;
}

.success-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
}

.footer-coord {
  padding: 10px 16px max(40px, env(safe-area-inset-bottom));
  text-align: center;
}

.footer-coord button {
  min-height: 44px;
  border: 0;
  background: transparent;
  color: var(--muted);
  padding: 8px 12px;
  font-size: 0.8rem;
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.footer-coord button:hover {
  color: var(--ink);
}

.overlay {
  position: fixed;
  z-index: 100;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow-y: auto;
  overscroll-behavior: contain;
  background: rgba(22, 25, 34, 0.7);
  padding: max(20px, env(safe-area-inset-top)) 20px max(20px, env(safe-area-inset-bottom));
  backdrop-filter: blur(6px);
}

.modal {
  position: relative;
  width: min(720px, 100%);
  max-height: 86vh;
  overflow-y: auto;
  overscroll-behavior: contain;
  border-radius: var(--radius-lg);
  background: var(--surface);
  padding: 30px;
  box-shadow: 0 24px 70px rgba(10, 15, 24, 0.3);
}

.btn-fechar-modal {
  position: absolute;
  top: 14px;
  right: 14px;
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #fff;
  color: var(--ink);
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
}

.form-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 14px;
}

.form-row label {
  flex: 1 1 200px;
}

.form-row > button {
  min-height: 50px;
  border: 0;
  border-radius: var(--radius-sm);
  background: var(--orange);
  color: var(--ink);
  padding: 10px 22px;
  font-weight: 800;
  cursor: pointer;
}

.hint {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 0.85rem;
}

.hint.ok {
  color: var(--teal);
  font-weight: 800;
}

@media (max-width: 880px) {
  .identity-card {
    grid-template-columns: 1fr;
    gap: 26px;
  }

  .privacy-note {
    margin-top: 0;
  }

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

  .course-grid .course-card:last-child:nth-child(odd),
  .skeleton-grid .skeleton-card:last-child:nth-child(odd) {
    grid-column: 1 / -1;
    width: calc(50% - 9px);
  }

  .review-confirmation {
    flex-wrap: wrap;
  }
}

@media (max-width: 640px) {
  .hero {
    min-height: 320px;
    border-radius: 0;
  }

  .hero-inner {
    width: min(100% - 32px, 1100px);
    padding: 104px 0 80px;
  }

  .hero h1 {
    margin-top: 18px;
    font-size: clamp(2.4rem, 13vw, 3.45rem);
  }

  .hero-copy {
    font-size: 1rem;
  }

  .hero-shape-one {
    right: -70px;
  }

  .container {
    width: min(100% - 24px, 1100px);
    margin-top: -42px;
  }

  .progress-card {
    padding: 12px;
  }

  .steps {
    gap: 4px;
  }

  .step {
    justify-content: center;
  }

  .step:not(:last-child)::after {
    right: calc(-50% + 20px);
    left: calc(50% + 21px);
  }

  .step-label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
  }

  .identity-card,
  .choice-section,
  .review-section,
  .success-section {
    border-radius: var(--radius-lg);
    padding: 22px 18px;
  }

  .identity-form {
    grid-template-columns: 1fr;
  }

  .identity-form .btn-large,
  .identity-form .form-error {
    grid-column: auto;
  }

  .student-bar {
    align-items: flex-start;
  }

  .student-bar .btn-link {
    flex: 0 0 auto;
  }

  .day-switcher {
    gap: 8px;
  }

  .day-button {
    min-height: 68px;
    gap: 8px;
    padding: 10px;
  }

  .day-number {
    width: 30px;
    height: 30px;
    flex-basis: 30px;
  }

  .day-check {
    position: absolute;
    top: 6px;
    right: 8px;
  }

  .section-heading {
    display: block;
  }

  .update-status {
    margin-top: 10px;
  }

  .course-grid,
  .skeleton-grid {
    grid-template-columns: 1fr;
  }

  .course-grid .course-card:last-child:nth-child(odd),
  .skeleton-grid .skeleton-card:last-child:nth-child(odd) {
    grid-column: auto;
    width: auto;
  }

  .course-card h3 {
    min-height: 0;
  }

  .selection-action {
    align-items: stretch;
    flex-direction: column;
    gap: 12px;
    padding: 16px;
  }

  .choice-section.has-selection .course-grid {
    padding-bottom: 150px;
  }

  .selection-action .btn {
    width: 100%;
  }

  .review-grid,
  .success-summary {
    grid-template-columns: 1fr;
  }

  .review-confirmation,
  .success-actions,
  .state-card {
    align-items: stretch;
    flex-direction: column;
  }

  .review-confirmation .btn,
  .success-actions .btn,
  .state-card .btn {
    width: 100%;
    margin-left: 0;
  }

  .modal {
    padding: 26px 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
