/*
 * PACTS-M original voxel theme
 * Inspired by the visual language of block-building sandbox games.
 * No official game assets, textures, characters, logos, or UI are used.
 */

:root {
  --ink: #1b2a1e;
  --ink-soft: #526057;
  --paper: #f1efe2;
  --paper-bright: #fffdf1;
  --line: rgba(27, 42, 30, 0.2);
  --line-strong: rgba(27, 42, 30, 0.45);
  --violet: #7250c8;
  --violet-dark: #4d358d;
  --violet-soft: #e9e1ff;
  --mint: #8bd45a;
  --coral: #ed7956;
  --yellow: #f6c84b;
  --blue: #4bb5ea;
  --green: #3c922e;
  --danger: #b8392e;
  --grass: #56a934;
  --grass-light: #83c84e;
  --grass-dark: #2f7328;
  --dirt: #91643b;
  --dirt-dark: #5f3b25;
  --stone: #6f7b70;
  --stone-dark: #39453d;
  --sky: #9edcff;
  --sky-light: #e5f6ff;
  --radius-sm: 2px;
  --radius-md: 4px;
  --radius-lg: 6px;
  --radius-xl: 8px;
  --shadow-soft: 12px 12px 0 rgba(27, 42, 30, 0.2);
  --shadow-card: 8px 8px 0 rgba(27, 42, 30, 0.17);
  --font:
    "Arial Black", "SF Pro Display", "PingFang SC", "Microsoft YaHei",
    sans-serif;
  --body-font:
    "SF Pro Text", -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Microsoft YaHei", sans-serif;
}

html {
  scroll-padding-top: 76px;
}

body {
  color: var(--ink);
  background-color: var(--paper);
  background-image:
    linear-gradient(45deg, rgba(93, 74, 44, 0.03) 25%, transparent 25%),
    linear-gradient(-45deg, rgba(93, 74, 44, 0.03) 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, rgba(93, 74, 44, 0.03) 75%),
    linear-gradient(-45deg, transparent 75%, rgba(93, 74, 44, 0.03) 75%);
  background-position:
    0 0,
    0 8px,
    8px -8px,
    -8px 0;
  background-size: 16px 16px;
  font-family: var(--body-font);
}

h1,
h2,
h3,
.button,
.brand strong,
.section-kicker,
.eyebrow,
.dialog-kicker {
  font-family: var(--font);
}

::selection {
  color: #fff;
  background: var(--grass-dark);
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
summary:focus-visible {
  outline: 4px solid #f5cf4a;
  outline-offset: 4px;
}

.skip-link {
  border: 3px solid #101a12;
  border-radius: 2px;
  background: var(--grass-dark);
  box-shadow: 4px 4px 0 #101a12;
}

.site-header {
  border-bottom: 0;
}

.site-header.is-scrolled {
  background:
    linear-gradient(rgba(255, 253, 241, 0.94), rgba(255, 253, 241, 0.94)),
    repeating-linear-gradient(90deg, #a47649 0 28px, #91643b 28px 56px);
  box-shadow: 0 5px 0 var(--grass-dark);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.brand {
  gap: 12px;
}

.brand strong {
  font-size: 16px;
  letter-spacing: 0.04em;
  text-shadow: 2px 2px 0 rgba(86, 169, 52, 0.18);
}

.brand small {
  font-family: "Courier New", monospace;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.brand-mark {
  position: relative;
  width: 39px;
  height: 39px;
  padding: 0;
  display: block;
  border: 3px solid #17231a;
  border-radius: 2px;
  background:
    linear-gradient(
      135deg,
      #87d15a 0 25%,
      #61ac3d 25% 50%,
      #6cbd43 50% 75%,
      #4f9633 75%
    );
  box-shadow:
    inset 0 -9px 0 rgba(82, 55, 32, 0.38),
    4px 4px 0 rgba(23, 35, 26, 0.18);
}

.brand-mark::after {
  content: "";
  position: absolute;
  width: 7px;
  height: 7px;
  top: 7px;
  left: 7px;
  background: rgba(255, 255, 255, 0.28);
  box-shadow:
    14px 0 0 rgba(34, 95, 35, 0.38),
    7px 7px 0 rgba(34, 95, 35, 0.3),
    0 14px 0 rgba(70, 45, 26, 0.32);
}

.brand-mark i {
  display: none;
}

.site-nav > a {
  font-family: "Courier New", monospace;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.03em;
}

.site-nav > a::after {
  height: 3px;
  bottom: -7px;
  background: var(--grass);
}

.button {
  min-height: 48px;
  border: 3px solid #17231a;
  border-radius: 3px;
  box-shadow: 0 5px 0 #17231a;
  font-size: 13px;
  letter-spacing: 0.015em;
  text-transform: none;
}

.button:hover {
  transform: translateY(-2px);
  box-shadow: 0 7px 0 #17231a;
}

.button:active {
  transform: translateY(4px);
  box-shadow: 0 1px 0 #17231a;
}

.button-small {
  min-height: 42px;
}

.button-large {
  min-height: 58px;
}

.button-primary {
  color: #fff;
  background:
    linear-gradient(rgba(255, 255, 255, 0.08), transparent 45%),
    var(--grass);
  box-shadow: 0 6px 0 #1e5d24;
  text-shadow: 2px 2px 0 rgba(19, 62, 22, 0.45);
}

.button-primary:hover {
  background: var(--grass-light);
  box-shadow: 0 8px 0 #1e5d24;
}

.button-primary:active {
  box-shadow: 0 1px 0 #1e5d24;
}

.button-dark {
  color: #fff;
  background: var(--stone-dark);
  box-shadow: 0 5px 0 #17231a;
  text-shadow: 2px 2px 0 #17231a;
}

.button-dark:hover {
  background: #52625a;
}

.button-light {
  color: var(--ink);
  background: #fffde8;
  box-shadow: 0 5px 0 #b5a15e;
}

.button-light:hover {
  background: #f6d968;
  box-shadow: 0 7px 0 #977e31;
}

.button-ghost {
  border-color: #304635;
  background: rgba(255, 253, 241, 0.85);
  box-shadow: 0 5px 0 #708676;
}

.button-ghost:hover {
  border-color: #17231a;
  background: #fffef6;
}

.hero {
  min-height: 820px;
  padding-top: 142px;
  background:
    linear-gradient(to bottom, rgba(226, 246, 255, 0.94), rgba(202, 235, 255, 0.9) 72%, transparent),
    repeating-linear-gradient(90deg, transparent 0 47px, rgba(255, 255, 255, 0.18) 47px 48px),
    var(--sky);
}

.hero::before {
  inset: auto 0 0;
  height: 66px;
  z-index: 0;
  opacity: 1;
  background:
    linear-gradient(to bottom, #6fc64a 0 13px, #468a32 13px 20px, transparent 20px),
    repeating-linear-gradient(
      90deg,
      #9a6940 0 44px,
      #825634 44px 88px,
      #a47245 88px 132px
    );
  mask-image: none;
}

.hero::after {
  content: "";
  position: absolute;
  z-index: 0;
  width: 85px;
  height: 25px;
  top: 120px;
  left: 11%;
  background: rgba(255, 255, 255, 0.88);
  box-shadow:
    24px -16px 0 rgba(255, 255, 255, 0.88),
    55px 0 0 rgba(255, 255, 255, 0.88),
    73vw 58px 0 rgba(255, 255, 255, 0.66),
    calc(73vw + 32px) 42px 0 rgba(255, 255, 255, 0.66);
  image-rendering: pixelated;
}

.hero-grid,
.proof-strip {
  position: relative;
  z-index: 2;
}

.hero-glow {
  display: none;
}

.eyebrow {
  padding: 9px 12px;
  border: 3px solid #26372b;
  border-radius: 2px;
  color: #fff;
  background: var(--stone-dark);
  box-shadow: 5px 5px 0 rgba(38, 55, 43, 0.22);
  font-family: "Courier New", monospace;
  letter-spacing: 0.04em;
}

.status-dot {
  border-radius: 0;
  background: #9ceb69;
  box-shadow: 0 0 0 3px rgba(156, 235, 105, 0.18);
  animation: voxel-blink 1.4s steps(2, end) infinite;
}

@keyframes voxel-blink {
  50% {
    opacity: 0.45;
  }
}

.hero h1 {
  max-width: 610px;
  font-weight: 950;
  line-height: 1.01;
  letter-spacing: -0.055em;
  text-shadow:
    3px 3px 0 rgba(255, 255, 255, 0.9),
    6px 6px 0 rgba(47, 115, 40, 0.18);
}

.hero h1 span {
  color: var(--grass-dark);
  text-shadow:
    3px 3px 0 #d5f5be,
    6px 6px 0 rgba(38, 93, 31, 0.2);
}

.hero-lede {
  max-width: 565px;
  color: #344a3a;
  font-weight: 600;
}

.hero-assurances {
  color: #3d5142;
  font-family: "Courier New", monospace;
  font-weight: 800;
}

.hero-assurances span {
  color: var(--grass-dark);
}

.visual-frame {
  border: 6px solid #26372b;
  border-radius: 5px;
  background: var(--sky);
  box-shadow:
    12px 12px 0 #5e3f28,
    18px 18px 0 rgba(38, 55, 43, 0.16);
}

.visual-frame::after {
  border-radius: 0;
  box-shadow: inset 0 0 0 3px rgba(255, 255, 255, 0.24);
}

.visual-frame img {
  min-height: 520px;
  object-position: 57% center;
}

.floating-card {
  border: 3px solid #26372b;
  border-radius: 3px;
  background: #fffde9;
  box-shadow: 6px 6px 0 rgba(38, 55, 43, 0.42);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  animation: voxel-float 3s steps(3, end) infinite;
}

@keyframes voxel-float {
  50% {
    transform: translateY(-8px);
  }
}

.floating-card small {
  color: #5c675e;
  font-family: "Courier New", monospace;
  font-weight: 700;
}

.floating-card strong {
  font-family: var(--font);
}

.mini-icon {
  border: 2px solid #26372b;
  border-radius: 2px;
  background: var(--violet);
  box-shadow: 3px 3px 0 rgba(38, 55, 43, 0.28);
}

.avatar-stack span {
  border: 2px solid #26372b;
  border-radius: 2px;
  color: #26372b;
  background: #8bd45a;
  font-family: "Courier New", monospace;
  box-shadow: 2px 2px 0 rgba(38, 55, 43, 0.2);
}

.proof-strip {
  margin-top: 76px;
  padding: 20px;
  border: 4px solid #26372b;
  border-bottom: 8px solid #26372b;
  background:
    linear-gradient(rgba(255, 253, 235, 0.94), rgba(255, 253, 235, 0.94)),
    repeating-linear-gradient(90deg, #d3c7a6 0 28px, #e5dcc0 28px 56px);
  box-shadow: 8px 8px 0 rgba(38, 55, 43, 0.17);
}

.proof-strip > p,
.proof-items {
  font-family: "Courier New", monospace;
  font-weight: 900;
}

.proof-items b {
  color: var(--grass-dark);
}

.section {
  position: relative;
}

.section::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 8px;
  background: repeating-linear-gradient(
    90deg,
    rgba(59, 91, 63, 0.14) 0 32px,
    transparent 32px 64px
  );
}

.section-intro {
  background:
    linear-gradient(rgba(241, 239, 226, 0.96), rgba(241, 239, 226, 0.96)),
    repeating-linear-gradient(0deg, #cfbea0 0 32px, #d9cbb1 32px 64px);
}

.section-kicker,
.dialog-kicker {
  color: var(--grass-dark);
  font-family: "Courier New", monospace;
  letter-spacing: 0.08em;
}

.split-heading h2,
.section-heading h2,
.path-copy h2,
.faq-shell h2,
.final-cta-card h2 {
  font-weight: 950;
  letter-spacing: -0.045em;
}

.idea-rail {
  border: 4px solid #26372b;
  border-radius: 4px;
  background: #fffdf1;
  box-shadow: 10px 10px 0 rgba(38, 55, 43, 0.17);
}

.idea-rail article {
  border-right: 3px solid #26372b;
  background-image:
    linear-gradient(90deg, rgba(27, 42, 30, 0.035) 1px, transparent 1px),
    linear-gradient(rgba(27, 42, 30, 0.035) 1px, transparent 1px);
  background-size: 16px 16px;
}

.idea-symbol {
  border: 3px solid #26372b;
  border-radius: 3px;
  box-shadow: 5px 5px 0 rgba(38, 55, 43, 0.22);
  transform: rotate(0);
}

.idea-rail article:hover .idea-symbol {
  transform: translateY(-4px);
}

.symbol-spark {
  background: var(--yellow);
}

.symbol-build {
  background: #9c82e8;
}

.symbol-test {
  background: #7bcf57;
}

.symbol-launch {
  background: #ef8a63;
}

.courses-section {
  background:
    linear-gradient(rgba(255, 253, 241, 0.96), rgba(255, 253, 241, 0.96)),
    repeating-linear-gradient(45deg, #d2c7a9 0 16px, #e0d7be 16px 32px);
}

.filter-tab,
.chip {
  min-height: 42px;
  border: 3px solid #304635;
  border-radius: 2px;
  color: #3d5142;
  background: #fffdf1;
  box-shadow: 0 3px 0 #738279;
  font-family: "Courier New", monospace;
}

.filter-tab.is-active,
.chip.is-active {
  border-color: #1d2b20;
  color: #fff;
  background: var(--grass-dark);
  box-shadow: 0 3px 0 #142617;
}

.sort-control select {
  border: 3px solid #526558;
  border-radius: 2px;
  background: #fffef7;
  box-shadow: 0 3px 0 #a9b2ac;
  font-family: "Courier New", monospace;
}

.course-grid {
  gap: 28px;
}

.course-card {
  padding: 28px;
  border: 4px solid #26372b;
  border-radius: 4px;
  background:
    linear-gradient(rgba(255, 253, 241, 0.96), rgba(255, 253, 241, 0.96)),
    repeating-linear-gradient(90deg, var(--course-soft) 0 24px, #fff 24px 48px);
  box-shadow: 8px 8px 0 rgba(38, 55, 43, 0.18);
}

.course-card:hover {
  transform: translate(-2px, -5px);
  border-color: #26372b;
  box-shadow: 11px 13px 0 rgba(38, 55, 43, 0.21);
}

.course-card::before {
  width: 96px;
  height: 96px;
  top: -24px;
  right: -24px;
  border: 3px solid rgba(38, 55, 43, 0.24);
  border-radius: 0;
  background:
    linear-gradient(45deg, rgba(255, 255, 255, 0.2) 25%, transparent 25%),
    var(--course-color);
  background-size: 20px 20px;
  transform: rotate(15deg);
}

.course-icon {
  border: 3px solid #26372b;
  border-radius: 3px;
  box-shadow:
    inset -5px -5px 0 rgba(38, 55, 43, 0.12),
    5px 5px 0 rgba(38, 55, 43, 0.2);
}

.course-level {
  border: 2px solid #33473a;
  border-radius: 2px;
  background: #fffde8;
  font-family: "Courier New", monospace;
}

.course-status {
  border-width: 2px;
  border-radius: 2px;
  box-shadow: 3px 3px 0 rgba(38, 55, 43, 0.16);
  font-family: "Courier New", monospace;
}

.course-card h3 {
  font-family: var(--font);
}

.course-outcome {
  border: 2px solid rgba(38, 55, 43, 0.3);
  border-radius: 2px;
  background:
    linear-gradient(rgba(255, 255, 255, 0.4), rgba(255, 255, 255, 0.4)),
    var(--course-soft);
}

.course-meta {
  border-bottom: 3px dashed rgba(38, 55, 43, 0.22);
  font-family: "Courier New", monospace;
  font-weight: 700;
}

.course-schedule {
  border: 3px solid #526558;
  border-radius: 2px;
  background: #fffef7;
  box-shadow: 5px 5px 0 rgba(38, 55, 43, 0.13);
}

.course-schedule[open] > summary,
.schedule-note {
  border-color: #718076;
}

.course-schedule > summary,
.schedule-index,
.schedule-heading span,
.schedule-note {
  font-family: "Courier New", monospace;
}

.course-actions .button[disabled] {
  cursor: not-allowed;
  filter: grayscale(0.55);
  box-shadow: 0 3px 0 #708676;
}

.meta-bullet {
  border-radius: 1px;
}

.projects-section {
  background:
    linear-gradient(rgba(217, 235, 244, 0.95), rgba(217, 235, 244, 0.95)),
    repeating-linear-gradient(90deg, #a7c4d2 0 40px, #bad0d9 40px 80px);
}

.search-field > span {
  color: var(--grass-dark);
  font-family: "Courier New", monospace;
  font-weight: 900;
}

.search-field input {
  min-height: 64px;
  border: 4px solid #26372b;
  border-radius: 3px;
  background: #fffdf1;
  box-shadow: 7px 7px 0 rgba(38, 55, 43, 0.18);
  font-family: "Courier New", monospace;
  font-weight: 700;
}

.search-field input:focus {
  border-color: var(--grass-dark);
  outline: 4px solid rgba(246, 200, 75, 0.55);
}

.clear-search {
  border: 2px solid #304635;
  border-radius: 2px;
  color: #fff;
  background: var(--stone-dark);
}

.project-grid {
  gap: 26px;
}

.project-card {
  border: 4px solid #26372b;
  border-radius: 4px;
  box-shadow: 7px 7px 0 rgba(38, 55, 43, 0.18);
}

.project-card:hover {
  transform: translate(-2px, -5px);
  box-shadow: 10px 12px 0 rgba(38, 55, 43, 0.22);
}

.project-art {
  background:
    linear-gradient(rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.06)),
    repeating-linear-gradient(90deg, transparent 0 31px, rgba(38, 55, 43, 0.08) 31px 32px),
    repeating-linear-gradient(0deg, transparent 0 31px, rgba(38, 55, 43, 0.08) 31px 32px),
    var(--project-bg);
}

.project-art::before,
.project-art::after {
  border: 3px solid rgba(38, 55, 43, 0.25);
  border-radius: 0;
}

.project-device {
  border: 6px solid #26372b;
  border-radius: 3px;
  background: #fffdf1;
  box-shadow:
    8px 9px 0 rgba(38, 55, 43, 0.28),
    inset -5px -5px 0 rgba(38, 55, 43, 0.08);
}

.device-top,
.device-symbol,
.device-lines i {
  border-radius: 1px;
}

.project-tag {
  border: 2px solid rgba(38, 55, 43, 0.35);
  border-radius: 2px;
  font-family: "Courier New", monospace;
}

.text-button {
  border-bottom: 3px solid var(--grass-dark);
  border-radius: 0;
  color: var(--grass-dark);
  font-family: var(--font);
}

.empty-state {
  border: 4px dashed #526b58;
  border-radius: 3px;
  background: rgba(255, 253, 241, 0.45);
}

.empty-state > div {
  border: 3px solid #26372b;
  border-radius: 2px;
  box-shadow: 4px 4px 0 rgba(38, 55, 43, 0.2);
}

.path-section {
  color: #fff;
  background:
    linear-gradient(rgba(35, 47, 40, 0.93), rgba(35, 47, 40, 0.93)),
    repeating-linear-gradient(45deg, #556259 0 34px, #46534b 34px 68px);
}

.path-section::before {
  height: 14px;
  background: repeating-linear-gradient(
    90deg,
    #7a887d 0 40px,
    #59675d 40px 80px
  );
}

.section-kicker.light {
  color: #9deb6d;
}

.timeline::before {
  width: 3px;
  background: repeating-linear-gradient(to bottom, #8cd55d 0 8px, transparent 8px 16px);
}

.timeline li::before {
  width: 13px;
  height: 13px;
  border: 3px solid #142019;
  border-radius: 1px;
  background: #9deb6d;
  box-shadow: 3px 3px 0 rgba(0, 0, 0, 0.25);
}

.timeline li > span {
  color: #a6eb7d;
  font-family: "Courier New", monospace;
  font-weight: 900;
}

.fit-section {
  background:
    linear-gradient(rgba(241, 239, 226, 0.96), rgba(241, 239, 226, 0.96)),
    repeating-linear-gradient(90deg, #d3c6a9 0 34px, #e0d8c1 34px 68px);
}

.trial-card {
  border: 4px solid #26372b;
  border-radius: 5px;
  box-shadow: 11px 11px 0 rgba(38, 55, 43, 0.18);
}

.trial-steps {
  background: #fffdf1;
}

.trial-steps > div > span {
  border: 3px solid #26372b;
  border-radius: 2px;
  color: #fff;
  background: var(--stone-dark);
  box-shadow: 4px 4px 0 rgba(38, 55, 43, 0.2);
  font-family: "Courier New", monospace;
}

.trial-action {
  border-left: 4px solid #26372b;
  background:
    linear-gradient(rgba(133, 201, 85, 0.9), rgba(90, 166, 57, 0.9)),
    repeating-linear-gradient(45deg, #84c958 0 16px, #73b64b 16px 32px);
}

.trial-action > p:nth-child(2) {
  color: #243827;
  font-weight: 700;
}

.faq-section {
  background: #f1efe2;
}

.accordion {
  border-top: 4px solid #26372b;
}

.accordion details {
  border-bottom: 3px solid #26372b;
}

.accordion summary span {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border: 2px solid #26372b;
  background: #f6c84b;
  box-shadow: 3px 3px 0 rgba(38, 55, 43, 0.18);
}

.final-cta-card {
  border: 6px solid #26372b;
  border-radius: 5px;
  background:
    linear-gradient(rgba(52, 128, 44, 0.88), rgba(52, 128, 44, 0.88)),
    repeating-linear-gradient(45deg, #4ca03d 0 28px, #5eaf45 28px 56px);
  box-shadow:
    inset 0 -18px 0 rgba(79, 49, 29, 0.38),
    12px 12px 0 rgba(38, 55, 43, 0.2);
}

.final-cta-card h2 {
  text-shadow: 4px 4px 0 rgba(30, 84, 27, 0.55);
}

.orbit {
  border: 4px dashed rgba(255, 255, 255, 0.22);
  border-radius: 0;
  transform: rotate(20deg);
}

.site-footer {
  border-top: 14px solid var(--grass-dark);
  background:
    linear-gradient(rgba(230, 216, 187, 0.93), rgba(230, 216, 187, 0.93)),
    repeating-linear-gradient(90deg, #997048 0 42px, #8a623d 42px 84px);
}

.footer-label,
.footer-bottom {
  font-family: "Courier New", monospace;
  font-weight: 800;
}

.footer-bottom {
  border-top: 3px dashed rgba(38, 55, 43, 0.32);
}

.dialog {
  border: 5px solid #1d2b20;
  border-radius: 4px;
  background: #fffdf1;
  box-shadow: 12px 12px 0 rgba(18, 29, 21, 0.42);
}

.dialog::backdrop {
  background:
    linear-gradient(rgba(13, 23, 16, 0.72), rgba(13, 23, 16, 0.72)),
    repeating-linear-gradient(45deg, #314137 0 24px, #26352c 24px 48px);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.dialog-close {
  border: 3px solid #26372b;
  border-radius: 2px;
  background: #ef7959;
  box-shadow: 3px 3px 0 rgba(38, 55, 43, 0.28);
  font-family: var(--font);
}

.dialog-accent,
.success-icon {
  border: 3px solid #26372b;
  border-radius: 3px;
  box-shadow: 5px 5px 0 rgba(38, 55, 43, 0.2);
}

.field input,
.field select {
  min-height: 50px;
  border: 3px solid #526558;
  border-radius: 2px;
  background: #fffef7;
}

.field input:focus,
.field select:focus {
  border-color: var(--grass-dark);
  outline: 4px solid rgba(246, 200, 75, 0.4);
}

.choice-card,
.payment-options label,
.class-choice-note,
.selected-class-card {
  border: 3px solid #718076;
  border-radius: 2px;
  background: #fffef7;
}

.selected-class-card {
  background: #e1f4d3;
  box-shadow: 4px 4px 0 rgba(52, 128, 44, 0.22);
}

.selected-class-icon {
  border: 2px solid #26372b;
  border-radius: 2px;
  background: var(--grass-dark);
}

.choice-card:has(input:checked),
.payment-options label:has(input:checked) {
  border-color: var(--grass-dark);
  background: #e1f4d3;
  box-shadow: 4px 4px 0 rgba(52, 128, 44, 0.22);
}

.payment-panel {
  border: 3px solid #718076;
  border-radius: 2px;
  background: #fffef7;
  box-shadow: 4px 4px 0 rgba(38, 55, 43, 0.14);
}

.wechat-payment-panel img,
.success-payment-qr {
  border: 3px solid #26372b;
}

.form-status.is-loading,
.form-status.is-success,
.form-status.is-error,
.code-row,
.receipt {
  border: 2px solid currentColor;
  border-radius: 2px;
}

.order-card {
  border: 3px solid #26372b;
  border-radius: 3px;
  background:
    linear-gradient(rgba(241, 239, 226, 0.95), rgba(241, 239, 226, 0.95)),
    repeating-linear-gradient(90deg, #cfbea0 0 20px, #e0d3b9 20px 40px);
  box-shadow: 6px 6px 0 rgba(38, 55, 43, 0.17);
}

.order-dot,
.pay-icon {
  border: 2px solid #26372b;
  border-radius: 2px;
}

.project-detail-visual {
  background:
    repeating-linear-gradient(90deg, transparent 0 31px, rgba(38, 55, 43, 0.08) 31px 32px),
    repeating-linear-gradient(0deg, transparent 0 31px, rgba(38, 55, 43, 0.08) 31px 32px),
    var(--project-bg);
}

.project-meta-line span:first-child {
  border: 2px solid #26372b;
  border-radius: 2px;
}

.toast {
  border: 4px solid #17231a;
  border-radius: 3px;
  background: var(--stone-dark);
  box-shadow: 6px 6px 0 rgba(23, 35, 26, 0.32);
  font-family: "Courier New", monospace;
  font-weight: 700;
}

.toast::before {
  border: 2px solid #17231a;
  border-radius: 1px;
}

@media (max-width: 1020px) {
  .hero {
    min-height: auto;
  }

  .idea-rail article:nth-child(2) {
    border-right: 0;
  }

  .idea-rail article:nth-child(-n + 2) {
    border-bottom: 3px solid #26372b;
  }
}

@media (max-width: 760px) {
  .site-nav {
    top: 68px;
    border: 4px solid #26372b;
    border-radius: 3px;
    background: #fffdf1;
    box-shadow: 7px 7px 0 rgba(38, 55, 43, 0.28);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  .menu-button {
    border: 3px solid #26372b;
    border-radius: 2px;
    background: #fffdf1;
    box-shadow: 3px 3px 0 rgba(38, 55, 43, 0.2);
  }

  .hero {
    padding-top: 104px;
  }

  .hero::after {
    left: -26px;
    opacity: 0.6;
  }

  .hero h1 {
    text-shadow:
      2px 2px 0 rgba(255, 255, 255, 0.9),
      4px 4px 0 rgba(47, 115, 40, 0.18);
  }

  .visual-frame {
    border-width: 5px;
    box-shadow:
      8px 8px 0 #5e3f28,
      13px 13px 0 rgba(38, 55, 43, 0.14);
  }

  .proof-strip {
    border-width: 4px;
  }

  .idea-rail article,
  .idea-rail article:nth-child(2) {
    border-bottom: 3px solid #26372b;
  }

  .idea-rail article:last-child {
    border-bottom: 0;
  }

  .course-card,
  .project-card {
    box-shadow: 6px 6px 0 rgba(38, 55, 43, 0.17);
  }

  .trial-action {
    border-top: 4px solid #26372b;
    border-left: 0;
  }

  .order-card {
    order: initial;
  }

  .dialog-shell-project {
    padding: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .status-dot,
  .floating-card {
    animation: none !important;
  }
}

/* Multi-page brand system */

.site-nav a[aria-current="page"] {
  color: var(--grass-dark);
}

.site-nav a[aria-current="page"]::after {
  transform: scaleX(1);
}

.brand[aria-current="page"] strong {
  color: var(--grass-dark);
}

.portal-section {
  background:
    linear-gradient(rgba(255, 253, 241, 0.96), rgba(255, 253, 241, 0.96)),
    repeating-linear-gradient(45deg, #d8c9ac 0 18px, #e6dcc4 18px 36px);
}

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

.portal-card {
  position: relative;
  min-height: 390px;
  padding: 28px;
  display: flex;
  align-items: flex-start;
  flex-direction: column;
  border: 5px solid #26372b;
  border-radius: 4px;
  background: var(--portal-bg);
  box-shadow: 9px 9px 0 rgba(38, 55, 43, 0.22);
  overflow: hidden;
  transition:
    transform 160ms ease,
    box-shadow 160ms ease;
}

.portal-card:hover {
  transform: translate(-3px, -6px);
  box-shadow: 13px 15px 0 rgba(38, 55, 43, 0.23);
}

.portal-card::after {
  content: "";
  position: absolute;
  width: 140px;
  height: 140px;
  right: -48px;
  bottom: -54px;
  border: 4px solid rgba(38, 55, 43, 0.22);
  background:
    linear-gradient(45deg, rgba(255, 255, 255, 0.2) 25%, transparent 25%),
    var(--portal-accent);
  background-size: 24px 24px;
  transform: rotate(14deg);
}

.portal-card-courses {
  --portal-bg: #fff3bd;
  --portal-accent: #f3bd36;
}

.portal-card-projects {
  --portal-bg: #d9f1ff;
  --portal-accent: #56b8e8;
}

.portal-card-path {
  --portal-bg: #dcf2d0;
  --portal-accent: #6ab64b;
}

.portal-number {
  color: rgba(38, 55, 43, 0.58);
  font-family: "Courier New", monospace;
  font-size: 12px;
  font-weight: 900;
}

.portal-cubes {
  position: relative;
  width: 126px;
  height: 102px;
  margin: 44px 0 30px;
}

.portal-cubes i {
  position: absolute;
  width: 58px;
  height: 58px;
  border: 4px solid #26372b;
  background: var(--portal-accent);
  box-shadow:
    inset -9px -9px 0 rgba(38, 55, 43, 0.13),
    6px 6px 0 rgba(38, 55, 43, 0.17);
}

.portal-cubes i:nth-child(1) {
  top: 0;
  left: 33px;
}

.portal-cubes i:nth-child(2) {
  bottom: 0;
  left: 0;
  filter: brightness(1.08);
}

.portal-cubes i:nth-child(3) {
  right: 0;
  bottom: 0;
  filter: brightness(0.88);
}

.portal-card > p {
  margin-bottom: 4px;
  color: #536058;
  font-family: "Courier New", monospace;
  font-size: 12px;
  font-weight: 900;
}

.portal-card h3 {
  margin-bottom: 18px;
  font-size: 31px;
}

.portal-link {
  position: relative;
  z-index: 1;
  margin-top: auto;
  padding-bottom: 3px;
  border-bottom: 3px solid #26372b;
  font-family: var(--font);
  font-size: 13px;
}

.subpage-main {
  min-height: 70vh;
}

.page-hero {
  position: relative;
  padding: 150px 0 0;
  overflow: hidden;
}

.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    repeating-linear-gradient(90deg, transparent 0 47px, rgba(255, 255, 255, 0.18) 47px 48px),
    var(--page-hero-bg);
}

.page-hero::after {
  content: "";
  position: absolute;
  z-index: -1;
  width: 96px;
  height: 28px;
  top: 126px;
  right: 9%;
  background: rgba(255, 255, 255, 0.72);
  box-shadow:
    -34px 22px 0 rgba(255, 255, 255, 0.72),
    44px 22px 0 rgba(255, 255, 255, 0.72);
}

.page-hero-courses {
  --page-hero-bg: #ffe28a;
}

.page-hero-projects {
  --page-hero-bg: #b5e6ff;
}

.page-hero-path {
  --page-hero-bg: #c7e9b4;
}

.page-hero-grid {
  min-height: 510px;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 76px;
  padding-bottom: 76px;
}

.breadcrumb {
  margin-bottom: 30px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(38, 55, 43, 0.72);
  font-family: "Courier New", monospace;
  font-size: 12px;
  font-weight: 900;
}

.breadcrumb a {
  border-bottom: 2px solid currentColor;
}

.page-hero h1 {
  max-width: 760px;
  margin-bottom: 24px;
  font-family: var(--font);
  font-size: clamp(48px, 6vw, 76px);
  font-weight: 950;
  line-height: 1.04;
  letter-spacing: -0.055em;
  text-shadow:
    3px 3px 0 rgba(255, 255, 255, 0.72),
    6px 6px 0 rgba(38, 55, 43, 0.14);
}

.page-hero-grid > div:first-child > p:not(.section-kicker) {
  max-width: 660px;
  margin-bottom: 30px;
  color: #3d5142;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.8;
}

.page-hero-blocks {
  position: relative;
  min-height: 340px;
}

.page-hero-blocks .block {
  position: absolute;
  width: 126px;
  height: 126px;
  display: grid;
  place-items: center;
  border: 5px solid #26372b;
  color: #26372b;
  background: var(--block-color);
  box-shadow:
    inset -15px -15px 0 rgba(38, 55, 43, 0.13),
    11px 11px 0 rgba(38, 55, 43, 0.21);
  font-family: "Courier New", monospace;
  font-size: 22px;
  font-weight: 900;
  transform: rotate(var(--block-rotate));
}

.page-hero-blocks .block-a {
  --block-color: #96dd70;
  --block-rotate: -7deg;
  top: 5px;
  left: 46px;
}

.page-hero-blocks .block-b {
  --block-color: #8d76d6;
  --block-rotate: 5deg;
  top: 34px;
  right: 28px;
}

.page-hero-blocks .block-c {
  --block-color: #57bcec;
  --block-rotate: 3deg;
  bottom: 20px;
  left: 12px;
}

.page-hero-blocks .block-d {
  --block-color: #f5c946;
  --block-rotate: -4deg;
  right: 70px;
  bottom: 0;
}

.project-blocks .block-a {
  --block-color: #f2a57e;
}

.project-blocks .block-b {
  --block-color: #75c75b;
}

.project-blocks .block-c {
  --block-color: #8e78dd;
}

.project-blocks .block-d {
  --block-color: #5ebce5;
}

.page-stats {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 5px solid #26372b;
  border-bottom: 9px solid #26372b;
  background: #fffdf1;
  box-shadow: 9px 9px 0 rgba(38, 55, 43, 0.18);
  transform: translateY(30px);
}

.page-stats > div {
  min-height: 94px;
  padding: 18px 22px;
  display: flex;
  justify-content: center;
  flex-direction: column;
  border-right: 3px solid #26372b;
}

.page-stats > div:last-child {
  border-right: 0;
}

.page-stats strong,
.page-stats span {
  display: block;
}

.page-stats strong {
  font-family: var(--font);
  font-size: 27px;
}

.page-stats span {
  color: var(--ink-soft);
  font-family: "Courier New", monospace;
  font-size: 11px;
  font-weight: 800;
}

.page-content-section {
  padding-top: 156px;
}

.compact-heading {
  margin-bottom: 44px;
}

.choose-section,
.publish-standard,
.deliverables-section {
  background:
    linear-gradient(rgba(241, 239, 226, 0.96), rgba(241, 239, 226, 0.96)),
    repeating-linear-gradient(45deg, #d6c6a7 0 20px, #e2d8c0 20px 40px);
}

.choice-guide-grid,
.deliverables-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.choice-guide-grid article,
.deliverables-grid article {
  min-height: 250px;
  padding: 25px;
  border: 4px solid #26372b;
  background: #fffdf1;
  box-shadow: 6px 6px 0 rgba(38, 55, 43, 0.17);
}

.choice-guide-grid article > span,
.deliverables-grid article > span {
  width: 48px;
  height: 48px;
  margin-bottom: 38px;
  display: grid;
  place-items: center;
  border: 3px solid #26372b;
  background: var(--yellow);
  box-shadow: 4px 4px 0 rgba(38, 55, 43, 0.17);
  font-family: var(--font);
  font-weight: 900;
}

.choice-guide-grid article:nth-child(2) > span,
.deliverables-grid article:nth-child(2) > span {
  background: #977ee2;
}

.choice-guide-grid article:nth-child(3) > span,
.deliverables-grid article:nth-child(3) > span {
  background: #76ca5a;
}

.choice-guide-grid article:nth-child(4) > span,
.deliverables-grid article:nth-child(4) > span {
  background: #ef8a63;
}

.choice-guide-grid h3,
.deliverables-grid h3 {
  margin-bottom: 9px;
  font-size: 17px;
}

.choice-guide-grid p,
.deliverables-grid p {
  margin-bottom: 0;
  color: var(--ink-soft);
  font-size: 13px;
}

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

.standard-grid article {
  padding: 30px;
  border: 4px solid #26372b;
  background: #fffdf1;
  box-shadow: 7px 7px 0 rgba(38, 55, 43, 0.18);
}

.standard-grid strong {
  color: var(--grass-dark);
  font-family: "Courier New", monospace;
  font-size: 12px;
}

.standard-grid h3 {
  margin: 42px 0 8px;
  font-size: 20px;
}

.standard-grid p {
  margin-bottom: 0;
  color: var(--ink-soft);
  font-size: 13px;
}

.quest-map {
  position: relative;
  min-height: 360px;
  border: 5px solid #26372b;
  background:
    linear-gradient(rgba(255, 253, 241, 0.55), rgba(255, 253, 241, 0.55)),
    repeating-linear-gradient(90deg, transparent 0 39px, rgba(38, 55, 43, 0.08) 39px 40px),
    repeating-linear-gradient(0deg, transparent 0 39px, rgba(38, 55, 43, 0.08) 39px 40px);
  box-shadow: 10px 10px 0 rgba(38, 55, 43, 0.2);
}

.quest-line {
  position: absolute;
  width: 70%;
  height: 62%;
  top: 20%;
  left: 15%;
  border: 5px dashed rgba(47, 115, 40, 0.72);
  border-top: 0;
  border-right: 0;
  transform: skewY(-18deg);
}

.quest-node {
  position: absolute;
  width: 66px;
  height: 66px;
  display: grid;
  place-items: center;
  border: 4px solid #26372b;
  background: #fffdf1;
  box-shadow: 5px 5px 0 rgba(38, 55, 43, 0.2);
}

.quest-node b,
.quest-node small {
  display: block;
  line-height: 1;
  text-align: center;
}

.quest-node b {
  font-family: var(--font);
}

.quest-node small {
  margin-top: -10px;
  font-family: "Courier New", monospace;
  font-size: 9px;
  font-weight: 900;
}

.node-1 {
  left: 8%;
  bottom: 10%;
}

.node-2 {
  left: 31%;
  bottom: 30%;
}

.node-3 {
  top: 30%;
  left: 45%;
}

.node-4 {
  top: 12%;
  left: 63%;
}

.node-5 {
  right: 8%;
  bottom: 34%;
}

.node-6 {
  right: 6%;
  bottom: 5%;
  color: #fff;
  background: var(--grass);
}

.page-path-section {
  padding-top: 160px;
}

.page-path-section .timeline li {
  min-height: 94px;
}

.mentor-section {
  background: #dcedf4;
}

.mentor-card {
  padding: 48px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 36px;
  border: 5px solid #26372b;
  background: #fffdf1;
  box-shadow: 10px 10px 0 rgba(38, 55, 43, 0.2);
}

.mentor-symbol {
  width: 92px;
  height: 92px;
  display: grid;
  place-items: center;
  border: 5px solid #26372b;
  color: #fff;
  background: var(--violet);
  box-shadow: 7px 7px 0 rgba(38, 55, 43, 0.19);
  font-family: var(--font);
  font-size: 38px;
}

.mentor-card h2 {
  margin-bottom: 12px;
  font-family: var(--font);
  font-size: clamp(32px, 4vw, 50px);
  line-height: 1.12;
  letter-spacing: -0.04em;
}

.mentor-card > div:nth-child(2) > p:last-child {
  max-width: 660px;
  margin-bottom: 0;
  color: var(--ink-soft);
}

@media (max-width: 1020px) {
  .portal-grid {
    grid-template-columns: 1fr 1fr;
  }

  .portal-card:last-child {
    grid-column: 1 / -1;
    min-height: 310px;
  }

  .page-hero-grid {
    gap: 36px;
  }

  .page-hero-blocks .block {
    width: 104px;
    height: 104px;
    font-size: 17px;
  }

  .choice-guide-grid,
  .deliverables-grid {
    grid-template-columns: 1fr 1fr;
  }

  .mentor-card {
    grid-template-columns: auto 1fr;
  }

  .mentor-card .button {
    grid-column: 1 / -1;
    justify-self: start;
  }
}

@media (max-width: 760px) {
  .portal-grid,
  .page-hero-grid,
  .choice-guide-grid,
  .deliverables-grid,
  .standard-grid,
  .mentor-card {
    grid-template-columns: 1fr;
  }

  .portal-card,
  .portal-card:last-child {
    min-height: 330px;
    grid-column: auto;
  }

  .page-hero {
    padding-top: 112px;
  }

  .page-hero-grid {
    min-height: 0;
    padding-bottom: 44px;
  }

  .page-hero h1 {
    font-size: clamp(43px, 12vw, 60px);
  }

  .page-hero-blocks {
    min-height: 300px;
  }

  .page-hero-blocks .block {
    width: 94px;
    height: 94px;
  }

  .page-stats {
    grid-template-columns: 1fr 1fr;
    transform: translateY(24px);
  }

  .page-stats > div {
    min-height: 82px;
    border-right: 3px solid #26372b;
    border-bottom: 3px solid #26372b;
  }

  .page-stats > div:nth-child(2) {
    border-right: 0;
  }

  .page-stats > div:nth-child(n + 3) {
    border-bottom: 0;
  }

  .page-content-section,
  .page-path-section {
    padding-top: 120px;
  }

  .mentor-card {
    padding: 30px 24px;
  }

  .mentor-card .button {
    grid-column: auto;
    width: 100%;
  }
}

@media (max-width: 430px) {
  .portal-card {
    min-height: 315px;
  }

  .page-hero-blocks .block {
    width: 84px;
    height: 84px;
    border-width: 4px;
    font-size: 14px;
  }

  .page-hero-blocks .block-a {
    left: 20px;
  }

  .page-hero-blocks .block-b {
    right: 10px;
  }

  .page-hero-blocks .block-c {
    left: 0;
  }

  .page-hero-blocks .block-d {
    right: 32px;
  }

  .quest-node {
    width: 56px;
    height: 56px;
  }
}

/* Navigation layering and language control */

html {
  scroll-padding-top: 92px;
}

[data-site-header] {
  position: sticky;
  z-index: 100;
  top: 0;
  display: block;
}

.site-header,
.site-header.is-scrolled {
  position: relative;
  inset: auto;
  padding: 9px 0;
  border-bottom: 0;
  background:
    linear-gradient(rgba(255, 253, 241, 0.98), rgba(255, 253, 241, 0.98)),
    repeating-linear-gradient(90deg, #a47649 0 28px, #91643b 28px 56px);
  box-shadow: 0 5px 0 var(--grass-dark);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 20px;
}

.site-nav {
  gap: 26px;
}

.language-picker {
  min-height: 40px;
  padding: 0 8px 0 10px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 3px solid #26372b;
  background: #fffdf1;
  box-shadow: 0 3px 0 #708676;
  font-family: "Courier New", monospace;
  font-size: 11px;
  font-weight: 900;
  white-space: nowrap;
}

.language-picker span {
  color: #536058;
}

.language-picker select {
  min-height: 30px;
  padding: 0 24px 0 6px;
  border: 0;
  color: var(--ink);
  background: transparent;
  cursor: pointer;
  font-family: inherit;
  font-size: 12px;
  font-weight: 900;
}

.language-picker select:focus-visible {
  outline: 3px solid #f5cf4a;
  outline-offset: 1px;
}

.hero {
  padding-top: 78px;
}

.page-hero {
  padding-top: 76px;
}

@media (max-width: 1020px) {
  .nav-actions {
    gap: 12px;
  }

  .site-nav {
    gap: 18px;
  }
}

@media (max-width: 760px) {
  html {
    scroll-padding-top: 84px;
  }

  .site-header,
  .site-header.is-scrolled {
    padding: 8px 0;
  }

  .nav-actions {
    gap: 9px;
  }

  .language-picker {
    min-height: 38px;
    padding-inline: 7px;
  }

  .language-picker span {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
  }

  .language-picker select {
    max-width: 84px;
    min-height: 28px;
    padding-left: 3px;
    font-size: 11px;
  }

  .site-nav {
    top: calc(100% + 4px);
  }

  .hero {
    padding-top: 58px;
  }

  .page-hero {
    padding-top: 58px;
  }
}

@media (max-width: 430px) {
  .language-picker select {
    max-width: 74px;
  }
}
