:root {
  --navy:#102846;
  --navy-dark:#0a1b30;
  --accent:#224d81;
  --ink:#172c45;
  --muted:#596b80;
  --line:#dce4ee;
  --surface:#f3f6fa;
  --white:#fff;
  --bs-primary:#102846;
  --bs-link-color:#224d81;
  --bs-link-hover-color:#102846;
}

* {
  box-sizing:border-box;
}

html {
  scroll-behavior:smooth;
  scroll-padding-top:24px;
}

body {
  margin:0;
  min-height:100vh;
  display:flex;
  flex-direction:column;
  background:#f8fafc;
  color:var(--ink);
  font-family:Inter,"Segoe UI",system-ui,sans-serif;
  line-height:1.65;
}

a {
  color:var(--accent);
  text-underline-offset:4px;
}

h1,h2,h3 {
  line-height:1.2;
  letter-spacing:-.035em;
}

h1 {
  font-weight:750;
}

p {
  color:var(--muted);
}

.site-header {
  background:var(--navy);
  border-bottom:1px solid #ffffff14;
}

.navbar {
  min-height:88px;
}

.navbar-brand {
  display:inline-flex;
  gap:10px;
  align-items:center;
  font-size:1.35rem;
  font-weight:700;
  letter-spacing:-.04em;
}

.brand-mark {
  display:inline-flex;
  position:relative;
  align-items:center;
  justify-content:center;
  width:32px;
  height:34px;
  border:1px solid #ffffff5c;
  border-radius:8px;
  font-size:20px;
}

.brand-mark span {
  position:absolute;
  right:-5px;
  top:-8px;
  font-size:14px;
  background:var(--navy);
  line-height:1;
}

.brand-dot {
  color:#a6c6ee;
  margin-left:-10px;
}

.navbar-nav {
  gap:8px;
}

.navbar-dark .navbar-nav .nav-link {
  font-size:.88rem;
  color:#c4d1e2;
  padding:9px 13px;
  border-radius:6px;
}

.navbar-dark .navbar-nav .nav-link:hover,.navbar-dark .navbar-nav .nav-link.active {
  background:#ffffff10;
  color:#fff;
}

.navbar-toggler {
  font-size:1rem;
}

.site-main {
  flex:1;
  padding-top:48px;
  padding-bottom:64px;
}

.site-footer {
  background:#fff;
  border-top:1px solid var(--line);
  padding:26px 0;
}

.footer-content {
  display:flex;
  align-items:center;
  gap:28px;
  font-size:.8rem;
  color:var(--muted);
}

.footer-brand {
  text-decoration:none;
  color:var(--navy);
  font-size:1.1rem;
  font-weight:700;
}

.footer-brand span {
  color:#608aba;
}

.footer-content>span {
  flex:1;
}

.footer-content>a:not(.footer-brand) {
  color:var(--muted);
}

.eyebrow,.editor-eyebrow {
  font-size:.68rem;
  font-weight:750;
  letter-spacing:.16em;
  color:var(--accent);
}

.btn {
  border-radius:8px;
  padding:10px 18px;
  font-size:.88rem;
  font-weight:600;
  transition:background .15s,border-color .15s,box-shadow .15s;
}

.btn-primary {
  --bs-btn-bg:var(--navy);
  --bs-btn-border-color:var(--navy);
  --bs-btn-hover-bg:var(--accent);
  --bs-btn-hover-border-color:var(--accent);
  --bs-btn-active-bg:var(--navy-dark);
  --bs-btn-active-border-color:var(--navy-dark);
  --bs-btn-disabled-bg:var(--navy);
  --bs-btn-disabled-border-color:var(--navy);
}

.btn-outline-primary {
  --bs-btn-color:var(--navy);
  --bs-btn-border-color:var(--navy);
  --bs-btn-hover-bg:var(--navy);
  --bs-btn-hover-border-color:var(--navy);
  --bs-btn-active-bg:var(--navy);
  --bs-btn-active-border-color:var(--navy);
  --bs-btn-disabled-color:var(--navy);
  --bs-btn-disabled-border-color:var(--navy);
}

.btn-success {
  --bs-btn-bg:var(--navy);
  --bs-btn-border-color:var(--navy);
  --bs-btn-hover-bg:var(--accent);
  --bs-btn-hover-border-color:var(--accent);
}

.btn-outline-secondary {
  --bs-btn-color:#435970;
  --bs-btn-border-color:#c2cedc;
  --bs-btn-hover-bg:#eaf0f7;
  --bs-btn-hover-color:var(--navy);
  --bs-btn-hover-border-color:#a4b7cf;
}

.btn:focus-visible,a:focus-visible {
  outline:3px solid #6b99d0;
  outline-offset:4px;
  box-shadow:none;
}

.form-control,.form-select {
  border-color:#cbd7e4;
  border-radius:8px;
  padding:11px 13px;
  font-size:.92rem;
  color:var(--ink);
  background-color:#fff;
}

.form-control:focus,.form-select:focus {
  border-color:#7699c1;
  box-shadow:0 0 0 3px #224d8118;
}

.form-label {
  font-size:.87rem;
  font-weight:600;
}

.alert-info {
  background:#edf3fb;
  border:1px solid #d4e1f1;
  border-radius:10px;
  color:#344f70;
  font-size:.88rem;
}

.page-heading {
  margin-bottom:30px;
}

.page-heading h1 {
  font-size:clamp(2rem,4vw,2.8rem);
  margin:12px 0;
}

.page-heading>p {
  max-width:710px;
}

.page-back {
  display:inline-block;
  text-decoration:none;
  font-size:.82rem;
  color:var(--muted);
  margin-bottom:22px;
}

.tool-surface {
  background:#fff;
  border:1px solid var(--line);
  border-radius:16px;
  padding:30px;
  max-width:850px;
}

.tool-surface fieldset {
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:4px 20px;
}

.tool-surface fieldset>.mb-3:first-child {
  grid-column:1/-1;
}

.tool-surface fieldset>.btn {
  justify-self:start;
  align-self:end;
  grid-column:1/-1;
  margin-top:4px;
}

progress {
  accent-color:var(--navy);
}

.home-hero {
  display:grid;
  grid-template-columns:1.15fr 1fr;
  align-items:center;
  gap:50px;
  padding:30px 0 68px;
}

.hero-copy h1 {
  font-size:clamp(2.8rem,5vw,4.3rem);
  line-height:1.08;
  margin:20px 0 24px;
  letter-spacing:-.055em;
}

.hero-copy h1 span {
  color:#6380a3;
}

.hero-copy>p {
  font-size:1.03rem;
  max-width:475px;
  margin-bottom:28px;
}

.hero-copy .btn {
  font-size:.9rem;
  padding:14px 24px;
}

.hero-copy .btn span {
  margin-left:30px;
}

.hero-notes {
  display:flex;
  gap:19px;
  font-size:.74rem;
  color:var(--muted);
  margin-top:24px;
  flex-wrap:wrap;
}

.hero-art {
  position:relative;
  min-height:350px;
  display:flex;
  align-items:center;
  justify-content:center;
}

.art-orbit {
  position:absolute;
  width:320px;
  height:320px;
  border:1px solid #d3dfea;
  border-radius:50%;
  background:radial-gradient(circle,#e0e9f5 0%,#edf2f8 60%,#f8fafc 72%);
}

.art-document {
  position:absolute;
  width:215px;
  height:280px;
  padding:24px;
  border-radius:10px;
  box-shadow:0 12px 35px #10284616;
}

.art-document-back {
  transform:translate(65px,-12px) rotate(13deg);
  background:#d9e5f3;
  color:#456387;
  border:1px solid #c5d5e8;
}

.art-document-back>span {
  font-size:.7rem;
  font-weight:700;
  letter-spacing:.1em;
  display:block;
  margin-bottom:90px;
}

.art-document-front {
  transform:translate(-24px,6px) rotate(-8deg);
  background:white;
  border:1px solid #d8e1ee;
}

.art-doc-top {
  display:flex;
  justify-content:space-between;
  font-size:.67rem;
  letter-spacing:.08em;
  font-weight:700;
}

.art-doc-top>span:first-child {
  background:#e9f0f9;
  padding:3px 9px;
  border-radius:4px;
}

.art-doc-title {
  font-size:1.25rem;
  line-height:1.3;
  font-weight:650;
  letter-spacing:-.04em;
  margin:26px 0 22px;
}

.art-document i {
  display:block;
  height:4px;
  border-radius:3px;
  background:#dce5ef;
  margin:9px 0;
}

.art-document i:nth-of-type(2) {
  width:85%;
}

.art-document i:nth-of-type(3) {
  width:60%;
}

.art-doc-bottom {
  display:flex;
  justify-content:space-between;
  font-size:.48rem;
  color:var(--muted);
  margin-top:28px;
}

.art-badge {
  position:absolute;
  bottom:12px;
  right:15px;
  padding:12px 18px;
  background:var(--navy);
  color:#fff;
  border-radius:9px;
  font-size:.72rem;
  box-shadow:0 8px 24px #10284625;
}

.tools-section {
  scroll-margin-top:24px;
}

.section-heading {
  display:flex;
  justify-content:space-between;
  align-items:end;
  gap:24px;
  margin-bottom:25px;
}

.section-heading h2 {
  font-size:clamp(1.6rem,3vw,2rem);
  font-weight:700;
  margin:10px 0 0;
}

.section-heading>p {
  font-size:.83rem;
  margin:0;
  text-align:right;
}

.tools-grid {
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:20px;
}

.tool-card {
  display:flex;
  flex-direction:column;
  background:#fff;
  border:1px solid var(--line);
  padding:28px;
  border-radius:14px;
  text-decoration:none;
  color:var(--ink);
  transition:transform .18s,box-shadow .18s,border-color .18s;
}

.tool-card:hover {
  color:var(--ink);
  transform:translateY(-4px);
  border-color:#91abc9;
  box-shadow:0 12px 28px #1028460d;
}

.tool-card-top {
  display:flex;
  align-items:center;
  justify-content:space-between;
  margin-bottom:28px;
  gap:12px;
}

.tool-icon {
  background:#edf2f9;
  display:grid;
  place-items:center;
  border-radius:11px;
  width:48px;
  height:48px;
  color:var(--navy);
}

.tool-icon svg {
  width:24px;
  height:24px;
  fill:none;
  stroke:currentColor;
  stroke-width:1.5;
  stroke-linecap:round;
  stroke-linejoin:round;
}

.tool-category {
  font-size:.59rem;
  letter-spacing:.12em;
  font-weight:700;
  color:var(--muted);
}

.tool-card h3 {
  font-size:1.2rem;
  font-weight:700;
  margin-bottom:13px;
}

.tool-card p {
  font-size:.87rem;
  line-height:1.75;
  margin-bottom:22px;
}

.tool-detail {
  font-size:.73rem;
  color:var(--muted);
  margin-top:auto;
  padding-bottom:22px;
}

.tool-link {
  display:flex;
  justify-content:space-between;
  border-top:1px solid #e6edf5;
  padding-top:18px;
  font-size:.82rem;
  font-weight:650;
  color:var(--navy);
}

.local-banner {
  display:flex;
  gap:22px;
  align-items:center;
  margin-top:36px;
  padding:28px 32px;
  background:#edf2f8;
  border:1px solid #e0e8f1;
  border-radius:14px;
}

.local-symbol {
  font-size:2rem;
  color:var(--accent);
}

.local-banner h2 {
  font-size:1rem;
  font-weight:700;
  letter-spacing:-.02em;
}

.local-banner p {
  font-size:.82rem;
  margin:0;
  max-width:650px;
}

.local-banner>a {
  margin-left:auto;
  white-space:nowrap;
  font-size:.8rem;
  font-weight:600;
}

.privacy-copy h2 {
  font-size:1.15rem;
  margin-top:28px;
}

.privacy-copy p {
  font-size:.94rem;
}

.skip-link {
  position:absolute;
  left:12px;
  top:-100px;
  background:white;
  color:var(--navy);
  padding:12px;
  z-index:100;
}

.skip-link:focus {
  top:8px;
}

[hidden] {
  display:none!important;
}

@media(max-width:991px) {
  .home-hero {
    gap:15px;
  }
  .hero-art {
    transform:scale(.9);
  }
  .tool-card {
    padding:22px;
  }
  .tool-card-top {
    flex-wrap:wrap;
  }
  .local-banner {
    flex-wrap:wrap;
  }
  .local-banner>a {
    margin-left:0;
  }
  .footer-content {
    flex-wrap:wrap;
  }
  .footer-content>span {
    min-width:200px;
  }
}

@media(max-width:767px) {
  .navbar {
    min-height:72px;
  }
  .site-main {
    padding-top:30px;
    padding-bottom:40px;
  }
  .navbar-nav {
    padding:14px 0;
  }
  .home-hero {
    grid-template-columns:1fr;
    padding:12px 0 36px;
  }
  .hero-copy h1 {
    font-size:3.2rem;
  }
  .hero-art {
    min-height:310px;
    margin:10px 0;
    transform:scale(.9);
  }
  .tools-grid {
    grid-template-columns:1fr;
  }
  .tool-card-top {
    flex-wrap:nowrap;
    margin-bottom:20px;
  }
  .section-heading {
    align-items:start;
  }
  .section-heading>p {
    display:none;
  }
  .local-banner {
    padding:24px;
    gap:12px;
  }
  .local-symbol {
    display:none;
  }
  .tool-surface {
    padding:22px;
  }
  .tool-surface fieldset {
    grid-template-columns:1fr;
  }
  .footer-content {
    gap:14px;
  }
  .footer-content>span {
    flex-basis:100%;
    order:3;
  }
  .page-heading h1 {
    font-size:2.2rem;
  }
}

@media(prefers-reduced-motion:reduce) {
  html {
    scroll-behavior:auto;
  }
  *,*::before,*::after {
    transition:none!important;
  }
}

@media (max-width: 380px) {
  .hero-art {
    transform: scale(.75);
    min-height: 280px;
    margin: 0;
  }
}

.arrow-icon {
  width: 14px;
  height: 14px;
  vertical-align: middle;
  flex-shrink: 0;
}
.local-symbol svg {
  width: 30px;
  height: 30px;
}
