:root {
  --night: #09283f;
  --night-soft: #123c59;
  --sky: #197da9;
  --sky-bright: #48a9ce;
  --sky-pale: #dff1f7;
  --mist: #f2f7f9;
  --cloud: #ffffff;
  --sun: #f2b95c;
  --sun-pale: #fff3d9;
  --ink: #132c3d;
  --muted: #526d7c;
  --line: #cddde4;
  --success: #1b745b;
  --success-bg: #e5f4ee;
  --warning: #8d5a11;
  --warning-bg: #fff4da;
  --error: #a33b44;
  --error-bg: #fdebed;
  --shadow-sm: 0 8px 24px rgba(9, 40, 63, 0.08);
  --shadow-lg: 0 24px 64px rgba(9, 40, 63, 0.14);
  --radius-sm: 12px;
  --radius-md: 20px;
  --radius-lg: 32px;
  --max-width: 1180px;
}

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

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--mist);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 1rem;
  line-height: 1.65;
}

body::before {
  background: var(--sun);
  content: "";
  display: block;
  height: 5px;
}

a {
  color: #126b93;
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--night);
}

img {
  display: block;
  height: auto;
  max-width: 100%;
}

button,
input {
  font: inherit;
}

button {
  color: inherit;
}

:focus-visible {
  outline: 3px solid var(--sun);
  outline-offset: 3px;
}

.visually-hidden {
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  height: 1px;
  overflow: hidden;
  position: absolute;
  white-space: nowrap;
  width: 1px;
}

.skip-link {
  background: var(--night);
  color: white;
  left: 1rem;
  padding: 0.7rem 1rem;
  position: fixed;
  top: -5rem;
  z-index: 100;
}

.skip-link:focus {
  top: 1rem;
}

.site-header {
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 30;
}

.header-inner {
  align-items: center;
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  margin: 0 auto;
  max-width: var(--max-width);
  min-height: 76px;
  padding: 0.65rem 1.25rem;
}

.brand {
  align-items: center;
  color: var(--night);
  display: inline-flex;
  font-size: 1.08rem;
  font-weight: 830;
  gap: 0.75rem;
  letter-spacing: -0.025em;
  text-decoration: none;
}

.brand:hover {
  color: var(--night);
}

.brand img {
  border-radius: 13px;
  height: 46px;
  width: 46px;
}

.site-nav {
  align-items: center;
  display: flex;
  gap: 0.3rem;
}

.site-nav a,
.nav-button {
  background: transparent;
  border: 0;
  border-radius: 999px;
  color: var(--ink);
  cursor: pointer;
  font-size: 0.91rem;
  font-weight: 680;
  padding: 0.55rem 0.78rem;
  text-decoration: none;
}

.site-nav a:hover,
.site-nav a[aria-current="page"],
.nav-button:hover {
  background: var(--sky-pale);
  color: var(--night);
}

.menu-button {
  align-items: center;
  background: white;
  border: 1px solid var(--line);
  border-radius: 12px;
  cursor: pointer;
  display: none;
  font-weight: 760;
  gap: 0.55rem;
  padding: 0.62rem 0.82rem;
}

.menu-lines,
.menu-lines::before,
.menu-lines::after {
  background: currentColor;
  border-radius: 3px;
  content: "";
  display: block;
  height: 2px;
  width: 18px;
}

.menu-lines {
  position: relative;
}

.menu-lines::before {
  position: absolute;
  top: -6px;
}

.menu-lines::after {
  position: absolute;
  top: 6px;
}

main {
  min-height: 65vh;
}

.home-hero {
  background: var(--night);
  color: white;
  overflow: hidden;
  padding: 6.5rem 1.25rem 6rem;
  position: relative;
}

.home-hero::before,
.home-hero::after {
  background: var(--night-soft);
  border-radius: 50%;
  content: "";
  position: absolute;
}

.home-hero::before {
  height: 360px;
  right: -120px;
  top: -160px;
  width: 360px;
}

.home-hero::after {
  bottom: -230px;
  height: 430px;
  left: 20%;
  width: 430px;
}

.hero-grid {
  align-items: center;
  display: grid;
  gap: clamp(2.5rem, 6vw, 6rem);
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  margin: 0 auto;
  max-width: var(--max-width);
  position: relative;
  z-index: 1;
}

.eyebrow {
  color: var(--sky);
  font-size: 0.77rem;
  font-weight: 850;
  letter-spacing: 0.14em;
  margin: 0 0 0.85rem;
  text-transform: uppercase;
}

.home-hero .eyebrow {
  color: #91d7ee;
}

.home-hero h1,
.page-hero h1 {
  font-size: clamp(2.7rem, 6.2vw, 5.4rem);
  letter-spacing: -0.06em;
  line-height: 0.96;
  margin: 0;
}

.home-hero .lead {
  color: #d5e6ee;
  font-size: clamp(1.08rem, 2vw, 1.3rem);
  margin: 1.6rem 0 0;
  max-width: 690px;
}

.button-row {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 2rem;
}

.button {
  align-items: center;
  border: 1px solid transparent;
  border-radius: 999px;
  cursor: pointer;
  display: inline-flex;
  font-weight: 780;
  justify-content: center;
  min-height: 48px;
  padding: 0.72rem 1.25rem;
  text-decoration: none;
}

.button:disabled {
  cursor: not-allowed;
  opacity: 0.52;
}

.button-primary {
  background: var(--sun);
  color: var(--night);
}

.button-primary:hover {
  background: #ffd17b;
  color: var(--night);
}

.button-secondary {
  background: white;
  border-color: var(--line);
  color: var(--night);
}

.button-ghost {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.45);
  color: white;
}

.button-ghost:hover {
  background: white;
  color: var(--night);
}

.sky-instrument {
  background: #eaf5f8;
  border: 1px solid #9ccfe0;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  color: var(--ink);
  min-height: 440px;
  overflow: hidden;
  padding: 1.3rem;
  position: relative;
}

.instrument-sun {
  background: var(--sun);
  border-radius: 50%;
  height: 82px;
  position: absolute;
  right: 54px;
  top: 42px;
  width: 82px;
}

.cloud-shape {
  background: white;
  border-radius: 999px;
  box-shadow: 0 12px 25px rgba(9, 40, 63, 0.13);
  height: 70px;
  left: 55px;
  position: absolute;
  top: 116px;
  width: 250px;
}

.cloud-shape::before,
.cloud-shape::after {
  background: white;
  border-radius: 50%;
  content: "";
  position: absolute;
}

.cloud-shape::before {
  height: 115px;
  left: 48px;
  top: -55px;
  width: 115px;
}

.cloud-shape::after {
  height: 82px;
  right: 30px;
  top: -36px;
  width: 82px;
}

.altitude-board {
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  bottom: 1.25rem;
  left: 1.25rem;
  padding: 1rem;
  position: absolute;
  right: 1.25rem;
}

.altitude-board > strong {
  color: var(--night);
  display: block;
  font-size: 1.02rem;
  margin-bottom: 0.75rem;
}

.altitude-row {
  align-items: center;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 0.75rem;
  grid-template-columns: 58px 1fr;
  padding: 0.55rem 0;
}

.altitude-row span:first-child {
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.altitude-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.altitude-tags span,
.tag {
  background: var(--sky-pale);
  border-radius: 999px;
  color: var(--night);
  font-size: 0.78rem;
  font-weight: 760;
  padding: 0.2rem 0.55rem;
}

.section {
  padding: 5.5rem 1.25rem;
}

.section-white {
  background: white;
}

.section-night {
  background: var(--night);
  color: white;
}

.section-inner {
  margin: 0 auto;
  max-width: var(--max-width);
}

.section-heading {
  max-width: 740px;
}

.section-heading h2 {
  color: var(--night);
  font-size: clamp(2rem, 4vw, 3.45rem);
  letter-spacing: -0.045em;
  line-height: 1.04;
  margin: 0;
}

.section-night .section-heading h2 {
  color: white;
}

.section-heading > p:last-child {
  color: var(--muted);
  font-size: 1.08rem;
  margin: 1rem 0 0;
}

.section-night .section-heading > p:last-child {
  color: #d0e1e9;
}

.feature-grid,
.cloud-grid,
.metric-grid,
.fact-grid {
  display: grid;
  gap: 1rem;
  margin-top: 2.25rem;
}

.feature-grid {
  grid-template-columns: repeat(3, 1fr);
}

.feature-card,
.cloud-card,
.metric-card,
.fact-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 1.35rem;
}

.feature-card {
  box-shadow: var(--shadow-sm);
}

.feature-index {
  align-items: center;
  background: var(--sky-pale);
  border-radius: 50%;
  color: var(--night);
  display: inline-flex;
  font-size: 0.78rem;
  font-weight: 850;
  height: 34px;
  justify-content: center;
  width: 34px;
}

.feature-card h3,
.cloud-card h3,
.fact-card h3 {
  color: var(--night);
  line-height: 1.2;
  margin: 1rem 0 0;
}

.feature-card p,
.cloud-card p,
.fact-card p {
  color: var(--muted);
  margin: 0.65rem 0 0;
}

.metric-grid {
  grid-template-columns: repeat(4, 1fr);
}

.metric-card strong {
  color: var(--night);
  display: block;
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  letter-spacing: -0.04em;
}

.metric-card span {
  color: var(--muted);
  font-size: 0.9rem;
}

.cloud-grid {
  grid-template-columns: repeat(3, 1fr);
}

.cloud-card {
  display: flex;
  flex-direction: column;
  min-height: 260px;
  position: relative;
}

.cloud-card::before {
  background: var(--sky);
  border-radius: var(--radius-md) var(--radius-md) 0 0;
  content: "";
  height: 6px;
  left: -1px;
  position: absolute;
  right: -1px;
  top: -1px;
}

.cloud-card[data-level="high"]::before {
  background: #715aa1;
}

.cloud-card[data-level="middle"]::before {
  background: var(--sky);
}

.cloud-card[data-level="low"]::before {
  background: var(--success);
}

.cloud-card[data-level="vertical"]::before {
  background: var(--sun);
}

.cloud-card[data-level="human"]::before {
  background: #6d7781;
}

.cloud-card-header {
  align-items: center;
  display: flex;
  justify-content: space-between;
}

.cloud-code {
  align-items: center;
  background: var(--night);
  border-radius: 10px;
  color: white;
  display: inline-flex;
  font-size: 0.8rem;
  font-weight: 850;
  height: 34px;
  justify-content: center;
  letter-spacing: 0.04em;
  min-width: 40px;
  padding: 0 0.5rem;
}

.level-label {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 820;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.cloud-card a {
  font-weight: 780;
  margin-top: auto;
  padding-top: 1rem;
}

.notice {
  background: var(--sun-pale);
  border: 1px solid #edcf91;
  border-left: 6px solid var(--sun);
  border-radius: var(--radius-sm);
  color: #5d451d;
  padding: 1rem 1.15rem;
}

.notice strong {
  color: var(--ink);
  display: block;
  margin-bottom: 0.2rem;
}

.notice.info {
  background: var(--sky-pale);
  border-color: #add5e4;
  border-left-color: var(--sky);
  color: var(--night-soft);
}

.page-hero {
  background: #dff1f7;
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  padding: 5.3rem 1.25rem 4.4rem;
  position: relative;
}

.page-hero::after {
  background: #c7e7f2;
  border-radius: 50%;
  content: "";
  height: 280px;
  position: absolute;
  right: -70px;
  top: -100px;
  width: 280px;
}

.page-hero-inner {
  margin: 0 auto;
  max-width: var(--max-width);
  position: relative;
  z-index: 1;
}

.page-hero h1 {
  color: var(--night);
  max-width: 920px;
}

.page-hero .lead {
  color: var(--muted);
  font-size: clamp(1.08rem, 2vw, 1.28rem);
  margin: 1.35rem 0 0;
  max-width: 780px;
}

.page-kicker {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 1rem;
}

.article-shell {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: minmax(0, 1fr) 280px;
  margin: 0 auto;
  max-width: var(--max-width);
  padding: 3rem 1.25rem 5.5rem;
}

.article-card,
.article-aside {
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

.article-card {
  min-width: 0;
  padding: clamp(1.4rem, 4vw, 3.2rem);
}

.article-aside {
  align-self: start;
  padding: 1.2rem;
  position: sticky;
  top: 96px;
}

.article-card h2,
.article-card h3 {
  color: var(--night);
  line-height: 1.18;
}

.article-card h2 {
  font-size: clamp(1.55rem, 3vw, 2.25rem);
  letter-spacing: -0.03em;
  margin: 2.5rem 0 0.8rem;
}

.article-card h2:first-child {
  margin-top: 0;
}

.article-card h3 {
  margin: 1.7rem 0 0.5rem;
}

.article-card p,
.article-card ul,
.article-card ol {
  margin: 0.7rem 0 0;
}

.article-card li + li {
  margin-top: 0.45rem;
}

.article-card blockquote {
  background: var(--sky-pale);
  border-left: 4px solid var(--sky);
  margin: 1.3rem 0;
  padding: 1rem 1.2rem;
}

.fact-grid {
  grid-template-columns: repeat(2, 1fr);
}

.fact-card {
  background: var(--mist);
  box-shadow: none;
}

.fact-card h3 {
  font-size: 0.84rem;
  letter-spacing: 0.09em;
  margin: 0;
  text-transform: uppercase;
}

.article-aside h2 {
  color: var(--night);
  font-size: 1rem;
  margin: 0;
}

.article-aside ul {
  list-style: none;
  margin: 0.8rem 0 0;
  padding: 0;
}

.article-aside li + li {
  border-top: 1px solid var(--line);
}

.article-aside a {
  display: block;
  font-size: 0.9rem;
  font-weight: 680;
  padding: 0.62rem 0;
  text-decoration: none;
}

.reference-list a {
  overflow-wrap: anywhere;
}

.table-scroll {
  overflow-x: auto;
}

table {
  border-collapse: collapse;
  margin: 1.25rem 0;
  min-width: 620px;
  width: 100%;
}

th,
td {
  border: 1px solid var(--line);
  padding: 0.75rem;
  text-align: left;
  vertical-align: top;
}

th {
  background: var(--sky-pale);
  color: var(--night);
}

.recognizer-section {
  padding: 3rem 1.25rem 5.5rem;
}

.recognizer-shell {
  margin: 0 auto;
  max-width: var(--max-width);
}

.recognizer-workspace {
  align-items: start;
  display: grid;
  gap: 1.25rem;
  grid-template-columns: minmax(0, 1.03fr) minmax(330px, 0.97fr);
}

.recognizer-card,
.result-card,
.recognizer-details {
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  padding: clamp(1.25rem, 3vw, 2rem);
}

.result-card {
  max-height: calc(100vh - 108px);
  overflow-y: auto;
  position: sticky;
  top: 94px;
}

.recognizer-heading-row {
  align-items: start;
  display: flex;
  gap: 1rem;
  justify-content: space-between;
}

.recognizer-card h2,
.result-card h2,
.recognizer-details h2 {
  color: var(--night);
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin: 0;
}

.privacy-chip {
  background: var(--success-bg);
  border: 1px solid #a7d4c5;
  border-radius: 999px;
  color: var(--success);
  flex: 0 0 auto;
  font-size: 0.76rem;
  font-weight: 820;
  padding: 0.38rem 0.65rem;
}

.model-picker {
  border: 0;
  margin: 1.4rem 0 0;
  min-width: 0;
  padding: 0;
}

.model-picker legend {
  color: var(--night);
  font-size: 0.9rem;
  font-weight: 820;
  padding: 0;
}

.model-picker-help {
  color: var(--muted);
  font-size: 0.86rem;
  margin: 0.25rem 0 0.75rem;
}

.model-switch {
  --model-position: 0;
  background: #e7f0f4;
  border: 1px solid #bfd3dc;
  border-radius: 18px;
  display: grid;
  isolation: isolate;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  overflow: hidden;
  padding: 4px;
  position: relative;
}

.model-switch[data-selected="1"] {
  --model-position: 1;
}

.model-switch[data-selected="2"] {
  --model-position: 2;
}

.model-switch[data-selected="3"] {
  --model-position: 3;
}

.model-switch::before {
  background: white;
  border: 1px solid #92bdce;
  border-radius: 14px;
  bottom: 4px;
  box-shadow: 0 4px 14px rgba(9, 40, 63, 0.12);
  content: "";
  left: 4px;
  position: absolute;
  top: 4px;
  transform: translateX(calc(var(--model-position) * 100%));
  transition: transform 220ms ease;
  width: calc((100% - 8px) / 4);
  z-index: 0;
}

.model-switch-option {
  cursor: pointer;
  min-width: 0;
  position: relative;
  z-index: 1;
}

.model-switch-label {
  align-items: center;
  border-radius: 14px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 68px;
  padding: 0.55rem 0.3rem;
  position: relative;
  text-align: center;
  transition: color 160ms ease;
  width: 100%;
}

.model-switch-label strong,
.model-switch-label small {
  display: block;
}

.model-switch-label strong {
  color: #315269;
  font-size: 0.84rem;
  line-height: 1.2;
}

.model-switch-label small {
  color: var(--muted);
  font-size: 0.7rem;
  line-height: 1.2;
  margin-top: 0.25rem;
}

.model-switch-option:hover .model-switch-label strong {
  color: var(--sky);
}

.model-switch-option input:checked + .model-switch-label strong {
  color: var(--night);
}

.model-switch-option input:focus-visible + .model-switch-label {
  outline: 3px solid var(--sun);
  outline-offset: -2px;
}

.model-switch-option input:disabled + .model-switch-label {
  cursor: wait;
  opacity: 0.62;
}

.model-switch-caption {
  color: var(--muted);
  font-size: 0.8rem;
  margin: 0.55rem 0 0;
  text-align: center;
}

.drop-zone {
  align-items: center;
  background: var(--mist);
  border: 2px dashed #91b8c9;
  border-radius: var(--radius-md);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  justify-content: center;
  margin-top: 1.4rem;
  min-height: 240px;
  padding: 1.5rem;
  text-align: center;
}

.drop-zone:hover,
.drop-zone[data-dragging="true"] {
  background: var(--sky-pale);
  border-color: var(--sky);
}

.drop-zone-icon {
  align-items: center;
  background: var(--night);
  border-radius: 50%;
  color: white;
  display: inline-flex;
  font-size: 1.6rem;
  height: 54px;
  justify-content: center;
  margin-bottom: 0.8rem;
  width: 54px;
}

.drop-zone strong {
  color: var(--night);
  font-size: 1.1rem;
}

.drop-zone span:last-child {
  color: var(--muted);
  margin-top: 0.25rem;
}

.image-preview {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  margin: 1rem 0 0;
  overflow: hidden;
}

.image-preview img {
  aspect-ratio: 4 / 3;
  object-fit: cover;
  width: 100%;
}

.image-preview figcaption {
  background: var(--mist);
  color: var(--muted);
  font-size: 0.85rem;
  overflow-wrap: anywhere;
  padding: 0.7rem 0.85rem;
}

.recognizer-actions {
  align-items: center;
  display: flex;
  gap: 1rem;
  margin-top: 1.15rem;
}

.text-button {
  background: transparent;
  border: 0;
  color: var(--sky);
  cursor: pointer;
  font-weight: 760;
  padding: 0.6rem;
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.model-status {
  background: var(--sky-pale);
  border-radius: var(--radius-sm);
  color: var(--night-soft);
  margin: 1rem 0 0;
  padding: 0.75rem 0.9rem;
}

.model-status[data-state="success"] {
  background: var(--success-bg);
  color: var(--success);
}

.model-status[data-state="error"] {
  background: var(--error-bg);
  color: var(--error);
}

.result-lockup {
  align-items: center;
  display: flex;
  gap: 1rem;
}

.result-code {
  align-items: center;
  background: var(--night);
  border-radius: 16px;
  color: white;
  display: inline-flex;
  font-size: 1.15rem;
  font-weight: 860;
  height: 58px;
  justify-content: center;
  width: 58px;
}

.result-name {
  color: var(--night);
  font-size: clamp(1.8rem, 4vw, 2.7rem);
  font-weight: 850;
  letter-spacing: -0.045em;
  line-height: 1;
  margin: 0;
}

.result-confidence {
  color: var(--sky);
  font-weight: 820;
  margin: 0.35rem 0 0;
}

.result-caution {
  border-radius: var(--radius-sm);
  margin: 1rem 0 0;
  padding: 0.78rem 0.9rem;
}

.result-caution[data-state="warning"] {
  background: var(--warning-bg);
  color: var(--warning);
}

.result-caution[data-state="neutral"] {
  background: var(--sky-pale);
  color: var(--night-soft);
}

.result-card h3 {
  color: var(--night);
  font-size: 0.88rem;
  letter-spacing: 0.08em;
  margin: 1.4rem 0 0.7rem;
  text-transform: uppercase;
}

.diagnostics-list,
.score-list,
.top-results {
  list-style: none;
  margin: 0;
  padding: 0;
}

.diagnostics-list {
  display: grid;
  gap: 0.55rem;
}

.diagnostics-list li {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  display: grid;
  gap: 0.15rem;
  padding: 0.7rem 0.8rem;
}

.diagnostics-list li[data-state="pass"] {
  border-left: 4px solid var(--success);
}

.diagnostics-list li[data-state="warning"] {
  border-left: 4px solid var(--sun);
}

.diagnostics-list strong {
  color: var(--night);
  font-size: 0.83rem;
}

.diagnostics-list span {
  color: var(--muted);
  font-size: 0.83rem;
}

.top-results {
  display: grid;
  gap: 0.55rem;
}

.top-result {
  background: var(--mist);
  border-radius: var(--radius-sm);
  padding: 0.7rem 0.8rem;
}

.score-list li {
  padding: 0.5rem 0;
}

.score-list li + li {
  border-top: 1px solid var(--line);
}

.score-heading {
  display: flex;
  font-size: 0.84rem;
  font-weight: 720;
  gap: 0.5rem;
  justify-content: space-between;
}

progress {
  appearance: none;
  background: #dbe7ec;
  border: 0;
  border-radius: 999px;
  display: block;
  height: 8px;
  margin-top: 0.35rem;
  overflow: hidden;
  width: 100%;
}

progress::-webkit-progress-bar {
  background: #dbe7ec;
}

progress::-webkit-progress-value {
  background: var(--sky);
  border-radius: 999px;
}

progress::-moz-progress-bar {
  background: var(--sky);
  border-radius: 999px;
}

.result-guide {
  background: var(--sky-pale);
  border-radius: var(--radius-sm);
  margin: 1rem 0 0;
  padding: 0.8rem 0.9rem;
}

.result-guide a {
  font-weight: 780;
}

.score-details {
  border-top: 1px solid var(--line);
  margin-top: 1.2rem;
  padding-top: 0.8rem;
}

.score-details summary {
  color: var(--sky);
  cursor: pointer;
  font-weight: 760;
}

.recognizer-notice,
.recognizer-details {
  margin-top: 1.25rem;
}

.recognizer-details p {
  color: var(--muted);
}

.site-footer {
  background: var(--night);
  color: #d2e3ea;
  padding: 3.2rem 1.25rem 1.4rem;
}

.footer-inner {
  display: grid;
  gap: 2rem;
  grid-template-columns: 1.2fr 0.8fr;
  margin: 0 auto;
  max-width: var(--max-width);
}

.footer-brand {
  color: white;
  display: block;
  font-size: 1.2rem;
}

.site-footer p {
  margin: 0.5rem 0 0;
  max-width: 570px;
}

.footer-links {
  display: grid;
  gap: 0.45rem 1.3rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.site-footer a {
  color: #d9eef6;
}

.footer-button {
  appearance: none;
  border: 0;
  padding: 0;
  background: transparent;
  color: #d9eef6;
  font: inherit;
  text-align: left;
  text-decoration: underline;
  text-underline-offset: 0.2em;
  cursor: pointer;
}

.consent-panel {
  position: fixed;
  z-index: 1000;
  right: 18px;
  bottom: 18px;
  left: 18px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 24px;
  background: #0b1f3a;
  color: #f7fbff;
  box-shadow: 0 22px 60px rgba(5, 18, 38, 0.28);
}

.consent-panel-content {
  width: min(1120px, 100%);
  margin: 0 auto;
  padding: 22px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.consent-panel strong {
  display: block;
  margin-bottom: 5px;
  font-size: 1.05rem;
}

.consent-panel p {
  max-width: 720px;
  margin: 0 0 5px;
  color: #d8e6f4;
}

.consent-panel a {
  color: #9edaf5;
}

.consent-actions {
  display: flex;
  flex: 0 0 auto;
  gap: 8px;
}

.consent-panel .button-ghost {
  border-color: rgba(255, 255, 255, 0.42);
  color: #f7fbff;
}

.path-grid,
.photo-prep-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.path-card,
.photo-prep-card {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--surface);
}

.path-card h3,
.photo-prep-card h3 {
  margin: 10px 0 7px;
}

.path-card p,
.photo-prep-card p {
  margin: 0 0 14px;
  color: var(--muted);
}

.path-icon {
  display: inline-grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 14px;
  background: var(--primary-soft);
  color: var(--primary);
  font-weight: 800;
}

.atlas-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 24px 0 18px;
}

.atlas-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filter-button {
  padding: 9px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.filter-button[aria-pressed="true"] {
  border-color: var(--primary);
  background: var(--primary);
  color: #fff;
}

.atlas-status {
  flex: 0 0 auto;
  color: var(--muted);
  font-size: 0.9rem;
}

.decision-path {
  padding-left: 0;
  list-style: none;
  counter-reset: decision-step;
}

.decision-path > li {
  position: relative;
  margin: 0 0 14px;
  padding: 18px 18px 18px 62px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
  counter-increment: decision-step;
}

.decision-path > li::before {
  position: absolute;
  top: 17px;
  left: 17px;
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 50%;
  background: var(--primary-soft);
  color: var(--primary);
  content: counter(decision-step);
  font-weight: 800;
}

.decision-path h3 {
  margin: 0 0 5px;
}

.decision-path p {
  margin: 0;
}

.copyright {
  border-top: 1px solid #315268;
  font-size: 0.84rem;
  margin: 2.5rem auto 0 !important;
  max-width: var(--max-width) !important;
  padding-top: 1.2rem;
}

.search-dialog {
  background: transparent;
  border: 0;
  max-width: 640px;
  padding: 1rem;
  width: calc(100% - 2rem);
}

.search-dialog::backdrop {
  background: rgba(9, 40, 63, 0.72);
}

.search-panel {
  background: white;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: 1.2rem;
}

.search-header {
  align-items: center;
  display: flex;
  justify-content: space-between;
}

.search-header h2 {
  color: var(--night);
  margin: 0;
}

.search-close {
  align-items: center;
  background: var(--mist);
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  display: inline-flex;
  font-size: 1.4rem;
  height: 40px;
  justify-content: center;
  width: 40px;
}

.search-panel label {
  display: block;
  font-weight: 760;
  margin-top: 1rem;
}

.search-panel input {
  border: 1px solid #93b5c5;
  border-radius: var(--radius-sm);
  margin-top: 0.45rem;
  padding: 0.78rem 0.9rem;
  width: 100%;
}

.search-results {
  list-style: none;
  margin: 0.8rem 0 0;
  max-height: 320px;
  overflow-y: auto;
  padding: 0;
}

.search-results li + li {
  border-top: 1px solid var(--line);
}

.search-results a,
.search-empty {
  display: grid;
  padding: 0.7rem 0.4rem;
  text-decoration: none;
}

.search-results a span {
  color: var(--muted);
  font-size: 0.78rem;
}

.error-page {
  align-items: center;
  display: flex;
  justify-content: center;
  min-height: 66vh;
  padding: 4rem 1.25rem;
  text-align: center;
}

.error-page h1 {
  color: var(--night);
  font-size: clamp(4rem, 12vw, 8rem);
  letter-spacing: -0.08em;
  line-height: 1;
  margin: 0;
}

.error-page h2 {
  color: var(--night);
  margin: 0.7rem 0 0;
}

@media (max-width: 1040px) {
  .menu-button {
    display: inline-flex;
  }

  .site-nav {
    align-items: stretch;
    background: white;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-lg);
    display: none;
    flex-direction: column;
    left: 0;
    max-height: calc(100vh - 76px);
    overflow-y: auto;
    padding: 0.8rem 1.25rem 1.2rem;
    position: absolute;
    right: 0;
    top: 76px;
  }

  .site-nav[data-open="true"] {
    display: flex;
  }

  .site-nav a,
  .nav-button {
    border-radius: 10px;
    padding: 0.72rem 0.85rem;
    text-align: left;
  }

  .cloud-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .metric-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 800px) {
  .path-grid,
  .photo-prep-grid {
    grid-template-columns: 1fr;
  }

  .atlas-toolbar,
  .consent-panel-content {
    align-items: stretch;
    flex-direction: column;
  }

  .consent-actions {
    width: 100%;
  }

  .consent-actions .button {
    flex: 1;
  }

  .home-hero {
    padding-top: 4.5rem;
  }

  .hero-grid,
  .footer-inner,
  .recognizer-workspace,
  .article-shell {
    grid-template-columns: 1fr;
  }

  .sky-instrument {
    margin: 0 auto;
    max-width: 540px;
    width: 100%;
  }

  .feature-grid,
  .cloud-grid {
    grid-template-columns: 1fr;
  }

  .cloud-card {
    min-height: 225px;
  }

  .result-card,
  .article-aside {
    max-height: none;
    position: static;
  }

  .article-aside ul {
    columns: 2;
    column-gap: 1.5rem;
  }

  .article-aside li {
    break-inside: avoid;
  }
}

@media (max-width: 540px) {
  .header-inner {
    padding-inline: 0.85rem;
  }

  .brand span {
    font-size: 0.93rem;
  }

  .home-hero,
  .section,
  .page-hero,
  .article-shell,
  .recognizer-section {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .home-hero h1,
  .page-hero h1 {
    font-size: clamp(2.45rem, 15vw, 3.5rem);
  }

  .button-row,
  .button {
    width: 100%;
  }

  .instrument-sun {
    right: 30px;
  }

  .cloud-shape {
    left: 25px;
    transform: scale(0.82);
    transform-origin: left center;
  }

  .metric-grid,
  .fact-grid,
  .footer-links {
    grid-template-columns: 1fr;
  }

  .recognizer-heading-row,
  .recognizer-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .privacy-chip {
    align-self: flex-start;
  }

  .model-switch-label {
    min-height: 62px;
    padding-inline: 0.15rem;
  }

  .model-switch-label strong {
    font-size: 0.72rem;
  }

  .model-switch-label small {
    font-size: 0.63rem;
  }

  .article-aside ul {
    columns: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .model-switch::before {
    transition: none;
  }
}
