/* ============================================================
   Warren Help Site — Design System
   ============================================================ */

:root {
  --brand:       #5B4FE9;
  --brand-light: #EEF0FF;
  --brand-dark:  #3D34C7;
  --teal:        #0EB6A2;
  --amber:       #F59E0B;
  --pink:        #EC4899;
  --purple:      #8B5CF6;

  --ink:         #0F0F14;
  --ink-2:       #3A3A4A;
  --ink-3:       #6B6B80;
  --ink-4:       #9F9FB0;
  --border:      #E4E4EF;
  --surface:     #F8F8FC;
  --white:       #FFFFFF;

  --radius-sm:   6px;
  --radius-md:   12px;
  --radius-lg:   20px;
  --radius-xl:   28px;

  --shadow-sm:   0 1px 3px rgba(0,0,0,.07), 0 1px 2px rgba(0,0,0,.05);
  --shadow-md:   0 4px 16px rgba(0,0,0,.08), 0 1px 4px rgba(0,0,0,.04);
  --shadow-lg:   0 12px 40px rgba(0,0,0,.10), 0 2px 8px rgba(0,0,0,.06);

  --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --max-w: 1160px;
  --transition: 180ms ease;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink-2);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }

img { max-width: 100%; display: block; }

.container {
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: 24px;
}

/* ============================================================
   Buttons
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 18px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  border: none;
  white-space: nowrap;
}

.btn-primary {
  background: var(--brand);
  color: var(--white);
}
.btn-primary:hover { background: var(--brand-dark); text-decoration: none; }

.btn-ghost {
  background: transparent;
  color: var(--ink-2);
  border: 1.5px solid var(--border);
}
.btn-ghost:hover { background: var(--surface); text-decoration: none; }

.btn-lg { padding: 13px 26px; font-size: 16px; }

/* ============================================================
   Site Header
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.site-header .container {
  display: flex;
  align-items: center;
  height: 60px;
  gap: 32px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 17px;
  color: var(--ink);
  text-decoration: none;
  flex-shrink: 0;
}
.logo:hover { text-decoration: none; }

.logo-mark {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  border-radius: 8px;
  overflow: hidden;
  flex-shrink: 0;
}
.logo-mark img { width: 100%; height: 100%; object-fit: contain; display: block; }
.logo-mark.sm { width: 44px; height: 44px; border-radius: 5px; }

.logo-text { color: var(--ink); }

.logo-badge {
  font-size: 11px;
  font-weight: 600;
  color: var(--ink-3);
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 2px 7px;
  border-radius: 100px;
  letter-spacing: .03em;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 1;
}

.site-nav a {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-3);
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  transition: var(--transition);
  text-decoration: none;
}
.site-nav a:hover { color: var(--ink); background: var(--surface); text-decoration: none; }
.site-nav a.active { color: var(--brand); background: var(--brand-light); }

/* ============================================================
   Hero
   ============================================================ */
.hero {
  padding: 72px 0 80px;
  background: linear-gradient(160deg, #FAFAFA 0%, #F0EFFF 100%);
  overflow: hidden;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.eyebrow {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 16px;
}

.hero h1 {
  font-size: clamp(32px, 4vw, 50px);
  font-weight: 700;
  line-height: 1.15;
  color: var(--ink);
  margin-bottom: 20px;
  letter-spacing: -.02em;
}

.hero-sub {
  font-size: 18px;
  color: var(--ink-3);
  line-height: 1.65;
  margin-bottom: 36px;
  max-width: 440px;
}

.hero-cta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* ---- UI Mockup ---- */
.ui-mockup {
  display: flex;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg), 0 0 0 1px var(--border);
  background: var(--white);
  transform: perspective(900px) rotateY(-6deg) rotateX(2deg);
}

.mockup-sidebar {
  width: 130px;
  background: var(--surface);
  border-right: 1px solid var(--border);
  padding: 16px 10px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.mock-nav-item {
  font-size: 12px;
  font-weight: 500;
  color: var(--ink-3);
  padding: 7px 10px;
  border-radius: var(--radius-sm);
  cursor: pointer;
}
.mock-nav-item.active {
  background: var(--brand-light);
  color: var(--brand);
  font-weight: 600;
}

.mockup-content {
  flex: 1;
  padding: 16px;
  min-width: 280px;
}

.mock-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.mock-title { font-size: 13px; font-weight: 700; color: var(--ink); }

.mock-tabs {
  display: flex;
  gap: 4px;
}

.mock-tab {
  font-size: 11px;
  font-weight: 500;
  padding: 4px 10px;
  border-radius: 100px;
  color: var(--ink-3);
  background: var(--surface);
}
.mock-tab.active { background: var(--brand); color: var(--white); }

.mock-grid {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mock-lane {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 36px;
}

.mock-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 9px;
  font-weight: 700;
  color: var(--ink-3);
  flex-shrink: 0;
}

.mock-chip {
  height: 28px;
  border-radius: var(--radius-sm);
  font-size: 10px;
  font-weight: 600;
  display: flex;
  align-items: center;
  padding: 0 10px;
  white-space: nowrap;
  min-width: 64px;
  flex: 1;
}
.mock-chip.teal   { background: #CCFBF1; color: #0F766E; }
.mock-chip.purple { background: #EDE9FE; color: #7C3AED; }
.mock-chip.amber  { background: #FEF3C7; color: #B45309; }
.mock-chip.pink   { background: #FCE7F3; color: #BE185D; }

/* ============================================================
   Topics / Cards Grid
   ============================================================ */
.topics {
  padding: 80px 0;
}

.section-title {
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -.02em;
  text-align: center;
  margin-bottom: 10px;
}

.section-sub {
  text-align: center;
  color: var(--ink-3);
  font-size: 17px;
  margin-bottom: 48px;
}

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

.card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: var(--transition);
  text-decoration: none;
  color: inherit;
}

.card:hover {
  border-color: var(--brand);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
  text-decoration: none;
}

.card--featured {
  grid-column: 1 / -1;
  flex-direction: row;
  align-items: flex-start;
  gap: 28px;
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-dark) 100%);
  border-color: transparent;
  color: white;
}

.card--featured:hover {
  border-color: transparent;
  box-shadow: var(--shadow-lg);
}

.card--featured .card-link { color: var(--white); }

.card-icon {
  font-size: 32px;
  margin-bottom: 16px;
  flex-shrink: 0;
}

.card--featured .card-icon { margin-bottom: 0; margin-top: 4px; font-size: 40px; }

.card-body { flex: 1; }

.card h3 {
  font-size: 17px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 8px;
}

.card--featured h3 { color: var(--white); font-size: 20px; }

.card p { font-size: 14px; color: var(--ink-3); line-height: 1.6; margin-bottom: 16px; }
.card--featured p { color: var(--white); }

.card-link {
  font-size: 13px;
  font-weight: 600;
  color: var(--brand);
}

.card-steps {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.card-steps span {
  font-size: 12px;
  font-weight: 500;
  padding: 4px 12px;
  background: rgba(255,255,255,.18);
  border-radius: 100px;
  color: var(--white);
}

/* ============================================================
   Roles Section
   ============================================================ */
.roles-section {
  padding: 80px 0;
  background: var(--surface);
}

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

.role-card {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
}

.role-label {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 100px;
  margin-bottom: 14px;
}

.role-label.admin   { background: #FEE2E2; color: #B91C1C; }
.role-label.manager { background: #DBEAFE; color: #1D4ED8; }
.role-label.designer{ background: #D1FAE5; color: #065F46; }

.role-card h4 {
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 8px;
}

.role-card p {
  font-size: 14px;
  color: var(--ink-3);
  margin-bottom: 20px;
  line-height: 1.6;
}

.role-card ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.role-card ul li { font-size: 14px; }

.role-card ul li::before {
  content: "→ ";
  color: var(--brand);
  font-weight: 600;
}

/* ============================================================
   Tips Strip
   ============================================================ */
.tips-strip {
  background: var(--ink);
  color: var(--white);
  padding: 16px 0;
}

.tips-strip .container {
  display: flex;
  align-items: center;
  gap: 20px;
}

.tips-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--brand);
  white-space: nowrap;
  flex-shrink: 0;
}

.tips-scroll {
  display: flex;
  gap: 40px;
  overflow-x: auto;
  scrollbar-width: none;
}
.tips-scroll::-webkit-scrollbar { display: none; }

.tips-scroll span {
  font-size: 14px;
  color: rgba(255,255,255,.7);
  white-space: nowrap;
}

kbd {
  display: inline-flex;
  align-items: center;
  font-family: var(--font);
  font-size: 12px;
  font-weight: 600;
  padding: 1px 6px;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 4px;
}

/* ============================================================
   Site Footer
   ============================================================ */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 32px 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  color: var(--ink);
  font-size: 15px;
}

.footer-nav {
  display: flex;
  gap: 20px;
  flex: 1;
}

.footer-nav a { font-size: 13px; color: var(--ink-3); }
.footer-nav a:hover { color: var(--brand); text-decoration: none; }

.footer-note { font-size: 13px; color: var(--ink-4); }

/* ============================================================
   Tutorial Page Layout  (shared by all tutorial pages)
   ============================================================ */
.tutorial-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 0;
  min-height: calc(100vh - 60px);
}

/* ---- Tutorial Sidebar ---- */
.tutorial-sidebar {
  position: sticky;
  top: 60px;
  height: calc(100vh - 60px);
  overflow-y: auto;
  border-right: 1px solid var(--border);
  padding: 32px 0;
  scrollbar-width: thin;
}

.tutorial-sidebar nav { padding-inline: 20px; }

.toc-section { margin-bottom: 32px; }

.toc-section-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-4);
  margin-bottom: 8px;
  padding-left: 10px;
}

.toc-section a {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-3);
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  transition: var(--transition);
  text-decoration: none;
}
.toc-section a:hover { color: var(--ink); background: var(--surface); }
.toc-section a.active { color: var(--brand); background: var(--brand-light); font-weight: 600; }

/* ---- Tutorial Content ---- */
.tutorial-content {
  max-width: 760px;
  padding: 56px 56px 96px;
}

.page-eyebrow {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--ink-3);
  margin-bottom: 16px;
}
.page-eyebrow a { color: var(--ink-3); }
.page-eyebrow .sep { color: var(--border); }

.tutorial-content h1 {
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -.02em;
  line-height: 1.2;
  margin-bottom: 16px;
}

.page-lead {
  font-size: 17px;
  color: var(--ink-3);
  line-height: 1.7;
  margin-bottom: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--border);
}

.tutorial-content h2 {
  font-size: 22px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -.01em;
  margin-top: 52px;
  margin-bottom: 16px;
}

.tutorial-content h3 {
  font-size: 17px;
  font-weight: 700;
  color: var(--ink);
  margin-top: 36px;
  margin-bottom: 12px;
}

.tutorial-content p {
  font-size: 15px;
  line-height: 1.75;
  color: var(--ink-2);
  margin-bottom: 16px;
}

.tutorial-content ul, .tutorial-content ol {
  padding-left: 20px;
  margin-bottom: 16px;
}

.tutorial-content li {
  font-size: 15px;
  line-height: 1.75;
  color: var(--ink-2);
  margin-bottom: 6px;
}

/* ---- Step Blocks ---- */
.steps { display: flex; flex-direction: column; gap: 0; margin: 24px 0 32px; }

.step {
  display: flex;
  gap: 20px;
  position: relative;
}

.step:not(:last-child) .step-connector {
  content: "";
  position: absolute;
  left: 19px;
  top: 40px;
  bottom: 0;
  width: 2px;
  background: var(--border);
}

.step-num {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--brand);
  color: var(--white);
  font-size: 14px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}

.step-body {
  padding-bottom: 32px;
  flex: 1;
}

.step-body h4 {
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 6px;
  margin-top: 6px;
}

.step-body p {
  font-size: 14px;
  color: var(--ink-3);
  margin-bottom: 0;
}

/* ---- Callout Boxes ---- */
.callout {
  display: flex;
  gap: 14px;
  padding: 18px 20px;
  border-radius: var(--radius-md);
  margin: 24px 0;
  font-size: 14px;
  line-height: 1.65;
}

.callout-icon { font-size: 18px; flex-shrink: 0; }

.callout-body { flex: 1; color: var(--ink-2); }
.callout-body strong { color: var(--ink); }

.callout.info   { background: #EFF6FF; border-left: 3px solid #3B82F6; }
.callout.warn   { background: #FFFBEB; border-left: 3px solid var(--amber); }
.callout.tip    { background: var(--brand-light); border-left: 3px solid var(--brand); }
.callout.danger { background: #FEF2F2; border-left: 3px solid #EF4444; }

/* ---- Shortcut Table ---- */
.shortcuts {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0 32px;
  font-size: 14px;
}

.shortcuts th {
  text-align: left;
  padding: 10px 14px;
  background: var(--surface);
  border-bottom: 2px solid var(--border);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.shortcuts td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
  color: var(--ink-2);
  vertical-align: middle;
}

.shortcuts tr:last-child td { border-bottom: none; }
.shortcuts tr:hover td { background: var(--surface); }

.shortcuts kbd {
  font-size: 12px;
  padding: 2px 8px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 5px;
  color: var(--ink);
}

/* ---- Feature Pill Grid ---- */
.pill-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 20px 0;
}

.pill {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: 100px;
  background: var(--surface);
  border: 1.5px solid var(--border);
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-2);
}

.pill-icon { font-size: 14px; }

/* ---- Role Badge ---- */
.badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 100px;
}
.badge.admin    { background: #FEE2E2; color: #B91C1C; }
.badge.manager  { background: #DBEAFE; color: #1D4ED8; }
.badge.designer { background: #D1FAE5; color: #065F46; }
.badge.all      { background: var(--surface); color: var(--ink-3); border: 1px solid var(--border); }

/* ---- Next / Prev nav ---- */
.page-nav {
  display: flex;
  gap: 12px;
  margin-top: 64px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}

.page-nav-link {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 18px 20px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  text-decoration: none;
  transition: var(--transition);
}
.page-nav-link:hover { border-color: var(--brand); background: var(--brand-light); text-decoration: none; }

.page-nav-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--ink-4);
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: 4px;
}
.page-nav-link:hover .page-nav-label { color: var(--brand); }

.page-nav-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
}
.page-nav-link.next { text-align: right; }

/* ---- Breadcrumb ---- */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--ink-4);
  margin-bottom: 24px;
}
.breadcrumb a { color: var(--ink-3); text-decoration: none; }
.breadcrumb a:hover { color: var(--brand); }
.breadcrumb .sep { color: var(--border); }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 960px) {
  .hero-inner { grid-template-columns: 1fr; }
  .ui-mockup { display: none; }
  .cards-grid { grid-template-columns: 1fr 1fr; }
  .card--featured { flex-direction: column; }
  .roles-grid { grid-template-columns: 1fr; }
  .tutorial-layout { grid-template-columns: 1fr; }
  .tutorial-sidebar { position: static; height: auto; border-right: none; border-bottom: 1px solid var(--border); padding: 16px 0; }
  .tutorial-content { padding: 32px 24px 64px; }
  .footer-inner { flex-direction: column; align-items: flex-start; gap: 16px; }
  .footer-nav { flex-wrap: wrap; gap: 12px; }
}

@media (max-width: 640px) {
  .site-nav { display: none; }
  .cards-grid { grid-template-columns: 1fr; }
  .card--featured { grid-column: 1; }
  .hero-cta { flex-direction: column; }
}
