:root {
  --green: #08745e;
  --mint: #d7f5e6;
  --gold: #e4a52a;
  --ink: #133f35;
  --muted: #567166;
  --paper: #fbfdf8;
  --line: #d4e9dc;
  --red: #a02e38;
  font-family: Tahoma, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.8;
  font-synthesis: none;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
a {
  color: inherit;
  text-decoration: none;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a.button {
  cursor: pointer;
}
button,
.button {
  border: 0;
  background: var(--green);
  color: white;
  border-radius: 10px;
  padding: 12px 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 700;
  transition:
    background 0.2s,
    transform 0.2s;
}
button:hover,
.button:hover {
  background: #075b4b;
  transform: translateY(-1px);
}
button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}
button.light,
.button.light {
  background: white;
  border: 1px solid var(--line);
  color: var(--green);
}
.gold {
  background: #bf985e;
  color: #fff;
}
.danger {
  background: var(--red);
}
a:hover {
  color: #90601b;
}
button:hover,
a.button:hover {
  color: white;
}
a.button.light:hover {
  color: var(--green);
  background: var(--mint);
}
header {
  max-width: 1320px;
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 5%;
  gap: 24px;
  border-bottom: 1px solid var(--line);
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: bold;
  font-size: 20px;
}
.brand img {
  width: 62px;
  height: 62px;
  object-fit: contain;
}
.brand small {
  display: block;
  font:
    10px "Segoe UI",
    sans-serif;
  letter-spacing: 2px;
  color: var(--muted);
  margin-top: 4px;
}
nav {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 14px;
}
main {
  max-width: 1200px;
  margin: auto;
  padding: 36px 28px 72px;
  min-height: 65vh;
}
.environment {
  background: #fff5dd;
  text-align: center;
  color: #766026;
  font-size: 12px;
  padding: 5px 12px;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #7c693d;
  font-size: 12px;
  font-weight: bold;
  letter-spacing: 0.3px;
}
.eyebrow:before {
  content: "";
  width: 20px;
  height: 2px;
  background: var(--gold);
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
h1 {
  font-size: clamp(30px, 4vw, 53px);
  line-height: 1.55;
  letter-spacing: -1px;
  margin-bottom: 18px;
}
h2 {
  font-size: 26px;
  margin-bottom: 12px;
}
h3 {
  font-size: 19px;
}
p {
  color: var(--muted);
}
.hero {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 65px;
  align-items: center;
  padding: 48px 0 60px;
}
.hero h1 em {
  font-style: normal;
  color: #a86b0b;
}
.hero p {
  font-size: 16px;
  max-width: 530px;
  margin-bottom: 28px;
}
.row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.tiny {
  font-size: 12px;
  color: var(--muted);
}
.hero .tiny {
  margin-top: 20px;
}
.hero-art {
  position: relative;
  padding: 28px 22px 20px;
  background: #d8f4e3;
  border-radius: 110px 28px 110px 28px;
  min-height: 365px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lesson-window {
  background: white;
  border: 1px solid #d7e3d8;
  border-radius: 18px;
  box-shadow: 0 25px 50px #164f4512;
  width: 100%;
  transform: rotate(-3deg);
  overflow: hidden;
}
.window-top {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  padding: 13px 18px;
  background: #f8faf7;
  border-bottom: 1px solid var(--line);
}
.window-content {
  padding: 28px;
  text-align: center;
}
.window-content h3 {
  font-size: 22px;
  margin: 12px 0;
}
.book-icon {
  width: 76px;
  height: 76px;
  border-radius: 22px;
  background: #edf4eb;
  color: var(--green);
  display: grid;
  place-items: center;
  margin: auto;
  font-size: 38px;
}
.number-tiles {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin: 22px 0;
}
.number-tiles span {
  width: 40px;
  height: 43px;
  border-radius: 8px;
  background: #f2e8d8;
  display: grid;
  place-items: center;
  font-size: 22px;
}
.float-label {
  position: absolute;
  bottom: 2px;
  right: -10px;
  background: #fff;
  padding: 12px 19px;
  border-radius: 12px;
  box-shadow: 0 10px 35px #164f4514;
  font-size: 12px;
  transform: rotate(2deg);
  border: 1px solid var(--line);
}
.float-label b {
  color: #6b8e6b;
}
.features {
  border: 1px solid var(--line);
  border-left: 0;
  border-right: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  padding: 23px 0;
  margin-bottom: 54px;
  gap: 24px;
}
.feature {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 13px;
}
.feature span:first-child {
  font-size: 24px;
  background: #e7f5e9;
  border-radius: 12px;
  padding: 7px 14px;
}
.feature small {
  display: block;
  color: var(--muted);
  font-size: 11px;
}
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  margin-bottom: 24px;
}
.section-head h2 {
  margin-bottom: 3px;
}
.section-head p {
  font-size: 13px;
  margin: 0;
}
.link {
  color: var(--green);
  font-size: 13px;
  border-bottom: 1px solid #b5c9bd;
}
.grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}
.card {
  background: white;
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
}
.card-body {
  padding: 25px;
}
.card h3 {
  margin: 8px 0 12px;
}
.cover {
  height: 190px;
  background: #d7f6df;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 32px 38px;
  position: relative;
  overflow: hidden;
}
.cover:after {
  content: "";
  position: absolute;
  width: 190px;
  height: 190px;
  border: 1px solid #ffffff80;
  border-radius: 50%;
  left: -25px;
  top: 20px;
}
.cover.math {
  background: #e5ddff;
  color: #65449b;
}
.cover strong {
  font-size: 26px;
  line-height: 1.6;
  max-width: 62%;
  z-index: 1;
}
.cover .symbol {
  font-size: 64px;
  line-height: 1;
  z-index: 1;
}
.badge {
  display: inline-block;
  padding: 4px 10px;
  background: #eff4ed;
  color: #527256;
  border-radius: 5px;
  font-size: 11px;
}
.badge.pending {
  background: #fbf0da;
  color: #8a692f;
}
.badge.suspended,
.badge.revoked,
.badge.rejected {
  background: #fbe8e8;
  color: #963e3e;
}
.badge.expired {
  background: #eee;
  color: #666;
}
.card-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding-top: 19px;
  border-top: 1px solid var(--line);
  margin-top: 20px;
}
.card-bottom .button {
  padding: 8px 16px;
  font-size: 12px;
}
.price {
  font-weight: bold;
  font-size: 14px;
}
.price small {
  font-weight: normal;
  font-size: 11px;
  color: var(--muted);
  display: block;
}
.steps {
  margin-top: 60px;
  background: #e7f5e9;
  border-radius: 18px;
  padding: 35px;
}
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 25px;
}
.step b {
  display: block;
  font-size: 24px;
  color: #a06d13;
  margin-bottom: 10px;
}
.step h3 {
  font-size: 16px;
}
.step p {
  font-size: 12px;
}
.site-footer {
  max-width: 1200px;
  margin: auto;
  border-top: 1px solid var(--line);
  padding: 35px 28px;
  display: flex;
  justify-content: space-between;
  gap: 25px;
  font-size: 12px;
}
.site-footer strong {
  font-size: 16px;
}
.site-footer strong span {
  font-size: 10px;
  color: var(--muted);
  margin-right: 10px;
}
.site-footer p {
  margin: 8px 0;
}
.site-footer > div:last-child {
  display: flex;
  align-items: flex-start;
  gap: 24px;
  flex-wrap: wrap;
  max-width: 450px;
}
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 26px 0;
}
.filters input {
  flex: 2;
}
.filters select {
  flex: 1;
}
.form-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 32px;
  max-width: 500px;
  margin: 35px auto;
}
.form-card h1 {
  font-size: 29px;
}
.form-card p {
  font-size: 13px;
}
label {
  display: block;
  font-size: 13px;
  margin: 16px 0 5px;
  font-weight: bold;
}
input,
select,
textarea {
  width: 100%;
  border: 1px solid #d7e1d9;
  border-radius: 8px;
  padding: 11px 13px;
  background: white;
  color: var(--ink);
  outline: none;
}
input:focus,
select:focus,
textarea:focus {
  border-color: #668f7c;
  box-shadow: 0 0 0 3px #dcece3;
}
textarea {
  min-height: 110px;
  resize: vertical;
}
input[type="checkbox"] {
  width: auto;
}
.check {
  display: flex;
  gap: 10px;
  align-items: start;
}
.form-card button[type="submit"] {
  width: 100%;
  margin: 24px 0 15px;
}
.error {
  background: #fbe9e7;
  color: #963e3e;
  border-radius: 8px;
  padding: 10px;
  font-size: 13px;
  margin: 12px 0;
}
.notice {
  background: #f7f0df;
  border: 1px solid #ebddba;
  color: #7a6337;
  padding: 16px 20px;
  border-radius: 10px;
  font-size: 13px;
  margin: 18px 0;
}
.success {
  background: #e8f3e9;
  color: #2a6546;
}
.page-title {
  margin: 15px 0 25px;
}
.page-title h1 {
  font-size: 34px;
}
.product {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 32px;
  align-items: start;
}
.product .cover {
  height: 280px;
  border-radius: 16px;
}
.product .card {
  position: sticky;
  top: 20px;
}
.product .card button {
  width: 100%;
  margin-top: 18px;
}
.empty {
  border: 1px dashed #c9d6cb;
  padding: 35px;
  text-align: center;
  border-radius: 12px;
  background: #fff;
}
.tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 24px 0;
}
.tabs button {
  background: #e9efe7;
  color: var(--green);
  padding: 9px 15px;
  font-size: 12px;
}
.tabs button.active {
  background: var(--green);
  color: #fff;
}
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
  margin: 24px 0;
}
.stat {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 22px;
}
.stat strong {
  font-size: 30px;
  display: block;
}
.stat span {
  font-size: 12px;
  color: var(--muted);
}
.table-wrap {
  overflow: auto;
  background: white;
  border: 1px solid var(--line);
  border-radius: 12px;
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
  white-space: nowrap;
}
th,
td {
  text-align: right;
  padding: 15px;
  border-bottom: 1px solid var(--line);
}
th {
  background: #e7f5e9;
}
td button {
  font-size: 11px;
  padding: 7px 11px;
  margin: 3px;
}
.editor {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 20px;
}
.editor .wide {
  grid-column: 1/-1;
}
.editor button {
  margin-top: 20px;
}
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.lesson-frame {
  width: 100%;
  height: 80vh;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: white;
}
.prose {
  max-width: 800px;
  margin: 20px auto;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 15px;
  padding: 35px;
}
.prose h1 {
  font-size: 30px;
}
.prose p {
  font-size: 14px;
}
#toast {
  position: fixed;
  bottom: 24px;
  left: 24px;
  background: var(--green);
  color: white;
  border-radius: 10px;
  padding: 12px 22px;
  max-width: 400px;
  z-index: 100;
  display: none;
}
#toast.show {
  display: block;
}
dialog {
  border: 1px solid var(--line);
  border-radius: 16px;
  max-width: 560px;
  padding: 30px;
}
dialog::backdrop {
  background: #102e2580;
}
dialog code {
  display: block;
  font-size: 22px;
  padding: 20px;
  background: var(--mint);
  margin: 18px 0;
  overflow-wrap: anywhere;
}
.skip {
  position: fixed;
  top: -100px;
}
.skip:focus {
  top: 0;
  z-index: 999;
  background: white;
  padding: 12px;
}
:focus-visible {
  outline: 3px solid #ba8d4f;
  outline-offset: 3px;
}
.loading {
  text-align: center;
  padding: 70px;
}
.spaced {
  margin-top: 30px;
}
[hidden] {
  display: none !important;
}
@media (max-width: 800px) {
  header {
    padding: 15px 20px;
    flex-wrap: wrap;
    gap: 12px;
  }
  .brand {
    font-size: 16px;
  }
  .brand img {
    width: 46px;
    height: 46px;
  }
  nav {
    gap: 16px;
    width: 100%;
    justify-content: space-between;
    font-size: 11px;
  }
  nav .button {
    padding: 7px 10px;
  }
  main {
    padding: 24px 18px 50px;
  }
  .hero {
    grid-template-columns: 1fr;
    gap: 25px;
    padding: 18px 0 40px;
  }
  .hero p {
    font-size: 14px;
  }
  .hero-art {
    min-height: 300px;
    margin: 0 8px;
  }
  .features {
    gap: 14px;
  }
  .feature {
    display: block;
    font-size: 11px;
    text-align: center;
  }
  .feature span:first-child {
    display: inline-block;
    margin-bottom: 8px;
  }
  .grid,
  .product,
  .split {
    grid-template-columns: 1fr;
  }
  .cover {
    height: 170px;
    padding: 28px;
  }
  .cover strong {
    font-size: 23px;
  }
  .steps {
    padding: 25px;
  }
  .steps-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .step b {
    float: right;
    margin-left: 20px;
  }
  .step p {
    margin-right: 45px;
  }
  .site-footer {
    flex-direction: column;
    padding: 28px 20px;
  }
  .site-footer > div:last-child {
    gap: 16px;
  }
  .stats {
    grid-template-columns: repeat(2, 1fr);
  }
  .editor {
    grid-template-columns: 1fr;
  }
  .filters > * {
    min-width: 120px;
  }
  .section-head h2 {
    font-size: 22px;
  }
  .section-head .link {
    font-size: 11px;
  }
  .form-card {
    padding: 25px;
    margin: 20px auto;
  }
  .prose {
    padding: 22px;
  }
  .row {
    gap: 8px;
  }
  .button {
    padding: 10px 15px;
  }
  .float-label {
    right: 0;
  }
  .hero-art .window-content {
    padding: 20px;
  }
  .product .card {
    position: static;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
    transition: none !important;
    animation: none !important;
  }
}

/* Requested brand emphasis: official logo only in the header. */
header .brand img {
  width: 174px;
  height: 88px;
  object-fit: contain;
}
@media (max-width: 800px) {
  header .brand img {
    width: 148px;
    height: 74px;
  }
}

.site-footer .footer-logo {
  width: 155px;
  height: 80px;
  object-fit: contain;
  display: block;
  background: transparent;
}
@media (max-width: 800px) {
  header nav { flex-wrap: wrap; gap: 10px; }
  .hero > *, .hero-art, .lesson-window, .grid > * { min-width: 0; }
  .hero-art { padding-inline: 10px; }
  .hero-art .window-content { padding-inline: 16px; }
  .number-tiles { gap: 6px; }
  .number-tiles span { flex: 1 1 0; min-width: 0; max-width: 40px; }
  .card-bottom { flex-wrap: wrap; }
}
