:root {
  --bg: #f4f8ff;
  --surface: #ffffff;
  --surface-2: #edf4ff;
  --ink: #092341;
  --muted: #5f7187;
  --line: rgba(9, 35, 65, 0.12);
  --blue: #2563eb;
  --blue-dark: #174fc4;
  --blue-soft: #e8f0ff;
  --green: #16a34a;
  --amber: #f59e0b;
  --radius-xl: 32px;
  --radius-lg: 22px;
  --radius-md: 16px;
  --shadow: 0 24px 70px rgba(9, 35, 65, 0.13);
  --shadow-soft: 0 14px 42px rgba(9, 35, 65, 0.09);
  --max: 1180px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(37, 99, 235, 0.10), transparent 28rem),
    radial-gradient(circle at top right, rgba(245, 158, 11, 0.10), transparent 24rem),
    var(--bg);
  line-height: 1.5;
}

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

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

p {
  color: var(--muted);
  margin: 0;
}

h1, h2, h3 {
  margin: 0;
  line-height: 1.05;
  letter-spacing: -0.04em;
}

h1 {
  font-size: clamp(3rem, 6vw, 5.85rem);
}

h2 {
  font-size: clamp(2rem, 4vw, 3.5rem);
}

h3 {
  font-size: 1.25rem;
}

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  width: min(var(--max), calc(100% - 32px));
  margin: 16px auto 0;
  padding: 10px 18px;
  border: 1px solid var(--line);
  border-radius: 38px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.83);
  backdrop-filter: blur(18px);
  box-shadow: 0 10px 28px rgba(9,35,65,0.08);
}

.brand {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
}

.brand-logo {
  display: block;
  height: auto;
}

.brand-logo-header {
  width: 430px;
}

.brand-logo-footer {
  width: 320px;
  max-width: 100%;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.94rem;
  font-weight: 700;
  color: var(--muted);
}

.site-nav a {
  padding: 10px 12px;
  border-radius: 999px;
}

.site-nav a:hover {
  color: var(--ink);
  background: var(--surface-2);
}

.nav-cta {
  background: var(--ink) !important;
  color: white !important;
}

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  padding: 8px;
}

.nav-toggle span:not(.sr-only) {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--ink);
  margin: 5px 0;
}

.section {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
  padding: 92px 0;
}

.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: grid;
  width: calc(100% - 24px);
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  align-items: center;
  gap: clamp(34px, 5vw, 64px);
  margin-top: 28px;
  padding: clamp(52px, 7vw, 82px);
  min-height: 650px;
  border: 1px solid rgba(255,255,255,0.16);
  border-radius: 44px;
  color: white;
  background:
    radial-gradient(circle at 12% 8%, rgba(54, 211, 255, 0.28), transparent 30%),
    radial-gradient(circle at 88% 82%, rgba(35, 224, 172, 0.22), transparent 28%),
    linear-gradient(135deg, #102846 0%, #153d7a 44%, #4a247d 100%);
  box-shadow: 0 34px 90px rgba(16, 40, 70, 0.24);
}

.hero::after {
  content: "";
  position: absolute;
  z-index: -1;
  width: 440px;
  height: 440px;
  right: -180px;
  top: -230px;
  border-radius: 50%;
  background: rgba(129, 92, 246, 0.24);
  filter: blur(8px);
}

.hero-copy {
  display: grid;
  gap: 24px;
  width: 100%;
  max-width: 720px;
  justify-self: end;
}

.hero-eyebrow {
  display: inline-flex;
  width: fit-content;
  padding: 8px 13px;
  border: 1px solid rgba(141, 231, 255, 0.38);
  border-radius: 999px;
  color: #b8f1ff;
  background: rgba(255,255,255,0.09);
  font-size: 0.82rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero h1 {
  color: white;
  font-size: clamp(3rem, 5.5vw, 5.35rem);
}

.hero h1 span {
  color: #8de7ff;
}

.hero-subtitle {
  font-size: clamp(1.12rem, 2vw, 1.35rem);
  max-width: 720px;
  color: #d9e8fb;
  line-height: 1.62;
}

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

.pill {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.74);
  color: var(--ink);
  border-radius: 999px;
  padding: 8px 12px;
  font-weight: 800;
  font-size: 0.88rem;
}

.pill.accent {
  background: var(--blue-soft);
  color: var(--blue-dark);
  border-color: rgba(37,99,235,0.2);
}

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

.hero .button.primary {
  background: #6ee7f2;
  color: #082846;
  box-shadow: 0 16px 34px rgba(50, 211, 226, 0.26);
}

.hero .button.primary:hover {
  background: #9af2f6;
}

.hero .button.secondary {
  background: rgba(255,255,255,0.10);
  color: white;
  border-color: rgba(255,255,255,0.34);
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  color: #c8d9ed;
  font-size: 0.9rem;
  font-weight: 750;
}

.hero-meta span:not(:last-child)::after {
  content: "";
  display: inline-block;
  width: 4px;
  height: 4px;
  margin-left: 18px;
  border-radius: 50%;
  vertical-align: middle;
  background: #46dfbd;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 22px;
  border-radius: 999px;
  font-weight: 850;
  border: 1px solid transparent;
  transition: transform 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
}

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

.button.primary {
  background: var(--blue);
  color: white;
  box-shadow: 0 16px 28px rgba(37,99,235,0.25);
}

.button.primary:hover {
  background: var(--blue-dark);
}

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

.button.light {
  background: rgba(255,255,255,0.16);
  color: white;
  border-color: rgba(255,255,255,0.30);
}

.button.full {
  width: 100%;
}

.proof-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.proof-strip div {
  padding: 16px;
  background: rgba(255,255,255,0.68);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
}

.hero .proof-strip div {
  background: rgba(255,255,255,0.09);
  border-color: rgba(255,255,255,0.17);
  backdrop-filter: blur(10px);
}

.hero .proof-strip strong {
  color: white;
}

.hero .proof-strip span {
  color: #c8d9ed;
}

.proof-strip strong {
  display: block;
  font-size: 0.95rem;
}

.proof-strip span {
  display: block;
  color: var(--muted);
  margin-top: 4px;
  font-size: 0.88rem;
}

.card,
.image-card,
.screenshot-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.hero-media {
  padding: 12px;
}

.hero .hero-media {
  position: relative;
  background: rgba(255,255,255,0.12);
  border-color: rgba(255,255,255,0.22);
  box-shadow: 0 28px 62px rgba(3, 17, 43, 0.34);
  backdrop-filter: blur(16px);
}

.hero-image-card {
  height: clamp(380px, 30vw, 560px);
  padding: 0;
}

.hero-image-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-image-note {
  position: absolute;
  left: 20px;
  bottom: 20px;
  width: min(360px, calc(100% - 40px));
  padding: 14px 16px;
  border: 1px solid rgba(255,255,255,0.34);
  border-radius: 18px;
  color: white;
  background: rgba(9,35,65,0.78);
  backdrop-filter: blur(14px);
  box-shadow: 0 14px 34px rgba(3,17,43,0.24);
}

.hero-image-note strong,
.hero-image-note span {
  display: block;
}

.hero-image-note span {
  margin-top: 4px;
  color: #d9e8fb;
  font-size: 0.88rem;
}

.video-shell {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  background: #08192e;
  aspect-ratio: 16/10;
}

.video-shell video,
.demo-video-card video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.media-caption {
  padding: 14px 8px 4px;
  text-align: center;
  font-weight: 750;
}

.hero .media-caption {
  color: #e8f2ff;
}

.stocky-alert {
  width: min(var(--max), calc(100% - 32px));
  margin: clamp(52px, 6vw, 84px) auto 0;
  padding: 18px 20px;
  border: 1px solid rgba(245, 158, 11, 0.35);
  border-radius: 22px;
  background: #fff7df;
  color: #654300;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  box-shadow: var(--shadow-soft);
}

.stocky-alert a {
  flex: 0 0 auto;
  font-weight: 900;
  color: #8a5300;
}

.split,
.feature-row,
.demo-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 46px;
  align-items: center;
}

.reverse .section-copy {
  order: 2;
}

.section-copy {
  display: grid;
  gap: 18px;
}

.eyebrow {
  color: var(--blue);
  font-weight: 900;
  letter-spacing: 0.08em;
  font-size: 0.78rem;
  text-transform: uppercase;
}

.mini-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: 8px;
}

.mini-card {
  padding: 16px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 16px;
  font-weight: 800;
  box-shadow: var(--shadow-soft);
}

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

.centered {
  text-align: center;
  max-width: 780px;
  margin: 0 auto 38px;
  display: grid;
  gap: 14px;
}

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

.step-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 22px;
  box-shadow: var(--shadow-soft);
}

.step-num {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 12px;
  background: var(--blue-soft);
  color: var(--blue-dark);
  font-weight: 950;
  margin-bottom: 18px;
}

.step-card p {
  margin-top: 10px;
  font-size: 0.95rem;
}

.demo-section {
  background: var(--ink);
  color: white;
  border-radius: var(--radius-xl);
  grid-template-columns: minmax(260px, 0.55fr) minmax(0, 1.45fr);
  gap: clamp(36px, 4vw, 64px);
  padding: clamp(42px, 4vw, 62px);
  width: min(1460px, calc(100% - 32px));
}

.demo-section p,
.demo-section .eyebrow {
  color: rgba(255,255,255,0.76);
}

.demo-video-card {
  aspect-ratio: 16 / 9;
  box-shadow: none;
  border-color: rgba(255,255,255,0.12);
  background: #020917;
  border-radius: 24px;
}

.demo-video-card video {
  border-radius: 24px;
}

.file-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: 8px;
}

.file-list span {
  padding: 14px 16px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 14px;
  font-weight: 850;
}

.showcase-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 30px;
  align-items: center;
}

.screenshot-card {
  padding: 16px;
}

.screenshot-card img {
  width: 100%;
  border-radius: 18px;
}

.feature-stack {
  display: grid;
  gap: 14px;
}

.feature-stack article,
.feature-card {
  padding: 24px;
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
}

.feature-stack p,
.feature-card p {
  margin-top: 10px;
}

.wide-shot img {
  aspect-ratio: 16 / 7;
  object-fit: cover;
  object-position: left top;
}

.text-link {
  color: var(--blue);
  font-weight: 900;
}

.feature-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.note {
  background: var(--blue-soft);
  border: 1px solid rgba(37,99,235,0.16);
  color: #16427d;
  border-radius: 16px;
  padding: 16px;
}

.pricing-section {
  padding-top: 64px;
}

.pricing-card {
  max-width: 920px;
  margin: 0 auto;
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
  display: grid;
  grid-template-columns: 0.88fr 1.12fr;
  overflow: hidden;
}

.pricing-main {
  padding: 34px;
  background:
    radial-gradient(circle at top left, rgba(37,99,235,0.18), transparent 20rem),
    #f8fbff;
  display: grid;
  gap: 16px;
}

.price {
  display: flex;
  align-items: baseline;
  gap: 6px;
  color: var(--muted);
  font-weight: 800;
}

.price span {
  font-size: 4rem;
  line-height: 1;
  letter-spacing: -0.07em;
  color: var(--ink);
  font-weight: 950;
}

.trial {
  font-weight: 850;
  color: var(--green);
}

.pricing-includes {
  padding: 34px;
}

.pricing-includes ul {
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 12px;
}

.pricing-includes li {
  position: relative;
  padding-left: 30px;
  color: var(--muted);
  font-weight: 700;
}

.pricing-includes li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--green);
  font-weight: 950;
}

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

details {
  background: white;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 18px 20px;
  box-shadow: var(--shadow-soft);
}

summary {
  cursor: pointer;
  font-weight: 900;
}

details p {
  margin-top: 12px;
}

.final-cta {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto 30px;
  background: var(--ink);
  color: white;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.final-content {
  display: grid;
  grid-template-columns: 1fr 0.86fr;
  gap: 28px;
  align-items: center;
  padding: 44px;
}

.final-content p,
.final-content .eyebrow {
  color: rgba(255,255,255,0.72);
}

.final-content div {
  display: grid;
  gap: 18px;
}

.final-content img {
  border-radius: 24px;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.footer {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
  padding: 38px 0 54px;
  display: grid;
  gap: 26px;
  border-top: 1px solid var(--line);
}

.footer-main,
.footer-legal {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 28px;
}

.footer-brand {
  margin-bottom: 10px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  color: var(--muted);
  font-weight: 750;
}

.footer-legal {
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-size: 0.88rem;
}

.footer-legal > div {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  color: var(--muted);
  font-weight: 750;
}

.footer-links a:hover,
.footer-legal a:hover {
  color: var(--blue);
}

.legal-main {
  width: min(var(--max), calc(100% - 32px));
  margin: 28px auto 0;
  padding-bottom: 92px;
}

.legal-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(42px, 6vw, 72px);
  border: 1px solid rgba(255,255,255,0.16);
  border-radius: var(--radius-xl);
  color: white;
  background:
    radial-gradient(circle at 12% 8%, rgba(54, 211, 255, 0.24), transparent 30%),
    radial-gradient(circle at 88% 82%, rgba(35, 224, 172, 0.18), transparent 28%),
    linear-gradient(135deg, #102846 0%, #153d7a 48%, #4a247d 100%);
  box-shadow: 0 28px 72px rgba(16, 40, 70, 0.20);
}

.legal-hero-content {
  position: relative;
  z-index: 1;
  max-width: 820px;
  display: grid;
  gap: 18px;
}

.legal-hero h1 {
  font-size: clamp(2.8rem, 6vw, 5rem);
}

.legal-hero p {
  max-width: 760px;
  color: #d9e8fb;
  font-size: clamp(1.05rem, 2vw, 1.2rem);
  line-height: 1.65;
}

.legal-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.legal-meta span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 13px;
  border: 1px solid rgba(255,255,255,0.24);
  border-radius: 999px;
  color: #e8f2ff;
  background: rgba(255,255,255,0.10);
  font-size: 0.86rem;
  font-weight: 800;
}

.legal-layout {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  align-items: start;
  gap: 28px;
  margin-top: 32px;
}

.legal-toc,
.legal-document {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
}

.legal-toc {
  position: sticky;
  top: 108px;
  max-height: calc(100vh - 132px);
  padding: 22px;
  overflow-y: auto;
}

.legal-toc strong {
  display: block;
  margin-bottom: 14px;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue);
}

.legal-toc nav {
  display: grid;
  gap: 4px;
}

.legal-toc a {
  padding: 7px 9px;
  border-radius: 10px;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 700;
  line-height: 1.35;
}

.legal-toc a:hover {
  color: var(--blue-dark);
  background: var(--blue-soft);
}

.legal-document {
  padding: clamp(28px, 5vw, 64px);
}

.legal-intro {
  display: grid;
  gap: 16px;
  padding-bottom: 30px;
  border-bottom: 1px solid var(--line);
}

.legal-section {
  padding: 32px 0;
  scroll-margin-top: 112px;
}

.legal-section + .legal-section {
  border-top: 1px solid var(--line);
}

.legal-section:last-child {
  padding-bottom: 0;
}

.legal-section h2 {
  margin-bottom: 18px;
  font-size: clamp(1.45rem, 2.4vw, 2rem);
  letter-spacing: -0.025em;
}

.legal-section h3 {
  margin: 24px 0 10px;
  color: var(--ink);
  font-size: 1.05rem;
  letter-spacing: -0.01em;
}

.legal-document p,
.legal-document li {
  color: #455a73;
  line-height: 1.75;
}

.legal-document p + p {
  margin-top: 14px;
}

.legal-document ul {
  margin: 14px 0 0;
  padding-left: 22px;
  display: grid;
  gap: 8px;
}

.legal-document a {
  color: var(--blue-dark);
  font-weight: 750;
}

.legal-document address {
  margin-top: 16px;
  padding: 18px 20px;
  border: 1px solid rgba(37,99,235,0.16);
  border-radius: var(--radius-md);
  color: #16427d;
  background: var(--blue-soft);
  font-style: normal;
  line-height: 1.7;
}

.legal-note {
  margin-top: 18px;
  padding: 18px 20px;
  border-left: 4px solid var(--blue);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  background: var(--surface-2);
}

.legal-back {
  display: inline-flex;
  margin-top: 28px;
  color: var(--blue-dark);
  font-weight: 850;
}

@media (max-width: 980px) {
  .site-header {
    border-radius: 24px;
  }

  .nav-toggle {
    display: block;
  }

  .site-nav {
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% + 8px);
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 14px;
    background: white;
    border: 1px solid var(--line);
    border-radius: 24px;
    box-shadow: var(--shadow-soft);
  }

  .site-nav.open {
    display: flex;
  }

  .hero,
  .split,
  .feature-row,
  .demo-section,
  .showcase-grid,
  .pricing-card,
  .final-content {
    grid-template-columns: 1fr;
  }

  .reverse .section-copy {
    order: 0;
  }

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

  .hero {
    min-height: 0;
    padding: 52px 42px;
  }

  .hero-copy {
    max-width: none;
    justify-self: stretch;
  }

  .proof-strip {
    grid-template-columns: 1fr;
  }

  .stocky-alert {
    align-items: flex-start;
    flex-direction: column;
  }

  .legal-layout {
    grid-template-columns: 1fr;
  }

  .legal-toc {
    position: static;
    max-height: none;
  }

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

@media (max-width: 620px) {
  .brand-logo-header {
    width: min(360px, calc(100vw - 120px));
  }

  .brand-logo-footer {
    width: 280px;
  }

  .section {
    padding: 70px 0;
  }

  .hero {
    min-height: 0;
    margin-top: 16px;
    padding: 42px 24px;
    border-radius: 28px;
  }

  .hero-image-card {
    height: 300px;
  }

  .hero-image-note {
    left: 14px;
    bottom: 14px;
    width: calc(100% - 28px);
  }

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

  .steps,
  .feature-cards,
  .mini-grid,
  .file-list {
    grid-template-columns: 1fr;
  }

  .demo-section,
  .final-content {
    padding: 26px;
  }

  .footer-main,
  .footer-legal {
    flex-direction: column;
    align-items: flex-start;
  }

  .legal-main {
    margin-top: 16px;
    padding-bottom: 70px;
  }

  .legal-hero {
    padding: 38px 24px;
    border-radius: 28px;
  }

  .legal-layout {
    margin-top: 20px;
  }

  .legal-toc nav {
    grid-template-columns: 1fr;
  }

  .legal-document {
    padding: 28px 22px;
  }

  .legal-section {
    padding: 26px 0;
  }

  .price span {
    font-size: 3.2rem;
  }
}

.chat-assistant {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 200;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  pointer-events: none;
}

.faq-chat-cta {
  max-width: 880px;
  margin: 18px auto 0;
  padding: 18px 20px;
  border: 1px solid rgba(37, 99, 235, 0.18);
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  background: linear-gradient(135deg, #eef5ff, #f8fbff);
}

.faq-chat-cta > div {
  display: grid;
  gap: 3px;
}

.faq-chat-cta span {
  color: var(--muted);
  font-size: 0.9rem;
}

.faq-chat-cta button {
  flex: 0 0 auto;
  padding: 11px 15px;
  border: 0;
  border-radius: 12px;
  color: white;
  background: var(--blue-dark);
  cursor: pointer;
  font-weight: 850;
}

.chat-assistant button,
.chat-assistant input,
.chat-assistant textarea,
.chat-panel,
.chat-nudge {
  font: inherit;
  pointer-events: auto;
}

.chat-assistant [hidden] {
  display: none !important;
}

.chat-launcher {
  min-height: 58px;
  padding: 8px 18px 8px 10px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: white;
  background: linear-gradient(135deg, #174fc4, #2563eb 62%, #0f86a8);
  box-shadow: 0 16px 42px rgba(23, 79, 196, 0.34);
  cursor: pointer;
  font-weight: 850;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.chat-launcher:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 48px rgba(23, 79, 196, 0.42);
}

.chat-launcher:focus-visible,
.chat-panel button:focus-visible,
.chat-panel textarea:focus-visible,
.chat-panel input:focus-visible,
.chat-nudge button:focus-visible {
  outline: 3px solid rgba(54, 211, 255, 0.72);
  outline-offset: 2px;
}

.chat-launcher-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  background: rgba(255, 255, 255, 0.16);
}

.chat-launcher-icon span {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: white;
}

.chat-panel {
  width: min(400px, calc(100vw - 32px));
  height: min(650px, calc(100vh - 118px));
  margin-bottom: 12px;
  border: 1px solid rgba(9, 35, 65, 0.15);
  border-radius: 26px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  color: var(--ink);
  background: white;
  box-shadow: 0 28px 90px rgba(9, 35, 65, 0.28);
}

.chat-header {
  min-height: 76px;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 11px;
  color: white;
  background:
    radial-gradient(circle at 92% 0, rgba(54, 211, 255, 0.25), transparent 42%),
    linear-gradient(135deg, #092f67, #174fc4);
}

.chat-avatar {
  width: 43px;
  height: 43px;
  border-radius: 14px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.22);
  font-size: 0.82rem;
  font-weight: 950;
}

.chat-header > div:nth-child(2) {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.chat-header strong {
  font-size: 0.98rem;
}

.chat-header span {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.78rem;
}

.chat-close {
  width: 38px;
  height: 38px;
  margin-left: auto;
  border: 0;
  border-radius: 50%;
  color: white;
  background: rgba(255, 255, 255, 0.10);
  cursor: pointer;
  font-size: 1.45rem;
  line-height: 1;
}

.chat-close:hover {
  background: rgba(255, 255, 255, 0.18);
}

.chat-conversation {
  min-height: 0;
  flex: 1;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: linear-gradient(180deg, #f7faff, #ffffff 38%);
}

.chat-messages {
  min-height: 120px;
  flex: 1;
  overflow-y: auto;
  overscroll-behavior: contain;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 2px 3px 6px;
  scrollbar-width: thin;
}

.chat-message {
  max-width: 90%;
  display: grid;
  gap: 7px;
}

.chat-message-assistant {
  align-self: flex-start;
}

.chat-message-user {
  align-self: flex-end;
}

.chat-bubble {
  padding: 11px 13px;
  border-radius: 16px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-size: 0.9rem;
  line-height: 1.46;
}

.chat-message-assistant .chat-bubble {
  border: 1px solid var(--line);
  border-bottom-left-radius: 5px;
  color: #183451;
  background: white;
  box-shadow: 0 7px 20px rgba(9, 35, 65, 0.07);
}

.chat-message-user .chat-bubble {
  border-bottom-right-radius: 5px;
  color: white;
  background: linear-gradient(135deg, #174fc4, #2563eb);
}

.chat-message-loading .chat-bubble {
  color: var(--muted);
  font-style: italic;
}

.chat-message-contact,
.chat-contact-link {
  justify-self: start;
  padding: 0;
  border: 0;
  color: var(--blue-dark);
  background: transparent;
  cursor: pointer;
  font-size: 0.82rem;
  font-weight: 850;
  text-align: left;
}

.chat-message-contact:hover,
.chat-contact-link:hover {
  text-decoration: underline;
}

.chat-starters {
  max-height: 158px;
  overflow-y: auto;
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  padding: 2px;
}

.chat-starters button {
  padding: 8px 10px;
  border: 1px solid rgba(37, 99, 235, 0.19);
  border-radius: 999px;
  color: #174b9e;
  background: #f1f6ff;
  cursor: pointer;
  font-size: 0.76rem;
  font-weight: 750;
  line-height: 1.25;
}

.chat-starters button:hover {
  border-color: rgba(37, 99, 235, 0.38);
  background: #e5efff;
}

.chat-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: end;
}

.chat-form textarea {
  min-height: 46px;
  max-height: 110px;
  padding: 12px 13px;
  border: 1px solid rgba(9, 35, 65, 0.19);
  border-radius: 15px;
  resize: vertical;
  color: var(--ink);
  background: white;
  line-height: 1.35;
}

.chat-send,
.chat-contact-submit {
  min-height: 46px;
  padding: 0 16px;
  border: 0;
  border-radius: 14px;
  color: white;
  background: var(--blue-dark);
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: 850;
}

.chat-send:disabled,
.chat-contact-submit:disabled {
  cursor: wait;
  opacity: 0.58;
}

.chat-privacy {
  color: #77879a;
  font-size: 0.68rem;
  line-height: 1.35;
}

.chat-privacy a {
  color: var(--blue-dark);
  font-weight: 800;
}

.chat-contact {
  min-height: 0;
  flex: 1;
  overflow-y: auto;
  padding: 17px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: #f8faff;
}

.chat-contact-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.chat-contact-heading > div {
  display: grid;
  gap: 2px;
}

.chat-contact-heading span {
  color: var(--muted);
  font-size: 0.8rem;
}

.chat-contact-cancel {
  padding: 5px 8px;
  border: 0;
  color: var(--blue-dark);
  background: transparent;
  cursor: pointer;
  font-size: 0.8rem;
  font-weight: 850;
}

.chat-contact label {
  display: grid;
  gap: 5px;
  color: #29435f;
  font-size: 0.78rem;
  font-weight: 800;
}

.chat-contact label span {
  color: var(--muted);
  font-weight: 600;
}

.chat-contact input,
.chat-contact textarea {
  width: 100%;
  padding: 10px 11px;
  border: 1px solid rgba(9, 35, 65, 0.18);
  border-radius: 12px;
  resize: vertical;
  color: var(--ink);
  background: white;
}

.chat-contact-status {
  min-height: 18px;
  color: #9b341c;
  font-size: 0.76rem;
}

.chat-nudge {
  position: absolute;
  right: 0;
  bottom: 70px;
  width: 228px;
  padding: 13px 40px 13px 14px;
  border: 1px solid rgba(9, 35, 65, 0.13);
  border-radius: 16px;
  display: grid;
  gap: 1px;
  color: var(--ink);
  background: white;
  box-shadow: 0 16px 42px rgba(9, 35, 65, 0.18);
  animation: chat-nudge-in 220ms ease-out;
}

.chat-nudge strong {
  font-size: 0.88rem;
}

.chat-nudge span {
  color: var(--muted);
  font-size: 0.78rem;
}

.chat-nudge-close {
  position: absolute;
  top: 7px;
  right: 7px;
  width: 27px;
  height: 27px;
  border: 0;
  border-radius: 50%;
  color: var(--muted);
  background: var(--surface-2);
  cursor: pointer;
  line-height: 1;
}

@keyframes chat-nudge-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 620px) {
  .faq-chat-cta {
    align-items: stretch;
    flex-direction: column;
  }

  .faq-chat-cta button {
    width: 100%;
  }

  .chat-assistant {
    right: 16px;
    bottom: calc(16px + env(safe-area-inset-bottom));
  }

  .chat-launcher {
    width: 56px;
    height: 56px;
    min-height: 56px;
    padding: 8px;
    justify-content: center;
  }

  .chat-launcher-icon {
    width: 40px;
    height: 40px;
  }

  .chat-launcher-label {
    display: none;
  }

  .chat-panel {
    position: fixed;
    inset: 12px;
    width: auto;
    height: auto;
    max-height: none;
    margin: 0;
    border-radius: 24px;
  }

  .chat-is-open .chat-launcher {
    display: none;
  }

  .chat-conversation {
    padding-bottom: calc(14px + env(safe-area-inset-bottom));
  }

  .chat-starters {
    max-height: 184px;
  }

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

  .chat-send {
    width: 100%;
  }

  .chat-nudge {
    bottom: 68px;
    width: min(228px, calc(100vw - 32px));
  }
}

@media (prefers-reduced-motion: reduce) {
  .chat-launcher,
  .chat-nudge {
    transition: none;
    animation: none;
  }
}

@media print {
  .chat-assistant {
    display: none !important;
  }
}
