:root{
  --page-bg:#f4f8fb;
  --surface:#ffffff;
  --surface-soft:#f7fafd;
  --surface-muted:#f9fbfd;
  --text-color:#16344f;
  --text-soft:#59748b;
  --line-color:#d7e2ec;
  --line-strong:#bfd1e3;
  --accent:#1561AA;
  --accent-soft:#ebf4fb;
  --success:#4AB859;
  --success-soft:#ecf8ef;
  --danger:#D45836;
  --danger-soft:#fff1ea;
  --warning-soft:#fff7e8;
  --announcement-bg:linear-gradient(90deg,#0d2e53,#103e6d);
  --topbar-bg:linear-gradient(90deg,#0d2e53,#103e6d);
  --topbar-text:#ffffff;
  --topbar-muted:rgba(255,255,255,.76);
  --shadow-lg:0 24px 64px rgba(13,46,83,.12);
  --shadow-md:0 14px 28px rgba(13,46,83,.08);
  --radius-xl:24px;
  --radius-lg:18px;
  --radius-md:14px;
  --radius-pill:999px;
}

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

html,body{
  background:var(--page-bg);
  color:var(--text-color);
  font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif;
}

body{
  min-height:100vh;
}

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

button{
  font:inherit;
}

.app{
  width:100%;
  max-width:1280px;
  margin:0 auto;
  padding:24px;
}

.shell{
  position:relative;
  border:1px solid var(--line-color);
  border-radius:var(--radius-xl);
  overflow:hidden;
  background:rgba(255,255,255,.95);
  box-shadow:var(--shadow-lg);
}

.announcement{
  background:var(--announcement-bg);
  color:#fff;
  text-align:center;
  font-size:12px;
  font-weight:600;
  padding:11px 16px;
}

.topbar{
  background:var(--topbar-bg);
  color:var(--topbar-text);
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  padding:18px 24px;
  flex-wrap:wrap;
  z-index:10;
}

.brand{
  display:flex;
  align-items:center;
  gap:12px;
  min-width:0;
}

.brand-badge{
  width:40px;
  height:40px;
  border-radius:12px;
  display:grid;
  place-items:center;
  background:#fff;
  color:var(--accent);
  font-weight:800;
  box-shadow:inset 0 0 0 1px rgba(13,46,83,.06);
}

.brand-copy{
  display:flex;
  flex-direction:column;
  min-width:0;
}

.brand-title{
  font-size:18px;
  font-weight:700;
  line-height:1.1;
  text-transform:lowercase;
}

.brand-sub{
  margin-top:4px;
  font-size:11px;
  color:var(--topbar-muted);
  letter-spacing:.08em;
  text-transform:uppercase;
}

.menu-toggle{
  display:none;
  align-items:center;
  justify-content:center;
  width:44px;
  height:44px;
  border-radius:12px;
  border:1px solid rgba(255,255,255,.16);
  background:rgba(255,255,255,.08);
  color:#fff;
  cursor:pointer;
  transition:background-color .18s ease,border-color .18s ease;
}

.menu-toggle:hover{
  background:rgba(255,255,255,.14);
}

.menu-toggle-lines{
  display:grid;
  gap:4px;
}

.menu-toggle-lines span{
  display:block;
  width:18px;
  height:2px;
  border-radius:999px;
  background:#fff;
  transition:transform .18s ease,opacity .18s ease;
}

.topbar.mobile-open .menu-toggle-lines span:nth-child(1){
  transform:translateY(6px) rotate(45deg);
}

.topbar.mobile-open .menu-toggle-lines span:nth-child(2){
  opacity:0;
}

.topbar.mobile-open .menu-toggle-lines span:nth-child(3){
  transform:translateY(-6px) rotate(-45deg);
}

.nav{
  display:flex;
  align-items:center;
  gap:8px;
  flex-wrap:wrap;
  flex:1;
  justify-content:center;
}

.nav-link{
  color:var(--topbar-muted);
  padding:9px 12px;
  border-radius:10px;
  font-size:13px;
  font-weight:500;
  transition:background-color .18s ease,color .18s ease;
}

.nav-link.active,
.nav-link:hover{
  background:rgba(255,255,255,.12);
  color:#fff;
}

.header-actions{
  display:flex;
  align-items:center;
  gap:10px;
  flex-wrap:wrap;
}

.header-panel{
  display:flex;
  align-items:center;
  gap:16px;
  flex:1;
  min-width:0;
}

.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  padding:12px 16px;
  border-radius:12px;
  border:1px solid transparent;
  cursor:pointer;
  font-weight:600;
  transition:transform .18s ease,box-shadow .18s ease,background-color .18s ease,border-color .18s ease;
}

.btn:hover{
  transform:translateY(-1px);
}

.btn-sm{
  padding:8px 12px;
  font-size:12px;
  border-radius:10px;
}

.btn-primary{
  background:var(--accent);
  color:#fff;
  box-shadow:0 10px 22px rgba(21,97,170,.24);
}

.btn-secondary{
  background:#fff;
  color:var(--accent);
  border-color:#d6e6f6;
}

.btn-ghost{
  background:transparent;
  color:var(--accent);
  border-color:var(--line-strong);
}

.btn-danger{
  background:var(--danger);
  color:#fff;
}

.btn-success{
  background:var(--success);
  color:#fff;
  box-shadow:0 10px 22px rgba(74,184,89,.24);
}

.subnav-wrap{
  background:linear-gradient(180deg,#fff8f2 0%, #fff3e8 100%);
  border-bottom:1px solid #ffd6bf;
  padding:14px 24px;
}

.prototype-bar{
  display:flex;
  align-items:flex-start;
  gap:12px;
  flex-wrap:wrap;
  margin-bottom:12px;
}

.prototype-badge{
  display:inline-flex;
  align-items:center;
  padding:7px 10px;
  border-radius:999px;
  background:#FF6A1C;
  color:#fff;
  font-size:11px;
  font-weight:700;
  letter-spacing:.04em;
  text-transform:uppercase;
}

.prototype-copy{
  color:#b15c25;
  font-size:13px;
  line-height:1.65;
  font-style:italic;
  max-width:760px;
}

.subnav{
  display:none;
  align-items:center;
  gap:10px;
  flex-wrap:wrap;
  padding:12px 14px;
  border-radius:16px;
  background:rgba(255,106,28,.05);
  border:1px dashed rgba(255,106,28,.24);
}

.subnav.active{
  display:flex;
}

.subnav-label{
  color:#FF6A1C;
  font-size:12px;
  text-transform:uppercase;
  letter-spacing:.08em;
  font-weight:700;
}

.subnav-link{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:8px 12px;
  border:1px solid #ffd8c2;
  border-radius:var(--radius-pill);
  background:rgba(255,255,255,.92);
  color:#9a582c;
  font-size:13px;
  white-space:nowrap;
  transition:background-color .18s ease,border-color .18s ease,color .18s ease;
}

.subnav-link.active{
  border-color:#ffbf96;
  background:#fff;
  color:#FF6A1C;
  font-weight:600;
}

.layout{
  min-height:820px;
}

main{
  padding:28px 24px 32px;
  background:#fff;
}

.page{
  display:none;
}

.page.active{
  display:block;
}

.page-header{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:20px;
  padding-bottom:22px;
  margin-bottom:22px;
  border-bottom:1px solid var(--line-color);
}

.eyebrow{
  color:var(--accent);
  text-transform:uppercase;
  letter-spacing:.08em;
  font-size:12px;
  font-weight:700;
  margin-bottom:8px;
}

h1{
  font-size:40px;
  line-height:1.08;
  letter-spacing:-.02em;
  margin-bottom:10px;
}

.lead{
  color:var(--text-soft);
  font-size:15px;
  line-height:1.75;
  max-width:780px;
}

.section{
  margin-bottom:28px;
}

.section-head{
  display:flex;
  justify-content:space-between;
  align-items:end;
  gap:16px;
  margin-bottom:14px;
}

.section-title{
  font-size:24px;
  letter-spacing:-.01em;
  margin-bottom:4px;
}

.section-sub{
  color:var(--text-soft);
  font-size:14px;
  line-height:1.65;
}

.flow-note{
  color:#FF6A1C;
  font-style:italic;
}

.review-card{
  background:linear-gradient(180deg,#fffaf5 0%, #fff4ea 100%);
  border:1px solid #ffd7c0;
  box-shadow:none;
}

.review-card .callout{
  background:#fff;
  border-color:#ffd8c2;
}

.tag-row{
  display:flex;
  gap:8px;
  flex-wrap:wrap;
}

.tag{
  display:inline-flex;
  align-items:center;
  padding:7px 10px;
  border-radius:var(--radius-pill);
  background:var(--accent-soft);
  color:var(--accent);
  font-size:12px;
  font-weight:600;
}

.tag.ok{
  background:var(--success-soft);
  color:#236c36;
}

.tag.warn{
  background:var(--danger-soft);
  color:var(--danger);
}

.grid-2,.grid-3,.grid-4{
  display:grid;
  gap:16px;
}

.grid-2{grid-template-columns:repeat(2,minmax(0,1fr))}
.grid-3{grid-template-columns:repeat(3,minmax(0,1fr))}
.grid-4{grid-template-columns:repeat(4,minmax(0,1fr))}

.split{
  display:grid;
  grid-template-columns:1.08fr .92fr;
  gap:16px;
}

.card,
.soft-card{
  border-radius:var(--radius-lg);
  padding:20px;
  min-width:0;
}

.card{
  background:var(--surface);
  border:1px solid var(--line-color);
  box-shadow:0 8px 18px rgba(13,46,83,.04);
}

.soft-card{
  background:var(--surface-soft);
  border:1px solid #e3ebf3;
}

.card-title{
  font-size:17px;
  line-height:1.35;
  margin-bottom:6px;
}

.card-sub{
  color:var(--text-soft);
  font-size:13px;
  line-height:1.7;
  margin-bottom:12px;
}

.placeholder{
  height:140px;
  border-radius:16px;
  background:linear-gradient(135deg,#edf4fa,#f8fbfd);
  border:1px dashed #c8dceb;
  display:grid;
  place-items:center;
  text-align:center;
  color:#6d8ba6;
  font-size:12px;
  line-height:1.6;
  padding:16px;
  margin-bottom:12px;
}

.placeholder-lg{height:220px}
.placeholder-xl{height:260px}
.placeholder-hero{height:300px}
.placeholder-map{height:280px}

.media-frame{
  overflow:hidden;
  border-radius:16px;
  background:linear-gradient(135deg,#edf4fa,#f8fbfd);
  border:1px solid #d7e3ee;
  margin-bottom:12px;
}

.media-frame img{
  display:block;
  width:100%;
  height:100%;
  object-fit:cover;
}

.media-frame iframe{
  display:block;
  width:100%;
  height:100%;
  border:0;
}

.media-wide{
  aspect-ratio:16 / 10;
}

.media-square{
  aspect-ratio:1 / 1;
}

.media-tall{
  aspect-ratio:3 / 4;
}

.media-xl{
  height:260px;
}

.media-map{
  height:280px;
}

.media-label{
  display:inline-flex;
  align-items:center;
  padding:6px 10px;
  border-radius:999px;
  background:rgba(255,255,255,.92);
  color:var(--accent);
  font-size:11px;
  font-weight:700;
  letter-spacing:.02em;
  position:absolute;
  left:16px;
  bottom:16px;
  z-index:2;
  box-shadow:0 12px 24px rgba(13,46,83,.10);
}

.media-stack{
  position:relative;
}

.hero-box.has-image{
  min-height:220px;
  padding:0;
  overflow:hidden;
  border:1px solid rgba(255,255,255,.14);
  background:rgba(255,255,255,.12);
}

.hero-box.has-image img{
  display:block;
  width:100%;
  height:100%;
  object-fit:cover;
}

.stat-grid{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:12px;
  margin-bottom:24px;
}

.stat{
  border:1px solid var(--line-color);
  border-radius:18px;
  padding:18px 16px;
  text-align:center;
  background:#fff;
}

.stat strong{
  display:block;
  color:var(--accent);
  font-size:30px;
  margin-bottom:6px;
}

.stat span{
  color:var(--text-soft);
  font-size:12px;
  line-height:1.5;
}

.list{
  display:grid;
  gap:10px;
}

.list-item{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:12px;
  padding:12px 14px;
  border:1px solid var(--line-color);
  border-radius:14px;
  background:#fff;
  transition:border-color .18s ease,transform .18s ease,box-shadow .18s ease;
}

a.list-item:hover{
  border-color:var(--line-strong);
  transform:translateY(-1px);
  box-shadow:0 10px 18px rgba(13,46,83,.06);
}

.list-copy strong{
  display:block;
  margin-bottom:4px;
  font-size:14px;
  line-height:1.45;
}

.list-copy span{
  color:var(--text-soft);
  font-size:12px;
  line-height:1.55;
}

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

.filter{
  padding:11px 12px;
  border:1px solid var(--line-color);
  border-radius:12px;
  color:var(--text-soft);
  background:#fff;
  font-size:13px;
}

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

.field{
  border:1px solid var(--line-color);
  border-radius:14px;
  padding:12px 14px;
  background:#fff;
}

.field label{
  display:block;
  font-size:11px;
  text-transform:uppercase;
  letter-spacing:.04em;
  color:var(--text-soft);
  font-weight:700;
  margin-bottom:6px;
}

.field div{
  font-size:14px;
  color:var(--text-color);
  line-height:1.55;
}

.field.full{
  grid-column:1/-1;
}

.callout{
  border-radius:18px;
  padding:18px;
  background:#f4f9ff;
  border:1px solid #d7e7f5;
  color:var(--text-soft);
  font-size:13px;
  line-height:1.75;
}

.danger-box{
  background:#fff3ef;
  border-color:#f3cec1;
  color:#7b4b3b;
}

.footer-bar{
  border-top:1px solid var(--line-color);
  padding:14px 24px;
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:16px;
  color:var(--text-soft);
  font-size:12px;
  background:rgba(255,255,255,.94);
}

.footer-links{
  display:flex;
  gap:12px;
  flex-wrap:wrap;
}

.on-dark{
  color:#fff;
}

.eyebrow-light{
  color:rgba(255,255,255,.72);
}

.mt-14{margin-top:14px}
.mt-16{margin-top:16px}
.mb-16{margin-bottom:16px}

.mobile-cta{
  display:none;
}

@media (max-width: 1080px){
  .grid-4,
  .grid-3,
  .grid-2,
  .split,
  .stat-grid,
  .form-grid,
  .toolbar{
    grid-template-columns:1fr;
  }

  .nav{
    justify-content:flex-start;
  }
}

@media (max-width: 860px){
  .app{
    padding:12px;
  }

  .topbar,
  .subnav-wrap,
  main,
  .footer-bar{
    padding-left:16px;
    padding-right:16px;
  }

  .page-header{
    flex-direction:column;
    align-items:flex-start;
  }

  h1{
    font-size:31px;
    line-height:1.12;
  }

  .topbar{
    display:grid;
    grid-template-columns:minmax(0,1fr) auto;
    align-items:center;
    gap:12px;
  }

  .brand{
    width:100%;
  }

  .menu-toggle{
    display:inline-flex;
  }

  .header-panel{
    grid-column:1 / -1;
    display:none;
    width:100%;
    flex-direction:column;
    align-items:stretch;
    gap:12px;
    padding-top:4px;
  }

  .topbar.mobile-open .header-panel{
    display:flex;
  }

  .nav{
    width:100%;
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:8px;
    padding:10px;
    border-radius:16px;
    background:rgba(255,255,255,.08);
    border:1px solid rgba(255,255,255,.12);
  }

  .nav-link{
    display:flex;
    align-items:center;
    justify-content:center;
    min-height:42px;
    text-align:center;
    background:rgba(255,255,255,.06);
  }

  .header-actions{
    width:100%;
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:10px;
  }

  .header-actions .btn{
    width:100%;
  }

  .list-item{
    flex-direction:column;
    align-items:flex-start;
  }

  .footer-bar{
    flex-direction:column;
    align-items:flex-start;
  }
}

@media (max-width: 560px){
  .announcement{
    font-size:11px;
    line-height:1.5;
  }

  .brand-title{
    font-size:16px;
  }

  .brand-sub{
    font-size:10px;
  }

  .nav{
    grid-template-columns:1fr;
    padding:8px;
  }

  .subnav-link{
    width:100%;
  }

  h1{
    font-size:28px;
  }

  .card,
  .soft-card{
    padding:16px;
  }

  .mobile-cta{
    position:fixed;
    left:12px;
    right:12px;
    bottom:12px;
    display:grid;
    gap:10px;
    z-index:20;
  }
}
