:root {
  --ink: #080808;
  --paper: #fffdf7;
  --soft-paper: #f8f4ea;
  --cyan: #5fc3d6;
  --coral: #f15255;
  --sun: #ffdc55;
  --mint: #dff8ee;
  --green: #067062;
  --blush: #fff0ef;
  --bluewash: #dcecfb;
  --line: 4px solid var(--ink);
  --shadow: 10px 10px 0 var(--ink);
  --radius: 8px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background: linear-gradient(90deg, transparent 0 94%, rgba(8, 8, 8, 0.05) 94% 95%, transparent 95%), var(--paper);
  font-family: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", sans-serif;
  letter-spacing: 0;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
p { margin-top: 0; line-height: 1.85; }
h1, h2, h3 { margin-top: 0; }
h1 { margin-bottom: 18px; font-size: clamp(2.9rem, 7.2vw, 6.8rem); line-height: 1.02; }
h2 { margin-bottom: 18px; font-size: clamp(2rem, 4.8vw, 4.2rem); line-height: 1.08; }
h3 { margin-bottom: 10px; font-size: 1.3rem; line-height: 1.35; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(22px, 4vw, 56px);
  min-height: 92px;
  padding: 13px clamp(22px, 5vw, 84px);
  background: rgba(255, 253, 247, 0.96);
  border-bottom: 1px solid rgba(8, 8, 8, 0.12);
  backdrop-filter: blur(12px);
}

.brand-mark { display: inline-flex; align-items: center; gap: 14px; min-width: max-content; }
.brand-logo-icon {
  width: 66px;
  height: 66px;
  object-fit: cover;
  border-radius: 8px;
}
.brand-wordmark { display: grid; gap: 1px; line-height: 1; }
.brand-wordmark strong { font-size: clamp(1.3rem, 1.9vw, 2rem); font-weight: 900; color: #2f2b28; }
.brand-wordmark small { color: #5fc3d6; font-size: clamp(0.72rem, 0.9vw, 0.95rem); font-weight: 900; letter-spacing: 0.16em; }
.brand-wordmark em { color: #8a8a8a; font-size: clamp(0.78rem, 1vw, 1rem); font-style: normal; font-weight: 900; letter-spacing: 0.18em; }

.site-nav { display: flex; align-items: center; justify-content: flex-end; gap: clamp(18px, 2.7vw, 42px); flex: 1; font-size: clamp(1rem, 1.25vw, 1.22rem); font-weight: 900; color: #62584f; }
.site-nav a { position: relative; padding: 10px 0; white-space: nowrap; }
.site-nav a::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 3px;
  background: #bd7f62;
  content: "";
  opacity: 0;
  transform: scaleX(0.4);
  transition: 180ms ease;
}
.site-nav a:hover::after, .site-nav a.active::after { opacity: 1; transform: scaleX(1); }
.site-nav a[data-page-link="contact"] {
  padding: 14px 28px;
  color: white;
  background: #bd7f62;
  border-radius: 999px;
}
.site-nav a[data-page-link="contact"]::after { display: none; }

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 9px;
  background: var(--paper);
  border: 3px solid var(--ink);
  border-radius: var(--radius);
}
.nav-toggle span { display: block; height: 3px; margin: 5px 0; background: var(--ink); }

.hero {
  position: relative;
  min-height: calc(100vh - 75px);
  padding: clamp(28px, 4vw, 64px);
  overflow: hidden;
  background: white;
  border-bottom: var(--line);
}
.hero::before, .hero::after {
  position: absolute;
  z-index: 0;
  width: 33vw;
  height: 25vw;
  min-width: 210px;
  min-height: 160px;
  background: linear-gradient(150deg, transparent 0 33%, var(--cyan) 33% 50%, transparent 50% 58%, var(--coral) 58% 72%, transparent 72%), linear-gradient(35deg, transparent 0 46%, var(--sun) 46% 63%, transparent 63%);
  content: "";
}
.hero::before { top: -9vw; left: -8vw; }
.hero::after { right: -9vw; bottom: -10vw; transform: rotate(180deg); }
.hero-art {
  position: relative;
  z-index: 1;
  max-width: 1180px;
  margin: 0 auto;
  background: white;
  border: var(--line);
  border-radius: 48px 48px 8px 8px;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.hero-art img { width: 100%; object-fit: cover; }
.hero-copy {
  position: relative;
  z-index: 2;
  max-width: 1020px;
  margin: 0 auto;
  padding: clamp(28px, 4vw, 54px) 0 8px;
  text-align: center;
}
.hero h1 { font-family: "Klee One", cursive; }
.hero-subtitle { max-width: 800px; margin: 0 auto 26px; font-size: clamp(1.08rem, 2vw, 1.35rem); font-weight: 700; }
.hero-actions, .filter-bar { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.hero-strip {
  position: absolute;
  right: 8vw;
  bottom: 0;
  left: 8vw;
  height: 16px;
  background: repeating-linear-gradient(90deg, var(--cyan) 0 70px, white 70px 94px, var(--coral) 94px 152px, white 152px 178px, var(--sun) 178px 238px, white 238px 264px);
}

.page-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 430px);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
  padding: clamp(58px, 8vw, 120px) clamp(18px, 5vw, 72px);
  background: white;
  border-bottom: var(--line);
}
.page-hero.no-image { display: block; }
.page-hero p { max-width: 780px; font-size: 1.08rem; font-weight: 600; }
.page-image, .founder-photo, .lecture-card, .content-card, .contact-form {
  border: var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  background: white;
  overflow: hidden;
}
.page-image img, .founder-photo img { width: 100%; height: 100%; object-fit: cover; }

.section { padding: clamp(54px, 8vw, 112px) clamp(18px, 5vw, 72px); border-bottom: var(--line); }
.section-heading { max-width: 760px; margin-bottom: 34px; }
.section-heading.wide { max-width: 1020px; }
.eyebrow { margin: 0 0 10px; color: var(--coral); font-weight: 900; }
.eyebrow.mint { color: var(--green); }
.eyebrow.rename { color: #9c3f24; }

.button, .filter-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 11px 18px;
  font: inherit;
  font-weight: 900;
  color: var(--ink);
  background: var(--paper);
  border: 3px solid var(--ink);
  border-radius: var(--radius);
  box-shadow: 5px 5px 0 var(--ink);
  cursor: pointer;
  transition: 160ms ease;
}
.button:hover, .filter-chip:hover, .filter-chip.active { transform: translate(3px, 3px); box-shadow: 2px 2px 0 var(--ink); }
.button.primary, .filter-chip.active { background: var(--sun); }
.button.ghost { background: var(--mint); }
.button.dark { color: white; background: var(--ink); box-shadow: 5px 5px 0 var(--coral); }

.intro-band { background: var(--soft-paper); }
.intro-grid, .portal-grid, .support-grid, .post-grid, .lecture-grid, .placeholder-grid, .facts-grid, .blog-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.portal-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.lecture-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.placeholder-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.intro-grid article, .portal-card, .support-card, .post-grid article, .content-card, .fact-card, .placeholder-card, .blog-card {
  min-height: 180px;
  padding: 28px;
  background: white;
  border: var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.intro-grid article:nth-child(2), .support-card:nth-child(2), .portal-card:nth-child(2) { background: var(--mint); }
.intro-grid article:nth-child(3), .support-card:nth-child(3), .portal-card:nth-child(3) { background: var(--bluewash); }
.portal-card:nth-child(4), .support-card:nth-child(4) { background: var(--blush); }
.portal-card span, .fact-card span { display: block; margin-bottom: 28px; font-size: 2.4rem; font-weight: 900; }

.audience-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  background: var(--paper);
}
.audience-card {
  padding: clamp(28px, 5vw, 54px);
  background: var(--mint);
  border: var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.dark-card { color: white; background: var(--ink); }

.split-section, .contact, .founder-section {
  display: grid;
  grid-template-columns: minmax(240px, 0.85fr) minmax(320px, 1.15fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: start;
}
.content-stack { display: grid; gap: 18px; }
.content-card { min-height: auto; }
.content-card ul, .partner-panel ul { margin: 0; padding-left: 1.2em; line-height: 2; font-weight: 700; }

.lecture-card img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; }
.lecture-card div { padding: 18px; }
.lecture-card p { margin-bottom: 0; color: #444; font-size: 0.96rem; }
.tag-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 0; }
.tag-row span {
  display: inline-flex;
  padding: 6px 10px;
  background: var(--sun);
  border: 2px solid var(--ink);
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 900;
}

.cta-band { text-align: center; background: var(--ink); color: white; }
.cta-band p { max-width: 760px; margin: 0 auto 24px; }

.filter-bar { justify-content: flex-start; margin-bottom: 26px; }
.teacher-card.is-hidden { display: none; }
.placeholder-card { background: var(--soft-paper); }
.placeholder-card strong { display: block; margin-bottom: 8px; font-size: 1.3rem; }

.contact { background: linear-gradient(135deg, transparent 0 70%, rgba(255, 220, 85, 0.38) 70%), var(--soft-paper); }
.contact-form { display: grid; gap: 16px; padding: 28px; }
label { display: grid; gap: 8px; font-weight: 900; }
input, select, textarea {
  width: 100%;
  min-height: 46px;
  padding: 10px 12px;
  color: var(--ink);
  background: var(--paper);
  border: 3px solid var(--ink);
  border-radius: var(--radius);
  font: inherit;
}
textarea { resize: vertical; }
.form-note { min-height: 1.6em; margin: 0; color: var(--green); font-weight: 900; }
.contact-list { display: grid; gap: 14px; margin-top: 22px; }
.contact-list a, .contact-list span { display: inline-block; font-weight: 900; border-bottom: 4px solid var(--sun); width: fit-content; }

.blog-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.blog-card h3 {
  font-size: clamp(1.25rem, 2vw, 1.65rem);
}
.blog-card p:not(.eyebrow) {
  color: #3f3a36;
}
.text-link {
  width: fit-content;
  margin-top: auto;
  border-bottom: 4px solid var(--sun);
  font-weight: 900;
}

.article-page {
  background: var(--paper);
}
.article-hero {
  padding: clamp(58px, 8vw, 110px) clamp(18px, 6vw, 108px);
  background: white;
  border-bottom: var(--line);
}
.article-hero h1 {
  max-width: 1060px;
  font-size: clamp(2.3rem, 5vw, 5rem);
}
.article-description {
  max-width: 860px;
  font-size: clamp(1.05rem, 1.7vw, 1.28rem);
  font-weight: 700;
}
.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  color: #62584f;
  font-weight: 900;
}
.back-link {
  display: inline-block;
  margin-bottom: 24px;
  border-bottom: 4px solid var(--sun);
  font-weight: 900;
}
.article-layout {
  display: grid;
  grid-template-columns: minmax(220px, 300px) minmax(0, 860px);
  gap: clamp(28px, 5vw, 72px);
  align-items: start;
  justify-content: center;
  padding: clamp(48px, 7vw, 96px) clamp(18px, 5vw, 72px);
}
.article-sidebar {
  position: sticky;
  top: 120px;
  padding: 22px;
  background: var(--mint);
  border: var(--line);
  border-radius: var(--radius);
  box-shadow: 6px 6px 0 var(--ink);
}
.article-sidebar strong {
  display: block;
  margin-bottom: 8px;
  font-size: 1.1rem;
}
.article-sidebar .button {
  width: 100%;
}
.article-body {
  padding: clamp(24px, 4vw, 48px);
  background: white;
  border: var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.article-body > p {
  font-size: 1.08rem;
}
.article-body h2 {
  margin-top: 44px;
  font-size: clamp(1.65rem, 3vw, 2.7rem);
}
.article-body h2:first-child {
  margin-top: 0;
}
.related-section {
  margin-top: 56px;
  padding-top: 28px;
  border-top: 3px solid var(--ink);
}
.related-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.related-card {
  display: flex;
  min-height: 112px;
  padding: 18px;
  align-items: center;
  background: var(--soft-paper);
  border: 3px solid var(--ink);
  border-radius: var(--radius);
  font-weight: 900;
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
  padding: 24px clamp(18px, 5vw, 72px);
  color: white;
  background: var(--ink);
  font-weight: 900;
}
.site-footer p { margin: 0; }

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

@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .site-nav {
    position: fixed;
    top: 92px;
    right: 14px;
    left: 14px;
    display: none;
    padding: 20px;
    background: var(--paper);
    border: var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
  }
  .site-nav.open { display: grid; gap: 10px; }
  .hero { min-height: auto; }
  .hero-art { border-radius: 28px 28px 8px 8px; }
  .page-hero, .intro-grid, .support-grid, .post-grid, .placeholder-grid, .facts-grid, .split-section, .contact, .founder-section, .audience-section, .blog-grid, .article-layout, .related-grid { grid-template-columns: 1fr; }
  .article-sidebar { position: static; }
}

@media (max-width: 560px) {
  .site-header { padding: 12px 14px; }
  .brand-mark { gap: 9px; }
  .brand-logo-icon { width: 48px; height: 48px; }
  .brand-wordmark strong { font-size: 1.1rem; }
  .brand-wordmark small { font-size: 0.58rem; letter-spacing: 0.12em; }
  .brand-wordmark em { font-size: 0.64rem; letter-spacing: 0.1em; }
  h1 { font-size: clamp(2.45rem, 14vw, 4rem); }
  .hero { padding: 18px 14px 44px; }
  .hero-art { width: 128%; margin-left: -14%; box-shadow: 6px 6px 0 var(--ink); }
  .hero-copy { text-align: left; }
  .hero-actions, .filter-bar { justify-content: flex-start; }
  .button, .filter-chip { width: 100%; }
  .section, .page-hero { padding: 48px 16px; }
  .intro-grid article, .portal-card, .support-card, .post-grid article, .content-card, .fact-card, .placeholder-card, .lecture-card, .contact-form, .audience-card, .page-image, .founder-photo, .blog-card, .article-body { box-shadow: 6px 6px 0 var(--ink); }
  .lecture-grid, .portal-grid { grid-template-columns: 1fr; }
}

/* Enrollment — warm editorial utility, intentionally distinct from generic checkout UI. */
.header-action { padding: 9px 16px; }
.enrollment-page {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(520px, 1.1fr);
  min-height: calc(100vh - 92px);
  background: linear-gradient(112deg, var(--sun) 0 7px, var(--paper) 7px 54%, var(--soft-paper) 54%);
}
.enrollment-intro, .enrollment-panel { padding: clamp(44px, 6vw, 92px); }
.enrollment-intro { align-self: start; position: sticky; top: 92px; }
.enrollment-intro h1 { max-width: 620px; font-size: clamp(2.05rem, 3vw, 3.7rem); line-height: 1.08; }
.lead { max-width: 650px; font-size: 1.12rem; font-weight: 700; }
.course-ticket { position: relative; margin-top: 38px; padding: 28px; overflow: hidden; background: var(--ink); color: white; border-radius: var(--radius); box-shadow: 9px 9px 0 var(--coral); }
.course-ticket::after { content: "BP"; position: absolute; right: -12px; bottom: -30px; color: rgba(255,255,255,.08); font-size: 8rem; font-weight: 900; }
.course-ticket > span { color: var(--sun); font-weight: 900; }
.course-ticket > strong { display: block; margin: 8px 0 24px; font-size: 1.7rem; }
.course-ticket dl { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 0; }
.course-ticket dt { color: #bbb; font-size: .75rem; font-weight: 900; }
.course-ticket dd { margin: 4px 0 0; font-weight: 900; }
.checkout-steps { display: grid; gap: 12px; margin: 38px 0 0; padding: 0; list-style: none; }
.checkout-steps li { display: flex; align-items: center; gap: 12px; color: #81766b; font-weight: 900; }
.checkout-steps b { display: grid; width: 32px; height: 32px; place-items: center; border: 2px solid currentColor; border-radius: 50%; }
.checkout-steps .active { color: var(--ink); }
.checkout-steps .active b { background: var(--sun); }
.enrollment-panel { background: rgba(255,255,255,.76); border-left: var(--line); }
.panel-heading { display: grid; grid-template-columns: auto 1fr; gap: 20px; margin-bottom: 32px; }
.panel-heading > span { font-size: 4rem; font-weight: 900; line-height: 1; color: var(--coral); }
.panel-heading h2 { margin: 0 0 8px; font-size: clamp(1.8rem, 3vw, 3rem); }
.panel-heading p { margin: 0; }
.enrollment-form { display: grid; gap: 20px; }
.field-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.enrollment-form fieldset { margin: 0; padding: 20px; border: var(--line); border-radius: var(--radius); }
.enrollment-form legend { padding: 0 8px; font-weight: 900; }
.choice-row { display: flex; flex-wrap: wrap; gap: 22px; }
.choice-row label, .consent { display: flex; grid-template-columns: none; align-items: flex-start; gap: 10px; }
.choice-row input, .consent input { width: 20px; min-height: 20px; margin: 2px 0 0; accent-color: var(--ink); }
.price-choice-grid, .payment-choice-grid { display: grid; gap: 12px; }
.fixed-price-card { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 18px; border: 2px solid var(--ink); border-radius: 14px; background: #fff; box-shadow: 5px 5px 0 var(--sun); }
.fixed-price-card span { display: grid; gap: 3px; }
.fixed-price-card b { font-size: 1rem; }
.fixed-price-card small { color: #756b61; line-height: 1.55; }
.fixed-price-card strong { white-space: nowrap; font-size: 1.15rem; }
.price-choice, .payment-choice { position: relative; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 14px; padding: 18px; cursor: pointer; border: 2px solid #d8cfc3; border-radius: 14px; background: rgba(255,255,255,.7); transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease; }
.payment-choice { grid-template-columns: auto 1fr; }
.price-choice:hover, .payment-choice:hover { transform: translateY(-2px); border-color: var(--ink); }
.price-choice.is-selected, .payment-choice.is-selected { border-color: var(--ink); box-shadow: 5px 5px 0 var(--sun); background: #fff; }
.price-choice input, .payment-choice input { width: 20px; min-height: 20px; margin: 0; accent-color: var(--ink); }
.price-choice span, .payment-choice span { display: grid; gap: 3px; }
.price-choice b, .payment-choice b { font-size: 1rem; }
.price-choice small, .payment-choice small, .field-help { color: #756b61; line-height: 1.55; }
.price-choice strong { white-space: nowrap; font-size: 1.15rem; }
.field-help { margin: 12px 2px 0; font-size: .86rem; }
.schedule-after-payment { display: grid; grid-template-columns: auto 1fr; gap: 14px; padding: 18px; border-left: 5px solid var(--green); background: #edf5ed; }
.schedule-after-payment span { font-weight: 900; color: var(--green); }
.schedule-after-payment p { margin: 0; line-height: 1.65; }
.checkout-total { display: flex; justify-content: space-between; align-items: baseline; padding: 18px 0 4px; border-top: var(--line); }
.checkout-total span { color: #756b61; font-weight: 900; }
.checkout-total strong { font-size: 1.8rem; }
.company-fields { margin-top: 18px; }
.checkout-button { width: 100%; justify-content: space-between; font-size: 1.06rem; }
.checkout-button:disabled { cursor: wait; opacity: .55; }
.checkout-status { min-height: 1.6em; color: var(--green); font-weight: 900; }
.checkout-status[data-state="error"] { color: #a3372c; }
.security-note { margin: -8px 0 0; color: #746a61; font-size: .82rem; text-align: center; }
.result-page { min-height: 100vh; display: grid; place-items: center; padding: 24px; background: radial-gradient(circle at 10% 10%, var(--sun), transparent 28%), var(--soft-paper); }
.result-card { width: min(680px, 100%); padding: clamp(34px, 7vw, 70px); text-align: center; background: white; border: var(--line); border-radius: 34px; box-shadow: 12px 12px 0 var(--ink); }
.result-card img { width: 82px; height: 82px; object-fit: cover; border: 3px solid var(--ink); border-radius: 50%; }
.result-card h1 { font-size: clamp(2.4rem, 7vw, 4.8rem); }
.result-note { margin: 24px 0; padding: 14px; background: var(--mint); border-radius: var(--radius); font-weight: 900; }

/* Paid-student intake portal — a quiet field notebook for the teaching room. */
.portal-badge { padding: 7px 12px; border: 2px solid var(--ink); border-radius: 999px; background: var(--mint); font-size: .78rem; font-weight: 900; }
.intake-page { min-height: 100vh; background: linear-gradient(90deg, transparent 49px, rgba(238,92,86,.16) 50px, transparent 51px), repeating-linear-gradient(0deg, var(--paper) 0 39px, #dfd8cd 40px); }
.intake-hero { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 48px; padding: clamp(54px, 8vw, 110px) max(24px, calc((100vw - 1180px) / 2)); background: linear-gradient(125deg, rgba(255,255,255,.92), rgba(255,248,230,.8)); border-bottom: var(--line); }
.intake-hero > div { max-width: 780px; }
.intake-hero h1 { margin: 8px 0 20px; font-size: clamp(2.7rem, 6vw, 6.5rem); line-height: .98; letter-spacing: -.055em; }
.intake-hero h1 em { color: var(--coral); font-style: normal; font-family: "Klee One", serif; }
.intake-hero > div > p:last-child { max-width: 650px; font-size: 1.08rem; font-weight: 700; line-height: 1.8; }
.intake-identity { min-width: 220px; padding: 22px; transform: rotate(1.5deg); background: var(--sun); border: var(--line); box-shadow: 7px 7px 0 var(--ink); }
.intake-identity span, .intake-identity small { display: block; }
.intake-identity span { margin-bottom: 13px; font-size: .72rem; font-weight: 900; letter-spacing: .12em; }
.intake-identity strong { display: block; font-size: 1.2rem; }
.intake-identity small { margin-top: 5px; }
.intake-shell { width: min(1060px, calc(100% - 32px)); margin: 0 auto; padding: clamp(42px, 7vw, 86px) 0; }
.portal-state, .portal-success { padding: clamp(36px, 7vw, 72px); text-align: center; background: white; border: var(--line); border-radius: 28px; box-shadow: 10px 10px 0 var(--ink); }
.portal-state.error { box-shadow: 10px 10px 0 var(--coral); }
.portal-state strong, .portal-success h2 { display: block; margin: 12px 0; font-size: clamp(1.8rem, 4vw, 3rem); }
.loading-mark, .portal-success > span { display: grid; width: 68px; height: 68px; margin: 0 auto 18px; place-items: center; background: var(--sun); border: var(--line); border-radius: 50%; font-weight: 900; animation: gentle-turn 1.8s ease-in-out infinite alternate; }
@keyframes gentle-turn { to { transform: rotate(8deg) scale(1.04); } }
.teacher-intake-form { display: grid; gap: 34px; }
.intake-section { position: relative; display: grid; gap: 22px; padding: clamp(26px, 5vw, 54px); background: rgba(255,255,255,.94); border: var(--line); border-radius: 28px; box-shadow: 8px 8px 0 rgba(25,25,25,.13); }
.section-number { position: absolute; top: 26px; right: 30px; color: rgba(25,25,25,.08); font-size: clamp(4rem, 9vw, 7rem); font-weight: 900; line-height: 1; }
.section-copy { position: relative; max-width: 680px; padding-right: 60px; }
.section-copy h2 { margin: 6px 0 10px; font-size: clamp(1.8rem, 4vw, 3rem); }
.section-copy p { margin: 0; line-height: 1.7; }
.session-group, .answer-group { margin: 0; padding: 0; border: 0; }
.session-group legend, .answer-group legend { margin-bottom: 12px; font-weight: 900; }
.session-options { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.session-card { position: relative; display: grid; grid-template-columns: auto 1fr auto; gap: 4px 12px; padding: 18px; cursor: pointer; background: var(--soft-paper); border: 2px solid #d8cfc3; border-radius: 16px; transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease; }
.session-card:hover { transform: translateY(-2px); border-color: var(--ink); }
.session-card:has(input:checked) { background: white; border-color: var(--ink); box-shadow: 5px 5px 0 var(--sun); }
.session-card input { grid-row: 1 / span 3; align-self: center; width: 20px; min-height: 20px; accent-color: var(--ink); }
.session-card .session-type { font-size: .75rem; font-weight: 900; color: var(--coral); }
.session-card strong { grid-column: 2; }
.session-card small { grid-column: 2; color: #746a61; }
.session-card em { grid-column: 3; grid-row: 1 / span 3; align-self: center; color: var(--green); font-size: .76rem; font-style: normal; font-weight: 900; }
.session-card.is-full { cursor: not-allowed; opacity: .48; }
.chip-options { display: flex; flex-wrap: wrap; gap: 10px; }
.chip-options label { cursor: pointer; }
.chip-options input { position: absolute; opacity: 0; pointer-events: none; }
.chip-options span { display: block; padding: 10px 14px; background: var(--soft-paper); border: 2px solid #d8cfc3; border-radius: 999px; font-size: .88rem; font-weight: 700; transition: background .15s ease, border-color .15s ease, transform .15s ease; }
.chip-options input:checked + span { transform: translateY(-2px); background: var(--sun); border-color: var(--ink); box-shadow: 3px 3px 0 var(--ink); }
.consent.soft { padding: 16px; background: #edf5ed; border-left: 5px solid var(--green); }
.intake-submit-bar { display: flex; justify-content: space-between; align-items: center; gap: 22px; padding: 24px; background: var(--ink); color: white; border-radius: 22px; box-shadow: 8px 8px 0 var(--sun); }
.intake-submit-bar div { display: grid; gap: 3px; }
.intake-submit-bar small { color: #c9c2b9; }
.intake-submit-bar .button { background: var(--sun); color: var(--ink); }
.intake-submit-bar .button:disabled { cursor: wait; opacity: .55; }
.portal-success > span { width: auto; height: auto; padding: 10px 16px; border-radius: 999px; animation: none; }

@media (max-width: 980px) {
  .enrollment-page { grid-template-columns: 1fr; background: var(--soft-paper); }
  .enrollment-intro { position: static; background: var(--paper); }
  .enrollment-panel { border-left: 0; border-top: var(--line); }
  .intake-hero { grid-template-columns: 1fr; align-items: start; }
  .intake-identity { justify-self: start; }
}
@media (max-width: 560px) {
  .header-action { width: auto; font-size: .78rem; }
  .enrollment-intro, .enrollment-panel { padding: 42px 16px; }
  .course-ticket dl, .field-pair { grid-template-columns: 1fr; }
  .price-choice { grid-template-columns: auto 1fr; }
  .price-choice strong { grid-column: 2; }
  .schedule-after-payment { grid-template-columns: 1fr; }
  .panel-heading { grid-template-columns: 1fr; }
  .panel-heading > span { font-size: 2.6rem; }
  .portal-badge { font-size: .68rem; }
  .intake-page { background: var(--paper); }
  .intake-hero { padding: 44px 18px; gap: 28px; }
  .intake-hero h1 { font-size: clamp(2.6rem, 13vw, 4.2rem); }
  .intake-shell { width: calc(100% - 24px); padding: 30px 0 54px; }
  .intake-section { padding: 26px 18px; border-radius: 20px; }
  .section-number { top: 18px; right: 18px; }
  .section-copy { padding-right: 42px; }
  .session-options { grid-template-columns: 1fr; }
  .intake-submit-bar { align-items: stretch; flex-direction: column; }
  .intake-submit-bar .button { width: 100%; justify-content: space-between; }
}
