/*!***********************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
  !*** css ./node_modules/next/dist/build/webpack/loaders/css-loader/src/index.js??ruleSet[1].rules[14].oneOf[2].use[1]!./node_modules/next/dist/build/webpack/loaders/next-font-loader/index.js??ruleSet[1].rules[14].oneOf[2].use[2]!./node_modules/next/font/google/target.css?{"path":"app/layout.tsx","import":"Inter","arguments":[{"subsets":["latin"],"variable":"--font-inter","display":"swap"}],"variableName":"inter"} ***!
  \***********************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
/* cyrillic-ext */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url(/_next/static/media/ba9851c3c22cd980-s.woff2) format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
/* cyrillic */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url(/_next/static/media/21350d82a1f187e9-s.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* greek-ext */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url(/_next/static/media/c5fe6dc8356a8c31-s.woff2) format('woff2');
  unicode-range: U+1F00-1FFF;
}
/* greek */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url(/_next/static/media/19cfc7226ec3afaa-s.woff2) format('woff2');
  unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF;
}
/* vietnamese */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url(/_next/static/media/df0a9ae256c0569c-s.woff2) format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
/* latin-ext */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url(/_next/static/media/8e9860b6e62d6359-s.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url(/_next/static/media/e4af272ccee01ff0-s.p.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}@font-face {font-family: 'Inter Fallback';src: local("Arial");ascent-override: 90.44%;descent-override: 22.52%;line-gap-override: 0.00%;size-adjust: 107.12%
}.__className_f367f3 {font-family: 'Inter', 'Inter Fallback';font-style: normal
}.__variable_f367f3 {--font-inter: 'Inter', 'Inter Fallback'
}

/*!*************************************************************************************************************************************************************************************************************************************************************!*\
  !*** css ./node_modules/next/dist/build/webpack/loaders/css-loader/src/index.js??ruleSet[1].rules[14].oneOf[10].use[2]!./node_modules/next/dist/build/webpack/loaders/postcss-loader/src/index.js??ruleSet[1].rules[14].oneOf[10].use[3]!./app/globals.css ***!
  \*************************************************************************************************************************************************************************************************************************************************************/
/* ==================================================
   Design system — single source of truth for colors,
   spacing, type, radii, shadows. Class definitions
   below should reference these vars going forward.
   ================================================== */

:root {
  /* Brand */
  --color-brand-deep: #0f172a;          /* slate-900 — primary dark surface */
  --color-brand-deep-2: #1e293b;
  --color-brand-deep-3: #334155;
  --color-brand-indigo: #4f46e5;        /* indigo-600 — primary action */
  --color-brand-indigo-hover: #4338ca;
  --color-brand-indigo-soft: #eef2ff;
  --color-brand-emerald: #10b981;
  --color-brand-emerald-hover: #059669;
  --color-brand-emerald-soft: #ecfdf5;
  --color-brand-amber: #f59e0b;
  --color-brand-amber-soft: #fef3c7;
  --color-brand-red: #ef4444;
  --color-brand-red-hover: #dc2626;
  --color-brand-red-soft: #fef2f2;

  /* Surfaces & neutrals */
  --color-bg: #f8fafc;
  --color-surface: #ffffff;
  --color-surface-2: #f1f5f9;
  --color-border: #e2e8f0;
  --color-border-strong: #cbd5e1;

  /* Text */
  --color-text: #0f172a;
  --color-text-2: #475569;
  --color-text-3: #94a3b8;
  --color-text-on-brand: #ffffff;

  /* Spacing — 4px grid */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
  --space-10: 40px;
  --space-12: 48px;
  --space-16: 64px;
  --space-20: 80px;

  /* Radius */
  --radius-sm: 6px;
  --radius: 8px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-xl: 20px;
  --radius-pill: 9999px;

  /* Shadows — soft, layered */
  --shadow-xs: 0 1px 2px rgba(15, 23, 42, 0.04);
  --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.06), 0 1px 2px rgba(15, 23, 42, 0.04);
  --shadow: 0 4px 12px rgba(15, 23, 42, 0.06), 0 2px 4px rgba(15, 23, 42, 0.04);
  --shadow-md: 0 8px 24px rgba(15, 23, 42, 0.08), 0 4px 8px rgba(15, 23, 42, 0.04);
  --shadow-lg: 0 16px 48px rgba(15, 23, 42, 0.12), 0 6px 12px rgba(15, 23, 42, 0.06);

  /* Type stack — Inter via next/font, system fallback */
  --font-sans: var(--font-inter), -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-display: var(--font-inter), -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'SF Mono', 'JetBrains Mono', Menlo, Consolas, monospace;

  /* Motion */
  --t-fast: 0.12s ease;
  --t: 0.18s ease;
  --t-slow: 0.3s ease;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.55;
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

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

a {
  color: var(--color-brand-indigo);
  text-decoration: none;
  transition: color var(--t-fast);
}

a:hover {
  color: var(--color-brand-indigo-hover);
}

*:focus {
  outline: none;
}

*:focus-visible {
  outline: 2px solid var(--color-brand-indigo);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

::selection {
  background: rgba(79, 70, 229, 0.18);
  color: var(--color-text);
}

/* Hide scrollbars on horizontal-scroll containers (nav, tab strips)
   without losing functionality on desktop. */
.scroll-x {
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.scroll-x::-webkit-scrollbar {
  display: none;
}

/* Landing page styles */
.landing {
  color: #1a1a2e;
}

.hero {
  min-height: 100vh;
  background: linear-gradient(135deg, #0f0f23 0%, #1a1a3e 40%, #2d1b69 100%);
  color: white;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.15) 0%, transparent 70%);
  border-radius: 50%;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.1) 0%, transparent 70%);
  border-radius: 50%;
}

.hero-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 48px;
  position: relative;
  z-index: 10;
}

.hero-logo {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -1px;
}

.hero-logo span {
  color: #818cf8;
}

.hero-login-btn {
  padding: 10px 24px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: white;
  border-radius: 8px;
  font-size: 15px;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s;
}

.hero-login-btn:hover {
  background: rgba(255, 255, 255, 0.2);
}

.hero-content {
  flex: 1 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 0 48px 80px;
  position: relative;
  z-index: 10;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 20px;
  background: rgba(99, 102, 241, 0.2);
  border: 1px solid rgba(99, 102, 241, 0.3);
  border-radius: 100px;
  font-size: 14px;
  color: #a5b4fc;
  margin-bottom: 32px;
}

.hero-badge-dot {
  width: 8px;
  height: 8px;
  background: #10b981;
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.hero h1 {
  font-size: clamp(40px, 6vw, 72px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -2px;
  margin-bottom: 24px;
  max-width: 900px;
}

.hero h1 em {
  font-style: normal;
  background: linear-gradient(135deg, #818cf8, #10b981);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: clamp(18px, 2vw, 22px);
  color: rgba(255, 255, 255, 0.7);
  max-width: 640px;
  line-height: 1.6;
  margin-bottom: 48px;
}

.hero-cta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
}

.btn-primary {
  padding: 16px 36px;
  background: linear-gradient(135deg, #6366f1, #4f46e5);
  color: white;
  border: none;
  border-radius: 12px;
  font-size: 17px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s;
  box-shadow: 0 4px 24px rgba(99, 102, 241, 0.4);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(99, 102, 241, 0.5);
}

.btn-secondary {
  padding: 16px 36px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: white;
  border-radius: 12px;
  font-size: 17px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s;
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.15);
}

/* Stats bar */
.stats-bar {
  display: flex;
  justify-content: center;
  gap: 64px;
  padding: 48px;
  background: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
}

.stat {
  text-align: center;
}

.stat-number {
  font-size: 42px;
  font-weight: 800;
  color: #4f46e5;
  letter-spacing: -1px;
}

.stat-label {
  font-size: 15px;
  color: #64748b;
  margin-top: 4px;
}

/* Features */
.features {
  padding: 100px 48px;
  max-width: 1200px;
  margin: 0 auto;
}

.features h2 {
  font-size: 42px;
  font-weight: 800;
  text-align: center;
  letter-spacing: -1px;
  margin-bottom: 16px;
}

.features-subtitle {
  text-align: center;
  color: #64748b;
  font-size: 18px;
  margin-bottom: 64px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-gap: 32px;
  gap: 32px;
}

.feature-card {
  padding: 36px;
  border-radius: 16px;
  border: 1px solid #e2e8f0;
  background: white;
  transition: all 0.3s;
}

.feature-card:hover {
  border-color: #c7d2fe;
  box-shadow: 0 8px 32px rgba(99, 102, 241, 0.08);
  transform: translateY(-4px);
}

.feature-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  margin-bottom: 20px;
}

.feature-card h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 12px;
}

.feature-card p {
  color: #64748b;
  line-height: 1.6;
  font-size: 15px;
}

/* How it works */
.how-it-works {
  padding: 100px 48px;
  background: #f8fafc;
}

.how-it-works h2 {
  font-size: 42px;
  font-weight: 800;
  text-align: center;
  letter-spacing: -1px;
  margin-bottom: 64px;
}

.steps {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.step {
  display: flex;
  gap: 32px;
  padding: 32px 0;
  position: relative;
}

.step-number {
  width: 56px;
  height: 56px;
  min-width: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, #6366f1, #4f46e5);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  font-weight: 800;
  position: relative;
  z-index: 2;
}

.step-content h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 8px;
  margin-top: 4px;
}

.step-content p {
  color: #64748b;
  line-height: 1.6;
  font-size: 15px;
}

/* VDA section */
.vda-section {
  padding: 100px 48px;
  background: linear-gradient(135deg, #0f0f23 0%, #1a1a3e 100%);
  color: white;
}

.vda-inner {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.vda-section h2 {
  font-size: 42px;
  font-weight: 800;
  letter-spacing: -1px;
  margin-bottom: 24px;
}

.vda-section h2 em {
  font-style: normal;
  background: linear-gradient(135deg, #818cf8, #10b981);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.vda-section p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 18px;
  line-height: 1.7;
  margin-bottom: 20px;
}

.vda-skills {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-top: 40px;
}

.vda-skill {
  padding: 10px 20px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 100px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.9);
}

/* Chat preview */
.chat-section {
  padding: 100px 48px;
}

.chat-section h2 {
  font-size: 42px;
  font-weight: 800;
  text-align: center;
  letter-spacing: -1px;
  margin-bottom: 16px;
}

.chat-section-subtitle {
  text-align: center;
  color: #64748b;
  font-size: 18px;
  margin-bottom: 48px;
}

.chat-preview {
  max-width: 480px;
  margin: 0 auto;
  background: #ece5dd;
  border-radius: 16px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.chat-bubble {
  max-width: 85%;
  padding: 12px 16px;
  border-radius: 12px;
  font-size: 14px;
  line-height: 1.5;
}

.chat-bubble-user {
  align-self: flex-end;
  background: #dcf8c6;
  border-bottom-right-radius: 4px;
}

.chat-bubble-mark {
  align-self: flex-start;
  background: white;
  border-bottom-left-radius: 4px;
}

.chat-bubble-name {
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 4px;
}

.chat-bubble-mark .chat-bubble-name {
  color: #6366f1;
}

.chat-bubble-user .chat-bubble-name {
  color: #059669;
}

/* Status updates section */
.updates-section {
  padding: 100px 48px;
  background: #f8fafc;
}

.updates-section h2 {
  font-size: 42px;
  font-weight: 800;
  text-align: center;
  letter-spacing: -1px;
  margin-bottom: 16px;
}

.updates-section h2 em {
  font-style: normal;
  background: linear-gradient(135deg, #6366f1, #10b981);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.updates-subtitle {
  text-align: center;
  color: #64748b;
  font-size: 18px;
  max-width: 640px;
  margin: 0 auto 56px;
  line-height: 1.6;
}

.updates-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-gap: 32px;
  gap: 32px;
  max-width: 1000px;
  margin: 0 auto;
}

.updates-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.updates-card-label {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: #6366f1;
  text-align: center;
}

.chat-preview-compact {
  max-width: none;
  margin: 0;
  padding: 20px;
}

.updates-footnote {
  max-width: 640px;
  margin: 48px auto 0;
  text-align: center;
  color: #64748b;
  font-size: 15px;
  line-height: 1.6;
  font-style: italic;
}

/* Hero tertiary link */
.hero-tertiary {
  margin-top: 32px;
  color: rgba(255, 255, 255, 0.65);
  font-size: 14px;
  text-decoration: none;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.3);
  padding-bottom: 2px;
  transition: color 0.2s, border-color 0.2s;
}

.hero-tertiary:hover {
  color: #a5b4fc;
  border-color: #a5b4fc;
}

/* B2B Supplement Audit section */
.b2b-section {
  padding: 100px 48px;
  background: linear-gradient(135deg, #0a0a1a 0%, #1a1a3e 50%, #0f2347 100%);
  color: white;
  position: relative;
  overflow: hidden;
}

.b2b-section::before {
  content: '';
  position: absolute;
  top: -30%;
  right: -10%;
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.12) 0%, transparent 70%);
  border-radius: 50%;
}

.b2b-inner {
  max-width: 1100px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
  text-align: center;
}

.b2b-tag {
  display: inline-block;
  padding: 8px 20px;
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.35);
  border-radius: 100px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: #6ee7b7;
  margin-bottom: 28px;
}

.b2b-section h2 {
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 800;
  letter-spacing: -1.5px;
  margin-bottom: 24px;
  line-height: 1.1;
}

.b2b-section h2 em {
  font-style: normal;
  background: linear-gradient(135deg, #10b981, #6ee7b7);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.b2b-lede {
  color: rgba(255, 255, 255, 0.75);
  font-size: 19px;
  line-height: 1.6;
  max-width: 720px;
  margin: 0 auto 56px;
}

.b2b-compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-gap: 24px;
  gap: 24px;
  margin-bottom: 56px;
  text-align: left;
}

.b2b-col {
  padding: 36px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.03);
}

.b2b-col-us {
  border-color: rgba(16, 185, 129, 0.45);
  background: rgba(16, 185, 129, 0.06);
  box-shadow: 0 0 40px rgba(16, 185, 129, 0.12);
}

.b2b-col-label {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
  margin-bottom: 16px;
}

.b2b-col-us .b2b-col-label {
  color: #6ee7b7;
}

.b2b-col-headline {
  font-size: 80px;
  font-weight: 800;
  letter-spacing: -3px;
  line-height: 1;
  color: rgba(255, 255, 255, 0.85);
}

.b2b-col-us .b2b-col-headline {
  background: linear-gradient(135deg, #10b981, #6ee7b7);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.b2b-col-headline span {
  font-size: 48px;
  font-weight: 700;
  margin-left: 4px;
}

.b2b-col-sub {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.55);
  margin-top: 4px;
  margin-bottom: 28px;
}

.b2b-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.b2b-col li {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.8);
  padding-left: 24px;
  position: relative;
}

.b2b-col-them li::before {
  content: '✕';
  position: absolute;
  left: 0;
  color: rgba(239, 68, 68, 0.7);
  font-weight: 700;
}

.b2b-col-us li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: #10b981;
  font-weight: 700;
}

.b2b-trust {
  color: rgba(255, 255, 255, 0.7);
  font-size: 16px;
  line-height: 1.7;
  max-width: 760px;
  margin: 0 auto 40px;
}

.b2b-trust strong {
  color: white;
}

.b2b-cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.b2b-cta-sub {
  color: rgba(255, 255, 255, 0.5);
  font-size: 14px;
  margin: 0;
}

/* Footer */
.landing-footer {
  padding: 48px 24px;
  background: #0f0f23;
  color: rgba(255, 255, 255, 0.55);
  font-size: 14px;
}

.landing-footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-areas:
    'brand nav'
    'credit credit';
  grid-gap: 24px;
  gap: 24px;
  align-items: center;
}

.landing-footer-brand {
  grid-area: brand;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.landing-footer strong {
  color: white;
  font-size: 18px;
  letter-spacing: -0.01em;
}

.landing-footer-nav {
  grid-area: nav;
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  justify-content: flex-end;
}

.landing-footer-nav a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  font-size: 14px;
  transition: color 0.15s;
}

.landing-footer-nav a:hover {
  color: white;
}

.landing-footer-credit {
  grid-area: credit;
  margin: 0;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.4);
  font-size: 13px;
}

@media (max-width: 640px) {
  .landing-footer-inner {
    grid-template-columns: 1fr;
    grid-template-areas:
      'brand'
      'nav'
      'credit';
    text-align: center;
  }
  .landing-footer-nav {
    justify-content: center;
  }
}

/* Login page */
.login-page {
  min-height: 100vh;
  background:
    radial-gradient(ellipse at top, rgba(79, 70, 229, 0.22), transparent 55%),
    radial-gradient(ellipse at bottom, rgba(16, 185, 129, 0.12), transparent 55%),
    linear-gradient(180deg, #0a0f1f 0%, #0f172a 50%, #131a2e 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-6) var(--space-4);
  position: relative;
}

.login-back {
  position: absolute;
  top: var(--space-6);
  left: var(--space-6);
  color: rgba(255, 255, 255, 0.55);
  font-size: 13px;
  text-decoration: none;
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius);
  transition: color var(--t-fast), background var(--t-fast);
}

.login-back:hover {
  color: white;
  background: rgba(255, 255, 255, 0.06);
}

.login-card {
  background: var(--color-surface);
  border-radius: var(--radius-xl);
  padding: 40px;
  width: 100%;
  max-width: 420px;
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(255, 255, 255, 0.04) inset;
  position: relative;
}

.login-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 28px;
}

.login-logo {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--color-brand-indigo) 0%, #312e81 100%);
  color: white;
  font-weight: 800;
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  letter-spacing: -1px;
  box-shadow: 0 6px 16px rgba(79, 70, 229, 0.4);
  flex-shrink: 0;
}

.login-brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.login-brand-text strong {
  font-size: 16px;
  font-weight: 700;
  color: var(--color-text);
  letter-spacing: -0.01em;
}

.login-brand-text span {
  font-size: 12px;
  color: var(--color-text-3);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-top: 2px;
}

.login-card h1 {
  font-size: 26px;
  font-weight: 700;
  margin-bottom: 6px;
  letter-spacing: -0.02em;
  color: var(--color-text);
}

.login-card p {
  color: var(--color-text-2);
  margin-bottom: 24px;
  font-size: 14.5px;
}

.login-field {
  display: block;
  margin-bottom: 18px;
}

.login-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--color-text-2);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.login-input {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--color-border-strong);
  border-radius: var(--radius);
  font-size: 16px;
  outline: none;
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
  background: var(--color-surface);
  color: var(--color-text);
}

.login-input::placeholder {
  color: var(--color-text-3);
}

.login-input:focus {
  border-color: var(--color-brand-indigo);
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.12);
}

.login-btn {
  width: 100%;
  padding: 12px;
  background: var(--color-brand-deep);
  color: white;
  border: none;
  border-radius: var(--radius);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: background var(--t-fast), transform var(--t-fast);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
}

.login-btn:hover:not(:disabled) {
  background: #1e293b;
}

.login-btn:active:not(:disabled) {
  transform: translateY(1px);
}

.login-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.login-spinner {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: white;
  animation: spin 0.7s linear infinite;
}

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

.login-error {
  margin-top: 14px;
  padding: 10px 14px;
  background: var(--color-brand-red-soft);
  border: 1px solid #fecaca;
  color: #991b1b;
  border-radius: var(--radius);
  font-size: 13.5px;
}

.login-help {
  margin-top: 24px;
  text-align: center;
  font-size: 13px;
  color: var(--color-text-3);
}

.login-help a {
  color: var(--color-brand-indigo);
}

/* Dashboard styles */
.dashboard-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100vh;
  background: #f5f5f5;
  color: #64748b;
}

.dashboard-nav {
  position: -webkit-sticky;
  position: sticky;
  top: 0;
  z-index: 50;
  background: #0f172a;
  color: white;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.dashboard-brand {
  display: flex;
  align-items: baseline;
  gap: 8px;
  color: white;
  text-decoration: none;
}

.dashboard-brand strong {
  font-size: 18px;
  letter-spacing: -0.01em;
}

.dashboard-brand span {
  opacity: 0.55;
  font-size: 13px;
}

.dashboard-nav-links {
  margin-left: auto;
  display: flex;
  gap: 4px;
  align-items: center;
  flex-wrap: wrap;
}

.dashboard-nav-links a {
  color: white;
  text-decoration: none;
  opacity: 0.7;
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 14px;
  transition: background 0.15s, opacity 0.15s;
  min-height: 36px;
  display: inline-flex;
  align-items: center;
}

.dashboard-nav-links a:hover {
  opacity: 1;
  background: rgba(255, 255, 255, 0.06);
}

.dashboard-nav-links a.dashboard-nav-active {
  opacity: 1;
  background: rgba(255, 255, 255, 0.12);
  font-weight: 500;
}

.logout-btn {
  padding: 8px 14px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: white;
  border-radius: 6px;
  font-size: 13px;
  cursor: pointer;
  min-height: 36px;
}

.logout-btn:hover {
  background: rgba(255, 255, 255, 0.12);
}

.dashboard-main {
  padding: var(--space-6);
  max-width: 1280px;
  margin: 0 auto;
  min-height: calc(100vh - 60px);
  background: var(--color-bg);
}

/* ==================================================
   Dashboard design system — pages, cards, lists,
   buttons, badges, inputs. Use these on every
   dashboard surface for visual consistency.
   ================================================== */

.dash-page-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: var(--space-4);
  margin-bottom: var(--space-6);
}

.dash-page-title {
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--color-text);
  margin: 0;
}

.dash-page-sub {
  font-size: 14px;
  color: var(--color-text-2);
  margin-top: 4px;
}

.dash-page-actions {
  display: flex;
  gap: var(--space-2);
  flex-wrap: wrap;
}

/* Card surfaces */
.dash-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  box-shadow: var(--shadow-xs);
}

.dash-card-pad-lg {
  padding: var(--space-6);
}

.dash-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-4);
}

.dash-card-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--color-text);
  margin: 0;
}

/* Hero stat card (used on dashboard root for the training tile) */
.dash-hero {
  display: block;
  background: linear-gradient(135deg, var(--color-brand-deep) 0%, #1e1b4b 100%);
  color: white;
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  text-decoration: none;
  margin-bottom: var(--space-6);
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
  transition: box-shadow var(--t), transform var(--t);
}
.dash-hero:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
  color: white;
}
.dash-hero::before {
  content: '';
  position: absolute;
  top: -40%;
  right: -10%;
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, rgba(79, 70, 229, 0.35) 0%, transparent 60%);
  border-radius: 50%;
  pointer-events: none;
}
.dash-hero-inner {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: var(--space-6);
  flex-wrap: wrap;
}
.dash-hero-label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  opacity: 0.65;
  margin: 0;
}
.dash-hero-number {
  font-size: 40px;
  font-weight: 700;
  line-height: 1;
  margin: 8px 0 4px;
  letter-spacing: -0.02em;
}
.dash-hero-caption {
  font-size: 13px;
  opacity: 0.7;
  margin: 0;
}
.dash-hero-side {
  text-align: right;
}
.dash-hero-side .dash-hero-number {
  font-size: 28px;
}
.dash-hero-chips {
  display: flex;
  gap: 8px;
  margin-top: 14px;
  flex-wrap: wrap;
}
.dash-hero-chip {
  background: rgba(255, 255, 255, 0.1);
  color: white;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  font-size: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

/* Filter pill row */
.dash-filter-row {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.dash-filter {
  padding: 6px 12px;
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  color: var(--color-text-2);
  border-radius: var(--radius-pill);
  font-size: 13px;
  cursor: pointer;
  transition: background var(--t-fast), color var(--t-fast), border-color var(--t-fast);
}
.dash-filter:hover {
  background: var(--color-surface-2);
  color: var(--color-text);
}
.dash-filter-active {
  background: var(--color-brand-deep);
  color: white;
  border-color: var(--color-brand-deep);
}
.dash-filter-active:hover {
  background: var(--color-brand-deep-2);
  color: white;
}

/* List of items */
.dash-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.dash-list-item {
  display: block;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-4) var(--space-5);
  text-decoration: none;
  color: inherit;
  transition: box-shadow var(--t-fast), border-color var(--t-fast), transform var(--t-fast);
}
.dash-list-item:hover {
  box-shadow: var(--shadow-sm);
  border-color: var(--color-border-strong);
  color: inherit;
  transform: translateY(-1px);
}
.dash-list-item-attention {
  border-color: var(--color-brand-amber);
  background: linear-gradient(180deg, #fffbeb 0%, var(--color-surface) 60%);
}

.dash-list-item-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-3);
  flex-wrap: wrap;
}
.dash-list-item-main {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  flex-wrap: wrap;
  min-width: 0;
}
.dash-list-item-meta {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-size: 13px;
  color: var(--color-text-3);
}
.dash-list-item-preview {
  margin-top: var(--space-2);
  font-size: 14px;
  color: var(--color-text-2);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.dash-list-item-name {
  font-weight: 600;
  color: var(--color-text);
}
.dash-list-item-aux {
  color: var(--color-text-2);
  font-size: 14px;
}

/* Status dot (next to list-item names) */
.dash-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--color-text-3);
  flex-shrink: 0;
}
.dash-dot-success { background: var(--color-brand-emerald); }
.dash-dot-warning { background: var(--color-brand-amber); }
.dash-dot-info    { background: #3b82f6; }
.dash-dot-purple  { background: #8b5cf6; }
.dash-dot-muted   { background: var(--color-text-3); }

/* Badges */
.dash-badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.02em;
  background: var(--color-surface-2);
  color: var(--color-text-2);
  border: 1px solid var(--color-border);
  white-space: nowrap;
}
.dash-badge-success { background: #dcfce7; color: #166534; border-color: #bbf7d0; }
.dash-badge-warning { background: #fef3c7; color: #92400e; border-color: #fde68a; }
.dash-badge-danger  { background: #fee2e2; color: #991b1b; border-color: #fecaca; }
.dash-badge-info    { background: #dbeafe; color: #1e40af; border-color: #bfdbfe; }
.dash-badge-purple  { background: #ede9fe; color: #6b21a8; border-color: #ddd6fe; }

.dash-money {
  font-weight: 600;
  color: var(--color-brand-emerald-hover);
}

/* Buttons */
.dash-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 9px 16px;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid transparent;
  transition: background var(--t-fast), color var(--t-fast), border-color var(--t-fast), transform var(--t-fast);
  min-height: 38px;
  text-decoration: none;
}
.dash-btn:hover:not(:disabled) {
  transform: translateY(-1px);
}
.dash-btn:active:not(:disabled) {
  transform: translateY(0);
}
.dash-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.dash-btn-sm {
  padding: 6px 12px;
  font-size: 13px;
  min-height: 32px;
}

.dash-btn-primary {
  background: var(--color-brand-deep);
  color: white;
}
.dash-btn-primary:hover:not(:disabled) {
  background: var(--color-brand-deep-2);
  color: white;
}

.dash-btn-success {
  background: var(--color-brand-emerald-hover);
  color: white;
}
.dash-btn-success:hover:not(:disabled) {
  background: #047857;
  color: white;
}

.dash-btn-danger {
  background: var(--color-brand-red-soft);
  color: #991b1b;
  border-color: #fecaca;
}
.dash-btn-danger:hover:not(:disabled) {
  background: #fee2e2;
}

.dash-btn-secondary {
  background: var(--color-surface);
  color: var(--color-text);
  border-color: var(--color-border-strong);
}
.dash-btn-secondary:hover:not(:disabled) {
  background: var(--color-surface-2);
  border-color: var(--color-text-3);
}

.dash-btn-ghost {
  background: transparent;
  color: var(--color-text-2);
}
.dash-btn-ghost:hover:not(:disabled) {
  background: var(--color-surface-2);
  color: var(--color-text);
}

/* Inputs */
.dash-input {
  width: 100%;
  padding: 9px 12px;
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius);
  font-size: 14px;
  background: var(--color-surface);
  color: var(--color-text);
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
  outline: none;
}
.dash-input:focus {
  border-color: var(--color-brand-indigo);
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.12);
}
.dash-input::placeholder {
  color: var(--color-text-3);
}
textarea.dash-input {
  min-height: 80px;
  resize: vertical;
  font-family: inherit;
}

/* Empty state */
.dash-empty {
  text-align: center;
  padding: 64px 24px;
  background: var(--color-surface);
  border: 1px dashed var(--color-border-strong);
  border-radius: var(--radius-lg);
}
.dash-empty-icon {
  font-size: 40px;
  margin-bottom: var(--space-3);
  opacity: 0.8;
}
.dash-empty-title {
  font-size: 17px;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 6px;
}
.dash-empty-text {
  color: var(--color-text-2);
  font-size: 14px;
  max-width: 360px;
  margin: 0 auto;
}

/* Loading skeleton */
.dash-skeleton {
  background: linear-gradient(
    90deg,
    var(--color-surface-2) 0%,
    rgba(226, 232, 240, 0.5) 50%,
    var(--color-surface-2) 100%
  );
  background-size: 200% 100%;
  border-radius: var(--radius);
  animation: dash-shimmer 1.4s ease-in-out infinite;
}
.dash-skeleton-line {
  height: 16px;
  margin-bottom: 8px;
}
.dash-skeleton-line.short { width: 40%; }
.dash-skeleton-line.medium { width: 70%; }
@keyframes dash-shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* Small back-link (used on detail pages) */
.dash-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--color-text-2);
  font-size: 13.5px;
  margin-bottom: var(--space-4);
  text-decoration: none;
  padding: 6px 10px;
  margin-left: -10px;
  border-radius: var(--radius);
  transition: background var(--t-fast), color var(--t-fast);
}
.dash-back:hover {
  color: var(--color-text);
  background: var(--color-surface-2);
}

/* Training page grid (image left, Q&A right) */
.dash-train-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-gap: var(--space-5);
  gap: var(--space-5);
  align-items: start;
}
@media (max-width: 900px) {
  .dash-train-grid {
    grid-template-columns: 1fr;
  }
}
.dash-train-img {
  width: 100%;
  border-radius: var(--radius);
  display: block;
}
.dash-train-img-error {
  height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-brand-red-soft);
  border-radius: var(--radius);
  color: #991b1b;
}
.dash-train-img-meta {
  margin-top: var(--space-3);
  font-size: 12px;
  color: var(--color-text-3);
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.dash-train-img-meta a {
  color: var(--color-text-3);
  text-decoration: underline;
}
.dash-train-loading {
  min-height: 220px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.dash-train-prompt {
  font-size: 11px;
  font-weight: 600;
  color: var(--color-text-3);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin: 0 0 var(--space-4);
}
.dash-train-qs {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}
.dash-train-q {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: var(--color-text);
  margin-bottom: 6px;
}
.dash-train-notes-label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  color: var(--color-text-2);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin: var(--space-5) 0 6px;
}
.dash-train-actions {
  display: flex;
  gap: var(--space-2);
  margin-top: var(--space-5);
}

/* Audit detail */
.dash-detail-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: var(--space-6);
  flex-wrap: wrap;
}
.dash-stat-row {
  display: flex;
  gap: var(--space-6);
  flex-wrap: wrap;
}
.dash-stat {
  text-align: right;
}
.dash-stat-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--color-text-3);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.dash-stat-value {
  font-size: 22px;
  font-weight: 700;
  color: var(--color-text);
  letter-spacing: -0.01em;
  margin-top: 2px;
}

.dash-suggestion-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: var(--space-4);
  flex-wrap: wrap;
}
.dash-suggestion-tags {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}
.dash-suggestion-figures {
  display: flex;
  gap: var(--space-4);
  margin-top: var(--space-3);
  font-size: 13px;
  color: var(--color-text-2);
  flex-wrap: wrap;
}
.dash-suggestion-actions {
  display: flex;
  gap: var(--space-2);
  margin-top: var(--space-4);
  justify-content: flex-end;
  flex-wrap: wrap;
}

/* Two-column detail layout */
.dash-detail {
  display: grid;
  grid-template-columns: 1fr 320px;
  grid-gap: var(--space-6);
  gap: var(--space-6);
  align-items: start;
}
.dash-detail-aside {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  position: -webkit-sticky;
  position: sticky;
  top: 78px;
}
@media (max-width: 900px) {
  .dash-detail {
    grid-template-columns: 1fr;
  }
  .dash-detail-aside {
    position: static;
  }
}

.dash-aside-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--color-text-3);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 8px;
}
.dash-aside-value {
  font-size: 16px;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 4px;
  letter-spacing: -0.01em;
}
.dash-aside-line {
  font-size: 14px;
  color: var(--color-text-2);
  margin-bottom: 2px;
}
.dash-aside-flag {
  margin-top: var(--space-3);
  padding: 8px 12px;
  background: var(--color-brand-amber-soft);
  color: #92400e;
  border-radius: var(--radius);
  font-size: 13px;
  font-weight: 500;
}

/* Conversation thread */
.dash-thread {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}
.dash-thread-row {
  display: flex;
}
.dash-thread-row-left  { justify-content: flex-start; }
.dash-thread-row-right { justify-content: flex-end; }
.dash-thread-bubble {
  max-width: 72%;
  padding: 12px 16px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  background: var(--color-surface);
}
.dash-thread-bubble-user {
  background: var(--color-surface);
  border-bottom-left-radius: 4px;
}
.dash-thread-bubble-mark {
  background: #dcfce7;
  border-color: #bbf7d0;
  border-bottom-right-radius: 4px;
}
.dash-thread-bubble-pending {
  background: #fef3c7;
  border-color: var(--color-brand-amber);
  border-bottom-right-radius: 4px;
}
.dash-thread-meta {
  font-size: 11.5px;
  color: var(--color-text-3);
  margin-bottom: 6px;
  display: flex;
  gap: 4px;
}
.dash-thread-meta-pending {
  color: #b45309;
  font-weight: 600;
}
.dash-thread-text {
  margin: 0;
  white-space: pre-wrap;
  font-size: 14px;
  line-height: 1.5;
  color: var(--color-text);
}
.dash-thread-actions {
  display: flex;
  gap: var(--space-2);
  margin-top: var(--space-3);
}

@media (max-width: 720px) {
  .dash-thread-bubble {
    max-width: 90%;
  }
}

/* Phone tweaks */
@media (max-width: 720px) {
  .dash-card,
  .dash-card-pad-lg {
    padding: var(--space-4);
    border-radius: var(--radius);
  }
  .dash-hero {
    padding: var(--space-5);
  }
  .dash-page-title {
    font-size: 22px;
  }
  .dash-page-header {
    align-items: flex-start;
  }
  .dash-list-item {
    padding: var(--space-4);
  }
}

@media (max-width: 720px) {
  .dashboard-nav {
    padding: 10px 14px;
    gap: 10px;
  }
  .dashboard-brand strong {
    font-size: 16px;
  }
  .dashboard-brand span {
    display: none;
  }
  .dashboard-nav-links {
    width: 100%;
    margin-left: 0;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 2px;
    flex-wrap: nowrap;
  }
  .dashboard-nav-links::-webkit-scrollbar {
    display: none;
  }
  .dashboard-nav-links a {
    padding: 8px 12px;
    white-space: nowrap;
    font-size: 13px;
  }
  .dashboard-main {
    padding: 14px;
  }
}

/* Walkaround page */
.walk-shell {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding-bottom: 200px;
}

.walk-setup {
  max-width: 480px;
  margin: 48px auto;
  background: white;
  border-radius: 16px;
  padding: 32px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.06);
}

.walk-setup h1 {
  font-size: 28px;
  font-weight: 800;
  margin-bottom: 8px;
}

.walk-setup p {
  color: #64748b;
  margin-bottom: 16px;
}

.walk-help {
  font-size: 13px;
}

.walk-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 12px 4px;
}

.walk-title {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.5px;
}

.walk-sub {
  font-size: 13px;
  color: #64748b;
  margin-top: 2px;
}

.walk-link {
  background: none;
  border: none;
  color: #4f46e5;
  cursor: pointer;
  text-decoration: underline;
  font-size: 13px;
  padding: 0;
}

.walk-status-pill {
  padding: 4px 12px;
  border-radius: 100px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.walk-status-active {
  background: #dcfce7;
  color: #166534;
}

.walk-status-done {
  background: #dbeafe;
  color: #1e40af;
}

.walk-status-idle {
  background: #f1f5f9;
  color: #475569;
}

.walk-error {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #991b1b;
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 14px;
}

.walk-empty {
  color: #64748b;
  font-style: italic;
  padding: 24px;
  text-align: center;
}

.walk-input {
  width: 100%;
  padding: 14px 16px;
  border: 2px solid #e2e8f0;
  border-radius: 10px;
  font-size: 16px;
  outline: none;
  margin-bottom: 12px;
}

.walk-input:focus {
  border-color: #6366f1;
}

.walk-input-text {
  flex: 1 1;
  margin-bottom: 0;
  padding: 10px 14px;
  font-size: 15px;
}

.walk-btn-primary {
  padding: 12px 22px;
  background: linear-gradient(135deg, #6366f1, #4f46e5);
  color: white;
  border: none;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
}

.walk-btn-primary:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.walk-btn-block {
  width: 100%;
  padding: 16px;
  font-size: 17px;
}

.walk-btn-secondary {
  padding: 10px 16px;
  background: white;
  border: 1px solid #e2e8f0;
  color: #1a1a2e;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
}

.walk-btn-secondary:hover {
  border-color: #6366f1;
  color: #4f46e5;
}

.walk-btn-finalize {
  padding: 12px 22px;
  background: linear-gradient(135deg, #10b981, #059669);
  color: white;
  border: none;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
}

.walk-btn-finalize:disabled {
  opacity: 0.5;
}

.walk-log {
  background: white;
  border-radius: 12px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.walk-bubble {
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 14px;
  line-height: 1.45;
  max-width: 95%;
}

.walk-bubble-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
  opacity: 0.6;
}

.walk-bubble-photo {
  background: #fef3c7;
  align-self: flex-start;
  border-bottom-left-radius: 2px;
}

.walk-bubble-op {
  background: #dcfce7;
  align-self: flex-end;
  border-bottom-right-radius: 2px;
}

.walk-bubble-mark {
  background: #ede9fe;
  align-self: flex-start;
  border-bottom-left-radius: 2px;
}

.walk-bubble-hidden {
  margin-top: 6px;
  font-size: 12px;
  color: #92400e;
  font-style: italic;
}

.walk-bubble-question {
  margin-top: 4px;
  font-size: 12px;
  color: #1e40af;
}

.walk-lesson-badge {
  font-size: 11px;
  color: #15803d;
  font-weight: 500;
}

.walk-live {
  border-top: 2px solid #ef4444;
  padding-top: 8px;
}

.walk-summary {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 16px;
  margin-top: 12px;
}

.walk-summary pre {
  background: white;
  border-radius: 8px;
  padding: 12px;
  white-space: pre-wrap;
  word-wrap: break-word;
  font-family: 'SF Mono', Menlo, Consolas, monospace;
  font-size: 12.5px;
  line-height: 1.5;
  margin: 8px 0 12px;
  max-height: 540px;
  overflow-y: auto;
}

.walk-downloads {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.walk-composer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: white;
  border-top: 1px solid #e2e8f0;
  padding: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  z-index: 50;
  box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.06);
}

.walk-camera-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  color: #1a1a2e;
}

.walk-call-btn {
  padding: 12px 18px;
  background: linear-gradient(135deg, #10b981, #059669);
  border: none;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  color: white;
  -moz-user-select: none;
       user-select: none;
  -webkit-user-select: none;
  white-space: nowrap;
}

.walk-call-on {
  background: linear-gradient(135deg, #ef4444, #dc2626);
  animation: pulse 1.5s infinite;
}

.walk-operator-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 16px;
}

.walk-operator-btn {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  padding: 18px 22px;
  border-radius: 12px;
  background: linear-gradient(135deg, #6366f1, #4f46e5);
  color: white;
  border: none;
  cursor: pointer;
  text-align: left;
  transition: transform 0.15s;
}

.walk-operator-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 24px rgba(99, 102, 241, 0.35);
}

.walk-operator-name {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.3px;
}

.walk-operator-phone {
  font-size: 12px;
  opacity: 0.75;
  font-family: 'SF Mono', Menlo, Consolas, monospace;
}

/* ==================================================
   Responsive breakpoints
   - 768px: tablet / small laptop
   - 480px: phone
   Goal: every page usable + readable on a phone, with
   touch targets ≥44px and no horizontal scrolling.
   ================================================== */

@media (max-width: 768px) {
  /* --- Landing page --- */
  .features-grid {
    grid-template-columns: 1fr;
  }
  .stats-bar {
    flex-direction: column;
    gap: 24px;
  }
  .hero-nav {
    padding: 14px 18px;
  }
  .hero-logo {
    font-size: 18px;
  }
  .hero-content {
    padding: 0 20px 48px;
  }
  .hero h1 {
    font-size: clamp(32px, 8vw, 56px);
    line-height: 1.1;
  }
  .hero-subtitle {
    font-size: 16px;
  }
  .hero-cta {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }
  .btn-primary,
  .btn-secondary {
    width: 100%;
    justify-content: center;
    min-height: 48px;
  }
  .features,
  .how-it-works,
  .vda-section,
  .chat-section,
  .updates-section,
  .b2b-section {
    padding: 56px 20px;
  }
  .features h2,
  .vda-section h2,
  .chat-section h2,
  .updates-section h2,
  .b2b-section h2,
  .how-it-works h2 {
    font-size: clamp(26px, 6vw, 40px);
  }
  .step {
    gap: 16px;
  }
  .updates-grid {
    grid-template-columns: 1fr;
  }
  .b2b-compare {
    grid-template-columns: 1fr;
  }
  .b2b-col-headline {
    font-size: 56px;
  }
  .vda-skills {
    flex-direction: column;
    gap: 10px;
  }
  .landing-footer {
    padding: 32px 20px;
    text-align: center;
  }

  /* --- Walkaround (text + call modes) --- */
  .walk-shell {
    padding: 0 4px 220px;
    gap: 12px;
  }
  .walk-header {
    flex-wrap: wrap;
    gap: 8px;
  }
  .walk-title {
    font-size: 20px;
  }
  .walk-setup {
    margin: 24px auto;
    padding: 24px 20px;
  }
  .walk-setup h1 {
    font-size: 24px;
  }
  .walk-log {
    padding: 12px;
    border-radius: 10px;
  }
  .walk-bubble {
    max-width: 100%;
  }
  .walk-summary {
    padding: 12px;
  }
  .walk-summary pre {
    font-size: 11.5px;
    padding: 10px;
    max-height: 360px;
  }
  .walk-composer {
    padding: 10px 10px calc(10px + env(safe-area-inset-bottom));
    gap: 6px;
  }
  .walk-camera-btn,
  .walk-call-btn,
  .walk-btn-primary,
  .walk-btn-finalize {
    padding: 11px 14px;
    font-size: 13px;
    min-height: 44px;
  }
  .walk-input-text {
    flex: 1 1 100%;
    min-width: 0;
    padding: 11px 12px;
    font-size: 16px; /* prevents iOS zoom on focus */
  }
}

@media (max-width: 480px) {
  /* --- Landing fine-tune for narrow phones --- */
  .hero-nav {
    padding: 12px 14px;
  }
  .hero-login-btn {
    padding: 8px 14px;
    font-size: 13px;
  }
  .hero-content {
    padding: 0 16px 40px;
  }
  .features,
  .how-it-works,
  .vda-section,
  .chat-section,
  .updates-section,
  .b2b-section {
    padding: 48px 16px;
  }
  .b2b-col-headline {
    font-size: 44px;
  }
  .b2b-col {
    padding: 20px 18px;
  }
  .feature-card {
    padding: 22px 18px;
  }
  .chat-preview,
  .chat-preview-compact {
    padding: 14px;
  }
  .chat-bubble {
    max-width: 92%;
  }

  /* --- Walkaround phone tune --- */
  .walk-shell {
    padding: 0 2px 240px;
  }
  .walk-header {
    padding: 8px 4px;
  }
  .walk-title {
    font-size: 18px;
  }
  .walk-composer {
    padding: 8px 8px calc(10px + env(safe-area-inset-bottom));
  }
  .walk-camera-btn,
  .walk-call-btn,
  .walk-btn-primary,
  .walk-btn-finalize {
    padding: 10px 12px;
    font-size: 13px;
    flex-grow: 1;
    flex-shrink: 1;
    flex-basis: calc(50% - 4px);
    justify-content: center;
  }
  .walk-call-btn {
    flex: 1 1 100%;
  }
  .walk-summary pre {
    font-size: 11px;
  }
  .walk-downloads {
    flex-direction: column;
  }
  .walk-downloads .walk-btn-secondary {
    width: 100%;
    text-align: center;
  }

  /* --- Login / auth --- */
  .login-card {
    padding: 28px 22px;
    margin: 24px 12px;
  }
}

