:root {
  /* Pitch.com Design System Tokens (from DESIGN.md) */
  --action: #7B61FF;
  --action-hover: #6B51EF;
  --action-glow: rgba(123, 97, 255, 0.28);
  --hero-gradient-start: #5B21B6;
  --hero-gradient-end: #A78BFA;
  --hero-gradient: linear-gradient(135deg, #5B21B6 0%, #7B61FF 50%, #A78BFA 100%);
  
  --ink: #1A1A2E;
  --ink-secondary: #4A4A5A;
  --ink-muted: #8A8A9A;
  --canvas: #FFFFFF;
  --surface: #F5F5F7;
  --surface-hover: #ECECF0;
  --surface-elevated: #FFFFFF;
  --surface-input: #F0F0F4;
  --border: #E5E5EA;
  --accent-purple: #7B61FF;
  --accent-orange: #F5A623;
  --danger: #E03131;
  --danger-hover: #C92A2A;
  --accent: var(--accent-purple);
  
  /* Semantic mappings */
  --bg-main: var(--canvas);
  --bg-card: var(--surface-elevated);
  --bg-card-hover: var(--surface-hover);
  --bg-surface: var(--surface);
  --bg-input: var(--surface-input);
  --text-main: var(--ink);
  --text-sub: var(--ink-secondary);
  --text-muted: var(--ink-muted);
  --primary: var(--action);
  --primary-hover: var(--action-hover);
  --primary-glow: var(--action-glow);
  --user-bubble: #7B61FF;
  --partner-bubble: #F0F0F5;
  --sys-text: var(--ink-muted);
  
  /* Geometry & Shape Tokens (from DESIGN.md) */
  --radius-btn: 8px; /* 0.5rem standard button radius */
  --radius-card: 16px; /* 1rem card border radius */
  --radius-panel: 16px;
  --radius: var(--radius-card);
  --radius-sm: var(--radius-btn);
  --radius-pill: 9999px;
  --transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --header-height: 64px;
  
  /* Pitch Elevation Shadows */
  --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.08);
  --shadow-floating: 0 12px 40px rgba(91, 33, 182, 0.18), 0 4px 20px rgba(0, 0, 0, 0.08);
  --shadow-elevated: 0 8px 32px rgba(0, 0, 0, 0.1);

  /* Typography Fallbacks */
  --font-display: "Mark Pro", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, sans-serif;
  --font-body: "Eina 01", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

[data-theme="light"] {
  --action: #7B61FF;
  --action-hover: #6B51EF;
  --action-glow: rgba(123, 97, 255, 0.25);
  --ink: #1A1A2E;
  --ink-secondary: #4A4A5A;
  --ink-muted: #8A8A9A;
  --canvas: #FFFFFF;
  --surface: #F5F5F7;
  --surface-hover: #ECECF0;
  --surface-elevated: #FFFFFF;
  --surface-input: #F0F0F4;
  --border: #E5E5EA;
  --accent-purple: #7B61FF;
  --accent-orange: #F5A623;
  
  --bg-main: var(--canvas);
  --bg-card: var(--surface-elevated);
  --bg-card-hover: var(--surface-hover);
  --bg-surface: var(--surface);
  --bg-input: var(--surface-input);
  --text-main: var(--ink);
  --text-sub: var(--ink-secondary);
  --text-muted: var(--ink-muted);
  --primary: var(--action);
  --primary-hover: var(--action-hover);
  --user-bubble: #7B61FF;
  --partner-bubble: #F0F0F5;
  --sys-text: var(--ink-muted);
  --shadow-floating: 0 12px 40px rgba(91, 33, 182, 0.18), 0 4px 24px rgba(0, 0, 0, 0.06);
  --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.08);
}

[data-theme="dark"] {
  --action: #7B61FF;
  --action-hover: #907BFF;
  --action-glow: rgba(123, 97, 255, 0.4);
  --hero-gradient-start: #3B1278;
  --hero-gradient-end: #7B61FF;
  --hero-gradient: linear-gradient(135deg, #3B1278 0%, #5B21B6 50%, #7B61FF 100%);
  
  --ink: #FFFFFF;
  --ink-secondary: #B0B0C4;
  --ink-muted: #7A7A94;
  --canvas: #0E0E1A;
  --surface: #161628;
  --surface-hover: #1E1E34;
  --surface-elevated: #1A1A2E;
  --surface-input: #121222;
  --border: #282842;
  --accent-purple: #7B61FF;
  --accent-orange: #F5A623;
  
  --bg-main: var(--canvas);
  --bg-card: var(--surface-elevated);
  --bg-card-hover: var(--surface-hover);
  --bg-surface: var(--surface);
  --bg-input: var(--surface-input);
  --text-main: var(--ink);
  --text-sub: var(--ink-secondary);
  --text-muted: var(--ink-muted);
  --primary: var(--action);
  --primary-hover: var(--action-hover);
  --user-bubble: #7B61FF;
  --partner-bubble: #222238;
  --sys-text: var(--ink-muted);
  
  --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.4);
  --shadow-floating: 0 12px 40px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(123, 97, 255, 0.25);
  --shadow-elevated: 0 8px 32px rgba(0, 0, 0, 0.45);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: var(--font-body);
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
}

[hidden] {
  display: none !important;
}

html, body {
  min-height: 100vh;
  min-height: 100dvh;
  overflow-x: hidden;
}

body {
  background-color: var(--bg-main);
  color: var(--text-main);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  transition: background-color 0.25s ease, color 0.25s ease;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}

/* ==========================================================================
   Header / Top Global Navigation
   ========================================================================== */
.topbar {
  height: var(--header-height);
  background-color: var(--bg-card);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  padding-top: env(safe-area-inset-top, 0px);
  z-index: 50;
  flex-shrink: 0;
  position: sticky;
  top: 0;
}

.brand {
  display: flex;
  align-items: center;
  user-select: none;
}

.brand-link {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: inherit;
}

.status-dot {
  width: 11px;
  height: 11px;
  background-color: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--accent);
  flex-shrink: 0;
}

.brand-name {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.4px;
  white-space: nowrap;
}

/* Online Counter Badge */
.online-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-input);
  border: 1px solid var(--border);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-sub);
  white-space: nowrap;
}

.pulse-indicator {
  width: 8px;
  height: 8px;
  background-color: #22c55e;
  border-radius: 50%;
  box-shadow: 0 0 8px #22c55e;
  animation: pulse 2s infinite;
  flex-shrink: 0;
}

@keyframes pulse {
  0% { transform: scale(0.95); opacity: 0.8; }
  50% { transform: scale(1.3); opacity: 1; }
  100% { transform: scale(0.95); opacity: 0.8; }
}

.topbar-nav {
  display: flex;
  align-items: center;
  gap: 18px;
}

.nav-link {
  color: var(--text-sub);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  transition: var(--transition);
  padding: 6px 10px;
  border-radius: var(--radius-sm);
}

.nav-link:hover, .nav-link.active {
  color: var(--primary);
}

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

.btn-icon {
  background: var(--bg-input);
  border: 1px solid var(--border);
  color: var(--text-main);
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 1rem;
  min-height: 48px;
  min-width: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.btn-icon:hover {
  background: var(--bg-card-hover);
}

/* ==========================================================================
   Main Chat Wrapper (Above the Fold)
   ========================================================================== */
.chat-wrapper {
  max-width: 900px;
  width: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  padding: 16px 20px 20px;
  height: calc(100dvh - var(--header-height));
  min-height: 520px;
  max-height: 760px;
  position: relative;
  flex-shrink: 0;
}

/* Chat Top Deck: Skip / Start / Status / Report */
.chat-top-deck {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 8px 12px;
  flex-shrink: 0;
}

.deck-left, .deck-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.deck-center {
  flex: 1;
  text-align: center;
}

.partner-status {
  font-size: 0.85rem;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--bg-input);
  padding: 4px 12px;
  border-radius: 14px;
  border: 1px solid var(--border);
}

.status-label {
  color: var(--text-sub);
}

.status-val {
  font-weight: 700;
  color: var(--primary);
}

.btn-deck {
  min-height: 42px;
  padding: 0 14px;
  font-size: 0.88rem;
  border-radius: var(--radius-sm);
}

.btn-report {
  background: var(--bg-input);
  border: 1px solid var(--border);
  color: var(--text-sub);
}

.btn-report:not(:disabled):hover {
  background: rgba(224, 49, 49, 0.15);
  border-color: var(--danger);
  color: var(--danger);
}

/* Interest Section */
.interest-section {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 10px 14px;
  margin-bottom: 10px;
  flex-shrink: 0;
  transition: var(--transition);
}

.interest-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
  font-size: 0.85rem;
}

.interest-header-left {
  display: flex;
  align-items: center;
  gap: 8px;
}

.interest-hint {
  color: var(--text-sub);
  font-size: 0.8rem;
}

.interest-toggle-btn {
  display: none;
}

.tags-container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.tag-chip {
  background: var(--primary);
  color: #fff;
  padding: 4px 10px;
  border-radius: 16px;
  font-size: 0.8rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  user-select: none;
}

.tag-remove {
  cursor: pointer;
  font-size: 1.05rem;
  line-height: 1;
  opacity: 0.8;
}

.tag-remove:hover {
  opacity: 1;
}

.tags-container input {
  flex: 1;
  min-width: 220px;
  background: transparent;
  border: none;
  color: var(--text-main);
  outline: none;
  font-size: 0.9rem;
  padding: 4px 0;
}

/* Messages Log Feed */
.messages-log {
  flex: 1;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
}

.welcome-box {
  background: var(--bg-input);
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  padding: 24px;
  text-align: center;
  margin: auto 0;
}

.welcome-box h2 {
  font-size: 1.4rem;
  margin-bottom: 8px;
  letter-spacing: -0.3px;
}

.welcome-box p {
  color: var(--text-sub);
  margin-bottom: 16px;
  font-size: 0.95rem;
}

.welcome-tips {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: 440px;
  margin: 0 auto;
  text-align: left;
}

.tip-item {
  background: var(--bg-card);
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  color: var(--text-sub);
  border: 1px solid var(--border);
}

/* Chat Bubbles & Delivery */
.message-bubble {
  max-width: 75%;
  padding: 10px 14px;
  border-radius: 16px;
  font-size: 0.95rem;
  line-height: 1.45;
  word-break: break-word;
  animation: fadeIn 0.15s ease;
  position: relative;
}

.message-bubble.me {
  align-self: flex-end;
  background-color: var(--user-bubble);
  color: #fff;
  border-bottom-right-radius: 4px;
}

.message-bubble.them {
  align-self: flex-start;
  background-color: var(--partner-bubble);
  color: var(--text-main);
  border: 1px solid var(--border);
  border-bottom-left-radius: 4px;
}

.bubble-meta {
  font-size: 0.7rem;
  opacity: 0.75;
  margin-top: 4px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
}

.sys-notice {
  align-self: center;
  font-size: 0.85rem;
  color: var(--sys-text);
  font-style: italic;
  padding: 5px 14px;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: 12px;
  text-align: center;
  max-width: 90%;
  animation: fadeIn 0.15s ease;
}

/* Typing Bar */
.typing-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--accent);
  padding: 4px 10px;
  font-style: italic;
  flex-shrink: 0;
}

.typing-dots span {
  display: inline-block;
  width: 5px;
  height: 5px;
  background: var(--accent);
  border-radius: 50%;
  animation: typingBounce 1.4s infinite ease-in-out;
}

.typing-dots span:nth-child(1) { animation-delay: -0.32s; }
.typing-dots span:nth-child(2) { animation-delay: -0.16s; }

@keyframes typingBounce {
  0%, 80%, 100% { transform: scale(0); }
  40% { transform: scale(1); }
}

/* Away Banner */
.away-banner {
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.3);
  color: #fbbf24;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 4px 0;
  flex-shrink: 0;
}

.away-pulse {
  animation: pulse 1.5s infinite;
}

/* Controls Bar (Bottom Input) */
.controls-bar {
  display: flex;
  gap: 10px;
  margin-top: 10px;
  flex-shrink: 0;
  position: relative;
}

.btn-icebreaker {
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-main);
  padding: 0 14px;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 48px;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
}

.btn-icebreaker:not(:disabled):hover {
  background: var(--bg-card-hover);
  border-color: var(--primary);
}

.sparkle-icon {
  font-size: 1.1rem;
}

.input-group {
  flex: 1;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  padding: 4px 8px;
  min-height: 48px;
  transition: border-color 0.2s ease;
}

.input-group:focus-within {
  border-color: var(--primary);
}

.input-group textarea {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: var(--text-main);
  font-size: 16px; /* Avoids iOS Safari auto-zoom */
  resize: none;
  max-height: 100px;
  padding: 10px 8px;
  line-height: 1.4;
  font-family: inherit;
}

.btn-send {
  background: transparent;
  color: var(--primary);
  padding: 8px;
  border-radius: 50%;
  min-width: 44px;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-send:hover:not(:disabled) {
  background: var(--primary-glow);
}

/* Generic Button Classes */
.btn {
  border: none;
  border-radius: var(--radius-sm);
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: var(--transition);
  user-select: none;
  text-decoration: none;
  min-height: 48px; /* 48px touch target standard */
  box-sizing: border-box;
}

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

.btn:not(:disabled):active {
  transform: scale(0.97);
}

.btn-primary {
  background: var(--primary);
  color: #fff;
  padding: 0 18px;
}

.btn-primary:hover:not(:disabled) {
  background: var(--primary-hover);
}

.btn-secondary {
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-main);
  padding: 0 16px;
}

.btn-secondary:hover:not(:disabled) {
  background: var(--bg-card-hover);
}

.btn-danger {
  background: var(--danger) !important;
  color: #fff;
}

.btn-danger:hover:not(:disabled) {
  background: var(--danger-hover) !important;
}

.kbd-hint {
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 2px 6px;
  font-size: 0.75rem;
  color: var(--text-sub);
}

/* Accidental Skip Toast */
.skip-confirm-toast {
  position: absolute;
  top: -46px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--danger);
  color: #fff;
  padding: 8px 18px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
  animation: slideDown 0.2s ease;
  z-index: 100;
  white-space: nowrap;
}

@keyframes slideDown {
  from { opacity: 0; transform: translate(-50%, -10px); }
  to { opacity: 1; transform: translate(-50%, 0); }
}

/* Icebreaker Drawer Popover */
.icebreaker-drawer {
  position: absolute;
  bottom: 60px;
  left: 0;
  width: 100%;
  max-width: 440px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.45);
  padding: 14px;
  z-index: 80;
  display: flex;
  flex-direction: column;
  gap: 10px;
  animation: fadeIn 0.2s ease;
}

.drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border);
  padding-bottom: 8px;
  font-size: 0.9rem;
}

.btn-close-sm {
  background: transparent;
  border: none;
  color: var(--text-sub);
  font-size: 1.4rem;
  cursor: pointer;
  line-height: 1;
}

.icebreaker-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-height: 220px;
  overflow-y: auto;
}

.icebreaker-chip-btn {
  background: var(--bg-input);
  border: 1px solid var(--border);
  color: var(--text-main);
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  text-align: left;
  font-size: 0.84rem;
  cursor: pointer;
  transition: var(--transition);
}

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

/* ==========================================================================
   Hero Section (Pitch.com Confident SaaS Identity from DESIGN.md)
   ========================================================================== */
.hero-section {
  padding: 80px 20px 84px;
  background: var(--hero-gradient);
  position: relative;
  overflow: hidden;
  text-align: center;
}

/* Abstract 3D Torus / Ring shapes rendered in translucent purple tones */
.hero-bg-shapes {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 1;
}

.hero-ring {
  position: absolute;
  border-radius: 50%;
  border: 32px solid rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 0 40px rgba(123, 97, 255, 0.25), 0 0 60px rgba(91, 33, 182, 0.3);
  animation: floatRing 12s infinite alternate ease-in-out;
}

.hero-ring-1 {
  width: 380px;
  height: 380px;
  top: -80px;
  left: -80px;
  border-width: 44px;
  border-color: rgba(167, 139, 250, 0.18);
  transform: rotate(25deg);
}

.hero-ring-2 {
  width: 520px;
  height: 520px;
  bottom: -160px;
  right: -100px;
  border-width: 56px;
  border-color: rgba(255, 255, 255, 0.1);
  transform: rotate(-35deg);
  animation-duration: 16s;
}

.hero-ring-3 {
  width: 180px;
  height: 180px;
  top: 30%;
  right: 10%;
  border-width: 22px;
  border-color: rgba(245, 166, 35, 0.15); /* Soft accent-orange glow */
  animation-duration: 9s;
}

@keyframes floatRing {
  0% { transform: translateY(0) rotate(0deg); }
  100% { transform: translateY(22px) rotate(15deg); }
}

.hero-container {
  max-width: 960px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
  position: relative;
  z-index: 2;
}

.hero-badge-capsule {
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.28);
  color: #ffffff;
  font-size: 0.75rem; /* Pitch label token */
  font-weight: 700;
  padding: 8px 18px;
  border-radius: var(--radius-pill);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5.5vw, 4rem); /* Pitch hero-display token: 4rem */
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: #ffffff;
  max-width: 820px;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.18);
}

.hero-subtitle {
  font-family: var(--font-body);
  font-size: 1.25rem; /* Pitch body-large token */
  color: rgba(255, 255, 255, 0.95);
  line-height: 1.5;
  max-width: 680px;
  font-weight: 400;
}

.hero-cta-group {
  display: flex;
  gap: 14px;
  margin-top: 8px;
  flex-wrap: wrap;
  justify-content: center;
}

/* Pitch.com Button Styling: Action Purple (#7B61FF) + White Ink Surface */
.btn-hero-primary {
  background: var(--action) !important;
  color: #ffffff !important;
  font-size: 1rem;
  font-weight: 700;
  padding: 14px 28px;
  border-radius: var(--radius-btn);
  min-height: 50px;
  box-shadow: 0 4px 20px rgba(123, 97, 255, 0.45);
  transition: var(--transition);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-hero-primary:hover {
  background: var(--action-hover) !important;
  transform: translateY(-2px);
  box-shadow: 0 8px 26px rgba(107, 81, 239, 0.55);
}

.btn-hero-secondary {
  background: #ffffff !important;
  color: var(--ink) !important;
  font-size: 1rem;
  font-weight: 700;
  padding: 14px 28px;
  border-radius: var(--radius-btn);
  min-height: 50px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  transition: var(--transition);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.btn-hero-secondary:hover {
  background: #f5f5f7 !important;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.16);
}

/* Floating App Screenshot / Interface Mockup (Pitch Elevated Surface) */
.floating-app-preview {
  width: 100%;
  max-width: 760px;
  margin-top: 32px;
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: var(--radius-card); /* 1rem corner radius */
  box-shadow: var(--shadow-floating);
  overflow: hidden;
  text-align: left;
  display: flex;
  flex-direction: column;
}

.window-chrome {
  background: var(--bg-input);
  border-bottom: 1px solid var(--border);
  padding: 12px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.window-controls {
  display: flex;
  align-items: center;
  gap: 7px;
}

.win-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
}

.win-dot.red { background: #FF5F56; }
.win-dot.yellow { background: #FFBD2E; }
.win-dot.green { background: #27C93F; }

.window-title {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-sub);
  display: flex;
  align-items: center;
  gap: 6px;
}

.window-status {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  font-weight: 600;
  color: #22c55e;
}

.preview-body {
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  background: var(--bg-card);
}

.preview-tags-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  color: var(--text-sub);
  border-bottom: 1px dashed var(--border);
  padding-bottom: 10px;
}

.preview-chip {
  background: var(--action);
  color: #ffffff;
  padding: 3px 12px;
  border-radius: var(--radius-pill);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.preview-msg-log {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.preview-bubble {
  max-width: 82%;
  padding: 12px 16px;
  border-radius: var(--radius-card);
  font-size: 0.92rem;
  line-height: 1.45;
}

.preview-bubble.them {
  align-self: flex-start;
  background: var(--partner-bubble);
  color: var(--text-main);
  border-bottom-left-radius: 4px;
  border: 1px solid var(--border);
}

.preview-bubble.me {
  align-self: flex-end;
  background: var(--action);
  color: #ffffff;
  border-bottom-right-radius: 4px;
  box-shadow: 0 2px 12px rgba(123, 97, 255, 0.25);
}

.preview-meta {
  font-size: 0.7rem;
  opacity: 0.8;
  margin-top: 5px;
  text-align: right;
}

.preview-typing {
  font-size: 0.8rem;
  color: var(--accent-orange);
  font-style: italic;
  display: flex;
  align-items: center;
  gap: 6px;
}

.preview-input-sim {
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--text-sub);
  font-size: 0.88rem;
}

.preview-send-sim {
  background: var(--action);
  color: #ffffff;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  box-shadow: 0 2px 8px rgba(123, 97, 255, 0.35);
}

.hero-badges {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 18px;
}

.badge-item {
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.22);
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.95);
}

.badge-item strong {
  color: #ffffff;
}

/* ==========================================================================
   Pitch.com 3-Tier Mode / Pricing System (Overlapping Hero Boundary)
   ========================================================================== */
.pitch-tier-wrapper {
  max-width: 1060px;
  margin: -48px auto 48px;
  padding: 0 20px;
  position: relative;
  z-index: 10;
}

/* Pitch Toggle Switch (Pill-shaped track, purple background, white slider) */
.pitch-toggle-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin-bottom: 28px;
}

.pitch-toggle-track {
  background: var(--action);
  padding: 4px;
  border-radius: var(--radius-pill);
  display: inline-flex;
  align-items: center;
  position: relative;
  box-shadow: 0 4px 16px rgba(123, 97, 255, 0.3);
  user-select: none;
}

.pitch-toggle-option {
  padding: 8px 20px;
  border-radius: var(--radius-pill);
  font-size: 0.75rem; /* Pitch label token */
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
  cursor: pointer;
  transition: var(--transition);
  border: none;
  background: transparent;
}

.pitch-toggle-option.active {
  background: #ffffff;
  color: var(--action);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}

.pitch-savings-callout {
  color: var(--accent-orange);
  font-size: 0.8rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 4px;
  letter-spacing: 0.02em;
}

/* 3-Tier Card Grid: 1rem radius, 2rem internal padding, subtle shadow */
.pitch-tier-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: stretch;
}

.pitch-card {
  background: var(--surface-elevated);
  border-radius: var(--radius-card); /* 1rem (16px) */
  padding: 2rem; /* 2rem internal padding from DESIGN.md */
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  text-align: left;
  position: relative;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  border: 1px solid var(--border);
}

.pitch-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-floating);
}

.pitch-card-badge {
  align-self: flex-start;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  margin-bottom: 1.25rem;
}

.pitch-card-badge.badge-free {
  background: rgba(123, 97, 255, 0.12);
  color: var(--accent-purple);
}

.pitch-card-badge.badge-pro {
  background: rgba(245, 166, 35, 0.15);
  color: var(--accent-orange);
}

.pitch-card-badge.badge-enterprise {
  background: rgba(91, 33, 182, 0.15);
  color: var(--hero-gradient-start);
}

.pitch-card-name {
  font-size: 1.25rem; /* body-large */
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.pitch-card-name.name-free { color: var(--accent-purple); }
.pitch-card-name.name-pro { color: var(--accent-orange); }
.pitch-card-name.name-enterprise { color: var(--hero-gradient-start); }

.pitch-card-price {
  font-family: var(--font-display);
  font-size: 2.8rem; /* pricing-amount token */
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1;
  color: var(--ink);
  margin-bottom: 0.25rem;
  display: flex;
  align-items: baseline;
  gap: 4px;
}

.pitch-price-period {
  font-family: var(--font-body);
  font-size: 0.875rem; /* body-small */
  color: var(--ink-secondary);
  font-weight: 400;
}

.pitch-card-desc {
  font-size: 0.875rem; /* body-small */
  color: var(--ink-secondary);
  line-height: 1.5;
  margin-bottom: 1.5rem;
  min-height: 42px;
}

.pitch-feature-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem; /* 0.75rem between feature list items from DESIGN.md */
  margin-bottom: 2rem;
  flex: 1;
}

.pitch-feature-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.95rem; /* body token */
  color: var(--ink);
  line-height: 1.4;
}

.pitch-check-icon {
  width: 18px;
  height: 18px;
  color: var(--action);
  flex-shrink: 0;
  margin-top: 2px;
}

.pitch-card-btn {
  width: 100%;
  padding: 12px 20px;
  border-radius: var(--radius-btn);
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
}

.pitch-card-btn.btn-outline {
  background: transparent;
  border: 1.5px solid var(--action);
  color: var(--action);
}

.pitch-card-btn.btn-outline:hover {
  background: rgba(123, 97, 255, 0.08);
}

.pitch-card-btn.btn-filled {
  background: var(--action);
  border: 1.5px solid var(--action);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(123, 97, 255, 0.35);
}

.pitch-card-btn.btn-filled:hover {
  background: var(--action-hover);
  border-color: var(--action-hover);
}

/* Google Material Symbols Outlined */
.material-symbols-outlined {
  font-family: 'Material Symbols Outlined';
  font-weight: normal;
  font-style: normal;
  font-size: 20px;
  line-height: 1;
  letter-spacing: normal;
  text-transform: none;
  display: inline-block;
  white-space: nowrap;
  word-wrap: normal;
  direction: ltr;
  -webkit-font-feature-settings: 'liga';
  -webkit-font-smoothing: antialiased;
  vertical-align: middle;
}

.btn .material-symbols-outlined {
  font-size: 19px;
  vertical-align: middle;
}

.bento-img {
  width: 100%;
  max-width: 100%;
  height: auto;
  margin-top: 18px;
  border-radius: 10px;
  display: block;
}
.pitch-bento-section {
  max-width: 1060px;
  margin: 64px auto;
  padding: 0 20px;
}

.pitch-section-header {
  text-align: center;
  margin-bottom: 40px;
}

.pitch-section-badge {
  font-size: 0.75rem; /* Pitch label token */
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--action);
  margin-bottom: 8px;
  display: inline-block;
}

.pitch-section-title {
  font-family: var(--font-display);
  font-size: 2.5rem; /* section-display token */
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.2;
  color: var(--ink);
  margin-bottom: 12px;
}

.pitch-section-subtitle {
  font-size: 1.125rem;
  color: var(--ink-secondary);
  max-width: 640px;
  margin: 0 auto;
  line-height: 1.5;
}

/* Asymmetric Bento Layout: 2 large cards top, 2 smaller cards below */
.pitch-bento-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.bento-card {
  background: var(--surface); /* #F5F5F7 from DESIGN.md */
  border-radius: var(--radius-card); /* 1rem (16px) */
  padding: 2rem; /* 2rem padding from DESIGN.md */
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease;
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border);
}

.bento-card:hover {
  transform: translateY(-2px);
}

.bento-icon-box {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: #ffffff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1rem; /* 1rem between icon and title from DESIGN.md */
  color: var(--action);
}

.bento-title {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin-bottom: 0.5rem; /* 0.5rem between title and description from DESIGN.md */
}

.bento-desc {
  font-size: 1rem; /* body token */
  color: var(--ink-secondary);
  line-height: 1.6;
}

.bento-interactive-pill-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.bento-pill {
  background: #ffffff;
  border: 1px solid var(--border);
  color: var(--action);
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  font-size: 0.8rem;
  font-weight: 600;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}

/* ==========================================================================
   Pre-Allocated CLS-Safe Ad Slots (Google AdSense Standards)
   ========================================================================== */
.ad-slot-wrapper {
  max-width: 900px;
  width: 100%;
  margin: 18px auto;
  padding: 0 20px;
  box-sizing: border-box;
}

.ad-slot-placeholder {
  background: var(--bg-card);
  border: 1px dashed var(--border);
  border-radius: var(--radius-sm);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  padding: 8px;
}

.ad-label {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--text-sub);
  margin-bottom: 4px;
}

.ad-content-box {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 50px;
}

.ad-placeholder-text {
  font-size: 0.8rem;
  color: var(--sys-text);
  font-style: italic;
}

/* ==========================================================================
   Editorial Content & Documentation (Below the Fold - 800+ Words)
   ========================================================================== */
.editorial-wrapper {
  width: 100%;
  background: var(--bg-main);
  border-top: 1px solid var(--border);
  padding: 40px 20px 60px;
}

.editorial-container {
  max-width: 860px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 36px;
}

.doc-section {
  display: flex;
  flex-direction: column;
  gap: 16px;
  line-height: 1.7;
  font-size: 1rem;
}

.doc-section h2 {
  font-size: 1.55rem;
  letter-spacing: -0.3px;
  color: var(--text-main);
  border-bottom: 2px solid var(--border);
  padding-bottom: 8px;
}

.doc-section h3 {
  font-size: 1.2rem;
  color: var(--text-main);
  margin-top: 12px;
}

.doc-section p {
  color: var(--text-sub);
}

.doc-section code {
  background: var(--bg-input);
  border: 1px solid var(--border);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.9em;
  color: var(--primary);
}

.editorial-ordered-list {
  padding-left: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  color: var(--text-sub);
}

.editorial-ordered-list strong {
  color: var(--text-main);
}

/* Semantic Specification Table */
.table-container {
  overflow-x: auto;
  margin: 14px 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.spec-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.9rem;
}

.spec-table th, .spec-table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
}

.spec-table th {
  background: var(--bg-card);
  color: var(--text-main);
  font-weight: 700;
}

.spec-table td {
  color: var(--text-sub);
  background: var(--bg-main);
}

.spec-table tr:hover td {
  background: var(--bg-card-hover);
}

/* FAQ Accordion (Pitch.com Clean Horizontal Divider Pattern from DESIGN.md) */
.faq-accordion {
  display: flex;
  flex-direction: column;
}

.faq-item {
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--border); /* Full-width bottom border from DESIGN.md */
  border-radius: 0;
  padding: 1.5rem 0; /* 1.5rem vertical padding per item from DESIGN.md */
  transition: var(--transition);
}

.faq-item:first-child {
  border-top: 1px solid var(--border);
}

.faq-question {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem; /* section-display at reduced size */
  cursor: pointer;
  color: var(--ink);
  outline: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  user-select: none;
  list-style: none; /* Hide default triangle */
}

.faq-question::-webkit-details-marker {
  display: none;
}

.faq-question::after {
  content: "↓";
  font-size: 1.2rem;
  color: var(--action);
  transition: transform 0.25s ease;
  transform: rotate(-90deg);
  margin-left: 12px;
}

.faq-item[open] .faq-question::after {
  transform: rotate(0deg);
}

.faq-answer {
  margin-top: 1rem; /* 1rem between question and answer from DESIGN.md */
  color: var(--ink-secondary);
  line-height: 1.6;
  font-size: 1rem;
  max-width: 740px;
}

/* ==========================================================================
   Compliance & Static Pages Layout (/about, /privacy-policy, /contact, etc.)
   ========================================================================== */
.page-body {
  min-height: 100vh;
}

.content-wrapper {
  max-width: 860px;
  width: 100%;
  margin: 0 auto;
  padding: 36px 20px 60px;
  flex: 1;
}

.article-container {
  display: flex;
  flex-direction: column;
  gap: 28px;
  line-height: 1.7;
}

.article-header {
  border-bottom: 1px solid var(--border);
  padding-bottom: 18px;
}

.badge-tag {
  background: var(--bg-input);
  border: 1px solid var(--border);
  color: var(--primary);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: inline-block;
  margin-bottom: 8px;
}

.article-header h1 {
  font-size: 2.1rem;
  letter-spacing: -0.5px;
  margin-bottom: 6px;
}

.article-meta {
  color: var(--text-sub);
  font-size: 0.88rem;
}

.policy-section {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.policy-section h2 {
  font-size: 1.35rem;
  color: var(--text-main);
  margin-top: 8px;
}

.policy-section p, .policy-section li {
  color: var(--text-sub);
  font-size: 0.96rem;
}

.policy-section a {
  color: var(--primary);
  text-decoration: underline;
}

.highlight-callout {
  background: var(--bg-card);
  border-left: 4px solid var(--primary);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 14px 18px;
  margin: 10px 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.highlight-callout.alert-warning {
  border-left-color: #f59e0b;
}

.highlight-callout.alert-danger {
  border-left-color: var(--danger);
}

.contact-list, .rules-list {
  padding-left: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* About Grid */
.architecture-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 16px 0;
}

.arch-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.arch-icon {
  font-size: 1.8rem;
}

.arch-card h3 {
  font-size: 1.05rem;
  color: var(--text-main);
}

.arch-card p {
  font-size: 0.88rem;
  color: var(--text-sub);
}

/* Contact Grid & Form */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}

.contact-form-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact-form-card h2 {
  font-size: 1.35rem;
}

.form-desc {
  font-size: 0.88rem;
  color: var(--text-sub);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-main);
}

.required {
  color: var(--danger);
}

.form-control {
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-main);
  padding: 10px 14px;
  font-size: 0.92rem;
  outline: none;
  transition: var(--transition);
}

.form-control:focus {
  border-color: var(--primary);
}

.btn-submit {
  width: 100%;
  margin-top: 6px;
}

.form-success-alert {
  background: rgba(34, 197, 94, 0.15);
  border: 1px solid #22c55e;
  color: #22c55e;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
}

/* Error Pages (404 & 500) */
.error-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
}

.error-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px 28px;
  text-align: center;
  max-width: 480px;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.error-code {
  font-size: 4rem;
  font-weight: 900;
  color: var(--accent);
  letter-spacing: -2px;
}

.error-desc {
  color: var(--text-sub);
  font-size: 0.95rem;
}

.error-actions {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-top: 8px;
}

/* ==========================================================================
   Modals (18+ & Report)
   ========================================================================== */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.78);
  backdrop-filter: blur(5px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 16px;
}

.modal-window {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  max-width: 440px;
  width: 90%;
  max-height: calc(100dvh - 32px);
  overflow-y: auto;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
  animation: modalScale 0.2s ease;
}

@keyframes modalScale {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

.modal-badge {
  background: var(--danger);
  color: #fff;
  font-weight: 700;
  font-size: 0.8rem;
  padding: 4px 10px;
  border-radius: 6px;
  width: fit-content;
}

.modal-rules {
  padding-left: 20px;
  color: var(--text-sub);
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 0.9rem;
}

.modal-buttons {
  display: flex;
  gap: 10px;
  margin-top: 4px;
}

.modal-buttons .btn {
  flex: 1;
}

.report-options {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 6px 0;
}

.report-radio-label {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--bg-input);
  border: 1px solid var(--border);
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 0.88rem;
}

/* ==========================================================================
   Global Semantic Crawlable Footer
   ========================================================================== */
.site-footer {
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  padding: 40px 24px 24px;
  margin-top: auto;
}

.footer-inner {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}

.footer-brand {
  max-width: 320px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-title {
  font-size: 1.15rem;
  font-weight: 700;
}

.footer-desc {
  color: var(--text-sub);
  font-size: 0.84rem;
  line-height: 1.5;
}

.footer-links-grid {
  display: flex;
  gap: 48px;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col h3 {
  font-size: 0.88rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-main);
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-col a {
  color: var(--text-sub);
  text-decoration: none;
  font-size: 0.85rem;
  transition: var(--transition);
}

.footer-col a:hover, .footer-col a.active {
  color: var(--primary);
}

.footer-bottom {
  max-width: 900px;
  margin: 28px auto 0;
  padding-top: 18px;
  border-top: 1px solid var(--border);
  text-align: center;
  font-size: 0.8rem;
  color: var(--sys-text);
}

/* ==========================================================================
   Mobile-First Breakpoints & Usability (< 640px)
   ========================================================================== */
@media (max-width: 640px) {
  :root {
    --header-height: 54px;
  }

  .topbar {
    padding: 0 12px;
  }

  .topbar-nav {
    display: none; /* Accessible in crawlable footer on mobile to maximize chat space */
  }

  .chat-wrapper {
    padding: 8px 10px;
    height: calc(100dvh - var(--header-height));
    min-height: 480px;
  }

  .chat-top-deck {
    padding: 6px 10px;
    margin-bottom: 8px;
  }

  .btn-deck {
    min-height: 40px;
    padding: 0 10px;
    font-size: 0.82rem;
  }

  .btn-text-report {
    display: none; /* Icon-only on mobile */
  }

  .interest-section {
    padding: 6px 10px;
  }

  .interest-hint {
    display: none;
  }

  .interest-toggle-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: var(--bg-input);
    border: 1px solid var(--border);
    color: var(--text-main);
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    min-height: 28px;
  }

  .interest-section:not(.expanded) .tags-container {
    display: none;
  }

  .interest-section.expanded .tags-container {
    display: flex;
    margin-top: 8px;
  }

  .mobile-tags-preview {
    display: flex;
    overflow-x: auto;
    gap: 6px;
    margin-top: 4px;
  }

  .tag-chip-preview {
    background: var(--bg-input);
    border: 1px solid var(--border);
    color: var(--text-sub);
    padding: 2px 6px;
    border-radius: 10px;
    font-size: 0.7rem;
    white-space: nowrap;
  }

  .messages-log {
    padding: 10px;
    gap: 8px;
  }

  .message-bubble {
    max-width: 86%;
    font-size: 0.92rem;
  }

  .architecture-grid, .contact-grid {
    grid-template-columns: 1fr;
  }

  .pitch-tier-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .pitch-bento-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .pitch-tier-wrapper {
    margin-top: -24px;
  }

  .pitch-card {
    padding: 1.5rem;
  }

  .bento-card {
    padding: 1.5rem;
  }

  .footer-links-grid {
    gap: 28px;
  }
}

@media (min-width: 641px) and (max-width: 960px) {
  .pitch-tier-grid {
    grid-template-columns: 1fr;
  }
  .pitch-bento-grid {
    grid-template-columns: 1fr;
  }
}
