:root {
  --navy: #10263f;
  --ink: #172031;
  --teal: #1b7f7a;
  --gold: #c9962f;
  --mist: #edf3f0;
  --paper: #f4efe4;
  --white: #fffaf1;
  --line: rgba(16, 38, 63, 0.18);
  --shadow: 0 20px 60px rgba(16, 38, 63, 0.14);
  --panel: #fffaf1;
  --panel-soft: #f7f1e7;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scrollbar-gutter: stable;
  background: var(--paper);
}

@keyframes page-fade-in {
  from {
    opacity: 0;
    transform: translateY(6px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

main {
  animation: page-fade-in 180ms ease both;
  transition: opacity 180ms ease, transform 180ms ease;
}

main.is-leaving {
  opacity: 0;
  transform: translateY(6px);
}

@media (prefers-reduced-motion: reduce) {
  main {
    animation: none;
    transition: none;
  }
}

:root.dark-mode {
  --ink: #d8deea;
  --mist: #152336;
  --paper: #0e1725;
  --white: #172235;
  --line: rgba(216, 222, 234, 0.16);
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.34);
}

html.dark-mode,
html.dark-mode body,
body.dark-mode {
  color: var(--ink);
  background: var(--paper);
}

:root.dark-mode {
  --panel: #172235;
  --panel-soft: #101a2a;
}

a {
  color: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: minmax(320px, 1fr) auto;
  align-items: center;
  gap: 24px;
  min-height: 112px;
  padding: 14px clamp(20px, 4vw, 58px);
  background: rgba(251, 250, 247, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.section-header {
  position: relative;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px clamp(20px, 5vw, 72px);
  background: var(--mist);
}

.back-button,
.home-brand {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  border: 0;
  cursor: pointer;
  font: inherit;
  font-weight: 800;
  text-decoration: none;
}

.back-button {
  padding: 0 18px;
  color: var(--navy);
  background: var(--white);
  border: 1px solid var(--line);
}

.inline-back {
  margin-bottom: 22px;
}

.home-brand {
  gap: 10px;
  color: var(--white);
  padding: 8px 16px 8px 10px;
  background: var(--navy);
}

.home-brand img {
  width: 34px;
  height: 34px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 84px;
  text-decoration: none;
}

.brand-logo-wrap {
  display: flex;
  width: 76px;
  height: 76px;
  align-items: center;
  justify-content: center;
  overflow: visible;
  border-radius: 0;
  background: transparent;
  border: 0;
}

.brand-logo {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

.brand strong {
  font-size: 18px;
}

.brand strong,
.brand small {
  display: block;
}

.brand small {
  margin-top: 2px;
  color: #687486;
  font-size: 12px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
  color: #445067;
  font-size: 14px;
  font-weight: 600;
}

.nav-links a,
.nav-button,
.header-cta {
  text-decoration: none;
}

.nav-button {
  padding: 0;
  color: inherit;
  background: transparent;
  border: 0;
  cursor: pointer;
  font: inherit;
  font-weight: inherit;
}

.theme-toggle {
  position: relative;
  display: inline-grid;
  width: 42px;
  height: 42px;
  min-height: 42px;
  padding: 0;
  place-items: center;
  color: var(--navy);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 50%;
  cursor: pointer;
  font: inherit;
}

html.dark-mode .theme-toggle,
body.dark-mode .theme-toggle {
  color: #edf2f8;
  background: rgba(255, 255, 255, 0.08);
}

.theme-icon {
  position: absolute;
  display: block;
  transition: opacity 160ms ease, transform 160ms ease;
}

.sun-icon {
  width: 18px;
  height: 18px;
  background: currentColor;
  border-radius: 50%;
  box-shadow:
    0 -10px 0 -7px currentColor,
    0 10px 0 -7px currentColor,
    10px 0 0 -7px currentColor,
    -10px 0 0 -7px currentColor,
    7px 7px 0 -7px currentColor,
    -7px -7px 0 -7px currentColor,
    7px -7px 0 -7px currentColor,
    -7px 7px 0 -7px currentColor;
  opacity: 0;
  transform: rotate(45deg) scale(0.82);
}

.moon-icon {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  box-shadow: -5px 0 0 1px currentColor;
  opacity: 1;
  transform: translateX(2px) scale(1);
}

html.dark-mode .sun-icon,
body.dark-mode .sun-icon {
  opacity: 1;
  transform: rotate(0deg) scale(1);
}

html.dark-mode .moon-icon,
body.dark-mode .moon-icon {
  opacity: 0;
  transform: translateX(4px) scale(0.82);
}

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

.mini-button {
  padding: 10px 13px;
  color: var(--navy);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
}

.header-cta {
  padding: 12px 18px;
  color: var(--white);
  background: var(--teal);
  border-radius: 8px;
  font-size: 14px;
  font-weight: 700;
}

.section-band,
.section,
.split-section,
.final-cta {
  padding: clamp(64px, 8vw, 110px) clamp(20px, 5vw, 72px);
}

.hero {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(360px, 0.88fr);
  align-items: center;
  gap: clamp(34px, 5vw, 70px);
  min-height: 650px;
  background:
    linear-gradient(115deg, rgba(237, 243, 240, 0.96), rgba(244, 239, 228, 0.86) 48%, rgba(255, 250, 241, 0.52)),
    var(--paper);
}

.hero-copy {
  position: relative;
  z-index: 2;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--teal);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

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

h1,
h2 {
  color: var(--navy);
  font-family: "Source Serif 4", Georgia, serif;
  line-height: 1.02;
}

h1 {
  max-width: 680px;
  margin-bottom: 24px;
  font-size: 68px;
}

h2 {
  margin-bottom: 18px;
  font-size: 52px;
}

h3 {
  color: var(--navy);
  font-size: 22px;
  line-height: 1.18;
}

.hero-text,
.section-heading p,
.split-section p,
.tool-copy p {
  color: #536075;
  font-size: 18px;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 32px 0 0;
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 8px;
  cursor: pointer;
  font: inherit;
  font-weight: 800;
  text-decoration: none;
}

.button.primary {
  color: var(--white);
  background: var(--navy);
}

.button.primary.alternate {
  background: var(--teal);
}

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

.button.calendly-button {
  position: relative;
  padding-left: 42px;
  color: #ffffff;
  background: #006bff;
  border-color: #006bff;
  box-shadow: 0 12px 24px rgba(0, 107, 255, 0.18);
}

.button.calendly-button::before {
  position: absolute;
  left: 15px;
  width: 16px;
  height: 16px;
  content: "";
  background:
    linear-gradient(#ffffff, #ffffff) 4px 1px / 2px 4px no-repeat,
    linear-gradient(#ffffff, #ffffff) 10px 1px / 2px 4px no-repeat,
    linear-gradient(#ffffff, #ffffff) 3px 7px / 10px 2px no-repeat,
    linear-gradient(#ffffff, #ffffff) 3px 11px / 10px 2px no-repeat;
  border: 2px solid #ffffff;
  border-radius: 4px;
  opacity: 0.95;
}

.button.calendly-button:hover {
  background: #0056d6;
  border-color: #0056d6;
}

.button.full {
  width: 100%;
}

.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.trust-row span {
  padding: 9px 12px;
  color: #36445d;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
}

.hero-media,
.visual-panel {
  position: relative;
}

.hero-image-frame {
  min-height: 430px;
  overflow: hidden;
  background: transparent;
  border: 0;
  border-radius: 8px;
  box-shadow: 0 28px 80px rgba(16, 38, 63, 0.18);
}

.hero-image-frame::before {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  content: "";
  background:
    linear-gradient(90deg, rgba(251, 250, 247, 0.98), rgba(251, 250, 247, 0.58) 18%, rgba(251, 250, 247, 0) 42%),
    linear-gradient(180deg, rgba(251, 250, 247, 0.16), rgba(251, 250, 247, 0) 32%, rgba(251, 250, 247, 0.12));
}

.hero-image-frame img {
  width: 100%;
  height: min(46vw, 430px);
  min-height: 430px;
  object-fit: cover;
}

.hero-logo-feature {
  display: flex;
  min-height: 520px;
  align-items: center;
  justify-content: center;
}

.hero-logo-feature img {
  width: min(100%, 520px);
  max-height: 560px;
  object-fit: contain;
  border-radius: 0;
  filter: drop-shadow(0 28px 44px rgba(16, 38, 63, 0.18));
}

html.dark-mode .hero-logo-feature img,
body.dark-mode .hero-logo-feature img {
  filter: drop-shadow(0 28px 44px rgba(0, 0, 0, 0.32));
}

.visual-panel {
  display: grid;
  gap: 18px;
  padding: 22px;
  background:
    linear-gradient(135deg, rgba(16, 38, 63, 0.96), rgba(27, 127, 122, 0.9)),
    var(--navy);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.hero-photo-card {
  min-height: 240px;
  margin: 0;
  overflow: hidden;
  background: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
}

.hero-photo-card img {
  width: 100%;
  height: 100%;
  min-height: 240px;
  object-fit: cover;
}

.market-card {
  padding: 28px;
  color: var(--white);
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
}

.market-card span,
.country-tag {
  display: inline-block;
  margin-bottom: 12px;
  color: #ffe1a6;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.market-card strong {
  display: block;
  font-size: 30px;
  line-height: 1.1;
}

.market-card p {
  margin: 14px 0;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.55;
}

.market-card a {
  color: var(--white);
  font-weight: 800;
}

.quick-panel {
  position: absolute;
  right: 24px;
  bottom: -24px;
  max-width: 310px;
  padding: 20px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.quick-panel strong,
.quick-panel span {
  display: block;
}

.quick-panel span {
  margin-top: 8px;
  color: #5c687c;
  line-height: 1.5;
}

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

.gateway-card {
  position: relative;
  padding: 34px;
  background:
    linear-gradient(145deg, rgba(255, 250, 241, 0.96), rgba(247, 241, 231, 0.96)),
    var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 18px 46px rgba(16, 38, 63, 0.1);
}

.gateway-card::before {
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  content: "";
  background: linear-gradient(90deg, var(--gold), var(--teal));
  border-radius: 8px 8px 0 0;
}

.gateway-card h3 {
  margin-bottom: 12px;
  font-size: 34px;
}

.gateway-card p {
  color: #5d687a;
  line-height: 1.65;
}

.card-actions,
.final-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

code {
  padding: 2px 5px;
  background: rgba(16, 38, 63, 0.08);
  border-radius: 5px;
}

.section-heading {
  max-width: 800px;
  margin: 0 auto 42px;
  text-align: center;
}

.section-heading.compact {
  max-width: 680px;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.service-card,
.insight-panel,
.recommender,
.timeline-step,
.faq-list details {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 12px 34px rgba(16, 38, 63, 0.07);
}

.service-card {
  min-height: 265px;
  padding: 28px;
}

.card-icon {
  display: inline-grid;
  width: 42px;
  height: 42px;
  margin-bottom: 22px;
  place-items: center;
  color: var(--navy);
  background: #f4ead4;
  border-radius: 8px;
  font-weight: 800;
}

.service-card p,
.timeline-step p,
.faq-list p,
.recommendation p,
.insight-panel p {
  color: #5d687a;
  line-height: 1.65;
}

.split-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 390px;
  gap: clamp(28px, 5vw, 72px);
  align-items: start;
  background: var(--mist);
}

.check-list {
  display: grid;
  gap: 12px;
  margin: 30px 0 0;
  padding: 0;
  list-style: none;
}

.check-list li {
  position: relative;
  padding-left: 32px;
  font-weight: 700;
}

.check-list li::before {
  position: absolute;
  left: 0;
  top: 1px;
  width: 20px;
  height: 20px;
  content: "";
  background: var(--teal);
  border-radius: 50%;
  box-shadow: inset 0 0 0 6px var(--white);
}

.insight-panel {
  padding: 30px;
}

.timeline {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.timeline-step {
  padding: 24px;
}

.timeline-step span {
  display: inline-grid;
  width: 34px;
  height: 34px;
  margin-bottom: 18px;
  place-items: center;
  color: var(--white);
  background: var(--gold);
  border-radius: 8px;
  font-weight: 800;
}

.tools {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 32px;
  align-items: center;
  background: #ede6d8;
}

.recommender {
  padding: 16px;
  min-height: 214px;
  background:
    linear-gradient(145deg, rgba(255, 250, 241, 0.98), rgba(247, 241, 231, 0.98)),
    var(--panel);
}

.segmented {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.segment {
  min-height: 44px;
  color: #536075;
  background: #f8fafb;
  border: 1px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
  font: inherit;
  font-weight: 800;
}

.segment.active {
  color: var(--white);
  background: var(--teal);
  border-color: var(--teal);
}

.recommendation {
  height: 136px;
  margin-top: 18px;
  padding: 22px;
  overflow: hidden;
  background: rgba(16, 38, 63, 0.045);
  border-radius: 8px;
}

.recommendation strong {
  display: block;
  color: var(--navy);
  font-size: 20px;
  line-height: 1.2;
}

.recommendation p {
  min-height: 58px;
  margin: 8px 0 0;
}

.faq-list {
  display: grid;
  max-width: 920px;
  margin: 0 auto;
  gap: 12px;
}

.faq-list details {
  padding: 20px 24px;
}

.faq-list summary {
  cursor: pointer;
  color: var(--navy);
  font-weight: 800;
}

.faq-list p {
  margin: 16px 0 0;
}

.contact-section {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(360px, 1fr);
  gap: clamp(28px, 5vw, 70px);
  align-items: start;
  background: #fffaf1;
}

.page-hero {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(340px, 0.85fr);
  align-items: center;
  gap: clamp(30px, 5vw, 64px);
  background: var(--mist);
}

.page-hero-image {
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.page-hero-image img {
  width: 100%;
  height: 420px;
  object-fit: cover;
}

.service-detail {
  background: var(--paper);
}

.detail-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.detail-card {
  padding: 28px;
  background:
    linear-gradient(145deg, rgba(255, 250, 241, 0.96), rgba(247, 241, 231, 0.96)),
    var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 12px 34px rgba(16, 38, 63, 0.07);
}

.detail-card p {
  color: #5d687a;
  line-height: 1.65;
}

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

.contact-copy p {
  color: #536075;
  font-size: 18px;
  line-height: 1.7;
}

.contact-methods {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
  align-items: center;
}

.contact-methods a:not(.button),
.text-button {
  color: var(--teal);
  font-weight: 800;
}

.text-button {
  padding: 0;
  background: transparent;
  border: 0;
  cursor: pointer;
  font: inherit;
}

.lead-form {
  display: grid;
  gap: 16px;
  padding: 28px;
  background: var(--panel-soft);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 12px 34px rgba(16, 38, 63, 0.07);
}

.lead-form label {
  display: grid;
  gap: 8px;
  color: var(--navy);
  font-size: 14px;
  font-weight: 800;
}

.lead-form input,
.lead-form select,
.lead-form textarea {
  width: 100%;
  min-height: 46px;
  padding: 11px 12px;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  font: inherit;
}

.lead-form textarea {
  resize: vertical;
}

.form-note {
  margin: 0;
  color: #6a7488;
  font-size: 13px;
  line-height: 1.5;
}

.final-cta {
  display: block;
  color: var(--white);
  background: var(--navy);
}

.final-cta-inner {
  display: grid;
  max-width: 920px;
  margin: 0 auto;
  gap: 24px;
  text-align: center;
}

.final-cta h2,
.final-cta .eyebrow {
  color: var(--white);
}

.final-cta h2 {
  max-width: 720px;
  margin: 0;
  justify-self: center;
}

.final-cta .button.primary {
  color: var(--navy);
  background: var(--white);
}

.final-cta .final-actions {
  justify-content: center;
  margin-top: 0;
}

html.dark-mode .site-header,
body.dark-mode .site-header {
  background: rgba(14, 23, 37, 0.92);
}

html.dark-mode .hero,
body.dark-mode .hero {
  background:
    linear-gradient(115deg, rgba(21, 35, 54, 0.96), rgba(14, 23, 37, 0.88) 48%, rgba(14, 23, 37, 0.6)),
    var(--paper);
}

html.dark-mode .tools,
body.dark-mode .tools {
  background: #121c2d;
}

html.dark-mode .gateway-card,
body.dark-mode .gateway-card,
html.dark-mode .detail-card,
body.dark-mode .detail-card,
html.dark-mode .recommender,
body.dark-mode .recommender {
  background: #172235;
}

html.dark-mode .recommendation,
body.dark-mode .recommendation {
  background: rgba(255, 255, 255, 0.04);
}

html.dark-mode .contact-section,
body.dark-mode .contact-section {
  background: #0f1928;
}

html.dark-mode h1,
html.dark-mode h2,
html.dark-mode h3,
body.dark-mode h1,
body.dark-mode h2,
body.dark-mode h3 {
  color: #f3f7ff;
}

html.dark-mode .nav-links,
body.dark-mode .nav-links {
  color: #c8d3e6;
}

html.dark-mode .brand small,
body.dark-mode .brand small {
  color: #aeb8c8;
}

html.dark-mode .eyebrow,
body.dark-mode .eyebrow {
  color: #48d2c7;
}

html.dark-mode .button.secondary,
html.dark-mode .mini-button,
html.dark-mode .back-button,
body.dark-mode .button.secondary,
body.dark-mode .mini-button,
body.dark-mode .back-button {
  color: #eef5ff;
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(216, 222, 234, 0.2);
}

html.dark-mode .button.primary,
body.dark-mode .button.primary {
  color: #ffffff;
  background: #1b7f7a;
}

html.dark-mode .button.calendly-button,
body.dark-mode .button.calendly-button {
  color: #ffffff;
  background: #006bff;
  border-color: #006bff;
  box-shadow: 0 12px 24px rgba(0, 107, 255, 0.22);
}

html.dark-mode .final-cta .button.primary,
body.dark-mode .final-cta .button.primary {
  color: #10263f;
  background: #ffffff;
}

html.dark-mode .lead-form label,
html.dark-mode .faq-list summary,
html.dark-mode .recommendation strong,
body.dark-mode .lead-form label,
body.dark-mode .faq-list summary,
body.dark-mode .recommendation strong {
  color: #f3f7ff;
}

html.dark-mode .lead-form input,
html.dark-mode .lead-form select,
html.dark-mode .lead-form textarea,
body.dark-mode .lead-form input,
body.dark-mode .lead-form select,
body.dark-mode .lead-form textarea {
  color: #f3f7ff;
  background: #101a2a;
  border-color: rgba(216, 222, 234, 0.2);
}

html.dark-mode .agent-panel,
body.dark-mode .agent-panel {
  color: #172031;
  background: #ffffff;
  border-color: rgba(16, 38, 63, 0.14);
}

html.dark-mode .agent-header,
body.dark-mode .agent-header {
  color: #ffffff;
  background: #10263f;
}

html.dark-mode .agent-header span,
body.dark-mode .agent-header span {
  color: #c9d4e2;
}

html.dark-mode .agent-messages,
body.dark-mode .agent-messages {
  background: #f7f9fb;
}

html.dark-mode .message.bot,
body.dark-mode .message.bot {
  color: #26344b;
  background: #ffffff;
  border-color: rgba(16, 38, 63, 0.14);
}

html.dark-mode .message.user,
body.dark-mode .message.user {
  color: #ffffff;
  background: #1b7f7a;
}

html.dark-mode .choice-row button,
body.dark-mode .choice-row button {
  color: #10263f;
  background: #ffffff;
  border-color: rgba(16, 38, 63, 0.14);
}

html.dark-mode .agent-form,
body.dark-mode .agent-form {
  background: #ffffff;
  border-top-color: rgba(16, 38, 63, 0.14);
}

html.dark-mode .agent-form input,
body.dark-mode .agent-form input {
  color: #172031;
  background: #ffffff;
  border-color: rgba(16, 38, 63, 0.14);
}

html.dark-mode .agent-form button,
body.dark-mode .agent-form button {
  color: #ffffff;
  background: #10263f;
}

html.dark-mode .agent-close,
body.dark-mode .agent-close {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.12);
}

html.dark-mode .agent-launcher,
body.dark-mode .agent-launcher {
  color: #ffffff;
  background: #1b7f7a;
}

html.dark-mode .hero-text,
html.dark-mode .section-heading p,
html.dark-mode .split-section p,
html.dark-mode .tool-copy p,
html.dark-mode .gateway-card p,
html.dark-mode .service-card p,
html.dark-mode .timeline-step p,
html.dark-mode .faq-list p,
html.dark-mode .recommendation p,
html.dark-mode .insight-panel p,
html.dark-mode .contact-copy p,
html.dark-mode .form-note,
html.dark-mode .quick-panel span,
body.dark-mode .hero-text,
body.dark-mode .section-heading p,
body.dark-mode .split-section p,
body.dark-mode .tool-copy p,
body.dark-mode .gateway-card p,
body.dark-mode .service-card p,
body.dark-mode .timeline-step p,
body.dark-mode .faq-list p,
body.dark-mode .recommendation p,
body.dark-mode .insight-panel p,
body.dark-mode .contact-copy p,
body.dark-mode .form-note,
body.dark-mode .quick-panel span {
  color: #aeb8c8;
}

.agent-launcher {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 30;
  display: grid;
  width: 64px;
  height: 64px;
  place-items: center;
  color: var(--white);
  background: var(--teal);
  border: 0;
  border-radius: 50%;
  box-shadow: var(--shadow);
  cursor: pointer;
  font-weight: 800;
}

.agent-panel {
  position: fixed;
  right: 24px;
  bottom: 104px;
  z-index: 35;
  display: grid;
  width: min(390px, calc(100vw - 32px));
  overflow: hidden;
  background: var(--white);
  border: 0;
  border-radius: 8px;
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity 160ms ease, transform 160ms ease;
}

.agent-panel.open {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.agent-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px;
  color: var(--white);
  background: var(--navy);
}

.agent-header span {
  display: block;
  margin-top: 3px;
  color: #c9d4e2;
  font-size: 12px;
}

.agent-close {
  width: 34px;
  height: 34px;
  color: var(--white);
  background: rgba(255, 255, 255, 0.12);
  border: 0;
  border-radius: 8px;
  cursor: pointer;
  font-size: 24px;
}

.agent-messages {
  display: flex;
  flex-direction: column;
  height: 300px;
  max-height: 380px;
  gap: 10px;
  overflow-y: auto;
  padding: 18px;
  background: #f7f9fb;
  scrollbar-gutter: stable;
}

.message {
  max-width: 88%;
  min-height: 44px;
  flex: 0 0 auto;
  padding: 12px 14px;
  border-radius: 8px;
  line-height: 1.45;
}

.message.bot {
  color: #26344b;
  background: var(--white);
  border: 1px solid var(--line);
}

.typing-message {
  color: #647086;
  font-size: 13px;
  font-style: italic;
}

.message.user {
  justify-self: end;
  color: var(--white);
  background: var(--teal);
}

.choice-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  min-height: 33px;
  flex: 0 0 auto;
  gap: 6px;
}

.choice-row button {
  min-height: 27px;
  padding: 5px 8px;
  color: var(--navy);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 7px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 800;
}

.button:focus,
.nav-links a:focus,
.nav-button:focus,
.theme-toggle:focus,
.agent-launcher:focus,
.agent-close:focus,
.choice-row button:focus,
.agent-form input:focus,
.agent-form button:focus {
  outline: none;
}

.button:focus-visible,
.nav-links a:focus-visible,
.nav-button:focus-visible,
.theme-toggle:focus-visible,
.agent-launcher:focus-visible,
.agent-close:focus-visible,
.choice-row button:focus-visible,
.agent-form input:focus-visible,
.agent-form button:focus-visible {
  outline: 2px solid rgba(27, 127, 122, 0.55);
  outline-offset: 3px;
}

.agent-form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  padding: 12px;
  background: #ffffff;
  border-top: 0;
}

.agent-form input,
.agent-form button {
  min-height: 44px;
  border-radius: 8px;
  font: inherit;
}

.agent-form input {
  min-width: 0;
  padding: 0 12px;
  background: #f7f9fb;
  border: 0;
}

.agent-form button {
  padding: 0 14px;
  color: var(--white);
  background: var(--navy);
  border: 0;
  cursor: pointer;
  font-weight: 800;
}

.form-status {
  margin: 0;
  color: var(--teal);
  font-weight: 800;
}

@media (max-width: 1040px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .nav-links {
    gap: 14px;
  }

  .hero,
  .split-section,
  .page-hero,
  .tools,
  .contact-section {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 680px) {
  .site-header {
    grid-template-columns: 1fr;
    align-items: center;
    min-height: auto;
  }

  .nav-links {
    justify-content: flex-start;
    overflow-x: auto;
    width: 100%;
    padding-bottom: 4px;
  }

  .brand-logo-wrap {
    width: 58px;
    height: 58px;
  }

  .brand strong {
    font-size: 15px;
  }

  .header-actions .mini-button {
    display: none;
  }

  .hero {
    min-height: auto;
  }

  h1 {
    font-size: 42px;
  }

  h2 {
    font-size: 36px;
  }

  .service-grid,
  .detail-grid,
  .gateway-grid,
  .timeline,
  .segmented {
    grid-template-columns: 1fr;
  }

  .quick-panel {
    position: static;
    margin-top: 14px;
    max-width: none;
  }

  .final-cta {
    align-items: flex-start;
    flex-direction: column;
  }

  .agent-panel {
    right: 14px;
    bottom: 88px;
    left: 14px;
    width: auto;
    max-height: calc(100dvh - 110px);
    border-radius: 8px;
  }

  .agent-header {
    padding: 14px 16px;
  }

  .agent-messages {
    height: min(48dvh, 340px);
    min-height: 260px;
    padding: 14px;
  }

  .message {
    max-width: 100%;
  }

  .message.user {
    max-width: 86%;
  }

  .choice-row {
    grid-template-columns: 1fr;
  }

  .agent-form {
    gap: 6px;
    padding: 10px;
  }

  .agent-form input,
  .agent-form button {
    min-height: 42px;
  }

  .agent-form button {
    padding: 0 12px;
  }
}
