﻿:root {
  /* Premium "Midnight Teal × Champagne" palette (2026-06-13 redesign).
     Warm porcelain surfaces + deep ink-teal trust accent + a sparingly-used
     champagne-gold luxe accent. Muted text darkened for safer WCAG AA. */
  --background: #f5f6f4;
  --surface: #ffffff;
  --surface-soft: #eef2f0;
  --surface-cool: #e9f2f0;
  --text: #13201f;
  --text-muted: #51616a;
  --border: #dde6e3;
  --border-strong: #c3d1cd;
  --accent: #13726a;
  --accent-strong: #0d514b;
  --accent-cyan: #34c8bd;
  --accent-coral: #d8624a;
  --accent-soft: #e2f2ee;
  --danger: #bb342f;
  --danger-soft: #fae6e3;
  --warning: #b77216;
  --warning-soft: #fff1d7;
  --safe: #267451;
  --safe-soft: #e0f1e8;
  /* Luxe metallic — decorative / on-dark only (never body text on light). */
  --gold: #c8a86a;
  --gold-deep: #a8884b;
  --gold-soft: rgba(200, 168, 106, 0.16);
  --ink: #0b1a19;
  /* Depth scale + glass. */
  --shadow: 0 18px 48px rgba(16, 40, 38, 0.08);
  --shadow-sm: 0 1px 2px rgba(16, 40, 38, 0.05), 0 2px 5px rgba(16, 40, 38, 0.05);
  --shadow-md: 0 10px 26px rgba(16, 40, 38, 0.09), 0 3px 8px rgba(16, 40, 38, 0.05);
  --shadow-lg: 0 30px 66px rgba(11, 32, 31, 0.15), 0 10px 26px rgba(11, 32, 31, 0.09);
  --shadow-gold: 0 0 0 1px var(--gold-soft);
  --glass-bg: rgba(255, 255, 255, 0.72);
  --glass-border: rgba(255, 255, 255, 0.6);
  --glass-blur: blur(20px) saturate(1.25);
  --gradient-ambient:
    radial-gradient(1100px 520px at 78% -8%, rgba(52, 200, 189, 0.12), transparent 60%),
    radial-gradient(820px 460px at 8% 4%, rgba(19, 114, 106, 0.08), transparent 55%),
    radial-gradient(720px 600px at 96% 88%, rgba(200, 168, 106, 0.07), transparent 60%);
  /* Type scale (~1.2) + motion easing. */
  --fs-xs: 12px;
  --fs-sm: 13px;
  --fs-base: 15px;
  --fs-md: 18px;
  --fs-lg: 22px;
  --fs-xl: 28px;
  --fs-2xl: 36px;
  --ease-out: cubic-bezier(0.22, 0.61, 0.36, 1);
  --ease-spring: cubic-bezier(0.34, 1.4, 0.64, 1);
  --font-sans: "Segoe UI", "Noto Sans", Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, Arial, sans-serif;
  --radius: 12px;
  --radius-lg: 20px;
  --sidebar-width: 292px;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
}

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

.skip-link {
  position: absolute;
  left: 8px;
  top: -56px;
  z-index: 2000;
  padding: 10px 16px;
  border-radius: 10px;
  background: var(--accent-strong, #155f56);
  color: #ffffff;
  text-decoration: none;
  font-weight: 600;
  transition: top 0.15s ease;
}

.skip-link:focus {
  top: 8px;
  outline: 3px solid var(--accent-cyan, #39c7bb);
  outline-offset: 2px;
}

body {
  margin: 0;
  min-height: 100%;
  background:
    linear-gradient(180deg, rgba(31, 127, 115, 0.055), transparent 340px),
    var(--background);
  color: var(--text);
  font-family: var(--font-sans);
  letter-spacing: 0;
  overflow-x: clip;
  text-rendering: geometricPrecision;
  -webkit-font-smoothing: antialiased;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

button:disabled {
  cursor: wait;
  opacity: 0.68;
}

.app-shell {
  display: grid;
  grid-template-columns: var(--sidebar-width) minmax(0, 1fr);
  min-height: 100vh;
}

.sidebar {
  background: rgba(255, 255, 255, 0.84);
  border-right: 1px solid var(--border);
  color: var(--text);
  display: flex;
  flex-direction: column;
  gap: 28px;
  padding: 28px 20px;
  position: sticky;
  top: 0;
  height: 100vh;
}

.brand-block {
  align-items: center;
  display: flex;
  gap: 14px;
}

.brand-name,
.brand-subtitle,
.mini-label,
.timestamp,
.safety-line,
.notice,
.form-error,
.settings-copy {
  margin: 0;
}

.brand-name {
  font-size: 16px;
  font-weight: 800;
}

.brand-subtitle {
  color: var(--text-muted);
  font-size: 13px;
  margin-top: 3px;
}

.nav-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.nav-button {
  align-items: center;
  background: transparent;
  border: 1px solid transparent;
  border-radius: var(--radius);
  color: #4f6067;
  display: flex;
  gap: 11px;
  min-height: 44px;
  min-width: 0;
  padding: 10px 12px;
  text-align: left;
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease;
  width: 100%;
}

.nav-button span {
  line-height: 1.3;
  min-width: 0;
  overflow-wrap: anywhere;
}

.nav-button:hover,
.nav-button.is-active {
  background: var(--surface-cool);
  border-color: #d5e8e4;
  color: var(--accent-strong);
}

.icon {
  flex: 0 0 auto;
  height: 20px;
  width: 20px;
}

.approval-card {
  background: #f5faf8;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text-muted);
  margin-top: auto;
  padding: 16px;
}

.approval-card p:last-child {
  font-size: 14px;
  line-height: 1.5;
  margin: 8px 0 0;
}

.workspace {
  min-width: 0;
  padding: 30px;
}

.topbar {
  align-items: center;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin: 0 auto 24px;
  max-width: 1240px;
}

.topbar h1 {
  font-size: clamp(26px, 3vw, 40px);
  line-height: 1.05;
  margin: 0;
}

.topbar p {
  color: var(--text-muted);
  margin: 8px 0 0;
  overflow-wrap: anywhere;
}

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

.landing-page {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.92) 0%, rgba(248, 250, 249, 0.98) 58%, #f6faf8 100%),
    var(--background);
  min-height: 100vh;
  overflow-x: clip;
  padding: 26px;
  position: relative;
}

.landing-nav,
.landing-hero,
.landing-connectors,
.landing-values,
.landing-process,
.landing-final-cta {
  margin: 0 auto;
  max-width: 1180px;
}

.landing-nav {
  align-items: center;
  display: flex;
  gap: 20px;
  justify-content: space-between;
}

.landing-brand {
  align-items: center;
  background: transparent;
  border: 0;
  color: var(--text);
  display: flex;
  gap: 12px;
  padding: 0;
  text-align: left;
}

.landing-brand strong {
  display: block;
  font-size: 17px;
  line-height: 1;
}

.landing-brand small {
  color: var(--text-muted);
  display: block;
  font-size: 12px;
  font-weight: 750;
  margin-top: 4px;
}

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

.landing-hero {
  align-items: center;
  display: grid;
  gap: 56px;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 410px);
  min-height: auto;
  padding: 66px 0 44px;
}

.landing-copy,
.landing-product,
.landing-input {
  min-width: 0;
}

.landing-copy h1 {
  font-size: clamp(44px, 6vw, 72px);
  font-weight: 900;
  line-height: 0.98;
  margin: 0 0 18px;
  max-width: 820px;
  overflow-wrap: anywhere;
  text-wrap: balance;
}

.landing-trust-line {
  color: var(--accent-strong);
  display: inline-flex;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
  margin: 0 0 14px;
  text-transform: uppercase;
}

.landing-subtitle,
.landing-copy > p:not(.mini-label):not(.landing-safe-line) {
  color: #4d5d63;
  font-size: 18px;
  line-height: 1.52;
  margin: 0;
  max-width: 620px;
  overflow-wrap: anywhere;
}

.landing-hero-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}

.landing-hero-actions .primary-button,
.landing-hero-actions .secondary-button {
  min-height: 48px;
}

.landing-mini-values {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
  max-width: 640px;
}

.landing-mini-values span {
  background: rgba(255, 255, 255, 0.74);
  border: 1px solid rgba(197, 212, 208, 0.72);
  border-radius: 999px;
  color: #314346;
  font-size: 12px;
  font-weight: 850;
  line-height: 1;
  padding: 9px 11px;
}

.landing-mobile-3d {
  display: none;
}

.landing-language-signal {
  align-items: center;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(195, 222, 218, 0.78);
  border-radius: 18px;
  box-shadow: 0 18px 54px rgba(25, 68, 66, 0.08);
  display: grid;
  gap: 12px;
  grid-template-columns: auto minmax(0, 1fr) auto;
  margin: 20px 0 2px;
  max-width: 650px;
  padding: 10px 12px;
}

.landing-language-count {
  align-items: center;
  background: linear-gradient(145deg, rgba(28, 151, 139, 0.94), rgba(8, 78, 86, 0.96));
  border-radius: 14px;
  box-shadow: 0 12px 28px rgba(15, 118, 110, 0.24);
  color: #fff;
  display: inline-flex;
  font-size: 22px;
  font-weight: 900;
  height: 48px;
  justify-content: center;
  letter-spacing: 0;
  width: 54px;
}

.landing-language-copy {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.landing-language-copy strong {
  color: var(--text-main);
  font-size: 15px;
  line-height: 1.2;
}

.landing-language-copy small {
  color: var(--text-muted);
  font-size: 12px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.landing-language-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: flex-end;
}

.landing-language-tags span {
  background: rgba(232, 246, 243, 0.88);
  border: 1px solid rgba(197, 226, 221, 0.86);
  border-radius: 999px;
  color: #0f6f69;
  font-size: 10px;
  font-weight: 800;
  line-height: 1;
  padding: 7px 8px;
  white-space: nowrap;
}

.landing-input {
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(197, 212, 208, 0.82);
  border-radius: 8px;
  box-shadow:
    0 22px 60px rgba(28, 45, 41, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.92);
  display: grid;
  gap: 12px;
  margin-top: 28px;
  max-width: 650px;
  padding: 10px;
  position: relative;
}

.landing-demo-panel {
  display: grid;
  gap: 8px;
  padding: 2px;
}

.landing-demo-heading {
  align-items: center;
  display: flex;
  gap: 14px;
  justify-content: space-between;
}

.landing-demo-heading > span {
  color: var(--accent-strong);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.landing-demo-heading div {
  display: grid;
  gap: 3px;
  justify-items: end;
  max-width: 430px;
  text-align: right;
}

.landing-demo-heading strong {
  color: var(--text);
  font-size: 15px;
  font-weight: 900;
}

.landing-demo-heading p {
  color: var(--text-muted);
  display: none;
  font-size: 13px;
  line-height: 1.45;
  margin: 0;
}

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

.landing-demo-button {
  align-items: center;
  background: rgba(246, 250, 251, 0.9);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: #25343e;
  display: grid;
  gap: 7px;
  grid-template-columns: 20px minmax(0, 1fr);
  min-height: 58px;
  padding: 9px;
  text-align: left;
  transition:
    background 160ms ease,
    border-color 160ms ease,
    box-shadow 160ms ease,
    transform 160ms ease;
}

.landing-demo-button .icon {
  color: var(--accent);
  height: 18px;
  width: 18px;
}

.landing-demo-button span {
  font-size: 12px;
  font-weight: 850;
  line-height: 1.25;
  min-width: 0;
  overflow-wrap: anywhere;
}

.landing-demo-button small {
  color: var(--accent-strong);
  font-size: 10px;
  font-weight: 900;
  grid-column: 2;
  text-transform: uppercase;
}

.landing-demo-button:hover,
.landing-demo-button:focus-visible,
.landing-demo-button.is-active {
  background: var(--accent-soft);
  border-color: rgba(31, 127, 115, 0.35);
  box-shadow: 0 12px 26px rgba(31, 127, 115, 0.12);
  transform: translateY(-1px);
}

.landing-demo-button:focus-visible {
  outline: 3px solid rgba(31, 127, 115, 0.22);
  outline-offset: 2px;
}

.landing-input textarea {
  border: 0;
  min-height: 116px;
  padding: 14px 14px 10px;
  resize: vertical;
}

.landing-input textarea:focus {
  box-shadow: none;
}

.landing-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-start;
}

.landing-result-link {
  text-align: center;
  text-decoration: none;
}

.landing-proof-line {
  color: #5d6c70;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.4;
  margin-top: 15px;
  max-width: 620px;
}

.landing-workflow {
  background: transparent;
  border: 0;
  box-shadow: none;
  gap: 10px;
  margin-top: 18px;
  padding: 0;
}

.landing-workflow .workflow-strip-heading span {
  display: none;
}

.landing-workflow .workflow-steps {
  gap: 8px;
}

.landing-workflow .workflow-step {
  align-items: center;
  background: rgba(255, 255, 255, 0.72);
  display: flex;
  gap: 8px;
  min-height: 0;
  padding: 9px 10px;
}

.landing-workflow .workflow-step-icon {
  flex: 0 0 auto;
}

.landing-workflow .workflow-step-icon .icon {
  height: 16px;
  width: 16px;
}

.landing-workflow .workflow-step-icon span,
.landing-workflow .workflow-step p {
  display: none;
}

.landing-workflow .workflow-step strong {
  font-size: 12px;
  margin: 0;
}

.workflow-strip {
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 16px 38px rgba(28, 45, 41, 0.06);
  display: grid;
  gap: 14px;
  margin-top: 24px;
  max-width: 710px;
  padding: 16px;
}

.workflow-strip-heading {
  align-items: baseline;
  display: flex;
  gap: 12px;
  justify-content: space-between;
}

.workflow-strip-heading strong {
  color: var(--text);
  font-size: 15px;
  font-weight: 850;
}

.workflow-strip-heading span {
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.35;
  text-align: right;
}

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

.workflow-step {
  border: 1px solid #e1ece9;
  border-radius: var(--radius);
  display: grid;
  gap: 10px;
  min-height: 150px;
  padding: 12px;
}

.workflow-step-icon {
  align-items: center;
  color: var(--accent);
  display: flex;
  justify-content: space-between;
}

.workflow-step-icon span {
  background: var(--accent-soft);
  border-radius: 999px;
  color: var(--accent-strong);
  font-size: 11px;
  font-weight: 850;
  padding: 5px 8px;
}

.workflow-step strong {
  display: block;
  font-size: 14px;
  margin-bottom: 6px;
}

.workflow-step p {
  color: var(--text-muted);
  font-size: 12px;
  line-height: 1.42;
  margin: 0;
}

.case-workflow {
  margin: 0 0 18px;
  max-width: none;
}

.landing-safe-line {
  color: var(--text-muted);
  font-size: 13px;
  margin: 14px 0 0;
}

.install-card {
  align-items: center;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  display: grid;
  gap: 12px;
  grid-template-columns: 24px minmax(0, 1fr) auto;
  margin-top: 18px;
  max-width: 710px;
  padding: 13px 14px;
}

.install-card .icon {
  color: var(--accent);
}

.install-card strong {
  display: block;
  font-size: 14px;
}

.install-card p {
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.45;
  margin: 4px 0 0;
}

.landing-product {
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.72), rgba(234, 248, 245, 0.54)),
    radial-gradient(circle at 28% 20%, rgba(57, 199, 187, 0.18), transparent 38%);
  border: 1px solid rgba(210, 225, 222, 0.76);
  border-radius: 8px;
  box-shadow:
    0 28px 80px rgba(28, 45, 41, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
  overflow: visible;
  padding: 18px;
  position: relative;
  transform-style: preserve-3d;
  transition:
    box-shadow 260ms ease,
    transform 260ms ease;
}

.landing-product:hover {
  box-shadow:
    0 34px 96px rgba(28, 45, 41, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.96);
  transform: translateY(-2px);
}

.landing-product-minimal {
  align-self: center;
  overflow: hidden;
}

.landing-product-minimal .landing-avatar-stage,
.landing-product-minimal .landing-orb-stage {
  min-height: 360px;
}

.landing-orb-stage {
  align-items: center;
  display: flex;
  justify-content: center;
  min-height: 392px;
  overflow: hidden;
  perspective: 1040px;
  position: relative;
  transform-style: preserve-3d;
}

.landing-avatar-stage {
  min-height: 420px;
  position: relative;
}

.landing-avatar-stage .landing-orb-stage {
  min-height: 420px;
  transform: translateX(-48px);
}

.landing-avatar-stage .brand-orb-hero {
  transform-origin: 50% 58%;
}

.assistant-avatar {
  animation: assistant-float 7.2s ease-in-out infinite;
  bottom: 6px;
  filter:
    drop-shadow(0 28px 38px rgba(17, 50, 46, 0.18))
    drop-shadow(0 0 24px rgba(79, 222, 210, 0.14));
  pointer-events: none;
  position: absolute;
  right: -10px;
  transform-origin: 50% 85%;
  width: 174px;
  z-index: 8;
}

.assistant-avatar img {
  display: block;
  height: auto;
  width: 100%;
}

.assistant-avatar span {
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(178, 215, 210, 0.78);
  border-radius: 999px;
  bottom: 6px;
  box-shadow: 0 12px 26px rgba(20, 54, 50, 0.1);
  color: var(--accent-strong);
  font-size: 11px;
  font-weight: 900;
  left: 50%;
  letter-spacing: 0;
  line-height: 1;
  padding: 6px 10px;
  position: absolute;
  transform: translateX(-50%);
}

.hero-depth-grid {
  background:
    linear-gradient(rgba(31, 127, 115, 0.13) 1px, transparent 1px),
    linear-gradient(90deg, rgba(31, 127, 115, 0.13) 1px, transparent 1px);
  background-size: 34px 34px;
  border-radius: 50%;
  bottom: 10px;
  height: 188px;
  left: 50%;
  mask-image: radial-gradient(circle, #000 12%, transparent 72%);
  -webkit-mask-image: radial-gradient(circle, #000 12%, transparent 72%);
  opacity: 0.42;
  position: absolute;
  transform: translateX(-50%) rotateX(72deg) translateZ(-70px);
  width: 340px;
}

.hero-motion-ring {
  border: 1px solid rgba(31, 127, 115, 0.14);
  border-radius: 50%;
  height: 250px;
  position: absolute;
  transform-style: preserve-3d;
  width: 250px;
}

.hero-motion-ring-one {
  animation: hero-ring-one 12s linear infinite;
  border-left-color: rgba(55, 207, 190, 0.72);
  transform: rotateX(70deg) rotateZ(-22deg);
}

.hero-motion-ring-two {
  animation: hero-ring-two 15s linear infinite;
  border-right-color: rgba(91, 110, 225, 0.36);
  height: 310px;
  transform: rotateX(58deg) rotateY(18deg) rotateZ(32deg);
  width: 310px;
}

.hero-motion-ring-three {
  animation: hero-ring-three 18s linear infinite;
  border-color: rgba(216, 98, 74, 0.14);
  border-top-color: rgba(216, 98, 74, 0.58);
  height: 340px;
  transform: rotateX(64deg) rotateY(-38deg) rotateZ(112deg);
  width: 340px;
}

.hero-scan-beam {
  animation: hero-scan 4.8s ease-in-out infinite;
  background: linear-gradient(90deg, transparent, rgba(75, 222, 206, 0.38), transparent);
  border-radius: 999px;
  height: 2px;
  opacity: 0.72;
  position: absolute;
  top: 46%;
  transform: rotate(-13deg);
  width: 290px;
  z-index: 4;
}

.hero-particle {
  animation: hero-node-drift 7.6s ease-in-out infinite;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(227, 244, 239, 0.76));
  border: 1px solid rgba(31, 127, 115, 0.2);
  border-radius: 4px;
  box-shadow: 0 10px 24px rgba(28, 45, 41, 0.1);
  height: 10px;
  position: absolute;
  transform: rotate(45deg) translateZ(46px);
  width: 10px;
}

.hero-particle-one {
  left: 17%;
  top: 27%;
}

.hero-particle-two {
  animation-delay: -2.4s;
  right: 19%;
  top: 19%;
}

.hero-particle-three {
  animation-delay: -4.1s;
  bottom: 28%;
  right: 27%;
}

.hero-holo-card {
  animation: hero-card-float 7.4s ease-in-out infinite;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.82), rgba(237, 247, 245, 0.58));
  border: 1px solid rgba(197, 212, 208, 0.72);
  border-radius: 8px;
  box-shadow:
    0 18px 48px rgba(28, 45, 41, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.92);
  display: grid;
  gap: 3px;
  max-width: 142px;
  padding: 10px 12px;
  position: absolute;
  transform-style: preserve-3d;
  z-index: 5;
}

.hero-holo-card span {
  color: var(--accent-strong);
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.hero-holo-card strong {
  color: #213039;
  font-size: 12px;
  font-weight: 880;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.hero-holo-card-risk {
  left: 4%;
  top: 19%;
  transform: rotateY(24deg) rotateZ(-4deg) translateZ(74px);
}

.hero-holo-card-verify {
  animation-delay: -2.2s;
  right: 2%;
  top: 34%;
  transform: rotateY(-22deg) rotateZ(4deg) translateZ(88px);
}

.hero-holo-card-approve {
  animation-delay: -4.4s;
  bottom: 12%;
  left: 17%;
  transform: rotateX(14deg) rotateY(18deg) rotateZ(3deg) translateZ(62px);
}

.brand-logo {
  display: block;
  flex: 0 0 auto;
  height: var(--orb-size, 46px);
  object-fit: contain;
  width: var(--orb-size, 46px);
}

.brand-orb-small {
  height: 46px;
  width: 46px;
}

.brand-orb-nav {
  height: 42px;
  width: 42px;
}

.brand-orb-hero {
  filter: drop-shadow(0 22px 34px rgba(21, 95, 86, 0.18));
  height: var(--orb-size, 236px);
  width: var(--orb-size, 236px);
  z-index: 4;
}

.brand-companion {
  --orb-size: 46px;
  align-items: center;
  display: inline-flex;
  height: var(--orb-size);
  justify-content: center;
  position: relative;
  transform-style: preserve-3d;
  width: var(--orb-size);
}

.brand-orb-small {
  --orb-size: 46px;
}

.brand-orb-nav {
  --orb-size: 42px;
}

.brand-orb-hero {
  --orb-size: 236px;
  animation: companion-float 5.5s ease-in-out infinite;
}

.brand-orb-mobile-hero {
  --orb-size: 112px;
  animation: companion-float 5.5s ease-in-out infinite;
  filter: drop-shadow(0 18px 26px rgba(21, 95, 86, 0.16));
  z-index: 3;
}

.companion-body {
  align-items: center;
  background:
    radial-gradient(circle at 30% 24%, rgba(255, 255, 255, 0.98), rgba(255, 255, 255, 0.55) 21%, rgba(202, 242, 235, 0.82) 42%, rgba(73, 169, 156, 0.8) 72%, #143733 100%);
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 46% 46% 41% 41%;
  box-shadow:
    inset 0 1px 18px rgba(255, 255, 255, 0.78),
    inset 0 -14px 30px rgba(8, 44, 40, 0.28),
    0 18px 38px rgba(30, 92, 83, 0.22);
  display: flex;
  height: 66%;
  justify-content: center;
  position: relative;
  transform: rotateX(12deg) rotateY(-16deg);
  width: 74%;
  z-index: 3;
}

.companion-glass {
  background: linear-gradient(125deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.1));
  border-radius: 999px;
  height: 18%;
  left: 15%;
  opacity: 0.84;
  position: absolute;
  top: 10%;
  transform: rotate(-12deg);
  width: 48%;
}

.companion-visor {
  align-items: center;
  background:
    radial-gradient(circle at 50% 55%, rgba(12, 44, 49, 0.78), #06181d 78%);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 42% / 48%;
  box-shadow:
    inset 0 3px 12px rgba(255, 255, 255, 0.08),
    0 8px 18px rgba(2, 22, 24, 0.2);
  display: flex;
  gap: calc(var(--orb-size) * 0.12);
  height: 44%;
  justify-content: center;
  position: relative;
  width: 70%;
}

.companion-eye {
  animation: companion-eye-glow 3.8s ease-in-out infinite;
  background: #cafff7;
  border-radius: 999px;
  box-shadow:
    0 0 8px rgba(114, 255, 239, 0.9),
    0 0 18px rgba(73, 198, 180, 0.42);
  height: 46%;
  width: 9%;
}

.companion-eye-right {
  animation: companion-eye-glow 3.8s ease-in-out infinite, companion-right-wink 6.6s ease-in-out infinite;
  transform-origin: center;
}

.companion-aura {
  background: radial-gradient(circle, rgba(73, 198, 180, 0.32), transparent 68%);
  border-radius: 50%;
  filter: blur(2px);
  inset: -22%;
  position: absolute;
  transform: translateZ(-24px);
}

.companion-orbit {
  border: calc(var(--orb-size) * 0.018) solid rgba(31, 127, 115, 0.32);
  border-left-color: rgba(51, 190, 176, 0.84);
  border-radius: 50%;
  inset: 2%;
  position: absolute;
  transform-style: preserve-3d;
}

.companion-orbit-one {
  animation: companion-orbit-spin 8s linear infinite;
  transform: rotateX(66deg) rotateY(-22deg) rotateZ(20deg);
}

.companion-orbit-two {
  animation: companion-orbit-spin-reverse 11s linear infinite;
  border-color: rgba(82, 154, 144, 0.2);
  border-right-color: rgba(169, 238, 229, 0.75);
  inset: 15%;
  transform: rotateX(74deg) rotateY(42deg) rotateZ(90deg);
}

.orb-shadow {
  animation: hero-shadow-breathe 5.5s ease-in-out infinite;
  background: radial-gradient(ellipse, rgba(16, 56, 50, 0.18), transparent 68%);
  bottom: 48px;
  height: 32px;
  position: absolute;
  width: 170px;
}

.landing-product-top {
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid rgba(221, 232, 229, 0.72);
  border-radius: 8px;
  box-shadow: 0 18px 42px rgba(28, 45, 41, 0.07);
  display: grid;
  gap: 8px;
  padding: 15px 16px;
  position: relative;
  z-index: 3;
}

.landing-product-top span {
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
}

.landing-product-top strong {
  font-size: 21px;
  line-height: 1.18;
}

.landing-product-top p {
  color: #5b6d72;
  font-size: 14px;
  line-height: 1.45;
  margin: 0;
}

.landing-steps {
  display: grid;
  gap: 8px;
  padding-top: 12px;
  position: relative;
  z-index: 3;
}

.landing-steps span {
  background: rgba(247, 251, 250, 0.72);
  border: 1px solid rgba(221, 232, 229, 0.82);
  border-radius: 8px;
  color: #40525e;
  font-size: 13px;
  font-weight: 780;
  padding: 11px 12px;
}

.landing-connectors {
  padding: 0 0 56px;
}

.landing-values {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  padding: 4px 0 56px;
}

.landing-value-card {
  background: rgba(255, 255, 255, 0.74);
  border: 1px solid rgba(215, 228, 225, 0.9);
  border-radius: 8px;
  box-shadow: 0 16px 42px rgba(28, 45, 41, 0.06);
  display: grid;
  gap: 10px;
  min-height: 174px;
  padding: 18px;
}

.landing-value-card .icon {
  color: var(--accent);
  height: 22px;
  width: 22px;
}

.landing-value-card strong {
  color: var(--text-main);
  font-size: 18px;
  line-height: 1.15;
}

.landing-value-card p {
  color: #5b6d72;
  font-size: 14px;
  line-height: 1.5;
  margin: 0;
}

.landing-process {
  align-items: start;
  border-top: 1px solid rgba(215, 228, 225, 0.92);
  display: grid;
  gap: 28px;
  grid-template-columns: 0.55fr 1fr;
  padding: 52px 0;
}

.landing-process h2,
.landing-final-cta h2 {
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1;
  margin: 0;
  max-width: 520px;
  text-wrap: balance;
}

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

.landing-process-step {
  align-items: start;
  display: grid;
  gap: 14px;
  grid-template-columns: 42px minmax(120px, 0.35fr) minmax(0, 1fr);
  padding: 12px 0;
}

.landing-process-step + .landing-process-step {
  border-top: 1px solid rgba(215, 228, 225, 0.72);
}

.landing-process-step span {
  color: var(--accent-strong);
  font-size: 12px;
  font-weight: 900;
}

.landing-process-step strong {
  color: var(--text-main);
  font-size: 18px;
  line-height: 1.2;
}

.landing-process-step p {
  color: #5b6d72;
  font-size: 15px;
  line-height: 1.5;
  margin: 0;
}

.landing-final-cta {
  align-items: center;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(236, 250, 247, 0.8)),
    radial-gradient(circle at 84% 24%, rgba(55, 207, 190, 0.18), transparent 34%);
  border: 1px solid rgba(215, 228, 225, 0.9);
  border-radius: 8px;
  box-shadow: 0 22px 58px rgba(28, 45, 41, 0.08);
  display: flex;
  gap: 20px;
  justify-content: space-between;
  margin-bottom: 42px;
  padding: 26px;
}

.landing-final-cta p {
  color: #5b6d72;
  font-size: 16px;
  line-height: 1.5;
  margin: 10px 0 0;
}

.legal-footer {
  align-items: center;
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
  padding: 24px 0 8px;
}

.legal-footer a {
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
}

.legal-footer a:hover {
  color: var(--accent-strong);
}

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

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

.connector-card {
  align-items: flex-start;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 8px;
  display: flex;
  gap: 12px;
  padding: 16px;
}

.connector-card .icon {
  color: var(--accent);
}

.connector-card strong {
  display: block;
  font-size: 14px;
}

.connector-card p {
  color: #596a70;
  font-size: 13px;
  line-height: 1.48;
  margin: 5px 0 10px;
}

.connector-card span {
  background: var(--surface-cool);
  border-radius: 999px;
  color: var(--accent-strong);
  display: inline-flex;
  font-size: 12px;
  font-weight: 820;
  padding: 5px 8px;
}

@keyframes companion-float {
  0%,
  100% {
    transform: translateY(0) rotateX(0deg) rotateY(-8deg);
  }

  50% {
    transform: translateY(-10px) rotateX(4deg) rotateY(8deg);
  }
}

@keyframes assistant-float {
  0%,
  100% {
    transform: translateY(0) rotateZ(-1.5deg) scale(1);
  }

  50% {
    transform: translateY(-9px) rotateZ(1.5deg) scale(1.015);
  }
}

@keyframes companion-orbit-spin {
  from {
    transform: rotateX(66deg) rotateY(-22deg) rotateZ(0deg);
  }

  to {
    transform: rotateX(66deg) rotateY(-22deg) rotateZ(360deg);
  }
}

@keyframes companion-orbit-spin-reverse {
  from {
    transform: rotateX(74deg) rotateY(42deg) rotateZ(360deg);
  }

  to {
    transform: rotateX(74deg) rotateY(42deg) rotateZ(0deg);
  }
}

@keyframes companion-eye-glow {
  0%,
  100% {
    opacity: 0.92;
  }

  50% {
    opacity: 1;
  }
}

@keyframes companion-right-wink {
  0%,
  67%,
  73%,
  100% {
    transform: scaleY(1);
  }

  70% {
    transform: scaleY(0.12);
  }
}

@keyframes hero-ring-one {
  from {
    transform: rotateX(70deg) rotateZ(-22deg);
  }

  to {
    transform: rotateX(70deg) rotateZ(338deg);
  }
}

@keyframes hero-ring-two {
  from {
    transform: rotateX(58deg) rotateY(18deg) rotateZ(32deg);
  }

  to {
    transform: rotateX(58deg) rotateY(18deg) rotateZ(-328deg);
  }
}

@keyframes hero-ring-three {
  from {
    transform: rotateX(64deg) rotateY(-38deg) rotateZ(112deg);
  }

  to {
    transform: rotateX(64deg) rotateY(-38deg) rotateZ(472deg);
  }
}

@keyframes hero-scan {
  0%,
  100% {
    opacity: 0;
    transform: translateY(-48px) rotate(-13deg);
  }

  45%,
  58% {
    opacity: 0.76;
  }

  72% {
    opacity: 0;
    transform: translateY(54px) rotate(-13deg);
  }
}

@keyframes hero-node-drift {
  0%,
  100% {
    opacity: 0.58;
    transform: rotate(45deg) translate3d(0, 0, 46px) scale(0.92);
  }

  45% {
    opacity: 1;
    transform: rotate(45deg) translate3d(8px, -10px, 74px) scale(1.08);
  }
}

@keyframes hero-card-float {
  0%,
  100% {
    translate: 0 0;
  }

  50% {
    translate: 0 -9px;
  }
}

@keyframes hero-shadow-breathe {
  0%,
  100% {
    transform: scaleX(0.92);
  }

  50% {
    transform: scaleX(1.08);
  }
}

@media (prefers-reduced-motion: reduce) {
  .brand-orb-hero,
  .companion-eye,
  .companion-orbit-one,
  .companion-orbit-two,
  .hero-motion-ring-one,
  .hero-motion-ring-two,
  .hero-motion-ring-three,
  .hero-scan-beam,
  .hero-particle,
  .hero-holo-card,
  .assistant-avatar,
  .orb-shadow {
    animation: none;
  }
}

.language-select {
  align-items: center;
  display: flex;
  gap: 8px;
}

.language-select span {
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.language-select select {
  min-height: 36px;
  min-width: 150px;
  padding: 7px 34px 7px 11px;
}

.mode-pill {
  align-items: center;
  background: var(--warning-soft);
  border: 1px solid #f2d4a1;
  border-radius: 999px;
  color: #7a4e11;
  display: inline-flex;
  flex: 0 0 auto;
  font-size: 13px;
  font-weight: 750;
  gap: 8px;
  min-height: 36px;
  padding: 0 13px;
}

.mode-pill.is-live {
  background: var(--safe-soft);
  border-color: #b9dfca;
  color: #1e6245;
}

.status-dot {
  background: currentColor;
  border-radius: 50%;
  height: 8px;
  width: 8px;
}

.dashboard-grid,
.analysis-grid,
.agent-grid,
.connections-grid,
.account-grid,
.settings-grid {
  display: grid;
  gap: 18px;
  margin: 0 auto;
  max-width: 1240px;
  min-width: 0;
}

.dashboard-grid {
  grid-template-columns: minmax(0, 1.35fr) minmax(330px, 0.65fr);
}

.timeline-panel {
  grid-column: 1 / -1;
}

.primary-panel,
.status-panel,
.timeline-panel,
.analysis-main,
.analysis-side,
.side-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  min-width: 0;
}

.primary-panel,
.status-panel,
.timeline-panel,
.analysis-main {
  padding: 22px;
}

.wide-panel {
  margin: 0 auto;
  max-width: 1040px;
}

.section-heading,
.analysis-header,
.history-toolbar {
  align-items: flex-start;
  display: flex;
  gap: 18px;
  justify-content: space-between;
}

.section-heading > div,
.analysis-header > div {
  min-width: 0;
}

.section-heading h2,
.analysis-header h2 {
  font-size: 22px;
  line-height: 1.18;
  margin: 4px 0 0;
  overflow-wrap: anywhere;
}

.mini-label {
  color: var(--accent-strong);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.case-form {
  display: grid;
  gap: 16px;
  margin-top: 22px;
}

.field-row,
.context-grid,
.settings-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

label {
  display: grid;
  gap: 8px;
}

label span,
.history-toolbar span {
  color: #41515c;
  font-size: 13px;
  font-weight: 750;
}

input,
select,
textarea {
  background: #fbfdfe;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  outline: none;
  padding: 12px 13px;
  transition: border-color 160ms ease, box-shadow 160ms ease;
  width: 100%;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(20, 125, 122, 0.12);
}

textarea {
  line-height: 1.5;
  min-height: 132px;
  resize: vertical;
}

.paste-field textarea {
  min-height: 190px;
}

.case-form.is-compact .paste-field textarea {
  min-height: 150px;
}

.guided-intake {
  background: #f7fbfa;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  display: grid;
  gap: 12px;
  padding: 14px;
}

.guided-intake-heading {
  align-items: baseline;
  display: flex;
  gap: 12px;
  justify-content: space-between;
}

.guided-intake-heading strong {
  font-size: 14px;
  font-weight: 850;
}

.guided-intake-heading span {
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.35;
  text-align: right;
}

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

.guided-intake-button {
  align-items: center;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: #2c3f45;
  display: flex;
  font-size: 13px;
  font-weight: 800;
  gap: 8px;
  min-height: 44px;
  padding: 9px 10px;
  text-align: left;
}

.guided-intake-button:hover {
  border-color: var(--border-strong);
  color: var(--accent-strong);
}

.guided-intake-button .icon {
  color: var(--accent);
  height: 18px;
  width: 18px;
}

.form-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.primary-button,
.secondary-button,
.ghost-button,
.danger-button,
.file-input,
.fit-button {
  align-items: center;
  border-radius: var(--radius);
  border: 1px solid transparent;
  display: inline-flex;
  font-size: 14px;
  font-weight: 800;
  gap: 8px;
  justify-content: center;
  min-height: 42px;
  padding: 0 15px;
}

.primary-button {
  background: var(--accent);
  color: #ffffff;
}

.primary-button:hover {
  background: var(--accent-strong);
}

.secondary-button,
.ghost-button,
.file-input {
  background: #f6fafb;
  border-color: var(--border);
  color: #25343e;
}

.secondary-button:hover,
.ghost-button:hover,
.file-input:hover {
  border-color: var(--border-strong);
}

.danger-button {
  background: var(--danger-soft);
  border-color: #edc2bd;
  color: var(--danger);
  margin-top: 18px;
}

.file-input {
  cursor: pointer;
  margin-right: auto;
  position: relative;
}

.sample-picker {
  align-items: center;
  background: #f6fafb;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: #25343e;
  display: inline-flex;
  font-size: 13px;
  font-weight: 800;
  gap: 8px;
  min-height: 42px;
  padding: 0 10px 0 12px;
}

.sample-picker span {
  white-space: nowrap;
}

.sample-picker select {
  background: transparent;
  border: 0;
  color: inherit;
  font-size: 13px;
  font-weight: 750;
  max-width: min(360px, 52vw);
  min-width: 180px;
  outline: 0;
}

.file-input input {
  height: 1px;
  opacity: 0;
  overflow: hidden;
  position: absolute;
  width: 1px;
}

.notice,
.safety-line {
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.45;
}

.notice {
  background: var(--accent-soft);
  border: 1px solid #c5e7e2;
  border-radius: var(--radius);
  color: #285d5a;
  padding: 11px 12px;
}

.shared-notice {
  margin-bottom: 4px;
}

.form-error {
  background: var(--danger-soft);
  border: 1px solid #efc4bf;
  border-radius: var(--radius);
  color: var(--danger);
  font-size: 13px;
  font-weight: 750;
  padding: 11px 12px;
}

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

.metric {
  background: #f8fbfc;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px;
}

.metric span {
  color: var(--text-muted);
  display: block;
  font-size: 12px;
  font-weight: 750;
}

.metric strong {
  display: block;
  font-size: 28px;
  margin-top: 4px;
}

.metric-safe strong {
  color: var(--safe);
}

.metric-warning strong {
  color: var(--warning);
}

.metric-danger strong {
  color: var(--danger);
}

.privacy-strip {
  align-items: center;
  background: var(--surface-cool);
  border: 1px solid #c7dedd;
  border-radius: var(--radius);
  color: #315a59;
  display: flex;
  font-size: 14px;
  gap: 10px;
  line-height: 1.4;
  margin-top: 16px;
  padding: 12px;
}

.case-list {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.case-row {
  align-items: center;
  background: #fbfdfe;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  display: flex;
  gap: 16px;
  justify-content: space-between;
  padding: 14px;
  text-align: left;
}

.case-row:hover {
  border-color: var(--accent);
}

.case-main {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.case-main strong,
.history-row button {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.case-main span {
  color: var(--text-muted);
  font-size: 13px;
}

.risk-badge {
  border-radius: 999px;
  display: inline-flex;
  flex: 0 0 auto;
  font-size: 12px;
  font-weight: 850;
  justify-content: center;
  min-width: 72px;
  padding: 6px 10px;
}

.risk-high {
  background: var(--danger-soft);
  color: var(--danger);
}

.risk-medium {
  background: var(--warning-soft);
  color: #895810;
}

.risk-low {
  background: var(--safe-soft);
  color: var(--safe);
}

.empty-state {
  align-items: center;
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius);
  color: var(--text-muted);
  display: grid;
  justify-items: center;
  margin-top: 18px;
  padding: 40px 20px;
  text-align: center;
}

.empty-state h3 {
  color: var(--text);
  margin: 12px 0 6px;
}

.empty-state p {
  margin: 0;
  max-width: 460px;
}

.analysis-grid {
  align-items: start;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 380px);
}

.analysis-meta-actions {
  align-items: flex-end;
  display: grid;
  gap: 12px;
  justify-items: end;
}

.analysis-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.agent-grid {
  align-items: start;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 390px);
}

.connections-grid {
  align-items: start;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.46fr);
}

.connections-wide {
  grid-column: 1 / -1;
}

.connection-status-list {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 20px;
}

.connection-card {
  align-items: flex-start;
  background: #fbfdfe;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  display: grid;
  gap: 12px;
  grid-template-columns: auto minmax(0, 1fr) auto;
  padding: 16px;
}

.connection-icon {
  align-items: center;
  background: var(--accent-soft);
  border-radius: var(--radius);
  color: var(--accent-strong);
  display: inline-flex;
  height: 36px;
  justify-content: center;
  width: 36px;
}

.connection-card strong {
  display: block;
  font-size: 14px;
  line-height: 1.35;
}

.connection-card p {
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.45;
  margin: 5px 0 0;
}

.connection-card small {
  color: #63747a;
  display: block;
  font-size: 12px;
  line-height: 1.45;
  margin-top: 10px;
}

.connection-control {
  align-items: flex-end;
  display: grid;
  gap: 10px;
  justify-items: end;
}

.connection-action {
  min-height: 34px;
  padding: 8px 10px;
  white-space: nowrap;
}

.connection-status {
  border-radius: 999px;
  display: inline-flex;
  flex: 0 0 auto;
  font-size: 12px;
  font-weight: 850;
  justify-content: center;
  padding: 6px 9px;
  white-space: nowrap;
}

.connection-status-ready {
  background: var(--safe-soft);
  color: var(--safe);
}

.connection-status-next {
  background: var(--warning-soft);
  color: #895810;
}

.connection-status-planned {
  background: var(--surface-soft);
  color: #53636a;
}

.connections-privacy {
  min-height: 100%;
}

.account-grid {
  align-items: start;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.account-onboarding-panel {
  align-items: start;
  display: grid;
  gap: 18px;
  grid-column: 1 / -1;
  grid-template-columns: minmax(0, 1.15fr) minmax(240px, 0.85fr);
}

.account-onboarding-copy h2 {
  font-size: clamp(24px, 3vw, 36px);
  line-height: 1.08;
  margin: 0;
  max-width: 760px;
  overflow-wrap: anywhere;
}

.account-onboarding-copy p:not(.mini-label) {
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.55;
  margin: 12px 0 0;
  max-width: 720px;
}

.account-onboarding-actions {
  align-items: stretch;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.account-onboarding-actions a {
  min-height: 44px;
  text-decoration: none;
}

.account-onboarding-steps {
  border-top: 1px solid rgba(199, 222, 219, 0.82);
  display: grid;
  gap: 0;
  grid-column: 1 / -1;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  padding-top: 14px;
}

.account-onboarding-steps div {
  display: grid;
  gap: 7px;
  min-width: 0;
  padding: 0 16px;
}

.account-onboarding-steps div:first-child {
  padding-left: 0;
}

.account-onboarding-steps div + div {
  border-left: 1px solid rgba(199, 222, 219, 0.82);
}

.account-onboarding-steps span {
  color: var(--accent-strong);
  font-size: 11px;
  font-weight: 950;
  letter-spacing: 0;
}

.account-onboarding-steps strong {
  font-size: 14px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.account-onboarding-steps small {
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 650;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.account-overview,
.account-security-panel {
  grid-column: 1 / -1;
}

.account-form-panel {
  display: grid;
  gap: 16px;
}

.account-status-strip {
  margin-top: 18px;
}

.account-method-panel {
  display: grid;
  gap: 16px;
  grid-column: 1 / -1;
}

.account-billing-panel {
  display: grid;
  gap: 16px;
  grid-column: 1 / -1;
}

.account-launch-panel {
  display: grid;
  gap: 16px;
  grid-column: 1 / -1;
}

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

.billing-live-status {
  align-items: center;
  background: rgba(247, 251, 250, 0.76);
  border: 1px solid rgba(199, 222, 219, 0.86);
  border-radius: var(--radius);
  display: grid;
  gap: 10px;
  grid-template-columns: auto minmax(0, 1fr);
  padding: 12px 14px;
}

.billing-live-status .status-dot {
  background: #b5c0c4;
  box-shadow: 0 0 0 4px rgba(181, 192, 196, 0.18);
}

.billing-live-status[data-state="ready"] .status-dot {
  background: var(--safe);
  box-shadow: 0 0 0 4px rgba(25, 135, 84, 0.16);
}

.billing-live-status[data-state="pilot"] .status-dot,
.billing-live-status[data-state="loading"] .status-dot {
  background: var(--warning);
  box-shadow: 0 0 0 4px rgba(224, 156, 43, 0.18);
}

.billing-live-status[data-state="unavailable"] .status-dot {
  background: var(--danger);
  box-shadow: 0 0 0 4px rgba(203, 72, 72, 0.14);
}

.billing-live-status strong {
  display: block;
  font-size: 13px;
  line-height: 1.35;
}

.billing-live-status small {
  color: var(--text-muted);
  display: block;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.45;
  margin-top: 2px;
}

.launch-readiness-list {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.launch-readiness-item {
  align-items: flex-start;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.96), rgba(241, 249, 247, 0.88)),
    #fbfdfe;
  border: 1px solid rgba(199, 222, 219, 0.84);
  border-radius: var(--radius);
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(0, 1fr) auto;
  min-height: 108px;
  padding: 14px;
}

.launch-readiness-item-ready {
  border-color: rgba(63, 151, 117, 0.22);
}

.launch-readiness-item-waiting {
  border-color: rgba(224, 156, 43, 0.28);
}

.launch-readiness-item-planned {
  border-color: rgba(166, 182, 188, 0.32);
}

.launch-readiness-item strong {
  display: block;
  font-size: 13px;
  line-height: 1.35;
}

.launch-readiness-item p {
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.45;
  margin: 6px 0 0;
}

.launch-readiness-item .connection-status {
  white-space: nowrap;
}

.billing-plan-card {
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.96), rgba(239, 248, 246, 0.88)),
    #fbfdfe;
  border: 1px solid rgba(199, 222, 219, 0.88);
  border-radius: var(--radius);
  display: grid;
  gap: 12px;
  min-height: 198px;
  padding: 16px;
}

.billing-plan-free {
  background:
    radial-gradient(circle at 12% 8%, rgba(117, 255, 236, 0.18), transparent 34%),
    linear-gradient(145deg, rgba(247, 255, 252, 0.98), rgba(232, 247, 243, 0.9));
}

.billing-plan-icon {
  align-items: center;
  background: rgba(31, 127, 115, 0.1);
  border: 1px solid rgba(31, 127, 115, 0.18);
  border-radius: 999px;
  color: var(--accent-strong);
  display: inline-flex;
  height: 38px;
  justify-content: center;
  width: 38px;
}

.billing-plan-icon .icon {
  height: 18px;
  width: 18px;
}

.billing-plan-card strong {
  display: block;
  font-size: 16px;
  line-height: 1.3;
}

.billing-plan-card p {
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 650;
  line-height: 1.5;
  margin: 0;
}

.billing-plan-card .secondary-button,
.billing-plan-card .connection-status {
  align-self: end;
  justify-self: start;
}

.billing-provider-hint strong {
  color: var(--text);
}

.account-auth-live-status {
  margin-top: 14px;
}

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

.auth-method-card {
  align-items: start;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.94), rgba(239, 248, 246, 0.9)),
    #fbfdfe;
  border: 1px solid rgba(199, 222, 219, 0.88);
  border-radius: var(--radius);
  color: inherit;
  display: grid;
  gap: 12px;
  justify-items: start;
  min-height: 188px;
  padding: 15px;
  text-align: left;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.auth-method-card:hover,
.auth-method-card:focus-visible {
  border-color: rgba(57, 199, 187, 0.78);
  box-shadow: 0 16px 34px rgba(27, 103, 97, 0.12);
  transform: translateY(-1px);
}

.auth-method-icon {
  align-items: center;
  background: rgba(31, 127, 115, 0.1);
  border: 1px solid rgba(31, 127, 115, 0.18);
  border-radius: 999px;
  color: var(--accent-strong);
  display: inline-flex;
  height: 36px;
  justify-content: center;
  width: 36px;
}

.auth-method-icon .icon {
  height: 18px;
  width: 18px;
}

.auth-method-card strong {
  display: block;
  font-size: 14px;
  line-height: 1.35;
}

.auth-method-card small {
  color: var(--text-muted);
  display: block;
  font-size: 12px;
  font-weight: 650;
  line-height: 1.45;
  margin-top: 6px;
}

.auth-provider-hint {
  align-items: flex-start;
  background: var(--surface-cool);
  border: 1px solid #c7dedd;
  border-radius: var(--radius);
  color: #40525e;
  display: grid;
  gap: 10px;
  grid-template-columns: auto minmax(0, 1fr);
  padding: 12px;
}

.auth-provider-hint .icon {
  color: var(--accent-strong);
  margin-top: 1px;
}

.auth-provider-hint span {
  font-size: 13px;
  font-weight: 700;
  line-height: 1.45;
}

.auth-form {
  display: grid;
  gap: 14px;
  margin-top: 2px;
}

.auth-form small {
  color: var(--text-muted);
  font-size: 12px;
  line-height: 1.45;
}

.password-field {
  align-items: stretch;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
}

.password-field input {
  border-bottom-right-radius: 0;
  border-top-right-radius: 0;
}

.password-toggle {
  align-items: center;
  background: #f4f9f8;
  border: 1px solid var(--border);
  border-left: 0;
  border-radius: 0 var(--radius) var(--radius) 0;
  color: #315a59;
  display: inline-flex;
  justify-content: center;
  min-width: 46px;
  padding: 0 11px;
  transition: background 160ms ease, color 160ms ease;
}

.password-toggle:hover,
.password-toggle:focus-visible,
.password-toggle[aria-pressed="true"] {
  background: var(--accent-soft);
  color: var(--accent-strong);
}

.password-toggle .icon {
  height: 17px;
  width: 17px;
}

.auth-consent {
  align-items: start;
  display: grid;
  gap: 10px;
  grid-template-columns: auto minmax(0, 1fr);
}

.auth-consent input {
  margin-top: 3px;
  width: 16px;
}

.auth-consent span {
  color: #41515c;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.45;
}

.auth-link-button {
  justify-self: start;
}

.auth-checklist {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.auth-checklist-item {
  align-items: flex-start;
  background: #fbfdfe;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  display: grid;
  gap: 12px;
  grid-template-columns: auto minmax(0, 1fr);
  padding: 14px;
}

.auth-checklist-item .icon {
  color: var(--accent-strong);
  margin-top: 2px;
}

.auth-checklist-item strong {
  display: block;
  font-size: 14px;
  line-height: 1.35;
}

.auth-checklist-item p {
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.45;
  margin: 5px 0 0;
}

.mobile-launch-panel {
  display: grid;
  gap: 18px;
}

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

.mobile-launch-card {
  align-items: flex-start;
  background: #fbfdfe;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  display: grid;
  gap: 12px;
  grid-template-columns: auto minmax(0, 1fr);
  min-height: 198px;
  padding: 16px;
  position: relative;
}

.mobile-launch-card strong {
  display: block;
  font-size: 14px;
  line-height: 1.35;
}

.mobile-launch-card p {
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.48;
  margin: 6px 0 34px;
}

.mobile-launch-card .connection-status {
  bottom: 14px;
  left: 16px;
  position: absolute;
}

.mobile-store-strip,
.mobile-build-note {
  background: var(--surface-cool);
  border: 1px solid #c7dedd;
  border-radius: var(--radius);
}

.mobile-store-strip {
  display: grid;
  gap: 16px;
  grid-template-columns: minmax(230px, 0.8fr) minmax(0, 1.2fr);
  padding: 16px;
}

.mobile-store-strip strong,
.mobile-build-note strong {
  display: block;
  font-size: 15px;
  line-height: 1.35;
}

.mobile-store-strip p,
.mobile-build-note p {
  color: #40525e;
  font-size: 14px;
  line-height: 1.52;
  margin: 6px 0 0;
}

.mobile-store-strip ul {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  list-style: none;
  margin: 0;
  padding: 0;
}

.mobile-store-strip li {
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(143, 183, 178, 0.46);
  border-radius: var(--radius);
  color: #315a59;
  font-size: 13px;
  font-weight: 750;
  line-height: 1.42;
  padding: 10px 11px;
}

.mobile-build-note {
  align-items: flex-start;
  color: var(--accent-strong);
  display: flex;
  gap: 12px;
  padding: 14px;
}

.mobile-build-note .icon {
  flex: 0 0 auto;
  margin-top: 2px;
}

.agent-command-panel,
.agent-evidence-panel,
.agent-drafts-panel,
.agent-escalation-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 22px;
}

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

.agent-wide,
.agent-evidence-panel,
.agent-drafts-panel,
.agent-escalation-panel {
  grid-column: 1 / -1;
}

.agent-stance,
.agent-inline-callout {
  align-items: flex-start;
  background: var(--surface-cool);
  border: 1px solid #c7dedd;
  border-radius: var(--radius);
  color: #315a59;
  display: flex;
  gap: 14px;
  margin-top: 20px;
  padding: 16px;
}

.agent-stance div,
.agent-inline-callout div {
  display: grid;
  gap: 5px;
}

.agent-stance strong,
.agent-inline-callout strong {
  color: var(--text);
  line-height: 1.35;
}

.agent-stance span,
.agent-inline-callout span {
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.45;
}

.agent-inline-callout {
  align-items: center;
  justify-content: space-between;
}

.agent-section {
  margin-top: 22px;
}

.agent-section h3 {
  font-size: 15px;
  margin: 0 0 12px;
}

.agent-step-list,
.approval-queue,
.draft-library {
  display: grid;
  gap: 12px;
}

.agent-step,
.approval-item,
.draft-card,
.evidence-card {
  background: #fbfdfe;
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.agent-step {
  align-items: flex-start;
  display: grid;
  gap: 12px;
  grid-template-columns: 34px minmax(0, 1fr);
  padding: 14px;
}

.step-index {
  align-items: center;
  background: var(--accent);
  border-radius: 50%;
  color: #fff;
  display: inline-flex;
  font-size: 13px;
  font-weight: 850;
  height: 30px;
  justify-content: center;
  width: 30px;
}

.agent-step strong,
.approval-item strong,
.draft-card strong {
  display: block;
  font-size: 14px;
  line-height: 1.35;
}

.agent-step p,
.approval-item p,
.draft-card p {
  color: #40525e;
  font-size: 14px;
  line-height: 1.52;
  margin: 5px 0 0;
}

.approval-queue {
  margin-top: 12px;
}

.approval-item {
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(0, 1fr) auto;
  padding: 14px;
}

.agent-status {
  border-radius: 999px;
  display: inline-flex;
  font-size: 12px;
  font-weight: 800;
  margin-top: 10px;
  padding: 5px 9px;
}

.agent-status-pending {
  background: var(--warning-soft);
  color: #895810;
}

.agent-status-approved {
  background: var(--accent-soft);
  color: var(--accent-strong);
}

.agent-status-done {
  background: var(--safe-soft);
  color: var(--safe);
}

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

.evidence-card {
  align-items: flex-start;
  color: #40525e;
  display: flex;
  font-size: 14px;
  gap: 10px;
  line-height: 1.45;
  padding: 14px;
}

.evidence-card .icon {
  color: var(--accent);
}

.draft-library {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 18px;
}

.draft-card {
  padding: 16px;
}

.draft-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 14px;
}

.agent-pack-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.agent-brief-intro {
  color: #40525e;
  line-height: 1.55;
  margin: 14px 0 12px;
}

.agent-brief {
  background: #f8fbfa;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: #25353b;
  font-family: var(--font-sans);
  font-size: 13px;
  line-height: 1.55;
  margin: 0;
  max-height: 380px;
  overflow: auto;
  padding: 16px;
  white-space: pre-wrap;
}

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

.route-card {
  background: #fbfdfe;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  display: flex;
  gap: 10px;
  padding: 14px;
}

.route-card .icon {
  color: var(--accent);
}

.route-card strong {
  display: block;
  font-size: 14px;
  line-height: 1.35;
}

.route-card p {
  color: #40525e;
  font-size: 13px;
  line-height: 1.5;
  margin: 5px 0 0;
}

.agent-timeline {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.agent-timeline span {
  background: var(--surface-soft);
  border: 1px solid var(--border);
  border-radius: 999px;
  color: #40525e;
  font-size: 13px;
  font-weight: 750;
  padding: 7px 10px;
}

.analysis-side {
  background: transparent;
  border: 0;
  box-shadow: none;
  display: grid;
  gap: 14px;
}

.side-panel {
  padding: 18px;
}

.analysis-header {
  align-items: center;
}

.timestamp {
  color: var(--text-muted);
  font-size: 13px;
  margin-top: 8px;
}

.risk-score {
  --score: 0deg;
  align-items: center;
  background: conic-gradient(var(--danger) var(--score), var(--surface-soft) 0);
  border-radius: 50%;
  display: flex;
  flex: 0 0 auto;
  height: 128px;
  justify-content: center;
  width: 128px;
}

.risk-score > div {
  align-items: center;
  background: var(--surface);
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  height: 94px;
  justify-content: center;
  text-align: center;
  width: 94px;
}

.risk-score strong {
  font-size: 31px;
  line-height: 1;
}

.risk-score span {
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 800;
  margin-top: 4px;
  max-width: 72px;
}

.warning-banner {
  align-items: flex-start;
  background: var(--danger-soft);
  border: 1px solid #edb7b0;
  border-radius: var(--radius);
  color: #8d221d;
  display: flex;
  gap: 12px;
  margin-top: 20px;
  padding: 14px;
}

.warning-banner div {
  display: grid;
  gap: 4px;
}

.warning-banner span {
  line-height: 1.45;
}

.analysis-section,
.checklist {
  margin-top: 22px;
}

.analysis-section h3,
.checklist h3 {
  font-size: 15px;
  margin: 0 0 8px;
}

.analysis-section p,
.checklist li,
.settings-copy,
.source-panel p {
  color: #40525e;
  line-height: 1.58;
}

.analysis-section p {
  margin: 0;
}

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

.checklist {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
}

.checklist-danger {
  background: #fff8f7;
}

.checklist-neutral {
  background: #f8fbfc;
}

.checklist ul {
  display: grid;
  gap: 10px;
  margin: 0;
  padding-left: 18px;
}

.verification-card-head {
  align-items: flex-start;
  display: flex;
  gap: 16px;
  justify-content: space-between;
}

.verification-card-head h3 {
  margin-bottom: 4px;
}

.verification-card-head p,
.verification-summary p {
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.45;
  margin: 0;
}

.verification-card-head > span,
.verification-summary strong {
  background: var(--surface-cool);
  border-radius: 999px;
  color: var(--accent-strong);
  display: inline-flex;
  font-size: 13px;
  font-weight: 850;
  padding: 6px 9px;
  white-space: nowrap;
}

.verification-progress {
  background: #e1ece9;
  border-radius: 999px;
  height: 7px;
  margin: 14px 0;
  overflow: hidden;
}

.verification-progress span {
  background: linear-gradient(90deg, var(--accent), #45b6a7);
  display: block;
  height: 100%;
}

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

.verification-item {
  align-items: flex-start;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  display: grid;
  gap: 10px;
  grid-template-columns: auto minmax(0, 1fr);
  padding: 11px;
}

.verification-item input {
  accent-color: var(--accent);
  margin-top: 3px;
  width: auto;
}

.verification-item span {
  color: #40525e;
  font-size: 14px;
  line-height: 1.45;
}

.verification-summary {
  border-top: 1px solid var(--border);
  display: grid;
  gap: 8px;
  margin-top: 14px;
  padding-top: 14px;
}

.verification-summary span {
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.verification-summary strong {
  justify-self: start;
}

.case-delete-button {
  margin-top: 14px;
  width: 100%;
}

.side-panel select {
  margin-top: 8px;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.risk-tag,
.file-chip {
  background: var(--surface-soft);
  border: 1px solid var(--border);
  border-radius: 999px;
  color: #40525e;
  display: inline-flex;
  font-size: 12px;
  font-weight: 750;
  padding: 6px 10px;
}

.draft-box {
  margin-top: 10px;
  min-height: 210px;
}

.source-panel p:last-child {
  margin-bottom: 0;
  max-height: 220px;
  overflow: auto;
  white-space: pre-wrap;
}

.file-chip {
  margin: 10px 0 0;
}

.history-toolbar {
  align-items: end;
  display: grid;
  grid-template-columns: minmax(260px, 1fr) 190px 230px;
}

.history-table {
  display: grid;
  margin-top: 18px;
}

.history-row {
  align-items: center;
  border-bottom: 1px solid var(--border);
  display: grid;
  gap: 14px;
  grid-template-columns: minmax(220px, 1.4fr) minmax(150px, 0.8fr) 100px 150px 120px;
  min-height: 62px;
  padding: 10px 0;
}

.history-row:last-child {
  border-bottom: 0;
}

.history-head {
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 850;
  min-height: 40px;
  text-transform: uppercase;
}

.history-row button {
  background: transparent;
  border: 0;
  color: var(--text);
  font-weight: 800;
  padding: 0;
  text-align: left;
}

.context-grid {
  margin-top: 20px;
}

.context-grid label:nth-last-child(-n + 3) {
  grid-column: span 1;
}

.settings-grid {
  align-items: start;
}

.settings-wide {
  grid-column: 1 / -1;
}

.settings-copy {
  margin-top: 12px;
  overflow-wrap: anywhere;
}

.backup-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.backup-import {
  overflow: hidden;
  position: relative;
}

.backup-import input {
  cursor: pointer;
  inset: 0;
  opacity: 0;
  position: absolute;
}

.fit-button {
  margin-top: 18px;
  width: fit-content;
}

.legal-document-page {
  background:
    radial-gradient(circle at 18% 0%, rgba(31, 127, 115, 0.12), transparent 28%),
    linear-gradient(180deg, #f7fbfa 0%, #eef6f4 100%);
  min-height: 100vh;
  padding: 28px;
}

.legal-document {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin: 0 auto;
  max-width: 920px;
  padding: 36px;
}

.legal-document header {
  border-bottom: 1px solid var(--border);
  margin-bottom: 24px;
  padding-bottom: 22px;
}

.legal-document h1 {
  font-size: 38px;
  line-height: 1.08;
  margin: 10px 0 12px;
}

.legal-document h2 {
  font-size: 19px;
  margin: 26px 0 8px;
}

.legal-document p,
.legal-document li {
  color: #40525e;
  line-height: 1.62;
}

.legal-document ul {
  display: grid;
  gap: 8px;
  padding-left: 20px;
}

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

.legal-document-nav a {
  background: var(--surface-cool);
  border: 1px solid #c7dedd;
  border-radius: 999px;
  color: var(--accent-strong);
  font-size: 13px;
  font-weight: 850;
  padding: 7px 10px;
  text-decoration: none;
}

/* Learn — scam-education library (in-app views + static SEO pages) */
.legal-document ol {
  display: grid;
  gap: 8px;
  padding-left: 20px;
}

.learn-index-list {
  display: grid;
  gap: 12px;
  list-style: none;
  padding: 0;
}

.learn-index-list a {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: inherit;
  display: grid;
  gap: 4px;
  padding: 14px 16px;
  text-decoration: none;
}

.learn-index-list a:hover {
  border-color: var(--accent-strong);
}

.learn-index-list strong {
  color: var(--accent-strong);
}

.learn-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  margin: 16px 0;
}

.learn-card {
  background: var(--surface-cool);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  display: grid;
  gap: 6px;
  padding: 16px;
  text-align: left;
}

.learn-card:hover {
  border-color: var(--accent-strong);
}

.learn-card strong {
  color: var(--accent-strong);
  font-size: 15px;
}

.learn-card span {
  color: #40525e;
  font-size: 13px;
  line-height: 1.5;
}

.learn-intro {
  color: #40525e;
  font-size: 15px;
  line-height: 1.6;
}

.learn-list {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 20px;
}

.learn-list li {
  line-height: 1.55;
}

.learn-list-danger li::marker,
.learn-list-dont li::marker {
  color: #c0392b;
}

.learn-list-do li::marker {
  color: var(--accent-strong);
}

.learn-result-link {
  background: none;
  border: none;
  color: var(--accent-strong);
  cursor: pointer;
  font-weight: 850;
  margin-top: 10px;
  padding: 0;
  text-align: left;
}

.learn-result-link:hover {
  text-decoration: underline;
}

@media (max-width: 1060px) {
  .app-shell {
    grid-template-columns: 1fr;
  }

  .sidebar {
    height: auto;
    position: static;
  }

  .nav-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(128px, 1fr));
  }

  .nav-button {
    justify-content: center;
  }

  .approval-card {
    margin-top: 0;
  }

  .dashboard-grid,
    .analysis-grid,
    .agent-grid,
    .connections-grid,
    .account-grid,
    .landing-hero,
    .landing-values,
    .landing-process,
    .landing-process-list,
    .billing-plan-grid,
    .settings-grid,
    .field-row,
    .analysis-columns,
    .evidence-grid,
    .draft-library,
    .connector-grid,
    .workflow-steps,
    .guided-intake-actions,
    .connection-status-list,
    .launch-readiness-list,
    .mobile-launch-grid,
    .mobile-store-strip,
    .mobile-store-strip ul,
    .route-grid {
    grid-template-columns: 1fr;
  }

  .history-toolbar,
  .history-row {
    grid-template-columns: 1fr;
  }

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

  .history-head {
    display: none;
  }

  .landing-copy {
    display: flex;
    flex-direction: column;
    max-width: 100%;
    overflow: hidden;
    width: 100%;
  }

  .landing-copy .mini-label,
  .landing-trust-line {
    order: 1;
  }

  .landing-copy h1 {
    font-size: 40px;
    line-height: 1.04;
    margin: 22px 0 14px;
    order: 2;
  }

  .landing-copy > p:not(.mini-label):not(.landing-safe-line) {
    font-size: 16px;
    line-height: 1.5;
    max-width: 100%;
    order: 3;
  }

  .landing-hero-actions {
    order: 4;
  }

  .landing-mini-values {
    order: 5;
  }

  .landing-mobile-3d {
    align-items: center;
    display: flex;
    justify-content: center;
    min-height: 156px;
    order: 4;
    overflow: hidden;
    position: relative;
  }

  .landing-mobile-3d .hero-motion-ring-one {
    height: 132px;
    width: 132px;
  }

  .landing-mobile-3d .hero-motion-ring-three {
    height: 166px;
    width: 166px;
  }

  .mobile-3d-label {
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid rgba(197, 212, 208, 0.72);
    border-radius: 8px;
    bottom: 20px;
    box-shadow: 0 14px 32px rgba(28, 45, 41, 0.12);
    color: var(--accent-strong);
    font-size: 11px;
    font-weight: 900;
    padding: 7px 9px;
    position: absolute;
    right: 50%;
    transform: translateX(92px) rotate(-3deg);
  }

  .landing-mobile-3d .assistant-avatar {
    bottom: -2px;
    right: calc(50% - 142px);
    width: 104px;
  }

  .landing-mobile-3d .assistant-avatar span {
    bottom: 4px;
    font-size: 9px;
    padding: 5px 8px;
  }

  .landing-input {
    margin-top: 18px;
    order: 6;
  }

  .landing-proof-line {
    order: 7;
  }

  .landing-product {
    margin: 0 auto;
    max-width: 620px;
    overflow: hidden;
    width: 100%;
  }

  .landing-avatar-stage {
    min-height: 374px;
  }

  .landing-avatar-stage .landing-orb-stage {
    min-height: 374px;
    transform: translateX(-38px);
  }

  .assistant-avatar {
    right: 8px;
    width: 158px;
  }

  .workflow-strip {
    order: 8;
  }

  .landing-safe-line {
    order: 9;
  }

  .install-card {
    order: 10;
  }
}

@media (max-width: 720px) {
  html,
  body,
  #root {
    max-width: 100%;
    overflow-x: hidden;
    width: 100%;
  }

  .app-shell {
    --mobile-page-pad: 14px;
    --mobile-content-width: min(362px, calc(100vw - (var(--mobile-page-pad) * 2)));
    inline-size: 100%;
    max-width: 100vw;
    min-height: 100svh;
    overflow-x: hidden;
  }

  .workspace {
    inline-size: 100%;
    max-width: 100vw;
    padding: 16px var(--mobile-page-pad) 22px;
    width: 100%;
  }

  .landing-page {
    padding: 18px;
  }

  .landing-nav,
  .landing-hero,
  .landing-values,
  .landing-process,
  .landing-final-cta {
    max-width: 100%;
    width: 100%;
  }

  .landing-nav,
  .landing-nav-actions,
  .landing-actions,
  .workflow-strip-heading,
  .guided-intake-heading,
  .agent-pack-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .landing-nav {
    gap: 16px;
  }

  .landing-nav-actions,
  .language-select,
  .language-select select {
    width: 100%;
  }

  .language-select {
    align-items: stretch;
    flex-direction: column;
    min-width: 0;
  }

  .language-select select {
    min-width: 0;
  }

  .landing-hero {
    gap: 26px;
    min-height: auto;
    padding: 38px 0 30px;
  }

  .landing-copy h1 {
    font-size: 23px;
    inline-size: 100%;
    line-height: 1.04;
    margin: 20px 0 14px;
    max-width: 100%;
    overflow-wrap: anywhere;
    text-wrap: wrap;
    white-space: normal;
    word-break: normal;
  }

  .landing-copy > p:not(.mini-label):not(.landing-safe-line) {
    inline-size: 100%;
    font-size: 16px;
    line-height: 1.5;
    max-width: 100%;
    overflow-wrap: anywhere;
    white-space: normal;
  }

  .landing-language-signal {
    grid-template-columns: auto minmax(0, 1fr);
    max-width: 100%;
    width: 100%;
  }

  .landing-language-copy small {
    display: none;
  }

  .landing-language-tags {
    grid-column: 1 / -1;
    justify-content: flex-start;
  }

  .landing-copy {
    display: flex;
    flex-direction: column;
    inline-size: min(100%, calc(100vw - 36px));
    max-width: 100%;
    min-width: 0;
    overflow: visible;
    width: min(100%, calc(100vw - 36px));
  }

  .landing-copy .mini-label,
  .landing-trust-line {
    display: block;
    inline-size: 100%;
    line-height: 1.35;
    overflow-wrap: anywhere;
    order: 1;
    white-space: normal;
  }

  .landing-copy h1 {
    order: 2;
  }

  .landing-copy > p:not(.mini-label):not(.landing-safe-line) {
    display: block;
    order: 3;
    inline-size: 100%;
    max-width: 100%;
    overflow-wrap: anywhere;
    white-space: normal;
  }

  .landing-hero-actions {
    align-items: stretch;
    flex-direction: column;
    inline-size: 100%;
    order: 4;
    width: 100%;
  }

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

  .landing-mini-values {
    inline-size: 100%;
    order: 5;
  }

  .landing-language-signal {
    order: 6;
  }

  .landing-mobile-3d {
    min-height: 148px;
    order: 7;
  }

  .landing-mobile-3d .assistant-avatar {
    right: calc(50% - 134px);
    width: 98px;
  }

  .landing-input {
    margin-top: 16px;
    max-width: 100%;
    order: 6;
    width: 100%;
  }

  .landing-input textarea {
    max-width: 100%;
    min-width: 0;
    width: 100%;
  }

  .landing-product {
    max-width: 100%;
  }

  .landing-product-minimal .landing-avatar-stage,
  .landing-product-minimal .landing-orb-stage {
    min-height: 330px;
  }

  .landing-avatar-stage .landing-orb-stage {
    transform: none;
  }

  .landing-product .assistant-avatar {
    right: -18px;
    width: 132px;
  }

  .landing-product-top strong {
    font-size: 20px;
  }

  .landing-proof-line {
    order: 7;
  }

  .landing-values {
    gap: 10px;
    padding: 0 0 38px;
  }

  .landing-value-card {
    min-height: auto;
    padding: 16px;
  }

  .landing-process {
    gap: 18px;
    padding: 38px 0;
  }

  .landing-process-step {
    gap: 6px 12px;
    grid-template-columns: 36px minmax(0, 1fr);
    padding: 14px 0;
  }

  .landing-process-step p {
    grid-column: 2;
  }

  .landing-final-cta {
    align-items: stretch;
    flex-direction: column;
    margin-bottom: 30px;
    padding: 20px;
  }

  .workflow-strip {
    order: 8;
  }

  .landing-safe-line {
    order: 9;
  }

  .install-card {
    order: 10;
  }

  .landing-demo-heading {
    align-items: stretch;
    flex-direction: column;
    gap: 6px;
  }

  .landing-demo-heading div {
    justify-items: start;
    max-width: none;
    text-align: left;
  }

  .landing-demo-grid {
    grid-template-columns: 1fr;
  }

  .landing-demo-button {
    grid-template-columns: 22px minmax(0, 1fr);
  }

  .landing-demo-button small {
    grid-column: 2;
  }

  .auth-method-grid {
    grid-template-columns: 1fr;
  }

  .auth-method-card {
    min-height: auto;
  }

  .workflow-strip-heading span {
    text-align: left;
  }

  .guided-intake-heading span {
    text-align: left;
  }

  .workflow-step {
    min-height: 0;
  }

  .brand-orb-hero {
    --orb-size: 190px;
  }

  .landing-avatar-stage {
    min-height: 314px;
  }

  .landing-avatar-stage .landing-orb-stage {
    min-height: 314px;
    transform: translateX(-34px) scale(0.95);
  }

  .assistant-avatar {
    right: 2px;
    width: 124px;
  }

  .landing-orb-stage {
    min-height: 280px;
  }

  .hero-depth-grid {
    height: 142px;
    width: 270px;
  }

  .hero-motion-ring-one {
    height: 210px;
    width: 210px;
  }

  .hero-motion-ring-two {
    height: 250px;
    width: 250px;
  }

  .hero-motion-ring-three {
    height: 286px;
    width: 286px;
  }

  .hero-scan-beam {
    width: 220px;
  }

  .hero-holo-card {
    max-width: 122px;
    padding: 8px 9px;
  }

  .hero-holo-card span {
    font-size: 9px;
  }

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

  .hero-holo-card-risk {
    left: 2%;
    top: 16%;
  }

  .hero-holo-card-verify {
    right: 1%;
    top: 34%;
  }

  .hero-holo-card-approve {
    bottom: 7%;
    left: 12%;
  }

  .sidebar {
    border-bottom: 1px solid var(--border);
    border-right: 0;
    gap: 12px;
    inline-size: 100%;
    max-width: 100vw;
    overflow: hidden;
    padding: 14px var(--mobile-page-pad);
    width: 100%;
  }

  .topbar,
  .section-heading,
  .analysis-header {
    align-items: stretch;
    flex-direction: column;
  }

  .analysis-meta-actions,
  .analysis-actions {
    align-items: stretch;
    justify-items: stretch;
    justify-content: flex-start;
  }

  .analysis-actions {
    flex-direction: column;
  }

  .topbar-actions {
    align-items: stretch;
    flex-direction: column;
    min-width: 0;
    width: 100%;
  }

  .mode-pill {
    justify-content: center;
    min-width: 0;
    text-align: center;
    white-space: normal;
    width: 100%;
  }

  .nav-list {
    display: flex;
    flex-direction: row;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 2px;
    scrollbar-width: none;
  }

  .nav-list::-webkit-scrollbar {
    display: none;
  }

  .nav-button {
    flex: 0 0 auto;
    font-size: 13px;
    justify-content: center;
    min-height: 38px;
    padding: 8px 10px;
    width: auto;
  }

  .nav-button span {
    white-space: nowrap;
  }

  .nav-button .icon {
    height: 18px;
    width: 18px;
  }

  .approval-card {
    display: grid;
    gap: 6px;
    margin-top: 0;
    max-width: var(--mobile-content-width);
    padding: 11px 12px;
    width: var(--mobile-content-width);
  }

  .approval-card p:last-child {
    font-size: 12px;
    line-height: 1.45;
    margin-top: 0;
    overflow-wrap: anywhere;
  }

  .topbar {
    gap: 14px;
    inline-size: 100%;
    margin-left: 0;
    margin-right: auto;
    max-width: var(--mobile-content-width);
    width: var(--mobile-content-width);
  }

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

  .account-onboarding-panel {
    grid-template-columns: 1fr;
  }

  .account-onboarding-copy h2 {
    font-size: 26px;
  }

  .account-onboarding-actions {
    justify-content: stretch;
  }

  .account-onboarding-actions a {
    justify-content: center;
    width: 100%;
  }

  .account-onboarding-steps {
    grid-template-columns: 1fr;
  }

  .account-onboarding-steps div {
    padding: 12px 0;
  }

  .account-onboarding-steps div:first-child {
    padding-top: 0;
  }

  .account-onboarding-steps div + div {
    border-left: 0;
    border-top: 1px solid rgba(199, 222, 219, 0.82);
  }

  .topbar p,
  .language-select span {
    white-space: normal;
  }

  .dashboard-grid,
  .analysis-grid,
  .agent-grid,
  .connections-grid,
  .account-grid,
  .settings-grid {
    inline-size: 100%;
    margin-left: 0;
    margin-right: auto;
    max-width: var(--mobile-content-width);
    width: var(--mobile-content-width);
  }

  .primary-panel,
  .status-panel,
  .timeline-panel,
  .analysis-main,
  .analysis-side,
  .side-panel {
    max-width: 100%;
    min-width: 0;
    width: 100%;
  }

  .primary-panel,
  .status-panel,
  .timeline-panel,
  .analysis-main,
  .side-panel {
    padding: 18px;
  }

  .warning-banner,
  .topbar *,
  .approval-card *,
  .analysis-header,
  .analysis-header *,
  .analysis-main *,
  .analysis-side *,
  .analysis-section p,
  .checklist li,
  .settings-copy,
  .source-panel p,
  .draft-box {
    min-width: 0;
    overflow-wrap: anywhere;
    white-space: normal;
    word-break: break-word;
  }

  .analysis-header,
  .analysis-header > div,
  .analysis-meta-actions,
  .analysis-actions {
    inline-size: 100%;
    max-inline-size: 100%;
  }

  .analysis-header h2,
  .topbar h1,
  .topbar p,
  .approval-card p {
    display: block;
    max-inline-size: 100%;
  }

  .form-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .sample-picker {
    align-items: stretch;
    flex-direction: column;
    padding: 9px 10px;
  }

  .sample-picker select {
    max-width: 100%;
    min-width: 0;
    width: 100%;
  }

  .agent-inline-callout,
  .approval-item,
  .connection-card,
    .launch-readiness-item,
    .mobile-build-note,
    .auth-checklist-item,
    .route-card,
    .install-card {
    align-items: stretch;
    grid-template-columns: 1fr;
  }

  .connection-control {
    justify-items: start;
  }

  .agent-inline-callout,
  .mobile-build-note {
    flex-direction: column;
  }

  .file-input {
    margin-right: 0;
  }

  .primary-button,
  .secondary-button,
  .ghost-button,
  .danger-button,
  .file-input {
    width: 100%;
  }

  .stat-grid,
  .context-grid {
    grid-template-columns: 1fr;
  }

  .risk-score {
    height: 116px;
    width: 116px;
  }

  .legal-document-page {
    padding: 16px;
  }

  .legal-document {
    padding: 24px;
  }

  .legal-document h1 {
    font-size: 32px;
  }
}

@media (max-width: 430px) {
  .landing-copy h1 {
    font-size: 22px;
    text-wrap: wrap;
  }

  .landing-language-copy small {
    display: none;
  }

  .landing-demo-grid {
    grid-template-columns: 1fr;
  }

  .brand-orb-hero {
    --orb-size: 164px;
  }

  .landing-avatar-stage {
    min-height: 282px;
  }

  .landing-avatar-stage .landing-orb-stage {
    min-height: 282px;
    transform: translateX(-24px) scale(0.9);
  }

  .assistant-avatar {
    right: -4px;
    width: 104px;
  }

  .landing-mobile-3d .assistant-avatar {
    right: calc(50% - 124px);
    width: 90px;
  }

  .assistant-avatar span {
    font-size: 10px;
    padding: 5px 8px;
  }

  .landing-orb-stage {
    min-height: 246px;
  }

  .hero-holo-card {
    max-width: 104px;
    padding: 7px 8px;
  }

  .hero-holo-card span {
    font-size: 8px;
  }

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

  .hero-holo-card-risk {
    left: 1%;
    top: 12%;
  }

  .hero-holo-card-verify {
    right: 1%;
    top: 30%;
  }

  .hero-holo-card-approve {
    bottom: 4%;
    left: 9%;
  }
}

@media print {
  body {
    background: #ffffff;
    color: #111111;
  }

  .sidebar,
  .topbar,
  .analysis-actions,
  .agent-inline-callout,
  .landing-page,
  .status-select {
    display: none !important;
  }

  .app-shell,
  .workspace,
  .analysis-grid {
    display: block;
    min-height: auto;
    padding: 0;
  }

  .analysis-grid,
  .wide-panel {
    max-width: none;
  }

  .analysis-main,
  .analysis-side,
  .side-panel {
    background: #ffffff;
    border: 1px solid #d8d8d8;
    box-shadow: none;
    break-inside: avoid;
  }

  .analysis-main,
  .side-panel {
    margin-bottom: 12px;
    padding: 18px;
  }

  .analysis-header,
  .analysis-meta-actions {
    align-items: flex-start;
    display: flex;
    justify-content: space-between;
  }

  .analysis-side {
    display: block;
    margin-top: 12px;
  }

  .draft-box {
    border: 0;
    min-height: auto;
    padding: 0;
  }
}

/* ============================================================================
   PREMIUM REDESIGN LAYER — 2026-06-13 ("Midnight Teal × Champagne")
   Appended last so it layers depth/glass/motion/type over the base without
   editing existing rules. All motion is gated behind prefers-reduced-motion:
   no-preference; reduced-motion users keep the calm static end-state. The
   risk verdict stays loud, serious, and high-contrast (delight is shell-only).
   ============================================================================ */

/* Ambient, layered background — warmer and deeper than the old flat green. */
body {
  background: var(--gradient-ambient), var(--background);
  background-attachment: fixed;
}

/* Refined display type on the hero. */
.landing-copy h1 {
  letter-spacing: -0.02em;
  background: linear-gradient(180deg, var(--text), #1f3a37 88%);
  -webkit-background-clip: text;
  background-clip: text;
  color: var(--text); /* fallback if background-clip unsupported */
}
.landing-trust-line {
  letter-spacing: 0.13em;
}

/* Glass + depth on structural panels. */
.sidebar {
  background: var(--glass-bg);
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
  border-right: 1px solid var(--glass-border);
  box-shadow: var(--shadow-sm);
}
.topbar {
  border-radius: var(--radius-lg);
}
.approval-card {
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm), var(--shadow-gold);
}

/* Elevation + glass on the card-like surfaces, with a soft hover lift. */
.landing-language-signal,
.landing-product,
.landing-input,
.side-panel,
.analysis-main,
.analysis-side,
.stat-card,
.legal-document {
  box-shadow: var(--shadow-md);
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out);
}

/* Buttons: premium gloss + crisp hover lift + gold focus glint. */
.primary-button {
  background: linear-gradient(180deg, #1a8478, var(--accent) 55%, var(--accent-strong));
  box-shadow: 0 8px 20px rgba(13, 81, 75, 0.26), inset 0 1px 0 rgba(255, 255, 255, 0.22);
  transition: transform 0.22s var(--ease-spring), box-shadow 0.22s var(--ease-out), filter 0.22s var(--ease-out);
}
.primary-button:hover {
  background: linear-gradient(180deg, #1a8478, var(--accent) 55%, var(--accent-strong));
  filter: brightness(1.05);
}
.secondary-button,
.ghost-button,
.file-input {
  transition: transform 0.22s var(--ease-spring), border-color 0.22s var(--ease-out), box-shadow 0.22s var(--ease-out);
}
:where(.primary-button, .secondary-button, .ghost-button):focus-visible {
  outline: 2px solid var(--accent-cyan);
  outline-offset: 2px;
  box-shadow: 0 0 0 4px var(--gold-soft);
}

/* Companion: a faint champagne rim-light for premium sheen (purely visual). */
.brand-companion {
  filter: drop-shadow(0 18px 30px rgba(11, 32, 31, 0.22)) drop-shadow(0 0 14px rgba(200, 168, 106, 0.12));
}

/* The do-not-proceed / risk surfaces stay LOUD and serious — reinforce, not soften. */
.risk-score {
  box-shadow: var(--shadow-lg);
}

@media (prefers-reduced-motion: no-preference) {
  /* Hover lift on elevated cards. */
  .landing-language-signal:hover,
  .landing-product:hover,
  .stat-card:hover,
  .side-panel:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
  }
  .primary-button:hover,
  .secondary-button:hover,
  .ghost-button:hover {
    transform: translateY(-1px);
  }
  .primary-button:active,
  .secondary-button:active {
    transform: translateY(0);
  }

  /* Gentle 3D tilt on the hero product card. */
  .landing-product {
    transform-style: preserve-3d;
  }
  .landing-product:hover {
    transform: perspective(1200px) rotateX(1.4deg) rotateY(-2deg) translateY(-3px);
  }

  /* Arrival / result-landing entrance (render() re-inserts the DOM, so this
     replays as a natural reaction whenever a screen or verdict mounts). */
  .landing-copy > *,
  .landing-product,
  .landing-values > *,
  .analysis-main,
  .analysis-side,
  .workspace > * {
    animation: premium-rise 0.62s var(--ease-out) both;
  }
  .landing-copy > *:nth-child(2) { animation-delay: 0.05s; }
  .landing-copy > *:nth-child(3) { animation-delay: 0.1s; }
  .landing-copy > *:nth-child(4) { animation-delay: 0.15s; }
  .landing-product { animation-delay: 0.12s; }
  .landing-values > *:nth-child(2) { animation-delay: 0.06s; }
  .landing-values > *:nth-child(3) { animation-delay: 0.12s; }
}

@keyframes premium-rise {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

