/* One continuous surface, with real reading milestones. */
.landing-compact .hq-nav,
.dn-page .hq-nav { border: 0; background: transparent; box-shadow: none; }
.landing-compact .hq-nav { max-width: none; padding-inline: max(5vw, calc((100vw - 1220px) / 2)); }
.landing-compact .hq-nav .nav-hq,
.dn-page .hq-nav nav > a { border: 0; border-radius: 0; background: transparent; box-shadow: none; padding: 10px 0; min-height: 48px; color: #b9c4d5; text-decoration: none; }
.landing-compact .hq-nav .nav-hq:hover,
.dn-page .hq-nav nav > a:hover { border: 0; background: transparent; color: #fff; text-decoration: underline; text-underline-offset: 6px; }
.hq-nav a:focus-visible { outline: 2px solid #81baff; outline-offset: 5px; }
.landing-compact #hero { background: transparent; }
.landing-compact .dn-private { background: transparent; border-block: 0; }
.landing-compact .dn-hq-map { gap: 0; }
.landing-compact .dn-hq-map > div { margin-left: 0; padding: 26px 0; border: 0; border-bottom: 1px solid #ffffff18; border-radius: 0; background: transparent; box-shadow: none; }
.landing-compact .dn-hq-map > div:last-child { border-bottom: 0; }
.landing-compact .dn-private .btn-primary { width: auto; padding: 12px 0; min-height: 48px; border: 0; border-radius: 0; background: transparent; color: #a8caff; box-shadow: none; justify-content: flex-start; text-decoration: underline; text-underline-offset: 6px; }
.landing-compact .dn-private .btn-primary:hover { color: #fff; background: transparent; box-shadow: none; }
.dn-discovery { position: fixed; z-index: 88; left: max(24px, env(safe-area-inset-left, 0px)); bottom: calc(18px + env(safe-area-inset-bottom, 0px)); display: flex; align-items: center; gap: 12px; width: max-content; max-width: calc(100vw - 112px); pointer-events: none; color: #91a4bb; isolation: isolate; }
.dn-discovery[hidden] { display: none; }
.dn-discovery-top { order: 2; flex: 0 0 auto; font-size: .75rem; line-height: 1.4; text-shadow: 0 1px 3px #000; }
.dn-discovery-label { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.dn-discovery-count { white-space: nowrap; color: #8493a6; font-variant-numeric: tabular-nums; }
.dn-discovery-count strong { color: #b2c8df; font-weight: 500; }
.dn-discovery-track { flex: 0 1 92px; width: 92px; min-width: 64px; display: grid; grid-template-columns: repeat(var(--chapters, 6), minmax(0, 1fr)); align-items: center; gap: 8px; height: 22px; }
.dn-discovery-track > span { height: 10px; position: relative; color: #526d8e; border: 1px solid #62758f70; }
.dn-discovery-track > span::before { content: ''; position: absolute; z-index: -1; left: calc(50% - .5px); top: -6px; bottom: -6px; width: 1px; background: currentColor; opacity: .65; }
.dn-discovery-track > span::after { content: ''; position: absolute; inset: 0; background: #5187b7; transform: scaleY(var(--chapter-fill, 0)); transform-origin: bottom; transition: transform .18s linear; }
.dn-discovery-track > .is-current { color: #98bbdf; border-color: #96bdea99; }
.dn-discovery-track > .is-current::after { background: #98bbdf; }
.dn-discovery-track > .is-new::after { animation: dn-milestone .22s ease-out; }
.landing-compact .block[data-discovery] > .block-inner { position: relative; }
.landing-compact .block[data-discovery] > .block-inner::before { content: ''; position: absolute; left: 0; top: -28px; height: 2px; width: 64px; background: linear-gradient(90deg, #0781fe, #78bcff); transform: scaleX(0); transform-origin: left; transition: transform .65s cubic-bezier(.22,1,.36,1); }
.landing-compact .block.is-discovered > .block-inner::before { transform: scaleX(1); }
.landing-compact .dn-model li::after { content: ''; position: absolute; bottom: -1px; left: 0; height: 1px; width: 100%; background: linear-gradient(90deg, #0781fe, #0781fe00); transform: scaleX(0); transform-origin: left; transition: transform .55s cubic-bezier(.22,1,.36,1); }
.landing-compact .dn-model li.dn-step-seen::after { transform: scaleX(1); }
.landing-compact .dn-model-number,
.landing-compact .dn-journey-grid li > span,
.landing-compact .dn-hq-map > div > span { transition: color .4s, text-shadow .4s; }
.landing-compact .dn-step-seen .dn-model-number,
.landing-compact .dn-journey-grid .dn-step-seen > span,
.landing-compact .dn-hq-map .dn-step-seen > span { color: #80baff; text-shadow: 0 0 20px #0781fe55; }
.landing-compact .dn-journey-grid li.dn-step-seen::before { background: #0781fe; border-color: #80baff; box-shadow: 0 0 14px #0781fe66; }
.landing-compact .dn-reveal { transition-duration: .55s, .7s; }
.landing-compact .btn-primary:active { transform: translateY(1px) scale(.985); }
.landing-compact .simple-footer { padding-bottom: calc(110px + env(safe-area-inset-bottom, 0px)); }
/* HQ remains a working space; completion data and controls are unchanged. */
.hq-student .dn-page-surface { border: 0; border-radius: 0; background: transparent; box-shadow: none; padding-inline: 0; }
.hq-student .portal-progress,
.hq-student .portal-next,
.hq-student .portal-content,
.hq-student .portal-welcome,
.hq-student .portal-empty,
.hq-student .portal-followup-grid > section,
.hq-student .portal-orders,
.hq-student .dashboard-card { background: transparent; border: 0; border-radius: 0; box-shadow: none; }
.hq-student #app section { background: transparent; border: 0; border-radius: 0; box-shadow: none; }
.hq-student #app .portal-content { padding-top: 0; }
.hq-student #app .portal-followup-grid > section { padding-inline: 0; border-top: 1px solid #ffffff18; }
.hq-student .dashboard-card:hover { background: transparent; box-shadow: none; transform: none; }
.hq-student .portal-progress { padding: 22px 0; }
.hq-student .portal-next { padding: 24px 0; border-block: 1px solid #ffffff18; }
.hq-student .portal-content { padding-top: 0; }
.hq-student .portal-welcome { padding: 20px 0; }
.hq-student .portal-followup-grid > section { padding-inline: 0; border-top: 1px solid #ffffff18; }
.hq-student .portal-orders { padding-inline: 0; border-top: 1px solid #ffffff18; }
.hq-student .dashboard-card { padding-inline: 0; border-bottom: 1px solid #ffffff18; }
.hq-student .portal-steps button { border: 0; border-radius: 0; background: transparent; }
.hq-student .portal-steps button:hover { background: #0781fe08; border: 0; }
.hq-student .portal-steps button[aria-current] { background: #0781fe08; box-shadow: inset 2px 0 #0781fe; }
.hq-student .portal-number { background: transparent; border-radius: 0; color: #81baff; }
.hq-student .portal-checklist label { border: 0; border-radius: 0; border-bottom: 1px solid #ffffff18; background: transparent; padding-inline: 0; }
.hq-student .portal-checklist label:has(input:checked) { background: transparent; border-color: #0781fe66; color: #c6dfff; }
@keyframes dn-milestone { from { opacity: .65; } to { opacity: 1; } }
@media (max-width: 760px) {
  .landing-compact .hq-nav { padding-inline: max(22px, env(safe-area-inset-left, 0px)) max(22px, env(safe-area-inset-right, 0px)); }
  .dn-discovery { left: max(18px, env(safe-area-inset-left, 0px)); bottom: calc(14px + env(safe-area-inset-bottom, 0px)); }
  .dn-discovery-track { flex-basis: 82px; width: 82px; }
  .landing-compact .block[data-discovery] > .block-inner::before { top: -18px; width: 44px; }
  .hq-student #app .portal-content { padding-inline: 0; }
  .hq-student .portal-steps button { min-height: 64px; }
  .hq-student .portal-steps button[aria-current] { box-shadow: inset 0 -2px #0781fe; }
}
@media (prefers-reduced-motion: reduce) {
  .dn-discovery-track > span::after { transition: none; animation: none; }
  .dn-discovery *, .landing-compact .dn-model li::after,
  .landing-compact .block[data-discovery] > .block-inner::before { transition: none; animation: none; }
  .landing-compact .btn-primary:active { transform: none; }
}

.landing-compact #hero .dn-hero-problem { font-size: clamp(1.125rem, 1.65vw, 1.4rem); line-height: 1.5; color: #b9c4d5; margin: 26px 0 0; max-width: 560px; }
.landing-compact #hero .dn-hero-problem strong { color: #f3f5f9; font-weight: 500; }
.landing-compact #hero .dn-hero-description { margin-top: 16px; }
@media (max-width: 760px) {
  .landing-compact #hero h1 { max-width: calc(100% - 112px); font-size: clamp(2.1rem, 9vw, 3rem); line-height: 1.05; }
  .landing-compact #hero h1 > .silver { font-size: .54em; line-height: 1.35; }
  .landing-compact #hero > .dn-hero-art { position: absolute; top: 68px; right: max(12px, env(safe-area-inset-right, 0px)); width: 130px; height: 160px; margin: 0; opacity: .95; }
  .landing-compact #hero > .dn-hero-art .dn-particle-stage { height: 100%; }
  .landing-compact #hero > .dn-hero-art figcaption { display: none; }
  .landing-compact #hero .dn-hero-problem { margin-top: 24px; font-size: 1.125rem; }
  .landing-compact #hero .dn-hero-description { max-width: 100%; }
}
@media (max-width: 359px) {
  .landing-compact #hero h1 { max-width: calc(100% - 80px); font-size: 2rem; }
  .landing-compact #hero > .dn-hero-art { width: 94px; height: 140px; right: 8px; }
}
