/* =========================================================================
   ARSENAL HOSPITALITY · Design System v1
   Refined boutique hospitality × premium B2B SaaS
   ========================================================================= */

/* -------------------------------------------------------------------------
   1. TOKENS
   ------------------------------------------------------------------------- */
:root {
  /* — Color · ink/paper foundation — */
  --ink:          #0A0A0A;   /* primary text, dark backgrounds */
  --ink-soft:     #1C1C1A;   /* slightly lifted ink for layered dark surfaces */
  --paper:        #FAF7F2;   /* canvas — warm off-white */
  --cream:        #F2EDE4;   /* secondary surface */
  --cream-deep:   #E8E0D2;   /* dividers, hover on cream */

  /* — Color · accents — */
  --accent:       #D4502E;   /* terracotta · primary CTA */
  --accent-dark:  #A03A1F;   /* hover */
  --accent-soft:  #F4DCD0;   /* tint for backgrounds */
  --olive:        #4A5D3A;   /* success / details */
  --olive-soft:   #DDE2D2;

  /* — Color · neutrals — */
  --gray:         #6B6B6B;   /* secondary text */
  --gray-light:   #B8B8B8;   /* tertiary text, placeholders */
  --line:         rgba(10, 10, 10, 0.10);
  --line-soft:    rgba(10, 10, 10, 0.06);

  /* — Type · families — */
  --font-serif:   'Fraunces', 'Times New Roman', Georgia, serif;
  --font-sans:    'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono:    ui-monospace, 'SF Mono', Monaco, Consolas, monospace;

  /* — Type · scale (clamp() for fluid resize) — */
  --fs-display: clamp(2.5rem, 1.4rem + 4.4vw, 4rem);     /* 40 → 64 */
  --fs-h1:      clamp(2rem,   1.4rem + 2.4vw, 3rem);     /* 32 → 48 */
  --fs-h2:      clamp(1.5rem, 1.2rem + 1.2vw, 2.25rem);  /* 24 → 36 */
  --fs-h3:      clamp(1.125rem, 1rem + 0.4vw, 1.375rem); /* 18 → 22 */
  --fs-h4:      1.125rem;     /* 18 */
  --fs-lede:    1.1875rem;    /* 19 */
  --fs-body:    1rem;         /* 16 */
  --fs-small:   0.875rem;     /* 14 */
  --fs-caption: 0.8125rem;    /* 13 */
  --fs-eyebrow: 0.6875rem;    /* 11 */

  /* — Spacing scale (4px grid) — */
  --s-1: 0.25rem;   /* 4  */
  --s-2: 0.5rem;    /* 8  */
  --s-3: 0.75rem;   /* 12 */
  --s-4: 1rem;      /* 16 */
  --s-5: 1.5rem;    /* 24 */
  --s-6: 2rem;      /* 32 */
  --s-7: 3rem;      /* 48 */
  --s-8: 4rem;      /* 64 */
  --s-9: 6rem;      /* 96 */
  --s-10: 8rem;     /* 128 */

  /* — Layout — */
  --container: 72rem;          /* 1152px */
  --container-narrow: 48rem;   /* 768px — long-form prose */
  --container-wide: 80rem;     /* 1280px */

  /* — Radius — */
  --r-1: 4px;
  --r-2: 8px;
  --r-pill: 999px;

  /* — Shadow — */
  --shadow-1: 0 1px 0 rgba(10,10,10,0.04), 0 2px 8px rgba(10,10,10,0.04);
  --shadow-2: 0 4px 12px rgba(10,10,10,0.06), 0 12px 32px rgba(10,10,10,0.08);
  --shadow-pop: 0 12px 40px rgba(10,10,10,0.15);

  /* — Motion — */
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --dur-1: 120ms;
  --dur-2: 220ms;
  --dur-3: 420ms;
}

/* -------------------------------------------------------------------------
   2. RESET / BASE
   ------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: 0; background: 0; padding: 0; color: inherit; }
input, textarea, select { font: inherit; color: inherit; }
hr { border: 0; border-top: 1px solid var(--line); margin: var(--s-7) 0; }

::selection { background: var(--accent); color: var(--paper); }

/* Focus — visible but refined */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 2px;
}

/* -------------------------------------------------------------------------
   3. TYPOGRAPHY
   ------------------------------------------------------------------------- */
.display, h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 600;
  letter-spacing: -0.018em;
  line-height: 1.1;
  margin: 0 0 var(--s-4);
  color: var(--ink);
  text-wrap: balance;
}
.display { font-size: var(--fs-display); font-weight: 700; line-height: 1.02; letter-spacing: -0.022em; }
h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); line-height: 1.15; }
h3 { font-size: var(--fs-h3); line-height: 1.25; letter-spacing: -0.012em; }
h4 { font-size: var(--fs-h4); font-weight: 600; line-height: 1.3; letter-spacing: -0.008em; }

p { margin: 0 0 var(--s-4); text-wrap: pretty; }
p.lede {
  font-size: var(--fs-lede);
  line-height: 1.55;
  color: var(--gray);
  max-width: 56ch;
}

.eyebrow {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: var(--fs-eyebrow);
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: var(--s-4);
}
.eyebrow.muted { color: var(--gray); }

.mono { font-family: var(--font-mono); font-size: 0.92em; letter-spacing: -0.01em; }
.muted { color: var(--gray); }
.small { font-size: var(--fs-small); }

/* Inline link in prose */
.prose a, a.link {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
  transition: color var(--dur-1) var(--ease);
}
.prose a:hover, a.link:hover { color: var(--accent); }

/* -------------------------------------------------------------------------
   4. LAYOUT PRIMITIVES
   ------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--s-5);
}
.container.narrow  { max-width: var(--container-narrow); }
.container.wide    { max-width: var(--container-wide); }

.section { padding-block: var(--s-9); }
.section-sm { padding-block: var(--s-7); }
@media (min-width: 768px) {
  .section { padding-block: var(--s-10); }
}

.section.dark {
  background: var(--ink);
  color: var(--paper);
}
.section.dark h1, .section.dark h2, .section.dark h3, .section.dark h4 { color: var(--paper); }
.section.dark .muted { color: var(--gray-light); }
.section.cream { background: var(--cream); }

.grid { display: grid; gap: var(--s-5); }
.grid.gap-lg { gap: var(--s-7); }
@media (min-width: 720px) {
  .grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
  .grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
  .grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
}

.stack > * + * { margin-top: var(--s-4); }
.stack-lg > * + * { margin-top: var(--s-6); }
.cluster { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-3); }

/* -------------------------------------------------------------------------
   5. BUTTONS
   ------------------------------------------------------------------------- */
.btn {
  --btn-bg: var(--accent);
  --btn-fg: var(--paper);
  --btn-bd: var(--accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-2);
  padding: 0.875rem 1.375rem;
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  font-weight: 600;
  letter-spacing: -0.005em;
  background: var(--btn-bg);
  color: var(--btn-fg);
  border: 1px solid var(--btn-bd);
  border-radius: var(--r-1);
  cursor: pointer;
  transition: background var(--dur-2) var(--ease),
              border-color var(--dur-2) var(--ease),
              transform var(--dur-1) var(--ease),
              color var(--dur-2) var(--ease);
  white-space: nowrap;
}
.btn:hover { --btn-bg: var(--accent-dark); --btn-bd: var(--accent-dark); }
.btn:active { transform: translateY(1px); }
.btn .arrow { transition: transform var(--dur-2) var(--ease); }
.btn:hover .arrow { transform: translateX(3px); }

.btn.secondary {
  --btn-bg: transparent;
  --btn-fg: var(--ink);
  --btn-bd: var(--ink);
}
.btn.secondary:hover { --btn-bg: var(--ink); --btn-fg: var(--paper); --btn-bd: var(--ink); }

.btn.ghost {
  --btn-bg: transparent;
  --btn-fg: var(--ink);
  --btn-bd: transparent;
  padding-inline: 0.25rem;
}
.btn.ghost:hover { --btn-fg: var(--accent); --btn-bg: transparent; --btn-bd: transparent; }

.btn.lg { padding: 1.0625rem 1.625rem; font-size: 1.0625rem; }
.btn.sm { padding: 0.5rem 0.875rem; font-size: var(--fs-small); }
.btn.full { width: 100%; }

/* On dark sections */
.section.dark .btn.secondary { --btn-fg: var(--paper); --btn-bd: var(--paper); }
.section.dark .btn.secondary:hover { --btn-bg: var(--paper); --btn-fg: var(--ink); }
.section.dark .btn.ghost { --btn-fg: var(--paper); }

/* -------------------------------------------------------------------------
   6. BADGES / PILLS
   ------------------------------------------------------------------------- */
.pill {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  padding: 0.3125rem 0.75rem;
  font-size: var(--fs-caption);
  font-weight: 500;
  border-radius: var(--r-pill);
  background: var(--cream);
  color: var(--ink);
  border: 1px solid var(--line);
  white-space: nowrap;
}
.pill.accent  { background: var(--accent-soft); border-color: transparent; color: var(--accent-dark); }
.pill.olive   { background: var(--olive-soft); border-color: transparent; color: var(--olive); }
.pill.dark    { background: var(--ink); color: var(--paper); border-color: transparent; }
.pill.outline { background: transparent; }
.pill .dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }

.badge-mono {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  padding: 0.25rem 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  border: 1px solid var(--line);
  border-radius: var(--r-1);
  background: var(--paper);
}

/* -------------------------------------------------------------------------
   7. CARDS
   ------------------------------------------------------------------------- */
.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-2);
  padding: var(--s-6);
  transition: border-color var(--dur-2) var(--ease), box-shadow var(--dur-2) var(--ease), transform var(--dur-2) var(--ease);
}
.card.cream { background: var(--cream); border-color: transparent; }
.card.dark { background: var(--ink); color: var(--paper); border-color: transparent; }
.card.dark h3, .card.dark h4 { color: var(--paper); }

.card.interactive { cursor: pointer; }
.card.interactive:hover {
  border-color: var(--ink);
  box-shadow: var(--shadow-2);
  transform: translateY(-2px);
}

/* Service card — for /servicos catalog */
.service-card { display: flex; flex-direction: column; height: 100%; gap: var(--s-4); }
.service-card .price {
  font-family: var(--font-serif);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1;
  color: var(--ink);
  display: flex;
  align-items: baseline;
  gap: 0.25rem;
  margin: var(--s-2) 0 var(--s-4);
}
.service-card .price .currency { font-size: 1.125rem; font-weight: 500; color: var(--gray); }
.service-card .price .amount { font-size: clamp(2.25rem, 1.5rem + 2vw, 3rem); }
.service-card .price .period { font-size: 1rem; font-weight: 500; color: var(--gray); margin-left: 0.25rem; }
.service-card ul.features {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-direction: column; gap: var(--s-3);
  font-size: var(--fs-small);
  color: var(--gray);
  flex: 1;
}
.service-card ul.features li {
  display: grid;
  grid-template-columns: 1rem 1fr;
  gap: var(--s-2);
  align-items: start;
}
.service-card ul.features li::before {
  content: '';
  width: 0.5rem; height: 0.5rem;
  border-radius: 50%;
  background: var(--olive);
  margin-top: 0.5rem;
}
.service-card .cta { margin-top: auto; padding-top: var(--s-5); border-top: 1px solid var(--line); }
.service-card.featured { background: var(--ink); color: var(--paper); border-color: transparent; }
.service-card.featured h3, .service-card.featured .price { color: var(--paper); }
.service-card.featured .price .currency,
.service-card.featured .price .period,
.service-card.featured ul.features { color: var(--gray-light); }
.service-card.featured ul.features li::before { background: var(--accent); }
.service-card.featured .cta { border-color: rgba(250,247,242,0.12); }

/* Stat card */
.stat-card { display: flex; flex-direction: column; gap: var(--s-2); padding: var(--s-5) 0; }
.stat-card .number {
  font-family: var(--font-serif);
  font-size: clamp(2.25rem, 1.5rem + 2vw, 3rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--ink);
}
.stat-card .label { font-size: var(--fs-small); color: var(--gray); max-width: 28ch; }

/* Article card */
.article-card { display: flex; flex-direction: column; gap: var(--s-3); }
.article-card .meta { display: flex; gap: var(--s-3); font-size: var(--fs-caption); color: var(--gray); }
.article-card h3 { font-size: 1.375rem; margin: 0; }
.article-card .read-more { color: var(--accent); font-weight: 600; font-size: var(--fs-small); }

/* -------------------------------------------------------------------------
   8. FORMS
   ------------------------------------------------------------------------- */
.field { display: flex; flex-direction: column; gap: var(--s-2); margin-bottom: var(--s-5); }
.field label {
  font-size: var(--fs-small);
  font-weight: 500;
  color: var(--ink);
  letter-spacing: -0.005em;
}
.field label .req { color: var(--accent); margin-left: 2px; }
.field .hint { font-size: var(--fs-caption); color: var(--gray); }
.field .error { font-size: var(--fs-caption); color: var(--accent-dark); }

.input, .textarea, .select {
  width: 100%;
  padding: 0.75rem 0.875rem;
  font-size: var(--fs-body);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-1);
  color: var(--ink);
  transition: border-color var(--dur-1) var(--ease), background var(--dur-1) var(--ease);
}
.input:hover, .textarea:hover, .select:hover { border-color: rgba(10,10,10,0.25); }
.input:focus, .textarea:focus, .select:focus {
  outline: none;
  border-color: var(--ink);
  background: var(--paper);
  box-shadow: 0 0 0 3px rgba(10,10,10,0.06);
}
.input.valid { border-color: var(--olive); }
.input.invalid { border-color: var(--accent-dark); }
.textarea { min-height: 6.5rem; resize: vertical; }

.checkbox-row {
  display: grid;
  grid-template-columns: 1.125rem 1fr;
  gap: var(--s-3);
  align-items: start;
  font-size: var(--fs-small);
  color: var(--gray);
  line-height: 1.5;
}
.checkbox-row input[type="checkbox"] { margin-top: 0.25rem; accent-color: var(--accent); }

/* Form on cream/dark surfaces — minor swap */
.section.dark .input, .section.dark .textarea, .section.dark .select {
  background: var(--ink-soft);
  color: var(--paper);
  border-color: rgba(250,247,242,0.18);
}
.section.dark .input:focus { border-color: var(--paper); box-shadow: 0 0 0 3px rgba(250,247,242,0.1); }

/* -------------------------------------------------------------------------
   9. FAQ ACCORDION (<details>/<summary>)
   ------------------------------------------------------------------------- */
.faq { border-top: 1px solid var(--line); }
.faq details {
  border-bottom: 1px solid var(--line);
  padding: var(--s-5) 0;
}
.faq summary {
  list-style: none;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--s-5);
  cursor: pointer;
  font-family: var(--font-serif);
  font-size: var(--fs-h3);
  font-weight: 600;
  letter-spacing: -0.012em;
  color: var(--ink);
  line-height: 1.3;
  transition: color var(--dur-1) var(--ease);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--accent); }
.faq summary .toggle {
  flex: none;
  width: 1.5rem;
  height: 1.5rem;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  margin-top: 0.25rem;
  transition: transform var(--dur-2) var(--ease), background var(--dur-2) var(--ease), color var(--dur-2) var(--ease);
}
.faq summary .toggle::before { content: '+'; font-family: var(--font-sans); font-size: 1rem; font-weight: 400; line-height: 1; }
.faq details[open] summary .toggle { background: var(--ink); color: var(--paper); border-color: var(--ink); transform: rotate(45deg); }
.faq details > .answer {
  margin-top: var(--s-4);
  max-width: 60ch;
  color: var(--gray);
  font-size: var(--fs-body);
  line-height: 1.65;
}

/* -------------------------------------------------------------------------
   10. COMPARISON TABLE
   ------------------------------------------------------------------------- */
.compare {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--fs-small);
}
.compare thead th {
  text-align: left;
  padding: var(--s-4) var(--s-4);
  font-family: var(--font-sans);
  font-size: var(--fs-eyebrow);
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gray);
  border-bottom: 1px solid var(--line);
}
.compare tbody td, .compare tbody th {
  padding: var(--s-4);
  text-align: left;
  font-weight: 400;
  vertical-align: top;
  border-bottom: 1px solid var(--line-soft);
}
.compare tbody th { font-weight: 500; color: var(--ink); width: 32%; }
.compare tbody tr:nth-child(odd) { background: var(--cream); }
.compare .yes { color: var(--olive); font-weight: 600; }
.compare .no { color: var(--gray-light); }

/* -------------------------------------------------------------------------
   11. STEPS / TIMELINE
   ------------------------------------------------------------------------- */
.steps { display: grid; gap: var(--s-6); counter-reset: step; }
@media (min-width: 720px) {
  .steps.horizontal { grid-template-columns: repeat(4, 1fr); gap: var(--s-5); }
}
.step {
  position: relative;
  padding-top: var(--s-6);
  counter-increment: step;
}
.step::before {
  content: counter(step, decimal-leading-zero);
  position: absolute;
  top: 0;
  font-family: var(--font-mono);
  font-size: var(--fs-caption);
  color: var(--accent);
  letter-spacing: 0.12em;
}
.step::after {
  content: '';
  position: absolute;
  top: 1.25rem;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--line);
}
.step h4 { margin-bottom: var(--s-2); }
.step p { color: var(--gray); font-size: var(--fs-small); margin: 0; }

/* Vertical timeline */
.timeline { display: flex; flex-direction: column; gap: var(--s-6); position: relative; padding-left: 1.75rem; }
.timeline::before { content: ''; position: absolute; left: 0.4375rem; top: 0.5rem; bottom: 0.5rem; width: 1px; background: var(--line); }
.timeline-item { position: relative; }
.timeline-item::before {
  content: '';
  position: absolute;
  left: -1.75rem;
  top: 0.45rem;
  width: 0.875rem;
  height: 0.875rem;
  border-radius: 50%;
  background: var(--paper);
  border: 2px solid var(--accent);
}
.timeline-item .year {
  font-family: var(--font-mono);
  font-size: var(--fs-caption);
  color: var(--accent);
  letter-spacing: 0.08em;
  margin-bottom: var(--s-1);
}
.timeline-item h4 { margin: 0 0 var(--s-1); }
.timeline-item p { color: var(--gray); font-size: var(--fs-small); margin: 0; }

/* -------------------------------------------------------------------------
   12. PRICING DISPLAY (large, hero-scale)
   ------------------------------------------------------------------------- */
.pricing-large {
  display: flex; align-items: baseline; gap: 0.5rem;
  font-family: var(--font-serif);
  color: var(--ink);
  letter-spacing: -0.03em;
}
.pricing-large .currency { font-size: 1.5rem; font-weight: 500; color: var(--gray); }
.pricing-large .amount { font-size: clamp(3rem, 2rem + 4vw, 4.5rem); font-weight: 700; line-height: 1; }
.pricing-large .period { font-size: 1.125rem; color: var(--gray); font-family: var(--font-sans); font-weight: 400; margin-left: 0.5rem; }

/* -------------------------------------------------------------------------
   13. SCORE METER (for /audit)
   ------------------------------------------------------------------------- */
.score-meter {
  display: flex; flex-direction: column; align-items: center;
  text-align: center;
  padding: var(--s-7) var(--s-5);
}
.score-meter .ring {
  --score: 72;
  --color: var(--olive);
  width: 14rem; height: 14rem;
  border-radius: 50%;
  background:
    conic-gradient(var(--color) calc(var(--score) * 1%), var(--cream-deep) 0);
  display: grid; place-items: center;
  position: relative;
}
.score-meter .ring::after {
  content: '';
  position: absolute; inset: 0.875rem;
  border-radius: 50%;
  background: var(--paper);
}
.score-meter .ring .value {
  position: relative; z-index: 1;
  font-family: var(--font-serif);
  font-size: 4rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
}
.score-meter .ring .out-of { font-family: var(--font-sans); font-size: 0.875rem; color: var(--gray); font-weight: 500; margin-top: 0.25rem; position: relative; z-index: 1; }
.score-meter .tier {
  margin-top: var(--s-5);
  font-family: var(--font-mono);
  font-size: var(--fs-caption);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--olive);
}

/* tier color helpers */
.score-meter[data-tier="critico"] .ring { --color: var(--accent); }
.score-meter[data-tier="critico"] .tier { color: var(--accent); }
.score-meter[data-tier="regular"] .ring { --color: #C8932E; }
.score-meter[data-tier="regular"] .tier { color: #C8932E; }
.score-meter[data-tier="bom"] .ring,
.score-meter[data-tier="excelente"] .ring { --color: var(--olive); }

/* Signals checklist */
.signals { display: grid; gap: var(--s-2); }
.signal { display: grid; grid-template-columns: 1.25rem 1fr auto; gap: var(--s-3); align-items: center; padding: var(--s-3) 0; border-bottom: 1px solid var(--line-soft); font-size: var(--fs-small); }
.signal .ico { width: 1.25rem; height: 1.25rem; display: grid; place-items: center; border-radius: 50%; font-size: 0.75rem; font-weight: 700; }
.signal .ico.ok  { background: var(--olive-soft); color: var(--olive); }
.signal .ico.no  { background: var(--accent-soft); color: var(--accent-dark); }
.signal .ico.partial { background: var(--cream-deep); color: var(--gray); }
.signal .name { color: var(--ink); }
.signal .status { font-family: var(--font-mono); font-size: var(--fs-caption); color: var(--gray); }

/* -------------------------------------------------------------------------
   14. HEADER · NAV · FOOTER
   ------------------------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(250,247,242,0.85);
  backdrop-filter: saturate(140%) blur(12px);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--dur-2) var(--ease), background var(--dur-2) var(--ease);
}
.site-header.scrolled { border-bottom-color: var(--line); }
.site-header .bar {
  display: flex; align-items: center; justify-content: space-between;
  height: 4.25rem;
  gap: var(--s-5);
}
.brand { display: flex; align-items: center; gap: var(--s-2); font-family: var(--font-serif); font-size: 1.125rem; font-weight: 700; letter-spacing: -0.02em; }
.brand .mark {
  width: 1.5rem; height: 1.5rem;
  display: grid; place-items: center;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font-serif);
  font-size: 0.9rem;
  font-weight: 700;
  border-radius: 3px;
}
.nav { display: none; align-items: center; gap: var(--s-5); }
.nav a {
  font-size: var(--fs-small);
  color: var(--ink);
  font-weight: 500;
  letter-spacing: -0.005em;
  position: relative;
  transition: color var(--dur-1) var(--ease);
}
.nav a:hover { color: var(--accent); }
.nav a.current::after {
  content: '';
  position: absolute; left: 0; right: 0; bottom: -0.5rem;
  height: 2px; background: var(--accent);
}
.header-cta { display: flex; align-items: center; gap: var(--s-3); }
.menu-btn {
  display: inline-grid; place-items: center;
  width: 2.5rem; height: 2.5rem;
  border: 1px solid var(--line); border-radius: var(--r-1);
}
@media (min-width: 880px) {
  .nav { display: flex; }
  .menu-btn { display: none; }
}

.site-footer {
  background: var(--ink);
  color: var(--paper);
  padding-block: var(--s-9) var(--s-7);
}
.site-footer h5 {
  font-family: var(--font-sans);
  font-size: var(--fs-eyebrow);
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gray-light);
  margin: 0 0 var(--s-4);
}
.site-footer ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: var(--s-2); }
.site-footer a { color: var(--paper); font-size: var(--fs-small); }
.site-footer a:hover { color: var(--accent); }
.site-footer .footer-grid {
  display: grid;
  gap: var(--s-7);
  grid-template-columns: 1fr;
  margin-bottom: var(--s-7);
}
@media (min-width: 720px) {
  .site-footer .footer-grid { grid-template-columns: 1.5fr repeat(3, 1fr); }
}
.site-footer .tagline {
  font-family: var(--font-serif);
  font-size: 1.375rem;
  letter-spacing: -0.018em;
  line-height: 1.3;
  max-width: 28ch;
  margin: var(--s-3) 0 var(--s-5);
  color: var(--paper);
}
.site-footer .legal {
  border-top: 1px solid rgba(250,247,242,0.12);
  padding-top: var(--s-5);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: var(--s-3);
  font-size: var(--fs-caption); color: var(--gray-light);
}

/* -------------------------------------------------------------------------
   15. HERO VARIANTS
   ------------------------------------------------------------------------- */
.hero { padding-block: var(--s-9) var(--s-9); }
@media (min-width: 768px) { .hero { padding-block: var(--s-10) var(--s-9); } }

.hero-centered { text-align: center; }
.hero-centered .display, .hero-centered h1 { max-width: 18ch; margin-inline: auto; }
.hero-centered .lede { margin-inline: auto; }

.hero-split {
  display: grid; gap: var(--s-7);
  grid-template-columns: 1fr;
  align-items: center;
}
@media (min-width: 880px) {
  .hero-split { grid-template-columns: 1.1fr 0.9fr; gap: var(--s-9); }
}
.hero-compact .display { font-size: var(--fs-h1); }
.hero-compact { padding-block: var(--s-8) var(--s-7); }

/* Trust row — Ex-Google, IC&VB, etc. */
.trust-row {
  display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-3) var(--s-5);
  padding-top: var(--s-6);
  font-size: var(--fs-small);
  color: var(--gray);
}
.trust-row .sep { color: var(--gray-light); }
.trust-row strong { color: var(--ink); font-weight: 600; }

/* -------------------------------------------------------------------------
   16. UTILITIES
   ------------------------------------------------------------------------- */
.center-text { text-align: center; }
.max-prose { max-width: 60ch; }
.mt-0 { margin-top: 0 !important; }
.mt-2 { margin-top: var(--s-2); } .mt-4 { margin-top: var(--s-4); }
.mt-6 { margin-top: var(--s-6); } .mt-8 { margin-top: var(--s-8); }
.mb-0 { margin-bottom: 0; }
.divider { border: 0; border-top: 1px solid var(--line); margin: var(--s-7) 0; }

.image-placeholder {
  background:
    repeating-linear-gradient(135deg, var(--cream) 0 12px, var(--cream-deep) 12px 24px);
  display: grid; place-items: center;
  font-family: var(--font-mono);
  font-size: var(--fs-caption);
  color: var(--gray);
  border-radius: var(--r-2);
  aspect-ratio: 4 / 3;
  border: 1px solid var(--line);
}

.code-block {
  font-family: var(--font-mono);
  font-size: var(--fs-small);
  background: var(--ink);
  color: var(--paper);
  border-radius: var(--r-2);
  padding: var(--s-5);
  overflow-x: auto;
  line-height: 1.55;
}
.code-block .c { color: var(--gray-light); }
.code-block .k { color: #E8B86E; }
.code-block .s { color: #C7D9A8; }

/* -------------------------------------------------------------------------
   TESTIMONIAL — depoimentos públicos (LinkedIn recommendations)
   Usa <figure class="testimonial"><blockquote>...</blockquote><figcaption>...</figcaption></figure>
   ------------------------------------------------------------------------- */
.testimonial {
  margin: var(--s-6) 0;
  padding: var(--s-6);
  background: var(--paper);
  border: 1px solid var(--line);
  border-left: 4px solid var(--accent);
  border-radius: var(--r-2);
  box-shadow: var(--shadow-1);
}
.testimonial blockquote {
  margin: 0 0 var(--s-4);
  padding: 0;
  font-family: var(--font-serif);
  font-size: 1.125rem;
  font-style: italic;
  line-height: 1.6;
  color: var(--ink);
  position: relative;
}
.testimonial blockquote::before {
  content: '\201C';
  position: absolute;
  top: -0.2em;
  left: -0.45em;
  font-family: var(--font-serif);
  font-size: 2.75rem;
  color: var(--accent);
  line-height: 1;
  font-style: normal;
}
.testimonial blockquote p { margin: 0 0 var(--s-3); }
.testimonial blockquote p:last-child { margin-bottom: 0; }
.testimonial figcaption {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding-top: var(--s-4);
  border-top: 1px solid var(--line-soft);
  font-size: var(--fs-small);
}
.testimonial figcaption strong { color: var(--ink); font-weight: 600; font-size: var(--fs-base, 1rem); }
.testimonial figcaption .bio { color: var(--gray); }
.testimonial figcaption .meta { font-family: var(--font-mono); font-size: var(--fs-caption); color: var(--gray); letter-spacing: 0.04em; margin-top: 0.25rem; }
.testimonial figcaption a { color: var(--gray); text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 2px; }
.testimonial figcaption a:hover { color: var(--accent); text-decoration-color: var(--accent); }
.testimonial.on-dark { background: rgba(250,247,242,0.04); border-color: rgba(250,247,242,0.12); }
.testimonial.on-dark blockquote { color: var(--paper); }
.testimonial.on-dark figcaption strong { color: var(--paper); }
.testimonial.on-dark figcaption .bio,
.testimonial.on-dark figcaption .meta,
.testimonial.on-dark figcaption a { color: var(--gray-light); }
.testimonial-grid { display: grid; gap: var(--s-5); grid-template-columns: 1fr; }
@media (min-width: 880px) { .testimonial-grid.cols-2 { grid-template-columns: repeat(2, 1fr); } }

/* -------------------------------------------------------------------------
   REFERENCES — Cite Sources (links pra fontes autoritativas externas)
   ------------------------------------------------------------------------- */
.references {
  margin: var(--s-7) 0 0;
  padding: var(--s-5) var(--s-6);
  background: var(--cream);
  border-radius: var(--r-2);
  font-size: var(--fs-small);
  color: var(--gray-dark, var(--gray));
}
.references .eyebrow { color: var(--gray); margin-bottom: var(--s-3); display: block; }
.references ul { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--s-2); }
.references li { display: grid; grid-template-columns: 1rem 1fr; gap: var(--s-2); align-items: baseline; }
.references li::before { content: '↗'; color: var(--accent); font-weight: 600; }
.references a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 3px; word-break: break-word; }
.references a:hover { color: var(--accent); text-decoration-color: var(--accent); }
.references .cite-source { color: var(--gray); font-family: var(--font-mono); font-size: var(--fs-caption); margin-left: 0.25rem; }
.section.dark .references,
.section.ink .references { background: rgba(250,247,242,0.05); color: var(--gray-light); }
.section.dark .references a,
.section.ink .references a { color: var(--paper); }

/* prefers-reduced-motion: respect */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
