﻿:root {
  --bg: #f7faff;
  --surface: #ffffff;
  --surface-2: #eef6fb;
  --ink: #111827;
  --ink-2: #243244;
  --muted: #64748b;
  --line: rgba(15, 23, 42, 0.11);
  --line-strong: rgba(15, 23, 42, 0.18);
  --cyan: #06b6d4;
  --cyan-dark: #0891b2;
  --mint: #2dd4bf;
  --indigo: #4f46e5;
  --navy: #08111f;
  --violet: #8b5cf6;
  --signal: #d946ef;
  --shadow: 0 18px 55px rgba(15, 23, 42, 0.1);
  --shadow-soft: 0 10px 32px rgba(15, 23, 42, 0.07);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(180deg, #ffffff 0%, var(--bg) 36%, #ffffff 100%);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.58;
}

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

.site-header {
  position: fixed;
  z-index: 40;
  top: 16px;
  left: 50%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(1180px, calc(100% - 32px));
  height: 62px;
  padding: 0 12px 0 18px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 12px 38px rgba(15, 23, 42, 0.1);
  backdrop-filter: blur(18px);
  transform: translateX(-50%);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-size: 17px;
  font-weight: 850;
  white-space: nowrap;
}

.brand-mark {
  width: 27px;
  height: 27px;
  border-radius: 9px;
  background:
    linear-gradient(135deg, rgba(6, 182, 212, 0.95), rgba(79, 70, 229, 0.95)),
    #0ea5e9;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.28), 0 10px 24px rgba(6, 182, 212, 0.22);
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 720;
}

.nav-links a:hover {
  color: var(--ink);
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 78px;
  height: 40px;
  border-radius: 10px;
  color: #ffffff;
  background: var(--ink);
  font-size: 13px;
  font-weight: 850;
}

.hero {
  position: relative;
  min-height: 94svh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 112px 0 64px;
  background:
    radial-gradient(circle at 12% 18%, rgba(6, 182, 212, 0.2), transparent 32%),
    radial-gradient(circle at 80% 18%, rgba(79, 70, 229, 0.12), transparent 34%),
    linear-gradient(180deg, #ffffff 0%, #eef7fb 100%);
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 160px;
  background: linear-gradient(180deg, rgba(247, 250, 255, 0), var(--bg));
}

.hero-media {
  position: absolute;
  right: max(-80px, calc((100vw - 1180px) / 2 - 40px));
  top: 110px;
  width: min(820px, 58vw);
  aspect-ratio: 1693 / 929;
  border: 1px solid rgba(255, 255, 255, 0.76);
  border-radius: 26px;
  background-image: url("assets/hero-painbridge-biomed.png");
  background-size: cover;
  background-position: center;
  box-shadow: 0 34px 90px rgba(15, 23, 42, 0.16);
}

.hero-media::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, rgba(247, 250, 255, 0.96), rgba(247, 250, 255, 0.2) 42%, rgba(247, 250, 255, 0));
}

.hero-inner,
.section-shell {
  position: relative;
  z-index: 2;
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.hero-inner > * {
  max-width: 660px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--cyan-dark);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 22px;
  color: var(--ink);
  font-size: clamp(48px, 6vw, 82px);
  line-height: 0.98;
  letter-spacing: -0.035em;
}

h2 {
  margin-bottom: 18px;
  color: var(--ink);
  font-size: clamp(31px, 4vw, 52px);
  line-height: 1.04;
  letter-spacing: -0.03em;
}

h3 {
  margin-bottom: 10px;
  color: var(--ink-2);
  font-size: 20px;
  line-height: 1.18;
  letter-spacing: -0.01em;
}

p {
  color: var(--muted);
  font-size: 16px;
}

.hero-copy {
  color: #475569;
  font-size: 19px;
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  border-radius: 10px;
  padding: 0 20px;
  font-size: 14px;
  font-weight: 850;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button-primary {
  color: #ffffff;
  background: linear-gradient(135deg, var(--cyan-dark), var(--indigo));
  box-shadow: 0 16px 32px rgba(8, 145, 178, 0.22);
}

.button-secondary {
  color: var(--ink);
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.72);
}

.button-secondary.light {
  color: #dbeafe;
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.08);
}

.hero-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.hero-metrics span,
.outcome-tags span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid rgba(6, 182, 212, 0.2);
  border-radius: 999px;
  color: #155e75;
  background: rgba(255, 255, 255, 0.68);
  font-size: 13px;
  font-weight: 800;
}

.band {
  padding: 104px 0;
  background: #ffffff;
}

.band-ice {
  background: var(--bg);
}

.band-dark {
  color: #e5edf7;
  background:
    radial-gradient(circle at 12% 18%, rgba(6, 182, 212, 0.17), transparent 34%),
    radial-gradient(circle at 84% 0%, rgba(79, 70, 229, 0.22), transparent 38%),
    var(--navy);
}

.band-dark h2,
.band-dark h3 {
  color: #ffffff;
}

.band-dark p {
  color: #aab7c7;
}

.band-dark .eyebrow {
  color: var(--mint);
}

.split,
.translation-layout,
.two-up {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 70px;
  align-items: start;
}

.body-stack p + p {
  margin-top: 18px;
}

.section-intro {
  max-width: 810px;
  margin-bottom: 44px;
}

.section-intro.wide {
  max-width: 930px;
}

.function-grid,
.selling-grid,
.architecture-grid,
.phase-grid,
.research-grid,
.tone-grid {
  display: grid;
  gap: 16px;
}

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

.selling-grid,
.research-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.architecture-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.phase-grid,
.tone-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

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

.feature-panel,
.selling-grid article,
.architecture-grid article,
.module-grid article,
.phase-grid article,
.research-grid article,
.tone-grid article,
.flow-card {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: var(--shadow-soft);
}

.feature-panel,
.selling-grid article,
.architecture-grid article,
.phase-grid article,
.tone-grid article {
  padding: 24px;
}

.feature-panel {
  min-height: 250px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(238, 246, 251, 0.76));
}

.label,
.module-grid span,
.research-grid span,
.architecture-grid span {
  display: inline-block;
  margin-bottom: 28px;
  color: var(--cyan-dark);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.selling-grid article,
.phase-grid article {
  min-height: 208px;
}

.summary-flow {
  display: grid;
  gap: 16px;
}

.flow-card {
  padding: 24px;
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.12);
}

.flow-card span {
  display: block;
  margin-bottom: 14px;
  color: var(--mint);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.flow-card p {
  margin-bottom: 0;
  color: #e5edf7;
  font-size: 17px;
}

.module-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
}

.module-grid article {
  min-height: 250px;
  padding: 20px;
  box-shadow: none;
}

.module-grid article:nth-child(4n + 1) {
  border-top-color: rgba(6, 182, 212, 0.45);
}

.module-grid article:nth-child(4n + 2) {
  border-top-color: rgba(45, 212, 191, 0.45);
}

.module-grid article:nth-child(4n + 3) {
  border-top-color: rgba(79, 70, 229, 0.45);
}

.module-grid article:nth-child(4n) {
  border-top-color: rgba(217, 70, 239, 0.35);
}

.module-grid h3 {
  font-size: 18px;
}

.module-grid p,
.selling-grid p,
.research-grid p,
.architecture-grid p,
.phase-grid p,
.tone-grid p {
  font-size: 15px;
}

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

.blueprint-grid,
.taxonomy-grid {
  display: grid;
  gap: 16px;
}

.blueprint-grid {
  grid-template-columns: 1fr 1fr 1fr;
}

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

.blueprint-grid article,
.taxonomy-grid article {
  min-height: 260px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: var(--shadow-soft);
}

.blueprint-grid span {
  display: inline-block;
  margin-bottom: 22px;
  color: var(--cyan-dark);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.blueprint-grid ol {
  display: grid;
  gap: 10px;
  margin: 0;
  padding-left: 20px;
  color: var(--ink-2);
  font-size: 15px;
  font-weight: 700;
}

.blueprint-grid li::marker {
  color: var(--cyan-dark);
  font-weight: 900;
}

.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.tag-cloud em {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid rgba(6, 182, 212, 0.18);
  border-radius: 999px;
  color: #155e75;
  background: rgba(238, 246, 251, 0.72);
  font-size: 13px;
  font-style: normal;
  font-weight: 850;
}

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

.schema-list div {
  display: grid;
  grid-template-columns: minmax(180px, 0.42fr) 1fr;
  gap: 18px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #ffffff;
}

.schema-list strong {
  color: var(--ink);
  font-size: 15px;
}

.schema-list span {
  color: var(--muted);
  font-size: 15px;
}

.safety-note-list {
  display: grid;
  gap: 12px;
}

.safety-note-list p {
  margin: 0;
  padding: 16px 18px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  color: #e5edf7;
  background: rgba(255, 255, 255, 0.06);
  font-size: 15px;
}

.clickable-card {
  position: relative;
  cursor: pointer;
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.clickable-card::after {
  content: "Open detail page";
  position: absolute;
  right: 18px;
  bottom: 16px;
  color: var(--cyan-dark);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 160ms ease, transform 160ms ease;
}

.clickable-card:hover,
.clickable-card:focus-visible {
  border-color: rgba(6, 182, 212, 0.45);
  box-shadow: 0 22px 58px rgba(15, 23, 42, 0.14);
  transform: translateY(-4px);
  outline: 0;
}

.band-dark .clickable-card:hover,
.band-dark .clickable-card:focus-visible {
  border-color: rgba(45, 212, 191, 0.45);
  box-shadow: 0 22px 58px rgba(0, 0, 0, 0.24);
}

.clickable-card:hover::after,
.clickable-card:focus-visible::after {
  opacity: 1;
  transform: translateY(0);
}

.detail-page {
  min-height: 100svh;
  background:
    radial-gradient(circle at 10% 12%, rgba(6, 182, 212, 0.18), transparent 30%),
    radial-gradient(circle at 88% 18%, rgba(79, 70, 229, 0.14), transparent 34%),
    linear-gradient(180deg, #ffffff 0%, #eef6fb 100%);
}

.detail-main {
  min-height: 100svh;
  padding: 122px 0 72px;
}

.detail-hero {
  padding: 42px 0 0;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.38fr);
  gap: 24px;
  align-items: start;
}

.detail-content-card,
.detail-side-card {
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.84);
  box-shadow: 0 28px 80px rgba(15, 23, 42, 0.14);
  backdrop-filter: blur(18px);
}

.detail-content-card {
  padding: clamp(26px, 5vw, 52px);
}

.detail-side-card {
  position: sticky;
  top: 104px;
  padding: 26px;
}

.detail-content-card h1 {
  max-width: 880px;
  font-size: clamp(42px, 6vw, 78px);
}

.detail-content-card h2,
.detail-side-card h2 {
  margin-top: 28px;
  font-size: clamp(26px, 3vw, 38px);
}

.detail-source {
  margin: 20px 0;
  padding: 16px 18px;
  border: 1px solid rgba(6, 182, 212, 0.18);
  border-radius: 12px;
  color: #155e75;
  background: rgba(238, 246, 251, 0.82);
  font-size: 14px;
  font-weight: 700;
}

.detail-page-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding-left: 20px;
  color: var(--ink-2);
}

.detail-page-list li {
  font-size: 15px;
}

.detail-page-list li::marker {
  color: var(--cyan-dark);
  font-weight: 900;
}

.detail-disclaimer {
  margin-top: 24px !important;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px !important;
}


.pathway-list div {
  display: grid;
  grid-template-columns: minmax(180px, 0.45fr) 1fr;
  gap: 18px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #ffffff;
}

.pathway-list strong {
  color: var(--ink);
  font-size: 15px;
}

.pathway-list span {
  color: var(--muted);
  font-size: 15px;
}

.research-grid article {
  min-height: 240px;
  padding: 24px;
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.06);
  box-shadow: none;
}

.research-grid span {
  color: var(--mint);
}

.ordered-list {
  display: grid;
  gap: 12px;
  margin: 0;
  padding-left: 22px;
  color: var(--ink-2);
  font-weight: 650;
}

.ordered-list li::marker {
  color: var(--cyan-dark);
  font-weight: 900;
}

.outcome-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.large-copy {
  color: var(--ink-2);
  font-size: 20px;
  line-height: 1.68;
}

.identity-inner,
.final-inner {
  max-width: 880px;
  text-align: center;
}

.identity-inner p,
.final-inner p {
  margin-left: auto;
  margin-right: auto;
  max-width: 760px;
  font-size: 18px;
}

.final-cta {
  color: #e5edf7;
  background:
    radial-gradient(circle at 18% 20%, rgba(6, 182, 212, 0.2), transparent 34%),
    linear-gradient(135deg, #08111f 0%, #101c3d 100%);
}

.final-cta h2 {
  color: #ffffff;
}

.final-cta p {
  color: #b7c4d7;
}

.final-inner .hero-actions {
  justify-content: center;
}

.references {
  padding: 44px 0;
  background: #f1f5f9;
}

.references h2 {
  margin-bottom: 10px;
  font-size: 22px;
}

.references p {
  margin-bottom: 0;
  font-size: 13px;
}

.site-footer {
  padding: 34px 0;
  background: #ffffff;
  border-top: 1px solid var(--line);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.site-footer p {
  margin: 0;
  font-size: 14px;
}

@media (max-width: 1120px) {
  .nav-links {
    display: none;
  }

  .hero-media {
    opacity: 0.45;
    right: -180px;
    width: 760px;
  }

  .function-grid,
  .selling-grid,
  .architecture-grid,
  .module-grid,
  .research-grid,
  .blueprint-grid,
  .taxonomy-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .phase-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 780px) {
  .site-header {
    top: 10px;
    width: calc(100% - 20px);
    height: 58px;
  }

  .hero {
    min-height: auto;
    padding: 114px 0 72px;
  }

  .hero-media {
    top: 96px;
    right: -270px;
    width: 680px;
    opacity: 0.24;
  }

  .hero-inner,
  .section-shell {
    width: min(100% - 32px, 1180px);
  }

  .hero-copy,
  .large-copy {
    font-size: 17px;
  }

  .band {
    padding: 76px 0;
  }

  .split,
  .translation-layout,
  .two-up,
  .detail-layout,
  .function-grid,
  .selling-grid,
  .architecture-grid,
  .module-grid,
  .research-grid,
  .blueprint-grid,
  .taxonomy-grid,
  .tone-grid {
    grid-template-columns: 1fr;
  }

  .split,
  .translation-layout,
  .two-up {
    gap: 32px;
  }

  .pathway-list div,
  .schema-list div {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .module-grid article,
  .feature-panel,
  .selling-grid article,
  .research-grid article {
    min-height: auto;
  }

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

  .detail-main {
    padding-top: 96px;
  }

  .detail-side-card {
    position: static;
  }
}

@media (max-width: 460px) {
  .brand {
    font-size: 16px;
  }

  .nav-cta {
    min-width: 68px;
    height: 38px;
  }

  .hero-actions,
  .button {
    width: 100%;
  }

  .button {
    padding: 0 16px;
  }

  .hero-metrics span,
  .outcome-tags span {
    width: 100%;
    justify-content: center;
  }
}

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

.language-control {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.7);
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.language-control select {
  max-width: 154px;
  border: 0;
  outline: 0;
  color: var(--ink);
  background: transparent;
  font: inherit;
  cursor: pointer;
}

.login-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 68px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.62);
  font-size: 13px;
  font-weight: 850;
}

.auth-page {
  min-height: 100svh;
  background:
    radial-gradient(circle at 10% 12%, rgba(6, 182, 212, 0.18), transparent 30%),
    radial-gradient(circle at 88% 18%, rgba(79, 70, 229, 0.14), transparent 34%),
    linear-gradient(180deg, #ffffff 0%, #eef6fb 100%);
}

.auth-header {
  position: fixed;
}

.auth-main {
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: 118px 0 64px;
}

.auth-shell {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(380px, 0.72fr);
  gap: 56px;
  align-items: center;
}

.auth-copy h1 {
  max-width: 680px;
  margin-bottom: 20px;
  font-size: clamp(44px, 5.2vw, 72px);
}

.auth-copy > p {
  max-width: 620px;
  font-size: 18px;
}

.auth-points {
  display: grid;
  gap: 12px;
  max-width: 620px;
  margin-top: 32px;
}

.auth-points div {
  display: grid;
  gap: 4px;
  padding: 16px 18px;
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.62);
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.06);
}

.auth-points strong {
  color: var(--ink);
  font-size: 15px;
}

.auth-points span {
  color: var(--muted);
  font-size: 14px;
}

.auth-card {
  padding: 30px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 28px 80px rgba(15, 23, 42, 0.14);
  backdrop-filter: blur(18px);
}

.auth-card-head {
  margin-bottom: 26px;
}

.auth-card h2 {
  margin-bottom: 8px;
  font-size: 30px;
}

.auth-card p {
  font-size: 14px;
}

.field {
  display: grid;
  gap: 8px;
  margin-bottom: 16px;
  color: var(--ink-2);
  font-size: 13px;
  font-weight: 850;
}

.field input {
  width: 100%;
  height: 50px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  padding: 0 14px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.86);
  font: inherit;
  font-weight: 650;
  outline: 0;
  transition: border 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.field input:focus {
  border-color: rgba(6, 182, 212, 0.72);
  box-shadow: 0 0 0 4px rgba(6, 182, 212, 0.12);
  background: #ffffff;
}

.form-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 4px 0 20px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 760;
}

.form-row a {
  color: var(--cyan-dark);
}

.checkbox-field {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.checkbox-field input {
  width: 16px;
  height: 16px;
  accent-color: var(--cyan-dark);
}

.auth-submit {
  width: 100%;
  border: 0;
  cursor: pointer;
}

.auth-submit + .auth-submit {
  margin-top: 0;
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 18px 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.auth-divider::before,
.auth-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}

.auth-note,
.privacy-note {
  margin: 18px 0 0;
  text-align: center;
}

.auth-note a {
  color: var(--cyan-dark);
  font-weight: 850;
}

.privacy-note {
  padding-top: 18px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px !important;
}

.chat-launcher {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 60;
  display: inline-flex;
  width: 64px;
  height: 64px;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 22px;
  background: linear-gradient(145deg, #16324f, #2c8fb5);
  box-shadow: 0 18px 44px rgba(17, 24, 39, 0.28);
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.chat-launcher:hover {
  transform: translateY(-2px);
  box-shadow: 0 22px 54px rgba(17, 24, 39, 0.34);
}

.chat-launcher span {
  position: relative;
  width: 30px;
  height: 22px;
  border-radius: 10px;
  background: #ffffff;
}

.chat-launcher span::after {
  content: "";
  position: absolute;
  right: 5px;
  bottom: -6px;
  width: 10px;
  height: 10px;
  background: #ffffff;
  transform: rotate(45deg);
}

.chat-panel {
  position: fixed;
  right: 24px;
  bottom: 102px;
  z-index: 70;
  display: flex;
  width: min(410px, calc(100vw - 32px));
  max-height: min(680px, calc(100vh - 126px));
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.34);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 30px 90px rgba(15, 23, 42, 0.26);
}

.chat-panel[hidden] {
  display: none;
}

.chat-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding: 20px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(135deg, #ffffff 0%, #eef7fb 100%);
}

.chat-kicker {
  margin: 0 0 4px;
  color: var(--cyan-dark);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.chat-head h2 {
  margin: 0;
  color: var(--ink);
  font-size: 20px;
  line-height: 1.15;
}

.chat-close {
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #ffffff;
  color: var(--ink);
  cursor: pointer;
  font-size: 24px;
  line-height: 1;
}

.chat-messages {
  display: flex;
  min-height: 280px;
  flex: 1;
  flex-direction: column;
  gap: 10px;
  overflow-y: auto;
  padding: 18px;
  background: #f8fbfd;
}

.chat-message {
  max-width: 86%;
  border-radius: 18px;
  padding: 12px 14px;
  color: var(--ink-2);
  font-size: 14px;
  line-height: 1.55;
  white-space: pre-wrap;
}

.chat-message-assistant {
  align-self: flex-start;
  border-bottom-left-radius: 6px;
  background: #ffffff;
  box-shadow: inset 0 0 0 1px rgba(148, 163, 184, 0.22);
}

.chat-message-user {
  align-self: flex-end;
  border-bottom-right-radius: 6px;
  background: #16324f;
  color: #ffffff;
}

.chat-form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  padding: 14px;
  border-top: 1px solid var(--line);
  background: #ffffff;
}

.chat-form textarea {
  min-height: 48px;
  max-height: 120px;
  resize: vertical;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px;
  color: var(--ink);
  font: inherit;
  line-height: 1.35;
}

.chat-form textarea:focus {
  border-color: var(--cyan-dark);
  box-shadow: 0 0 0 3px rgba(44, 143, 181, 0.16);
  outline: none;
}

.chat-form button {
  align-self: stretch;
  border: 0;
  border-radius: 14px;
  background: var(--ink);
  color: #ffffff;
  cursor: pointer;
  font-weight: 900;
  padding: 0 18px;
}

.chat-form button:disabled {
  cursor: wait;
  opacity: 0.62;
}

.chat-disclaimer {
  margin: 0;
  padding: 0 16px 14px;
  background: #ffffff;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.4;
}

@media (max-width: 1120px) {
  .language-control span {
    display: none;
  }

  .language-control select {
    max-width: 128px;
  }

  .auth-shell {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .auth-card {
    max-width: 520px;
  }
}

@media (max-width: 780px) {
  .header-actions {
    gap: 6px;
  }

  .language-control {
    max-width: 124px;
    padding: 0 8px;
  }

  .language-control select {
    max-width: 104px;
    font-size: 12px;
  }

  .login-link {
    display: none;
  }

  .auth-main {
    align-items: flex-start;
    padding-top: 102px;
  }

  .auth-shell {
    width: min(100% - 32px, 1120px);
  }

  .auth-card {
    padding: 22px;
  }

  .form-row {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }
}

@media (max-width: 460px) {
  .site-header .nav-cta {
    display: none;
  }

  .auth-copy h1 {
    font-size: 38px;
  }

  .chat-launcher {
    right: 16px;
    bottom: 16px;
    width: 58px;
    height: 58px;
    border-radius: 20px;
  }

  .chat-panel {
    right: 16px;
    bottom: 86px;
    max-height: calc(100vh - 104px);
  }

  .chat-form {
    grid-template-columns: 1fr;
  }

  .chat-form button {
    min-height: 44px;
  }
}
