/* =====================================================
   TikTok AutoPoster — LP-12 Design Tokens + Dashboard
   グラデーション・ポップ / DX・テック・SaaS
   ===================================================== */

/* --- Google Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Montserrat:wght@700;800;900&family=Noto+Sans+JP:wght@400;500;700;900&family=Poppins:wght@400;500;600;700;800;900&display=swap');

/* --- LP-12 Design Tokens --- */
:root {
  /* Gradient Colors */
  --indigo:   #6366F1;
  --purple:   #A855F7;
  --magenta:  #D946EF;
  --pink:     #EC4899;

  /* Base */
  --cream:    #FAF5EE;
  --white:    #FFFFFF;
  --black:    #000000;
  --text:     #1A1A1A;
  --text-sub: #6B7280;
  --text-dim: #9CA3AF;

  /* Dashboard accent (LP-12 mapped) */
  --accent:       #7C3AED;
  --accent-hover: #6D28D9;
  --accent-light: rgba(124, 58, 237, 0.08);
  --accent-sec:   #D946EF;

  /* Semantic */
  --success:     #10B981;
  --success-bg:  #ECFDF5;
  --warning:     #F59E0B;
  --warning-bg:  #FFFBEB;
  --error:       #EF4444;
  --error-bg:    #FEF2F2;
  --info-bg:     #EFF6FF;

  /* Surfaces (Dashboard) */
  --surface:  #F8F9FA;
  --border:   #E5E7EB;
  --border-l: #F3F4F6;

  /* Gradients */
  --grad-main:  linear-gradient(135deg, #6366F1 0%, #A855F7 35%, #D946EF 70%, #EC4899 100%);
  --grad-soft:  linear-gradient(135deg, #818CF8 0%, #A855F7 40%, #D946EF 80%, #F472B6 100%);
  --grad-pill:  linear-gradient(135deg, #A855F7, #D946EF);
  --grad-wash:  linear-gradient(135deg, rgba(99,102,241,0.08) 0%, rgba(168,85,247,0.05) 40%, rgba(236,72,153,0.08) 100%), #FAF5EE;
  --grad-footer: linear-gradient(90deg, #6366F1, #A855F7, #D946EF, #EC4899);

  /* Radius */
  --r-card: 20px;
  --r-pill: 999px;
  --r-btn:  12px;
  --r-dash: 8px;

  /* Font */
  --ff-head: 'Montserrat', 'Noto Sans JP', sans-serif;
  --ff-body: 'Inter', 'Noto Sans JP', sans-serif;
  --ff-label: 'Poppins', 'Noto Sans JP', sans-serif;
}

/* --- Reset --- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: var(--ff-body); color: var(--text); background: var(--cream); line-height: 1.7; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
button { cursor: pointer; border: none; font-family: var(--ff-body); }

/* =====================================================
   LP PAGES — Landing Page Styles
   ===================================================== */

/* --- Nav --- */
.lp-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 48px;
  background: rgba(250,245,238,0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0,0,0,0.04);
  transition: all 0.3s ease;
}
.lp-nav.scrolled { background: rgba(250,245,238,0.95); box-shadow: 0 2px 20px rgba(0,0,0,0.06); }
.lp-nav__logo { font-family: var(--ff-head); font-weight: 900; font-size: 22px; display: flex; align-items: center; gap: 10px; }
.lp-nav__logo-dot { width: 28px; height: 28px; border-radius: 50%; background: var(--grad-pill); }
.lp-nav__links { display: flex; gap: 32px; font-size: 14px; font-weight: 600; }
.lp-nav__links a { color: var(--text); transition: color 0.2s; }
.lp-nav__links a:hover { color: var(--purple); }
.lp-nav__cta {
  background: var(--grad-pill); color: var(--white);
  padding: 10px 28px; border-radius: var(--r-pill);
  font-weight: 700; font-size: 14px;
  transition: transform 0.2s, box-shadow 0.2s;
}
.lp-nav__cta:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(168,85,247,0.3); }

/* --- Hero --- */
.lp-hero {
  position: relative;
  min-height: 100vh;
  display: flex; align-items: center;
  padding: 120px 64px 80px;
  background: var(--cream);
  overflow: hidden;
}
.lp-hero__content { max-width: 600px; position: relative; z-index: 2; }
.lp-hero__badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--grad-pill); color: var(--white);
  padding: 8px 20px; border-radius: var(--r-pill);
  font-size: 13px; font-weight: 700; margin-bottom: 24px;
}
.lp-hero__title {
  font-family: var(--ff-head); font-weight: 900;
  font-size: clamp(48px, 7vw, 88px);
  line-height: 1.05; letter-spacing: -0.02em;
  margin-bottom: 24px;
}
.lp-hero__title span {
  background: var(--grad-main);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.lp-hero__sub { font-size: 18px; color: var(--text-sub); max-width: 480px; margin-bottom: 40px; line-height: 1.8; }
.lp-hero__actions { display: flex; gap: 16px; flex-wrap: wrap; }
.btn-primary {
  background: var(--grad-pill); color: var(--white);
  padding: 16px 40px; border-radius: var(--r-pill);
  font-weight: 700; font-size: 16px;
  transition: transform 0.2s, box-shadow 0.2s;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 32px rgba(168,85,247,0.35); }
.btn-secondary {
  background: var(--white); color: var(--text);
  padding: 16px 40px; border-radius: var(--r-pill);
  font-weight: 700; font-size: 16px;
  border: 2px solid var(--border);
  transition: border-color 0.2s;
}
.btn-secondary:hover { border-color: var(--purple); }

/* Hero deco */
.lp-hero__deco {
  position: absolute; top: -10%; right: -5%;
  width: 45%; height: 90%;
  background: linear-gradient(135deg, #EC4899, #A855F7, #6366F1);
  transform: rotate(45deg);
  border-radius: 24px; z-index: 0;
  animation: float 6s ease-in-out infinite;
}
.lp-hero__deco2 {
  position: absolute; top: 8%; right: 2%;
  width: 35%; height: 70%;
  background: linear-gradient(135deg, rgba(168,85,247,0.25), rgba(129,140,248,0.35));
  transform: rotate(45deg);
  border-radius: 24px; z-index: 0;
  animation: float 6s ease-in-out infinite 1s;
}
.doodle { position: absolute; color: var(--magenta); font-size: 32px; z-index: 3; pointer-events: none; }
.doodle--white { color: var(--white); opacity: 0.9; }
.doodle--1 { top: 8%; right: 8%; }
.doodle--2 { bottom: 8%; right: 42%; font-size: 24px; }

@keyframes float {
  0%, 100% { transform: rotate(45deg) translateY(0); }
  50%      { transform: rotate(45deg) translateY(-14px); }
}

/* --- Section Common --- */
.lp-section { padding: 100px 64px; position: relative; overflow: hidden; }
.lp-section--cream { background: var(--cream); }
.lp-section--grad { background: var(--grad-main); color: var(--white); }
.lp-section--wash { background: var(--grad-wash); }

.lp-section__label {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--ff-label); font-size: 13px; font-weight: 700;
  color: var(--purple); text-transform: uppercase; letter-spacing: 0.08em;
  margin-bottom: 16px;
}
.lp-section--grad .lp-section__label { color: rgba(255,255,255,0.8); }

.lp-section__title {
  font-family: var(--ff-head); font-weight: 900;
  font-size: clamp(32px, 4vw, 52px);
  line-height: 1.15; letter-spacing: -0.02em;
  margin-bottom: 20px;
}
.lp-section__desc { font-size: 16px; color: var(--text-sub); max-width: 560px; margin-bottom: 48px; }
.lp-section--grad .lp-section__desc { color: rgba(255,255,255,0.8); }

/* --- Feature Cards --- */
.feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }
.feature-card {
  background: var(--white); border-radius: var(--r-card);
  padding: 40px 36px;
  transition: transform 0.3s, box-shadow 0.3s;
}
.feature-card:hover { transform: translateY(-6px); box-shadow: 0 20px 48px rgba(0,0,0,0.08); }
.feature-card__icon {
  width: 56px; height: 56px; border-radius: 16px;
  background: var(--grad-pill);
  display: flex; align-items: center; justify-content: center;
  font-size: 24px; color: var(--white); margin-bottom: 20px;
}
.feature-card__title { font-family: var(--ff-head); font-weight: 800; font-size: 20px; margin-bottom: 12px; }
.feature-card__text { font-size: 14px; color: var(--text-sub); line-height: 1.7; }

/* --- How it works (Grad bg + list bars) --- */
.how-grid { display: flex; gap: 32px; align-items: flex-start; flex-wrap: wrap; }
.how-card {
  background: var(--cream); border-radius: var(--r-card);
  padding: 40px; max-width: 380px; flex-shrink: 0;
}
.how-card__title { font-family: var(--ff-head); font-weight: 900; font-size: 28px; margin-bottom: 8px; }
.how-card__sub { font-size: 14px; opacity: 0.8; }
.how-bars { flex: 1; display: flex; flex-direction: column; gap: 14px; min-width: 300px; }
.how-bar {
  background: rgba(250,245,238,0.95); border-radius: 40px;
  padding: 22px 36px; font-weight: 700; font-size: 17px; color: var(--text);
  display: flex; align-items: center; gap: 16px;
  transition: transform 0.2s;
}
.how-bar:hover { transform: translateX(8px); }
.how-bar__num {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--grad-pill); color: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-size: 15px; font-weight: 800; flex-shrink: 0;
}

/* --- Stats --- */
.stats-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-top: 48px; }
.stat-item { text-align: center; }
.stat-item__num {
  font-family: var(--ff-head); font-weight: 900;
  font-size: 48px;
  background: var(--grad-main); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.stat-item__label { font-size: 14px; color: var(--text-sub); margin-top: 4px; }

/* --- CTA Section --- */
.cta-box {
  background: var(--grad-main);
  border-radius: var(--r-card);
  padding: 64px; text-align: center; color: var(--white);
}
.cta-box__title { font-family: var(--ff-head); font-weight: 900; font-size: 36px; margin-bottom: 16px; }
.cta-box__desc { font-size: 16px; opacity: 0.85; margin-bottom: 32px; }
.btn-white {
  background: var(--white); color: var(--text);
  padding: 16px 48px; border-radius: var(--r-pill);
  font-weight: 700; font-size: 16px;
  transition: transform 0.2s, box-shadow 0.2s;
}
.btn-white:hover { transform: translateY(-2px); box-shadow: 0 12px 32px rgba(255,255,255,0.3); }

/* --- Footer --- */
.lp-footer {
  border-top: 4px solid transparent;
  border-image: var(--grad-footer) 1;
  padding: 32px 64px;
  display: flex; justify-content: space-between; align-items: center;
  background: var(--cream);
  font-size: 13px; color: var(--text-sub);
}

/* --- Fade-in animation --- */
.fade-in { opacity: 0; transform: translateY(24px); transition: opacity 0.6s ease, transform 0.6s ease; }
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* =====================================================
   DASHBOARD STYLES
   ===================================================== */

.dash { display: flex; min-height: 100vh; background: var(--white); }

/* Sidebar */
.dash-sidebar {
  width: 260px; background: var(--white);
  border-right: 1px solid var(--border);
  display: flex; flex-direction: column;
  padding: 24px 0; flex-shrink: 0;
  position: fixed; top: 0; bottom: 0; left: 0; z-index: 50;
}
.dash-sidebar__logo {
  font-family: var(--ff-head); font-weight: 900; font-size: 18px;
  display: flex; align-items: center; gap: 10px;
  padding: 0 24px; margin-bottom: 32px;
}
.dash-sidebar__logo-dot { width: 24px; height: 24px; border-radius: 50%; background: var(--grad-pill); }
.dash-sidebar__nav { flex: 1; display: flex; flex-direction: column; gap: 2px; padding: 0 12px; }
.dash-sidebar__item {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 16px; border-radius: 8px;
  font-size: 14px; font-weight: 500; color: var(--text-sub);
  transition: all 0.15s ease;
}
.dash-sidebar__item:hover { background: var(--surface); color: var(--text); }
.dash-sidebar__item.active { background: var(--accent-light); color: var(--accent); font-weight: 600; }
.dash-sidebar__item svg { width: 20px; height: 20px; flex-shrink: 0; }
.dash-sidebar__divider { height: 1px; background: var(--border); margin: 16px 24px; }

/* Main content */
.dash-main { flex: 1; margin-left: 260px; padding: 0; }
.dash-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 32px;
  border-bottom: 1px solid var(--border);
  background: var(--white);
  position: sticky; top: 0; z-index: 40;
}
.dash-header__title { font-family: var(--ff-head); font-size: 22px; font-weight: 800; }
.dash-header__actions { display: flex; gap: 12px; align-items: center; }

/* Dashboard buttons */
.dash-btn {
  padding: 8px 20px; border-radius: 8px;
  font-size: 14px; font-weight: 600;
  transition: all 0.15s ease;
}
.dash-btn--primary { background: var(--accent); color: var(--white); }
.dash-btn--primary:hover { background: var(--accent-hover); }
.dash-btn--secondary { background: var(--white); color: var(--text); border: 1px solid var(--border); }
.dash-btn--secondary:hover { border-color: var(--accent); }
.dash-btn--sm { padding: 6px 14px; font-size: 13px; }

.dash-content { padding: 28px 32px; }

/* KPI Cards */
.kpi-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-bottom: 28px; }
.kpi-card {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--r-dash); padding: 20px 24px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}
.kpi-card__label { font-size: 12px; font-weight: 600; color: var(--text-sub); text-transform: uppercase; letter-spacing: 0.04em; }
.kpi-card__value { font-size: 32px; font-weight: 700; margin: 6px 0 4px; }
.kpi-card__change { font-size: 13px; font-weight: 600; display: inline-flex; align-items: center; gap: 4px; }
.kpi-card__change--up { color: var(--success); }
.kpi-card__change--down { color: var(--error); }

/* Charts area */
.chart-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 20px; margin-bottom: 28px; }
.chart-card {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--r-dash); padding: 24px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
  overflow: hidden;
  min-height: 0;
}
.chart-card canvas {
  width: 100% !important;
  max-height: 240px;
}
.chart-card__title { font-size: 15px; font-weight: 600; margin-bottom: 16px; }

/* Video Queue */
.queue-card {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--r-dash); padding: 24px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04); margin-bottom: 28px;
}
.queue-card__header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.queue-card__title { font-size: 15px; font-weight: 600; }

/* Table */
.dash-table { width: 100%; border-collapse: collapse; }
.dash-table thead th {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  font-size: 12px; font-weight: 600; color: var(--text-sub);
  text-transform: uppercase; letter-spacing: 0.05em;
  padding: 12px 16px; text-align: left;
}
.dash-table tbody td {
  border-bottom: 1px solid var(--border-l);
  padding: 14px 16px; font-size: 14px;
}
.dash-table tbody tr:hover { background: var(--surface); }

/* Badges */
.badge {
  display: inline-flex; padding: 3px 10px; border-radius: 4px;
  font-size: 12px; font-weight: 600;
}
.badge--success { background: var(--success-bg); color: #065F46; }
.badge--warning { background: var(--warning-bg); color: #92400E; }
.badge--error   { background: var(--error-bg);   color: #991B1B; }
.badge--info    { background: var(--info-bg);    color: #1E40AF; }
.badge--purple  { background: rgba(124,58,237,0.1); color: var(--accent); }

/* Video thumbnail in table */
.video-thumb {
  width: 48px; height: 64px;
  border-radius: 6px; object-fit: cover;
  background: var(--grad-wash);
}
.video-info { display: flex; align-items: center; gap: 14px; }
.video-info__text { display: flex; flex-direction: column; }
.video-info__name { font-weight: 600; font-size: 14px; }
.video-info__dur { font-size: 12px; color: var(--text-sub); }

/* Schedule Calendar */
.schedule-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; }
.schedule-day {
  background: var(--surface); border-radius: 8px;
  padding: 12px; min-height: 80px;
  font-size: 13px;
}
.schedule-day__num { font-weight: 700; margin-bottom: 6px; }
.schedule-day__event {
  background: var(--accent-light);
  border-left: 3px solid var(--accent);
  border-radius: 4px; padding: 4px 8px;
  font-size: 11px; font-weight: 600; color: var(--accent);
  margin-bottom: 4px;
}

/* Upload Zone */
.upload-zone {
  border: 2px dashed var(--border);
  border-radius: var(--r-dash);
  padding: 48px; text-align: center;
  transition: all 0.2s;
  cursor: pointer;
}
.upload-zone:hover { border-color: var(--accent); background: var(--accent-light); }
.upload-zone__icon { font-size: 40px; margin-bottom: 12px; color: var(--accent); }
.upload-zone__text { font-size: 15px; font-weight: 600; color: var(--text); }
.upload-zone__hint { font-size: 13px; color: var(--text-sub); margin-top: 4px; }

/* Modal */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,0.4);
  display: none; align-items: center; justify-content: center; z-index: 1000;
}
.modal-overlay.active { display: flex; }
.modal {
  background: var(--white); border-radius: 16px;
  padding: 32px; width: 100%; max-width: 520px;
  box-shadow: 0 24px 64px rgba(0,0,0,0.15);
}
.modal__title { font-family: var(--ff-head); font-weight: 800; font-size: 20px; margin-bottom: 20px; }
.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-size: 13px; font-weight: 600; color: var(--text-sub); margin-bottom: 6px; }
.form-input {
  width: 100%; padding: 10px 14px;
  border: 1px solid var(--border); border-radius: 8px;
  font-size: 14px; font-family: var(--ff-body);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.form-input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(124,58,237,0.1); outline: none; }
.form-input--textarea { min-height: 80px; resize: vertical; }

/* Chart placeholder via CSS gradient animation */
.chart-placeholder {
  width: 100%; height: 200px;
  border-radius: 8px;
  position: relative;
  overflow: hidden;
}

/* =====================================================
   RESPONSIVE
   ===================================================== */
/* =====================================================
   STRATEGY COPILOT - Insights / Review / Strategy
   ===================================================== */
.insights-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 16px;
}
.insight-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px;
  cursor: pointer;
  transition: box-shadow .2s, border-color .2s;
  position: relative;
}
.insight-card:hover {
  border-color: var(--accent);
  box-shadow: 0 4px 16px rgba(124,58,237,.1);
}
.insight-card__score {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 15px;
  color: #fff;
}
.insight-card__score--high { background: linear-gradient(135deg, #10b981, #059669); }
.insight-card__score--mid { background: linear-gradient(135deg, #f59e0b, #d97706); }
.insight-card__score--low { background: linear-gradient(135deg, #ef4444, #dc2626); }
.insight-card__title {
  font-weight: 700;
  font-size: 14px;
  margin-bottom: 8px;
  padding-right: 52px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.insight-card__metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin: 12px 0;
}
.insight-card__metric {
  text-align: center;
  padding: 6px 4px;
  border-radius: 8px;
  background: var(--bg);
}
.insight-card__metric-val {
  font-weight: 700;
  font-size: 16px;
  color: var(--text-main);
}
.insight-card__metric-label {
  font-size: 10px;
  color: var(--text-sub);
  text-transform: uppercase;
  letter-spacing: .5px;
}
.insight-card__ai {
  font-size: 13px;
  color: var(--text-sub);
  line-height: 1.5;
  margin-top: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.insight-card__tags {
  display: flex;
  gap: 6px;
  margin-top: 10px;
  flex-wrap: wrap;
}
.insight-tag {
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 4px;
  background: var(--accent-light);
  color: var(--accent);
  font-weight: 600;
}
/* Review page */
.review-section {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 16px;
}
.review-section__title {
  font-weight: 700;
  font-size: 16px;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.review-kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
}
.review-kpi {
  text-align: center;
  padding: 16px 8px;
  border-radius: 10px;
  background: var(--bg);
}
.review-kpi__val {
  font-weight: 800;
  font-size: 22px;
  color: var(--accent);
}
.review-kpi__label {
  font-size: 11px;
  color: var(--text-sub);
  margin-top: 2px;
  text-transform: uppercase;
}
.action-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}
.action-item:last-child { border-bottom: none; }
.action-item__num {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.action-item__text {
  font-size: 14px;
  line-height: 1.5;
}
.action-item__reason {
  font-size: 12px;
  color: var(--text-sub);
  margin-top: 2px;
}
/* Strategy output */
.strategy-brief {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 28px;
  line-height: 1.7;
  font-size: 14px;
}
.strategy-brief h2 {
  font-size: 18px;
  font-weight: 700;
  margin: 24px 0 12px;
  color: var(--accent);
}
.strategy-brief h2:first-child { margin-top: 0; }
.strategy-brief h3 { font-size: 15px; font-weight: 700; margin: 16px 0 8px; }
.strategy-brief ul { padding-left: 20px; margin: 8px 0; }
.strategy-brief li { margin: 4px 0; }
.video-idea-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 16px;
  margin-bottom: 12px;
}
.video-idea-card__title {
  font-weight: 700;
  font-size: 14px;
  margin-bottom: 6px;
}
.video-idea-card__hook {
  font-size: 13px;
  color: var(--accent);
  font-style: italic;
  margin-bottom: 8px;
}
.video-idea-card__meta {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.comment-bubble {
  background: var(--bg);
  border-radius: 10px;
  padding: 12px 16px;
  margin-bottom: 8px;
}
.comment-bubble__header {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: var(--text-sub);
  margin-bottom: 4px;
}
.comment-bubble__body { font-size: 13px; line-height: 1.5; }
.copilot-loading {
  text-align: center;
  padding: 40px;
  color: var(--text-sub);
}
.copilot-loading__spinner {
  width: 36px;
  height: 36px;
  border: 3px solid var(--border);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto 12px;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* =====================================================
   Phase 2: Dispatch / Execution / Integrations
   ===================================================== */

/* Status Badges */
.status-badge {
  display: inline-block; padding: 3px 10px; border-radius: 999px;
  font-size: 11px; font-weight: 600; letter-spacing: 0.3px; text-transform: uppercase;
  background: var(--surface-hover); color: var(--text-sub);
}
.status-badge--draft { background: #f3f4f6; color: #6b7280; }
.status-badge--approved { background: #d1fae5; color: #065f46; }
.status-badge--dispatched { background: #dbeafe; color: #1e40af; }
.status-badge--sent { background: #d1fae5; color: #065f46; }
.status-badge--failed { background: #fee2e2; color: #991b1b; }
.status-badge--pending { background: #fef3c7; color: #92400e; }
.status-badge--acknowledged { background: #ede9fe; color: #5b21b6; }
.status-badge--in_progress { background: #dbeafe; color: #1e40af; }
.status-badge--completed { background: #d1fae5; color: #065f46; }

/* Integration Card */
.integration-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: 12px;
  padding: 20px; margin-bottom: 12px; transition: box-shadow 0.15s;
}
.integration-card:hover { box-shadow: 0 2px 12px rgba(0,0,0,0.06); }
.integration-card__header {
  display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px;
}
.integration-card__title { font-weight: 700; font-size: 15px; }
.integration-card__type {
  display: inline-block; padding: 2px 8px; border-radius: 6px;
  font-size: 11px; font-weight: 600; text-transform: uppercase;
  background: var(--gradient-1); color: white;
}
.integration-card__type--slack { background: #4a154b; }
.integration-card__type--notion { background: #000; }
.integration-card__url { font-size: 12px; color: var(--text-sub); word-break: break-all; margin-bottom: 8px; }
.integration-card__actions { display: flex; gap: 8px; }

/* Execution Task Card */
.exec-task-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: 12px;
  padding: 16px 20px; margin-bottom: 8px; display: flex; gap: 12px; align-items: flex-start;
}
.exec-task-card__checkbox {
  width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--border);
  cursor: pointer; flex-shrink: 0; margin-top: 2px; transition: all 0.15s;
}
.exec-task-card__checkbox--done { background: var(--accent); border-color: var(--accent); }
.exec-task-card__body { flex: 1; }
.exec-task-card__title { font-weight: 600; font-size: 14px; margin-bottom: 4px; }
.exec-task-card__desc { font-size: 12px; color: var(--text-sub); margin-bottom: 6px; }
.exec-task-card__meta { display: flex; gap: 12px; font-size: 11px; color: var(--text-sub); flex-wrap: wrap; }

/* Dispatch row helper */
.dispatch-row-actions { display: flex; gap: 6px; }

/* Version compare modal */
.version-compare {
  display: grid; grid-template-columns: 1fr 1fr; gap: 16px; max-height: 70vh; overflow-y: auto;
}
.version-compare__col { padding: 12px; border-radius: 8px; background: var(--surface-hover); font-size: 13px; line-height: 1.6; }
.version-compare__label { font-weight: 700; margin-bottom: 8px; font-size: 12px; text-transform: uppercase; color: var(--text-sub); }

/* Dispatch quick-select modal */
.dispatch-modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.4); z-index: 1000; display: flex; align-items: center; justify-content: center; }
.dispatch-modal { background: var(--surface); border-radius: 16px; padding: 24px; width: 400px; max-width: 90vw; }
.dispatch-modal__title { font-size: 16px; font-weight: 700; margin-bottom: 16px; }

/* Phase 3: Learning Loop / Patterns */
.perf-kpi {
  background: var(--surface); border: 1px solid var(--border); border-radius: 12px;
  padding: 16px; text-align: center;
}
.perf-kpi__value { font-size: 28px; font-weight: 800; background: var(--gradient-1); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.perf-kpi__label { font-size: 11px; color: var(--text-sub); margin-top: 4px; text-transform: uppercase; letter-spacing: 0.5px; }

.perf-type-row {
  display: flex; align-items: center; gap: 12px; padding: 10px 0;
  border-bottom: 1px solid var(--border);
}
.perf-type-row:last-child { border-bottom: none; }
.perf-type-name { font-weight: 600; min-width: 80px; font-size: 13px; }
.perf-type-bar { flex: 1; height: 8px; background: var(--surface-hover); border-radius: 4px; overflow: hidden; }
.perf-type-bar__fill { height: 100%; border-radius: 4px; transition: width 0.3s; }
.perf-type-stat { font-size: 12px; color: var(--text-sub); min-width: 60px; text-align: right; }

.proposal-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: 10px;
  padding: 14px 16px; margin-bottom: 8px; display: flex; gap: 12px; align-items: flex-start;
}
.proposal-card__type {
  display: inline-block; padding: 2px 8px; border-radius: 6px;
  font-size: 10px; font-weight: 700; text-transform: uppercase;
  background: var(--surface-hover); color: var(--text-sub); flex-shrink: 0;
}
.proposal-card__body { flex: 1; }
.proposal-card__text { font-size: 13px; line-height: 1.5; margin-bottom: 6px; }
.proposal-card__meta { font-size: 11px; color: var(--text-sub); display: flex; gap: 12px; flex-wrap: wrap; }
.proposal-card__actions { display: flex; gap: 6px; flex-shrink: 0; align-items: center; }

.adopt-btn {
  padding: 4px 10px; border-radius: 6px; border: 1px solid var(--border);
  font-size: 11px; font-weight: 600; cursor: pointer; background: var(--surface);
  transition: all 0.15s;
}
.adopt-btn:hover { background: var(--surface-hover); }
.adopt-btn--adopted { background: #d1fae5; border-color: #6ee7b7; color: #065f46; }
.adopt-btn--skipped { background: #fee2e2; border-color: #fca5a5; color: #991b1b; }

.pattern-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: 12px;
  padding: 20px; margin-bottom: 12px;
}
.pattern-card__header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 8px; }
.pattern-card__name { font-weight: 700; font-size: 15px; }
.pattern-card__rate {
  font-size: 20px; font-weight: 800;
  background: var(--gradient-1); -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.pattern-card__desc { font-size: 13px; color: var(--text-sub); line-height: 1.5; margin-bottom: 10px; }
.pattern-card__stats { display: flex; gap: 16px; font-size: 12px; color: var(--text-sub); flex-wrap: wrap; }
.pattern-card__stat-value { font-weight: 700; color: var(--text-main); }

/* --- Proposal Accuracy Dashboard v1.0 --- */
.perf-kpi--highlight .perf-kpi__value { font-size: 24px; }
.perf-kpi--success .perf-kpi__value { color: #10b981; -webkit-text-fill-color: #10b981; }
.perf-kpi--warn .perf-kpi__value { color: #f59e0b; -webkit-text-fill-color: #f59e0b; }

.score-dist-bar {
  flex: 1; border-radius: 4px 4px 0 0; min-width: 0; position: relative; transition: height 0.4s ease;
  display: flex; align-items: flex-end; justify-content: center;
}
.score-dist-bar__count {
  font-size: 11px; font-weight: 700; color: #fff; padding-bottom: 4px;
}
.score-dist-bar--failed { background: #ef4444; }
.score-dist-bar--weak { background: #f59e0b; }
.score-dist-bar--good { background: #3b82f6; }
.score-dist-bar--strong { background: #10b981; }
.score-dist-bar--exceptional { background: linear-gradient(135deg, var(--indigo), var(--magenta)); }

.adoption-row {
  display: flex; align-items: center; gap: 12px; padding: 10px 0;
  border-bottom: 1px solid rgba(0,0,0,0.06);
}
.adoption-row:last-child { border-bottom: none; }
.adoption-row__label { min-width: 80px; font-weight: 600; font-size: 13px; text-transform: capitalize; }
.adoption-row__bar { flex: 1; height: 24px; background: rgba(0,0,0,0.04); border-radius: 4px; overflow: hidden; }
.adoption-row__fill { height: 100%; border-radius: 4px; display: flex; align-items: center; padding-left: 8px; font-size: 11px; font-weight: 700; color: #fff; transition: width 0.4s ease; }
.adoption-row__stat { min-width: 60px; text-align: right; font-size: 12px; color: var(--text-sub); }

.conf-band-row {
  display: flex; align-items: center; gap: 12px; padding: 8px 0;
  border-bottom: 1px solid rgba(0,0,0,0.06);
}
.conf-band-row:last-child { border-bottom: none; }
.conf-band-row__label { min-width: 60px; font-weight: 600; font-size: 12px; color: var(--text-sub); }
.conf-band-row__bar { flex: 1; height: 20px; background: rgba(0,0,0,0.04); border-radius: 4px; overflow: hidden; }
.conf-band-row__fill { height: 100%; border-radius: 4px; display: flex; align-items: center; padding-left: 8px; font-size: 10px; font-weight: 700; color: #fff; }
.conf-band-row__stats { display: flex; gap: 12px; font-size: 11px; color: var(--text-sub); }

@media (max-width: 1024px) {
  .kpi-grid { grid-template-columns: repeat(2, 1fr); }
  .chart-grid { grid-template-columns: 1fr; }
  .stats-row { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .lp-nav { padding: 12px 24px; }
  .lp-nav__links { display: none; }
  .lp-hero { padding: 100px 24px 60px; }
  .lp-section { padding: 60px 24px; }
  .lp-hero__deco, .lp-hero__deco2 { width: 60%; }
  .how-grid { flex-direction: column; }
  .kpi-grid { grid-template-columns: 1fr; }
  .dash-sidebar { display: none; }
  .dash-main { margin-left: 0; }
  .lp-footer { flex-direction: column; gap: 8px; text-align: center; }
  .stats-row { grid-template-columns: 1fr 1fr; }
}
