:root {
  --green: #183e27;
  --green-deep: #0d2d1d;
  --green-soft: #e8f0e8;
  --orange: #ee8532;
  --orange-soft: #fff0df;
  --cream: #faf7f0;
  --paper: #fffdf8;
  --ink: #172019;
  --muted: #667169;
  --line: rgba(24, 62, 39, .16);
  --shadow: 0 18px 50px rgba(16, 41, 26, .12);
  --radius-lg: 28px;
  --radius-md: 18px;
  --content: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--cream); color: var(--ink); font-family: Inter, -apple-system, BlinkMacSystemFont, "PingFang SC", "Noto Sans SC", "Microsoft YaHei", sans-serif; font-size: 16px; line-height: 1.65; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button, .button { cursor: pointer; }

.site-header { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 12px clamp(18px, 5vw, 72px); background: rgba(250, 247, 240, .95); border-bottom: 1px solid var(--line); backdrop-filter: blur(15px); }
.brand { display: inline-flex; align-items: center; min-width: 150px; }
.brand-logo { display: block; width: 112px; height: 68px; object-fit: contain; object-position: center; border-radius: 3px; background: transparent; mix-blend-mode: normal; }
.site-nav { display: flex; flex: 1 1 auto; min-width: 0; align-items: center; justify-content: center; gap: clamp(30px, 2.8vw, 52px); color: #405047; font-size: 14px; font-weight: 800; }
.site-nav a { padding: 6px 0; border-bottom: 2px solid transparent; white-space: nowrap; }
.site-nav a:hover, .site-nav a.active { color: var(--orange); border-color: var(--orange); }
.header-actions { display: flex; flex: 0 0 auto; align-items: center; justify-content: flex-end; gap: 14px; min-width: max-content; }
.language { border: 0; padding: 6px 8px; border-radius: 8px; background: transparent; color: var(--muted); font: inherit; font-size: 13px; font-weight: 800; cursor: pointer; }
.language:hover, .language:focus-visible { color: var(--green); background: var(--green-soft); outline: none; }
.menu-toggle { display: none; border: 1px solid var(--line); background: var(--paper); color: var(--green); border-radius: 10px; padding: 8px 10px; }

.button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 11px 20px; border: 0; border-radius: 999px; background: var(--orange); color: #fff; font-weight: 900; box-shadow: 0 8px 20px rgba(238, 133, 50, .2); transition: transform .2s ease, background .2s ease; }
.button:hover { background: #d97024; transform: translateY(-1px); }
.button.secondary { background: transparent; color: currentColor; border: 1px solid currentColor; box-shadow: none; }
.button.secondary:hover { background: rgba(255,255,255,.1); }
.button[disabled] { opacity: .45; cursor: not-allowed; transform: none; }

.container { width: min(var(--content), calc(100% - 40px)); margin: 0 auto; }
.brand-intro { padding: 34px 0 30px; background: var(--paper); border-bottom: 1px solid var(--line); text-align: center; }
.brand-intro h1 { font-size: clamp(34px, 5vw, 64px); }
.brand-intro p { margin: 8px auto 0; color: var(--muted); font-size: 18px; }
.brand-intro .brand-note { margin-top: 7px; color: var(--green); font-size: 13px; font-weight: 800; }
.section { padding: 86px 0; }
.section.compact { padding: 58px 0; }
.section.dark { background: var(--green); color: #f7f3eb; }
.section.soft { background: var(--green-soft); }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 28px; margin-bottom: 28px; }
.section-head p { max-width: 500px; margin: 0; color: var(--muted); }
.dark .section-head p { color: rgba(255,255,255,.7); }
.eyebrow { color: var(--orange); font-size: 13px; font-weight: 900; letter-spacing: .14em; text-transform: uppercase; }
h1, h2, h3 { margin: 0; color: var(--green); font-family: Georgia, "Noto Serif SC", "Songti SC", "STSong", "SimSun", serif; letter-spacing: -.045em; line-height: 1.08; }
.dark h1, .dark h2, .dark h3 { color: #fff; }
h1 { font-size: clamp(44px, 6vw, 78px); }
h2 { font-size: clamp(34px, 4.3vw, 58px); }
h3 { font-size: 28px; }
.lead { max-width: 620px; margin: 18px 0 0; color: var(--muted); font-size: 18px; }
.dark .lead { color: rgba(255,255,255,.78); }

.hero { position: relative; overflow: hidden; padding: 82px 0 68px; }
.hero.green { background: var(--green); color: #fff; }
.hero.green h1, .hero.green h2, .hero.green h3 { color: #fff; }
.hero.green .lead { color: rgba(255,255,255,.78); }
.hero.green:after { display: none; }
.hero .container { position: relative; z-index: 1; }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 42px; align-items: center; }
.hero-copy { max-width: 720px; }
.hero-art { min-height: 300px; display: grid; place-items: center; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero-note { margin-top: 22px; color: var(--muted); font-size: 14px; }
.hero.green .hero-note { color: rgba(255,255,255,.67); }

.split-hero { display: grid; grid-template-columns: 1fr 1fr; min-height: 510px; transition: grid-template-columns .3s ease; }
.entry-panel { position: relative; display: flex; flex-direction: column; justify-content: space-between; min-height: 510px; padding: clamp(28px, 5vw, 66px); overflow: hidden; }
.entry-panel.dark { background: linear-gradient(90deg, rgba(13,45,29,.95), rgba(13,45,29,.58)), url("assets/hero-packing-students.png") center / cover; color: #fff; }
.entry-panel.light { background: linear-gradient(90deg, rgba(250,247,240,.96), rgba(250,247,240,.62)), url("assets/partner-workshop.png") center / cover; color: var(--green); }
.entry-panel:after { display: none; }
.entry-panel > * { position: relative; z-index: 1; }
.entry-panel h1, .entry-panel h2 { margin: 18px 0 12px; color: inherit; font-size: clamp(40px, 5vw, 68px); }
.entry-panel p { max-width: 470px; margin: 0; font-size: 18px; }
.entry-panel.dark p { color: rgba(255,255,255,.76); }
.panel-tag { display: inline-flex; width: max-content; padding: 6px 11px; border: 1px solid currentColor; border-radius: 999px; font-size: 12px; font-weight: 900; }
@media (hover: hover) and (pointer: fine) {
  .split-hero:has(.entry-panel.dark:hover) { grid-template-columns: 1.2fr .8fr; }
  .split-hero:has(.entry-panel.light:hover) { grid-template-columns: .8fr 1.2fr; }
}
.trust-strip { display: grid; grid-template-columns: repeat(4, 1fr); border-bottom: 1px solid var(--line); background: var(--paper); }
.trust-item { padding: 20px 18px; border-right: 1px solid var(--line); color: var(--green); font-size: 14px; font-weight: 900; text-align: center; }
.trust-item:last-child { border-right: 0; }
.trust-item small { display: block; margin-top: 3px; color: var(--muted); font-weight: 600; }

.media-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 30px; }
.media-card { position: relative; min-height: 270px; overflow: hidden; border-radius: var(--radius-lg); background: var(--green); box-shadow: var(--shadow); }
.media-card img { display: block; width: 100%; height: 100%; min-height: 270px; object-fit: cover; }
.media-card:after { content: ""; position: absolute; inset: 38% 0 0; background: linear-gradient(transparent, rgba(8, 28, 17, .82)); pointer-events: none; }
.media-card figcaption { position: absolute; right: 20px; bottom: 17px; left: 20px; z-index: 1; color: #fff; font-weight: 800; }
.media-card figcaption small { display: block; margin-top: 3px; color: rgba(255,255,255,.72); font-weight: 500; }
.authority-feature { background: var(--green-soft); }
.authority-feature-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 28px; align-items: center; }
.authority-feature-grid .lead { max-width: 620px; }
.authority-feature-document { margin: 0; padding: 14px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--paper); box-shadow: var(--shadow); }
.authority-feature-document img { display: block; width: 100%; max-height: 330px; object-fit: contain; border-radius: 14px; background: #fff; }
.authority-feature-document figcaption { margin-top: 10px; color: var(--muted); font-size: 13px; }
.media-split { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: stretch; }
.media-split img { display: block; width: 100%; height: 100%; min-height: 340px; object-fit: cover; border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.hero-photo { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.image-banner { display: block; width: 100%; max-height: 430px; object-fit: cover; border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.scene-copy h2 { margin-bottom: 14px; }
.scene-copy p { margin: 0; color: var(--muted); }
.scene-copy .fine-print { margin-top: 14px; }
.student-context-section { padding-bottom: 34px; }
.student-context-section + .media-video-section { padding-top: 34px; }

.cards-3, .cards-4, .cards-6 { display: grid; gap: 16px; }
.cards-3 { grid-template-columns: repeat(3, 1fr); }
.cards-4 { grid-template-columns: repeat(4, 1fr); }
.cards-6 { grid-template-columns: repeat(3, 1fr); }
.card { padding: 24px; border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--paper); }
.dark .card { background: rgba(255,255,255,.07); border-color: rgba(255,255,255,.18); }
.card .number { display: inline-grid; place-items: center; width: 32px; height: 32px; margin-bottom: 20px; border-radius: 10px; background: var(--orange); color: #fff; font-weight: 900; }
.card h3 { margin-bottom: 10px; font-family: Inter, -apple-system, BlinkMacSystemFont, "PingFang SC", "Noto Sans SC", sans-serif; font-size: 20px; letter-spacing: -.02em; }
.card p { margin: 0; color: var(--muted); }
.dark .card p { color: rgba(255,255,255,.72); }
.case-card { display: flex; flex-direction: column; }
.case-card h3 { font-size: 22px; }
.case-card > p { margin-bottom: 12px; }
.case-process { margin-top: 2px !important; line-height: 1.7; }
.case-facts { display: grid; gap: 8px; margin: 0 0 16px; padding: 0; list-style: none; }
.case-facts li { padding: 10px 12px; border-radius: 12px; background: var(--green-soft); color: var(--green); font-size: 14px; font-weight: 800; }
.case-facts li span { display: block; margin-top: 2px; color: var(--muted); font-weight: 600; }
.case-note { margin-top: auto !important; padding-top: 16px; border-top: 1px solid var(--line); font-size: 13px; }
.testimonial-card blockquote { margin: 0 0 16px; color: var(--green); font-size: 18px; line-height: 1.65; font-weight: 800; }
.review-meta { color: var(--green); font-weight: 900; }
.review-meta small { display: block; margin-top: 4px; color: var(--muted); font-weight: 600; }
.card .mini-label { color: var(--orange); font-size: 12px; font-weight: 900; }
.status-tag { display: inline-flex; align-items: center; width: max-content; margin-bottom: 12px; padding: 4px 9px; border-radius: 999px; font-size: 12px; font-weight: 900; }
.status-ready { background: #dff1e3; color: #176c37; }
.status-review { background: #fff0df; color: #9a4f14; }
.status-hold { background: #eceeed; color: #667169; }
.readiness-grid .card h3 { margin-bottom: 10px; }
.readiness-list { margin-top: 18px; }
.notice { margin: 20px 0; padding: 16px; border-left: 4px solid var(--orange); border-radius: 12px; background: var(--orange-soft); }
.notice strong { color: var(--green); }
.notice p { margin: 6px 0 0; }

.route-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.route-card { padding: 28px; border-radius: var(--radius-lg); background: var(--paper); border: 1px solid var(--line); }
.route-card h3 { margin-bottom: 10px; }
.route-card p { margin: 0 0 18px; color: var(--muted); }
.route-card ul, .check-list { display: grid; gap: 9px; margin: 0; padding: 0; list-style: none; }
.route-card li:before, .check-list li:before { content: "✓"; display: inline-grid; place-items: center; width: 19px; height: 19px; margin-right: 8px; border-radius: 50%; background: var(--orange); color: #fff; font-size: 12px; font-weight: 900; }
.route-card li { color: #385044; }
.price-number { display: block; margin: 6px 0 2px; color: var(--orange); font-size: clamp(34px, 4vw, 52px); line-height: 1; letter-spacing: -.04em; }
.price-number small { font-size: .42em; letter-spacing: 0; }
.dark .route-card { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.18); }
.dark .route-card li { color: rgba(255,255,255,.76); }

.timeline { display: grid; grid-template-columns: repeat(7, 1fr); gap: 12px; margin-top: 28px; }
.timeline-step { position: relative; padding-top: 22px; border-top: 2px solid var(--orange); color: var(--muted); font-size: 14px; }
.timeline-step:before { content: ""; position: absolute; top: -7px; left: 0; width: 12px; height: 12px; border-radius: 50%; background: var(--orange); }
.timeline-step strong { display: block; margin-bottom: 3px; color: var(--green); }
.dark .timeline-step { color: rgba(255,255,255,.7); }
.dark .timeline-step strong { color: #fff; }

.duo { display: grid; grid-template-columns: 1.1fr .9fr; gap: 28px; align-items: center; }
.duo-visual { min-height: 230px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: linear-gradient(135deg, var(--green-soft), var(--orange-soft)); display: grid; place-items: center; }
.duo-visual img { display: block; width: 100%; height: 100%; min-height: 270px; object-fit: cover; border-radius: var(--radius-lg); }
.quote-box { padding: 30px; border-radius: var(--radius-lg); background: var(--green); color: #fff; box-shadow: var(--shadow); }
.quote-box h2, .quote-box h3 { color: #fff; }
.quote-box p { color: rgba(255,255,255,.72); }
.form-grid { display: grid; grid-template-columns: repeat(3, 1fr) auto; gap: 10px; align-items: end; }
.field label { display: block; margin-bottom: 6px; color: rgba(255,255,255,.76); font-size: 13px; font-weight: 800; }
.field input, .field select, .field textarea { width: 100%; padding: 12px 13px; border: 1px solid var(--line); border-radius: 10px; background: #fff; color: var(--ink); }
.field textarea { min-height: 110px; resize: vertical; }
.quote-result { display: none; margin-top: 14px; padding: 12px 14px; border-radius: 10px; background: var(--green-soft); color: var(--green); }
.quote-box .quote-result { background: rgba(255,255,255,.12); color: #fff; }
.quote-result.show { display: block; }

.compare { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--paper); }
.compare table { width: 100%; min-width: 760px; border-collapse: collapse; }
.compare th, .compare td { padding: 14px 16px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.compare th { color: var(--green); background: var(--green-soft); }
.compare tr:last-child td { border-bottom: 0; }
body:has(.compare) .section-head h2 { font-size: clamp(34px, 3.7vw, 50px); }
.fine-print { margin: 14px 0 0; color: var(--muted); font-size: 13px; }

.faq { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
details { padding: 17px 19px; border: 1px solid var(--line); border-radius: 14px; background: var(--paper); }
summary { color: var(--green); font-weight: 900; cursor: pointer; }
details p { margin: 10px 0 0; color: var(--muted); }

.partner-layout { display: grid; grid-template-columns: 1.1fr .9fr; gap: 16px; }
.partnership-note { margin-top: 22px; padding-top: 16px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; line-height: 1.75; }
.steps { display: grid; gap: 10px; }
.step-row { display: grid; grid-template-columns: 44px 1fr; gap: 13px; align-items: start; padding: 16px; border: 1px solid var(--line); border-radius: 15px; background: var(--paper); }
.step-row b { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--orange); color: #fff; }
.step-row strong { display: block; color: var(--green); }
.step-row p { margin: 3px 0 0; color: var(--muted); font-size: 14px; }
.shelf-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.shelf-card { min-height: 170px; padding: 24px; border-radius: var(--radius-md); border: 1px solid var(--line); background: var(--paper); }
.shelf-card h3 { margin-bottom: 9px; font-family: Inter, -apple-system, BlinkMacSystemFont, "PingFang SC", "Noto Sans SC", sans-serif; font-size: 20px; letter-spacing: -.02em; }
.shelf-card p { margin: 0; color: var(--muted); }
.check-grid { display: grid; gap: 12px; }
.check-item { display: flex; gap: 12px; align-items: start; padding: 14px; border-bottom: 1px solid var(--line); }
.check-item input { margin-top: 5px; accent-color: var(--orange); }
.check-item strong { display: block; color: var(--green); }
.check-item span { display: block; color: var(--muted); font-size: 14px; }

.footer { padding: 32px 0 58px; background: var(--green-deep); color: rgba(255,255,255,.7); }
.footer-inner { display: flex; justify-content: space-between; gap: 24px; }
.footer b { color: #fff; font-size: 18px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 12px 18px; max-width: 600px; justify-content: end; }
.footer-links a:hover { color: #fff; }
.footer small { display: block; margin-top: 16px; color: rgba(255,255,255,.48); }

.inner-hero { padding: 64px 0 44px; background: var(--green); color: #fff; }
.inner-hero h1 { color: #fff; }
.inner-hero .lead { color: rgba(255,255,255,.76); }
.inner-hero .hero-note { color: rgba(255,255,255,.68); }
.inner-hero { background: var(--green); }
.prose { max-width: 780px; }
.prose h2 { margin-top: 42px; margin-bottom: 14px; font-size: 36px; }
.prose p, .prose li { color: var(--muted); }
.prose ul { padding-left: 20px; }
.authority-document h2 { margin: 8px 0 18px; }
.document-placeholder { display: grid; place-items: center; min-height: 260px; padding: 26px; border: 1px dashed var(--orange); border-radius: 18px; background: linear-gradient(135deg, rgba(24,62,39,.06), rgba(238,133,50,.1)); color: var(--green); text-align: center; font-weight: 900; }
.document-placeholder small { display: block; max-width: 360px; margin-top: 10px; color: var(--muted); font-weight: 600; }
.authority-document-image { margin: 0; }
.authority-document-image img { display: block; width: 100%; height: auto; border: 1px solid var(--line); border-radius: 16px; background: #fff; }
.authority-document-image figcaption { margin-top: 10px; color: var(--muted); font-size: 13px; line-height: 1.6; }
.official-qr-card { display: grid; justify-items: center; align-content: start; text-align: center; }
.official-qr-card .qr-image { display: block; width: min(220px, 100%); height: auto; aspect-ratio: 1; object-fit: contain; margin: 0 auto 16px; border-radius: 12px; background: #fff; }
.official-qr-card h3 { margin: 0 0 8px; }
.official-qr-card p { margin: 0; color: var(--muted); }
.desktop-contact-qr { display: grid; justify-items: center; gap: 8px; text-align: center; }
.desktop-contact-qr .qr-image { width: min(220px, 100%); height: auto; aspect-ratio: 1; object-fit: contain; border-radius: 12px; background: #fff; }
.desktop-contact-qr h3 { margin: 0; }
.desktop-contact-qr p { margin: 0; }
.mobile-contact-link { display: none; }

.modal { position: fixed; inset: 0; z-index: 40; display: none; place-items: center; padding: 20px; background: rgba(9,24,15,.68); }
.modal.open { display: grid; }
.modal-card { width: min(520px, 100%); padding: 30px; border-radius: 22px; background: var(--paper); box-shadow: var(--shadow); }
.modal-card h2 { font-size: 36px; }
.modal-card p { color: var(--muted); }
.modal-close { float: right; border: 0; background: none; color: var(--muted); font-size: 26px; cursor: pointer; }
.qr-placeholder { display: grid; place-items: center; min-height: 180px; margin: 18px 0; padding: 22px; border: 1px dashed var(--orange); border-radius: 16px; background: repeating-linear-gradient(45deg, rgba(238,133,50,.08), rgba(238,133,50,.08) 8px, transparent 8px, transparent 16px); color: var(--green); text-align: center; font-weight: 900; }
.qr-placeholder small { display: block; margin-top: 6px; color: var(--muted); font-weight: 600; }
.qr-demo { gap: 8px; }
.qr-image { display: block; width: 148px; height: 148px; padding: 8px; border-radius: 12px; background: #fff; object-fit: contain; }
.modal-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.integration-pending { display: inline-flex; align-items: center; min-height: 46px; padding: 10px 14px; border: 1px dashed var(--line); border-radius: 999px; color: var(--muted); font-size: 13px; font-weight: 800; }
.mobile-cta { display: none; }
.review-video-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.review-video-grid video { display: block; width: 100%; max-height: 360px; margin-bottom: 16px; border-radius: 14px; background: #0d2d1d; object-fit: cover; }
.review-video-grid video, .media-video-frame video { pointer-events: none; }
.review-video-grid .card p { margin-top: 0; }
.media-video-card { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(280px, .85fr); gap: 28px; align-items: center; padding: 18px; border: 1px solid var(--line); border-radius: 24px; background: var(--paper); box-shadow: 0 16px 40px rgba(13,45,29,.08); }
.media-video-frame { overflow: hidden; border-radius: 16px; background: #0d2d1d; }
.media-video-frame video { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.media-video-copy h3 { margin: 14px 0 10px; font-size: 26px; }
.media-video-copy p { color: var(--muted); }
.media-video-copy ul { margin: 16px 0 22px; padding-left: 20px; color: var(--muted); }
.media-video-copy li + li { margin-top: 8px; }
.mobile-content-toggle { display: none; }

/* Partner pages stay private until a valid first-level referral code unlocks them. */
body.referral-gate-pending main > :not([data-referral-gate]),
body.referral-gate-locked main > :not([data-referral-gate]) { display: none; }
body.referral-gate-unlocked [data-referral-gate] { display: none; }
body.referral-gate-pending .mobile-cta,
body.referral-gate-locked .mobile-cta { display: none; }
.referral-gate { min-height: calc(100svh - 94px); display: flex; align-items: center; background: var(--green-soft); }
.referral-gate-card { width: min(100%, 620px); margin: 0 auto; padding: clamp(28px, 6vw, 56px); border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--paper); box-shadow: var(--shadow); }
.referral-gate-card h1 { margin-top: 12px; font-size: clamp(36px, 5vw, 60px); }
.referral-gate-card .lead { margin-top: 16px; }
.referral-gate-form { margin-top: 28px; }
.referral-gate-form > label { display: block; margin-bottom: 8px; color: var(--green); font-weight: 900; }
.referral-gate-controls { display: flex; gap: 10px; align-items: stretch; }
.referral-gate-controls input { flex: 1 1 auto; min-width: 0; min-height: 48px; padding: 10px 14px; border: 1px solid var(--line); border-radius: 12px; background: #fff; color: var(--ink); letter-spacing: .12em; text-transform: uppercase; }
.referral-gate-controls input:focus { border-color: var(--orange); outline: 3px solid rgba(238, 133, 50, .18); }
.referral-gate-controls .button { flex: 0 0 auto; }
.referral-gate-form .fine-print { margin: 10px 0 0; color: var(--muted); font-size: 13px; }
.referral-gate-message { min-height: 1.65em; margin: 12px 0 0; color: var(--orange); font-weight: 800; }
.referral-gate-message.is-success { color: #176c37; }
.referral-gate-message.is-error { color: #a3481b; }

@media (max-width: 900px) {
  .site-nav { display: none; position: absolute; left: 14px; right: 14px; top: 78px; flex-direction: column; align-items: stretch; gap: 0; padding: 12px 16px; background: var(--paper); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); }
  .site-nav.open { display: flex; }
  .site-nav a { padding: 12px 0; }
  .menu-toggle { display: inline-block; }
  .header-actions .language { display: inline-flex; }
  .hero-grid, .duo, .partner-layout, .media-video-card { grid-template-columns: 1fr; }
  .split-hero,
  .split-hero:has(.entry-panel.dark:hover),
  .split-hero:has(.entry-panel.light:hover) { width: 100%; min-width: 0; grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
  .split-hero .entry-panel { min-width: 0; }
  .desktop-contact-qr { display: none; }
  .mobile-contact-link { display: inline-flex; }
  .media-grid, .media-split { grid-template-columns: 1fr; }
  .review-video-grid { grid-template-columns: 1fr; }
  .case-grid { grid-template-columns: 1fr; }
  .cards-6 { grid-template-columns: 1fr 1fr; }
  .hero-art { min-height: 230px; }
  .cards-4 { grid-template-columns: 1fr 1fr; }
  .timeline { grid-template-columns: repeat(3, 1fr); row-gap: 24px; }
  .form-grid { grid-template-columns: 1fr 1fr; }
  .form-grid .button { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  html, body { overflow-x: hidden; }
  .site-header { gap: 8px; padding: 10px 14px; }
  .brand { min-width: 0; flex: 0 1 auto; }
  .brand-logo { width: 92px; height: 58px; }
  .header-actions { gap: 4px; min-width: 0; }
  .header-actions > * { white-space: nowrap; }
  .language { padding: 6px 2px; font-size: 12px; }
  .menu-toggle { padding: 8px 8px; }
  .header-actions > .button { padding: 10px 11px; font-size: 12px; }
  .route-grid, .cards-3, .cards-6, .shelf-grid, .faq { grid-template-columns: 1fr; }
  .split-hero { min-height: 0; }
  .entry-panel { min-height: 500px; padding: 30px 16px 32px; }
  .entry-panel h1, .entry-panel h2 { font-size: clamp(30px, 7vw, 44px); }
  .entry-panel p { font-size: 14px; line-height: 1.55; }
  .entry-panel .hero-actions { flex-direction: column; align-items: stretch; gap: 10px; }
  .entry-panel .hero-actions .button { width: 100%; min-height: 42px; padding: 9px 8px; font-size: 13px; }
  .panel-tag { padding: 5px 7px; font-size: 10px; }
  .trust-strip { grid-template-columns: 1fr 1fr; }
  .trust-item:nth-child(2) { border-right: 0; }
  .trust-item:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .cards-4 { grid-template-columns: 1fr; }
  .timeline { grid-template-columns: 1fr 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .form-grid .button { grid-column: auto; }
  .footer-inner { display: block; }
  .footer-links { justify-content: start; margin-top: 22px; }
  .section { padding: 62px 0; }
  .section-head { display: block; }
  .section-head p { margin-top: 14px; }
  .student-context-section { padding-bottom: 24px; }
  .student-context-section + .media-video-section { padding-top: 24px; }
  .media-video-card { gap: 18px; padding: 12px; border-radius: 18px; }
  .container, .hero-copy, .hero-art, .section-head, .section-head > div, .entry-panel, .media-video-card, .media-video-copy, .card, .route-card, .partner-layout > *, .shelf-card, .step-row, .quote-box, .modal-card { min-width: 0; }
  .hero-grid, .split-hero, .media-split, .duo, .partner-layout, .route-grid, .cards-3, .cards-4, .cards-6, .shelf-grid, .faq, .authority-feature-grid { min-width: 0; }
  .authority-feature-grid { grid-template-columns: 1fr; gap: 20px; }
  h1, h2, h3, .lead, .hero-note, .entry-panel p, .section-head p, .scene-copy p, .media-video-copy p, .card p, .route-card p, .prose p, .prose li, .quote-box p, .fine-print { overflow-wrap: anywhere; }
  .media-video-copy { padding: 4px 4px 8px; }
  .media-video-copy h3 { font-size: 22px; }
  .case-card > img { height: 220px; }
  .document-lines > div { display: block; }
  .document-lines strong { display: block; margin-top: 3px; text-align: left; }
  .mobile-cta { width: min(100% - 24px, var(--content)); margin: 24px auto 8px; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 12px 10px 16px; border: 1px solid rgba(255,255,255,.2); border-radius: 16px; background: rgba(13,45,29,.98); color: #fff; box-shadow: var(--shadow); }
  .mobile-cta span { min-width: 0; font-size: 13px; line-height: 1.25; font-weight: 800; }
  .mobile-cta .button { flex: 0 0 auto; min-height: 38px; padding: 8px 15px; font-size: 13px; white-space: nowrap; }
  body:not(.mobile-more) .mobile-secondary { display: none; }
  .mobile-content-toggle { display: flex; width: calc(100% - 28px); min-height: 48px; align-items: center; justify-content: center; margin: 20px auto 28px; padding: 12px 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--paper); color: var(--green); font-weight: 900; line-height: 1.35; text-align: center; }
  body.mobile-more .mobile-content-toggle { margin-bottom: 30px; }
  .referral-gate { min-height: calc(100svh - 78px); padding: 28px 0; }
  .referral-gate-card { padding: 26px 20px; border-radius: 22px; }
  .referral-gate-card h1 { font-size: clamp(34px, 10vw, 48px); }
  .referral-gate-controls { display: grid; grid-template-columns: 1fr; }
  .referral-gate-controls .button { width: 100%; }
}

@media (max-width: 430px) {
  .site-header { gap: 4px; padding: 8px 10px; min-width: 0; overflow: hidden; }
  .site-header .brand { width: 76px; min-width: 76px; flex: 0 0 76px; }
  .site-header .brand-logo { width: 76px; height: 50px; }
  .site-header .header-actions { min-width: 0; gap: 2px; margin-left: auto; }
  .site-header .language { padding: 5px 1px; font-size: 11px; }
  .site-header .menu-toggle { padding: 7px 6px; font-size: 12px; }
  .site-header .header-actions > .button { min-width: 0; padding: 9px 9px; font-size: 12px; }
  .site-header .header-actions > * { white-space: nowrap; }
  .language { padding: 5px 1px; font-size: 11px; }
  .menu-toggle { padding: 7px 6px; font-size: 12px; }
  .header-actions > .button { padding: 9px 9px; font-size: 12px; }
}
