/* =========================================================
   AP DESIGN SYSTEM v3.0
   Agência Pilaris · Palhoça SC · 2026
   Single-font (Plus Jakarta Sans). Dark default + light toggle.
   Referência estrutural: redpine.aioxsquad.ai
   ========================================================= */

:root[data-theme="dark"] {
  --bg: #0A0A0A;
  --surface: #141414;
  --surface-2: #1F1F1F;
  --border: #2A2A2A;
  --text: #FFFFFF;
  --muted: #999999;
  --orange: #FB8500;

  --shadow-1: 0 1px 2px rgba(0,0,0,0.40);
  --shadow-2: 0 4px 12px rgba(0,0,0,0.50);
  --shadow-3: 0 12px 28px rgba(0,0,0,0.60);
}

:root[data-theme="light"] {
  --bg: #FFFFFF;
  --surface: #FAFAFA;
  --surface-2: #F2F2F2;
  --border: #E5E5E5;
  --text: #0A0A0A;
  --muted: #5A5A5A;
  --orange: #FB8500;

  --shadow-1: 0 1px 2px rgba(0,0,0,0.06);
  --shadow-2: 0 4px 12px rgba(0,0,0,0.10);
  --shadow-3: 0 12px 28px rgba(0,0,0,0.16);
}

:root {
  --max-w: 1280px;
  --gutter: 32px;

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

  /* Radii */
  --radius-sm: 2px;
  --radius-md: 4px;
  --radius-lg: 8px;
  --radius-full: 9999px;

  /* Motion */
  --duration-fast: 120ms;
  --duration-default: 200ms;
  --duration-slow: 360ms;
  --easing: cubic-bezier(0.2, 0, 0, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html, body { height: 100%; }
html {
  background: var(--bg);
  color-scheme: dark;
  scroll-behavior: smooth;
}
:root[data-theme="light"] { color-scheme: light; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  transition: background var(--duration-default) var(--easing), color var(--duration-default) var(--easing);
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
img, svg { display: block; max-width: 100%; }
ul { list-style: none; }

::selection { background: var(--orange); color: #0A0A0A; }

/* =========================================================
   LOGO INLINE — A adapta ao tema · P sempre laranja
   ========================================================= */
.logo-svg .logo-a,
.logo-svg .logo-wordmark {
  fill: var(--text);
  transition: fill var(--duration-default) var(--easing);
}

/* =========================================================
   TIPOGRAFIA — Plus Jakarta Sans em tudo
   ========================================================= */
.eyebrow {
  font-weight: 500;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--orange);
  display: inline-block;
}

.display {
  font-weight: 800;
  font-size: clamp(48px, 7vw, 72px);
  line-height: 1.0;
  letter-spacing: -0.04em;
  text-transform: uppercase;
  color: var(--text);
}
.display em, .h1 em, .h2 em, .h3 em, .section-heading em, em.accent {
  font-style: italic;
  color: var(--orange);
  font-weight: inherit;
}

.h1, .section-heading {
  font-weight: 700;
  font-size: clamp(36px, 4vw, 48px);
  line-height: 1.1;
  letter-spacing: -0.025em;
  color: var(--text);
}
.h2 {
  font-weight: 700;
  font-size: 32px;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--text);
}
.h3 {
  font-weight: 600;
  font-size: 24px;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--text);
}

.lead { font-size: 20px; line-height: 1.6; color: var(--muted); max-width: 60ch; }
.body { font-size: 16px; line-height: 1.6; color: var(--muted); max-width: 64ch; }
.small { font-size: 14px; line-height: 1.5; color: var(--muted); }
.tabular { font-variant-numeric: tabular-nums; }

/* =========================================================
   LAYOUT
   ========================================================= */
.wrap {
  max-width: var(--max-w);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

main > section.section {
  padding: var(--sp-9) 0;
  border-top: 1px solid var(--border);
}
main > section.section:first-of-type { border-top: 0; padding-top: var(--sp-8); }

.section-head {
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
  margin-bottom: var(--sp-7);
  max-width: 760px;
}
.subsection {
  margin-top: var(--sp-8);
}
.subsection-head {
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
  margin-bottom: var(--sp-5);
}
.subsection-head .small { color: var(--muted); }

/* =========================================================
   HEADER
   ========================================================= */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  transition: background var(--duration-default) var(--easing), border-color var(--duration-default) var(--easing);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-6);
  padding: 14px var(--gutter);
  max-width: var(--max-w);
  margin: 0 auto;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}
.brand .logo-svg {
  height: 32px;
  width: auto;
}
.brand .wordmark {
  font-family: 'Zen Dots', system-ui, sans-serif;
  font-size: 14px;
  letter-spacing: -0.02em;
  color: var(--text);
  white-space: nowrap;
}
.nav {
  display: flex;
  align-items: center;
  gap: var(--sp-6);
}
.nav a {
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
  transition: color var(--duration-fast) var(--easing);
}
.nav a:hover { color: var(--text); }

.header-actions {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
}

.theme-toggle {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  transition: border-color var(--duration-fast) var(--easing);
}
.theme-toggle:hover { border-color: var(--text); }
.theme-toggle svg { width: 16px; height: 16px; }
.theme-toggle .icon-sun { display: none; }
:root[data-theme="light"] .theme-toggle .icon-sun { display: block; }
:root[data-theme="light"] .theme-toggle .icon-moon { display: none; }

/* =========================================================
   BUTTONS
   ========================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  padding: 12px 20px;
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.01em;
  border: 1px solid transparent;
  font-family: inherit;
  transition: background var(--duration-fast) var(--easing), color var(--duration-fast) var(--easing), border-color var(--duration-fast) var(--easing), transform var(--duration-fast) var(--easing), opacity var(--duration-fast) var(--easing);
  white-space: nowrap;
}
.btn-primary {
  background: var(--orange);
  color: #0A0A0A;
  border-color: var(--orange);
}
.btn-primary:hover { transform: translateY(-1px); filter: brightness(1.05); }
.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}
.btn-ghost:hover { border-color: var(--text); }
.btn:disabled, .btn.disabled {
  opacity: 0.4;
  cursor: not-allowed;
  pointer-events: none;
}
.btn-sm { padding: 9px 14px; font-size: 13px; }
.btn .arrow { transition: transform var(--duration-fast) var(--easing); }
.btn:hover .arrow { transform: translateX(2px); }

/* =========================================================
   HERO
   ========================================================= */
.hero {
  padding: var(--sp-9) 0 var(--sp-8);
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: 30%;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(251, 133, 0, 0.10) 0%, transparent 60%);
  filter: blur(60px);
  pointer-events: none;
  z-index: 0;
}
:root[data-theme="light"] .hero::before {
  background: radial-gradient(circle, rgba(251, 133, 0, 0.20) 0%, transparent 60%);
}
.hero-content { position: relative; z-index: 1; }
.hero .eyebrow { margin-bottom: var(--sp-5); }
.hero h1 { margin-bottom: var(--sp-5); }
.hero .sub {
  font-size: clamp(20px, 2.4vw, 28px);
  font-weight: 500;
  color: var(--text);
  line-height: 1.3;
  max-width: 32ch;
  margin-bottom: var(--sp-5);
  letter-spacing: -0.01em;
}
.hero .sub em {
  font-style: italic;
  color: var(--orange);
  font-weight: 500;
}
.hero .supporting { font-size: 17px; max-width: 56ch; margin-bottom: var(--sp-7); color: var(--muted); }
.hero-ctas { display: flex; gap: var(--sp-3); flex-wrap: wrap; }

/* =========================================================
   SHARED — Cards e tokens visuais
   ========================================================= */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--sp-5);
  transition: border-color var(--duration-default) var(--easing), transform var(--duration-default) var(--easing);
}
.card.elevated { box-shadow: var(--shadow-1); }
.card.popover { box-shadow: var(--shadow-2); }
.card.modal { box-shadow: var(--shadow-3); }
.card:hover { border-color: var(--orange); }

.token-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  padding: var(--sp-4) 0;
  border-bottom: 1px solid var(--border);
}
.token-row:last-child { border-bottom: 0; }
.token-row .label { font-weight: 600; font-size: 14px; }
.token-row .value { font-family: ui-monospace, 'SF Mono', Menlo, monospace; font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
.token-row .desc { font-size: 13px; color: var(--muted); flex: 1; max-width: 32ch; }

/* =========================================================
   BRAND SECTION
   ========================================================= */
.lockup-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--sp-4);
}
.lockup-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.lockup-stage {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--sp-7) var(--sp-5);
  min-height: 180px;
}
.lockup-stage.dark { background: #0A0A0A; }
.lockup-stage.light { background: #FFFFFF; }
.lockup-stage.surface-dark { background: #141414; }
.lockup-stage.surface-light { background: #FAFAFA; }
.lockup-stage svg { max-height: 80px; max-width: 80%; height: auto; width: auto; }
.lockup-stage.scope-dark .logo-a,
.lockup-stage.scope-dark .logo-wordmark { fill: #FFFFFF; }
.lockup-stage.scope-light .logo-a,
.lockup-stage.scope-light .logo-wordmark { fill: #0A0A0A; }
.lockup-meta {
  padding: var(--sp-3) var(--sp-4);
  border-top: 1px solid var(--border);
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
  background: var(--surface);
}

.favicon-row {
  display: flex;
  align-items: flex-end;
  gap: var(--sp-5);
  padding: var(--sp-5);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  flex-wrap: wrap;
}
.favicon-item { display: flex; flex-direction: column; align-items: center; gap: var(--sp-2); }
.favicon-item .fv {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.favicon-item .fv svg { width: 100%; height: 100%; }
.favicon-item .fv-label { font-size: 11px; font-family: ui-monospace, monospace; color: var(--muted); font-variant-numeric: tabular-nums; }

.donts {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--sp-3) var(--sp-5);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--sp-5);
}
.dont-item {
  display: flex;
  gap: var(--sp-3);
  align-items: flex-start;
  font-size: 14px;
  color: var(--text);
}
.dont-item::before {
  content: '';
  display: inline-block;
  width: 16px;
  height: 16px;
  border-radius: var(--radius-full);
  border: 1.5px solid var(--orange);
  flex-shrink: 0;
  margin-top: 4px;
  background:
    linear-gradient(45deg, transparent calc(50% - 0.7px), var(--orange) 50%, transparent calc(50% + 0.7px));
}

/* =========================================================
   COLOR SECTION
   ========================================================= */
.swatch-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-3);
}
.swatch-grid.cols-5 { grid-template-columns: repeat(5, 1fr); }
.swatch-grid.cols-6 { grid-template-columns: repeat(6, 1fr); }

.swatch {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--surface);
}
.swatch .chip {
  aspect-ratio: 4 / 3;
  width: 100%;
  position: relative;
}
.swatch .chip.has-border::after {
  content: '';
  position: absolute;
  inset: 0;
  border: 1px solid var(--border);
  pointer-events: none;
}
.swatch .meta { padding: var(--sp-3) var(--sp-4); display: flex; flex-direction: column; gap: 2px; }
.swatch .name { font-weight: 600; font-size: 13px; color: var(--text); }
.swatch .hex { font-family: ui-monospace, monospace; font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.swatch .var { font-family: ui-monospace, monospace; font-size: 11px; color: var(--muted); font-variant-numeric: tabular-nums; }

.color-rule {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-4);
}
.rule-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--sp-5);
}
.rule-card h4 {
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  margin-bottom: var(--sp-4);
  display: flex;
  align-items: center;
  gap: var(--sp-2);
}
.rule-card.do h4 { color: var(--orange); }
.rule-card.dont h4 { color: var(--muted); }
.rule-card .demo {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  margin-top: var(--sp-3);
}
.rule-card .demo-block {
  padding: var(--sp-3);
  background: var(--surface-2);
  border-radius: var(--radius-sm);
  font-size: 13px;
}

/* =========================================================
   TYPOGRAPHY SECTION
   ========================================================= */
.type-row {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: var(--sp-5);
  align-items: baseline;
  padding: var(--sp-4) 0;
  border-bottom: 1px solid var(--border);
}
.type-row:last-child { border-bottom: 0; }
.type-row .meta {
  font-family: ui-monospace, monospace;
  font-size: 12px;
  color: var(--muted);
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-variant-numeric: tabular-nums;
}
.type-row .meta .label { color: var(--text); font-weight: 600; font-size: 13px; font-family: 'Plus Jakarta Sans', sans-serif; }
.type-row .sample { color: var(--text); }

.weight-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--sp-3);
}
.weight-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: var(--sp-3) var(--sp-4);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}
.weight-row .sample {
  font-size: 22px;
  letter-spacing: -0.02em;
  color: var(--text);
}
.weight-row .meta {
  font-family: ui-monospace, monospace;
  font-size: 11px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.aa-stage {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--sp-7);
  font-size: 144px;
  line-height: 1;
  font-weight: 700;
  letter-spacing: -0.04em;
  color: var(--text);
}

.measure-demo {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--sp-5);
  max-width: 60ch;
}
.measure-demo p { font-size: 16px; color: var(--muted); }
.measure-demo .gauge {
  position: absolute;
  top: -10px;
  right: var(--sp-5);
  font-family: ui-monospace, monospace;
  font-size: 11px;
  color: var(--orange);
  background: var(--bg);
  padding: 0 8px;
}

/* =========================================================
   FOUNDATIONS SECTION
   ========================================================= */
.spacing-stage {
  display: flex;
  align-items: flex-end;
  gap: var(--sp-3);
  padding: var(--sp-5);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow-x: auto;
}
.sp-token { display: flex; flex-direction: column; align-items: center; gap: var(--sp-2); flex-shrink: 0; }
.sp-token .block {
  background: var(--orange);
  border-radius: 1px;
}
.sp-token .label { font-family: ui-monospace, monospace; font-size: 11px; color: var(--muted); font-variant-numeric: tabular-nums; }

.grid-demo {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--sp-5);
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 24px;
  height: 160px;
  overflow: hidden;
}
.grid-demo .grid-col {
  background: rgba(251, 133, 0, 0.18);
  border-top: 1px solid var(--orange);
  border-bottom: 1px solid var(--orange);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: ui-monospace, monospace;
  font-size: 10px;
  color: var(--orange);
  font-variant-numeric: tabular-nums;
}

.bp-list {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: var(--sp-3);
  margin-top: var(--sp-4);
}
.bp-row {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--sp-3) var(--sp-4);
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.bp-row .name { font-weight: 600; font-size: 13px; color: var(--text); }
.bp-row .px { font-family: ui-monospace, monospace; font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }

.radius-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: var(--sp-3);
}
.radius-card {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: var(--sp-4);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-3);
}
.radius-shape {
  width: 64px;
  height: 64px;
  background: var(--orange);
}
.radius-card .label { font-family: ui-monospace, monospace; font-size: 11px; color: var(--muted); font-variant-numeric: tabular-nums; }
.radius-card .role { font-size: 11px; color: var(--text); font-weight: 500; }

.elevation-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-4);
}
.elevation-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--sp-5);
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  min-height: 140px;
}
.elevation-card.e1 { box-shadow: var(--shadow-1); }
.elevation-card.e2 { box-shadow: var(--shadow-2); }
.elevation-card.e3 { box-shadow: var(--shadow-3); }
.elevation-card .name { font-weight: 700; font-size: 14px; }
.elevation-card .css { font-family: ui-monospace, monospace; font-size: 11px; color: var(--muted); line-height: 1.6; word-break: break-all; }

.rhythm-demo {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--sp-5);
  background-image: linear-gradient(to bottom, transparent calc(8px - 1px), rgba(251, 133, 0, 0.10) 8px);
  background-size: 100% 8px;
  background-position: top left;
}
.rhythm-demo h2, .rhythm-demo h3, .rhythm-demo p { margin: 0 0 16px 0; }
.rhythm-demo h2 { font-size: 32px; line-height: 40px; }
.rhythm-demo h3 { font-size: 24px; line-height: 32px; }
.rhythm-demo p { font-size: 16px; line-height: 24px; color: var(--muted); }

.motion-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-4);
}
.motion-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--sp-5);
}
.motion-card .ms { font-size: 24px; font-weight: 700; color: var(--orange); font-variant-numeric: tabular-nums; }
.motion-card .role { font-size: 13px; color: var(--text); font-weight: 500; margin-top: 4px; }
.motion-card .desc { font-size: 12px; color: var(--muted); margin-top: 4px; }

.icon-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: var(--sp-3);
}
.icon-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--sp-4) var(--sp-3);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-2);
}
.icon-card svg { width: 24px; height: 24px; color: var(--text); }
.icon-card .name { font-family: ui-monospace, monospace; font-size: 11px; color: var(--muted); }

/* =========================================================
   COMPONENTS SECTION
   ========================================================= */
.demo-row {
  display: flex;
  gap: var(--sp-4);
  flex-wrap: wrap;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--sp-5);
}
.demo-stack {
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--sp-5);
}
.demo-stage {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--sp-7);
}

/* Section Header preview */
.preview-section-header {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
}

/* FAQ */
.faq {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--border);
}
.faq-item { border-bottom: 1px solid var(--border); }
.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: var(--sp-5) 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  font-size: 17px;
  font-weight: 500;
  color: var(--text);
  transition: color var(--duration-fast) var(--easing);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::marker { content: ''; }
.faq-item summary:hover { color: var(--orange); }
.faq-item summary .chevron {
  width: 16px; height: 16px; flex-shrink: 0;
  transition: transform var(--duration-default) var(--easing);
  color: var(--muted);
}
.faq-item[open] summary .chevron { transform: rotate(180deg); color: var(--orange); }
.faq-a { padding: 0 0 var(--sp-5) 0; font-size: 15px; color: var(--muted); line-height: 1.6; max-width: 64ch; }

/* Two-col list */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-4);
}
.two-col .col {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--sp-5);
}
.two-col .col h4 {
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  margin-bottom: var(--sp-4);
  display: flex;
  align-items: center;
  gap: var(--sp-2);
}
.two-col .col.use h4 { color: var(--orange); }
.two-col .col.dont h4 { color: var(--muted); }
.two-col .col ul { display: flex; flex-direction: column; gap: var(--sp-3); }
.two-col .col li { font-size: 15px; color: var(--text); padding-left: 22px; position: relative; line-height: 1.5; }
.two-col .col.use li::before { content: '+'; position: absolute; left: 0; color: var(--orange); font-weight: 700; }
.two-col .col.dont li::before { content: '−'; position: absolute; left: 0; color: var(--muted); font-weight: 700; }

/* Step */
.step {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--sp-6) var(--sp-5);
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
}
.step .num {
  font-size: 48px;
  line-height: 1;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--orange);
  font-variant-numeric: tabular-nums;
}
.step h3 { font-size: 18px; font-weight: 600; }
.step p { font-size: 14px; color: var(--muted); line-height: 1.55; }

/* Divider */
.divider {
  height: 1px;
  background: var(--border);
  margin: var(--sp-5) 0;
}
.divider-labeled {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  margin: var(--sp-5) 0;
}
.divider-labeled::before,
.divider-labeled::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}
.divider-labeled .label {
  font-size: 11px;
  font-family: ui-monospace, monospace;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.16em;
}

/* Tag */
.tag {
  display: inline-flex;
  align-items: center;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.04em;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border);
  color: var(--muted);
  background: transparent;
}
.tag.accent { background: var(--orange); color: #0A0A0A; border-color: var(--orange); }
.tag.neutral { background: var(--surface-2); color: var(--text); border-color: var(--border); }

/* Table */
.table-wrap {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.table th, .table td {
  text-align: left;
  padding: var(--sp-3) var(--sp-4);
  border-bottom: 1px solid var(--border);
}
.table th {
  font-weight: 700;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
  background: var(--surface-2);
}
.table tr:last-child td { border-bottom: 0; }
.table td.tabular { font-variant-numeric: tabular-nums; font-family: ui-monospace, monospace; font-size: 13px; }

/* Form fields */
.form-field {
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
}
.form-field label {
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
}
.form-field input,
.form-field textarea,
.form-field select {
  padding: 12px 14px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--text);
  font-family: inherit;
  font-size: 15px;
  transition: border-color var(--duration-fast) var(--easing);
  width: 100%;
}
.form-field input::placeholder,
.form-field textarea::placeholder { color: var(--muted); }
.form-field input:focus,
.form-field textarea:focus,
.form-field select:focus {
  outline: none;
  border-color: var(--orange);
}
.form-field textarea { min-height: 120px; resize: vertical; }
.form-field .hint { font-size: 12px; color: var(--muted); }

/* =========================================================
   PATTERNS — composições
   ========================================================= */
.pattern-block {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--sp-7);
  position: relative;
  overflow: hidden;
}
.pattern-label {
  position: absolute;
  top: var(--sp-3);
  right: var(--sp-4);
  font-size: 11px;
  font-family: ui-monospace, monospace;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.12em;
}
.pattern-block.preview-hero { padding: var(--sp-8); }

.cards-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-4);
}
.cards-6 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-4);
}
.steps-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--sp-4);
}

.app-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--sp-5);
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  transition: border-color var(--duration-default) var(--easing), transform var(--duration-default) var(--easing);
}
.app-card:hover { border-color: var(--orange); transform: translateY(-2px); }

.cta-final {
  text-align: center;
  padding: var(--sp-9) 0;
  border-top: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}
.cta-final::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(251, 133, 0, 0.10) 0%, transparent 60%);
  filter: blur(60px);
  pointer-events: none;
}
.cta-final-content { position: relative; z-index: 1; }
.cta-final h2 {
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin-bottom: var(--sp-6);
  max-width: 16ch;
  margin-left: auto;
  margin-right: auto;
}

/* =========================================================
   FOOTER
   ========================================================= */
.footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: var(--sp-7) 0 var(--sp-5);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: var(--sp-6);
  margin-bottom: var(--sp-6);
}
.footer-col h4 {
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--muted);
  margin-bottom: var(--sp-3);
}
.footer-col p, .footer-col a {
  font-size: 14px;
  color: var(--text);
  line-height: 1.7;
  display: block;
}
.footer-col a:hover { color: var(--orange); }
.footer-brand .brand { margin-bottom: var(--sp-4); }
.footer-brand p { color: var(--muted); }
.footer-bot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: var(--sp-5);
  border-top: 1px solid var(--border);
  font-size: 12px;
  color: var(--muted);
}

/* =========================================================
   SCROLL ANIMATIONS
   ========================================================= */
[data-animate] {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity var(--duration-slow) var(--easing), transform var(--duration-slow) var(--easing);
  will-change: opacity, transform;
}
[data-animate].is-in { opacity: 1; transform: translateY(0); }
[data-stagger] {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity var(--duration-default) var(--easing), transform var(--duration-default) var(--easing);
}
[data-animate].is-in [data-stagger] { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  [data-animate], [data-stagger] {
    opacity: 1 !important;
    transform: none !important;
  }
  html { scroll-behavior: auto; }
}

/* =========================================================
   RESPONSIVO
   ========================================================= */
@media (max-width: 1080px) {
  .donts { grid-template-columns: 1fr; }
  .swatch-grid.cols-5 { grid-template-columns: repeat(3, 1fr); }
  .swatch-grid.cols-6 { grid-template-columns: repeat(3, 1fr); }
  .bp-list { grid-template-columns: repeat(3, 1fr); }
  .icon-grid { grid-template-columns: repeat(3, 1fr); }
  .cards-3, .cards-6 { grid-template-columns: repeat(2, 1fr); }
  .steps-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .nav { display: none; }
}

@media (max-width: 640px) {
  :root { --gutter: 20px; }
  main > section.section { padding: var(--sp-7) 0; }
  .header-inner { gap: var(--sp-3); }
  .brand .wordmark { display: none; }
  .lockup-grid { grid-template-columns: 1fr; }
  .swatch-grid, .swatch-grid.cols-5, .swatch-grid.cols-6 { grid-template-columns: repeat(2, 1fr); }
  .type-row { grid-template-columns: 1fr; gap: var(--sp-2); }
  .weight-grid { grid-template-columns: 1fr; }
  .grid-demo { display: none; }
  .bp-list { grid-template-columns: repeat(2, 1fr); }
  .radius-grid { grid-template-columns: repeat(2, 1fr); }
  .elevation-grid { grid-template-columns: 1fr; }
  .motion-row { grid-template-columns: 1fr; }
  .icon-grid { grid-template-columns: repeat(3, 1fr); }
  .color-rule { grid-template-columns: 1fr; }
  .two-col { grid-template-columns: 1fr; }
  .cards-3, .cards-6 { grid-template-columns: 1fr; }
  .steps-4 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: var(--sp-5); }
  .footer-bot { flex-direction: column; gap: 12px; align-items: flex-start; }
  .pattern-block { padding: var(--sp-5); }
  .aa-stage { font-size: 96px; padding: var(--sp-5); }
}

/* =========================================================
   PRINT
   ========================================================= */
@media print {
  :root { --bg: #FFFFFF; --surface: #FFFFFF; --surface-2: #F5F5F5; --border: #DDDDDD; --text: #0A0A0A; --muted: #555555; }
  .header, .theme-toggle, .footer-bot, .hero::before, .cta-final::before { display: none !important; }
  body { background: #FFFFFF; color: #0A0A0A; }
  main > section.section { padding: var(--sp-6) 0; page-break-inside: avoid; }
  [data-animate], [data-stagger] { opacity: 1 !important; transform: none !important; }
}
