/* =========================================================
   MedPolicy AI — Multi-page Professional UI
   ========================================================= */

:root {
  --bg: #f2f7f6;
  --surface: rgba(255, 255, 255, 0.82);
  --surface-solid: #ffffff;
  --surface-soft: #f6faf9;
  --surface-strong: #eef6f4;

  --sidebar: #0b1d22;
  --sidebar-soft: #122a30;

  --text: #142326;
  --text-soft: #34474b;
  --muted: #708185;
  --muted-2: #93a2a5;

  --line: #dbe7e5;
  --line-soft: #e9f0ef;

  --brand: #0b8079;
  --brand-2: #0a645f;
  --brand-bright: #2bb3aa;
  --brand-soft: #def3f0;
  --brand-faint: #effaf8;

  --gold: #d1a64c;
  --gold-soft: #fff7e5;

  --success: #298765;
  --success-soft: #e9f7f0;
  --danger: #bd4d4d;
  --danger-soft: #fff0f0;
  --warning: #9c6b1e;
  --warning-soft: #fff7e7;

  --shadow-xs: 0 5px 16px rgba(21, 45, 48, 0.05);
  --shadow-sm: 0 10px 30px rgba(21, 45, 48, 0.08);
  --shadow-md: 0 20px 60px rgba(18, 42, 46, 0.13);
  --shadow-lg: 0 30px 90px rgba(12, 34, 38, 0.17);

  --sidebar-width: 294px;
  --topbar-height: 82px;

  --ease: cubic-bezier(.2, .8, .2, 1);
  --spring: cubic-bezier(.16, 1, .3, 1);

  --pointer-x: 50vw;
  --pointer-y: 50vh;
}

body.dark {
  --bg: #0c1518;
  --surface: rgba(19, 32, 36, 0.82);
  --surface-solid: #142227;
  --surface-soft: #101c20;
  --surface-strong: #182b30;

  --text: #edf5f4;
  --text-soft: #c1d0d2;
  --muted: #93a5a9;
  --muted-2: #72868b;

  --line: #293b40;
  --line-soft: #203137;

  --brand: #5ac3bc;
  --brand-2: #7cd5cf;
  --brand-bright: #6ed1ca;
  --brand-soft: #183b3c;
  --brand-faint: #13292c;

  --gold-soft: #3a301d;
  --success-soft: #17352b;
  --danger-soft: #3b2222;
  --warning-soft: #3a301d;

  --shadow-xs: 0 5px 16px rgba(0, 0, 0, 0.14);
  --shadow-sm: 0 10px 30px rgba(0, 0, 0, 0.18);
  --shadow-md: 0 20px 60px rgba(0, 0, 0, 0.22);
  --shadow-lg: 0 30px 90px rgba(0, 0, 0, 0.3);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

html,
body {
  margin: 0;
  width: 100%;
  min-height: 100%;
}

body {
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background: var(--bg);
  transition:
    background 220ms ease,
    color 220ms ease;
}

button,
textarea,
input {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  border: 0;
}

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

svg {
  width: 20px;
  height: 20px;
}

[hidden] {
  display: none !important;
}

/* =========================================================
   LANDING PAGE
   ========================================================= */

.landing-body {
  overflow-x: hidden;
  background:
    linear-gradient(180deg, #f5faf9 0%, #eef6f4 52%, #f6f9f8 100%);
}

body.dark.landing-body {
  background:
    linear-gradient(180deg, #0b1518 0%, #0d191c 55%, #0a1316 100%);
}

.ambient-bg,
.assistant-ambient-bg {
  position: fixed;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: -10;
}

.aurora {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: .5;
  mix-blend-mode: multiply;
}

body.dark .aurora {
  mix-blend-mode: screen;
  opacity: .17;
}

.aurora-one {
  width: 46vw;
  height: 46vw;
  top: -18vw;
  right: -11vw;
  background: radial-gradient(circle, rgba(36, 179, 169, .40), rgba(36, 179, 169, .04) 56%, transparent 72%);
  animation: auroraOne 15s ease-in-out infinite alternate;
}

.aurora-two {
  width: 42vw;
  height: 42vw;
  bottom: -20vw;
  left: -9vw;
  background: radial-gradient(circle, rgba(80, 175, 164, .20), transparent 68%);
  animation: auroraTwo 18s ease-in-out infinite alternate;
}

.aurora-three {
  width: 32vw;
  height: 32vw;
  top: 40vh;
  left: 42vw;
  background: radial-gradient(circle, rgba(209, 166, 76, .12), transparent 66%);
  animation: auroraThree 20s ease-in-out infinite alternate;
}

@keyframes auroraOne {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to { transform: translate3d(-7vw, 8vh, 0) scale(1.12); }
}

@keyframes auroraTwo {
  from { transform: translate3d(0, 0, 0) scale(1.04); }
  to { transform: translate3d(8vw, -5vh, 0) scale(.92); }
}

@keyframes auroraThree {
  from { transform: translate3d(0, 0, 0) scale(.9); }
  to { transform: translate3d(-5vw, 4vh, 0) scale(1.12); }
}

.medical-grid,
.assistant-grid-bg {
  position: absolute;
  inset: 0;
  opacity: .56;
  background-image:
    linear-gradient(to right, rgba(25, 96, 91, .05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(25, 96, 91, .05) 1px, transparent 1px);
  background-size: 54px 54px;
  mask-image:
    radial-gradient(circle at 60% 18%, black 0%, rgba(0,0,0,.7) 35%, transparent 80%);
}

body.dark .medical-grid,
body.dark .assistant-grid-bg {
  opacity: .25;
}

.mouse-glow {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(
      300px circle at var(--pointer-x) var(--pointer-y),
      rgba(19, 151, 143, .10),
      transparent 72%
    );
}

body.dark .mouse-glow {
  background:
    radial-gradient(
      320px circle at var(--pointer-x) var(--pointer-y),
      rgba(88, 198, 190, .07),
      transparent 72%
    );
}

.floating-cross {
  position: absolute;
  color: rgba(11, 128, 121, .13);
  font-family: Manrope, sans-serif;
  font-weight: 800;
  user-select: none;
}

body.dark .floating-cross {
  color: rgba(97, 206, 198, .10);
}

.cross-1 {
  top: 19vh;
  left: 7vw;
  font-size: 26px;
  animation: crossFloat 9s ease-in-out infinite alternate;
}

.cross-2 {
  top: 74vh;
  left: 87vw;
  font-size: 42px;
  animation: crossFloat 12s ease-in-out infinite alternate-reverse;
}

.cross-3 {
  top: 46vh;
  left: 48vw;
  font-size: 18px;
  animation: crossFloat 8s ease-in-out infinite alternate;
}

.cross-4 {
  top: 13vh;
  left: 75vw;
  font-size: 16px;
  animation: crossFloat 11s ease-in-out infinite alternate-reverse;
}

.cross-5 {
  top: 90vh;
  left: 22vw;
  font-size: 24px;
  animation: crossFloat 10s ease-in-out infinite alternate;
}

@keyframes crossFloat {
  from { transform: translateY(0) rotate(0deg); }
  to { transform: translateY(-26px) rotate(14deg); }
}

.landing-nav {
 position: fixed;
  top: 0;
    left: 0;
  right: 0;
  z-index: 50;
  width: 100%;
  min-height: 78px;
  padding: 0 clamp(22px, 5vw, 72px);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  background:
    linear-gradient(
      180deg,
      color-mix(in srgb, var(--surface-solid) 83%, transparent),
      color-mix(in srgb, var(--surface-solid) 67%, transparent)
    );
  border-bottom: 1px solid color-mix(in srgb, var(--line) 76%, transparent);
  backdrop-filter: blur(20px) saturate(1.2);
}

.landing-brand {
  width: fit-content;
  display: flex;
  align-items: center;
  gap: 11px;
}

.landing-brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: white;
  background:
    linear-gradient(145deg, #19a098, #096b66);
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,.18),
    0 10px 26px rgba(6, 88, 84, .20);
  transition:
    transform 360ms var(--spring),
    box-shadow 360ms ease;
}

.landing-brand:hover .landing-brand-mark {
  transform: rotate(-5deg) scale(1.06);
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,.18),
    0 15px 34px rgba(6, 88, 84, .28);
}

.landing-brand-mark svg {
  width: 22px;
  height: 22px;
}

.landing-brand > span:last-child {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.landing-brand strong {
  font-family: Manrope, sans-serif;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: -.3px;
}

.landing-brand small {
  color: var(--muted);
  font-size: 9px;
}

.landing-nav-links {
  display: flex;
  gap: 28px;
}

.landing-nav-links a {
  position: relative;
  color: var(--text-soft);
  font-size: 11px;
  font-weight: 600;
}

.landing-nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: -7px;
  height: 2px;
  border-radius: 99px;
  background: var(--brand);
  transition: right 220ms var(--ease);
}

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

.landing-nav-links a:hover::after {
  right: 0;
}

.landing-nav-actions {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 8px;
}

.theme-toggle,
.icon-btn {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: var(--muted);
  background: color-mix(in srgb, var(--surface-solid) 78%, transparent);
  border: 1px solid var(--line);
  cursor: pointer;
  transition:
    transform 220ms var(--spring),
    color 220ms ease,
    background 220ms ease,
    border-color 220ms ease;
}

.theme-toggle:hover,
.icon-btn:hover {
  transform: translateY(-2px);
  color: var(--brand);
  background: var(--brand-faint);
  border-color: color-mix(in srgb, var(--brand) 26%, var(--line));
}

.nav-launch-btn {
  min-height: 40px;
  padding: 0 15px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  border-radius: 12px;
  color: white;
  background:
    linear-gradient(135deg, #118b84, #086761);
  box-shadow: 0 10px 25px rgba(8, 103, 97, .18);
  font-size: 10px;
  font-weight: 700;
  transition:
    transform 220ms var(--spring),
    box-shadow 220ms ease;
}

.nav-launch-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 15px 34px rgba(8, 103, 97, .28);
}

.landing-main {
  width: 100%;
    padding-top: 78px;
}

.hero-section {
  width: min(1260px, calc(100% - 44px));
  min-height: calc(100vh - 78px);
  margin: 0 auto;
  padding: 72px 0 88px;
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(430px, .96fr);
  align-items: center;
  gap: clamp(48px, 7vw, 96px);
}

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

.hero-eyebrow,
.eyebrow,
.section-kicker {
  width: fit-content;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--brand);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 1.35px;
}

.hero-eyebrow {
  padding: 7px 10px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--brand-soft) 76%, transparent);
  border: 1px solid color-mix(in srgb, var(--brand) 14%, var(--line));
}

.live-pulse,
.pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--brand);
  box-shadow: 0 0 0 0 rgba(11, 128, 121, .32);
  animation: livePulse 2s ease-out infinite;
}

@keyframes livePulse {
  70% { box-shadow: 0 0 0 8px rgba(11, 128, 121, 0); }
  100% { box-shadow: 0 0 0 0 rgba(11, 128, 121, 0); }
}

.hero-section h1 {
  max-width: 750px;
  margin: 18px 0 0;
  font-family: Manrope, sans-serif;
  font-size: clamp(52px, 6.3vw, 86px);
  line-height: .98;
  letter-spacing: -4.2px;
  font-weight: 800;
  text-wrap: balance;
}

.hero-gradient-text {
  display: block;
  background:
    linear-gradient(92deg, var(--brand) 0%, #21a79f 45%, #6b9f9a 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-lead {
  max-width: 660px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.85;
}

.hero-actions {
  margin-top: 31px;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.hero-primary-btn,
.final-launch-btn {
  position: relative;
  overflow: hidden;
  min-height: 50px;
  padding: 0 20px;
  display: inline-flex;
  align-items: center;
  gap: 18px;
  border-radius: 14px;
  color: white;
  background:
    linear-gradient(135deg, #118d86, #08655f);
  box-shadow:
    0 12px 28px rgba(7, 98, 92, .20);
  font-size: 11px;
  font-weight: 750;
  transition:
    transform 260ms var(--spring),
    box-shadow 260ms ease;
}

.hero-primary-btn::before,
.final-launch-btn::before {
  content: "";
  position: absolute;
  top: -40%;
  bottom: -40%;
  left: -62%;
  width: 34%;
  background:
    linear-gradient(90deg, transparent, rgba(255,255,255,.32), transparent);
  transform: skewX(-20deg);
  transition: left 640ms var(--ease);
}

.hero-primary-btn:hover,
.final-launch-btn:hover {
  transform: translateY(-3px);
  box-shadow:
    0 18px 38px rgba(7, 98, 92, .28);
}

.hero-primary-btn:hover::before,
.final-launch-btn:hover::before {
  left: 132%;
}

.hero-primary-btn.compact {
  margin-top: 23px;
  min-height: 46px;
}

.hero-btn-arrow {
  width: 29px;
  height: 29px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  background: rgba(255,255,255,.12);
  transition: transform 240ms var(--spring);
}

.hero-primary-btn:hover .hero-btn-arrow {
  transform: translateX(3px);
}

.hero-secondary-btn {
  min-height: 50px;
  padding: 0 18px;
  display: inline-flex;
  align-items: center;
  border-radius: 14px;
  color: var(--text-soft);
  background:
    color-mix(in srgb, var(--surface-solid) 74%, transparent);
  border: 1px solid var(--line);
  backdrop-filter: blur(12px);
  font-size: 11px;
  font-weight: 700;
  transition:
    color 220ms ease,
    transform 220ms var(--spring),
    border-color 220ms ease;
}

.hero-secondary-btn:hover {
  transform: translateY(-2px);
  color: var(--brand);
  border-color: color-mix(in srgb, var(--brand) 28%, var(--line));
}

.hero-trust-row {
  margin-top: 36px;
  display: flex;
  gap: 11px;
  flex-wrap: wrap;
}

.trust-mini-card {
  min-width: 168px;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  gap: 9px;
  border-radius: 13px;
  color: var(--text-soft);
  background:
    color-mix(in srgb, var(--surface-solid) 67%, transparent);
  border: 1px solid color-mix(in srgb, var(--line) 86%, transparent);
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow-xs);
  transition:
    transform 220ms var(--spring),
    border-color 220ms ease;
}

.trust-mini-card:hover {
  transform: translateY(-3px);
  border-color: color-mix(in srgb, var(--brand) 23%, var(--line));
}

.trust-mini-icon {
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: var(--brand);
  background: var(--brand-soft);
  font-size: 8px;
  font-weight: 800;
}

.trust-mini-card div {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.trust-mini-card strong {
  font-size: 9px;
}

.trust-mini-card small {
  color: var(--muted);
  font-size: 8px;
}

.hero-visual {
  position: relative;
  min-height: 610px;
  display: grid;
  place-items: center;
  perspective: 1200px;
}

.visual-orbit {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(11, 128, 121, .12);
}

.orbit-one {
  width: 510px;
  height: 510px;
  animation: orbitRotate 30s linear infinite;
}

.orbit-two {
  width: 390px;
  height: 390px;
  border-style: dashed;
  animation: orbitRotateReverse 24s linear infinite;
}

.orbit-one::before,
.orbit-one::after,
.orbit-two::before {
  content: "";
  position: absolute;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--brand-bright);
  box-shadow: 0 0 0 6px rgba(43, 179, 170, .08);
}

.orbit-one::before {
  top: 17%;
  left: 4%;
}

.orbit-one::after {
  right: 6%;
  bottom: 18%;
  background: var(--gold);
  box-shadow: 0 0 0 6px rgba(209, 166, 76, .08);
}

.orbit-two::before {
  top: -5px;
  left: 50%;
}

@keyframes orbitRotate {
  to { transform: rotate(360deg); }
}

@keyframes orbitRotateReverse {
  to { transform: rotate(-360deg); }
}

.glass-panel {
  background:
    linear-gradient(
      145deg,
      color-mix(in srgb, var(--surface-solid) 86%, transparent),
      color-mix(in srgb, var(--surface-solid) 64%, transparent)
    );
  border: 1px solid rgba(255,255,255,.62);
  backdrop-filter: blur(24px) saturate(1.18);
  box-shadow:
    0 35px 100px rgba(24, 63, 65, .16),
    inset 0 1px 0 rgba(255,255,255,.76);
}

body.dark .glass-panel {
  border-color: rgba(255,255,255,.07);
  box-shadow:
    0 35px 100px rgba(0,0,0,.33),
    inset 0 1px 0 rgba(255,255,255,.05);
}

.policy-console {
  position: relative;
  z-index: 3;
  width: min(520px, 100%);
  padding: 18px;
  border-radius: 26px;
  transform:
    rotateY(-6deg)
    rotateX(2deg);
  transition:
    transform 550ms var(--spring),
    box-shadow 550ms ease;
}

.hero-visual:hover .policy-console {
  transform:
    rotateY(-1.5deg)
    rotateX(.5deg)
    translateY(-5px);
  box-shadow:
    0 45px 110px rgba(24, 63, 65, .20),
    inset 0 1px 0 rgba(255,255,255,.8);
}

.console-top {
  min-height: 54px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 13px;
  border-bottom: 1px solid var(--line-soft);
}

.console-brand {
  display: flex;
  align-items: center;
  gap: 9px;
}

.console-logo {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  color: white;
  background:
    linear-gradient(145deg, #189890, #08655f);
  font-weight: 800;
}

.console-brand div {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.console-brand strong {
  font-size: 10px;
}

.console-brand small {
  color: var(--muted);
  font-size: 8px;
}

.console-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--success);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: .6px;
}

.console-status > span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--success);
  animation: livePulse 2s infinite;
}

.console-document {
  margin-top: 14px;
  padding: 12px;
  display: grid;
  grid-template-columns: 35px 1fr auto;
  align-items: center;
  gap: 10px;
  border-radius: 14px;
  background: var(--surface-soft);
  border: 1px solid var(--line-soft);
}

.console-file-icon {
  width: 35px;
  height: 35px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  color: var(--brand);
  background: var(--brand-soft);
}

.console-file-icon svg {
  width: 17px;
  height: 17px;
}

.console-file-copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.console-file-copy strong {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 9px;
}

.console-file-copy small {
  color: var(--muted);
  font-size: 8px;
}

.console-indexed {
  padding: 4px 7px;
  border-radius: 999px;
  color: var(--success);
  background: var(--success-soft);
  font-size: 7px;
  font-weight: 800;
}

.console-question {
  width: 79%;
  margin: 18px 0 0 auto;
  padding: 12px 13px;
  border-radius: 14px 14px 4px 14px;
  color: white;
  background:
    linear-gradient(135deg, #13847d, #08655f);
  box-shadow: 0 10px 24px rgba(7, 99, 94, .15);
}

.console-user {
  display: block;
  margin-bottom: 5px;
  color: rgba(255,255,255,.67);
  font-size: 7px;
  font-weight: 800;
  letter-spacing: .8px;
}

.console-question p,
.console-answer p {
  margin: 0;
  font-size: 9px;
  line-height: 1.65;
}

.console-answer {
  width: 88%;
  margin-top: 13px;
  padding: 13px;
  border-radius: 4px 15px 15px 15px;
  background:
    color-mix(in srgb, var(--surface-solid) 88%, transparent);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-xs);
}

.console-ai-row {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 8px;
}

.console-ai-mark {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: white;
  background: var(--brand);
  font-size: 13px;
  font-weight: 800;
}

.console-ai-row strong {
  font-size: 8px;
}

.console-thinking {
  margin-left: auto;
  display: flex;
  gap: 3px;
}

.console-thinking i {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--brand);
  animation: tinyTyping 1s ease-in-out infinite;
}

.console-thinking i:nth-child(2) {
  animation-delay: .12s;
}

.console-thinking i:nth-child(3) {
  animation-delay: .24s;
}

@keyframes tinyTyping {
  0%, 60%, 100% { transform: translateY(0); opacity: .35; }
  30% { transform: translateY(-3px); opacity: 1; }
}

.console-source {
  margin-top: 11px;
  padding: 8px;
  display: grid;
  grid-template-columns: 28px 1fr auto;
  align-items: center;
  gap: 8px;
  border-radius: 10px;
  background: var(--brand-faint);
  border: 1px solid color-mix(in srgb, var(--brand) 12%, var(--line));
}

.source-doc-mini {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: var(--brand);
  background: var(--brand-soft);
  font-size: 6px;
  font-weight: 800;
}

.console-source div {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.console-source strong {
  font-size: 7px;
}

.console-source small {
  color: var(--muted);
  font-size: 6px;
}

.console-page {
  padding: 4px 6px;
  border-radius: 99px;
  color: var(--brand);
  background: var(--brand-soft);
  font-size: 6px;
  font-weight: 800;
}

.console-footer {
  margin-top: 12px;
  padding-top: 10px;
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  border-top: 1px solid var(--line-soft);
  font-size: 7px;
}

.security-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--success);
}

.floating-info-card {
  position: absolute;
  z-index: 4;
  min-width: 190px;
  padding: 11px 12px;
  display: flex;
  align-items: center;
  gap: 9px;
  border-radius: 14px;
  background:
    color-mix(in srgb, var(--surface-solid) 77%, transparent);
  border: 1px solid color-mix(in srgb, var(--line) 84%, transparent);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow-sm);
}

.floating-info-one {
  right: -34px;
  top: 105px;
  animation: cardFloatOne 5s ease-in-out infinite alternate;
}

.floating-info-two {
  left: -22px;
  bottom: 92px;
  animation: cardFloatTwo 6s ease-in-out infinite alternate-reverse;
}

@keyframes cardFloatOne {
  from { transform: translateY(0) rotate(1deg); }
  to { transform: translateY(-11px) rotate(-1deg); }
}

@keyframes cardFloatTwo {
  from { transform: translateY(0) rotate(-1deg); }
  to { transform: translateY(10px) rotate(1deg); }
}

.floating-info-icon {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  color: var(--brand);
  background: var(--brand-soft);
  font-size: 11px;
  font-weight: 800;
}

.floating-info-card div {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.floating-info-card strong {
  font-size: 9px;
}

.floating-info-card small {
  color: var(--muted);
  font-size: 7px;
}

.landing-section {
  width: min(1180px, calc(100% - 44px));
  margin: 0 auto;
  padding: 105px 0;
}

.section-kicker {
  margin-bottom: 17px;
}

.section-heading-large {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 70px;
  align-items: end;
}

.section-heading-large h2,
.workflow-heading h2,
.features-copy h2,
.final-cta-content h2 {
  margin: 0;
  font-family: Manrope, sans-serif;
  font-weight: 800;
  letter-spacing: -2px;
  line-height: 1.09;
}

.section-heading-large h2 {
  max-width: 700px;
  font-size: clamp(35px, 4.4vw, 58px);
}

.section-heading-large p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.8;
}

.problem-grid {
  margin-top: 42px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.problem-card,
.landing-feature-card {
  position: relative;
  overflow: hidden;
  min-height: 210px;
  padding: 23px;
  border-radius: 19px;
  background:
    linear-gradient(
      145deg,
      color-mix(in srgb, var(--surface-solid) 88%, transparent),
      color-mix(in srgb, var(--surface-solid) 67%, transparent)
    );
  border: 1px solid color-mix(in srgb, var(--line) 88%, transparent);
  backdrop-filter: blur(15px);
  box-shadow:
    var(--shadow-xs),
    inset 0 1px 0 rgba(255,255,255,.60);
  transition:
    transform 300ms var(--spring),
    border-color 300ms ease,
    box-shadow 300ms ease;
}

.problem-card::after,
.landing-feature-card::after {
  content: "";
  position: absolute;
  width: 120px;
  height: 120px;
  right: -66px;
  bottom: -65px;
  border-radius: 50%;
  background: rgba(11, 128, 121, .08);
  transition:
    transform 420ms var(--spring),
    opacity 420ms ease;
}

.problem-card:hover,
.landing-feature-card:hover {
  transform: translateY(-7px);
  border-color: color-mix(in srgb, var(--brand) 25%, var(--line));
  box-shadow: var(--shadow-md);
}

.problem-card:hover::after,
.landing-feature-card:hover::after {
  transform: scale(1.35);
}

.problem-number,
.landing-feature-tag {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  color: var(--brand);
  background: var(--brand-soft);
  font-size: 8px;
  font-weight: 800;
}

.problem-card h3,
.landing-feature-card h3 {
  margin: 54px 0 9px;
  font-family: Manrope, sans-serif;
  font-size: 17px;
}

.problem-card p,
.landing-feature-card p {
  margin: 0;
  max-width: 310px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.7;
}

.workflow-section {
  position: relative;
}

.workflow-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 40px;
}

.workflow-heading h2 {
  max-width: 650px;
  font-size: clamp(34px, 4vw, 52px);
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--brand);
  font-size: 11px;
  font-weight: 700;
}

.text-link span {
  transition: transform 220ms var(--spring);
}

.text-link:hover span {
  transform: translateX(4px);
}

.workflow-track {
  position: relative;
  margin-top: 52px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 15px;
}

.workflow-line {
  position: absolute;
  left: 12.5%;
  right: 12.5%;
  top: 40px;
  height: 1px;
  background:
    linear-gradient(
      90deg,
      transparent,
      color-mix(in srgb, var(--brand) 20%, var(--line)),
      color-mix(in srgb, var(--brand) 35%, var(--line)),
      color-mix(in srgb, var(--brand) 20%, var(--line)),
      transparent
    );
}

.workflow-step {
  position: relative;
  z-index: 2;
  padding: 18px 15px;
  text-align: center;
}

.workflow-index {
  position: absolute;
  top: 8px;
  right: 10px;
  color: var(--muted-2);
  font-size: 8px;
  font-weight: 800;
}

.workflow-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto;
  display: grid;
  place-items: center;
  border-radius: 24px;
  color: var(--brand);
  background:
    linear-gradient(
      145deg,
      color-mix(in srgb, var(--brand-soft) 75%, var(--surface-solid)),
      var(--surface-solid)
    );
  border: 1px solid color-mix(in srgb, var(--brand) 15%, var(--line));
  box-shadow: var(--shadow-sm);
  transition:
    transform 320ms var(--spring),
    box-shadow 320ms ease;
}

.workflow-step:hover .workflow-icon {
  transform: translateY(-7px) rotate(-3deg);
  box-shadow:
    0 18px 46px rgba(11, 128, 121, .15);
}

.workflow-icon svg {
  width: 28px;
  height: 28px;
}

.workflow-step h3 {
  margin: 17px 0 7px;
  font-size: 12px;
}

.workflow-step p {
  max-width: 210px;
  margin: 0 auto;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.65;
}

.features-layout {
  display: grid;
  grid-template-columns: .82fr 1.18fr;
  gap: 70px;
  align-items: start;
}

.features-copy {
  position: sticky;
  top: 120px;
}

.features-copy h2 {
  max-width: 470px;
  font-size: clamp(34px, 4vw, 50px);
}

.features-copy > p {
  max-width: 490px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.8;
}

.feature-card-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.landing-feature-card {
  min-height: 225px;
}

.landing-feature-card:nth-child(2),
.landing-feature-card:nth-child(4) {
  transform: translateY(28px);
}

.landing-feature-card:nth-child(2):hover,
.landing-feature-card:nth-child(4):hover {
  transform: translateY(21px);
}

.final-cta-section {
  position: relative;
  overflow: hidden;
  width: min(1180px, calc(100% - 44px));
  min-height: 390px;
  margin: 80px auto 100px;
  padding: 70px;
  display: grid;
  place-items: center;
  border-radius: 32px;
  color: white;
  text-align: center;
  background:
    radial-gradient(circle at 78% 16%, rgba(87, 219, 209, .18), transparent 34%),
    radial-gradient(circle at 10% 100%, rgba(209, 166, 76, .12), transparent 35%),
    linear-gradient(135deg, #102c31 0%, #0a2428 50%, #0d3537 100%);
  box-shadow: var(--shadow-lg);
}

.final-cta-section::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: .15;
  background-image:
    linear-gradient(to right, rgba(255,255,255,.12) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,.10) 1px, transparent 1px);
  background-size: 44px 44px;
}

.final-cta-glow {
  position: absolute;
  width: 330px;
  height: 330px;
  border-radius: 50%;
  background: rgba(50, 190, 181, .15);
  filter: blur(45px);
  animation: finalGlow 6s ease-in-out infinite alternate;
}

@keyframes finalGlow {
  from { transform: scale(.8); opacity: .55; }
  to { transform: scale(1.18); opacity: .9; }
}

.final-cta-content {
  position: relative;
  z-index: 2;
}

.section-kicker.light {
  margin-inline: auto;
  color: #78d6cf;
}

.final-cta-content h2 {
  margin-top: 12px;
  font-size: clamp(38px, 5vw, 60px);
  letter-spacing: -2.5px;
}

.final-cta-content p {
  max-width: 520px;
  margin: 14px auto 26px;
  color: #a8c0c4;
  font-size: 12px;
  line-height: 1.7;
}

.final-launch-btn {
  background: linear-gradient(135deg, #1a9e95, #0a706a);
}

.landing-footer {
  width: min(1180px, calc(100% - 44px));
  margin: 0 auto;
  padding: 0 0 35px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  color: var(--muted);
  font-size: 9px;
}

.landing-brand.small .landing-brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 10px;
}

.landing-brand.small strong {
  font-size: 12px;
}

.reveal-on-scroll {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 700ms var(--ease),
    transform 700ms var(--ease);
}

.reveal-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* =========================================================
   ASSISTANT PAGE
   ========================================================= */

.assistant-body {
  height: 100vh;
  overflow: hidden;
}

.assistant-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(65px);
}

.orb-a {
  width: 35vw;
  height: 35vw;
  top: -17vw;
  right: -7vw;
  background: rgba(27, 167, 157, .12);
}

.orb-b {
  width: 30vw;
  height: 30vw;
  bottom: -14vw;
  left: 38vw;
  background: rgba(209, 166, 76, .06);
}

.app-shell {
  display: flex;
  width: 100vw;
  height: 100vh;
}

.sidebar {
  position: relative;
  width: var(--sidebar-width);
  flex: 0 0 var(--sidebar-width);
  height: 100vh;
  padding: 20px 18px 17px;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  color: #edf7f7;
  background:
    radial-gradient(circle at 12% 5%, rgba(84, 207, 198, .15), transparent 22%),
    radial-gradient(circle at 88% 86%, rgba(209, 166, 76, .055), transparent 25%),
    linear-gradient(180deg, #10272d 0%, #0a1b20 66%, #081619 100%);
  border-right: 1px solid rgba(255,255,255,.06);
  box-shadow: 17px 0 46px rgba(5, 20, 24, .06);
  z-index: 50;
}

.sidebar::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 1px;
  height: 100%;
  background:
    linear-gradient(
      to bottom,
      transparent,
      rgba(87, 209, 200, .30) 24%,
      rgba(87, 209, 200, .08) 72%,
      transparent
    );
}

.brand-row {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 2px 4px 19px;
}

.brand-link {
  color: white;
}

.brand-mark {
  position: relative;
  overflow: hidden;
  width: 43px;
  height: 43px;
  flex: 0 0 43px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: white;
  background:
    linear-gradient(145deg, #179a92, #086962);
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,.14),
    0 10px 25px rgba(0,0,0,.19);
  transition:
    transform 330ms var(--spring);
}

.brand-link:hover .brand-mark {
  transform: rotate(-5deg) scale(1.05);
}

.brand-mark svg {
  width: 23px;
  height: 23px;
}

.brand-name {
  font-family: Manrope, sans-serif;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -.3px;
}

.brand-subtitle {
  margin-top: 2px;
  color: #9bb1b5;
  font-size: 10px;
}

.back-home-link {
  width: fit-content;
  margin: -4px 4px 13px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #85a2a6;
  font-size: 9px;
  font-weight: 650;
  transition:
    color 200ms ease,
    transform 200ms var(--spring);
}

.back-home-link:hover {
  color: #73d0c8;
  transform: translateX(-2px);
}

.sidebar-section {
  padding: 16px 0;
  border-top: 1px solid rgba(255,255,255,.075);
}

.grow-section {
  flex: 1;
}

.section-heading {
  margin-bottom: 11px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #819ba0;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 1.2px;
}

.count-pill {
  min-width: 21px;
  height: 21px;
  padding: 0 6px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #bed0d3;
  background: rgba(255,255,255,.07);
  letter-spacing: 0;
}

.dropzone {
  position: relative;
  overflow: hidden;
  min-height: 145px;
  padding: 18px 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  border: 1px dashed rgba(190, 221, 222, .30);
  color: white;
  background: rgba(255,255,255,.032);
  text-align: center;
  cursor: pointer;
  transition:
    transform 240ms var(--spring),
    border-color 240ms ease,
    background 240ms ease,
    box-shadow 240ms ease;
}

.dropzone::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: -70%;
  width: 48%;
  background:
    linear-gradient(90deg, transparent, rgba(255,255,255,.055), transparent);
  transform: skewX(-18deg);
  transition: left 650ms var(--ease);
}

.dropzone:hover,
.dropzone.dragover {
  transform: translateY(-2px);
  border-color: rgba(106, 216, 207, .80);
  background: rgba(63, 166, 158, .10);
  box-shadow: 0 14px 35px rgba(0,0,0,.12);
}

.dropzone:hover::after,
.dropzone.dragover::after {
  left: 125%;
}

.dropzone-icon {
  width: 40px;
  height: 40px;
  margin-bottom: 10px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: #6ed0c8;
  background: rgba(72, 177, 169, .13);
  transition:
    transform 260ms var(--spring),
    box-shadow 260ms ease;
}

.dropzone:hover .dropzone-icon {
  transform: translateY(-3px) rotate(-3deg);
  box-shadow: 0 10px 22px rgba(10, 110, 104, .18);
}

.dropzone strong {
  font-size: 12px;
}

.dropzone span {
  margin-top: 5px;
  color: #9bb0b4;
  font-size: 10px;
}

.dropzone small {
  margin-top: 9px;
  color: #6e878c;
  font-size: 9px;
}

.primary-btn,
.send-btn {
  position: relative;
  overflow: hidden;
}

.primary-btn {
  height: 41px;
  padding: 0 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 12px;
  color: white;
  background:
    linear-gradient(135deg, #168f88, #0a6c66);
  box-shadow: 0 9px 20px rgba(5, 65, 63, .25);
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  transition:
    transform 220ms var(--spring),
    filter 220ms ease,
    opacity 220ms ease;
}

.primary-btn:hover:not(:disabled) {
  transform: translateY(-2px);
  filter: brightness(1.06);
}

.primary-btn:disabled {
  opacity: .42;
  cursor: not-allowed;
  box-shadow: none;
}

.full-width {
  width: 100%;
  margin-top: 10px;
}

.btn-spinner,
.status-spinner {
  border-radius: 50%;
  animation: spin .8s linear infinite;
}

.btn-spinner {
  width: 14px;
  height: 14px;
  border: 2px solid rgba(255,255,255,.34);
  border-top-color: white;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.selected-file {
  margin-top: 10px;
  padding: 9px;
  display: flex;
  align-items: center;
  gap: 8px;
  border-radius: 11px;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.065);
}

.file-badge {
  width: 35px;
  height: 35px;
  flex: 0 0 35px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  color: #0b7b75;
  background: #e7f5f3;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: .4px;
}

.file-badge.active {
  color: #76d8d0;
  background: rgba(68, 183, 174, .14);
}

.selected-file-meta {
  min-width: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.selected-file-meta strong {
  font-size: 10px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.selected-file-meta span {
  color: #80979c;
  font-size: 9px;
}

.sidebar .icon-btn.subtle {
  width: 28px;
  height: 28px;
  color: #82999d;
  background: transparent;
  border: 0;
  font-size: 18px;
}

.empty-document {
  min-height: 125px;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 5px;
  border-radius: 14px;
  background: rgba(255,255,255,.023);
  border: 1px solid rgba(255,255,255,.05);
  text-align: center;
}

.empty-doc-icon {
  width: 29px;
  height: 29px;
  margin-bottom: 2px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #70878c;
  background: rgba(255,255,255,.04);
}

.empty-document p {
  margin: 0;
  color: #b5c4c7;
  font-size: 10px;
  font-weight: 650;
}

.empty-document span {
  color: #6d8489;
  font-size: 9px;
}

.document-card {
  position: relative;
  overflow: hidden;
  padding: 13px;
  border-radius: 14px;
  background:
    linear-gradient(180deg, rgba(71,163,157,.10), rgba(255,255,255,.03));
  border: 1px solid rgba(111, 208, 200, .15);
  transition:
    transform 240ms var(--spring),
    box-shadow 240ms ease;
}

.document-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(115deg, transparent 14%, rgba(116,220,212,.07) 48%, transparent 78%);
  transform: translateX(-100%);
  animation: documentSweep 5.8s ease-in-out infinite;
}

@keyframes documentSweep {
  0%, 70%, 100% { transform: translateX(-100%); }
  83% { transform: translateX(100%); }
}

.document-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(0,0,0,.12);
}

.document-card-top {
  position: relative;
  z-index: 1;
  margin-bottom: 9px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.ready-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #65d6a4;
  animation: readyPulse 2s ease-out infinite;
}

@keyframes readyPulse {
  0% { box-shadow: 0 0 0 0 rgba(101,214,164,.24); }
  70% { box-shadow: 0 0 0 8px rgba(101,214,164,0); }
  100% { box-shadow: 0 0 0 0 rgba(101,214,164,0); }
}

.document-card > strong {
  position: relative;
  z-index: 1;
  display: block;
  font-size: 11px;
  line-height: 1.4;
  word-break: break-word;
}

.document-status {
  position: relative;
  z-index: 1;
  display: block;
  margin-top: 3px;
  color: #8da5aa;
  font-size: 9px;
}

.document-progress {
  position: relative;
  z-index: 1;
  height: 4px;
  margin-top: 12px;
  border-radius: 99px;
  overflow: hidden;
  background: rgba(255,255,255,.07);
}

.document-progress-fill {
  width: 100%;
  height: 100%;
  background:
    linear-gradient(90deg, #4bb3ab, #79d6ce);
}

.document-meta-row {
  position: relative;
  z-index: 1;
  margin-top: 7px;
  display: flex;
  justify-content: space-between;
  color: #6f878d;
  font-size: 8px;
}

.sidebar-bottom {
  padding-top: 13px;
  border-top: 1px solid rgba(255,255,255,.075);
}

.mini-status {
  display: flex;
  align-items: center;
  gap: 9px;
}

.system-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #5bcf9b;
  box-shadow: 0 0 0 5px rgba(91,207,155,.09);
}

.mini-status div {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.mini-status strong {
  color: #d4e0e1;
  font-size: 9px;
}

.mini-status span {
  color: #71888d;
  font-size: 8px;
}

.sidebar-footnote {
  margin: 11px 0 0;
  color: #60777c;
  font-size: 8px;
  line-height: 1.5;
}

.main-panel {
  position: relative;
  min-width: 0;
  flex: 1;
  height: 100vh;
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(circle at 82% 5%, rgba(13, 133, 126, .055), transparent 24%),
    color-mix(in srgb, var(--bg) 97%, var(--surface-solid));
}

.content-width {
  width: min(920px, calc(100% - 48px));
  margin-inline: auto;
}

.topbar {
  position: relative;
  z-index: 10;
  height: var(--topbar-height);
  flex: 0 0 var(--topbar-height);
  padding: 0 27px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  background:
    linear-gradient(
      180deg,
      color-mix(in srgb, var(--surface-solid) 92%, transparent),
      color-mix(in srgb, var(--surface-solid) 83%, transparent)
    );
  border-bottom: 1px solid var(--line-soft);
  backdrop-filter: blur(18px) saturate(1.15);
}

.topbar::after {
  content: "";
  position: absolute;
  left: 30px;
  right: 30px;
  bottom: -1px;
  height: 1px;
  background:
    linear-gradient(
      90deg,
      transparent,
      color-mix(in srgb, var(--brand) 20%, var(--line)),
      transparent
    );
}

.topbar-left {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 12px;
}

.topbar h1 {
  margin: 0;
  font-family: Manrope, sans-serif;
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -.4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.topbar p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 10px;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.trust-pill {
  min-height: 35px;
  padding: 0 11px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border-radius: 999px;
  color: var(--brand);
  background: var(--brand-soft);
  border: 1px solid color-mix(in srgb, var(--brand) 15%, var(--line));
  font-size: 10px;
  font-weight: 700;
}

.trust-pill svg {
  width: 15px;
  height: 15px;
}

.mobile-menu {
  display: none;
}

.status-banner {
  position: relative;
  z-index: 9;
  width: min(920px, calc(100% - 48px));
  margin: 13px auto 0;
  padding: 11px 13px;
  display: flex;
  align-items: center;
  gap: 10px;
  border-radius: 13px;
  background:
    color-mix(in srgb, var(--surface-solid) 88%, transparent);
  border: 1px solid var(--line);
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow-xs);
  animation: statusIn 280ms var(--spring) both;
}

@keyframes statusIn {
  from {
    opacity: 0;
    transform: translateY(-8px) scale(.985);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.status-banner.success {
  background: var(--success-soft);
  border-color: color-mix(in srgb, var(--success) 25%, var(--line));
}

.status-banner.error {
  background: var(--danger-soft);
  border-color: color-mix(in srgb, var(--danger) 25%, var(--line));
}

.status-banner.warning {
  background: var(--warning-soft);
  border-color: color-mix(in srgb, var(--warning) 25%, var(--line));
}

.status-spinner {
  width: 17px;
  height: 17px;
  border: 2px solid color-mix(in srgb, var(--brand) 18%, var(--line));
  border-top-color: var(--brand);
}

.status-copy {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.status-copy strong {
  font-size: 11px;
}

.status-copy span {
  color: var(--muted);
  font-size: 9px;
}

.status-close {
  width: 27px;
  height: 27px;
  font-size: 17px;
}

.chat-scroll {
  min-height: 0;
  flex: 1;
  overflow-y: auto;
  scroll-behavior: smooth;
}

.chat-scroll::-webkit-scrollbar {
  width: 9px;
}

.chat-scroll::-webkit-scrollbar-thumb {
  border: 3px solid transparent;
  border-radius: 999px;
  background:
    color-mix(in srgb, var(--muted) 22%, transparent);
  background-clip: padding-box;
}

.welcome-panel {
  position: relative;
  padding: 50px 0 34px;
}

.welcome-panel::after {
  content: "";
  position: absolute;
  width: 230px;
  height: 230px;
  top: 20px;
  right: 0;
  z-index: -1;
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(18, 143, 135, .10), transparent 70%);
  filter: blur(10px);
  animation: welcomeGlow 7s ease-in-out infinite alternate;
}

@keyframes welcomeGlow {
  from { transform: scale(.88) translateY(0); }
  to { transform: scale(1.08) translateY(16px); }
}

.eyebrow {
  padding: 6px 9px;
  border-radius: 999px;
  background: var(--brand-soft);
  border: 1px solid color-mix(in srgb, var(--brand) 12%, var(--line));
}

.welcome-panel h2 {
  max-width: 760px;
  margin: 16px 0 0;
  font-family: Manrope, sans-serif;
  font-size: clamp(33px, 4.5vw, 52px);
  line-height: 1.06;
  letter-spacing: -2px;
  font-weight: 800;
}

.welcome-panel h2 span {
  background:
    linear-gradient(
      90deg,
      var(--muted-2),
      color-mix(in srgb, var(--brand) 64%, var(--muted-2))
    );
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.welcome-panel > p {
  max-width: 680px;
  margin: 17px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.78;
}

.assistant-start-card {
  margin-top: 23px;
  padding: 14px;
  display: grid;
  grid-template-columns: 30px 1fr 34px 30px 1fr;
  align-items: center;
  gap: 10px;
  border-radius: 15px;
  color: var(--text-soft);
  background:
    color-mix(in srgb, var(--surface-solid) 77%, transparent);
  border: 1px solid var(--line);
  backdrop-filter: blur(13px);
  box-shadow: var(--shadow-xs);
}

.assistant-start-number {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  color: var(--brand);
  background: var(--brand-soft);
  font-size: 8px;
  font-weight: 800;
}

.assistant-start-card > div:not(.assistant-start-number):not(.assistant-start-line) {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.assistant-start-card strong {
  font-size: 10px;
}

.assistant-start-card span {
  color: var(--muted);
  font-size: 8px;
  line-height: 1.4;
}

.assistant-start-line {
  width: 27px;
  height: 1px;
  background:
    linear-gradient(90deg, var(--line), var(--brand), var(--line));
}

.feature-strip {
  margin-top: 20px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-radius: 16px;
  overflow: hidden;
  background:
    color-mix(in srgb, var(--surface-solid) 82%, transparent);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-xs);
}

.feature-item {
  position: relative;
  overflow: hidden;
  min-height: 78px;
  padding: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  border-right: 1px solid var(--line-soft);
  transition:
    background 220ms ease;
}

.feature-item:last-child {
  border-right: 0;
}

.feature-item:hover {
  background: var(--brand-faint);
}

.feature-icon {
  width: 35px;
  height: 35px;
  flex: 0 0 35px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  color: var(--brand);
  background: var(--brand-faint);
  transition:
    transform 240ms var(--spring),
    box-shadow 240ms ease;
}

.feature-item:hover .feature-icon {
  transform: translateY(-3px) rotate(-3deg);
  box-shadow: 0 9px 21px rgba(11, 128, 121, .11);
}

.feature-icon svg {
  width: 17px;
  height: 17px;
}

.feature-item div:last-child {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.feature-item strong {
  font-size: 10px;
}

.feature-item span {
  color: var(--muted);
  font-size: 8px;
}

.quick-prompts {
  margin-top: 26px;
}

.quick-prompts-title {
  margin-bottom: 9px;
  color: var(--muted);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .7px;
  text-transform: uppercase;
}

.prompt-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
}

.prompt-card {
  position: relative;
  overflow: hidden;
  min-height: 65px;
  padding: 10px 12px;
  display: grid;
  grid-template-columns: 31px 1fr 20px;
  align-items: center;
  gap: 9px;
  color: var(--text);
  background:
    color-mix(in srgb, var(--surface-solid) 84%, transparent);
  border: 1px solid var(--line);
  border-radius: 14px;
  text-align: left;
  cursor: pointer;
  transition:
    transform 240ms var(--spring),
    border-color 240ms ease,
    box-shadow 240ms ease,
    background 240ms ease;
}

.prompt-card::after {
  content: "";
  position: absolute;
  width: 80px;
  height: 80px;
  right: -52px;
  bottom: -52px;
  border-radius: 50%;
  background: rgba(11, 128, 121, .08);
  transform: scale(.55);
  opacity: 0;
  transition:
    transform 320ms var(--spring),
    opacity 220ms ease;
}

.prompt-card:hover {
  transform: translateY(-3px);
  border-color: color-mix(in srgb, var(--brand) 30%, var(--line));
  background: var(--brand-faint);
  box-shadow: var(--shadow-xs);
}

.prompt-card:hover::after {
  transform: scale(1);
  opacity: 1;
}

.prompt-icon {
  width: 31px;
  height: 31px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  color: var(--brand);
  background: var(--surface-soft);
  font-size: 8px;
  font-weight: 800;
  transition:
    color 220ms ease,
    background 220ms ease,
    transform 240ms var(--spring);
}

.prompt-card:hover .prompt-icon {
  color: white;
  background: var(--brand);
  transform: rotate(-4deg) scale(1.06);
}

.prompt-card > span:nth-child(2) {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.prompt-card strong {
  font-size: 10px;
}

.prompt-card small {
  color: var(--muted);
  font-size: 8px;
}

.prompt-arrow {
  color: var(--muted-2);
  transition:
    transform 220ms var(--spring),
    color 220ms ease;
}

.prompt-card:hover .prompt-arrow {
  transform: translateX(4px);
  color: var(--brand);
}

.conversation {
  padding: 28px 0 42px;
}

.message {
  display: flex;
  gap: 10px;
  margin-bottom: 21px;
  animation: messageIn 260ms var(--spring) both;
}

@keyframes messageIn {
  from {
    opacity: 0;
    transform: translateY(8px) scale(.992);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.message.user {
  justify-content: flex-end;
}

.message-avatar {
  width: 33px;
  height: 33px;
  flex: 0 0 33px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  margin-top: 1px;
}

.message.ai .message-avatar {
  color: white;
  background:
    linear-gradient(145deg, #15968f, #096963);
  box-shadow: 0 8px 20px rgba(10, 105, 99, .17);
}

.message.ai .message-avatar svg {
  width: 17px;
  height: 17px;
}

.message.user .message-avatar {
  order: 2;
  color: #637377;
  background: #dfe7e8;
  font-size: 8px;
  font-weight: 800;
}

body.dark .message.user .message-avatar {
  color: #a8b8bc;
  background: #26373c;
}

.message-body {
  max-width: 78%;
}

.message.user .message-body {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.message-bubble {
  border-radius: 16px;
  font-size: 11px;
  line-height: 1.72;
}

.message.user .message-bubble {
  max-width: 680px;
  padding: 12px 14px;
  color: white;
  background:
    linear-gradient(135deg, #13827b, #096862);
  border-bottom-right-radius: 5px;
  box-shadow: 0 9px 20px rgba(10, 102, 97, .15);
}

.message.ai .message-bubble {
  position: relative;
  overflow: hidden;
  padding: 16px 17px;
  color: var(--text);
  background:
    color-mix(in srgb, var(--surface-solid) 89%, transparent);
  border: 1px solid var(--line);
  border-top-left-radius: 5px;
  box-shadow: var(--shadow-xs);
  backdrop-filter: blur(12px);
  transition:
    transform 220ms var(--spring),
    box-shadow 220ms ease,
    border-color 220ms ease;
}

.message.ai:hover .message-bubble {
  transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--brand) 22%, var(--line));
  box-shadow: var(--shadow-sm);
}

.message-label {
  margin-bottom: 7px;
  color: var(--brand);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: .85px;
  text-transform: uppercase;
}

.demo-disclaimer {
  margin-bottom: 10px;
  padding: 8px 9px;
  border-radius: 9px;
  color: var(--warning);
  background: var(--warning-soft);
  border: 1px solid color-mix(in srgb, var(--warning) 15%, var(--line));
  font-size: 8px;
  line-height: 1.5;
}

.source-list {
  margin-top: 13px;
  display: grid;
  gap: 7px;
}

.source-card {
  padding: 9px 10px;
  display: grid;
  grid-template-columns: 29px 1fr auto;
  align-items: center;
  gap: 8px;
  border-radius: 11px;
  background: var(--surface-soft);
  border: 1px solid var(--line-soft);
  transition:
    transform 220ms var(--spring),
    border-color 220ms ease,
    background 220ms ease;
}

.source-card:hover {
  transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--brand) 28%, var(--line));
  background: var(--brand-faint);
}

.source-card-icon {
  width: 29px;
  height: 29px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: var(--brand);
  background: var(--brand-soft);
}

.source-card-icon svg {
  width: 14px;
  height: 14px;
}

.source-card-copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.source-card-copy strong {
  font-size: 8px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.source-card-copy span {
  color: var(--muted);
  font-size: 7px;
}

.page-chip {
  padding: 4px 7px;
  border-radius: 999px;
  color: var(--brand);
  background: var(--brand-soft);
  font-size: 7px;
  font-weight: 800;
}

.message-meta {
  margin-top: 6px;
  color: var(--muted-2);
  font-size: 7px;
}

.typing-bubble {
  width: 72px;
  padding: 13px 15px !important;
  display: flex;
  align-items: center;
  gap: 5px;
}

.typing-bubble span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--muted-2);
  animation: typing 1s ease-in-out infinite;
}

.typing-bubble span:nth-child(2) {
  animation-delay: .12s;
}

.typing-bubble span:nth-child(3) {
  animation-delay: .24s;
}

@keyframes typing {
  0%, 60%, 100% {
    transform: translateY(0);
    opacity: .4;
  }
  30% {
    transform: translateY(-4px);
    opacity: 1;
  }
}

.composer-wrap {
  position: relative;
  flex: 0 0 auto;
  padding: 11px 0 14px;
  border-top: 1px solid var(--line-soft);
  background:
    linear-gradient(
      180deg,
      color-mix(in srgb, var(--bg) 68%, transparent),
      color-mix(in srgb, var(--bg) 91%, var(--surface-solid))
    );
  backdrop-filter: blur(16px);
}

.composer-wrap::before {
  content: "";
  position: absolute;
  top: -19px;
  left: 15%;
  right: 15%;
  height: 28px;
  background:
    radial-gradient(ellipse at center, rgba(12, 124, 120, .12), transparent 72%);
  filter: blur(10px);
  pointer-events: none;
}

.composer-shell {
  position: relative;
  min-height: 60px;
  padding: 8px 8px 8px 14px;
  display: flex;
  align-items: flex-end;
  gap: 9px;
  border-radius: 17px;
  background:
    color-mix(in srgb, var(--surface-solid) 90%, transparent);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-md);
  backdrop-filter: blur(15px);
  transition:
    transform 220ms var(--spring),
    border-color 220ms ease,
    box-shadow 220ms ease;
}

.composer-shell:focus-within {
  transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--brand) 42%, var(--line));
  box-shadow:
    0 0 0 4px rgba(12, 124, 120, .065),
    var(--shadow-md);
}

.composer-shell.disabled {
  opacity: .62;
}

#questionInput {
  flex: 1;
  min-height: 41px;
  max-height: 132px;
  padding: 10px 2px 8px;
  border: 0;
  outline: 0;
  resize: none;
  overflow-y: auto;
  color: var(--text);
  background: transparent;
  font-size: 11px;
  line-height: 1.55;
}

#questionInput::placeholder {
  color: var(--muted-2);
}

.composer-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.char-count {
  color: var(--muted-2);
  font-size: 7px;
}

.send-btn {
  width: 41px;
  height: 41px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: white;
  background:
    linear-gradient(135deg, #168f88, #096b65);
  box-shadow: 0 9px 20px rgba(9, 107, 101, .18);
  cursor: pointer;
  transition:
    transform 220ms var(--spring),
    filter 220ms ease,
    box-shadow 220ms ease,
    opacity 220ms ease;
}

.send-btn:hover:not(:disabled) {
  transform: translateY(-2px);
  filter: brightness(1.05);
  box-shadow: 0 13px 26px rgba(9, 107, 101, .24);
}

.send-btn:disabled {
  opacity: .34;
  cursor: not-allowed;
  box-shadow: none;
}

.send-btn svg {
  width: 17px;
  height: 17px;
}

.composer-note {
  margin-top: 7px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 7px;
  color: var(--muted-2);
  font-size: 7px;
}

.demo-chip {
  padding: 3px 6px;
  border-radius: 999px;
  color: var(--warning);
  background: var(--warning-soft);
  border: 1px solid color-mix(in srgb, var(--warning) 15%, var(--line));
  font-weight: 700;
}

.toast-stack {
  position: fixed;
  right: 19px;
  bottom: 19px;
  z-index: 100;
  display: grid;
  gap: 8px;
  pointer-events: none;
}

.toast {
  position: relative;
  overflow: hidden;
  width: min(340px, calc(100vw - 38px));
  padding: 10px 12px;
  display: flex;
  align-items: flex-start;
  gap: 9px;
  border-radius: 12px;
  color: var(--text);
  background:
    color-mix(in srgb, var(--surface-solid) 91%, transparent);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-md);
  backdrop-filter: blur(15px);
  animation: toastIn 240ms var(--spring) both;
  pointer-events: auto;
  transition:
    opacity 220ms ease,
    transform 220ms ease;
}

.toast::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  transform-origin: left;
  background: var(--brand);
  animation: toastTimer 3.2s linear forwards;
}

.toast.success {
  border-left: 3px solid var(--success);
}

.toast.success::after {
  background: var(--success);
}

.toast.error {
  border-left: 3px solid var(--danger);
}

.toast.error::after {
  background: var(--danger);
}

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

@keyframes toastIn {
  from {
    opacity: 0;
    transform: translateY(9px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes toastTimer {
  from { transform: scaleX(1); }
  to { transform: scaleX(0); }
}

.toast-icon {
  width: 21px;
  height: 21px;
  flex: 0 0 21px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: white;
  background: var(--brand);
  font-size: 9px;
  font-weight: 800;
}

.toast.success .toast-icon {
  background: var(--success);
}

.toast.error .toast-icon {
  background: var(--danger);
}

.toast-copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.toast-copy strong {
  font-size: 9px;
}

.toast-copy span {
  color: var(--muted);
  font-size: 8px;
  line-height: 1.45;
}

.mobile-overlay {
  position: fixed;
  inset: 0;
  z-index: 40;
  background: rgba(4, 13, 15, .48);
  backdrop-filter: blur(3px);
}

/* =========================================================
   DARK MODE REFINEMENTS
   ========================================================= */

body.dark .landing-nav,
body.dark .topbar,
body.dark .composer-shell,
body.dark .prompt-card,
body.dark .feature-strip,
body.dark .problem-card,
body.dark .landing-feature-card,
body.dark .trust-mini-card,
body.dark .assistant-start-card,
body.dark .message.ai .message-bubble,
body.dark .status-banner,
body.dark .toast {
  box-shadow:
    0 12px 38px rgba(0,0,0,.18);
}

body.dark .glass-panel {
  background:
    linear-gradient(
      145deg,
      rgba(20, 35, 40, .88),
      rgba(15, 27, 31, .70)
    );
}

body.dark .console-answer,
body.dark .console-document {
  background:
    color-mix(in srgb, var(--surface-solid) 82%, transparent);
}

/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 1080px) {
  .landing-nav {
    grid-template-columns: 1fr auto;
  }

  .landing-nav-links {
    display: none;
  }

  .hero-section {
    grid-template-columns: 1fr;
    padding-top: 65px;
  }

  .hero-copy {
    max-width: 840px;
  }

  .hero-visual {
    min-height: 560px;
  }

  .policy-console {
    width: min(560px, 88vw);
  }

  .section-heading-large,
  .features-layout {
    grid-template-columns: 1fr;
    gap: 35px;
  }

  .features-copy {
    position: static;
  }

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

  .workflow-line {
    display: none;
  }
}

@media (max-width: 880px) {
  .sidebar {
    position: fixed;
    left: 0;
    top: 0;
    transform: translateX(-102%);
    transition: transform 230ms var(--ease);
    box-shadow: 30px 0 70px rgba(0,0,0,.32);
  }

  .sidebar.open {
    transform: translateX(0);
  }

  .mobile-menu {
    display: grid;
  }

  .trust-pill {
    display: none;
  }

  .topbar {
    padding: 0 18px;
  }

  .topbar h1 {
    font-size: 14px;
  }

  .topbar p {
    display: none;
  }

  .content-width,
  .status-banner {
    width: min(100% - 28px, 920px);
  }

  .welcome-panel {
    padding-top: 34px;
  }

  .assistant-start-card {
    grid-template-columns: 30px 1fr;
  }

  .assistant-start-line {
    display: none;
  }
}

@media (max-width: 760px) {
  .landing-nav {
    min-height: 70px;
    padding-inline: 18px;
  }

  .landing-brand small,
  .landing-theme {
    display: none;
  }

  .nav-launch-btn {
    padding-inline: 12px;
  }

  .hero-section,
  .landing-section,
  .final-cta-section,
  .landing-footer {
    width: min(100% - 28px, 1180px);
  }

  .hero-section {
    padding: 52px 0 67px;
  }

  .hero-section h1 {
    font-size: clamp(48px, 13vw, 68px);
    letter-spacing: -3px;
  }

  .hero-lead {
    font-size: 13px;
  }

  .hero-trust-row {
    display: grid;
    grid-template-columns: 1fr;
  }

  .trust-mini-card {
    width: 100%;
  }

  .hero-visual {
    min-height: 500px;
  }

  .visual-orbit {
    display: none;
  }

  .policy-console {
    width: 100%;
    transform: none;
  }

  .hero-visual:hover .policy-console {
    transform: translateY(-3px);
  }

  .floating-info-card {
    display: none;
  }

  .landing-section {
    padding: 78px 0;
  }

  .section-heading-large {
    gap: 22px;
  }

  .section-heading-large h2,
  .workflow-heading h2,
  .features-copy h2 {
    letter-spacing: -1.5px;
  }

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

  .landing-feature-card:nth-child(2),
  .landing-feature-card:nth-child(4),
  .landing-feature-card:nth-child(2):hover,
  .landing-feature-card:nth-child(4):hover {
    transform: none;
  }

  .workflow-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .workflow-track {
    grid-template-columns: 1fr;
  }

  .workflow-step {
    text-align: left;
    display: grid;
    grid-template-columns: 65px 1fr;
    grid-template-rows: auto auto;
    align-items: center;
    column-gap: 14px;
  }

  .workflow-icon {
    width: 58px;
    height: 58px;
    margin: 0;
    grid-row: 1 / span 2;
    border-radius: 18px;
  }

  .workflow-icon svg {
    width: 22px;
    height: 22px;
  }

  .workflow-step h3 {
    margin: 0 0 4px;
  }

  .workflow-step p {
    margin: 0;
    max-width: none;
  }

  .final-cta-section {
    min-height: 340px;
    padding: 45px 22px;
    border-radius: 25px;
  }

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

@media (max-width: 640px) {
  .topbar-actions .icon-btn:last-child {
    display: none;
  }

  .welcome-panel h2 {
    font-size: 32px;
    letter-spacing: -1.25px;
  }

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

  .feature-item {
    min-height: 62px;
    border-right: 0;
    border-bottom: 1px solid var(--line-soft);
  }

  .feature-item:last-child {
    border-bottom: 0;
  }

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

  .message-body {
    max-width: 89%;
  }

  .message-avatar {
    width: 30px;
    height: 30px;
    flex-basis: 30px;
  }

  .char-count {
    display: none;
  }

  .composer-wrap {
    padding-bottom:
      max(12px, env(safe-area-inset-bottom));
  }
}

/* =========================================================
   ACCESSIBILITY / REDUCED MOTION
   ========================================================= */

button:focus-visible,
a:focus-visible,
textarea:focus-visible,
label:focus-visible {
  outline: 3px solid rgba(12, 124, 120, .22);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
  }
}


/* =========================================================
   MOBILE-FIRST USABILITY ENHANCEMENTS
   Added for phone/tablet friendliness
   ========================================================= */

/* Prevent sideways scrolling caused by decorative layers */
html,
body {
  max-width: 100%;
  overflow-x: hidden;
}

button,
a,
label {
  touch-action: manipulation;
}

#problem,
#workflow,
#features {
  scroll-margin-top: 92px;
}

.mobile-title,
.mobile-upload-cta,
.mobile-menu-label {
  display: none;
}

/* Dynamic viewport units fix mobile browser address-bar/keyboard issues */
.assistant-body,
.app-shell,
.sidebar,
.main-panel {
  height: 100vh;
  height: 100dvh;
}

.assistant-body {
  min-height: 100svh;
}

.chat-scroll {
  overscroll-behavior-y: contain;
  -webkit-overflow-scrolling: touch;
}

.sidebar {
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

@media (max-width: 880px) {
  :root {
    --topbar-height: 70px;
  }

  .sidebar {
    width: min(88vw, 330px);
    flex-basis: min(88vw, 330px);
    padding-left: max(16px, env(safe-area-inset-left));
    padding-bottom: max(16px, env(safe-area-inset-bottom));
  }

  .mobile-menu {
    width: auto;
    min-width: 44px;
    height: 44px;
    padding: 0 11px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
  }

  .mobile-menu-label {
    display: inline;
    font-size: 10px;
    font-weight: 700;
  }

  .mobile-title {
    display: inline;
  }

  .desktop-title {
    display: none;
  }

  .topbar {
    min-height: var(--topbar-height);
    padding-left: max(12px, env(safe-area-inset-left));
    padding-right: max(12px, env(safe-area-inset-right));
    gap: 10px;
  }

  .topbar-left {
    min-width: 0;
    gap: 9px;
  }

  .topbar-title-wrap {
    min-width: 0;
  }

  .topbar h1 {
    font-size: 14px;
    line-height: 1.15;
  }

  .topbar-actions {
    flex: 0 0 auto;
  }

  .topbar-actions .icon-btn {
    width: 44px;
    height: 44px;
  }

  .content-width,
  .status-banner {
    width: min(100% - 24px, 920px);
  }

  .status-banner {
    margin-top: 9px;
    padding: 10px 11px;
  }

  .welcome-panel {
    padding: 27px 0 27px;
  }

  .welcome-panel h2 {
    max-width: 620px;
    font-size: clamp(29px, 7vw, 42px);
    line-height: 1.08;
    letter-spacing: -1.45px;
  }

  .welcome-panel > p {
    font-size: 12px;
    line-height: 1.68;
  }

  .mobile-upload-cta {
    width: 100%;
    min-height: 50px;
    margin-top: 18px;
    padding: 0 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    border-radius: 14px;
    color: white;
    background: linear-gradient(135deg, #168f88, #096b65);
    box-shadow: 0 12px 26px rgba(9, 107, 101, .18);
    font-size: 12px;
    font-weight: 750;
    cursor: pointer;
  }

  .mobile-upload-icon {
    width: 26px;
    height: 26px;
    display: grid;
    place-items: center;
    border-radius: 8px;
    background: rgba(255,255,255,.12);
    font-size: 15px;
  }

  .assistant-start-card {
    margin-top: 14px;
    padding: 12px;
    grid-template-columns: 32px 1fr;
    gap: 8px 10px;
  }

  .assistant-start-card strong {
    font-size: 11px;
  }

  .assistant-start-card span {
    font-size: 9px;
  }

  .prompt-card {
    min-height: 72px;
    padding: 12px 13px;
  }

  .prompt-card strong {
    font-size: 11px;
  }

  .prompt-card small {
    font-size: 9px;
  }

  .composer-wrap {
    padding-left: max(0px, env(safe-area-inset-left));
    padding-right: max(0px, env(safe-area-inset-right));
  }

  .composer-shell {
    min-height: 58px;
  }
}

@media (max-width: 760px) {
  .landing-nav {
    grid-template-columns: minmax(0, 1fr) auto;
    min-height: 66px;
    padding-left: max(14px, env(safe-area-inset-left));
    padding-right: max(14px, env(safe-area-inset-right));
    gap: 10px;
  }

  .landing-brand {
    min-width: 0;
    gap: 8px;
  }

  .landing-brand-mark {
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    border-radius: 12px;
  }

  .landing-brand strong {
    font-size: 13px;
    white-space: nowrap;
  }

  .nav-launch-btn {
    min-height: 44px;
    padding: 0 12px;
    white-space: nowrap;
  }

  .hero-section {
    min-height: auto;
    padding-top: 42px;
    gap: 28px;
  }

  .hero-section h1 {
    font-size: clamp(39px, 11.5vw, 56px);
    line-height: 1.01;
    letter-spacing: -2.2px;
  }

  .hero-eyebrow {
    max-width: 100%;
    font-size: 8px;
    letter-spacing: 1px;
  }

  .hero-lead {
    margin-top: 19px;
    font-size: 12.5px;
    line-height: 1.72;
  }

  .hero-actions {
    width: 100%;
    margin-top: 24px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .hero-primary-btn,
  .hero-secondary-btn {
    width: 100%;
    min-height: 50px;
    justify-content: center;
  }

  .hero-primary-btn {
    justify-content: space-between;
  }

  .hero-trust-row {
    margin-top: 22px;
  }

  .hero-visual {
    min-height: 430px;
  }

  .policy-console {
    padding: 13px;
    border-radius: 20px;
  }

  .console-question {
    width: 88%;
  }

  .console-answer {
    width: 94%;
  }

  .landing-section {
    padding: 64px 0;
  }

  .section-heading-large h2,
  .workflow-heading h2,
  .features-copy h2 {
    font-size: clamp(31px, 9vw, 43px);
    line-height: 1.09;
    letter-spacing: -1.25px;
  }

  .section-heading-large p,
  .features-copy > p {
    font-size: 12px;
    line-height: 1.7;
  }

  .problem-grid {
    margin-top: 27px;
  }

  .problem-card,
  .landing-feature-card {
    min-height: auto;
    padding: 19px;
  }

  .problem-card h3,
  .landing-feature-card h3 {
    margin-top: 27px;
  }

  .feature-card-grid {
    gap: 10px;
  }

  .workflow-track {
    margin-top: 30px;
    gap: 6px;
  }

  .final-cta-section {
    margin-top: 35px;
    margin-bottom: 55px;
  }
}

@media (max-width: 640px) {
  .content-width,
  .status-banner {
    width: calc(100% - 20px);
  }

  .topbar-actions .icon-btn:last-child {
    display: none;
  }

  .welcome-panel h2 {
    font-size: clamp(27px, 8.5vw, 34px);
  }

  .feature-strip {
    margin-top: 16px;
  }

  .feature-item {
    min-height: 58px;
    padding: 11px 12px;
  }

  .quick-prompts {
    margin-top: 21px;
  }

  .prompt-grid {
    gap: 8px;
  }

  .conversation {
    padding-top: 20px;
  }

  .message {
    gap: 7px;
    margin-bottom: 17px;
  }

  .message-body {
    max-width: calc(100% - 36px);
  }

  .message-bubble {
    font-size: 11.5px;
    line-height: 1.62;
  }

  .message.ai .message-bubble {
    padding: 13px 13px;
  }

  .message.user .message-bubble {
    padding: 11px 12px;
  }

  .message-avatar {
    width: 29px;
    height: 29px;
    flex-basis: 29px;
    border-radius: 9px;
  }

  .source-card {
    grid-template-columns: 28px minmax(0, 1fr) auto;
  }

  .composer-wrap {
    padding-top: 8px;
    padding-bottom: max(8px, env(safe-area-inset-bottom));
  }

  .composer-shell {
    padding: 7px 7px 7px 11px;
    border-radius: 15px;
  }

  /* 16px prevents iOS Safari zooming the page when the input is focused */
  #questionInput {
    min-height: 42px;
    padding: 9px 2px 7px;
    font-size: 16px;
    line-height: 1.35;
  }

  .send-btn {
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
  }

  .composer-note {
    margin-top: 5px;
    font-size: 7px;
  }

  .toast-stack {
    left: 10px;
    right: 10px;
    bottom: max(10px, env(safe-area-inset-bottom));
  }

  .toast {
    width: 100%;
  }

  .dropzone {
    min-height: 132px;
  }
}

@media (max-width: 390px) {
  .landing-nav {
    padding-inline: 11px;
  }

  .landing-brand-mark {
    width: 35px;
    height: 35px;
    flex-basis: 35px;
  }

  .landing-brand strong {
    font-size: 12px;
  }

  .nav-launch-btn {
    min-height: 40px;
    font-size: 0;
  }

  .nav-launch-btn::before {
    content: "Open AI";
    font-size: 10px;
  }

  .nav-launch-btn span {
    font-size: 12px;
  }

  .hero-section,
  .landing-section,
  .final-cta-section,
  .landing-footer {
    width: calc(100% - 22px);
  }

  .hero-section h1 {
    font-size: 38px;
    letter-spacing: -1.8px;
  }

  .hero-visual {
    min-height: 390px;
  }

  .console-top {
    align-items: flex-start;
  }

  .console-status {
    font-size: 7px;
  }

  .console-document {
    grid-template-columns: 34px minmax(0, 1fr);
  }

  .console-indexed {
    display: none;
  }

  .console-question,
  .console-answer {
    width: 100%;
  }

  .final-cta-section {
    padding-inline: 17px;
  }

  .mobile-menu {
    min-width: 44px;
    padding-inline: 10px;
  }

  .mobile-menu-label {
    display: none;
  }

  .topbar h1 {
    font-size: 13px;
  }

  .topbar-actions .icon-btn {
    width: 40px;
    height: 40px;
  }

  .eyebrow {
    font-size: 8px;
    letter-spacing: .85px;
  }

  .assistant-start-card {
    padding: 10px;
  }

  .prompt-card {
    min-height: 68px;
  }

  .composer-note > span:first-child {
    max-width: 220px;
    text-align: center;
  }
}

/* Hover effects should not get "stuck" on touchscreens */
@media (hover: none) and (pointer: coarse) {
  .problem-card:hover,
  .landing-feature-card:hover,
  .trust-mini-card:hover,
  .hero-primary-btn:hover,
  .hero-secondary-btn:hover,
  .prompt-card:hover,
  .message.ai:hover .message-bubble,
  .document-card:hover,
  .dropzone:hover,
  .icon-btn:hover,
  .theme-toggle:hover {
    transform: none;
  }
}

/* =========================================================
   PROFESSIONAL CONTENT + RESPONSIVE REFINEMENT
   ========================================================= */

#problem,
#audience,
#workflow,
#features,
#scope {
  scroll-margin-top: clamp(76px, 9vw, 104px);
}

.hero-section,
.landing-section,
.final-cta-section,
.landing-footer {
  padding-left: env(safe-area-inset-left);
  padding-right: env(safe-area-inset-right);
}

.hero-lead,
.section-heading-large p,
.audience-heading p,
.features-copy > p,
.scope-copy p {
  text-wrap: pretty;
}

.audience-section {
  padding-top: clamp(72px, 8vw, 108px);
  padding-bottom: clamp(72px, 8vw, 108px);
}

.audience-heading {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(300px, .72fr);
  gap: clamp(28px, 6vw, 76px);
  align-items: end;
}

.audience-heading h2,
.scope-copy h2 {
  max-width: 720px;
  margin: 0;
  font-family: Manrope, Inter, sans-serif;
  font-size: clamp(34px, 4.2vw, 54px);
  line-height: 1.08;
  letter-spacing: -2px;
  font-weight: 800;
}

.audience-heading p,
.scope-copy p {
  margin: 0;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.82;
}

.audience-grid {
  margin-top: clamp(28px, 4vw, 44px);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.audience-card {
  position: relative;
  overflow: hidden;
  min-height: 190px;
  padding: 22px;
  display: flex;
  align-items: flex-start;
  gap: 15px;
  border-radius: 19px;
  color: var(--text);
  background:
    linear-gradient(
      145deg,
      color-mix(in srgb, var(--surface-solid) 88%, transparent),
      color-mix(in srgb, var(--surface-solid) 69%, transparent)
    );
  border: 1px solid color-mix(in srgb, var(--line) 88%, transparent);
  box-shadow:
    var(--shadow-xs),
    inset 0 1px 0 rgba(255,255,255,.55);
  backdrop-filter: blur(14px);
  transition:
    transform 280ms var(--spring),
    border-color 280ms ease,
    box-shadow 280ms ease;
}

.audience-card::after {
  content: "";
  position: absolute;
  width: 120px;
  height: 120px;
  right: -65px;
  bottom: -68px;
  border-radius: 50%;
  background: rgba(11, 128, 121, .07);
  transition: transform 360ms var(--spring);
}

.audience-card:hover {
  transform: translateY(-5px);
  border-color: color-mix(in srgb, var(--brand) 26%, var(--line));
  box-shadow: var(--shadow-sm);
}

.audience-card:hover::after {
  transform: scale(1.35);
}

.audience-icon {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  color: var(--brand);
  background: var(--brand-soft);
  font-family: Manrope, Inter, sans-serif;
  font-size: 11px;
  font-weight: 800;
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--brand) 10%, transparent);
}

.audience-card > div {
  min-width: 0;
}

.audience-card h3 {
  margin: 3px 0 8px;
  font-family: Manrope, Inter, sans-serif;
  font-size: 15px;
  line-height: 1.25;
}

.audience-card p {
  margin: 0;
  color: var(--muted);
  font-size: 10.5px;
  line-height: 1.7;
}

.scope-section {
  padding-top: clamp(72px, 8vw, 104px);
  padding-bottom: clamp(60px, 7vw, 92px);
}

.scope-panel {
  position: relative;
  overflow: hidden;
  padding: clamp(24px, 4vw, 44px);
  display: grid;
  grid-template-columns: minmax(0, .82fr) minmax(420px, 1.18fr);
  gap: clamp(30px, 6vw, 72px);
  align-items: center;
  border-radius: 26px;
  background:
    radial-gradient(circle at 10% 0%, rgba(47, 181, 171, .10), transparent 34%),
    color-mix(in srgb, var(--surface-solid) 83%, transparent);
  border: 1px solid color-mix(in srgb, var(--line) 88%, transparent);
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(18px);
}

.scope-panel::after {
  content: "";
  position: absolute;
  width: 240px;
  height: 240px;
  right: -150px;
  top: -155px;
  border-radius: 50%;
  background: rgba(11,128,121,.08);
  pointer-events: none;
}

.scope-copy h2 {
  margin-top: 12px;
  font-size: clamp(30px, 3.5vw, 46px);
}

.scope-copy p {
  margin-top: 16px;
}

.scope-question-list {
  display: grid;
  gap: 9px;
}

.scope-question {
  position: relative;
  z-index: 1;
  min-height: 64px;
  padding: 10px 12px;
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr) 24px;
  align-items: center;
  gap: 10px;
  border-radius: 13px;
  color: var(--text);
  background: color-mix(in srgb, var(--surface-solid) 82%, transparent);
  border: 1px solid var(--line-soft);
  transition:
    transform 220ms var(--spring),
    border-color 220ms ease,
    background 220ms ease,
    box-shadow 220ms ease;
}

.scope-question > span {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  color: var(--brand);
  background: var(--brand-soft);
  font-size: 8px;
  font-weight: 800;
}

.scope-question p {
  margin: 0;
  color: var(--text-soft);
  font-size: 10.5px;
  line-height: 1.45;
}

.scope-question strong {
  color: var(--muted-2);
  font-size: 14px;
  transition:
    color 200ms ease,
    transform 200ms var(--spring);
}

.scope-question:hover {
  transform: translateX(4px);
  border-color: color-mix(in srgb, var(--brand) 28%, var(--line));
  background: var(--brand-faint);
  box-shadow: var(--shadow-xs);
}

.scope-question:hover strong {
  color: var(--brand);
  transform: translateX(3px);
}

.assistant-scope-note {
  margin-top: 18px;
  padding: 12px 13px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 1px minmax(0, 1fr);
  align-items: stretch;
  gap: 13px;
  border-radius: 14px;
  background: color-mix(in srgb, var(--surface-solid) 74%, transparent);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-xs);
  backdrop-filter: blur(12px);
}

.scope-note-item {
  min-width: 0;
  display: flex;
  align-items: flex-start;
  gap: 9px;
}

.scope-note-dot {
  width: 9px;
  height: 9px;
  flex: 0 0 9px;
  margin-top: 4px;
  border-radius: 50%;
}

.scope-note-dot.good {
  background: var(--success);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--success) 10%, transparent);
}

.scope-note-dot.caution {
  background: var(--warning);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--warning) 10%, transparent);
}

.scope-note-item > div {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.scope-note-item strong {
  font-size: 9px;
}

.scope-note-item span:last-child {
  color: var(--muted);
  font-size: 8px;
  line-height: 1.45;
}

.scope-note-divider {
  width: 1px;
  height: 100%;
  background: var(--line-soft);
}

@media (max-width: 1180px) and (min-width: 1021px) {
  .hero-section {
    grid-template-columns: minmax(0, 1.05fr) minmax(390px, .95fr);
    gap: 44px;
  }

  .hero-section h1 {
    font-size: clamp(48px, 5.5vw, 72px);
    letter-spacing: -3.2px;
  }

  .floating-info-one { right: -12px; }
  .floating-info-two { left: -10px; }
}

@media (max-width: 1020px) {
  .hero-section {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: 58px;
    padding-bottom: 64px;
    gap: 38px;
  }

  .hero-copy { max-width: 820px; }
  .hero-section h1 { max-width: 800px; }
  .hero-lead { max-width: 720px; }

  .hero-visual {
    width: 100%;
    min-height: 540px;
  }

  .policy-console {
    width: min(560px, 86vw);
  }

  .section-heading-large,
  .audience-heading,
  .features-layout,
  .scope-panel {
    grid-template-columns: 1fr;
  }

  .audience-heading { gap: 20px; }
  .audience-heading p { max-width: 760px; }

  .scope-panel { gap: 28px; }
  .scope-copy { max-width: 720px; }

  .scope-question-list {
    grid-template-columns: 1fr 1fr;
  }

  .features-copy {
    position: static;
    max-width: 760px;
  }
}

@media (max-width: 880px) {
  .landing-nav {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .landing-nav-links { display: none; }

  .audience-grid { grid-template-columns: 1fr; }
  .audience-card { min-height: 0; }

  .workflow-track { grid-template-columns: 1fr 1fr; }
  .workflow-line { display: none; }

  .scope-question-list { grid-template-columns: 1fr; }

  .assistant-scope-note {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .scope-note-divider {
    width: 100%;
    height: 1px;
  }

  .message-body {
    max-width: min(84%, 720px);
  }
}

@media (max-width: 760px) {
  .hero-section,
  .landing-section,
  .final-cta-section,
  .landing-footer {
    width: min(100% - 28px, 1180px);
  }

  .hero-section {
    padding-top: 38px;
    padding-bottom: 52px;
  }

  .hero-section h1 {
    font-size: clamp(38px, 11vw, 54px);
    letter-spacing: -2.25px;
    text-wrap: balance;
  }

  .hero-lead {
    font-size: 13px;
    line-height: 1.72;
  }

  .hero-trust-row {
    display: grid;
    grid-template-columns: 1fr;
  }

  .trust-mini-card {
    min-width: 0;
    width: 100%;
  }

  .hero-visual { min-height: 455px; }

  .policy-console {
    width: 100%;
    max-width: 560px;
  }

  .landing-section {
    padding-top: 62px;
    padding-bottom: 62px;
  }

  .section-heading-large h2,
  .audience-heading h2,
  .workflow-heading h2,
  .features-copy h2,
  .scope-copy h2 {
    font-size: clamp(30px, 8.6vw, 42px);
    letter-spacing: -1.35px;
  }

  .section-heading-large p,
  .audience-heading p,
  .features-copy > p,
  .scope-copy p {
    font-size: 12px;
    line-height: 1.72;
  }

  .audience-grid { gap: 10px; }
  .audience-card { padding: 17px; }

  .workflow-track {
    grid-template-columns: 1fr;
    margin-top: 27px;
    gap: 5px;
  }

  .workflow-step {
    min-height: 0;
    padding: 12px 8px;
    display: grid;
    grid-template-columns: 58px minmax(0, 1fr);
    grid-template-rows: auto auto;
    column-gap: 13px;
    text-align: left;
  }

  .workflow-icon {
    width: 54px;
    height: 54px;
    margin: 0;
    grid-row: 1 / span 2;
    border-radius: 17px;
  }

  .workflow-icon svg {
    width: 21px;
    height: 21px;
  }

  .workflow-step h3 {
    margin: 3px 0 4px;
    font-size: 11px;
  }

  .workflow-step p {
    max-width: none;
    margin: 0;
    font-size: 9.5px;
    line-height: 1.55;
  }

  .workflow-index { display: none; }

  .scope-panel {
    padding: 20px 16px;
    border-radius: 21px;
  }

  .scope-question { min-height: 60px; }

  .final-cta-section {
    min-height: 330px;
    padding: 42px 20px;
  }

  .final-cta-content h2 {
    font-size: clamp(34px, 10vw, 48px);
    letter-spacing: -1.8px;
  }

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

  .topbar { overflow: visible; }

  .topbar-title-wrap {
    min-width: 0;
    max-width: 50vw;
  }

  .topbar h1 {
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .welcome-panel { padding-top: 24px; }
  .welcome-panel > p { max-width: 100%; }
  .assistant-scope-note { margin-top: 14px; }

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

  .feature-item {
    border-right: 0;
    border-bottom: 1px solid var(--line-soft);
  }

  .feature-item:last-child { border-bottom: 0; }

  .prompt-grid { grid-template-columns: 1fr; }
  .prompt-card { min-height: 70px; }

  .message-body {
    max-width: calc(100% - 38px);
  }

  .composer-note {
    padding-inline: 4px;
    line-height: 1.35;
  }
}

@media (max-width: 520px) {
  .landing-nav {
    min-height: 64px;
    padding-inline: max(11px, env(safe-area-inset-left));
  }

  .landing-brand small { display: none; }
  .landing-theme { display: none; }

  .nav-launch-btn {
    min-height: 42px;
    padding: 0 11px;
    font-size: 9px;
  }

  .hero-section,
  .landing-section,
  .final-cta-section,
  .landing-footer {
    width: calc(100% - 22px);
  }

  .hero-eyebrow {
    font-size: 7.5px;
    letter-spacing: .85px;
  }

  .hero-section h1 {
    font-size: clamp(35px, 10.7vw, 46px);
  }

  .hero-actions { grid-template-columns: 1fr; }

  .hero-primary-btn,
  .hero-secondary-btn {
    width: 100%;
    justify-content: center;
  }

  .hero-primary-btn { justify-content: space-between; }

  .hero-visual { min-height: 405px; }

  .console-document {
    grid-template-columns: 34px minmax(0, 1fr);
  }

  .console-indexed { display: none; }

  .console-question,
  .console-answer {
    width: 100%;
  }

  .audience-card { gap: 12px; }

  .audience-icon {
    width: 38px;
    height: 38px;
    flex-basis: 38px;
  }

  .scope-question {
    padding: 9px 10px;
    grid-template-columns: 30px minmax(0, 1fr) 18px;
  }

  .scope-question > span {
    width: 30px;
    height: 30px;
  }

  .scope-question p { font-size: 10px; }

  .topbar-title-wrap { max-width: 42vw; }
  .topbar-actions { gap: 5px; }

  .topbar-actions .icon-btn {
    width: 40px;
    height: 40px;
  }

  .mobile-menu {
    min-width: 42px;
    height: 42px;
    padding-inline: 9px;
  }

  .mobile-menu-label { display: none; }

  .welcome-panel h2 {
    font-size: clamp(27px, 8vw, 34px);
  }

  .assistant-scope-note { padding: 10px; }
  .scope-note-item strong { font-size: 9px; }
  .scope-note-item span:last-child { font-size: 8px; }

  .composer-note {
    justify-content: space-between;
    gap: 5px;
    text-align: left;
  }

  .composer-note > span:first-child {
    max-width: 76%;
  }
}

@media (max-width: 360px) {
  .landing-brand strong { font-size: 11px; }

  .nav-launch-btn {
    padding-inline: 10px;
    font-size: 8.5px;
  }

  .hero-section h1 { font-size: 34px; }
  .hero-lead { font-size: 12px; }

  .scope-panel { padding: 17px 13px; }

  .scope-question {
    grid-template-columns: 28px minmax(0, 1fr);
  }

  .scope-question strong { display: none; }

  .scope-question > span {
    width: 28px;
    height: 28px;
  }

  .topbar { padding-inline: 9px; }
  .topbar-title-wrap { max-width: 38vw; }
  .topbar h1 { font-size: 12px; }

  .topbar-actions #themeBtn {
    width: 38px;
    height: 38px;
  }

  .content-width,
  .status-banner {
    width: calc(100% - 16px);
  }

  .message-avatar { display: none; }

  .message-body { max-width: 94%; }
  .message.user .message-body { max-width: 92%; }

  .composer-note > span:first-child {
    max-width: 72%;
    font-size: 6.5px;
  }
}

@media (max-height: 520px) and (orientation: landscape) {
  :root { --topbar-height: 58px; }

  .topbar { min-height: 58px; }
  .topbar p { display: none; }

  .welcome-panel {
    padding-top: 18px;
    padding-bottom: 18px;
  }

  .welcome-panel h2 { font-size: 28px; }

  .assistant-scope-note,
  .feature-strip {
    display: none;
  }

  .composer-wrap {
    padding-top: 6px;
    padding-bottom: max(6px, env(safe-area-inset-bottom));
  }
}

@media (hover: none) and (pointer: coarse) {
  .audience-card:hover,
  .scope-question:hover {
    transform: none;
  }

  .audience-card:active,
  .scope-question:active,
  .prompt-card:active {
    transform: scale(.985);
  }
}

/* =========================================================
   MOBILE HEADER ICON FIX
   Keep theme + clear buttons visible
   ========================================================= */

/* ---------- Assistant page ---------- */
@media (max-width: 640px) {

  /* Show dark/light theme button */
  #themeBtn {
    display: grid !important;
    width: 40px;
    height: 40px;
    flex: 0 0 40px;
  }

  /* Show clear/delete conversation button */
  #clearBtn {
    display: grid !important;
    width: 40px;
    height: 40px;
    flex: 0 0 40px;
  }

  .topbar-actions {
    display: flex;
    align-items: center;
    gap: 5px;
    flex-shrink: 0;
  }

  .topbar-actions .icon-btn svg {
    width: 18px;
    height: 18px;
  }
}


/* ---------- Home / landing page ---------- */
@media (max-width: 760px) {

  /* Show dark/light theme icon */
  .landing-theme {
    display: grid !important;
    width: 40px;
    height: 40px;
    flex: 0 0 40px;
  }

  .landing-nav-actions {
    display: flex;
    align-items: center;
    gap: 6px;
  }
}


/* Extra-small phones */
@media (max-width: 420px) {

  .landing-nav {
    padding-left: 10px;
    padding-right: 10px;
    gap: 6px;
  }

  .landing-brand {
    gap: 7px;
  }

  .landing-brand-mark {
    width: 36px;
    height: 36px;
    flex: 0 0 36px;
  }

  .landing-brand strong {
    font-size: 12px;
  }

  .landing-brand small {
    display: none;
  }

  .landing-theme {
    display: grid !important;
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
  }

  /* Make Launch Assistant smaller so theme icon has room */
  .nav-launch-btn {
    min-height: 40px;
    padding: 0 10px;
    font-size: 0 !important;
    gap: 5px;
  }

  .nav-launch-btn::before {
    content: "Open AI";
    font-size: 9px;
    font-weight: 700;
  }

  .nav-launch-btn span {
    font-size: 12px;
  }
}