/* PawLogic AI - Searce-Inspired High-Impact Clean Aesthetic */
/* Fonts (Bagel Fat One, Figtree) are loaded in index.html */

:root {
  /* Searce & Canine Color Palette */
  --bg-white: #ffffff;
  --bg-surface: #f8fafc;
  --bg-card: #ffffff;
  --bg-subtle: #f1f5f9;
  --bg-blue-subtle: #eff6ff;
  --bg-blue-card: #f0f7ff;
  
  --color-navy: #002659;
  --color-navy-dark: #00193d;
  --color-blue-primary: #0064FF;
  --color-blue-hover: #0051CB;
  --color-blue-light: #3b82f6;
  --color-blue-pale: #dbeafe;
  
  --color-coral: #E53935;
  --color-amber: #f59e0b;
  --color-emerald: #10b981;
  --color-rose: #f43f5e;
  
  --text-main: #002659;
  --text-body: #334155;
  --text-muted: #64748b;
  --text-light: #94a3b8;
  
  --border-light: rgba(0, 38, 89, 0.08);
  --border-blue: rgba(0, 100, 255, 0.2);
  --border-active: #0064FF;
  
  --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-sans: 'Plus Jakarta Sans', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  
  --shadow-sm: 0 2px 8px rgba(0, 38, 89, 0.04);
  --shadow-md: 0 6px 24px rgba(0, 38, 89, 0.07);
  --shadow-lg: 0 14px 40px rgba(0, 38, 89, 0.1);
  --shadow-blue: 0 8px 30px rgba(0, 100, 255, 0.25);
  
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-pill: 9999px;
  --transition: all 0.28s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
  background-color: var(--bg-white);
  color: var(--text-body);
  font-family: var(--font-sans);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Subtle Technical Grid Background (Searce Signature) */
.grid-bg-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.55;
  background-image: 
    linear-gradient(rgba(0, 100, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 100, 255, 0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  background-position: -1px -1px;
  mask-image: linear-gradient(to bottom, #000 65%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, #000 65%, transparent 100%);
  z-index: 0;
}

/* Header */
.app-header {
  position: sticky;
  top: 0;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-light);
  z-index: 1000;
  padding: 1rem 3rem;
  transition: var(--transition);
}

.header-inner {
  max-width: 1440px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
}

.brand-wrapper {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  text-decoration: none;
}

.brand-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, #0064FF, #002659);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  box-shadow: 0 4px 15px rgba(0, 100, 255, 0.35);
  transition: var(--transition);
}

.brand-wrapper:hover .brand-icon {
  transform: scale(1.06) rotate(-5deg);
}

.brand-titles h1 {
  font-family: var(--font-heading);
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--color-navy);
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.brand-titles .ai-badge {
  font-size: 0.65rem;
  background: var(--bg-blue-subtle);
  color: var(--color-blue-primary);
  border: 1px solid var(--border-blue);
  padding: 0.15rem 0.5rem;
  border-radius: var(--radius-pill);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.brand-titles p {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* Searce-Style Navigation Buttons */
.searce-btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-family: var(--font-heading);
  font-size: 0.92rem;
  background-color: var(--color-blue-primary);
  color: #ffffff;
  border: none;
  padding: 0.65rem 1.6rem;
  gap: 0.6rem;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  box-shadow: 0 4px 16px rgba(0, 100, 255, 0.25);
}

.searce-btn-primary:hover {
  background-color: var(--color-blue-hover);
  transform: scale(1.04);
  box-shadow: var(--shadow-blue);
}

.searce-btn-primary .arrow-icon,
.searce-btn-secondary .arrow-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.25s ease;
}

.searce-btn-primary:hover .arrow-icon,
.searce-btn-secondary:hover .arrow-icon {
  transform: translateX(4px);
}

.searce-btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-family: var(--font-heading);
  font-size: 0.92rem;
  background-color: #ffffff;
  color: var(--color-blue-primary);
  border: 1.5px solid var(--color-blue-primary);
  padding: 0.65rem 1.6rem;
  gap: 0.6rem;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
}

.searce-btn-secondary:hover {
  background-color: var(--bg-blue-subtle);
  transform: scale(1.04);
}

/* Dog-Themed Creative Buttons (Bone & Paw) */
.searce-btn-bone {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-family: var(--font-heading);
  font-size: 0.92rem;
  background: linear-gradient(135deg, #ffffff 0%, #fef3c7 100%);
  color: #92400e;
  border: 1.5px solid #f59e0b;
  padding: 0.65rem 1.6rem;
  gap: 0.6rem;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(245, 158, 11, 0.18);
  position: relative;
}

.searce-btn-bone:hover {
  background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
  transform: translateY(-2px) scale(1.04);
  box-shadow: 0 6px 20px rgba(245, 158, 11, 0.28);
  color: #78350f;
}

.searce-btn-bone .bone-icon {
  display: inline-block;
  font-size: 1.15rem;
  transition: transform 0.3s ease;
}

.searce-btn-bone:hover .bone-icon {
  animation: boneWiggle 0.6s ease-in-out infinite alternate;
}

.searce-btn-paw {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-family: var(--font-heading);
  font-size: 0.92rem;
  background: linear-gradient(135deg, #002659 0%, #00193d 100%);
  color: #ffffff;
  border: 1.5px solid #0064FF;
  padding: 0.65rem 1.6rem;
  gap: 0.6rem;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  box-shadow: 0 4px 16px rgba(0, 38, 89, 0.25);
}

.searce-btn-paw:hover {
  background: linear-gradient(135deg, #00193d 0%, #0064FF 100%);
  transform: translateY(-2px) scale(1.04);
  box-shadow: var(--shadow-blue);
}

.searce-btn-paw .paw-icon {
  font-size: 1.15rem;
  transition: transform 0.25s ease;
}

.searce-btn-paw:hover .paw-icon {
  animation: pawTap 0.5s ease-in-out infinite alternate;
}

/* Bone Action Pills Strip */
.pet-quick-actions-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  margin-top: 2rem;
  padding: 1rem 1.25rem;
  background: rgba(0, 100, 255, 0.03);
  border: 1px solid rgba(0, 100, 255, 0.1);
  border-radius: var(--radius-pill);
  width: fit-content;
  max-width: 100%;
}

.action-bar-label {
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--color-navy);
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.bone-action-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: #ffffff;
  border: 1px solid var(--border-light);
  color: var(--color-navy);
  font-family: var(--font-heading);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 0.4rem 0.95rem;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  box-shadow: 0 2px 6px rgba(0, 38, 89, 0.04);
}

.bone-action-pill:hover {
  border-color: var(--color-blue-primary);
  color: var(--color-blue-primary);
  background: var(--bg-blue-subtle);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 100, 255, 0.15);
}

.bone-action-pill .pill-emoji {
  font-size: 1rem;
}

@keyframes boneWiggle {
  0% { transform: rotate(-10deg) scale(1); }
  100% { transform: rotate(15deg) scale(1.15); }
}

@keyframes pawTap {
  0% { transform: scale(1) translateY(0); }
  100% { transform: scale(1.2) translateY(-3px); }
}

@keyframes softFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

/* HERO SECTION (SEARCE STYLE) */
.hero-section {
  position: relative;
  overflow: hidden;
  padding: 5rem 3rem 4rem;
  background: var(--bg-white);
}

.hero-container {
  max-width: 1440px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.hero-tagline-bar {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.hero-ring-icon {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid var(--color-blue-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
}

.hero-tagline-line {
  width: 32px;
  height: 1.5px;
  background: #cbd5e1;
}

.hero-tagline-text {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-weight: 700;
  color: var(--color-blue-primary);
}

.hero-headline {
  font-family: var(--font-heading);
  font-size: clamp(3rem, 7.5vw, 6.5rem);
  line-height: 0.95;
  font-weight: 800;
  letter-spacing: -0.04em;
  margin-bottom: 1.75rem;
}

.hero-headline .text-navy {
  color: var(--color-navy);
  display: block;
}

.hero-headline .text-blue {
  color: var(--color-blue-primary);
  display: block;
  margin-top: 0.1em;
}

.hero-support-clauses {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  font-family: var(--font-sans);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--color-navy);
  margin-bottom: 2.5rem;
}

.support-dot {
  color: var(--color-blue-primary);
}

/* Searce-style 2-column detail & CTA block */
.hero-detail-block {
  display: grid;
  grid-template-columns: 3px 1fr;
  gap: 1.5rem;
  max-width: 820px;
  margin-bottom: 2.5rem;
}

.hero-vertical-bar {
  background: var(--color-blue-primary);
  border-radius: 2px;
  height: 100%;
}

.hero-detail-p {
  font-size: 1.25rem;
  line-height: 1.6;
  color: var(--color-navy);
  font-weight: 500;
}

.hero-cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

/* OUTCOMES MARKETING STRIP (SEARCE "AI IS ABUNDANT. OUTCOMES AREN'T") */
.marketing-outcomes-section {
  background: var(--color-navy);
  color: white;
  padding: 6rem 3rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.outcomes-inner {
  max-width: 1050px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.outcomes-title {
  font-family: var(--font-heading);
  font-size: clamp(2.2rem, 4.5vw, 4rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 1.5rem;
  line-height: 1.15;
}

.outcomes-title .highlight {
  color: #60a5fa;
}

.outcomes-subtitle {
  font-size: 1.25rem;
  color: #cbd5e1;
  max-width: 780px;
  margin: 0 auto 3rem;
  line-height: 1.6;
}

/* Spinning / Rotating Outcome Ticker */
.outcome-ticker-box {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-lg);
  padding: 2rem 2.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.ticker-label {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: #93c5fd;
  font-weight: 700;
}

.ticker-display-word {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 4vw, 3.2rem);
  font-weight: 800;
  color: #ffffff;
  min-height: 1.3em;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.3s ease;
}

.ticker-pills-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  justify-content: center;
}

.ticker-pill {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #e2e8f0;
  padding: 0.4rem 1rem;
  border-radius: var(--radius-pill);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.ticker-pill.active, .ticker-pill:hover {
  background: var(--color-blue-primary);
  border-color: var(--color-blue-primary);
  color: white;
}

/* SQUAD THESIS ("STRATEGY × EXECUTION = SOLVING") */
.squad-section {
  background: var(--bg-surface);
  padding: 5rem 3rem;
  border-bottom: 1px solid var(--border-light);
}

.squad-inner {
  max-width: 1440px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 3.5rem;
  align-items: center;
}

@media (max-width: 1024px) {
  .squad-inner {
    grid-template-columns: 1fr;
  }
}

.squad-title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 3.8vw, 3.4rem);
  font-weight: 800;
  color: var(--color-navy);
  letter-spacing: -0.03em;
  margin-bottom: 1.25rem;
  line-height: 1.1;
}

.squad-title .blue-accent {
  color: var(--color-blue-primary);
}

.squad-lead {
  font-size: 1.1rem;
  color: var(--text-body);
  line-height: 1.65;
  margin-bottom: 2rem;
}

.squad-multiplication-box {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.equation-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--color-navy);
}

.equation-row .symbol {
  color: var(--color-blue-primary);
  font-weight: 800;
  font-size: 1.3rem;
}

.equation-row .result {
  color: var(--color-blue-primary);
  background: var(--bg-blue-subtle);
  padding: 0.2rem 0.75rem;
  border-radius: var(--radius-pill);
}

/* 4-Stage Workflow Slide Graphic (Slide Page 4 Inspired) */
.workflow-stages-graphic {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  position: relative;
}

@media (max-width: 768px) {
  .workflow-stages-graphic {
    grid-template-columns: 1fr 1fr;
  }
}

.stage-card {
  background: #ffffff;
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 1.5rem 1rem;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  position: relative;
}

.stage-card:hover {
  transform: translateY(-5px);
  border-color: var(--color-blue-primary);
  box-shadow: var(--shadow-md);
}

.stage-circle {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 3px solid var(--color-coral);
  color: var(--color-coral);
  margin: 0 auto 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  background: #ffffff;
  box-shadow: 0 4px 14px rgba(229, 57, 53, 0.15);
}

.stage-title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1rem;
  color: var(--color-navy);
  margin-bottom: 0.35rem;
}

.stage-desc {
  font-size: 0.76rem;
  color: var(--text-muted);
}

/* APPLICATION SUITE TABS NAVIGATION */
.app-suite-anchor {
  padding-top: 1rem;
}

.app-tabs-header {
  background: #ffffff;
  border-bottom: 1px solid var(--border-light);
  position: sticky;
  top: 73px;
  z-index: 900;
  padding: 0 3rem;
  box-shadow: 0 2px 10px rgba(0, 38, 89, 0.03);
}

.app-tabs-inner {
  max-width: 1440px;
  margin: 0 auto;
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  padding: 0.6rem 0;
}

.app-tab-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-family: var(--font-heading);
  font-size: 0.92rem;
  font-weight: 600;
  padding: 0.65rem 1.25rem;
  border-radius: var(--radius-pill);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  white-space: nowrap;
  transition: var(--transition);
}

.app-tab-btn:hover {
  background: var(--bg-subtle);
  color: var(--color-navy);
}

.app-tab-btn.active {
  background: var(--color-navy);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(0, 38, 89, 0.2);
}

/* App Main Container */
.app-main-workspace {
  max-width: 1440px;
  margin: 0 auto;
  padding: 3rem 3rem 6rem;
}

.tab-pane {
  display: none;
}
.tab-pane.active {
  display: block;
  animation: fadeIn 0.3s ease-in-out;
}

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

/* CHAT INTERFACE */
.chat-layout {
  display: grid;
  grid-template-columns: 1.45fr 1fr;
  gap: 2rem;
  min-height: 700px;
}

@media (max-width: 1024px) {
  .chat-layout {
    grid-template-columns: 1fr;
  }
}

.chat-main-card {
  background: #ffffff;
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.chat-card-header {
  padding: 1.15rem 1.6rem;
  border-bottom: 1px solid var(--border-light);
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--bg-surface);
}

.chat-messages-container {
  flex: 1;
  overflow-y: auto;
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 1.35rem;
  max-height: 500px;
  background: #fafbfc;
}

.message-bubble-wrapper {
  display: flex;
  gap: 0.85rem;
  max-width: 85%;
}

.message-bubble-wrapper.user {
  align-self: flex-end;
  flex-direction: row-reverse;
}

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

.msg-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.msg-avatar.user-avatar {
  background: var(--color-blue-primary);
  color: white;
}

.msg-avatar.ai-avatar {
  background: linear-gradient(135deg, #002659, #0064FF);
  color: white;
  box-shadow: 0 4px 14px rgba(0, 100, 255, 0.3);
}

.msg-content {
  padding: 1.1rem 1.4rem;
  border-radius: var(--radius-md);
  font-size: 0.92rem;
  line-height: 1.65;
}

.message-bubble-wrapper.user .msg-content {
  background: var(--color-navy);
  color: #ffffff;
  border-bottom-right-radius: 4px;
}

.message-bubble-wrapper.assistant .msg-content {
  background: #ffffff;
  border: 1px solid var(--border-light);
  color: var(--text-body);
  border-bottom-left-radius: 4px;
  box-shadow: var(--shadow-sm);
}

.emergency-alert-banner {
  background: #fef2f2;
  border: 1.5px solid var(--color-coral);
  padding: 0.85rem 1.1rem;
  border-radius: var(--radius-sm);
  color: #991b1b;
  margin-bottom: 0.85rem;
  display: flex;
  gap: 0.6rem;
  font-size: 0.86rem;
  font-weight: 500;
}

.ood-notice-banner {
  background: #fffbeb;
  border: 1.5px solid var(--color-amber);
  padding: 0.85rem 1.1rem;
  border-radius: var(--radius-sm);
  color: #92400e;
  margin-bottom: 0.85rem;
  font-size: 0.86rem;
}

/* Quick Prompts Chips */
.quick-prompts-bar {
  padding: 0.75rem 1.5rem;
  border-top: 1px solid var(--border-light);
  display: flex;
  gap: 0.55rem;
  overflow-x: auto;
  background: #ffffff;
}

.chip-btn {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  color: var(--text-body);
  font-size: 0.76rem;
  padding: 0.4rem 0.9rem;
  border-radius: var(--radius-pill);
  cursor: pointer;
  white-space: nowrap;
  font-weight: 500;
  transition: var(--transition);
}

.chip-btn:hover {
  background: var(--bg-blue-subtle);
  color: var(--color-blue-primary);
  border-color: var(--color-blue-primary);
}

/* Chat Input Bar */
.chat-input-bar {
  padding: 1rem 1.5rem;
  border-top: 1px solid var(--border-light);
  display: flex;
  gap: 0.85rem;
  background: #ffffff;
}

.chat-input-field {
  flex: 1;
  background: var(--bg-surface);
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-pill);
  padding: 0.85rem 1.4rem;
  color: var(--text-main);
  font-family: var(--font-sans);
  font-size: 0.92rem;
  outline: none;
  transition: var(--transition);
}

.chat-input-field:focus {
  border-color: var(--color-blue-primary);
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(0, 100, 255, 0.12);
}

.send-btn {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.85rem 1.5rem;
  border: none;
  border-radius: var(--radius-pill);
  background: var(--color-blue-primary);
  color: #ffffff;
  font-family: var(--font-sans);
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.send-btn:hover:not(:disabled) {
  background: var(--color-navy);
}

.send-btn:disabled {
  opacity: 0.55;
  cursor: wait;
}

.icon-btn {
  flex-shrink: 0;
  width: 2.9rem;
  height: 2.9rem;
  align-self: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid var(--border-light);
  border-radius: 50%;
  background: #ffffff;
  font-size: 1.1rem;
  cursor: pointer;
  transition: var(--transition);
}

.icon-btn:hover:not(:disabled) {
  border-color: var(--color-blue-primary);
}

.icon-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

/* AGENTIC LIVE TRACE SIDEBAR */
.agentic-trace-panel {
  background: #ffffff;
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  box-shadow: var(--shadow-sm);
}

.panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border-light);
  padding-bottom: 0.85rem;
}

.panel-header h3 {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-navy);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.agent-steps-stream {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.agent-step-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 1rem;
  transition: var(--transition);
}

.agent-step-card.active {
  border-color: var(--color-blue-primary);
  background: var(--bg-blue-subtle);
}

.step-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.4rem;
}

.step-title {
  font-family: var(--font-heading);
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--color-navy);
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.step-badge {
  font-size: 0.68rem;
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-pill);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.step-badge.pass { background: #dcfce7; color: #166534; border: 1px solid #bbf7d0; }
.step-badge.warn { background: #fef3c7; color: #92400e; border: 1px solid #fde68a; }
.step-badge.danger { background: #fee2e2; color: #991b1b; border: 1px solid #fecaca; }
.step-badge.active { background: #dbeafe; color: #1e40af; border: 1px solid #bfdbfe; }

.step-body {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 0.4rem;
}

.tag-pill {
  background: #ffffff;
  border: 1px solid var(--border-light);
  padding: 0.2rem 0.55rem;
  border-radius: 6px;
  font-size: 0.7rem;
  color: var(--text-body);
  font-weight: 500;
}

/* TRAINING PLANNER WIZARD & CHECKLIST */
.planner-grid {
  display: grid;
  grid-template-columns: 1fr 1.8fr;
  gap: 2.25rem;
}

@media (max-width: 1024px) {
  .planner-grid {
    grid-template-columns: 1fr;
  }
}

.form-card {
  background: #ffffff;
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
}

.form-title {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--color-navy);
  margin-bottom: 0.45rem;
}

.form-subtitle {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 1.6rem;
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-label {
  display: block;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--color-navy);
  margin-bottom: 0.4rem;
}

.form-control {
  width: 100%;
  background: var(--bg-surface);
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-sm);
  padding: 0.75rem 1rem;
  color: var(--text-main);
  font-family: var(--font-sans);
  font-size: 0.9rem;
  outline: none;
  transition: var(--transition);
}

.form-control:focus {
  border-color: var(--color-blue-primary);
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(0, 100, 255, 0.1);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

/* Plan Output with Interactive Daily Checklist */
.plan-output-card {
  background: #ffffff;
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 1.6rem;
}

.interactive-tracker-banner {
  background: var(--bg-blue-card);
  border: 1.5px solid var(--border-blue);
  border-radius: var(--radius-md);
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.tracker-stats {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.tracker-ring {
  width: 54px;
  height: 54px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tracker-ring svg {
  transform: rotate(-90deg);
}

.tracker-ring-text {
  position: absolute;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 0.9rem;
  color: var(--color-blue-primary);
}

.schedule-card {
  background: #ffffff;
  border: 1.5px solid var(--border-light);
  border-left: 5px solid var(--color-blue-primary);
  border-radius: var(--radius-md);
  padding: 1.25rem 1.5rem;
  transition: var(--transition);
  cursor: pointer;
}

.schedule-card:hover {
  transform: translateX(4px);
  box-shadow: var(--shadow-md);
}

.schedule-card.completed {
  border-left-color: var(--color-emerald);
  background: #f0fdf4;
}

.schedule-checkbox-wrapper {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.custom-checkbox {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  border: 2px solid #cbd5e1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  color: transparent;
  transition: var(--transition);
}

.schedule-card.completed .custom-checkbox {
  background: var(--color-emerald);
  border-color: var(--color-emerald);
  color: white;
}

.schedule-block-name {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--color-navy);
}

.schedule-duration {
  font-size: 0.75rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  padding: 0.2rem 0.65rem;
  border-radius: var(--radius-pill);
  color: var(--text-muted);
  font-weight: 600;
}

.schedule-activity {
  font-weight: 700;
  font-size: 1rem;
  margin: 0.5rem 0 0.35rem;
  color: var(--color-navy);
}

.schedule-details {
  font-size: 0.88rem;
  color: var(--text-body);
  line-height: 1.6;
}

.schedule-reward {
  margin-top: 0.65rem;
  font-size: 0.82rem;
  color: #047857;
  font-weight: 600;
}

/* Weekly Milestones */
.weekly-accordion {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.1rem;
}

.week-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 1.25rem;
}

.week-badge {
  background: var(--bg-blue-subtle);
  color: var(--color-blue-primary);
  border: 1px solid var(--border-blue);
  display: inline-block;
  font-size: 0.75rem;
  padding: 0.2rem 0.65rem;
  border-radius: var(--radius-pill);
  font-weight: 700;
  margin-bottom: 0.6rem;
}

.week-title {
  font-family: var(--font-heading);
  font-size: 0.92rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--color-navy);
}

.week-exercises {
  font-size: 0.8rem;
  color: var(--text-body);
  padding-left: 1.2rem;
  line-height: 1.55;
}

/* NUTRITION & CALORIE CALCULATOR TAB */
.calculator-grid {
  display: grid;
  grid-template-columns: 1fr 1.35fr;
  gap: 2.25rem;
}

@media (max-width: 1024px) {
  .calculator-grid {
    grid-template-columns: 1fr;
  }
}

.caloric-stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.1rem;
  margin-top: 1rem;
}

.caloric-stat-box {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
}

.caloric-stat-box.primary {
  border-color: var(--color-blue-primary);
  background: var(--bg-blue-card);
}

.caloric-number {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--color-blue-primary);
  margin: 0.35rem 0 0.2rem;
}

/* BREED COMPARISON ARENA */
.comparison-arena {
  background: #ffffff;
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  margin-top: 2rem;
  box-shadow: var(--shadow-sm);
}

.comparison-selectors {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

@media (max-width: 768px) {
  .comparison-selectors {
    grid-template-columns: 1fr;
  }
}

.vs-badge {
  background: var(--color-navy);
  color: white;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.15rem;
  margin: 0 auto;
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
}

.comparison-table th, .comparison-table td {
  padding: 1.1rem 1.4rem;
  border-bottom: 1px solid var(--border-light);
}

.comparison-table th {
  font-family: var(--font-heading);
  color: var(--text-muted);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: var(--bg-surface);
}

.comparison-table tr:hover td {
  background: var(--bg-surface);
}

.compare-bar-wrapper {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.compare-meter {
  flex: 1;
  height: 9px;
  background: var(--bg-subtle);
  border-radius: var(--radius-pill);
  overflow: hidden;
}

.compare-meter-fill {
  height: 100%;
  border-radius: var(--radius-pill);
}

/* AKC BREED EXPLORER */
.breeds-header-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.25rem;
  margin-bottom: 2.25rem;
}

.search-box-wrapper {
  display: flex;
  gap: 0.75rem;
  flex: 1;
  max-width: 540px;
}

.group-filter-select {
  background: #ffffff;
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-sm);
  color: var(--text-main);
  padding: 0.75rem 1.1rem;
  font-family: var(--font-sans);
  outline: none;
}

.breeds-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(330px, 1fr));
  gap: 1.6rem;
}

.breed-card {
  background: #ffffff;
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
}

.breed-card:hover {
  transform: translateY(-6px);
  border-color: var(--color-blue-primary);
  box-shadow: var(--shadow-md);
}

.breed-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.breed-name {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--color-navy);
}

.breed-group-badge {
  background: var(--bg-blue-subtle);
  color: var(--color-blue-primary);
  border: 1px solid var(--border-blue);
  font-size: 0.74rem;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-pill);
  font-weight: 700;
}

.breed-temperament {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-style: italic;
  line-height: 1.5;
}

.trait-meters {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem;
  background: var(--bg-surface);
  padding: 0.9rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-light);
}

.meter-item {
  font-size: 0.76rem;
}

.meter-label {
  color: var(--text-muted);
  display: flex;
  justify-content: space-between;
  margin-bottom: 4px;
  font-weight: 600;
}

.meter-bar {
  height: 6px;
  background: #e2e8f0;
  border-radius: var(--radius-pill);
  overflow: hidden;
}

.meter-fill {
  height: 100%;
  background: var(--color-blue-primary);
  border-radius: var(--radius-pill);
}

.health-risks-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.risk-chip {
  background: #fef2f2;
  color: #991b1b;
  border: 1px solid #fecaca;
  font-size: 0.72rem;
  padding: 0.2rem 0.55rem;
  border-radius: 6px;
  font-weight: 500;
}

/* BENCHMARK DASHBOARD */
.benchmark-container {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.stats-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
}

.stat-card {
  background: #ffffff;
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
}

.stat-card-label {
  font-size: 0.78rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 700;
}

.stat-card-value {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 900;
  margin-top: 0.4rem;
  color: var(--color-navy);
}

.stat-card-desc {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 0.3rem;
}

.benchmark-table-card {
  background: #ffffff;
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.table-header-title {
  padding: 1.4rem 2rem;
  border-bottom: 1px solid var(--border-light);
  background: var(--bg-surface);
}

.table-responsive {
  overflow-x: auto;
}

.custom-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.custom-table th {
  background: var(--bg-surface);
  padding: 1rem 1.4rem;
  text-align: left;
  font-family: var(--font-heading);
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom: 1px solid var(--border-light);
}

.custom-table td {
  padding: 1.15rem 1.4rem;
  border-bottom: 1px solid var(--border-light);
  color: var(--text-body);
}

.custom-table tr:hover td {
  background: var(--bg-surface);
}

/* Modals */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 38, 89, 0.4);
  backdrop-filter: blur(8px);
  z-index: 2000;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.modal-overlay.open {
  display: flex;
}

.modal-box {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  max-width: 680px;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
  padding: 2.25rem;
  box-shadow: var(--shadow-lg);
  position: relative;
}

.modal-close-btn {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  background: var(--bg-surface);
  border: none;
  color: var(--color-navy);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  font-weight: 700;
  transition: var(--transition);
}

.modal-close-btn:hover {
  background: var(--color-coral);
  color: white;
}

/* Footer (Searce Professional Tone) */
.app-footer {
  background: var(--color-navy);
  color: #cbd5e1;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 3rem;
  font-size: 0.85rem;
}

.footer-inner {
  max-width: 1440px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.footer-inner a {
  color: #60a5fa;
  text-decoration: none;
}

/* ==========================================================================
   Pet Profile & Health Passport Module
   ========================================================================== */
.avatar-picker-strip {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  padding: 0.4rem;
  background: var(--bg-subtle);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-light);
}

.avatar-option-btn {
  width: 44px;
  height: 44px;
  font-size: 1.5rem;
  border-radius: var(--radius-sm);
  border: 2px solid transparent;
  background: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}

.avatar-option-btn:hover {
  transform: translateY(-2px);
  border-color: var(--color-blue-pale);
}

.avatar-option-btn.active {
  border-color: var(--color-blue-primary);
  background: var(--bg-blue-subtle);
  box-shadow: 0 0 0 3px rgba(0, 100, 255, 0.15);
}

.passport-badge-card {
  background: linear-gradient(135deg, #f0f7ff 0%, #ffffff 100%);
  border: 1.5px solid var(--border-blue);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
}

.passport-badge-card::after {
  content: 'PAWLOGIC PASSPORT';
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: rgba(0, 38, 89, 0.18);
}

.passport-header {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  margin-bottom: 1.25rem;
}

.passport-avatar-bubble {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.2rem;
  border: 2px solid var(--border-blue);
  box-shadow: var(--shadow-sm);
  flex-shrink: 0;
}

.passport-info-primary {
  flex: 1;
}

.passport-pet-name {
  font-family: var(--font-heading);
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--color-navy);
  line-height: 1.2;
}

.passport-pet-breed {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 0.2rem;
}

.passport-status-chip {
  padding: 0.25rem 0.65rem;
  font-size: 0.72rem;
  font-weight: 700;
  border-radius: var(--radius-pill);
  background: rgba(16, 185, 129, 0.1);
  color: var(--color-emerald);
  border: 1px solid rgba(16, 185, 129, 0.3);
  letter-spacing: 0.04em;
}

.passport-meta-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  padding: 0.9rem;
  margin-bottom: 1rem;
}

.passport-meta-item {
  display: flex;
  flex-direction: column;
}

.meta-label {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
}

.meta-value {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--color-navy);
  margin-top: 0.15rem;
}

.passport-tags-row {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.passport-tag {
  font-size: 0.76rem;
  background: white;
  padding: 0.3rem 0.65rem;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-light);
  color: var(--text-body);
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.weight-growth-module {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 1.15rem;
}

.weight-log-form-bar {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 0.9rem;
}

.weight-checkpoints-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  max-height: 200px;
  overflow-y: auto;
}

.weight-checkpoint-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.55rem 0.85rem;
  background: white;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
}

.checkpoint-weight-badge {
  font-weight: 700;
  color: var(--color-blue-primary);
  background: var(--bg-blue-subtle);
  padding: 0.2rem 0.5rem;
  border-radius: var(--radius-pill);
}

/* SENTENCE-LEVEL FACT CHECK */
.claim-check {
  margin-top: 0.9rem;
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-md, 12px);
  background: var(--bg-surface);
  font-size: 0.86rem;
}

.claim-check summary {
  cursor: pointer;
  padding: 0.65rem 0.9rem;
  color: var(--color-navy);
}

.claim-list {
  list-style: none;
  margin: 0;
  padding: 0 0.9rem 0.8rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.claim {
  display: flex;
  gap: 0.55rem;
  align-items: flex-start;
  padding: 0.55rem 0.7rem;
  border-radius: 10px;
  background: #ffffff;
  border-left: 3px solid #16a34a;
}

.claim.warn {
  border-left-color: #d97706;
}

.claim-evidence {
  margin-top: 0.25rem;
  color: var(--text-muted, #64748b);
  font-size: 0.8rem;
  font-style: italic;
}

/* SPECIES SWITCH (Breed Explorer) */
.species-switch {
  display: inline-flex;
  gap: 0.35rem;
  padding: 0.3rem;
  margin-bottom: 1.25rem;
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-pill);
  background: var(--bg-surface);
}

.species-btn {
  border: none;
  border-radius: var(--radius-pill);
  padding: 0.55rem 1.1rem;
  background: transparent;
  color: var(--color-navy);
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.88rem;
  cursor: pointer;
  transition: var(--transition);
}

.species-btn.active {
  background: var(--color-navy);
  color: #ffffff;
}

.species-btn:focus-visible {
  outline: 3px solid rgba(0, 100, 255, 0.35);
  outline-offset: 2px;
}


/* =====================================================================
   WARM THEME (2026 redesign)
   Oat background, forest-green ink, tomato accent, one mustard sticker.
   Existing component rules keep working: the old token names are remapped.
   ===================================================================== */
:root {
  --oat: #F5ECD7;
  --paper: #FFFBF2;
  --forest: #1E4D36;
  --forest-deep: #143726;
  --pine: #183B2B;
  --tomato: #E8432C;
  --tomato-deep: #C5321E;
  --mustard: #F3B23C;
  --sage: #DCE6D5;

  --bg-white: var(--paper);
  --bg-surface: #FBF4E4;
  --bg-card: var(--paper);
  --bg-subtle: #F0E6CF;
  --bg-blue-subtle: var(--sage);
  --bg-blue-card: #EEF3E9;
  --color-navy: var(--pine);
  --color-navy-dark: var(--forest-deep);
  --color-blue-primary: var(--forest);
  --color-blue-hover: var(--forest-deep);
  --color-blue-light: #3E7A5A;
  --color-blue-pale: var(--sage);
  --color-coral: var(--tomato);
  --text-main: var(--pine);
  --text-body: #2F4A3C;
  --text-muted: #5B6E61;
  --text-light: #8A9A8E;
  --border-light: rgba(30, 77, 54, 0.14);
  --border-blue: rgba(30, 77, 54, 0.3);
  --border-active: var(--forest);
  --font-heading: 'Figtree', system-ui, sans-serif;
  --font-sans: 'Figtree', system-ui, sans-serif;
  --font-display: 'Bagel Fat One', 'Figtree', system-ui, sans-serif;
  --shadow-sm: none;
  --shadow-md: 0 1px 0 rgba(30, 77, 54, 0.12);
  --shadow-lg: 0 2px 0 rgba(30, 77, 54, 0.14);
  --shadow-blue: none;
}

body {
  background: var(--oat);
  color: var(--text-body);
  font-size: 1rem;
}

.grid-bg-overlay {
  display: none;
}

a {
  color: var(--forest);
}

:focus-visible {
  outline: 3px solid var(--mustard);
  outline-offset: 2px;
}

/* Header: scrolls away so it never covers the sticky tab bar */
.site-header {
  display: flex;
  align-items: center;
  gap: 2rem;
  max-width: 1240px;
  margin: 0 auto;
  padding: 1.25rem 2rem;
}

.wordmark {
  font-family: var(--font-display);
  font-size: 1.9rem;
  line-height: 1;
  color: var(--forest);
  text-decoration: none;
  margin-right: auto;
}

.wordmark-light {
  color: var(--paper);
}

.site-nav {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

.site-nav a,
.nav-link {
  border: none;
  background: none;
  padding: 0.25rem 0;
  font: 600 0.98rem var(--font-sans);
  color: var(--pine);
  text-decoration: none;
  cursor: pointer;
  border-bottom: 2px solid transparent;
}

.site-nav a:hover,
.nav-link:hover {
  border-bottom-color: var(--tomato);
}

/* Buttons: one primary, one quiet secondary */
.btn-primary,
.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.8rem 1.6rem;
  border-radius: var(--radius-pill);
  font: 700 1rem var(--font-sans);
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.btn-primary {
  background: var(--tomato);
  color: #fff;
  border: 2px solid var(--tomato);
}

.btn-primary:hover {
  background: var(--tomato-deep);
  border-color: var(--tomato-deep);
}

.btn-primary:active {
  transform: translateY(1px);
}

.btn-ghost {
  background: transparent;
  color: var(--forest);
  border: 2px solid var(--forest);
}

.btn-ghost:hover {
  background: var(--forest);
  color: var(--paper);
}

.btn-small {
  min-height: 2.6rem;
  padding: 0.55rem 1.2rem;
  font-size: 0.95rem;
}

/* Hero */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 3rem;
  align-items: center;
  max-width: 1240px;
  margin: 0 auto;
  padding: 2.5rem 2rem 3rem;
}

.hero-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(3rem, 6.4vw, 5.6rem);
  line-height: 0.98;
  letter-spacing: -0.01em;
  color: var(--forest);
  max-width: 11ch;
}

.hero-lede {
  margin-top: 1.5rem;
  max-width: 46ch;
  font-size: 1.18rem;
  line-height: 1.6;
  color: var(--text-body);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 2rem;
}

.hero-proof {
  list-style: none;
  margin-top: 2rem;
  display: grid;
  gap: 0.55rem;
  max-width: 46ch;
}

.hero-proof li {
  position: relative;
  padding-left: 1.6rem;
  font-weight: 600;
  color: var(--pine);
}

.hero-proof li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45em;
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 50%;
  background: var(--tomato);
}

/* The one bold moment: two pet photos on colour tiles with a sticker */
.hero-photos {
  position: relative;
  height: clamp(420px, 44vw, 560px);
}

.photo-tile {
  position: absolute;
  margin: 0;
  overflow: hidden;
  border-radius: 28px;
}

.photo-tile img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.photo-dog {
  left: 0;
  top: 0;
  width: 58%;
  height: 82%;
  background: var(--tomato);
  padding: 14px;
}

.photo-dog img {
  border-radius: 18px;
  object-position: 50% 30%;
}

.photo-cat {
  right: 0;
  bottom: 0;
  width: 50%;
  height: 66%;
  background: var(--forest);
  padding: 14px;
  transform: rotate(3deg);
}

.photo-cat img {
  border-radius: 18px;
  object-position: 50% 20%;
}

.sticker {
  position: absolute;
  right: 6%;
  top: 6%;
  width: 8.5rem;
  height: 8.5rem;
  display: grid;
  place-items: center;
  padding: 1rem;
  border-radius: 50%;
  background: var(--mustard);
  color: var(--forest-deep);
  font-family: var(--font-display);
  font-size: 1.15rem;
  line-height: 1.05;
  text-align: center;
  transform: rotate(-12deg);
}

/* Example questions */
.try-strip {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 2rem 3.5rem;
}

.try-label {
  font-weight: 700;
  color: var(--pine);
}

.try-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.try-chip {
  border: 1.5px solid var(--border-blue);
  background: var(--paper);
  color: var(--pine);
  border-radius: var(--radius-pill);
  padding: 0.6rem 1.05rem;
  font: 600 0.95rem var(--font-sans);
  cursor: pointer;
}

.try-chip:hover {
  border-color: var(--forest);
  background: var(--sage);
}

/* Forest band: different treatment from the hero on purpose */
.trust-band {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 3rem;
  align-items: center;
  background: var(--forest);
  color: var(--paper);
  padding: 4rem max(2rem, calc((100vw - 1240px) / 2 + 2rem));
}

.trust-photo {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: 28px;
}

.trust-copy h2 {
  font-size: clamp(1.9rem, 3.4vw, 2.7rem);
  line-height: 1.12;
  font-weight: 800;
  color: var(--paper);
  max-width: 20ch;
}

.trust-copy p {
  margin-top: 1.1rem;
  max-width: 54ch;
  font-size: 1.08rem;
  line-height: 1.65;
  color: #E8EFE3;
}

/* How it works: a real four-step sequence */
.how {
  max-width: 1240px;
  margin: 0 auto;
  padding: 4.5rem 2rem;
}

.how h2 {
  font-size: clamp(1.9rem, 3.4vw, 2.7rem);
  font-weight: 800;
  color: var(--forest);
}

.how-steps {
  list-style: none;
  counter-reset: step;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 2rem;
  margin-top: 2.25rem;
}

.how-steps li {
  counter-increment: step;
  border-top: 3px solid var(--forest);
  padding-top: 1.1rem;
}

.how-steps li::before {
  content: counter(step);
  display: block;
  font-family: var(--font-display);
  font-size: 2.4rem;
  line-height: 1;
  color: var(--tomato);
  margin-bottom: 0.6rem;
}

.how-steps h3 {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--pine);
}

.how-steps p {
  margin-top: 0.45rem;
  line-height: 1.6;
  color: var(--text-body);
}

/* App tab bar now sticks to the very top */
.app-tabs-header {
  top: 0;
  background: var(--paper);
  box-shadow: 0 1px 0 var(--border-light);
}

.app-tab-btn.active {
  background: var(--forest);
  color: var(--paper);
}

/* Chat send button follows the new hierarchy */
.send-btn {
  background: var(--tomato);
}

.send-btn:hover:not(:disabled) {
  background: var(--tomato-deep);
}

/* Footer */
.site-footer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
  gap: 2.5rem;
  background: var(--forest-deep);
  color: #D7E2D2;
  padding: 3rem max(2rem, calc((100vw - 1240px) / 2 + 2rem));
}

.site-footer p {
  margin-bottom: 0.6rem;
  line-height: 1.6;
  max-width: 60ch;
}

.site-footer a {
  color: var(--paper);
}

/* Tablet */
@media (max-width: 960px) {
  .hero,
  .trust-band {
    grid-template-columns: 1fr;
  }

  .hero-photos {
    height: 440px;
    max-width: 560px;
  }

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

  .site-footer {
    grid-template-columns: 1fr;
  }
}

/* Phone: an intentional single column, not a shrunken desktop */
@media (max-width: 600px) {
  .site-header {
    padding: 1rem 1.1rem;
    gap: 1rem;
  }

  .site-nav {
    display: none;
  }

  .wordmark {
    font-size: 1.6rem;
  }

  .hero {
    padding: 1rem 1.1rem 2.25rem;
    gap: 2rem;
  }

  .hero-title {
    font-size: clamp(2.6rem, 12vw, 3.4rem);
  }

  .hero-lede {
    font-size: 1.05rem;
  }

  .hero-actions .btn-primary,
  .hero-actions .btn-ghost {
    flex: 1 1 100%;
  }

  .hero-photos {
    height: 360px;
  }

  .sticker {
    width: 6.6rem;
    height: 6.6rem;
    font-size: 0.95rem;
    right: 2%;
    top: 2%;
  }

  .try-strip {
    padding: 0 1.1rem 2.5rem;
  }

  .trust-band {
    padding: 2.75rem 1.1rem;
    gap: 1.75rem;
  }

  .how {
    padding: 3rem 1.1rem;
  }

  .how-steps {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .site-footer {
    padding: 2.5rem 1.1rem;
  }
}

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

.msg-avatar.ai-avatar {
  background: var(--forest);
  box-shadow: none;
}

.site-nav a,
.nav-link,
.wordmark {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

/* Warm surfaces for app cards that hard-coded white */
.chat-main-card,
.agentic-trace-panel,
.chat-input-bar {
  background: var(--paper);
}

.chat-messages-container {
  background: #FDF8EC;
}

/* Phone pass for the app workspace: more room for the conversation */
@media (max-width: 600px) {
  .app-main-workspace {
    padding: 1.25rem 0.75rem 4rem;
  }

  .app-tabs-header {
    padding: 0 0.75rem;
  }

  .chat-card-header {
    flex-wrap: wrap;
    gap: 0.5rem;
    padding: 0.9rem 1rem;
  }

  .chat-messages-container {
    padding: 1rem 0.75rem;
    max-height: 62vh;
  }

  .message-bubble-wrapper {
    max-width: 100%;
  }

  .message-bubble-wrapper .msg-avatar {
    display: none;
  }

  .msg-content {
    padding: 0.85rem 1rem;
    font-size: 0.95rem;
  }

  .chat-input-bar {
    padding: 0.75rem;
    gap: 0.5rem;
  }

  .chat-input-field {
    min-width: 0;
    padding: 0.8rem 1rem;
  }

  .send-btn {
    padding: 0.8rem 1.1rem;
  }

  .agentic-trace-panel {
    padding: 1.1rem;
  }
}

/* =====================================================================
   MOTION
   One orchestrated page-load moment in the hero, then motion only where
   it explains something: the pipeline steps as you scroll, and the live
   agent trace while an answer is actually being generated.
   Everything below is disabled under prefers-reduced-motion.
   ===================================================================== */

/* -- Hero load sequence: headline words rise, photos resolve, sticker lands -- */
.hero-title .w {
  display: inline-block;
  animation: rise 0.66s cubic-bezier(0.22, 0.72, 0.2, 1) both;
  animation-delay: calc(var(--i) * 70ms);
}

.hero .seq {
  animation: rise 0.6s cubic-bezier(0.22, 0.72, 0.2, 1) both;
  animation-delay: calc(var(--i) * 70ms);
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(0.5em);
  }
}

/* Photos resolve out of horizontal lines, like a picture coming into focus */
.photo-tile::after {
  content: "";
  position: absolute;
  inset: 14px;
  border-radius: 18px;
  pointer-events: none;
  background: repeating-linear-gradient(to bottom, var(--oat) 0 2px, transparent 2px 6px);
  animation: resolve 1.5s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

.photo-dog::after {
  animation-delay: 0.25s;
}

.photo-cat::after {
  animation-delay: 0.45s;
}

@keyframes resolve {
  from {
    opacity: 1;
    background-size: 100% 100%;
  }
  to {
    opacity: 0;
    background-size: 100% 420%;
  }
}

.photo-tile img {
  animation: settle 1.5s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

@keyframes settle {
  from {
    transform: scale(1.06);
  }
}

.sticker {
  animation: land 0.7s cubic-bezier(0.3, 1.4, 0.5, 1) both 0.85s;
}

@keyframes land {
  from {
    opacity: 0;
    transform: rotate(14deg) scale(0.6);
  }
}

/* -- Pipeline steps: the rule draws across and the number counts in as you reach it -- */
.how-steps li {
  border-top: none;
  position: relative;
  padding-top: 1.1rem;
}

.how-steps li::after {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: var(--forest);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.55s cubic-bezier(0.22, 0.72, 0.2, 1);
}

.how-steps li.is-live::after {
  transform: scaleX(1);
}

.how-steps li > * {
  opacity: 0;
  transform: translateY(0.6rem);
  transition: opacity 0.5s ease, transform 0.5s cubic-bezier(0.22, 0.72, 0.2, 1);
  transition-delay: 0.18s;
}

.how-steps li.is-live > * {
  opacity: 1;
  transform: none;
}

.how-steps li::before {
  opacity: 0;
  transition: opacity 0.4s ease 0.1s;
}

.how-steps li.is-live::before {
  opacity: 1;
}

/* -- Trust band photo settles as it scrolls into place -- */
.trust-photo {
  clip-path: inset(0 0 0 0 round 28px);
  transform: scale(1.04);
  transition: transform 0.9s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.trust-band.is-live .trust-photo {
  transform: scale(1);
}

/* -- Live agent pipeline while an answer is generating -- */
.pipeline {
  display: grid;
  gap: 0.55rem;
}

.pipeline-stage {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.7rem 0.9rem;
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-sm);
  background: var(--paper);
  color: var(--text-muted);
  font-weight: 600;
  transition: border-color 0.3s ease, color 0.3s ease, background-color 0.3s ease;
}

.pipeline-stage .dot {
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 50%;
  background: var(--border-blue);
  flex-shrink: 0;
}

.pipeline-stage.running {
  border-color: var(--forest);
  color: var(--pine);
  background: var(--sage);
}

.pipeline-stage.running .dot {
  background: var(--tomato);
  animation: pulse 1s ease-in-out infinite;
}

.pipeline-stage.done .dot {
  background: var(--forest);
}

.pipeline-stage.done {
  color: var(--pine);
}

@keyframes pulse {
  50% {
    transform: scale(1.5);
    opacity: 0.55;
  }
}

/* Typing indicator in the chat thread */
.typing {
  display: inline-flex;
  gap: 0.3rem;
  align-items: center;
}

.typing i {
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: var(--forest);
  animation: bounce 1.1s ease-in-out infinite;
}

.typing i:nth-child(2) {
  animation-delay: 0.15s;
}

.typing i:nth-child(3) {
  animation-delay: 0.3s;
}

@keyframes bounce {
  0%, 60%, 100% {
    transform: translateY(0);
    opacity: 0.45;
  }
  30% {
    transform: translateY(-0.3rem);
    opacity: 1;
  }
}

/* Fact-check rows reveal in order when the panel is opened */
.claim-check[open] .claim {
  animation: rise 0.4s cubic-bezier(0.22, 0.72, 0.2, 1) both;
  animation-delay: calc(var(--n, 0) * 55ms);
}

/* The real trace cards arrive in order, so the eye can follow the pipeline */
.agent-step-card.arrive {
  animation: rise 0.45s cubic-bezier(0.22, 0.72, 0.2, 1) both;
  animation-delay: calc(var(--n, 0) * 90ms);
}

@media (prefers-reduced-motion: reduce) {
  .hero-title .w,
  .hero .seq,
  .photo-tile img,
  .sticker,
  .photo-tile::after,
  .claim-check[open] .claim,
  .agent-step-card.arrive {
    animation: none;
  }

  .photo-tile::after {
    display: none;
  }

  .how-steps li > *,
  .how-steps li::before {
    opacity: 1;
    transform: none;
  }

  .how-steps li::after {
    transform: scaleX(1);
  }

  .trust-photo {
    transform: none;
  }
}
