/* Web-owned asset. */
:root {
  --bg: #fbf7f1;
  --paper: #fffdf8;
  --paper-2: #f3ebe3;
  --ink: #31231e;
  --muted: #806b60;
  --line: #eadfd6;
  --soft: #f6eee6;
  --mocha: #a88373;
  --mocha-dark: #6f4b40;
  --mocha-deep: #3c2a24;
  --cloud: #f4f1eb;
  --green: #458b78;
  --amber: #bd8150;
  --shadow: 0 16px 44px rgba(115, 91, 78, 0.11);
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 12% 4%, rgba(168, 131, 115, 0.14), transparent 30%),
    radial-gradient(circle at 90% 10%, rgba(255, 253, 248, 0.95), transparent 30%),
    linear-gradient(135deg, #fdfaf5 0%, #f7efe7 58%, #efe1d7 100%);
}

a { color: inherit; text-decoration: none; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  min-height: 70px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 24px;
  padding: 0 clamp(20px, 5vw, 48px);
  border-bottom: 1px solid rgba(221, 206, 193, 0.84);
  background: rgba(251, 247, 241, 0.88);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  font-weight: 840;
}

.brand-logo {
  display: block;
  flex: 0 0 auto;
  width: 45px;
  height: 34px;
  object-fit: contain;
}

html[data-theme="style3"] .brand-logo { filter: invert(1); }

.brand b { white-space: nowrap; }

.site-header nav {
  grid-column: 2;
  grid-row: 1;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 10px;
}

.site-header nav a {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  padding: 0 10px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 14px;
}

.site-header nav a:hover {
  color: var(--mocha-dark);
  background: rgba(164, 120, 100, 0.1);
}

.site-header nav a.is-current,
.site-header nav a[aria-current="location"] {
  color: #344a52;
  background: rgba(82, 104, 112, 0.12);
  box-shadow: inset 0 -2px 0 #526870;
  font-weight: 800;
}

.nav-account {
  border: 1px solid rgba(75, 48, 39, 0.18);
  background: rgba(255, 250, 242, 0.68);
  color: var(--mocha-dark) !important;
}

.site-header .nav-app-link {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 17px;
  border-radius: 999px;
  border: 1px solid #344a52;
  background: #3d5159;
  color: #fffdf8;
  box-shadow: 0 8px 18px rgba(52, 74, 82, 0.14);
  font-weight: 820;
}

.site-header .nav-app-link:hover {
  border-color: #263b43;
  background: #2f464f;
  color: #fffdf8;
}

.site-header-tools {
  grid-column: 3;
  grid-row: 1;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 9px;
}

.language-switcher { position: relative; }

.language-switcher summary {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 12px;
  border: 1px solid rgba(75, 48, 39, 0.17);
  border-radius: 999px;
  background: rgba(255, 253, 248, 0.72);
  color: var(--mocha-dark);
  cursor: pointer;
  list-style: none;
  font-size: 13px;
  font-weight: 760;
  white-space: nowrap;
}

.language-switcher summary::-webkit-details-marker { display: none; }

.language-switcher summary svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.6;
}

.language-switcher summary i {
  width: 7px;
  height: 7px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
}

.language-switcher[open] summary i { transform: rotate(225deg) translate(-1px, -1px); }
.language-current-short { display: none; }

.language-menu {
  position: absolute;
  top: calc(100% + 9px);
  right: 0;
  z-index: 40;
  width: 196px;
  overflow: hidden;
  padding: 6px;
  border: 1px solid rgba(75, 48, 39, 0.16);
  border-radius: 11px;
  background: #fffdf8;
  box-shadow: 0 18px 42px rgba(49, 35, 30, 0.18);
}

.language-menu a {
  min-height: 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 11px;
  border-radius: 7px;
  color: var(--mocha-deep);
  font-size: 14px;
  font-weight: 700;
}

.language-menu a:hover,
.language-menu a[aria-current="true"] { background: rgba(82, 104, 112, 0.1); }
.language-menu a b { color: #526870; }


.hero {
  min-height: min(760px, calc(100vh - 70px));
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 480px);
  gap: clamp(28px, 5vw, 56px);
  align-items: center;
  padding: clamp(44px, 7vw, 78px) 7vw clamp(54px, 8vw, 88px);
  border-bottom: 1px solid var(--line);
}

.hero-simple {
  min-height: min(720px, calc(100vh - 70px));
  grid-template-columns: minmax(0, 920px);
}

.hero-simple .hero-copy {
  max-width: 920px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--mocha);
  font-size: 12px;
  font-weight: 840;
  letter-spacing: 0;
  text-transform: uppercase;
}

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

h1 {
  max-width: 820px;
  margin-bottom: 18px;
  color: var(--mocha-deep);
  font-size: clamp(40px, 5.4vw, 66px);
  line-height: 1.06;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 14px;
  color: var(--mocha-deep);
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.08;
}

h3 { margin-bottom: 10px; font-size: 19px; }

.lead {
  max-width: 720px;
  color: #49372f;
  font-size: clamp(19px, 2.25vw, 27px);
  line-height: 1.48;
}

.hero-simple .lead {
  max-width: 800px;
  font-size: clamp(17px, 1.7vw, 21px);
  line-height: 1.7;
}

.hero-kicker {
  margin-bottom: 14px;
  color: #526870;
  font-size: clamp(22px, 2.5vw, 30px);
  font-weight: 720;
  line-height: 1.4;
}

.hero-tagline {
  max-width: 720px;
  margin: 22px 0 0;
  padding-left: 16px;
  border-left: 3px solid #526870;
  color: var(--mocha-deep);
  font-size: 16px;
  font-weight: 760;
  line-height: 1.55;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.login-note {
  margin-top: 14px;
  color: var(--muted);
  font-size: 14px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 253, 248, 0.78);
  color: var(--mocha-dark);
  font-weight: 780;
}

.button.primary {
  border-color: var(--mocha-dark);
  background: linear-gradient(135deg, #9f7868, #b99683);
  color: var(--cloud);
  box-shadow: 0 14px 30px rgba(115, 91, 78, 0.16);
}

.button.secondary { background: rgba(255, 253, 248, 0.58); }

.preview-card, .feature-grid article, .safety {
  border: 1px solid rgba(75, 48, 39, 0.14);
  border-radius: 14px;
  background: rgba(255, 253, 248, 0.82);
  box-shadow: var(--shadow);
}

.preview-card { overflow: hidden; backdrop-filter: blur(6px); }

.trust-preview {
  box-shadow: 0 14px 34px rgba(49, 35, 30, 0.08);
}

.preview-head {
  display: flex;
  justify-content: space-between;
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
}

.preview-head span, .preview-metric small, .preview-grid small {
  color: var(--muted);
  font-size: 12px;
}

.preview-head b { color: var(--green); font-size: 13px; }

.preview-metric {
  padding: 24px;
  background:
    radial-gradient(circle at 86% 18%, rgba(255, 253, 248, 0.64), transparent 34%),
    linear-gradient(135deg, #efe2d8, #c8a18e);
  color: var(--mocha-deep);
}

.preview-metric strong {
  display: block;
  margin: 8px 0;
  font-size: clamp(42px, 6vw, 58px);
}

.preview-metric small, .preview-metric span { color: rgba(72, 49, 42, 0.62); }

.preview-metric span, .text-stack p, .feature-grid p, .safety p {
  color: var(--muted);
  line-height: 1.66;
}

.source-links {
  padding-top: 14px;
  border-top: 1px solid var(--line);
  font-size: 13px;
}

.source-links a {
  color: var(--mocha-dark);
  font-weight: 760;
  text-decoration: underline;
  text-decoration-color: rgba(111, 75, 64, 0.32);
  text-underline-offset: 3px;
}

.source-links span { margin: 0 5px; color: var(--mocha); }

.preview-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--line);
}

.preview-grid div {
  display: grid;
  gap: 7px;
  min-width: 0;
  padding: 16px;
  background: rgba(255, 253, 248, 0.92);
}

.preview-grid b { overflow-wrap: anywhere; }

.trust-preview-list {
  display: grid;
}

.trust-preview-list div {
  display: grid;
  gap: 5px;
  padding: 18px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 253, 248, 0.72);
}

.trust-preview-list div:last-child {
  border-bottom: 0;
}

.trust-preview-list small {
  color: var(--mocha);
  font-size: 11px;
  font-weight: 840;
}

.trust-preview-list b {
  color: var(--mocha-deep);
  font-size: 17px;
}

.trust-preview-list span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.trust-foundation {
  background: rgba(255, 253, 248, 0.38);
}

.brand-story .text-stack {
  display: grid;
  gap: 14px;
}

.brand-story .text-stack p {
  margin: 0;
  font-size: 17px;
}

.brand-story .text-stack strong {
  color: var(--mocha-deep);
}

.story-emphasis {
  display: grid;
  gap: 8px;
  margin-top: 8px;
  padding: 22px 24px;
  border-left: 3px solid #526870;
  background: rgba(255, 253, 248, 0.66);
}

.story-emphasis span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 760;
}

.story-emphasis strong {
  font-size: clamp(19px, 2vw, 24px);
  line-height: 1.45;
}

.brand-story-muted {
  background: rgba(255, 253, 248, 0.38);
}

.section {
  padding: 76px 7vw;
  border-bottom: 1px solid var(--line);
}

.section[id] { scroll-margin-top: calc(var(--site-header-offset, 70px) + 12px); }

.section-heading {
  max-width: 860px;
  margin-bottom: 34px;
}

.section-heading > p:last-child {
  max-width: 760px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.66;
}

.two-col, .safety {
  display: grid;
  grid-template-columns: minmax(240px, 0.72fr) minmax(0, 1.28fr);
  gap: 42px;
  align-items: start;
}

.text-stack { max-width: 780px; }

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

.principle-grid article {
  min-height: 210px;
  padding: 24px;
  border: 1px solid rgba(75, 48, 39, 0.12);
  border-radius: 12px;
  background: rgba(255, 253, 248, 0.74);
}

.principle-grid span {
  display: block;
  margin-bottom: 30px;
  color: #526870;
  font-size: 12px;
  font-weight: 840;
}

.principle-grid p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.65;
}

.section-closing {
  max-width: 820px;
  margin: 32px 0 0;
  color: var(--mocha-deep);
  font-size: clamp(18px, 2vw, 22px);
  font-weight: 720;
  line-height: 1.55;
}

.audience-section {
  background: rgba(255, 253, 248, 0.38);
}

.audience-list {
  max-width: 900px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.audience-list li {
  position: relative;
  min-height: 58px;
  display: flex;
  align-items: center;
  padding: 14px 18px 14px 46px;
  border: 1px solid rgba(75, 48, 39, 0.11);
  border-radius: 10px;
  background: rgba(255, 253, 248, 0.76);
  color: #49372f;
  line-height: 1.5;
}

.audience-list li::before {
  content: "✓";
  position: absolute;
  left: 18px;
  color: #526870;
  font-weight: 900;
}

.disclosure-section {
  padding-top: 64px;
  padding-bottom: 64px;
}

.disclosure-panel {
  max-width: 1120px;
  display: grid;
  grid-template-columns: minmax(240px, 0.72fr) minmax(0, 1.28fr);
  gap: 42px;
  padding: clamp(28px, 4vw, 46px);
  border: 1px solid rgba(75, 48, 39, 0.14);
  border-radius: 14px;
  background: rgba(255, 253, 248, 0.7);
}

.disclosure-panel h2 {
  font-size: clamp(27px, 3.4vw, 40px);
}

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

.feature-grid article {
  min-height: 210px;
  padding: 22px;
}

.feature-grid span {
  display: inline-flex;
  margin-bottom: 34px;
  color: var(--mocha);
  font-weight: 840;
}

.safety { align-items: center; }

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 28px 7vw;
  color: var(--muted);
}

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

  .preview-card { max-width: 620px; }
}

@media (max-width: 900px) {
  .two-col, .safety, .feature-grid, .disclosure-panel { grid-template-columns: 1fr; }
}

@media (max-width: 680px) {
  .site-header {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 4px;
    padding: 8px 14px 6px;
  }

  .site-header .brand { grid-column: 1; grid-row: 1; }
  .site-header .brand { gap: 8px; }
  .site-header .brand-logo { width: 40px; height: 30px; }
  .site-header .brand b { font-size: 16px; }

  .site-header nav {
    grid-column: 1 / -1;
    grid-row: 2;
    width: 100%;
    justify-content: flex-start;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 3px;
    padding: 0;
    scrollbar-width: none;
    -ms-overflow-style: none;
    overscroll-behavior-inline: contain;
  }

  html[data-theme] .site-header nav::-webkit-scrollbar {
    display: none;
    width: 0;
    height: 0;
  }

  .site-header nav a {
    flex: 0 0 auto;
    min-height: 30px;
    padding: 0 9px;
    font-size: 13px;
  }

  .site-header .nav-app-link {
    min-height: 30px;
    padding: 0 12px;
    border-radius: 8px;
    font-size: 12px;
  }

  .site-header-tools {
    grid-column: 2;
    grid-row: 1;
    gap: 6px;
  }

  .language-switcher summary {
    min-height: 30px;
    gap: 6px;
    padding: 0 8px;
    border-radius: 8px;
    font-size: 12px;
  }

  .language-switcher summary svg { width: 17px; height: 17px; }
  .language-current-full { display: none; }
  .language-current-short { display: inline; }
  .language-menu { top: calc(100% + 6px); width: 180px; }

  .site-header nav a.is-current,
  .site-header nav a[aria-current="location"] {
    border-radius: 7px;
    background: rgba(82, 104, 112, 0.13);
  }

  .hero, .section { padding: 32px 20px; }
  .hero { min-height: auto; padding-top: 52px; padding-bottom: 52px; }
  h1 { font-size: clamp(38px, 12vw, 48px); }
  .lead { font-size: 18px; }
  .preview-grid { grid-template-columns: 1fr; }
  .hero-actions .button { width: 100%; }
  .principle-grid, .audience-list { grid-template-columns: 1fr; }
  .principle-grid article { min-height: 0; }
  .principle-grid span { margin-bottom: 18px; }
  .story-emphasis { padding: 18px 20px; }
  .disclosure-section { padding-top: 32px; padding-bottom: 32px; }
  .disclosure-panel { gap: 18px; padding: 24px 20px; }
  .site-footer { flex-direction: column; padding: 24px 20px; }
}

@media (max-width: 380px) {
  .site-header nav a { padding: 0 7px; font-size: 12px; }
  .preview-metric { padding: 20px; }
}

/* Beginner education homepage */
.education-hero {
  min-height: min(760px, calc(100vh - 70px));
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.75fr);
}

.education-hero .hero-copy { max-width: 820px; }

.education-hero h1 {
  max-width: 780px;
  font-size: clamp(42px, 5.2vw, 64px);
}

.education-hero .lead {
  max-width: 740px;
  font-size: clamp(17px, 1.65vw, 21px);
  line-height: 1.72;
}

.position-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 24px;
}

.position-tags span {
  padding: 7px 11px;
  border: 1px solid rgba(61, 81, 89, 0.16);
  border-radius: 999px;
  background: rgba(255, 253, 248, 0.64);
  color: #526870;
  font-size: 13px;
  font-weight: 720;
}

.hero-guide {
  padding: clamp(24px, 3vw, 34px);
  border: 1px solid rgba(75, 48, 39, 0.14);
  border-radius: 18px;
  background: rgba(255, 253, 248, 0.74);
  box-shadow: var(--shadow);
}

.hero-guide > small {
  color: #526870;
  font-weight: 820;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.hero-guide ol {
  display: grid;
  gap: 0;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.hero-guide li {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 12px;
  align-items: center;
  min-height: 58px;
  border-top: 1px solid var(--line);
}

.hero-guide li b { color: var(--mocha); font-size: 12px; }
.hero-guide li span { color: var(--mocha-deep); font-weight: 760; }

.narrow-heading { max-width: 790px; }

.funding-flow {
  display: grid;
  grid-template-columns: minmax(190px, 1fr) auto minmax(190px, 1fr) auto minmax(190px, 1fr);
  gap: 12px;
  align-items: stretch;
  max-width: 1220px;
}

.funding-flow article,
.model-card,
.boundary-card {
  border: 1px solid rgba(75, 48, 39, 0.12);
  border-radius: 14px;
  background: rgba(255, 253, 248, 0.78);
}

.funding-flow article {
  min-height: 230px;
  padding: 24px;
}

.funding-flow .flow-market {
  border-color: rgba(82, 104, 112, 0.28);
  background: rgba(82, 104, 112, 0.09);
}

.flow-number {
  display: block;
  margin-bottom: 30px;
  color: var(--mocha);
  font-size: 12px;
  font-weight: 840;
}

.funding-flow small { color: var(--muted); }
.funding-flow h3 { margin: 6px 0 14px; color: var(--mocha-deep); }
.funding-flow p { color: var(--muted); line-height: 1.6; }
.funding-flow ul { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.funding-flow li { padding: 5px 9px; border-radius: 6px; background: var(--soft); color: var(--mocha-dark); font-size: 13px; }

.flow-connector {
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 7px;
  min-width: 56px;
  color: #526870;
}

.flow-connector span { font-size: 11px; font-weight: 760; }
.flow-connector i { font-size: 24px; font-style: normal; }

.plain-note {
  max-width: 900px;
  margin: 24px 0 0;
  padding: 15px 18px;
  border-left: 3px solid #526870;
  background: rgba(255, 253, 248, 0.55);
  color: #49372f;
  line-height: 1.65;
}

.inline-explainer {
  max-width: 900px;
  margin-top: 18px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 253, 248, 0.48);
}

.inline-explainer summary,
.faq-item summary {
  cursor: pointer;
  list-style: none;
}

.inline-explainer summary::-webkit-details-marker,
.faq-item summary::-webkit-details-marker { display: none; }

.inline-explainer summary {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 18px;
  color: var(--mocha-dark);
  font-weight: 760;
}

.inline-explainer summary i,
.faq-item summary i {
  position: relative;
  flex: 0 0 18px;
  width: 18px;
  height: 18px;
}

.inline-explainer summary i::before,
.inline-explainer summary i::after,
.faq-item summary i::before,
.faq-item summary i::after {
  content: "";
  position: absolute;
  top: 8px;
  left: 3px;
  width: 12px;
  height: 1px;
  background: #526870;
}

.inline-explainer summary i::after,
.faq-item summary i::after { transform: rotate(90deg); transition: transform .18s ease; }
.inline-explainer[open] summary i::after,
.faq-item[open] summary i::after { transform: rotate(0); }
.inline-explainer > div { padding: 0 18px 16px; }
.inline-explainer p { margin: 0; color: var(--muted); line-height: 1.7; }

.model-section,
.permission-section,
.faq-section { background: rgba(255, 253, 248, 0.38); }

.model-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  max-width: 1220px;
}

.model-card { padding: 24px; }
.model-card.featured {
  border: 2px solid rgba(61, 81, 89, 0.54);
  background: linear-gradient(145deg, rgba(82, 104, 112, 0.18), rgba(255, 253, 248, 0.92));
  box-shadow: inset 0 5px 0 #3d5159, 0 16px 34px rgba(52, 74, 82, 0.12);
}
.model-card.featured h3 { color: #2f464f; }
.model-card.featured .model-label small {
  padding: 5px 9px;
  border-radius: 999px;
  background: #3d5159;
  color: #fffdf8;
}
.model-label { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 28px; }
.model-label span { color: var(--mocha); font-size: 12px; font-weight: 840; }
.model-label small { color: #526870; font-weight: 760; }
.model-card > p { min-height: 78px; color: var(--muted); line-height: 1.62; }
.model-card dl { display: grid; gap: 0; margin: 22px 0 0; }
.model-card dl div { display: grid; grid-template-columns: 82px 1fr; gap: 10px; padding: 11px 0; border-top: 1px solid var(--line); }
.model-card dt { color: var(--muted); font-size: 13px; }
.model-card dd { margin: 0; color: #49372f; font-size: 13px; font-weight: 680; }

.role-diagram {
  max-width: 860px;
  display: grid;
  justify-items: center;
  margin: 0 auto;
}

.role-node {
  min-width: 250px;
  display: grid;
  gap: 5px;
  justify-items: center;
  padding: 19px 24px;
  border: 1px solid rgba(75, 48, 39, 0.14);
  border-radius: 12px;
  background: rgba(255, 253, 248, 0.82);
  text-align: center;
}

.role-node small { color: var(--muted); }
.role-node strong { color: var(--mocha-deep); font-size: 20px; }
.role-node span { color: var(--muted); font-size: 12px; }
.role-chillhihi { border-color: rgba(82, 104, 112, 0.36); box-shadow: 0 12px 30px rgba(52, 74, 82, 0.1); }
.role-bitfinex { min-width: 310px; background: rgba(82, 104, 112, 0.09); }

.role-api { display: grid; justify-items: center; gap: 4px; padding: 13px 0; color: #526870; }
.role-api span { padding: 5px 10px; border-radius: 999px; background: rgba(82, 104, 112, 0.09); font-size: 12px; font-weight: 760; }
.role-api i { font-size: 21px; font-style: normal; }

.role-branches {
  position: relative;
  width: 100%;
  height: 44px;
}

.role-branches::before,
.role-branches::after,
.role-bottom .role-node::before {
  content: "";
  position: absolute;
  background: #9fb0b5;
}

.role-branches::before {
  top: 0;
  left: 50%;
  width: 1px;
  height: 22px;
}

.role-branches::after {
  top: 21px;
  left: 25%;
  width: 50%;
  height: 1px;
}

.role-bottom {
  position: relative;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
}

.role-bottom .role-node {
  position: relative;
  width: calc(100% - 32px);
  max-width: 370px;
  justify-self: center;
}

.role-bottom .role-node::before {
  top: -22px;
  left: 50%;
  width: 1px;
  height: 22px;
}

.money-statement {
  max-width: 860px;
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 18px;
  align-items: center;
  margin: 28px auto 0;
  padding: 20px 22px;
  border: 1px solid rgba(69, 139, 120, 0.22);
  border-radius: 10px;
  background: rgba(69, 139, 120, 0.08);
}

.money-statement span { color: var(--green); font-size: 12px; font-weight: 840; text-transform: uppercase; }
.money-statement strong { color: #345d52; line-height: 1.55; }

.permission-path {
  max-width: 1050px;
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  gap: 12px;
  align-items: center;
}

.permission-path div {
  min-height: 92px;
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 10px;
  align-items: center;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 253, 248, 0.75);
}

.permission-path div b { color: #526870; font-size: 12px; }
.permission-path div span { color: #49372f; font-weight: 680; line-height: 1.5; }
.permission-path > i { color: #526870; font-style: normal; }

.boundary-grid {
  max-width: 1050px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 22px;
}

.boundary-card { padding: 26px; }
.boundary-card.can-do { border-top: 4px solid var(--green); }
.boundary-card.cannot-do { border-top: 4px solid var(--mocha); }
.boundary-label { margin-bottom: 7px; color: var(--muted); font-size: 12px; font-weight: 820; }
.boundary-card ul { display: grid; gap: 11px; margin: 20px 0 0; padding: 0; list-style: none; }
.boundary-card li { position: relative; padding-left: 25px; color: var(--muted); line-height: 1.5; }
.boundary-card li::before { position: absolute; left: 0; color: var(--green); font-weight: 900; content: "✓"; }
.cannot-do li::before { color: var(--mocha); content: "—"; }
.permission-detail { max-width: 1050px; }

.routine-grid {
  max-width: 920px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 18px;
  align-items: center;
}

.routine-grid div { padding: 24px; border: 1px solid var(--line); border-radius: 12px; background: rgba(255, 253, 248, 0.68); }
.routine-grid .routine-result { border-color: rgba(82, 104, 112, 0.3); background: rgba(82, 104, 112, 0.09); }
.routine-grid span { color: #526870; font-size: 13px; font-weight: 820; }
.routine-grid p { margin: 8px 0 0; color: var(--mocha-deep); font-size: 18px; font-weight: 720; line-height: 1.5; }
.routine-grid > i { color: #526870; font-size: 24px; font-style: normal; }

.faq-list { max-width: 920px; border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary { display: flex; justify-content: space-between; gap: 18px; align-items: center; padding: 20px 4px; color: var(--mocha-deep); font-size: 17px; font-weight: 760; }
.faq-answer { padding: 0 44px 20px 4px; }
.faq-answer p { margin: 0; color: var(--muted); line-height: 1.72; }
.official-source-note { margin: 24px 0 0; color: var(--muted); font-size: 13px; }
.official-source-note span { margin: 0 7px; }
.official-source-note a { color: #526870; font-weight: 760; text-decoration: underline; text-underline-offset: 3px; }

.beta-section {
  display: grid;
  grid-template-columns: minmax(240px, .7fr) minmax(0, 1.3fr);
  gap: 48px;
  background: #3d5159;
  color: #fffdf8;
}

.beta-section h2 { color: #fffdf8; }
.beta-section .eyebrow { color: #b9d0d8; }
.beta-section > div:last-child { max-width: 720px; }
.beta-section p { color: rgba(255, 253, 248, .76); font-size: 17px; line-height: 1.7; }
.beta-section .button { margin-top: 10px; border-color: rgba(255,255,255,.35); background: #fffdf8; color: #344a52; box-shadow: none; }

@media (max-width: 1040px) {
  .education-hero { grid-template-columns: 1fr; }
  .hero-guide { max-width: 620px; }
  .funding-flow { grid-template-columns: 1fr; }
  .funding-flow article { min-height: 0; }
  .flow-connector { min-height: 52px; }
  .flow-connector i { transform: rotate(90deg); }
  .model-grid { grid-template-columns: 1fr; }
  .model-card > p { min-height: 0; }
}

@media (max-width: 760px) {
  .education-hero h1 { font-size: clamp(38px, 12vw, 50px); }
  .education-hero .hero-kicker { font-size: 20px; }
  .position-tags { gap: 6px; }
  .hero-guide { width: 100%; }
  .funding-flow article, .model-card, .boundary-card { padding: 20px; }
  .permission-path { grid-template-columns: 1fr; }
  .permission-path > i { justify-self: center; transform: rotate(90deg); }
  .boundary-grid { grid-template-columns: 1fr; }
  .role-node { min-width: 0; width: 100%; padding: 16px 12px; }
  .role-bottom .role-node { width: calc(100% - 12px); }
  .role-bitfinex { min-width: 0; width: min(100%, 310px); }
  .role-node strong { font-size: 17px; }
  .role-node span { font-size: 11px; }
  .money-statement { grid-template-columns: 1fr; gap: 6px; }
  .routine-grid { grid-template-columns: 1fr; }
  .routine-grid > i { justify-self: center; transform: rotate(90deg); }
  .beta-section { grid-template-columns: 1fr; gap: 12px; }
}

@media (max-width: 420px) {
  .education-hero { padding-top: 42px; }
  .education-hero h1 { font-size: 38px; }
  .hero-guide { padding: 20px; }
  .position-tags span { font-size: 12px; }
  .model-card dl div { grid-template-columns: 72px 1fr; }
  .role-bottom { grid-template-columns: 1fr; }
  .role-branches { width: 1px; height: 28px; }
  .role-branches::before { left: 0; height: 28px; }
  .role-branches::after,
  .role-bottom .role-node::before { display: none; }
  .role-bottom .role-node:first-child { margin-bottom: 10px; }
  .faq-item summary { font-size: 16px; }
}
