/* Go Digit Internal Catalog — Shared Styles */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: "Sukhumvit Set", "Helvetica Neue", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: #1a1a1a; line-height: 1.55; background: #fafafa; -webkit-font-smoothing: antialiased;
}
:root {
  --orange: #F49E1F; --orange-deep: #F15F28; --orange-mid: #F36F39;
  --purple: #3F2C76; --pink: #EA137A; --ink: #1a1a1a; --ink-soft: #555;
  --line: #e5e5e5; --bg: #fafafa; --card: #fff; --warn: #d32f2f;
  --radius: 10px;
}
a { color: var(--orange-deep); text-decoration: none; }
a:hover { text-decoration: underline; }

/* Layout */
.app { display: grid; grid-template-columns: 260px 1fr; min-height: 100vh; }
.sidebar {
  background: #fff; border-right: 1px solid var(--line);
  padding: 20px 16px; position: sticky; top: 0; height: 100vh; overflow-y: auto;
}
.sidebar .logo { height: 36px; margin-bottom: 24px; }
.sidebar .brand-tag {
  font-size: 11px; color: var(--orange-deep); font-weight: 700;
  letter-spacing: 1.2px; text-transform: uppercase; margin-bottom: 20px;
}
.sidebar nav { display: flex; flex-direction: column; gap: 2px; }
.sidebar nav a {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 12px; border-radius: 8px; color: var(--ink-soft);
  font-size: 14px; font-weight: 500; text-decoration: none;
  transition: background 0.15s, color 0.15s;
}
.sidebar nav a:hover { background: #f5f5f5; color: var(--ink); }
.sidebar nav a.active { background: #fff4e6; color: var(--orange-deep); font-weight: 600; }
.sidebar nav a .icon { width: 18px; display: inline-block; text-align: center; }
.sidebar .section-label {
  font-size: 10px; text-transform: uppercase; letter-spacing: 1.5px;
  color: #999; padding: 14px 12px 6px; font-weight: 700;
}

.main { padding: 36px 44px; max-width: 1200px; }
.page-title {
  font-size: 28px; font-weight: 800; margin-bottom: 6px; letter-spacing: -0.01em;
}
.page-desc { color: var(--ink-soft); font-size: 15px; margin-bottom: 28px; }
.breadcrumb { font-size: 12px; color: #999; letter-spacing: 1px; text-transform: uppercase; margin-bottom: 14px; font-weight: 600; }

/* Cards */
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px 22px; margin-bottom: 18px;
}
.card h3 { font-size: 18px; font-weight: 700; margin-bottom: 10px; }
.card h4 { font-size: 15px; font-weight: 700; margin: 16px 0 8px; }
.card p { color: var(--ink-soft); font-size: 14px; margin-bottom: 10px; }
.card ul { font-size: 14px; color: var(--ink-soft); padding-left: 20px; margin-bottom: 10px; }
.card li { padding: 3px 0; }

.card.hero {
  background: linear-gradient(135deg, var(--purple), #2d1f57);
  color: white; border: none;
}
.card.hero h1, .card.hero h2, .card.hero h3 { color: white; }
.card.hero p { color: rgba(255,255,255,0.85); }

.card.accent { border-left: 4px solid var(--orange-deep); }

/* Grid layouts */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
@media (max-width: 900px) { .grid-3, .grid-4 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

/* Tables */
table { width: 100%; border-collapse: collapse; font-size: 14px; margin: 12px 0; }
th, td { padding: 10px 12px; text-align: left; border-bottom: 1px solid var(--line); }
th { background: #f5f5f5; font-weight: 700; font-size: 12px; text-transform: uppercase; letter-spacing: 0.8px; color: #555; }
tr:hover td { background: #fafafa; }

/* Badges & Pills */
.badge {
  display: inline-block; padding: 3px 10px; border-radius: 999px;
  font-size: 11px; font-weight: 700; letter-spacing: 0.5px; text-transform: uppercase;
}
.badge.hero { background: var(--orange-deep); color: white; }
.badge.recur { background: var(--purple); color: white; }
.badge.build { background: #2563eb; color: white; }
.badge.front { background: var(--orange); color: white; }
.badge.hook { background: #10b981; color: white; }
.badge.internal { background: var(--warn); color: white; }
.badge.soft { background: #f0f0f0; color: #555; }

/* Quote / script blocks */
.script {
  background: #fff7ec; border-left: 3px solid var(--orange);
  padding: 14px 16px; border-radius: 6px; margin: 10px 0;
  font-style: italic; color: #4a3a1a; font-size: 14px; line-height: 1.6;
  position: relative;
}
.script .copy-btn {
  position: absolute; top: 8px; right: 8px;
  background: var(--orange-deep); color: white; border: none;
  padding: 4px 10px; border-radius: 5px; font-size: 11px; font-weight: 600;
  cursor: pointer;
}
.script .copy-btn:hover { background: var(--orange); }
.script.success .copy-btn { background: #10b981; }

.objection {
  background: #f9f9f9; border: 1px solid var(--line);
  padding: 12px 14px; border-radius: 6px; margin: 8px 0; font-size: 14px;
}
.objection .q { font-weight: 700; color: var(--warn); margin-bottom: 6px; }
.objection .a { color: var(--ink-soft); font-style: italic; }

/* Warning banner */
.warning-banner {
  background: #ffebee; border: 2px solid var(--warn); border-radius: var(--radius);
  padding: 16px 20px; margin-bottom: 20px;
  color: #b71c1c; font-size: 14px; font-weight: 600;
}
.warning-banner::before { content: "⚠️ "; }

/* Confidential gate overlay */
.gate {
  position: fixed; inset: 0; background: rgba(20,20,25,0.96);
  display: flex; align-items: center; justify-content: center;
  z-index: 999; padding: 24px;
}
.gate-card {
  background: white; padding: 36px 44px; border-radius: 16px; max-width: 560px;
  text-align: center; border-top: 6px solid var(--warn);
}
.gate-card h2 { color: var(--warn); font-size: 22px; margin-bottom: 14px; }
.gate-card p { color: #444; font-size: 14px; line-height: 1.65; margin-bottom: 20px; }
.gate-card .btn-acknowledge {
  background: var(--warn); color: white; border: none;
  padding: 11px 24px; border-radius: 8px; font-weight: 700; font-size: 14px;
  cursor: pointer; letter-spacing: 0.3px;
}
.gate-card .btn-acknowledge:hover { background: #b71c1c; }
.gate-card .btn-back {
  background: #f0f0f0; color: #555; border: none; padding: 11px 24px;
  border-radius: 8px; font-weight: 600; font-size: 14px; cursor: pointer;
  margin-left: 8px;
}

/* Misc */
.kv { display: flex; gap: 10px; font-size: 13px; margin: 4px 0; }
.kv .k { color: #888; min-width: 110px; font-weight: 500; }
.kv .v { color: var(--ink); font-weight: 600; }

.stat-row { display: flex; gap: 24px; flex-wrap: wrap; margin: 12px 0; }
.stat { background: #f7f7f7; padding: 12px 16px; border-radius: 8px; }
.stat .n { font-size: 22px; font-weight: 800; color: var(--orange-deep); }
.stat .l { font-size: 11px; color: #666; letter-spacing: 0.5px; text-transform: uppercase; }

.pitch-tier {
  display: inline-block; padding: 4px 10px; border-radius: 6px;
  background: var(--purple); color: white; font-size: 11px;
  font-weight: 700; letter-spacing: 0.8px; text-transform: uppercase; margin-bottom: 10px;
}

/* Mobile */
@media (max-width: 900px) {
  .app { grid-template-columns: 1fr; }
  .sidebar { position: static; height: auto; border-right: none; border-bottom: 1px solid var(--line); }
  .sidebar nav { flex-direction: row; flex-wrap: wrap; gap: 4px; }
  .sidebar .section-label { display: none; }
  .main { padding: 24px; }
}

/* Print */
@media print {
  .sidebar { display: none; }
  .app { grid-template-columns: 1fr; }
  .main { padding: 0; max-width: none; }
  .card { break-inside: avoid; page-break-inside: avoid; }
  .gate { display: none; }
  a { color: inherit; text-decoration: none; }
}
