:root {
  --brand: #4056c7;
  --brand-dark: #24326f;
  --ink: #172033;
  --muted: #667085;
  --line: #e6e9ef;
  --soft: #f5f7fb;
  --paper: #ffffff;
  --success: #087443;
  --danger: #b42318;
  --shadow: 0 18px 55px rgba(23, 32, 51, 0.1);
  --radius: 18px;
  color-scheme: light;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  display: flex;
  flex-direction: column;
  color: var(--ink);
  background: #fbfcfe;
  -webkit-font-smoothing: antialiased;
}

main {
  flex: 1;
}

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

a {
  color: var(--brand);
  text-decoration: none;
}

a:hover {
  text-decoration: none;
}

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

button,
summary {
  cursor: pointer;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  letter-spacing: -0.025em;
}

.container {
  width: min(1160px, calc(100% - 40px));
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  z-index: 999;
  top: 12px;
  left: 12px;
  padding: 10px 14px;
  color: #fff;
  background: var(--ink);
  border-radius: 8px;
  transform: translateY(-150%);
}

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

.site-header,
.tenant-header {
  position: sticky;
  z-index: 30;
  top: 0;
  border-bottom: 1px solid rgba(230, 233, 239, 0.9);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(16px);
}

.tenant-header {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.14);
  background: color-mix(in srgb, var(--brand) 94%, transparent);
}

.header-row {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand,
.tenant-brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--ink);
  font-size: 1.04rem;
  font-weight: 800;
}

.brand img,
.auth-logo {
  width: 39px;
  height: 39px;
  object-fit: contain;
}

.tenant-brand {
  min-width: 0;
  color: #fff;
}

.tenant-brand img,
.brand-mark {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  border: 2px solid rgba(255, 255, 255, 0.5);
  border-radius: 50%;
  object-fit: cover;
}

.brand-mark {
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.16);
}

.tenant-brand > span:last-child {
  display: grid;
  min-width: 0;
}

.tenant-brand strong,
.tenant-brand small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tenant-brand small {
  margin-top: 1px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.71rem;
  font-weight: 500;
}

.desktop-nav,
.account-actions,
.footer-links {
  display: flex;
  align-items: center;
  gap: 25px;
}

.desktop-nav a {
  color: #475467;
  font-size: 0.91rem;
  font-weight: 650;
}

.desktop-nav a:hover {
  color: var(--brand);
}

.mobile-menu {
  display: none;
  position: relative;
}

.mobile-menu summary {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  list-style: none;
  border: 1px solid var(--line);
  border-radius: 10px;
  font-size: 1.35rem;
}

.mobile-menu summary::-webkit-details-marker {
  display: none;
}

.mobile-menu nav {
  position: absolute;
  top: 50px;
  right: 0;
  width: 220px;
  display: grid;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  box-shadow: var(--shadow);
}

.mobile-menu nav a {
  padding: 10px 12px;
  color: var(--ink);
  border-radius: 8px;
}

.mobile-menu nav a:hover {
  background: var(--soft);
}

.button {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 19px;
  border: 1px solid var(--brand);
  border-radius: 10px;
  color: #fff;
  background: var(--brand);
  font-weight: 750;
  line-height: 1.2;
  text-align: center;
  transition: transform 150ms ease, box-shadow 150ms ease, background 150ms ease;
}

.button:hover {
  color: #fff;
  background: color-mix(in srgb, var(--brand) 88%, #000);
  box-shadow: 0 8px 20px color-mix(in srgb, var(--brand) 22%, transparent);
  transform: translateY(-1px);
}

.button-small {
  min-height: 38px;
  padding: 8px 14px;
  font-size: 0.86rem;
}

.button-large {
  min-height: 52px;
  padding: 14px 24px;
}

.button-full {
  width: 100%;
}

.button-outline {
  color: var(--brand);
  background: transparent;
}

.button-outline:hover {
  color: #fff;
}

.button-light {
  color: var(--brand-dark);
  border-color: #fff;
  background: #fff;
}

.button-light:hover {
  color: var(--brand-dark);
  background: #f8f9ff;
}

.button-ghost {
  color: #475467;
  border-color: var(--line);
  background: transparent;
}

.button-ghost:hover {
  color: var(--ink);
  background: var(--soft);
  box-shadow: none;
}

.link-button,
.danger-link {
  padding: 0;
  border: 0;
  color: inherit;
  background: none;
  font-weight: 650;
}

.danger-link {
  color: var(--danger);
  font-size: 0.86rem;
}

.user-name {
  max-width: 220px;
  overflow: hidden;
  color: rgba(255, 255, 255, 0.86);
  font-size: 0.88rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tenant-nav {
  position: sticky;
  z-index: 20;
  top: 72px;
  border-bottom: 1px solid var(--line);
  background: #fff;
}

.tenant-nav-inner {
  display: flex;
  gap: 2px;
  overflow-x: auto;
  scrollbar-width: none;
}

.tenant-nav-inner::-webkit-scrollbar {
  display: none;
}

.tenant-nav a {
  flex: 0 0 auto;
  padding: 14px 13px;
  color: #596174;
  border-bottom: 2px solid transparent;
  font-size: 0.87rem;
  font-weight: 650;
  white-space: nowrap;
}

.tenant-nav a:hover {
  color: var(--brand);
  border-color: var(--brand);
}

.hero {
  position: relative;
  overflow: hidden;
  padding: 92px 0 105px;
  background:
    radial-gradient(circle at 80% 20%, rgba(116, 134, 255, 0.2), transparent 28rem),
    linear-gradient(145deg, #fbfcff 0%, #f0f3ff 100%);
}

.hero::before {
  content: "";
  position: absolute;
  width: 420px;
  height: 420px;
  right: -210px;
  bottom: -250px;
  border: 70px solid rgba(64, 86, 199, 0.05);
  border-radius: 50%;
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(400px, 0.98fr);
  align-items: center;
  gap: 75px;
}

.eyebrow {
  display: inline-block;
  margin-bottom: 12px;
  color: var(--brand);
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0.14em;
}

.hero h1 {
  max-width: 710px;
  margin-bottom: 23px;
  font-size: clamp(2.55rem, 5.4vw, 4.75rem);
  line-height: 1.02;
}

.hero-copy > p {
  max-width: 650px;
  margin-bottom: 30px;
  color: #536078;
  font-size: 1.15rem;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 24px;
}

.text-link {
  font-weight: 750;
}

.trust-line {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
  margin-top: 27px;
  color: #596174;
  font-size: 0.8rem;
  font-weight: 650;
}

.hero-visual {
  position: relative;
}

.browser-card {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.85);
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 32px 80px rgba(36, 50, 111, 0.22);
  transform: perspective(1100px) rotateY(-4deg) rotateX(2deg);
}

.browser-top {
  display: flex;
  gap: 6px;
  padding: 12px 15px;
  border-bottom: 1px solid #eceefa;
  background: #fafbff;
}

.browser-top i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #cdd3e7;
}

.preview-layout {
  min-height: 355px;
  display: grid;
  grid-template-columns: 94px 1fr;
}

.preview-layout aside {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 17px;
  padding: 23px 14px;
  background: #263471;
}

.preview-layout aside span {
  width: 49px;
  height: 5px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.3);
}

.preview-logo {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  margin-bottom: 10px;
  border-radius: 12px;
  background: #fff;
}

.preview-main {
  padding: 28px 24px;
  background: #f7f8fc;
}

.preview-welcome {
  display: grid;
  gap: 5px;
  padding: 24px;
  color: #fff;
  border-radius: 15px;
  background: linear-gradient(135deg, #4056c7, #7082e5);
}

.preview-welcome small {
  opacity: 0.8;
}

.preview-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin: 18px 0;
}

.preview-stats i {
  height: 55px;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 3px 12px rgba(37, 49, 95, 0.06);
}

.preview-courses {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.preview-courses article {
  min-width: 0;
  display: grid;
  gap: 18px;
  padding: 16px;
  border-radius: 10px;
  background: #fff;
}

.preview-courses b {
  overflow: hidden;
  font-size: 0.72rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.preview-courses em {
  width: 72%;
  height: 5px;
  border-radius: 10px;
  background: #e5e8f3;
}

.floating-note {
  position: absolute;
  right: -20px;
  bottom: 34px;
  padding: 13px 18px;
  border: 1px solid #e9ebf5;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 15px 35px rgba(36, 50, 111, 0.18);
  font-size: 0.82rem;
  font-weight: 750;
}

.section {
  padding: 92px 0;
}

.section-soft {
  background: var(--soft);
}

.section-heading {
  max-width: 710px;
  margin: 0 auto 48px;
  text-align: center;
}

.section-heading h2,
.split-section h2,
.final-cta h2 {
  margin-bottom: 14px;
  font-size: clamp(2rem, 4vw, 3.1rem);
  line-height: 1.12;
}

.section-heading p,
.split-section p {
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.65;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.feature-grid article {
  padding: 27px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  transition: border-color 150ms ease, transform 150ms ease;
}

.feature-grid article:hover {
  border-color: color-mix(in srgb, var(--brand) 36%, var(--line));
  transform: translateY(-3px);
}

.feature-grid article > span {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  margin-bottom: 21px;
  border-radius: 13px;
  background: color-mix(in srgb, var(--brand) 9%, white);
  font-size: 1.35rem;
}

.feature-grid h3 {
  margin-bottom: 9px;
  font-size: 1.05rem;
}

.feature-grid p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.6;
}

.split-section {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  align-items: center;
  gap: 90px;
}

.role-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.role-list > div {
  display: grid;
  gap: 6px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: #fff;
}

.role-list b {
  color: var(--brand);
}

.role-list span {
  color: var(--muted);
  font-size: 0.85rem;
  line-height: 1.45;
}

.plans-section {
  background: #fff;
}

.plans-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  align-items: stretch;
  gap: 16px;
}

.plan-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 28px 23px 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.plan-card.popular {
  border: 2px solid var(--brand);
  box-shadow: 0 18px 45px color-mix(in srgb, var(--brand) 13%, transparent);
  transform: translateY(-7px);
}

.popular-label {
  position: absolute;
  top: -14px;
  left: 50%;
  padding: 6px 12px;
  color: #fff;
  border-radius: 20px;
  background: var(--brand);
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  white-space: nowrap;
  transform: translateX(-50%);
}

.plan-card h3 {
  margin-bottom: 18px;
  color: #344054;
  font-size: 1rem;
}

.price {
  min-height: 46px;
  font-size: 2.1rem;
  font-weight: 850;
}

.price small {
  font-size: 0.78rem;
  font-weight: 650;
}

.plan-card > p {
  color: var(--muted);
  font-size: 0.76rem;
}

.plan-card ul {
  flex: 1;
  display: grid;
  gap: 11px;
  margin: 17px 0 25px;
  padding: 20px 0 0;
  border-top: 1px solid var(--line);
  color: #475467;
  font-size: 0.82rem;
  list-style: none;
}

.billing-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 32px;
  padding: 28px 30px;
  color: #fff;
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--brand-dark), var(--brand));
  box-shadow: 0 18px 45px color-mix(in srgb, var(--brand) 18%, transparent);
}

.billing-summary h2 {
  margin: 5px 0 4px;
  font-size: 1.7rem;
}

.billing-summary p,
.billing-summary small {
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
}

.billing-summary .eyebrow {
  color: rgba(255, 255, 255, 0.68);
}

.billing-summary .button-outline {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.55);
  background: transparent;
}

.billing-section {
  margin-top: 42px;
}

.billing-plans {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.billing-plans form,
.billing-plans .button {
  width: 100%;
}

.billing-plans button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.billing-invoice {
  grid-template-columns: auto minmax(0, 1fr);
}

.final-cta {
  padding: 77px 0;
  color: #fff;
  background: linear-gradient(135deg, #263471, #4056c7 62%, #6477de);
  text-align: center;
}

.final-cta p {
  margin-bottom: 25px;
  color: rgba(255, 255, 255, 0.78);
}

.site-footer {
  padding: 25px 0;
  color: #858ca0;
  border-top: 1px solid var(--line);
  background: #fff;
  font-size: 0.8rem;
}

.footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.footer-links a {
  color: #667085;
}

.page {
  padding-top: 38px;
  padding-bottom: 65px;
}

.narrow-page {
  max-width: 820px;
}

.welcome-card {
  min-height: 210px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  margin-bottom: 39px;
  padding: 40px;
  color: #fff;
  border-radius: 21px;
  background: linear-gradient(135deg, var(--brand), var(--brand-dark));
  background-position: center;
  background-size: cover;
  box-shadow: 0 18px 45px color-mix(in srgb, var(--brand) 16%, transparent);
}

.welcome-card > span {
  margin-bottom: 6px;
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.83rem;
  font-weight: 650;
}

.welcome-card h1 {
  margin-bottom: 7px;
  font-size: clamp(2rem, 5vw, 3rem);
}

.welcome-card p {
  max-width: 600px;
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.84);
}

.welcome-card .button {
  margin-top: 20px;
}

.page-heading,
.admin-titlebar {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
}

.page-heading.compact {
  margin-bottom: 25px;
}

.page-heading h1,
.page-heading h2,
.admin-titlebar h1 {
  margin-bottom: 6px;
  font-size: clamp(1.65rem, 4vw, 2.3rem);
}

.page-heading p,
.admin-titlebar p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

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

.course-card {
  overflow: hidden;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  transition: border-color 150ms ease, transform 150ms ease, box-shadow 150ms ease;
}

.course-card:hover {
  border-color: color-mix(in srgb, var(--brand) 35%, var(--line));
  box-shadow: 0 15px 35px rgba(31, 42, 77, 0.08);
  transform: translateY(-3px);
}

.course-cover {
  height: 160px;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: color-mix(in srgb, var(--brand) 9%, white);
  font-size: 2.4rem;
}

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

.course-card-body {
  padding: 20px;
}

.course-card h3 {
  margin-bottom: 8px;
  font-size: 1.02rem;
}

.course-card p {
  height: 42px;
  display: -webkit-box;
  overflow: hidden;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.5;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.progress-row {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 10px;
  margin-top: 18px;
}

.progress-track {
  height: 6px;
  overflow: hidden;
  border-radius: 20px;
  background: #eef0f5;
}

.progress-track i {
  height: 100%;
  display: block;
  border-radius: inherit;
  background: var(--brand);
}

.progress-row small {
  color: var(--muted);
}

.empty-state {
  padding: 65px 25px;
  border: 1px dashed #ccd2df;
  border-radius: var(--radius);
  background: #fff;
  text-align: center;
}

.empty-state > span {
  display: block;
  margin-bottom: 15px;
  font-size: 2.7rem;
}

.empty-state h1,
.empty-state h2,
.empty-state h3 {
  margin-bottom: 9px;
}

.empty-state p {
  margin: 0 auto 22px;
  color: var(--muted);
}

.auth-page {
  min-height: calc(100vh - 145px);
  display: grid;
  place-items: center;
  padding: 60px 20px;
  background:
    radial-gradient(circle at 15% 12%, color-mix(in srgb, var(--brand) 10%, transparent), transparent 25rem),
    var(--soft);
}

.auth-card,
.editor-card,
.registration-card {
  width: min(100%, 540px);
  padding: 38px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #fff;
  box-shadow: var(--shadow);
}

.auth-heading {
  display: flex;
  align-items: center;
  gap: 17px;
  margin-bottom: 29px;
}

.auth-heading h1 {
  margin-bottom: 6px;
  font-size: 1.65rem;
}

.auth-heading p {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.auth-icon {
  width: 53px;
  height: 53px;
  flex: 0 0 53px;
  display: grid;
  place-items: center;
  border-radius: 15px;
  background: color-mix(in srgb, var(--brand) 10%, white);
  font-size: 1.45rem;
}

.auth-logo {
  width: 53px;
  height: 53px;
  flex: 0 0 53px;
}

.auth-help,
.form-footnote {
  margin: 21px 0 0;
  color: var(--muted);
  font-size: 0.8rem;
  text-align: center;
}

.confirmation-card {
  text-align: center;
}

.mail-illustration {
  width: 72px;
  height: 72px;
  display: grid;
  place-items: center;
  margin: 0 auto 23px;
  border-radius: 22px;
  background: color-mix(in srgb, var(--brand) 10%, white);
  font-size: 2rem;
}

.confirmation-card h1 {
  margin-bottom: 13px;
}

.confirmation-card > p {
  color: var(--muted);
  line-height: 1.65;
}

.info-box {
  display: grid;
  gap: 5px;
  margin: 25px 0;
  padding: 17px;
  color: #475467;
  border-radius: 11px;
  background: var(--soft);
  font-size: 0.82rem;
  text-align: left;
}

.form-stack {
  display: grid;
  gap: 19px;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 17px;
}

.field {
  display: grid;
  gap: 7px;
  color: #344054;
  font-size: 0.86rem;
  font-weight: 700;
}

.field input,
.field textarea,
.field select {
  width: 100%;
  min-width: 0;
  padding: 12px 13px;
  border: 1px solid #cfd5e1;
  border-radius: 9px;
  outline: none;
  background: #fff;
  font-weight: 450;
  transition: border-color 150ms ease, box-shadow 150ms ease;
}

.field textarea {
  resize: vertical;
  line-height: 1.6;
}

.field input:focus,
.field textarea:focus,
.field select:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 13%, transparent);
}

.field small {
  color: var(--muted);
  font-weight: 450;
}

.address-field {
  display: flex;
  align-items: stretch;
  overflow: hidden;
  border: 1px solid #cfd5e1;
  border-radius: 9px;
  background: #f7f8fb;
}

.address-field:focus-within {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 13%, transparent);
}

.address-field > span {
  display: flex;
  align-items: center;
  padding: 0 11px;
  color: #7a8293;
  border-right: 1px solid #dfe3eb;
  font-size: 0.76rem;
  font-weight: 550;
  white-space: nowrap;
}

.address-field input {
  border: 0;
  border-radius: 0;
  box-shadow: none !important;
}

.field-error {
  color: var(--danger);
  font-size: 0.74rem;
  font-weight: 600;
}

.validation-summary {
  color: var(--danger);
  border-radius: 10px;
  background: #fff0ee;
  font-size: 0.82rem;
}

.validation-summary:empty,
.field-error:empty {
  display: none;
}

.validation-summary ul {
  margin: 0;
  padding: 13px 17px 13px 34px;
}

.check-row,
.toggle-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: #475467;
  font-size: 0.82rem;
  line-height: 1.45;
}

.check-row input,
.toggle-row input {
  width: 17px;
  height: 17px;
  flex: 0 0 17px;
  margin: 1px 0 0;
  accent-color: var(--brand);
}

.toggle-row {
  padding: 17px;
  border: 1px solid var(--line);
  border-radius: 11px;
}

.toggle-row > span {
  display: grid;
  gap: 4px;
}

.toggle-row small {
  color: var(--muted);
}

.registration-page {
  padding: 65px 0;
  background:
    radial-gradient(circle at 4% 15%, rgba(64, 86, 199, 0.1), transparent 28rem),
    var(--soft);
}

.registration-grid {
  display: grid;
  grid-template-columns: 0.82fr 1.18fr;
  align-items: start;
  gap: 75px;
}

.registration-intro {
  position: sticky;
  top: 100px;
  padding-top: 18px;
}

.registration-brand {
  margin-bottom: 80px;
}

.registration-intro h1 {
  margin-bottom: 18px;
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  line-height: 1.07;
}

.registration-intro > p {
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.7;
}

.benefit-list {
  display: grid;
  gap: 12px;
  margin: 27px 0;
  padding: 0;
  color: #475467;
  list-style: none;
}

.benefit-list span {
  width: 22px;
  height: 22px;
  display: inline-grid;
  place-items: center;
  margin-right: 9px;
  color: var(--success);
  border-radius: 50%;
  background: #eaf8f1;
  font-size: 0.75rem;
  font-weight: 800;
}

.privacy-note {
  margin-top: 28px;
  padding: 18px;
  border: 1px solid #dce2f5;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.7);
  font-size: 0.79rem;
}

.privacy-note p {
  margin: 5px 0 0;
  color: var(--muted);
  line-height: 1.55;
}

.registration-card {
  width: 100%;
  padding: 42px;
}

.plan-choice {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.plan-choice legend {
  margin-bottom: 8px;
  color: #344054;
  font-size: 0.86rem;
  font-weight: 700;
}

.plan-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.plan-option {
  position: relative;
  display: block;
}

.plan-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.plan-option > span {
  display: grid;
  gap: 3px;
  padding: 14px;
  border: 1px solid #d7dce6;
  border-radius: 10px;
  cursor: pointer;
}

.plan-option input:checked + span {
  border-color: var(--brand);
  background: color-mix(in srgb, var(--brand) 6%, white);
  box-shadow: inset 0 0 0 1px var(--brand);
}

.plan-option small {
  color: var(--muted);
  font-size: 0.73rem;
}

.form-divider {
  position: relative;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-align: center;
  text-transform: uppercase;
}

.form-divider::before {
  content: "";
  position: absolute;
  z-index: 0;
  top: 50%;
  left: 0;
  width: 100%;
  height: 1px;
  background: var(--line);
}

.form-divider span {
  position: relative;
  z-index: 1;
  padding: 0 12px;
  background: #fff;
}

.back-link {
  display: inline-block;
  margin-bottom: 19px;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 650;
}

.editor-card {
  width: 100%;
  padding: 40px;
}

.form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding-top: 5px;
}

.admin-titlebar {
  margin-bottom: 27px;
}

.metric-strip {
  display: flex;
  gap: 12px;
  margin-bottom: 22px;
}

.metric-strip > div {
  min-width: 145px;
  display: grid;
  gap: 3px;
  padding: 17px 20px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}

.metric-strip b {
  font-size: 1.25rem;
}

.metric-strip span {
  color: var(--muted);
  font-size: 0.75rem;
}

.admin-list {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: #fff;
}

.admin-list-item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 17px;
  padding: 20px;
  border-bottom: 1px solid var(--line);
}

.admin-list-item:last-child {
  border-bottom: 0;
}

.admin-list-icon {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: color-mix(in srgb, var(--brand) 9%, white);
  font-size: 1.25rem;
}

.admin-list-main {
  min-width: 0;
}

.status-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.status-row h2 {
  margin: 0;
  font-size: 1rem;
}

.admin-list-main p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 0.8rem;
}

.admin-list-main small {
  color: #9298a7;
}

.status-badge {
  padding: 4px 8px;
  border-radius: 20px;
  font-size: 0.65rem;
  font-weight: 750;
}

.status-published {
  color: #087443;
  background: #e9f8f1;
}

.status-draft {
  color: #667085;
  background: #f1f2f5;
}

.status-paused {
  color: #9b5d00;
  background: #fff4dd;
}

.admin-list-actions {
  display: flex;
  align-items: center;
  gap: 13px;
}

.role-chip {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  color: var(--brand);
  border-radius: 20px;
  background: color-mix(in srgb, var(--brand) 9%, white);
  font-size: 0.7rem;
  font-weight: 750;
  white-space: nowrap;
}

.avatar {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  color: #fff;
  border-radius: 50%;
  background: linear-gradient(145deg, var(--brand), var(--brand-dark));
  font-weight: 800;
}

.team-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  align-items: start;
  gap: 24px;
}

.team-invite-card {
  position: sticky;
  top: 142px;
  padding: 27px;
}

.team-invite-card h2,
.settings-side-card h2,
.editor-card > h2 {
  margin-bottom: 7px;
  font-size: 1.15rem;
}

.card-intro {
  margin-bottom: 23px;
  color: var(--muted);
  font-size: 0.83rem;
  line-height: 1.55;
}

.settings-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  align-items: start;
  gap: 24px;
}

.settings-side-card {
  padding: 27px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.settings-side-card > span {
  display: block;
  margin-bottom: 16px;
  font-size: 1.7rem;
}

.settings-side-card p {
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.55;
}

.branding-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 370px;
  align-items: start;
  gap: 32px;
}

.color-field {
  display: grid;
  grid-template-columns: 58px 1fr;
  align-items: center;
  gap: 10px;
}

.color-field input[type="color"] {
  height: 44px;
  padding: 3px;
}

.color-field output {
  padding: 12px 13px;
  color: #475467;
  border: 1px solid #cfd5e1;
  border-radius: 9px;
  background: #f8f9fb;
  font-weight: 650;
}

.upload-field input[type="file"] {
  padding: 9px;
  background: var(--soft);
}

.branding-preview {
  position: sticky;
  top: 142px;
}

.phone-preview {
  overflow: hidden;
  border: 8px solid #1f2737;
  border-radius: 28px;
  background: #f4f5f8;
  box-shadow: 0 25px 50px rgba(23, 32, 51, 0.17);
}

.phone-top {
  min-height: 66px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  color: #fff;
  background: var(--preview-primary);
  font-size: 0.78rem;
}

.phone-top img,
.phone-top > span {
  width: 35px;
  height: 35px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255,255,255,.5);
  border-radius: 50%;
  object-fit: cover;
}

.phone-body {
  min-height: 405px;
  padding: 18px;
}

.mini-banner {
  min-height: 120px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  padding: 19px;
  color: #fff;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--preview-primary), var(--preview-secondary));
  background-position: center;
  background-size: cover;
}

.mini-banner small {
  opacity: .8;
}

.mini-card {
  height: 82px;
  margin-top: 13px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}

.branding-preview > p {
  margin: 20px 5px 0;
  color: var(--muted);
  font-size: 0.75rem;
  line-height: 1.5;
}

.module-creator {
  margin-bottom: 23px;
  padding: 21px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
}

.inline-field {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
}

.module-list,
.student-module-list {
  display: grid;
  gap: 18px;
}

.module-card,
.student-module {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: #fff;
}

.module-card > header,
.student-module > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 22px;
  border-bottom: 1px solid var(--line);
  background: #fbfcfe;
}

.module-card header small,
.student-module header small {
  color: var(--brand);
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
}

.module-card h2,
.student-module h2 {
  margin: 3px 0 0;
  font-size: 1.05rem;
}

.module-empty {
  margin: 0;
  padding: 25px;
  color: var(--muted);
  font-size: 0.83rem;
  text-align: center;
}

.lesson-admin-list > div {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 13px;
  padding: 15px 21px;
  border-bottom: 1px solid #eef0f4;
}

.lesson-admin-list > div:last-child {
  border-bottom: 0;
}

.lesson-number,
.completion-mark {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  color: var(--brand);
  border-radius: 50%;
  background: color-mix(in srgb, var(--brand) 9%, white);
  font-size: 0.75rem;
  font-weight: 800;
}

.lesson-admin-title {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.lesson-admin-title small {
  color: var(--muted);
  font-size: 0.72rem;
}

.course-page {
  max-width: 920px;
}

.course-hero {
  margin-bottom: 23px;
  padding: 35px;
  color: #fff;
  border-radius: 19px;
  background: linear-gradient(135deg, var(--brand), var(--brand-dark));
}

.course-hero .eyebrow {
  color: rgba(255,255,255,.7);
}

.course-hero h1 {
  margin-bottom: 10px;
  font-size: clamp(2rem, 5vw, 3rem);
}

.course-hero > p {
  max-width: 700px;
  color: rgba(255,255,255,.8);
  line-height: 1.65;
}

.course-progress-summary {
  display: grid;
  grid-template-columns: minmax(120px, 360px) auto;
  align-items: center;
  gap: 13px;
  margin-top: 26px;
}

.course-progress-summary .progress-track {
  background: rgba(255,255,255,.25);
}

.course-progress-summary .progress-track i {
  background: #fff;
}

.course-progress-summary b {
  font-size: .76rem;
}

.certificate-callout {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  margin-bottom: 23px;
  padding: 18px 21px;
  color: #fff;
  border-radius: 14px;
  background: #087443;
}

.certificate-callout > span {
  font-size: 1.8rem;
}

.certificate-callout p {
  margin: 3px 0 0;
  color: rgba(255,255,255,.76);
  font-size: .78rem;
}

.lesson-card {
  border-bottom: 1px solid var(--line);
}

.lesson-card:last-child {
  border-bottom: 0;
}

.lesson-card summary {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 13px;
  padding: 17px 21px;
  list-style: none;
}

.lesson-card summary::-webkit-details-marker {
  display: none;
}

.lesson-card summary > span:nth-child(2) {
  display: grid;
  gap: 3px;
}

.lesson-card summary small {
  color: var(--muted);
  font-size: .72rem;
}

.lesson-card[open] .completion-mark {
  color: #fff;
  background: var(--brand);
}

.details-arrow {
  color: var(--muted);
  transition: transform 150ms ease;
}

.lesson-card[open] .details-arrow {
  transform: rotate(180deg);
}

.lesson-body {
  padding: 4px 21px 24px 64px;
}

.video-link {
  display: inline-flex;
  margin-bottom: 18px;
  padding: 11px 14px;
  border-radius: 9px;
  background: color-mix(in srgb, var(--brand) 8%, white);
  font-weight: 700;
}

.lesson-text {
  margin-bottom: 21px;
  color: #475467;
  line-height: 1.75;
  white-space: pre-wrap;
}

.completed-note {
  margin: 0;
  color: var(--success);
  font-size: .83rem;
  font-weight: 750;
}

.certificate-page {
  display: grid;
  justify-items: center;
  gap: 22px;
  padding: 45px 20px 70px;
  background: #f1f3f8;
}

.certificate-sheet {
  width: min(100%, 1000px);
  padding: 17px;
  background: #fff;
  box-shadow: 0 20px 60px rgba(23,32,51,.14);
}

.certificate-border {
  min-height: 610px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px;
  border: 3px double var(--brand);
  text-align: center;
}

.certificate-symbol {
  color: var(--brand);
  font-size: 2rem;
}

.certificate-border h1 {
  margin-bottom: 37px;
  font-family: Georgia, serif;
  font-size: clamp(2rem,5vw,3.7rem);
  font-weight: 500;
}

.certificate-border h2 {
  margin: 9px 0 22px;
  color: var(--brand);
  font-family: Georgia, serif;
  font-size: clamp(1.8rem,4vw,3rem);
}

.certificate-border h3 {
  margin: 9px 0 28px;
  font-size: 1.4rem;
}

.certificate-border p {
  margin: 0;
  color: var(--muted);
}

.certificate-meta {
  display: flex;
  gap: 25px;
  margin: 18px 0 33px;
  color: var(--muted);
  font-size: .75rem;
}

@media (max-width: 1020px) {
  .team-layout,
  .branding-layout {
    grid-template-columns: minmax(0, 1fr) 310px;
  }
}

@media (max-width: 780px) {
  .team-layout,
  .branding-layout,
  .settings-grid {
    grid-template-columns: 1fr;
  }

  .team-invite-card,
  .branding-preview {
    position: static;
  }

  .branding-preview {
    width: min(100%, 370px);
    margin-inline: auto;
  }
}

@media (max-width: 560px) {
  .inline-field,
  .course-progress-summary {
    grid-template-columns: 1fr;
  }

  .inline-field .button {
    width: 100%;
  }

  .module-card > header {
    align-items: flex-start;
    flex-direction: column;
  }

  .lesson-admin-list > div {
    grid-template-columns: auto minmax(0,1fr);
  }

  .lesson-admin-list .admin-list-actions {
    grid-column: 1 / -1;
  }

  .course-hero {
    padding: 27px 22px;
  }

  .certificate-callout {
    grid-template-columns: auto 1fr;
  }

  .certificate-callout .button {
    grid-column: 1 / -1;
  }

  .lesson-body {
    padding-left: 21px;
  }

  .certificate-border {
    min-height: 530px;
    padding: 35px 18px;
  }

  .certificate-meta {
    flex-direction: column;
    gap: 5px;
  }
}

/* Jogos bíblicos. */
.games-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  align-items: start;
  gap: 24px;
}

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

.game-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 14px;
  padding: 20px;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  transition: transform 150ms ease, border-color 150ms ease, box-shadow 150ms ease;
}

.game-card:hover {
  border-color: color-mix(in srgb, var(--brand) 40%, var(--line));
  box-shadow: 0 14px 34px rgba(31, 42, 77, .08);
  transform: translateY(-2px);
}

.game-icon {
  width: 50px;
  height: 50px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: color-mix(in srgb, var(--brand) 10%, #fff);
  font-size: 1.6rem;
}

.game-card h2,
.game-play-heading h1,
.game-question-card h2,
.game-feedback h2 {
  margin: 4px 0 6px;
}

.game-card h2 {
  font-size: 1rem;
}

.game-card p,
.game-play-heading p,
.game-feedback p {
  margin: 0;
  color: var(--muted);
  font-size: .8rem;
  line-height: 1.5;
}

.game-card-stats {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.game-card-stats span {
  padding: 6px 9px;
  border-radius: 20px;
  background: var(--soft);
  color: var(--muted);
  font-size: .67rem;
}

.game-card-stats b {
  color: var(--ink);
}

.game-play-link {
  grid-column: 1 / -1;
  color: var(--brand);
  font-size: .78rem;
}

.game-ranking {
  position: sticky;
  top: 142px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.game-ranking-icon {
  font-size: 1.7rem;
}

.game-ranking h2 {
  margin: 10px 0 3px;
  font-size: 1.08rem;
}

.game-ranking > p,
.ranking-empty {
  color: var(--muted);
  font-size: .75rem;
}

.game-ranking ol {
  display: grid;
  gap: 4px;
  padding: 0;
  margin: 18px 0 0;
  list-style: none;
}

.game-ranking li {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  padding: 9px 0;
  border-bottom: 1px solid var(--line);
  font-size: .75rem;
}

.game-ranking li > span {
  width: 25px;
  height: 25px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: color-mix(in srgb, var(--brand) 9%, #fff);
  color: var(--brand);
  font-weight: 800;
}

.game-play-page {
  max-width: 850px;
}

.game-play-heading {
  display: flex;
  align-items: center;
  gap: 17px;
  margin-bottom: 18px;
}

.game-progress-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 18px;
}

.game-progress-strip span {
  display: grid;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: #fff;
  color: var(--muted);
  font-size: .7rem;
}

.game-progress-strip b {
  color: var(--ink);
  font-size: .95rem;
}

.game-feedback {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  padding: 17px 20px;
  margin-bottom: 18px;
  border-radius: 13px;
}

.game-feedback > span {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  font-weight: 900;
}

.game-feedback.correct {
  border: 1px solid #b8e8ce;
  background: #edf9f3;
}

.game-feedback.correct > span {
  background: #087443;
}

.game-feedback.incorrect {
  border: 1px solid #f0c5c5;
  background: #fff1f1;
}

.game-feedback.incorrect > span {
  background: #b42318;
}

.game-question-card {
  padding: clamp(23px, 5vw, 42px);
  border: 1px solid var(--line);
  border-radius: 19px;
  background: #fff;
  box-shadow: var(--shadow);
}

.game-question-card h2 {
  margin-bottom: 24px;
  font-size: clamp(1.25rem, 3vw, 1.7rem);
  line-height: 1.35;
}

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

.game-options label {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  min-height: 58px;
  padding: 10px 13px;
  border: 1px solid var(--line);
  border-radius: 12px;
  cursor: pointer;
}

.game-options label:has(input:checked) {
  border-color: var(--brand);
  background: color-mix(in srgb, var(--brand) 7%, #fff);
}

.game-options input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.game-option-letter {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  background: var(--soft);
  color: var(--brand-dark);
  font-weight: 800;
}

.game-options label:has(input:checked) .game-option-letter {
  color: #fff;
  background: var(--brand);
}

.game-answer-button {
  width: 100%;
  margin-top: 17px;
}

@media (max-width: 860px) {
  .games-layout {
    grid-template-columns: 1fr;
  }

  .game-ranking {
    position: static;
  }
}

@media (max-width: 620px) {
  .game-catalog,
  .game-options,
  .game-progress-strip {
    grid-template-columns: 1fr;
  }

  .game-play-heading {
    align-items: flex-start;
  }
}

/* Progresso, plano anual e Trilhas. */
.progress-metrics {
  flex-wrap: wrap;
}

.progress-metrics > div {
  flex: 1 1 180px;
}

.progress-section {
  margin-top: 25px;
  padding: clamp(20px, 3vw, 30px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.section-title-row,
.progress-item-heading,
.progress-item-actions,
.reading-window-nav,
.reading-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.section-title-row {
  margin-bottom: 18px;
}

.section-title-row h2 {
  margin: 0;
  font-size: 1.2rem;
}

.section-title-row a,
.progress-item-actions a,
.trail-course-main > a,
.trail-card-meta,
.reading-passages a {
  color: var(--brand);
  font-size: 0.8rem;
  font-weight: 750;
}

.progress-list {
  display: grid;
  gap: 12px;
}

.progress-item {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: #fbfcff;
}

.progress-item-heading > div {
  display: grid;
  gap: 3px;
}

.progress-item-heading span,
.progress-item-actions,
.game-stats-grid span,
.game-stats-grid small {
  color: var(--muted);
  font-size: 0.75rem;
}

.progress-item > .progress-track,
.trail-course-main > .progress-track {
  margin: 12px 0;
}

.progress-track > span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--brand);
}

.game-stats-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.game-stats-grid article {
  display: grid;
  gap: 4px;
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 11px;
}

.reading-start .inline-form {
  max-width: 470px;
  align-items: end;
  justify-content: center;
  margin: 0 auto;
}

.reading-start .field {
  flex: 1;
  text-align: left;
}

.reading-summary {
  padding: 18px 21px;
  margin-bottom: 16px;
  border-radius: 14px;
  color: #fff;
  background: linear-gradient(135deg, var(--brand), var(--brand-dark));
}

.reading-summary > div:first-child {
  display: grid;
}

.reading-summary > div:first-child strong {
  font-size: 1.35rem;
}

.reading-summary > div:first-child span {
  color: rgba(255,255,255,.75);
  font-size: .72rem;
}

.reading-summary .progress-track {
  flex: 1;
  max-width: 520px;
  background: rgba(255,255,255,.25);
}

.reading-summary .progress-track span {
  background: #fff;
}

.reading-window-nav {
  padding: 11px 0;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: .78rem;
}

.reading-days {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: #fff;
}

.reading-day {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr) auto;
  align-items: center;
  gap: 17px;
  padding: 18px;
  border-bottom: 1px solid var(--line);
}

.reading-day:last-child {
  border-bottom: 0;
}

.reading-day.is-current {
  box-shadow: inset 4px 0 var(--brand);
  background: color-mix(in srgb, var(--brand) 5%, #fff);
}

.reading-day.is-complete {
  background: #f4fbf7;
}

.reading-day-number {
  display: grid;
  place-items: center;
  min-height: 54px;
  border-radius: 12px;
  background: color-mix(in srgb, var(--brand) 9%, #fff);
  color: var(--brand-dark);
}

.reading-day-number span {
  font-size: .6rem;
  text-transform: uppercase;
}

.reading-day-number strong {
  font-size: 1.1rem;
}

.reading-day-main h2 {
  margin: 0;
  font-size: 1rem;
}

.reading-passages {
  display: flex;
  flex-wrap: wrap;
  gap: 7px 13px;
  margin-top: 8px;
}

.curriculum-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  align-items: start;
  gap: 24px;
}

.curriculum-add-card {
  position: sticky;
  top: 142px;
}

.curriculum-order,
.trail-course-order {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 50%;
  color: #fff;
  background: var(--brand);
  font-weight: 800;
}

.compact-empty {
  padding-block: 40px;
}

.trail-card-meta {
  margin-top: 15px;
}

.trail-requirements {
  padding: 18px 21px;
  margin-bottom: 23px;
  border-left: 4px solid var(--brand);
  border-radius: 0 12px 12px 0;
  background: color-mix(in srgb, var(--brand) 6%, #fff);
}

.trail-requirements p {
  margin: 5px 0 0;
  color: var(--muted);
  white-space: pre-line;
}

.trail-course-list .progress-item {
  display: flex;
  align-items: flex-start;
  gap: 17px;
}

.trail-course-main {
  flex: 1;
  min-width: 0;
}

.trail-course-main p {
  color: var(--muted);
  font-size: .82rem;
  line-height: 1.55;
}

@media (max-width: 800px) {
  .curriculum-layout {
    grid-template-columns: 1fr;
  }

  .curriculum-add-card {
    position: static;
  }

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

@media (max-width: 560px) {
  .reading-summary,
  .reading-window-nav {
    align-items: stretch;
    flex-direction: column;
  }

  .reading-window-nav {
    text-align: center;
  }

  .reading-day {
    grid-template-columns: 48px minmax(0, 1fr);
  }

  .reading-day > form {
    grid-column: 1 / -1;
  }

  .reading-day > form .button,
  .reading-window-nav .button {
    width: 100%;
  }

  .game-stats-grid {
    grid-template-columns: 1fr;
  }

  .trail-course-list .progress-item {
    align-items: center;
  }
}

@media print {
  .tenant-header,
  .tenant-nav,
  .site-footer,
  .print-button {
    display: none !important;
  }

  .certificate-page {
    padding: 0;
    background: #fff;
  }

  .certificate-sheet {
    width: 100%;
    box-shadow: none;
  }
}

.alert {
  margin-top: 20px;
  padding: 13px 16px;
  border: 1px solid;
  border-radius: 10px;
  font-size: 0.85rem;
}

.alert-success {
  color: #087443;
  border-color: #b7e2cd;
  background: #ecf9f3;
}

.alert-error {
  color: var(--danger);
  border-color: #f5c4be;
  background: #fff1ef;
}

.legal-page {
  padding: 55px 0 75px;
}

.legal-page article {
  max-width: 820px;
  margin: auto;
  padding: 42px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.legal-page h1 {
  font-size: 2.25rem;
}

.legal-page h2 {
  margin-top: 31px;
}

.legal-page p,
.legal-page li {
  color: #596174;
  line-height: 1.75;
}

@media (max-width: 1020px) {
  .hero-grid {
    grid-template-columns: 1fr 0.8fr;
    gap: 38px;
  }

  .plans-grid {
    grid-template-columns: 1fr 1fr;
  }

  .plan-card.popular {
    transform: none;
  }

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

@media (max-width: 780px) {
  .container {
    width: min(100% - 28px, 1160px);
  }

  .desktop-nav {
    display: none;
  }

  .mobile-menu {
    display: block;
  }

  .hero {
    padding: 65px 0 75px;
  }

  .hero-grid,
  .split-section,
  .registration-grid {
    grid-template-columns: 1fr;
  }

  .hero-grid {
    gap: 52px;
  }

  .hero-copy {
    text-align: center;
  }

  .hero-copy > p,
  .section-heading {
    margin-inline: auto;
  }

  .hero-actions,
  .trust-line {
    justify-content: center;
  }

  .hero-visual {
    width: min(100%, 560px);
    margin: auto;
  }

  .feature-grid {
    grid-template-columns: 1fr 1fr;
  }

  .split-section {
    gap: 35px;
  }

  .registration-intro {
    position: static;
    padding: 0;
  }

  .registration-brand {
    margin-bottom: 48px;
  }

  .registration-grid {
    gap: 45px;
  }
}

@media (max-width: 560px) {
  .header-row {
    min-height: 64px;
  }

  .tenant-nav {
    top: 64px;
  }

  .tenant-brand small,
  .user-name {
    display: none;
  }

  .account-actions {
    gap: 12px;
  }

  .hero h1 {
    font-size: 2.7rem;
  }

  .hero-actions {
    flex-direction: column;
  }

  .hero-actions .button {
    width: 100%;
  }

  .browser-card {
    transform: none;
  }

  .preview-layout {
    min-height: 280px;
    grid-template-columns: 67px 1fr;
  }

  .preview-layout aside {
    padding-inline: 8px;
  }

  .preview-layout aside span {
    width: 36px;
  }

  .preview-main {
    padding: 19px 15px;
  }

  .floating-note {
    right: -5px;
    bottom: -25px;
  }

  .section {
    padding: 68px 0;
  }

  .feature-grid,
  .role-list,
  .plans-grid,
  .course-grid,
  .form-grid,
  .plan-options {
    grid-template-columns: 1fr;
  }

  .role-list {
    gap: 10px;
  }

  .footer-row,
  .page-heading,
  .admin-titlebar {
    align-items: flex-start;
    flex-direction: column;
  }

  .footer-links {
    gap: 15px;
  }

  .welcome-card {
    min-height: 195px;
    padding: 28px 23px;
  }

  .auth-page {
    padding: 28px 13px;
  }

  .auth-card,
  .registration-card,
  .editor-card {
    padding: 27px 21px;
    border-radius: 16px;
  }

  .auth-heading {
    align-items: flex-start;
  }

  .registration-page {
    padding: 38px 0;
  }

  .address-field {
    display: grid;
  }

  .address-field > span {
    min-height: 37px;
    border-right: 0;
    border-bottom: 1px solid #dfe3eb;
  }

  .admin-titlebar .button {
    width: 100%;
  }

  .metric-strip {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .metric-strip > div {
    min-width: 0;
  }

  .admin-list-item {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .admin-list-actions {
    grid-column: 1 / -1;
    justify-content: flex-end;
    padding-top: 5px;
  }

  .form-actions {
    flex-direction: column-reverse;
  }

  .form-actions .button {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}

/* Bíblia e mapas: o conteúdo segue a identidade visual de cada igreja. */
.bible-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: 14px;
  padding: 18px;
  margin-bottom: 20px;
  border: 1px solid #e1e5ee;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 12px 35px rgba(24, 33, 55, 0.06);
}

.bible-toolbar label {
  display: grid;
  gap: 6px;
  min-width: 180px;
  color: #596174;
  font-size: 0.82rem;
  font-weight: 700;
}

.bible-toolbar select {
  min-height: 43px;
  padding: 0 36px 0 12px;
  border: 1px solid #d9deea;
  border-radius: 10px;
  background: #fff;
  color: #20283a;
}

.bible-toolbar-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-left: auto;
}

.bible-toolbar-actions .button {
  min-width: 43px;
  padding-inline: 12px;
}

.bible-search,
.bible-reader-card {
  margin-bottom: 22px;
  border: 1px solid #e1e5ee;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 12px 35px rgba(24, 33, 55, 0.06);
}

.bible-search > summary {
  padding: 17px 20px;
  color: var(--brand-dark);
  font-weight: 800;
  cursor: pointer;
}

.bible-search[open] > summary {
  border-bottom: 1px solid #e8ebf2;
}

.bible-search .inline-form,
.bible-search > p,
.bible-search-results {
  margin: 17px 20px;
}

.bible-search .inline-form {
  align-items: end;
}

.bible-search .field {
  flex: 1 1 260px;
}

.bible-search-results {
  display: grid;
  gap: 8px;
  max-height: 430px;
  overflow-y: auto;
}

.bible-search-result {
  display: grid;
  gap: 3px;
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #e4e8f0;
  border-radius: 11px;
  background: #fbfcff;
  color: #4e5669;
  text-align: left;
  cursor: pointer;
}

.bible-search-result:hover,
.bible-search-result:focus-visible {
  border-color: var(--brand);
  background: color-mix(in srgb, var(--brand) 6%, #fff);
}

.bible-search-result strong {
  color: var(--brand-dark);
}

.bible-reader-card {
  padding: clamp(22px, 4vw, 48px);
}

.bible-reader-card header {
  padding-bottom: 17px;
  margin-bottom: 22px;
  border-bottom: 1px solid #e8ebf2;
}

.bible-reader-card h2,
.bible-reader-card header p {
  margin: 0;
}

.bible-reader-card header p {
  margin-top: 4px;
  color: var(--brand);
  font-weight: 700;
}

.bible-verses {
  color: #252b38;
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.9;
}

.bible-verse sup {
  padding: 0 3px 0 7px;
  color: var(--brand);
  font-family: system-ui, sans-serif;
  font-size: 0.62em;
  font-weight: 800;
}

.bible-verse.highlighted {
  background: color-mix(in srgb, var(--brand) 17%, transparent);
  border-radius: 4px;
}

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

.map-card {
  overflow: hidden;
  border: 1px solid #e1e5ee;
  border-radius: 17px;
  background: #fff;
  color: #20283a;
  box-shadow: 0 12px 35px rgba(24, 33, 55, 0.06);
  transition: transform 160ms ease, border-color 160ms ease;
}

.map-card:hover {
  border-color: var(--brand);
  transform: translateY(-3px);
}

.map-card img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-bottom: 3px solid var(--brand);
}

.map-card span {
  display: grid;
  gap: 6px;
  padding: 16px;
}

/* Biblioteca, mídia, sala virtual e FAQ. */
.content-card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.content-card,
.media-card,
.reader-article,
.faq-admin-item {
  border: 1px solid #e1e5ee;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 12px 35px rgba(24, 33, 55, 0.06);
}

.content-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 17px;
  padding: 24px;
}

.content-card-icon {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border-radius: 14px;
  background: color-mix(in srgb, var(--brand) 10%, #fff);
  font-size: 1.45rem;
}

.content-card h2,
.media-card h2,
.faq-admin-item h2 {
  margin: 5px 0 8px;
  font-size: 1.15rem;
}

.content-card p,
.media-card p,
.faq-admin-item p {
  margin: 0 0 15px;
  color: #657086;
  line-height: 1.65;
}

.content-category {
  color: var(--brand);
  font-size: 0.7rem;
  font-weight: 850;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.text-link {
  color: var(--brand);
  font-size: 0.9rem;
  font-weight: 800;
}

.article-page {
  max-width: 900px;
}

.reader-article {
  padding: clamp(25px, 5vw, 58px);
}

.reader-article h1 {
  margin: 8px 0;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
}

.article-date {
  padding-bottom: 22px;
  margin: 0 0 25px;
  border-bottom: 1px solid #e7eaf1;
  color: #798196;
  font-size: 0.86rem;
}

.article-body {
  color: #303849;
  font-size: 1.03rem;
  line-height: 1.85;
  white-space: pre-wrap;
}

.media-list,
.faq-admin-list,
.faq-list {
  display: grid;
  gap: 16px;
}

.media-card {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  padding: 23px;
}

.media-card-main {
  flex: 1 1 auto;
  min-width: 0;
}

.media-card audio {
  width: 100%;
  margin-top: 5px;
  accent-color: var(--brand);
}

.live-date {
  display: grid;
  width: 67px;
  flex: 0 0 67px;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--brand) 30%, #fff);
  border-radius: 13px;
  text-align: center;
}

.live-date strong {
  padding: 8px 5px 3px;
  color: var(--brand-dark);
  font-size: 1.55rem;
}

.live-date span {
  padding: 5px;
  color: #fff;
  background: var(--brand);
  font-size: 0.66rem;
  font-weight: 850;
}

.faq-group > h2 {
  margin: 10px 0 12px;
  color: var(--brand-dark);
  font-size: 1rem;
}

.faq-item {
  margin-bottom: 9px;
  border: 1px solid #e1e5ee;
  border-radius: 13px;
  background: #fff;
}

.faq-item summary {
  padding: 17px 20px;
  color: #303849;
  font-weight: 750;
  cursor: pointer;
}

.faq-item[open] summary {
  color: var(--brand);
  border-bottom: 1px solid #e8ebf2;
}

.faq-item div {
  padding: 18px 20px;
  color: #5c667a;
  line-height: 1.7;
  white-space: pre-wrap;
}

.content-admin-grid {
  display: grid;
  grid-template-columns: minmax(280px, 0.75fr) minmax(0, 1.25fr);
  align-items: start;
  gap: 24px;
}

.compact-editor {
  position: sticky;
  top: 145px;
}

.faq-admin-item {
  padding: 20px;
}

.truncate-line {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.auth-card-wide {
  width: min(100%, 650px);
}

.forgot-link {
  justify-self: end;
  margin-top: -8px;
  color: var(--brand);
  font-size: 0.84rem;
  font-weight: 700;
}

.share-registration-card {
  display: grid;
  gap: 13px;
  padding: 18px;
  margin-bottom: 18px;
  border: 1px solid color-mix(in srgb, var(--brand) 25%, #e1e5ee);
  border-radius: 15px;
  background: color-mix(in srgb, var(--brand) 5%, #fff);
}

.share-registration-card > div:first-child {
  display: grid;
  gap: 3px;
}

.share-registration-card span {
  color: #697386;
  font-size: 0.84rem;
}

.copy-field {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.copy-field code {
  flex: 1 1 auto;
  overflow: hidden;
  padding: 10px 12px;
  border: 1px solid #e0e4ed;
  border-radius: 9px;
  background: #fff;
  color: var(--brand-dark);
  font-size: 0.78rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.account-delete-link {
  display: block;
  margin-top: 17px;
  text-align: center;
}

.danger-card {
  border-color: #fecaca;
}

.button-danger {
  border-color: #b42318;
  background: #b42318;
}

.button-danger:hover {
  border-color: #8f1c13;
  background: #8f1c13;
}

/* Administração central do SaaS. */
.platform-shell {
  min-width: 320px;
  background: #f5f7fb;
}

.platform-header {
  position: sticky;
  z-index: 30;
  top: 0;
  color: #fff;
  background: #172554;
  box-shadow: 0 6px 25px rgba(15, 23, 42, 0.18);
}

.platform-header .brand,
.platform-header .link-button {
  color: #fff;
}

.platform-page {
  max-width: 1440px;
}

.platform-metrics {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 13px;
  margin-bottom: 28px;
}

.platform-metrics > div {
  display: grid;
  gap: 8px;
  padding: 18px;
  border: 1px solid #e1e5ee;
  border-radius: 15px;
  background: #fff;
}

.platform-metrics span {
  color: #687286;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
}

.platform-metrics b {
  color: #172554;
  font-size: 1.8rem;
}

.platform-section {
  overflow: hidden;
  margin-top: 22px;
  border: 1px solid #e0e4ed;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 10px 30px rgba(24, 33, 55, 0.04);
}

.platform-section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 19px 22px;
  border-bottom: 1px solid #e7eaf1;
}

.platform-section-heading h2,
.platform-section-heading p {
  margin: 0;
}

.platform-section-heading h2 {
  font-size: 1.08rem;
}

.platform-section-heading p {
  margin-top: 3px;
  color: #737d91;
  font-size: 0.8rem;
}

.platform-search {
  display: flex;
  gap: 8px;
}

.platform-search input,
.platform-section select,
.review-form textarea,
.claim-action textarea {
  padding: 10px 12px;
  border: 1px solid #d9deea;
  border-radius: 9px;
  color: #293247;
  background: #fff;
}

.responsive-table {
  overflow-x: auto;
}

.responsive-table table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.84rem;
}

.responsive-table th,
.responsive-table td {
  padding: 14px 17px;
  border-bottom: 1px solid #edf0f5;
  text-align: left;
  vertical-align: top;
}

.responsive-table th {
  color: #697386;
  background: #fafbfc;
  font-size: 0.69rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.responsive-table td small,
.responsive-table td > span,
.responsive-table td > b,
.responsive-table td > a {
  display: block;
}

.responsive-table td small {
  margin-top: 4px;
  color: #7d8698;
}

.table-title {
  color: #172554;
  font-weight: 800;
}

.table-empty {
  padding: 28px !important;
  color: #8790a2;
  text-align: center !important;
}

.table-actions {
  display: grid;
  gap: 7px;
  justify-items: start;
}

.platform-review-list {
  display: grid;
}

.platform-review-list article {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.7fr);
  gap: 25px;
  padding: 20px 22px;
  border-bottom: 1px solid #edf0f5;
}

.platform-review-list h3,
.platform-review-list p {
  margin: 0;
}

.platform-review-list p {
  margin: 6px 0;
  color: #596479;
  line-height: 1.55;
}

.platform-review-list small {
  color: #848da0;
}

.review-form {
  display: grid;
  gap: 8px;
}

.review-form > div,
.claim-action form > div {
  display: flex;
  align-items: center;
  gap: 8px;
}

.claim-action summary {
  color: #4056c7;
  font-weight: 750;
  cursor: pointer;
}

.claim-action form {
  display: grid;
  gap: 8px;
  min-width: 270px;
  margin-top: 9px;
}

.claim-action textarea {
  min-height: 75px;
  resize: vertical;
}

.status-active,
.status-pending,
.status-pendingemailverification {
  color: #166534;
  background: #dcfce7;
}

.status-suspended,
.status-blocked,
.status-expired {
  color: #991b1b;
  background: #fee2e2;
}

.status-released {
  color: #475569;
  background: #e2e8f0;
}

@media (max-width: 1100px) {
  .platform-metrics {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 720px) {
  .platform-metrics {
    grid-template-columns: repeat(2, 1fr);
  }

  .platform-section-heading,
  .platform-review-list article {
    align-items: stretch;
    grid-template-columns: 1fr;
    flex-direction: column;
  }

  .platform-search,
  .platform-search input {
    width: 100%;
  }
}

@media (max-width: 760px) {
  .content-card-grid,
  .content-admin-grid {
    grid-template-columns: 1fr;
  }

  .compact-editor {
    position: static;
  }

  .media-card {
    padding: 18px;
  }
}

@media (max-width: 480px) {
  .content-card {
    grid-template-columns: 1fr;
  }

  .media-card .content-card-icon {
    display: none;
  }

  .copy-field {
    align-items: stretch;
    flex-direction: column;
  }
}

.map-card small {
  color: #697185;
  line-height: 1.45;
}

@media (max-width: 900px) {
  .map-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .bible-toolbar label,
  .bible-toolbar-actions,
  .bible-toolbar-actions .button,
  .bible-search .button {
    width: 100%;
  }

  .bible-toolbar-actions {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    margin-left: 0;
  }

  .bible-search .inline-form,
  .map-grid {
    display: grid;
    grid-template-columns: 1fr;
  }
}
