:root {
  color-scheme: light;
  --navy: #142b87;
  --navy-dark: #0d225d;
  --orange: #ff7915;
  --orange-soft: #fff0e3;
  --ink: #172340;
  --secondary: #57637b;
  --muted: #667187;
  --border: #e5e9f1;
  --surface: #ffffff;
  --canvas: #f8f9fc;
  --focus: #315fc6;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--canvas); }
button, input { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; }
a { color: inherit; }
h1, h2, h3, p { margin-top: 0; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
[hidden] { display: none !important; }

.container { width: min(1160px, calc(100% - 48px)); margin-inline: auto; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; z-index: 100; top: -100px; left: 16px; padding: 12px 18px; border-radius: 10px; background: white; box-shadow: 0 6px 24px #182d692b; }
.skip-link:focus { top: 12px; }

.site-header { height: 64px; background: rgba(255,255,255,.97); border-bottom: 1px solid var(--border); }
.header-inner, .brand { display: flex; align-items: center; }
.header-inner { justify-content: space-between; height: 100%; }
.brand { gap: 14px; min-width: 0; }
.brand-logo { display: block; width: 150px; height: auto; aspect-ratio: 1562 / 308; object-fit: contain; }
.brand-divider { width: 1px; height: 22px; background: #d6dce8; }
.brand-workspace { font-size: 15px; font-weight: 680; letter-spacing: -.035em; color: #233b67; }
.header-note { display: inline-flex; align-items: center; gap: 10px; color: #63718b; font-size: 12px; font-weight: 650; letter-spacing: .01em; white-space: nowrap; }
.status-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--orange); box-shadow: 0 0 0 4px var(--orange-soft); }

.hero {
  position: relative;
  isolation: isolate;
  margin-top: 12px;
  padding: 21px 28px 20px;
  border: 1px solid #e5e9f2;
  border-radius: 22px;
  background: #ffffff;
  overflow: hidden;
}
.hero-glow {
  position: absolute;
  z-index: -1;
  width: 390px;
  height: 260px;
  right: -145px;
  top: -100px;
  background: radial-gradient(circle at center, rgba(20,43,135,.052), rgba(255,121,21,.035) 39%, transparent 68%);
  pointer-events: none;
}
.hero-content { max-width: 1050px; margin: 0 auto; text-align: center; animation: heroAppear .55s ease-out both; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 10px; font-weight: 780; color: var(--navy); letter-spacing: .17em; }
.eyebrow-mark { width: 7px; height: 7px; border-radius: 2px; background: var(--orange); transform: rotate(45deg); }
.hero h1 { margin: 8px 0 7px; font-size: clamp(28px, 3.15vw, 41px); line-height: 1.13; letter-spacing: -.048em; font-weight: 760; color: var(--navy-dark); }
.hero-amp { color: var(--orange); }
.hero-stop { color: var(--orange); }
.hero-tagline { margin-bottom: 5px; color: #293d71; font-size: 15px; font-weight: 670; letter-spacing: -.02em; }
.hero-description { max-width: 750px; margin: 0 auto; color: var(--secondary); font-size: 12px; line-height: 1.45; }
.hero-highlights { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 7px; margin-top: 12px; }
.hero-highlights > span { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border: 1px solid #edf0f5; border-radius: 30px; color: #4f5e7b; background: #fbfcfe; font-size: 10.5px; font-weight: 650; }
.hero-highlights > span span { color: var(--orange); font-size: 13px; line-height: 1; }

.directory-panel { margin-top: 16px; margin-bottom: 24px; }
.directory-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 12px; }
.section-kicker { color: var(--orange); font-size: 10px; font-weight: 800; letter-spacing: .15em; }
.directory-heading h2 { font-size: clamp(23px, 2.5vw, 28px); line-height: 1.16; letter-spacing: -.045em; font-weight: 755; color: var(--navy-dark); margin: 4px 0 3px; }
.directory-heading p { font-size: 12px; color: var(--secondary); line-height: 1.35; margin-bottom: 0; }
.directory-caption { display: inline-flex; align-items: center; gap: 8px; padding: 7px 11px; border-radius: 30px; background: #fff; border: 1px solid var(--border); color: #596984; font-size: 10.5px; font-weight: 700; white-space: nowrap; }
.directory-caption > span { color: var(--orange); font-size: 16px; line-height: 1; }

.cards-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 11px; }
.app-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 187px;
  padding: 14px 16px 13px;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid #e5e9f2;
  border-radius: 17px;
  box-shadow: 0 8px 28px rgba(17,40,98,.035);
  transition: transform .28s cubic-bezier(.2,.8,.2,1), box-shadow .28s ease, border-color .28s ease;
  animation: cardAppear .65s cubic-bezier(.2,.8,.2,1) both;
  animation-delay: var(--stagger, 0ms);
}
.app-card::before { position: absolute; content: ""; left: 0; top: 0; right: 0; height: 3px; background: var(--navy); opacity: .9; }
.app-card.unit-shared::before { background: var(--orange); }
.app-card:hover { transform: translateY(-3px); border-color: #c6d1e8; box-shadow: 0 14px 30px rgba(20,43,135,.1); }
.app-card.pending { background: #fdfdff; }
.app-unit { display: flex; align-items: center; gap: 6px; color: #55647d; font-size: 10px; font-weight: 760; letter-spacing: .02em; }
.unit-indicator { width: 6px; height: 6px; background: var(--navy); border-radius: 50%; }
.unit-shared .unit-indicator { background: var(--orange); }
.app-card-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 9px; }
.app-icon { width: 35px; height: 35px; flex: none; display: grid; place-items: center; border-radius: 11px; background: #edf1fc; color: var(--navy); }
.app-icon svg { width: 18px; height: 18px; }
.unit-shared .app-icon { background: var(--orange-soft); color: #df6512; }
.app-category { font-size: 9.5px; font-weight: 750; color: #68758a; background: #f4f6fa; border: 1px solid #edf0f5; border-radius: 25px; padding: 5px 8px; }
.app-card h3 { margin: 9px 0 4px; font-size: 16px; line-height: 1.18; letter-spacing: -.03em; font-weight: 755; color: #1b2c4c; overflow-wrap: anywhere; }
.app-description { margin-bottom: 0; color: #67738a; font-size: 11px; line-height: 1.42; flex: 1; }
.app-actions { display: flex; align-items: stretch; gap: 8px; margin-top: 11px; }
.open-app, .copy-link { min-height: 36px; border-radius: 9px; font-size: 11px; font-weight: 750; display: inline-flex; align-items: center; justify-content: center; gap: 7px; transition: background .2s ease, transform .2s ease; }
.open-app { flex: 1; padding: 0 13px; background: var(--navy); color: white; text-decoration: none; }
.open-app:hover { background: var(--navy-dark); }
.open-app:active, .copy-link:active { transform: scale(.98); }
.open-app svg, .copy-link svg { width: 13px; height: 13px; }
.copy-link { flex: none; padding: 0 13px; border: 1px solid #dce2ee; background: #fff; color: var(--navy); }
.copy-link:hover { background: #f3f6ff; }
.pending-state { display: flex; align-items: center; gap: 8px; min-height: 36px; width: 100%; padding: 0 11px; border: 1px solid #ebedf2; border-radius: 9px; background: #f5f6f9; color: #788397; font-size: 10.5px; font-weight: 690; }
.pending-dot { width: 7px; height: 7px; border: 1px solid #b9c1ce; border-radius: 50%; }
.manual-copy { margin-top: 13px; font-size: 12px; color: #536581; line-height: 1.5; }
.manual-copy label { display: block; margin-bottom: 6px; }
.manual-copy input { width: 100%; padding: 10px; border: 1px solid #b9cbea; border-radius: 9px; background: #f8faff; color: #243d6e; }

.site-footer { border-top: 1px solid #e5e9f1; background: white; }
.footer-inner { display: flex; align-items: center; flex-wrap: wrap; gap: 12px 20px; min-height: 56px; padding-block: 12px; }
.footer-brand { font-size: 14px; font-weight: 820; color: var(--navy); letter-spacing: -.025em; white-space: nowrap; }
.footer-brand span { color: var(--orange); }
.footer-inner p { color: #5f6d83; font-size: 12px; margin: 0; flex: 1; }
.footer-note { color: #718096; font-size: 11.5px; }

@keyframes heroAppear { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }
@keyframes cardAppear { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: translateY(0); } }

@media (max-width: 980px) {
  .cards-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero { padding: 22px 24px; }
  .footer-inner { gap: 12px 20px; }
}
@media (min-width: 981px) and (max-height: 820px) {
  .site-header { height: 56px; }
  .hero { margin-top: 9px; padding: 14px 24px 13px; }
  .hero h1 { margin: 5px 0; font-size: 32px; }
  .hero-highlights { margin-top: 9px; }
  .directory-panel { margin-top: 11px; margin-bottom: 14px; }
  .directory-heading { margin-bottom: 9px; }
  .app-card { min-height: 168px; padding: 11px 14px; }
  .app-card-top { margin-top: 7px; }
  .app-icon { width: 30px; height: 30px; }
  .app-card h3 { margin: 6px 0 3px; font-size: 15px; }
  .app-description { font-size: 10.5px; line-height: 1.35; }
  .app-actions { margin-top: 8px; }
  .footer-inner { min-height: 46px; padding-block: 9px; }
}
@media (max-width: 680px) {
  .container { width: min(100% - 30px, 520px); }
  .site-header { height: 58px; }
  .brand { gap: 9px; }
  .brand-logo { width: 118px; }
  .brand-divider { height: 19px; }
  .brand-workspace { font-size: 13px; }
  .header-note { display: none; }
  .hero { margin-top: 10px; padding: 19px 14px 17px; border-radius: 17px; }
  .hero h1 { font-size: clamp(25px, 7.5vw, 34px); line-height: 1.12; margin: 9px 0 7px; }
  .hero-tagline { font-size: 13px; margin-bottom: 5px; }
  .hero-description { font-size: 11.5px; line-height: 1.42; }
  .hero-highlights { gap: 5px; margin-top: 11px; }
  .hero-highlights > span { font-size: 9.5px; padding: 5px 8px; }
  .directory-panel { margin-top: 21px; margin-bottom: 30px; }
  .directory-heading { display: block; margin-bottom: 13px; }
  .directory-heading h2 { font-size: 23px; margin-top: 5px; }
  .directory-caption { display: none; }
  .cards-grid { grid-template-columns: 1fr; gap: 9px; }
  .app-card { padding: 13px 14px 12px; min-height: 170px; }
  .app-card-top { margin-top: 8px; }
  .app-icon { width: 32px; height: 32px; }
  .app-card h3 { margin: 7px 0 3px; font-size: 15.5px; }
  .app-description { font-size: 11px; line-height: 1.38; }
  .app-actions { margin-top: 9px; }
  .footer-inner { display: block; text-align: center; min-height: auto; padding-block: 14px; }
  .footer-inner p { margin: 6px 0; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .app-card:hover { transform: none; }
}
