/* ============================================================
   ECSACOG — APPLICATION PORTAL  (premium + portal, combined)
   Standalone landing page styles. Fonts loaded via Google Fonts.
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  /* Brand */
  --orange: #e9541d;
  --orange-deep: #be3f12;
  --orange-bright: #ff7a45;
  --orange-soft: #fbeae2;
  --green: #2f8f4e;
  --green-soft: #e7f1e9;

  /* Warm neutrals */
  --ink: #1d130b;
  --ink-2: #6b513c;
  --ink-3: #9a8674;
  --cream: #faf5ef;
  --cream-2: #f3ebe1;
  --cream-3: #ece0d2;
  --paper: #ffffff;
  --line: rgba(29,19,11,0.10);
  --line-2: rgba(29,19,11,0.16);

  /* Cinematic dark */
  --noir: #150f09;
  --dark: #1d150d;
  --dark-2: #271b10;
  --on-dark: rgba(255,255,255,0.92);
  --on-dark-2: rgba(255,255,255,0.62);
  --on-dark-3: rgba(255,255,255,0.40);
  --dark-line: rgba(255,255,255,0.12);

  /* Depth — warm-tinted shadows */
  --sh-sm: 0 2px 10px -4px rgba(29,19,11,0.18);
  --sh-md: 0 22px 48px -24px rgba(29,19,11,0.30);
  --sh-lg: 0 48px 90px -36px rgba(29,19,11,0.46);

  --r-sm: 12px;
  --r: 18px;
  --r-lg: 28px;

  --serif: 'DM Serif Display', Georgia, serif;
  --sans: 'DM Sans', system-ui, sans-serif;
  --mono: 'DM Mono', ui-monospace, monospace;

  --maxw: 1280px;
  --pad: 56px;
}

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { font-family: var(--sans); background: var(--cream); color: var(--ink); line-height: 1.5; overflow-x: hidden; -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
svg { stroke-linecap: round; stroke-linejoin: round; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--pad); }
.ico { display: inline-flex; flex: none; }
.ico svg { display: block; width: 100%; height: 100%; }

.eyebrow { font-family: var(--mono); font-size: 11px; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase; color: var(--orange); display: inline-flex; align-items: baseline; gap: 10px; }
.eyebrow .num { color: var(--ink-3); }

.sec { padding: 130px 0; }
.sec-head { max-width: 720px; margin: 0 auto 64px; text-align: center; }
.sec-head.left { margin-left: 0; text-align: left; }
.sec-head .eyebrow { margin-bottom: 20px; }
.sec-title { font-family: var(--serif); font-weight: 400; font-size: clamp(34px, 4.2vw, 56px); line-height: 1.04; letter-spacing: -0.015em; }
.sec-title em { font-style: italic; color: var(--orange); }
.sec-sub { font-size: 17.5px; color: var(--ink-2); line-height: 1.6; margin-top: 20px; }
.sec-head:not(.left) .sec-sub { margin-left: auto; margin-right: auto; max-width: 600px; }

/* ---- Buttons ---- */
.btn { font-family: var(--sans); cursor: pointer; border: none; display: inline-flex; align-items: center; justify-content: center; gap: 9px; font-weight: 600; transition: all 0.2s ease; white-space: nowrap; }
.btn .ico { width: 16px; height: 16px; }
.btn-primary { background: var(--orange); color: #fff; padding: 15px 28px; border-radius: 100px; font-size: 15px; box-shadow: 0 12px 30px -10px rgba(233,84,29,0.6); }
.btn-primary:hover { background: var(--orange-deep); transform: translateY(-2px); box-shadow: 0 18px 40px -12px rgba(233,84,29,0.7); }
.btn-dark { background: var(--ink); color: var(--cream); padding: 15px 28px; border-radius: 100px; font-size: 15px; }
.btn-dark:hover { background: #000; transform: translateY(-2px); }
.btn-glass { background: rgba(255,255,255,0.1); color: #fff; padding: 14px 26px; border-radius: 100px; font-size: 15px; border: 1px solid rgba(255,255,255,0.28); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.btn-glass:hover { background: rgba(255,255,255,0.18); border-color: rgba(255,255,255,0.5); }
.btn-outline { background: transparent; color: var(--ink); padding: 14px 26px; border-radius: 100px; font-size: 15px; border: 1.5px solid var(--line-2); }
.btn-outline:hover { border-color: var(--ink); }
.btn-sm { padding: 11px 20px; font-size: 13.5px; }

.linkarrow { font-family: var(--mono); font-size: 12px; letter-spacing: 0.05em; text-transform: uppercase; color: var(--orange); display: inline-flex; align-items: center; gap: 8px; font-weight: 500; }
.linkarrow .ico { width: 14px; height: 14px; transition: transform 0.2s; }
.linkarrow:hover .ico { transform: translateX(4px); }

/* ============================================================
   NAV — glass, transparent over hero
   ============================================================ */
.pnav { position: fixed; top: 0; left: 0; right: 0; z-index: 200; transition: background 0.3s, border-color 0.3s, box-shadow 0.3s; border-bottom: 1px solid transparent; }
.pnav-inner { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--pad); height: 78px; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.pnav .brand { display: flex; align-items: center; gap: 12px; }
.brand-mark { width: 44px; height: 44px; flex: none; border-radius: 11px; display: flex; align-items: center; justify-content: center; }
.brand-mark img { width: 100%; height: 100%; object-fit: contain; }
.brand-name { font-family: var(--sans); font-weight: 700; font-size: 17px; letter-spacing: -0.02em; line-height: 1; }
.brand-sub { font-family: var(--mono); font-size: 9.5px; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase; display: block; margin-top: 4px; }
.pnav-links { display: flex; gap: 32px; list-style: none; align-items: center; }
.pnav-links a { font-size: 14px; font-weight: 500; transition: color 0.18s; }
.pnav-actions { display: flex; align-items: center; gap: 12px; }

/* over-hero state (default, dark hero) */
.pnav .brand-name { color: #fff; }
.pnav .brand-sub { color: rgba(255,255,255,0.55); }
.pnav .brand-mark { background: rgba(255,255,255,0.95); }
.pnav-links a { color: rgba(255,255,255,0.8); }
.pnav-links a:hover { color: #fff; }
.pnav .btn-sign { color: #fff; background: transparent; border: 1px solid rgba(255,255,255,0.3); padding: 10px 20px; border-radius: 100px; font-size: 13.5px; font-weight: 600; }
.pnav .btn-sign:hover { border-color: #fff; }

/* scrolled state (solid cream) */
.pnav.scrolled { background: rgba(250,245,239,0.85); backdrop-filter: blur(20px) saturate(1.5); -webkit-backdrop-filter: blur(20px) saturate(1.5); border-bottom-color: var(--line); box-shadow: var(--sh-sm); }
.pnav.scrolled .brand-name { color: var(--ink); }
.pnav.scrolled .brand-sub { color: var(--ink-3); }
.pnav.scrolled .brand-mark { background: transparent; }
.pnav.scrolled .pnav-links a { color: var(--ink-2); }
.pnav.scrolled .pnav-links a:hover { color: var(--ink); }
.pnav.scrolled .btn-sign { color: var(--ink); border-color: var(--line-2); }
.pnav.scrolled .btn-sign:hover { border-color: var(--ink); }

.phamb { display: none; flex-direction: column; gap: 5px; cursor: pointer; background: none; border: none; padding: 9px; }
.phamb span { display: block; width: 22px; height: 2px; background: #fff; border-radius: 2px; transition: 0.3s; }
.pnav.scrolled .phamb span { background: var(--ink); }
.phamb.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.phamb.open span:nth-child(2) { opacity: 0; }
.phamb.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================================
   TRUST / CREDIBILITY
   ============================================================ */
.trust2 { padding: 64px 0 40px; background: var(--cream); }
.trust2-label { text-align: center; font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 36px; }

/* ============================================================
   LEARNING / DASH device bits reused by status section
   ============================================================ */
.lx-dash-bar { display: flex; align-items: center; gap: 8px; padding: 14px 18px; border-bottom: 1px solid var(--line); background: var(--cream-2); }
.lx-dot { width: 11px; height: 11px; border-radius: 50%; }
.lx-dash-url { margin-left: 12px; font-family: var(--mono); font-size: 10.5px; color: var(--ink-3); background: var(--paper); border: 1px solid var(--line); border-radius: 7px; padding: 5px 12px; }
.lx-dash-main { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 20px; border-radius: 14px; background: var(--ink); color: #fff; }
.lx-dm-l .t { font-family: var(--mono); font-size: 9px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--on-dark-3); margin-bottom: 8px; }
.lx-dm-l .n { font-family: var(--serif); font-size: 22px; }
.lx-chip { font-size: 10px; font-weight: 600; padding: 4px 9px; border-radius: 6px; background: var(--green-soft); color: var(--green); display: inline-block; }

/* ============================================================
   FAQ
   ============================================================ */
.faq { background: var(--cream); }
.faq-wrap { max-width: 820px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid var(--line-2); }
.faq-q { width: 100%; background: none; border: none; cursor: pointer; font-family: var(--sans); text-align: left; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 26px 4px; font-size: 18px; font-weight: 600; color: var(--ink); letter-spacing: -0.01em; }
.faq-q .faq-ico { width: 26px; height: 26px; flex: none; border-radius: 50%; border: 1.5px solid var(--line-2); display: flex; align-items: center; justify-content: center; transition: all 0.25s; }
.faq-q .faq-ico .ico { width: 14px; height: 14px; color: var(--ink-2); }
.faq-item.open .faq-q .faq-ico { background: var(--orange); border-color: var(--orange); transform: rotate(45deg); }
.faq-item.open .faq-q .faq-ico .ico { color: #fff; }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.32s ease; }
.faq-a-inner { padding: 0 4px 26px; font-size: 15.5px; color: var(--ink-2); line-height: 1.65; max-width: 680px; }

/* ============================================================
   FINAL CTA
   ============================================================ */
.finalcta { background: var(--noir); color: #fff; position: relative; overflow: hidden; padding: 130px 0; text-align: center; }
.finalcta::before { content: ''; position: absolute; bottom: -40%; left: 50%; transform: translateX(-50%); width: 900px; height: 900px; background: radial-gradient(circle, rgba(233,84,29,0.22) 0%, transparent 60%); }
.finalcta-inner { position: relative; max-width: 760px; margin: 0 auto; }
.finalcta h2 { font-family: var(--serif); font-size: clamp(40px, 5.4vw, 72px); line-height: 1.02; letter-spacing: -0.02em; color: #fff; margin-bottom: 22px; }
.finalcta h2 em { font-style: italic; color: var(--orange-bright); }
.finalcta p { font-size: 18px; color: var(--on-dark-2); line-height: 1.6; max-width: 540px; margin: 0 auto 40px; }
.finalcta-ctas { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ============================================================
   FOOTER
   ============================================================ */
.pfooter { background: var(--dark); color: var(--on-dark-2); padding: 84px var(--pad) 40px; }
.pfooter-inner { max-width: var(--maxw); margin: 0 auto; }
.pfooter-top { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr 1fr; gap: 44px; padding-bottom: 56px; border-bottom: 1px solid var(--dark-line); }
.pfooter .brand-name { color: #fff; }
.pfooter .brand-sub { color: var(--on-dark-3); }
.pfooter .brand-mark { background: rgba(255,255,255,0.95); }
.pfooter-brand p { font-size: 13.5px; margin-top: 18px; line-height: 1.65; max-width: 260px; color: var(--on-dark-2); }
.pfooter-social { display: flex; gap: 10px; margin-top: 22px; }
.pfooter-social a { width: 38px; height: 38px; border-radius: 10px; border: 1px solid var(--dark-line); display: flex; align-items: center; justify-content: center; color: var(--on-dark-2); transition: all 0.18s; }
.pfooter-social a:hover { background: var(--orange); border-color: var(--orange); color: #fff; }
.pfooter-social .ico { width: 17px; height: 17px; }
.pfooter-col h5 { font-family: var(--mono); font-size: 10px; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; color: var(--on-dark-3); margin-bottom: 18px; }
.pfooter-col a { display: block; font-size: 13.5px; color: var(--on-dark-2); margin-bottom: 12px; transition: color 0.18s; }
.pfooter-col a:hover { color: #fff; }
.pfooter-bottom { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; padding-top: 26px; font-size: 12.5px; color: var(--on-dark-3); }
.pfooter-bottom-links { display: flex; gap: 22px; }
.pfooter-bottom a:hover { color: #fff; }

/* ============================================================
   MOBILE MENU
   ============================================================ */
.pmenu { display: none; position: fixed; inset: 0; z-index: 400; background: var(--noir); flex-direction: column; }
.pmenu.open { display: flex; }
.pmenu-head { display: flex; align-items: center; justify-content: space-between; padding: 18px var(--pad); border-bottom: 1px solid var(--dark-line); }
.pmenu-head .brand-name { color: #fff; }
.pmenu-head .brand-sub { color: var(--on-dark-3); }
.pmenu-head .brand-mark { background: #fff; }
.pmenu-close { width: 42px; height: 42px; border-radius: 10px; border: 1px solid var(--dark-line); background: none; color: #fff; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.pmenu-close .ico { width: 18px; height: 18px; }
.pmenu-links { flex: 1; padding: 16px 0; }
.pmenu-links a { display: block; padding: 18px var(--pad); font-size: 22px; font-family: var(--serif); color: #fff; border-bottom: 1px solid var(--dark-line); }
.pmenu-foot { padding: 24px var(--pad); display: flex; flex-direction: column; gap: 12px; }
.pmenu-foot .btn { width: 100%; }

/* ============================================================
   REVEAL
   ============================================================ */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.7s cubic-bezier(0.22,1,0.36,1), transform 0.7s cubic-bezier(0.22,1,0.36,1); }
.reveal.visible { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: 0.08s; }
.reveal.d2 { transition-delay: 0.16s; }
.reveal.d3 { transition-delay: 0.24s; }
@media (prefers-reduced-motion: reduce) { .reveal { transition: none; opacity: 1; transform: none; } }

/* ============================================================
   PORTAL — formal application front door
   ============================================================ */
.kicker { font-family: var(--mono); font-size: 11px; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase; color: var(--orange); }

.aphero { position: relative; overflow: hidden; background: linear-gradient(158deg, #34230f 0%, #271a0f 54%, #1b120b 100%); color: #fff; }
.aphero::before { content: ''; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: radial-gradient(ellipse 70% 60% at 84% 6%, rgba(233,84,29,0.40) 0%, transparent 60%),
              radial-gradient(ellipse 60% 60% at 4% 96%, rgba(233,84,29,0.16) 0%, transparent 62%);
  animation: apGlow 9s ease-in-out infinite alternate; }
@keyframes apGlow { from { opacity: 0.7; transform: scale(1); } to { opacity: 1; transform: scale(1.06); } }

/* ============================================================
   ENTRANCE ANIMATIONS
   ============================================================ */
@keyframes apRise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
@keyframes apFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes apScaleIn { from { opacity: 0; transform: translateY(18px) scale(0.97); } to { opacity: 1; transform: none; } }

.aphero-main > * { animation: apRise 0.8s cubic-bezier(0.22,1,0.36,1) both; }
.aphero-main > .aphero-status { animation-delay: 0.15s; }
.aphero-main > h1 { animation-delay: 0.30s; }
.aphero-main > .aphero-sub { animation-delay: 0.44s; }
.aphero-main > .aphero-ctas { animation-delay: 0.58s; }
.aphero-main > .aphero-facts { animation-delay: 0.72s; }
.aphero-visual { animation: apFade 1.2s ease 0.6s both; }

.pnav { animation: apFade 0.6s ease both; }

.aphero-ctas .btn-primary { animation: apRise 0.8s cubic-bezier(0.22,1,0.36,1) 0.58s both, apPulse 2.6s ease-in-out 2s infinite; }
@keyframes apPulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(233,84,29,0); } 50% { box-shadow: 0 0 0 8px rgba(233,84,29,0.10); } }

.ap-num { font-variant-numeric: tabular-nums; }

.appcards-grid.reveal, .psteps.reveal { transform: none; }

.appcards-grid .appcard { opacity: 0; }
.appcards-grid.visible .appcard { animation: apScaleIn 0.7s cubic-bezier(0.22,1,0.36,1) both; }
.appcards-grid.visible .appcard:nth-child(1) { animation-delay: 0.06s; }
.appcards-grid.visible .appcard:nth-child(2) { animation-delay: 0.18s; }
.appcards-grid.visible .appcard:nth-child(3) { animation-delay: 0.30s; }

.psteps .pstep { opacity: 0; }
.psteps.visible .pstep { animation: apRise 0.6s cubic-bezier(0.22,1,0.36,1) both; }
.psteps.visible .pstep:nth-child(1) { animation-delay: 0.04s; }
.psteps.visible .pstep:nth-child(2) { animation-delay: 0.14s; }
.psteps.visible .pstep:nth-child(3) { animation-delay: 0.24s; }
.psteps.visible .pstep:nth-child(4) { animation-delay: 0.34s; }
.psteps.visible .pstep:nth-child(5) { animation-delay: 0.44s; }

.astatus-list.staggered li { opacity: 0; }
.astatus-text.visible .astatus-list.staggered li { animation: apRise 0.6s cubic-bezier(0.22,1,0.36,1) both; }
.astatus-text.visible .astatus-list.staggered li:nth-child(1) { animation-delay: 0.10s; }
.astatus-text.visible .astatus-list.staggered li:nth-child(2) { animation-delay: 0.22s; }
.astatus-text.visible .astatus-list.staggered li:nth-child(3) { animation-delay: 0.34s; }

.astatus-dash-wrap.visible .adash-row { animation: apRise 0.55s cubic-bezier(0.22,1,0.36,1) both; }
.astatus-dash-wrap .adash-row { opacity: 0; }
.astatus-dash-wrap.visible .adash-row:nth-child(1) { animation-delay: 0.20s; }
.astatus-dash-wrap.visible .adash-row:nth-child(2) { animation-delay: 0.32s; }
.astatus-dash-wrap.visible .adash-row:nth-child(3) { animation-delay: 0.44s; }
.astatus-dash-wrap.visible .adash-row:nth-child(4) { animation-delay: 0.56s; }
.astatus-dash-wrap.visible .adash-row:nth-child(5) { animation-delay: 0.68s; }

.faq-wrap.reveal { transform: none; }
.faq-wrap .faq-item { opacity: 0; }
.faq-wrap.visible .faq-item { animation: apRise 0.55s cubic-bezier(0.22,1,0.36,1) both; }
.faq-wrap.visible .faq-item:nth-child(1) { animation-delay: 0.04s; }
.faq-wrap.visible .faq-item:nth-child(2) { animation-delay: 0.12s; }
.faq-wrap.visible .faq-item:nth-child(3) { animation-delay: 0.20s; }
.faq-wrap.visible .faq-item:nth-child(4) { animation-delay: 0.28s; }
.faq-wrap.visible .faq-item:nth-child(5) { animation-delay: 0.36s; }
.faq-wrap.visible .faq-item:nth-child(6) { animation-delay: 0.44s; }

@media (prefers-reduced-motion: reduce) {
  .aphero-main > *, .aphero-visual, .pnav, .aphero-ctas .btn-primary,
  .appcards-grid.visible .appcard, .psteps.visible .pstep,
  .astatus-text.visible .astatus-list.staggered li, .astatus-dash-wrap.visible .adash-row,
  .faq-wrap.visible .faq-item { animation: none !important; opacity: 1 !important; transform: none !important; }
  .aphero::before { animation: none; }
  .appcards-grid .appcard, .psteps .pstep, .astatus-list.staggered li, .astatus-dash-wrap .adash-row, .faq-wrap .faq-item { opacity: 1; }
}

.aphero-inner { position: relative; z-index: 2; max-width: var(--maxw); margin: 0 auto; padding: 150px var(--pad) 64px; display: grid; grid-template-columns: minmax(0, 1fr) 420px; gap: 64px; align-items: stretch; }
.aphero-main { min-width: 0; align-self: center; }

.aphero-visual { position: relative; align-self: stretch; min-height: 560px; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 12%, #000 88%, transparent 100%); mask-image: linear-gradient(180deg, transparent 0, #000 12%, #000 88%, transparent 100%); }
.aphero-col { position: relative; overflow: hidden; }
.aphero-track { position: absolute; top: 0; left: 0; right: 0; display: flex; flex-direction: column; gap: 14px; animation: heroScroll 34s linear infinite; will-change: transform; }
.aphero-col.rev .aphero-track { animation-direction: reverse; }
.aphero-visual:hover .aphero-track { animation-play-state: paused; }
@keyframes heroScroll { from { transform: translateY(0); } to { transform: translateY(-50%); } }
@media (prefers-reduced-motion: reduce) { .aphero-track { animation: none; } }

.hcard { background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.13); border-radius: 14px; padding: 13px 14px; backdrop-filter: blur(8px); display: flex; flex-direction: column; gap: 9px; }
.hcard-top { display: flex; align-items: center; gap: 10px; }
.hcard-ico { width: 34px; height: 34px; border-radius: 9px; flex: none; display: flex; align-items: center; justify-content: center; background: rgba(233,84,29,0.16); color: var(--orange-bright); }
.hcard-ico .ico { width: 17px; height: 17px; }
.hcard.green .hcard-ico { background: rgba(74,208,106,0.16); color: #6fe08c; }
.hcard.cream .hcard-ico { background: rgba(255,255,255,0.12); color: #fff; }
.hcard-mark { font-family: var(--serif); font-size: 17px; line-height: 1; color: #fff; }
.hcard-tag { font-family: var(--mono); font-size: 8.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--on-dark-2); margin-top: 4px; }
.hcard-body .t { font-size: 13px; font-weight: 700; color: #fff; line-height: 1.25; }
.hcard-body .s { font-size: 11px; color: var(--on-dark-2); margin-top: 3px; line-height: 1.35; }
.hcard-stat { display: inline-flex; align-items: center; gap: 7px; font-family: var(--mono); font-size: 9.5px; letter-spacing: 0.03em; color: var(--on-dark); }
.hcard-stat .pip { width: 7px; height: 7px; border-radius: 50%; background: #6fe08c; box-shadow: 0 0 8px #6fe08c; flex: none; }
.hcard-stat .pip.amber { background: #f4bf4f; box-shadow: 0 0 8px #f4bf4f; }

.aphero-status { display: inline-flex; align-items: center; gap: 12px; font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: #fff; background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.2); backdrop-filter: blur(10px); padding: 9px 16px; border-radius: 100px; margin-bottom: 30px; }
.aphero-status .dot { width: 8px; height: 8px; border-radius: 50%; background: #4ad06a; box-shadow: 0 0 12px #4ad06a; flex: none; }
.aphero-status .sep { width: 1px; height: 13px; background: rgba(255,255,255,0.22); }
.aphero-status .muted { color: var(--on-dark-2); }

.aphero h1 { font-family: var(--serif); font-weight: 400; font-size: clamp(44px, 5.6vw, 82px); line-height: 0.98; letter-spacing: -0.02em; color: #fff; max-width: 14ch; margin-bottom: 26px; text-shadow: 0 2px 40px rgba(0,0,0,0.3); }
.aphero h1 em { font-style: italic; color: var(--orange-bright); }
.aphero-sub { font-size: clamp(16px, 1.4vw, 19.5px); line-height: 1.6; color: var(--on-dark); max-width: 580px; margin-bottom: 36px; }
.aphero-ctas { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 56px; }
.aphero-ctas .btn-glass .ico { width: 18px; height: 18px; }

.aphero-facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid rgba(255,255,255,0.14); padding-top: 34px; max-width: 760px; }
.aphero-fact { padding-right: 32px; }
.aphero-fact:last-child { padding-right: 0; }
.aphero-fact .k { font-family: var(--mono); font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--orange-bright); margin-bottom: 10px; }
.aphero-fact .v { font-family: var(--serif); font-size: clamp(20px, 2vw, 27px); line-height: 1.1; color: #fff; }
.aphero-fact .d { font-size: 12.5px; color: var(--on-dark-2); margin-top: 6px; line-height: 1.45; }

/* ============================================================
   APPLICATION-TYPE CARDS  (3 layout variants via body[data-cards])
   ============================================================ */
.appcards { background: var(--cream); }
.appcards-grid { display: grid; gap: 24px; grid-template-columns: repeat(3, 1fr); align-items: stretch; }

.appcard { position: relative; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--sh-sm); padding: 30px; display: flex; flex-direction: column; transition: transform 0.25s, box-shadow 0.25s, border-color 0.2s; overflow: hidden; }
.appcard::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: var(--tone, var(--orange)); opacity: 0.9; }
.appcard:hover { transform: translateY(-5px); box-shadow: var(--sh-md); border-color: var(--line-2); }
.appcard[data-type="resident"] { --tone: var(--orange); --tone-soft: var(--orange-soft); --tone-deep: var(--orange-deep); }
.appcard[data-type="member"]   { --tone: var(--green);  --tone-soft: var(--green-soft);  --tone-deep: #1f6f3a; }
.appcard[data-type="hospital"] { --tone: var(--ink);    --tone-soft: var(--cream-2);     --tone-deep: #000; }
body[data-accent="uniform"] .appcard { --tone: var(--orange); --tone-soft: var(--orange-soft); --tone-deep: var(--orange-deep); }

.appcard-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 22px; }
.appcard-num { font-family: var(--serif); font-size: 30px; line-height: 1; color: var(--ink-3); letter-spacing: -0.01em; }
.appcard-ico { width: 54px; height: 54px; border-radius: 14px; flex: none; display: flex; align-items: center; justify-content: center; background: var(--tone-soft); color: var(--tone-deep); }
.appcard-ico .ico { width: 27px; height: 27px; }
body[data-accent="uniform"] .appcard[data-type="hospital"] .appcard-ico,
.appcard[data-type="hospital"] .appcard-ico { color: var(--tone-deep); }

.appcard-tag { font-family: var(--mono); font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 8px; }
.appcard-title { font-size: 21px; font-weight: 700; letter-spacing: -0.015em; line-height: 1.15; color: var(--ink); margin-bottom: 11px; }
.appcard-desc { font-size: 14px; color: var(--ink-2); line-height: 1.6; }
.appcard-main { margin-bottom: 22px; }

.appcard-reqs { list-style: none; display: flex; flex-direction: column; gap: 10px; padding: 20px 0; margin: 0 0 4px; border-top: 1px solid var(--line); }
.appcard-reqs .rl { font-family: var(--mono); font-size: 9.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 2px; }
.appcard-reqs li { display: flex; align-items: flex-start; gap: 10px; font-size: 13.5px; color: var(--ink-2); line-height: 1.45; }
.appcard-reqs li .ico { width: 16px; height: 16px; flex: none; color: var(--tone); margin-top: 1px; }

.appcard-foot { margin-top: auto; }
.appcard-meta { display: flex; gap: 22px; padding: 16px 0 20px; border-top: 1px solid var(--line); }
.acm .k { font-family: var(--mono); font-size: 9px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 5px; }
.acm .v { font-size: 13px; font-weight: 700; color: var(--ink); }
.appcard .btn-apply { width: 100%; background: var(--tone); color: #fff; padding: 14px 24px; border-radius: 100px; font-size: 14.5px; font-weight: 600; display: inline-flex; align-items: center; justify-content: center; gap: 9px; border: none; cursor: pointer; transition: all 0.2s; box-shadow: 0 12px 28px -12px var(--tone); }
.appcard .btn-apply .ico { width: 16px; height: 16px; }
.appcard .btn-apply:hover { background: var(--tone-deep); transform: translateY(-2px); }

/* ---- variant: STACKED ROWS ---- */
body[data-cards="rows"] .appcards-grid { grid-template-columns: 1fr; gap: 18px; }
body[data-cards="rows"] .appcard { display: grid; grid-template-columns: 84px minmax(0, 1.5fr) minmax(0, 1.25fr) 230px; align-items: center; gap: 36px; padding: 32px 36px; }
body[data-cards="rows"] .appcard-head { flex-direction: column; gap: 12px; margin: 0; align-items: flex-start; }
body[data-cards="rows"] .appcard-main { margin: 0; }
body[data-cards="rows"] .appcard-reqs { border-top: none; border-left: 1px solid var(--line); padding: 4px 0 4px 30px; }
body[data-cards="rows"] .appcard-foot { margin: 0; }
body[data-cards="rows"] .appcard-meta { border-top: none; padding: 0 0 16px; gap: 26px; }
body[data-cards="rows"] .appcard-num { font-size: 26px; }

/* ---- variant: FEATURED ---- */
body[data-cards="feature"] .appcards-grid { grid-template-columns: 1fr 1fr; gap: 22px; }
body[data-cards="feature"] .appcard:first-child { grid-column: 1 / -1; display: grid; grid-template-columns: 96px minmax(0, 1.4fr) minmax(0, 1.1fr) 240px; align-items: center; gap: 38px; padding: 38px 40px; }
body[data-cards="feature"] .appcard:first-child .appcard-head { flex-direction: column; gap: 14px; margin: 0; align-items: flex-start; }
body[data-cards="feature"] .appcard:first-child .appcard-main { margin: 0; }
body[data-cards="feature"] .appcard:first-child .appcard-title { font-size: 26px; }
body[data-cards="feature"] .appcard:first-child .appcard-reqs { border-top: none; border-left: 1px solid var(--line); padding: 4px 0 4px 32px; }
body[data-cards="feature"] .appcard:first-child .appcard-foot { margin: 0; }
body[data-cards="feature"] .appcard:first-child .appcard-meta { border-top: none; padding: 0 0 16px; }
body[data-cards="feature"] .appcard:first-child .appcard-num { font-size: 32px; }

/* ============================================================
   PROCESS — procedural stepper
   ============================================================ */
.aprocess { background: var(--noir); color: #fff; position: relative; overflow: hidden; }
.aprocess::before { content: ''; position: absolute; top: 6%; left: 50%; width: 760px; height: 760px; transform: translateX(-50%); background: radial-gradient(circle, rgba(233,84,29,0.13) 0%, transparent 62%); pointer-events: none; }
.aprocess .sec-title { color: #fff; }
.aprocess .sec-sub { color: var(--on-dark-2); }
.psteps { position: relative; display: grid; grid-template-columns: repeat(5, 1fr); gap: 22px; margin-top: 24px; }
.psteps::before { content: ''; position: absolute; top: 33px; left: 9%; right: 9%; height: 2px; background: repeating-linear-gradient(90deg, rgba(255,255,255,0.28) 0 8px, transparent 8px 16px); }
.pstep { position: relative; z-index: 1; text-align: center; }
.pstep-node { width: 68px; height: 68px; border-radius: 50%; margin: 0 auto 22px; display: flex; align-items: center; justify-content: center; background: var(--dark); border: 2px solid rgba(255,255,255,0.16); position: relative; }
.pstep-node .ico { width: 26px; height: 26px; color: var(--orange-bright); }
.pstep-node .pstep-n { position: absolute; top: -8px; right: -8px; width: 26px; height: 26px; border-radius: 50%; background: var(--orange); color: #fff; font-family: var(--mono); font-size: 11px; font-weight: 500; display: flex; align-items: center; justify-content: center; border: 2px solid var(--noir); }
.pstep h4 { font-size: 16px; font-weight: 700; margin-bottom: 9px; letter-spacing: -0.01em; }
.pstep p { font-size: 13px; color: var(--on-dark-2); line-height: 1.5; max-width: 200px; margin: 0 auto; }
.pstep .ptime { font-family: var(--mono); font-size: 9px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--orange-bright); margin-top: 12px; }

.ptabs { display: inline-flex; gap: 4px; padding: 4px; border-radius: 100px; background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.14); margin-top: 26px; flex-wrap: wrap; }
.ptab { appearance: none; border: 0; background: transparent; color: var(--on-dark-2); font: inherit; font-size: 13px; font-weight: 600; padding: 9px 18px; border-radius: 100px; cursor: pointer; transition: all 0.2s; white-space: nowrap; }
.ptab:hover { color: #fff; }
.ptab.on { background: var(--orange); color: #fff; box-shadow: 0 8px 20px -8px var(--orange); }
.psteps { transition: opacity 0.25s; }
.psteps.fading { opacity: 0; }
@media (max-width: 560px) { .ptabs { width: 100%; } .ptab { flex: 1; padding: 9px 10px; } }

.astatus { background: var(--paper); }
.astatus-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 72px; align-items: center; }
.astatus-list { list-style: none; display: flex; flex-direction: column; gap: 4px; margin: 32px 0 30px; }
.astatus-list li { display: flex; gap: 16px; padding: 18px; border-radius: var(--r); transition: background 0.2s; }
.astatus-list li:hover { background: var(--cream); }
.astatus-ico { width: 44px; height: 44px; border-radius: 12px; flex: none; background: var(--orange-soft); color: var(--orange-deep); display: flex; align-items: center; justify-content: center; }
.astatus-ico .ico { width: 21px; height: 21px; }
.astatus-list h4 { font-size: 16px; font-weight: 700; margin-bottom: 5px; letter-spacing: -0.01em; }
.astatus-list p { font-size: 13.5px; color: var(--ink-2); line-height: 1.55; }
.astatus-dash { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--sh-lg); overflow: hidden; }

.adash-track { display: flex; flex-direction: column; gap: 0; }
.adash-row { display: flex; gap: 14px; padding: 14px 4px; position: relative; }
.adash-row:not(:last-child)::after { content: ''; position: absolute; left: 13px; top: 34px; bottom: -2px; width: 2px; background: var(--cream-3); }
.adash-row.done:not(:last-child)::after { background: var(--green); }
.adash-mark { width: 28px; height: 28px; border-radius: 50%; flex: none; display: flex; align-items: center; justify-content: center; background: var(--cream-2); border: 1.5px solid var(--line-2); color: var(--ink-3); z-index: 1; }
.adash-mark .ico { width: 15px; height: 15px; }
.adash-row.done .adash-mark { background: var(--green); border-color: var(--green); color: #fff; }
.adash-row.current .adash-mark { background: var(--orange); border-color: var(--orange); color: #fff; box-shadow: 0 0 0 5px var(--orange-soft); }
.adash-c .t { font-size: 14px; font-weight: 700; color: var(--ink); }
.adash-c .s { font-family: var(--mono); font-size: 10px; color: var(--ink-3); margin-top: 3px; letter-spacing: 0.04em; }
.adash-row.current .adash-c .badge { display: inline-block; margin-top: 7px; font-size: 10px; font-weight: 600; padding: 3px 9px; border-radius: 6px; background: var(--orange-soft); color: var(--orange-deep); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1080px) {
  :root { --pad: 36px; }
  .sec { padding: 96px 0; }
  .aphero-inner { grid-template-columns: 1fr; gap: 0; }
  .aphero-visual { display: none; }
  .astatus-grid { grid-template-columns: 1fr; gap: 52px; }
  .pfooter-top { grid-template-columns: 1fr 1fr 1fr; }
  .pfooter-brand { grid-column: 1 / -1; }
  body[data-cards="rows"] .appcard { grid-template-columns: 70px 1fr; gap: 14px 24px; }
  body[data-cards="rows"] .appcard-reqs { grid-column: 1 / -1; border-left: none; border-top: 1px solid var(--line); padding: 18px 0 4px; }
  body[data-cards="rows"] .appcard-foot { grid-column: 1 / -1; }
  body[data-cards="rows"] .appcard-meta { padding-top: 16px; border-top: 1px solid var(--line); }
  body[data-cards="feature"] .appcards-grid { grid-template-columns: 1fr; }
  body[data-cards="feature"] .appcard:first-child { grid-template-columns: 70px 1fr; gap: 14px 24px; }
  body[data-cards="feature"] .appcard:first-child .appcard-reqs { grid-column: 1 / -1; border-left: none; border-top: 1px solid var(--line); padding: 18px 0 4px; }
  body[data-cards="feature"] .appcard:first-child .appcard-foot { grid-column: 1 / -1; }
  body[data-cards="feature"] .appcard:first-child .appcard-meta { border-top: 1px solid var(--line); padding-top: 16px; }
}
@media (max-width: 1000px) {
  .pnav-links, .pnav-actions .btn-primary, .pnav-actions .btn-sign { display: none; }
  .phamb { display: flex; }
}
@media (max-width: 920px) {
  .appcards-grid, body[data-cards="feature"] .appcards-grid { grid-template-columns: 1fr; }
  .psteps { grid-template-columns: 1fr; gap: 0; }
  .psteps::before { display: none; }
  .pstep { display: flex; gap: 22px; text-align: left; padding-bottom: 30px; position: relative; }
  .pstep:not(:last-child)::after { content: ''; position: absolute; left: 33px; top: 72px; bottom: 0; width: 2px; background: rgba(255,255,255,0.16); }
  .pstep-node { margin: 0; flex: none; }
  .pstep p { margin: 0; }
  .pstep-txt { padding-top: 8px; }
}
@media (max-width: 760px) {
  :root { --pad: 24px; }
  .sec { padding: 80px 0; }
  .sec-head { margin-bottom: 48px; }
  .pfooter-top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 700px) {
  .aphero-inner { padding: 128px var(--pad) 56px; }
  .aphero-facts { grid-template-columns: 1fr; gap: 22px; }
  .aphero-fact { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.12); padding: 0 0 18px; }
  .aphero-fact:last-child { border-bottom: none; padding-bottom: 0; }
  .aphero-ctas .btn { flex: 1; }
}
@media (max-width: 560px) {
  .pfooter-top { grid-template-columns: 1fr; }
}

/* ============================================================
   ENROLLMENT / PATHWAY-CHOOSER MODAL
   ============================================================ */
.enroll-overlay { display: none; position: fixed; inset: 0; z-index: 600; background: rgba(20,12,6,0.55); backdrop-filter: blur(6px); align-items: center; justify-content: center; padding: 28px; }
.enroll-overlay.open { display: flex; animation: fadeOverlay 0.22s ease both; }
@keyframes fadeOverlay { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideModal { from { opacity: 0; transform: translateY(22px) scale(0.985); } to { opacity: 1; transform: none; } }
.enroll-modal { background: var(--cream); border-radius: 22px; width: 100%; max-width: 880px; max-height: 90vh; overflow-y: auto; position: relative; box-shadow: 0 40px 90px -30px rgba(20,12,6,0.5); animation: slideModal 0.3s cubic-bezier(0.22,1,0.36,1) both; scrollbar-width: thin; }
.enroll-modal::-webkit-scrollbar { width: 5px; }
.enroll-modal::-webkit-scrollbar-thumb { background: var(--line-2); border-radius: 4px; }
.em-header { padding: 36px 36px 24px; border-bottom: 1px solid var(--line); position: sticky; top: 0; background: var(--cream); z-index: 10; border-radius: 22px 22px 0 0; }
.em-header .eyebrow { color: var(--orange); margin-bottom: 10px; }
.em-header-row { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.em-title { font-family: var(--serif); font-size: 27px; line-height: 1.08; margin-bottom: 8px; letter-spacing: -0.01em; }
.em-sub { font-size: 14px; color: var(--ink-2); line-height: 1.5; max-width: 460px; }
.em-close { width: 40px; height: 40px; flex: none; border-radius: 10px; border: 1px solid var(--line-2); background: none; cursor: pointer; color: var(--ink-2); display: flex; align-items: center; justify-content: center; transition: all 0.18s; }
.em-close .ico { width: 17px; height: 17px; }
.em-close:hover { background: var(--cream-2); color: var(--ink); border-color: var(--ink); }
.em-stepper { display: flex; align-items: center; gap: 14px; margin-top: 22px; }
.em-stepitem { display: inline-flex; align-items: center; gap: 9px; }
.em-stepdot { width: 26px; height: 26px; border-radius: 50%; flex: none; display: flex; align-items: center; justify-content: center; border: 1.5px solid var(--line-2); color: var(--ink-3); background: var(--paper); transition: all 0.22s; }
.em-stepnum { font-family: var(--mono); font-size: 12px; font-weight: 500; }
.em-stepcheck { width: 14px; height: 14px; display: none; }
.em-steplabel { font-family: var(--mono); font-size: 11px; letter-spacing: 0.05em; text-transform: uppercase; color: var(--ink-3); transition: color 0.22s; }
.em-stepconn { flex: 1; height: 1.5px; background: var(--line-2); max-width: 80px; position: relative; overflow: hidden; }
.em-stepitem.active .em-stepdot { border-color: var(--orange); background: var(--orange); color: #fff; }
.em-stepitem.active .em-steplabel { color: var(--ink); }
.em-step { padding: 28px 36px 36px; }
.em-cards { display: flex; flex-direction: column; gap: 14px; }
.em-card { display: flex; align-items: flex-start; gap: 18px; background: var(--paper); border: 1.5px solid var(--line); border-radius: 16px; padding: 24px; cursor: pointer; position: relative; outline: none; transition: border-color 0.2s, box-shadow 0.2s; overflow: hidden; }
.em-card:hover { border-color: var(--line-2); box-shadow: var(--sh-sm); }
.em-card:focus-visible { border-color: var(--orange); box-shadow: 0 0 0 3px var(--orange-soft); }
.em-card.selected { border-color: var(--orange); background: #fffaf7; box-shadow: 0 0 0 3px var(--orange-soft); }
.em-card-ico { width: 54px; height: 54px; border-radius: 14px; flex: none; display: flex; align-items: center; justify-content: center; transition: transform 0.2s; }
.em-card-ico .ico { width: 26px; height: 26px; }
.em-card:hover .em-card-ico { transform: scale(1.06); }
.em-icon-orange { background: var(--orange-soft); color: var(--orange-deep); }
.em-icon-green { background: var(--green-soft); color: var(--green); }
.em-icon-ink { background: var(--cream-2); color: var(--ink); }
.em-card-body { flex: 1; }
.em-card-tag { font-family: var(--mono); font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 5px; }
.em-card-title { font-size: 17px; font-weight: 700; color: var(--ink); margin-bottom: 8px; letter-spacing: -0.01em; }
.em-card-desc { font-size: 13px; color: var(--ink-2); line-height: 1.55; margin-bottom: 14px; }
.em-card-list { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 6px 18px; }
.em-card-list li { font-size: 12px; color: var(--ink-2); display: flex; align-items: center; gap: 7px; }
.em-card-list li::before { content: ''; width: 5px; height: 5px; border-radius: 50%; background: var(--green); flex: none; }
.em-change { display: none; align-items: center; gap: 5px; font-family: var(--mono); font-size: 10px; letter-spacing: 0.05em; text-transform: uppercase; color: var(--orange); margin-top: 14px; cursor: pointer; }
.em-change .ico { width: 12px; height: 12px; }
.em-card.selected .em-change { display: inline-flex; }
.em-radio { width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--line-2); flex: none; position: relative; transition: all 0.2s; margin-top: 2px; }
.em-card.selected .em-radio { border-color: var(--orange); background: var(--orange); }
.em-card.selected .em-radio::after { content: ''; position: absolute; inset: 4px; background: #fff; border-radius: 50%; }
.em-footer { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-top: 26px; padding-top: 24px; border-top: 1px solid var(--line); }
.em-footer-note { font-size: 13px; color: var(--ink-2); }
.em-footer-note a { color: var(--orange); font-weight: 600; }
.em-footer-note a:hover { text-decoration: underline; }
.em-btn-continue { display: inline-flex; align-items: center; gap: 8px; background: var(--orange); color: #fff; border: none; cursor: pointer; padding: 13px 26px; border-radius: 9px; font-size: 14px; font-weight: 700; font-family: var(--sans); transition: all 0.18s; }
.em-btn-continue .ico { width: 16px; height: 16px; }
.em-btn-continue:disabled { background: var(--cream-3); color: var(--ink-3); cursor: not-allowed; }
.em-btn-continue:not(:disabled):hover { background: var(--orange-deep); }
@media (max-width: 720px) {
  .enroll-overlay { padding: 0; align-items: flex-end; }
  .enroll-modal { border-radius: 22px 22px 0 0; max-height: 94vh; }
  .em-header { padding: 26px 22px 18px; border-radius: 22px 22px 0 0; }
  .em-title { font-size: 22px; }
  .em-step { padding: 22px 22px 30px; }
  .em-card { padding: 20px 18px; gap: 14px; }
  .em-card-list { grid-template-columns: 1fr; }
  .em-footer { flex-direction: column; align-items: stretch; gap: 14px; }
  .em-btn-continue { justify-content: center; }
  .em-footer-note { text-align: center; }
}
@media (max-width: 480px) {
  .em-card-desc { display: none; }
}
