/* ABPod Design System — base styles */
:root {
  /* Brand */
  --abp-blue: #123DE3;
  --abp-blue-deep: #0A29A8;
  --abp-blue-2: #3D5FEF;
  --abp-blue-3: #6F88F5;
  --abp-blue-4: #B8C5F9;
  --abp-blue-5: #E8ECFD;

  /* Plural accents (oklch-matched chroma/lightness) */
  --abp-coral:    #E26B4A;  /* humanidade */
  --abp-amber:    #E5AE3E;  /* criatividade */
  --abp-forest:   #2F8F62;  /* conexão */
  --abp-magenta:  #C8438E;  /* pluralidade */

  /* Neutrals — cool-tinted */
  --abp-ink:      #0A0E1A;
  --abp-ink-2:    #1A1F2E;
  --abp-grey-1:   #3A4052;
  --abp-grey-2:   #6B7186;
  --abp-grey-3:   #A4A9B8;
  --abp-grey-4:   #D8DAE2;
  --abp-grey-5:   #ECEDF1;
  --abp-paper:    #FAFAF7;
  --abp-paper-2:  #F4F4EF;
  --abp-white:    #FFFFFF;

  /* Type */
  --font-display: "Archivo", "Helvetica Neue", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;

  /* Spacing scale */
  --s-1: 4px; --s-2: 8px; --s-3: 12px; --s-4: 16px; --s-5: 24px;
  --s-6: 32px; --s-7: 48px; --s-8: 64px; --s-9: 96px; --s-10: 128px;

  /* Radii */
  --r-1: 2px; --r-2: 6px; --r-3: 12px; --r-4: 20px; --r-pill: 999px;

  /* Layout */
  --sidebar-w: 264px;
  --content-max: 1080px;
}

* { box-sizing: border-box; }
html, body {
  margin: 0;
  background: var(--abp-paper);
  color: var(--abp-ink);
  font-family: var(--font-display);
  font-feature-settings: "ss01", "cv11";
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body[data-theme="dark"] {
  background: var(--abp-ink);
  color: var(--abp-paper);
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; }
::selection { background: var(--abp-blue); color: var(--abp-white); }

/* App grid */
.app {
  display: grid;
  grid-template-columns: var(--sidebar-w) 1fr;
  min-height: 100vh;
}

/* Sidebar */
.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  border-right: 1px solid var(--abp-grey-4);
  background: var(--abp-paper);
  padding: 32px 24px;
  display: flex;
  flex-direction: column;
  gap: 28px;
  overflow-y: auto;
}
body[data-theme="dark"] .sidebar { background: var(--abp-ink); border-right-color: var(--abp-grey-1); }
.sidebar-brand { display: flex; flex-direction: column; gap: 6px; }
.sidebar-brand-mark { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 18px; letter-spacing: -0.02em; }
.sidebar-brand-tag { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--abp-grey-2); }
.sidebar-section-title { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--abp-grey-2); margin: 0 0 8px; }
.sidebar-nav { display: flex; flex-direction: column; gap: 2px; }
.sidebar-nav a {
  display: flex; justify-content: space-between; align-items: center;
  padding: 7px 10px; border-radius: var(--r-2);
  font-size: 14px; color: var(--abp-grey-1); font-weight: 500;
  transition: background .12s, color .12s;
  white-space: nowrap;
}
.sidebar-nav a > span:first-child { overflow: hidden; text-overflow: ellipsis; }
body[data-theme="dark"] .sidebar-nav a { color: var(--abp-grey-3); }
.sidebar-nav a:hover { background: var(--abp-grey-5); color: var(--abp-ink); }
body[data-theme="dark"] .sidebar-nav a:hover { background: var(--abp-ink-2); color: var(--abp-paper); }
.sidebar-nav a .num { font-family: var(--font-mono); font-size: 11px; color: var(--abp-grey-3); }
.sidebar-nav a.active { background: var(--abp-ink); color: var(--abp-paper); }
body[data-theme="dark"] .sidebar-nav a.active { background: var(--abp-paper); color: var(--abp-ink); }

.sidebar-footer { margin-top: auto; display: flex; flex-direction: column; gap: 10px; font-family: var(--font-mono); font-size: 10px; color: var(--abp-grey-2); letter-spacing: 0.04em; }

.theme-toggle {
  display: inline-flex; align-items: center; gap: 8px; cursor: pointer;
  background: transparent; border: 1px solid var(--abp-grey-4); border-radius: var(--r-pill);
  padding: 6px 12px; font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--abp-grey-1);
}
body[data-theme="dark"] .theme-toggle { border-color: var(--abp-grey-1); color: var(--abp-grey-3); }
.theme-toggle:hover { background: var(--abp-grey-5); }
body[data-theme="dark"] .theme-toggle:hover { background: var(--abp-ink-2); }

/* Main */
.main { min-width: 0; }
.section {
  padding: 96px 64px;
  border-bottom: 1px solid var(--abp-grey-4);
  scroll-margin-top: 0;
}
body[data-theme="dark"] .section { border-bottom-color: var(--abp-grey-1); }
.section-inner { max-width: var(--content-max); margin: 0 auto; }
.section-eyebrow {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--abp-grey-2); display: flex; align-items: center; gap: 12px; margin-bottom: 16px;
}
.section-eyebrow .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--abp-blue); }
.section-title { font-size: 48px; line-height: 1.02; letter-spacing: -0.03em; font-weight: 800; margin: 0 0 16px; text-wrap: balance; }
.section-lede { font-size: 19px; line-height: 1.45; color: var(--abp-grey-1); max-width: 64ch; margin: 0 0 56px; text-wrap: pretty; }
body[data-theme="dark"] .section-lede { color: var(--abp-grey-3); }

/* Subsection */
.sub-title { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--abp-grey-2); margin: 0 0 16px; display: flex; gap: 12px; align-items: center; }
.sub-title::before { content: ""; width: 18px; height: 1px; background: currentColor; opacity: 0.6; }

/* Reusable card */
.card {
  background: var(--abp-white);
  border: 1px solid var(--abp-grey-4);
  border-radius: var(--r-3);
  padding: 24px;
}
body[data-theme="dark"] .card { background: var(--abp-ink-2); border-color: var(--abp-grey-1); }

/* Grid helpers */
.grid { display: grid; gap: 16px; }
.g-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.g-6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }

@media (max-width: 920px) {
  .app { grid-template-columns: 1fr; }
  .sidebar { position: relative; height: auto; }
  .section { padding: 64px 24px; }
  .section-title { font-size: 36px; }
  .g-3, .g-4, .g-6 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Toast */
.toast {
  position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%);
  background: var(--abp-ink); color: var(--abp-paper);
  padding: 10px 16px; border-radius: var(--r-pill);
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.04em;
  z-index: 9999; opacity: 0; transition: opacity .18s, transform .18s;
}
.toast.show { opacity: 1; transform: translate(-50%, -6px); }
body[data-theme="dark"] .toast { background: var(--abp-paper); color: var(--abp-ink); }

/* ============================================================
   Component styles — static production version (/design-system)
   ============================================================ */

/* Mono label */
.mono { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.06em; color: var(--abp-grey-2); }
.eyebrow { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--abp-grey-2); display: inline-flex; align-items: center; gap: 10px; }
.eyebrow .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--abp-blue); }

/* Hero */
.hero h1 { font-family: "Archivo Black","Archivo",sans-serif; font-size: clamp(56px,10vw,144px); line-height: .86; letter-spacing: -.04em; margin: 0 0 8px; color: var(--abp-blue); font-weight: 900; text-wrap: balance; }
.hero-lede { font-size: 22px; line-height: 1.4; color: var(--abp-grey-1); max-width: 52ch; margin: 32px 0 0; text-wrap: pretty; }
.hero-top { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 80px; gap: 24px; flex-wrap: wrap; }
.metrics { margin-top: 80px; display: grid; grid-template-columns: repeat(auto-fit,minmax(180px,1fr)); gap: 24px; }
.metric { border-left: 1px solid var(--abp-grey-4); padding-left: 16px; display: flex; flex-direction: column; gap: 8px; }
.metric .n { font-family: "Archivo Black"; font-size: 38px; letter-spacing: -.02em; line-height: 1; }
.metric .l { font-family: var(--font-mono); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--abp-grey-2); }

/* Concept keywords */
.kw-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 1px; background: var(--abp-grey-4); border: 1px solid var(--abp-grey-4); border-radius: var(--r-3); overflow: hidden; }
.kw { background: var(--abp-paper); padding: 32px 28px; display: flex; flex-direction: column; gap: 12px; min-height: 180px; }
.kw .n { font-family: var(--font-mono); font-size: 10px; letter-spacing: .12em; color: var(--abp-blue); }
.kw h4 { margin: 0; font-size: 28px; font-weight: 800; letter-spacing: -.02em; }
.kw p { margin: 0; font-size: 14px; line-height: 1.5; color: var(--abp-grey-1); text-wrap: pretty; }
.positioning { margin-top: 56px; padding: 40px; background: var(--abp-blue); color: #fff; border-radius: var(--r-3); position: relative; overflow: hidden; }
.positioning p { margin: 16px 0 0; font-size: 26px; line-height: 1.3; font-weight: 500; max-width: 36ch; letter-spacing: -.01em; }
.positioning .bg-symbol { position: absolute; right: -80px; top: -80px; opacity: .15; }

/* Symbol */
.abp-symbol { display: block; }

/* Logo grid */
.logo-stage { background: var(--abp-paper-2); padding: 64px; border-radius: var(--r-3); display: flex; align-items: center; justify-content: center; min-height: 260px; }
.logo-variant .box { padding: 32px; border-radius: var(--r-3); display: flex; align-items: center; justify-content: center; min-height: 140px; border: 1px solid var(--abp-grey-4); }
.logo-variant .cap { margin-top: 12px; }
.logo-variant .cap .t { font-size: 13px; font-weight: 600; }
.misuse .box { position: relative; background: var(--abp-paper-2); padding: 24px; border-radius: var(--r-3); min-height: 120px; display: flex; align-items: center; justify-content: center; overflow: hidden; border: 1px solid var(--abp-grey-4); }
.misuse .x { position: absolute; top: 8px; right: 8px; width: 22px; height: 22px; border-radius: 50%; background: #D14545; color: #fff; font-size: 14px; display: flex; align-items: center; justify-content: center; font-weight: 700; }

/* Swatches */
.swatch { border: 0; cursor: default; padding: 16px; display: flex; flex-direction: column; justify-content: space-between; min-height: 120px; border-radius: var(--r-3); text-align: left; align-items: flex-start; }
.swatch.compact { min-height: 92px; padding: 14px; }
.swatch .name { font-size: 12px; font-weight: 600; opacity: .9; }
.swatch .hex { font-family: var(--font-mono); font-size: 11px; letter-spacing: .04em; }
.swatch .tok { font-family: var(--font-mono); font-size: 10px; opacity: .7; }
.combo { padding: 24px; border-radius: var(--r-3); min-height: 150px; display: flex; flex-direction: column; justify-content: space-between; border: 1px solid var(--abp-grey-4); }
.combo .aa { font-family: "Archivo Black"; font-size: 32px; letter-spacing: -.02em; line-height: .9; }
.combo .name { font-size: 13px; font-weight: 600; }
.combo .note { font-family: var(--font-mono); font-size: 10px; letter-spacing: .06em; opacity: .8; margin-top: 4px; }

/* Type rows */
.type-table { display: flex; flex-direction: column; border: 1px solid var(--abp-grey-4); border-radius: var(--r-3); overflow: hidden; }
.type-row { display: grid; grid-template-columns: 200px 1fr; align-items: baseline; gap: 24px; padding: 20px 24px; border-bottom: 1px solid var(--abp-grey-4); }
.type-row:last-child { border-bottom: 0; }
.type-row .meta .lbl { font-size: 13px; font-weight: 600; }
.type-row .sample { color: var(--abp-ink); line-height: 1.1; }
.font-card .sample { font-size: 110px; font-weight: 900; line-height: 1; letter-spacing: -.03em; color: var(--abp-blue); }
.weights { display: flex; gap: 12px; flex-wrap: wrap; border-top: 1px solid var(--abp-grey-4); padding-top: 16px; }
.weights span { border: 1px solid var(--abp-grey-4); border-radius: var(--r-pill); padding: 4px 10px; font-size: 13px; }

/* Icons */
.icon-cell { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 24px; }

/* Patterns */
.pattern-box { height: 240px; border-radius: var(--r-3); overflow: hidden; position: relative; border: 1px solid var(--abp-grey-4); }

/* Buttons */
.btn { border: 0; padding: 14px 24px; border-radius: var(--r-2); font-family: inherit; font-size: 14px; font-weight: 600; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; transition: background .14s; }
.btn-primary { background: var(--abp-blue); color: #fff; }
.btn-primary:hover { background: var(--abp-blue-deep); }
.btn-secondary { background: transparent; color: var(--abp-ink); border: 1px solid var(--abp-ink); padding: 13px 23px; }
.btn-secondary:hover { background: var(--abp-grey-5); }
.btn-tertiary { background: transparent; color: var(--abp-blue); padding: 13px 6px; }
.btn-tertiary:hover { text-decoration: underline; }
.btn-ghost { background: var(--abp-grey-5); color: var(--abp-ink); }
.btn:focus-visible { outline: 3px solid var(--abp-amber); outline-offset: 2px; }

/* Badges */
.badge { display: inline-flex; align-items: center; padding: 4px 10px; border-radius: var(--r-pill); font-size: 12px; font-weight: 600; color: #fff; background: var(--abp-blue); }
.badge.coral { background: var(--abp-coral); } .badge.amber { background: var(--abp-amber); }
.badge.forest { background: var(--abp-forest); } .badge.magenta { background: var(--abp-magenta); }
.badge.outline { background: transparent; color: var(--abp-ink); border: 1px solid var(--abp-grey-3); }
.badge.mono { font-family: var(--font-mono); font-size: 11px; letter-spacing: .04em; }

/* Form */
.field { display: flex; flex-direction: column; gap: 6px; }
.field .lbl { font-family: var(--font-mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--abp-grey-2); }
.field input, .field select, .field textarea { padding: 12px 14px; background: var(--abp-paper); border: 1px solid var(--abp-grey-4); border-radius: var(--r-2); font-family: inherit; font-size: 14px; color: var(--abp-ink); }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--abp-blue); }

/* Do/Dont + voice */
.do-card { border-radius: var(--r-2); padding: 24px; display: flex; flex-direction: column; gap: 12px; border: 1px solid var(--abp-grey-4); border-left-width: 3px; }
.do-card.do { background: var(--abp-paper); border-left-color: var(--abp-forest); }
.do-card.dont { background: var(--abp-paper-2); border-left-color: #D14545; }
.do-card .tag { font-family: var(--font-mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; font-weight: 700; }
.do-card.do .tag { color: var(--abp-forest); } .do-card.dont .tag { color: #D14545; }
.do-card p { margin: 0; font-size: 15px; line-height: 1.5; color: var(--abp-ink); }
table.voc, table.states { width: 100%; border-collapse: collapse; font-size: 13px; }
table.voc th, table.states th { text-align: left; padding: 14px 20px; font-family: var(--font-mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; background: var(--abp-paper-2); border-bottom: 1px solid var(--abp-grey-4); }
table.voc td { padding: 12px 20px; border-bottom: 1px solid var(--abp-grey-4); }
table.voc .use { font-weight: 600; color: var(--abp-forest); } table.voc .avoid { color: var(--abp-grey-2); text-decoration: line-through; }

/* Accessibility */
.contrast { padding: 24px; border-radius: var(--r-3); min-height: 120px; display: flex; flex-direction: column; justify-content: space-between; border: 1px solid var(--abp-grey-4); }
.contrast .aa { font-family: "Archivo Black"; font-size: 28px; letter-spacing: -.02em; line-height: 1; }
.pill { padding: 3px 8px; border-radius: var(--r-pill); font-family: var(--font-mono); font-size: 9px; letter-spacing: .06em; text-transform: uppercase; }
.pill.ok { background: #E7F5EE; color: #1B6B43; } .pill.no { background: #FBE9E9; color: #A52424; }
.checklist { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.checklist li { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; line-height: 1.5; }
.checklist .ck { flex: none; width: 18px; height: 18px; border-radius: 4px; border: 1.5px solid var(--abp-blue); display: flex; align-items: center; justify-content: center; margin-top: 2px; }

/* Episode/social/story cards */
.ep-card { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.ep-card .top { padding: 20px; color: #fff; position: relative; overflow: hidden; min-height: 90px; }
.ep-card .body { padding: 20px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.ep-card h4 { margin: 0; font-size: 17px; font-weight: 700; line-height: 1.25; letter-spacing: -.01em; text-wrap: balance; }
.social { aspect-ratio: 1; border-radius: var(--r-3); padding: 28px; display: flex; flex-direction: column; justify-content: space-between; position: relative; overflow: hidden; }
.story { aspect-ratio: 9/16; border-radius: var(--r-3); padding: 20px; display: flex; flex-direction: column; justify-content: space-between; overflow: hidden; position: relative; }
.story .big { font-family: "Archivo Black"; font-size: 30px; line-height: .96; letter-spacing: -.03em; position: relative; text-wrap: balance; }

@media (max-width: 920px) {
  .kw-grid { grid-template-columns: repeat(2,1fr); }
  .type-row { grid-template-columns: 1fr; gap: 8px; }
}
