:root {
  --ojt-ink: #17202a;
  --ojt-muted: #68717d;
  --ojt-surface: #ffffff;
  --ojt-page: #f6f7f8;
  --ojt-accent: #054493;
  --ojt-accent-dark: #03346f;
  --ojt-accent-bright: #03ade7;
  --ojt-border: #e6e8eb;
  --ojt-radius: 0.9rem;
  --bs-body-font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --bs-body-color: var(--ojt-ink);
  --bs-body-bg: var(--ojt-page);
  --bs-primary: var(--ojt-accent);
  --bs-primary-rgb: 5, 68, 147;
  --bs-link-color: #054493;
  --bs-link-hover-color: #03346f;
}

body {
  color: var(--ojt-ink);
  font-family: var(--bs-body-font-family);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

body.bg-body-tertiary {
  background-color: var(--ojt-page) !important;
}

h1,
h2,
h3,
.h1,
.h2,
.h3 {
  letter-spacing: -0.035em;
}

.text-secondary {
  color: var(--ojt-muted) !important;
}

.site-header {
  position: relative;
  z-index: 10;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--ojt-border);
}

.site-brand {
  display: inline-block;
  width: 150px;
  height: 75px;
  overflow: hidden;
  line-height: 0;
}

.site-logo {
  display: block;
  width: 340px;
  height: auto;
  transform: translate(-66px, -72px);
}

.btn {
  --bs-btn-font-weight: 650;
  --bs-btn-border-radius: 0.55rem;
}

.btn-primary,
.btn-accent {
  --bs-btn-color: #fff;
  --bs-btn-bg: var(--ojt-accent);
  --bs-btn-border-color: var(--ojt-accent);
  --bs-btn-hover-color: #fff;
  --bs-btn-hover-bg: var(--ojt-accent-dark);
  --bs-btn-hover-border-color: var(--ojt-accent-dark);
  --bs-btn-active-bg: var(--ojt-accent-dark);
  --bs-btn-active-border-color: var(--ojt-accent-dark);
  box-shadow: 0 0.45rem 1rem rgba(5, 68, 147, 0.18);
}

.card {
  background-color:#ffffff;
  border-radius: var(--ojt-radius);
 box-shadow: 0 1rem 2.6rem rgba(23, 32, 42, 0.1);
}

.form-control,
.form-select {
  border-color: #dfe2e6;
  border-radius: 0.55rem;
  min-height: 2.75rem;
}

.form-control:focus,
.form-select:focus {
  border-color: var(--ojt-accent);
  box-shadow: 0 0 0 0.2rem rgba(3, 173, 231, 0.2);
}

.alert-success {
  --bs-alert-color: #175842;
  --bs-alert-bg: #eaf7f2;
  --bs-alert-border-color: #cceade;
  border-radius: var(--ojt-radius);
}

.home-hero {
  position: relative;
  overflow: hidden;
  padding: 6.5rem 0 8.25rem;
  background:
    radial-gradient(circle at 16% 18%, rgba(50, 135, 166, 0.38), transparent 30%),
    radial-gradient(circle at 82% 12%, rgba(3, 173, 231, 0.22), transparent 24%),
    linear-gradient(135deg, #263a47 0%, #17242d 48%, #202225 100%);
}

.home-hero::after {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 48px 48px;
  content: "";
  mask-image: linear-gradient(to bottom, black, transparent);
}

.home-hero .container {
  position: relative;
  z-index: 1;
}

.home-hero .lead {
  color: rgba(255, 255, 255, 0.72);
}

.eyebrow {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.text-accent {
  color: var(--ojt-accent);
}

.stats-wrap {
  position: relative;
  z-index: 2;
  margin-top: -4.5rem;
}

.stats-panel {
  overflow: hidden;
  max-width: 900px;
  margin: 0 auto;
  background: var(--ojt-surface);
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: var(--ojt-radius);
  box-shadow: 0 1.2rem 3rem rgba(23, 32, 42, 0.16);
}

.stat-item {
  padding: 1.6rem 1rem;
}

.stat-item + .stat-item {
  border-left: 1px solid var(--ojt-border);
}

.stat-item strong,
.stat-item span,
.stat-item small {
  display: block;
}

.stat-item strong {
  font-size: clamp(1.8rem, 4vw, 2.55rem);
  line-height: 1;
  letter-spacing: -0.06em;
}

.stat-item span {
  margin-top: 0.55rem;
  font-weight: 700;
}

.stat-item small {
  margin-top: 0.2rem;
  color: var(--ojt-muted);
}

.section-space {
  padding-top: 6rem;
  padding-bottom: 6rem;
}

.section-heading {
  max-width: 650px;
  margin-bottom: 2.5rem;
}

.section-heading h2 {
  font-weight: 750;
}

.feature-card {
  background: linear-gradient(135deg, #fff 0%, #f1f8ff 100%);
  box-shadow: 0 1rem 2.6rem rgba(23, 32, 42, 0.08);
}

.tool-icon {
  display: inline-grid;
  width: 2.75rem;
  height: 2.75rem;
  margin-bottom: 1.2rem;
  color: #fff;
  background: var(--ojt-accent);
  border-radius: 0.75rem;
  place-items: center;
  font-size: 1.35rem;
  font-weight: 700;
}

.values-section {
  background: #fff;
  border-top: 1px solid var(--ojt-border);
  border-bottom: 1px solid var(--ojt-border);
}

.value-card {
  padding: 2rem;
  background: #f8f9fa;
  border: 1px solid var(--ojt-border);
  border-radius: var(--ojt-radius);
}

.value-number {
  display: block;
  margin-bottom: 2rem;
  color: var(--ojt-accent);
  font-size: 0.75rem;
  font-weight: 800;
}

footer {
  border-color: var(--ojt-border) !important;
}

.age-tool-card {
  box-shadow: 0 1rem 2.6rem rgba(23, 32, 42, 0.1);
}

.age-results {
  border-left: 0.3rem solid var(--ojt-accent) !important;
}

.age-result-title {
  font-size: clamp(1.65rem, 5vw, 2.4rem);
  font-weight: 750;
  line-height: 1.2;
}

.age-breakdown dt,
.age-breakdown dd {
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
  margin-bottom: 0;
  border-top: 1px solid var(--ojt-border);
}

.age-breakdown dd {
  font-weight: 700;
}

.content-column {
  max-width: 760px;
}

.content-column > h2:not(:first-child) {
  margin-top: 2.5rem;
}

/* Shared layout for focused tool pages. */
.image-tool-shell > header,
.tool-page-heading {
  max-width: 820px;
  margin-right: auto;
  margin-left: auto;
  text-align: center;
}

.image-tool-shell > header h1,
.tool-page-heading h1 {
  font-size: clamp(2.25rem, 6vw, 3rem);
  font-weight: 750;
}

.image-tool-shell > header > p:first-of-type,
.tool-page-heading .lead {
  color: var(--ojt-muted);
  font-size: 1.15rem;
}

.image-tool-shell > header [role="note"] {
  color: var(--ojt-muted);
  font-size: 0.875rem;
}

.image-tool-shell > [data-image-tool] > .card,
.tool-interface-card {
  border: 0;
  box-shadow: 0 1rem 2.6rem rgba(23, 32, 42, 0.1);
}

.image-tool-content {
  max-width: none !important;
}

.image-tool-content > section {
  position: relative;
  z-index: 0;
  max-width: 960px;
  padding-top: 4.5rem;
  padding-bottom: 4.5rem;
  margin: 0 auto !important;
}

.image-tool-content > section::before {
  position: absolute;
  z-index: -1;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 100vw;
  background: var(--ojt-page);
  content: "";
  transform: translateX(-50%);
}

.image-tool-content > section:nth-child(odd)::before {
  background: #fff;
  border-top: 1px solid var(--ojt-border);
  border-bottom: 1px solid var(--ojt-border);
}

.image-tool-content > section h2 {
  font-weight: 750;
}

.tool-directory-grid {
  padding-bottom: 5rem;
}

/* Tool directory and the legacy tool chooser use the same centered introduction. */
body > .site-header + main.container > header:first-child,
body > .site-header + main.container > .mx-auto[style*="max-width:760px"] {
  max-width: 820px !important;
  margin-right: auto;
  margin-left: auto;
  text-align: center;
}

body > .site-header + main.container > header:first-child h1,
body > .site-header + main.container > .mx-auto[style*="max-width:760px"] > h1 {
  font-size: clamp(2.25rem, 6vw, 3rem);
  font-weight: 750;
}

body > .site-header + main.container > header:first-child .lead,
body > .site-header + main.container > .mx-auto[style*="max-width:760px"] > p {
  color: var(--ojt-muted);
}

body > .site-header + main.container > header:first-child .alert {
  display: inline-block;
  padding: 0;
  margin-bottom: 0;
  color: var(--ojt-muted);
  background: transparent;
  border: 0;
}

body > .site-header + main.container > .mx-auto[style*="max-width:760px"] .row {
  text-align: left;
}

.accordion-button {
  font-weight: 650;
}

.accordion-button:not(.collapsed) {
  color: var(--ojt-accent-dark);
  background: #eef6ff;
}

@media (max-width: 767.98px) {
  .home-hero {
    padding: 4.75rem 0 7rem;
  }

  .stats-wrap {
    padding-right: 1.5rem;
    padding-left: 1.5rem;
  }

  .stat-item + .stat-item {
    border-top: 1px solid var(--ojt-border);
    border-left: 0;
  }

  .section-space {
    padding-top: 4.5rem;
    padding-bottom: 4.5rem;
  }

  .image-tool-content > section {
    padding-top: 3.5rem;
    padding-bottom: 3.5rem;
  }
}
