/* ==========================================================================
   Pirbrain — Design System
   Inspired by /docs/website-model.jpg (SaaS landing — generous whitespace,
   pill CTAs, soft teal accent, soft shadows, tilted device mockups).
   ========================================================================== */

/* ---------- Tokens ---------- */
:root {
  /* Surfaces — light, near-white theme inspired by /docs/website-model.jpg */
  --color-bg-base: #fafaf7;
  --color-bg-soft: #f5f4ef;
  --color-bg-tint: #ffffff;
  --color-bg-surface: #ffffff;
  --color-bg-elevated: #ffffff;
  --color-bg-elev: var(--color-bg-elevated);
  /* legacy alias used in inline styles */
  --color-bg-inverse: #0f172a;

  /* Text */
  --color-text-primary: #0f172a;
  --color-text-secondary: #475569;
  --color-text-muted: #64748b;
  --color-text-inverse: #ffffff;

  /* Borders */
  --color-border: #e7ebef;
  --color-border-strong: #d4dbe1;

  /* Accent — soft teal/mint (matches the "Organiser" pill highlight in reference) */
  --color-teal-50: #eafaf3;
  --color-teal-100: #c9f1de;
  --color-teal-300: #84e1bc;
  --color-teal-500: #10b981;
  --color-teal-600: #0ea36f;
  --color-teal-700: #0a6f4d;
  --color-accent: var(--color-teal-500);
  --color-accent-soft: var(--color-teal-100);
  --color-accent-dark: var(--color-teal-700);
  --color-accent-text: var(--color-teal-700);

  /* Semantic */
  --color-success: #16a34a;
  --color-warning: #f59e0b;

  /* Shadows — soft, large-spread */
  --shadow-xs: 0 1px 2px rgba(15, 23, 42, 0.04);
  --shadow-sm: 0 2px 4px rgba(15, 23, 42, 0.04), 0 1px 3px rgba(15, 23, 42, 0.03);
  --shadow-md: 0 8px 24px -8px rgba(15, 23, 42, 0.06), 0 2px 6px rgba(15, 23, 42, 0.03);
  --shadow-lg: 0 24px 48px -12px rgba(15, 23, 42, 0.08), 0 4px 12px rgba(15, 23, 42, 0.04);
  --shadow-xl: 0 40px 80px -16px rgba(15, 23, 42, 0.10), 0 8px 24px rgba(15, 23, 42, 0.05);

  /* Geometry */
  --radius-xs: 6px;
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --radius-full: 9999px;

  /* Spacing — generous */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 64px;
  --space-9: 96px;
  --space-10: 128px;
  --space-11: 160px;

  /* Layout */
  --container-max: 1200px;
  --container-narrow-max: 760px;

  /* Type aliases — referenced from inline styles in EJS templates */
  --font-mono: ui-monospace, SFMono-Regular, Menlo, monospace;

  /* Motion */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --duration-fast: 160ms;
  --duration-base: 280ms;
  --duration-slow: 480ms;
}

/* Light theme only — matches /docs/website-model.jpg.
   System dark mode is intentionally ignored to keep the brand consistent. */

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
  /* offset for sticky navbar on #anchor jumps */
  color-scheme: light;
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  color: var(--color-text-primary);
  background: var(--color-bg-base);
  font-feature-settings: 'cv11', 'ss01', 'ss03';
  min-height: 100vh;
  overflow-x: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--duration-fast) var(--ease-out);
  -webkit-tap-highlight-color: transparent;
}

a:hover {
  color: var(--color-accent);
}

button {
  font: inherit;
  cursor: pointer;
  border: 0;
  background: none;
}

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

/* ---------- Form consent ---------- */
.consent-check {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  color: var(--color-text-secondary);
  font-size: .85rem;
  line-height: 1.45;
  cursor: pointer;
}

.consent-check input {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: var(--color-teal-600);
}

/* ---------- LGPD consent banner ----------
   Fixed-bottom dialog (role=dialog). Reads localStorage under `pb_consent`;
   on first visit with consentRequired=true the banner is shown until the
   visitor accepts or declines. Subsequent visits hide the banner.
   Stays inert when no analytics is configured (emitted by partials/consent.ejs). */
.consent-banner {
  position: fixed;
  left: var(--space-4);
  right: var(--space-4);
  bottom: var(--space-4);
  z-index: 90;
  background: var(--color-bg-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  font-size: 0.92rem;
  color: var(--color-text-primary);
  animation: fadeUp 320ms var(--ease-out);
}

.consent-banner[hidden] {
  display: none !important;
}

.consent-banner-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: var(--space-5);
  align-items: center;
  padding: var(--space-4) var(--space-5);
}

.consent-banner-text strong {
  display: block;
  font-size: 0.95rem;
  margin-bottom: 4px;
  color: var(--color-text-primary);
}

.consent-banner-text p {
  margin: 0;
  color: var(--color-text-secondary);
  font-size: 0.85rem;
  line-height: 1.5;
}

.consent-banner-text a {
  color: var(--color-accent-dark);
  text-decoration: underline;
}

.consent-banner-actions {
  display: inline-flex;
  gap: var(--space-3);
  align-items: center;
}

@media (max-width: 720px) {
  .consent-banner {
    left: var(--space-3);
    right: var(--space-3);
    bottom: var(--space-3);
  }

  .consent-banner-inner {
    grid-template-columns: 1fr;
    padding: var(--space-4);
    gap: var(--space-4);
  }

  .consent-banner-actions {
    justify-content: flex-end;
  }

  .consent-banner-actions .btn {
    flex: 1;
  }
}

/* ---------- Cookie inventory table ---------- */
/* Used in /pt/privacidade to list every cookie and localStorage key. The
   HTML <code> inside <td> keeps its monospace family — the wrapper handles
   vertical rhythm and the hover-state row. */
.cookie-table-wrap {
  margin: var(--space-5) 0;
  overflow-x: auto;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-bg-surface);
}

.cookie-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  line-height: 1.45;
}

.cookie-table thead th {
  text-align: left;
  font-weight: 600;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-text-muted);
  padding: var(--space-4) var(--space-4) var(--space-3);
  background: var(--color-bg-soft);
  border-bottom: 1px solid var(--color-border);
}

.cookie-table tbody td {
  padding: var(--space-4);
  color: var(--color-text-secondary);
  border-bottom: 1px solid var(--color-border);
  vertical-align: top;
}

.cookie-table tbody tr:last-child td {
  border-bottom: 0;
}

.cookie-table tbody tr:hover {
  background: var(--color-bg-soft);
}

.cookie-table code {
  display: inline-block;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.85em;
  padding: 2px 6px;
  background: var(--color-bg-soft);
  border-radius: 4px;
  color: var(--color-text-primary);
  word-break: break-all;
}

/* ---------- Typography ---------- */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.08;
  color: var(--color-text-primary);
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.02;
}

h2 {
  font-size: clamp(1.85rem, 3.6vw, 3rem);
  letter-spacing: -0.03em;
}

h3 {
  font-size: clamp(1.15rem, 1.6vw, 1.35rem);
  font-weight: 600;
}

h4 {
  font-size: 1.05rem;
  font-weight: 600;
}

p {
  color: var(--color-text-secondary);
  margin-bottom: 1em;
  line-height: 1.65;
}

p:last-child {
  margin-bottom: 0;
}

.text-lead {
  font-size: clamp(1.05rem, 1.4vw, 1.2rem);
  color: var(--color-text-secondary);
  line-height: 1.55;
  max-width: 56ch;
}

.text-muted {
  color: var(--color-text-muted);
}

/* Soft teal pill-highlight on a keyword — reads as a hand-applied editor's marker
   rather than a UI chip. Tighter padding + small radius keeps it close to the
   baseline; a darker bottom terminator gives it weight without a chunky border.
   Keep .kw on 1–3 word spans: the inset terminator assumes single-line use
   (line-height 1.2 would clip it on wrapped multi-line highlights). */
.kw {
  display: inline-block;
  padding: 0.02em 0.28em 0.06em;
  margin: 0 0.04em;
  background: linear-gradient(180deg, var(--color-teal-100) 0%, var(--color-teal-50) 100%);
  color: var(--color-accent-text);
  border-radius: 4px 4px 4px 2px;
  box-shadow: inset 0 -2px 0 0 var(--color-teal-300);
  font-style: normal;
  line-height: 1.2;
}

.text-mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.9em;
}

/* ---------- Article body rhythm ----------
   The universal * reset zeros every heading and list default margin, so without
   this block h2/h3 and the paragraphs that follow them sit at 0px gap (the
   "title glued to description" complaint on /pt/artigos/* and the EN mirror).

   Selector specificity is (element + element = 0,0,2). That ties below every
   class-qualified rule (.hero h1, .page-header h1, .step h3, .card h3, .feature-row h3,
   .article-card h3, .text-lead, .faq-item p, etc.) AND below class utilities
   (.mt-N, .mb-N). Inline styles still win on top. So adding this block does not
   regress hero/page-header/card/step rhythm — only the bare article-body case. */
article h2 {
  margin: var(--space-7) 0 var(--space-4);
  line-height: 1.18;
}

article h3 {
  margin: var(--space-6) 0 var(--space-3);
  line-height: 1.25;
}

article h4 {
  margin: var(--space-5) 0 var(--space-2);
}

article p,
article ul,
article ol {
  margin: 0 0 var(--space-4);
}

article ul,
article ol {
  padding-left: var(--space-5);
}

article li+li {
  margin-top: var(--space-2);
}

/* blockquote — kept dormant for editorial pull-quotes. No current article uses
   <blockquote>; the rule is cheap insurance for future content. */
article blockquote {
  margin: var(--space-5) 0;
  padding-left: var(--space-4);
  border-left: 3px solid var(--color-border);
  color: var(--color-text-secondary);
  font-style: italic;
}

article pre {
  margin: var(--space-4) 0 var(--space-5);
}

/* cards inside <article> use `article .card h3` (descendant) — that's
   <div class="card"> panels in long-form article bodies (cola-rapida,
   chatgpt-simbolos). Without this, the 32px article h3 margin-top above stacks
   on the .card's own padding for a 64px gap. .article-card previews are handled
   via the existing .article-card h3 rule (which already sets margin-top: 0). */
article .card h3 {
  margin-top: 0;
}

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
}

.container-narrow {
  width: 100%;
  max-width: var(--container-narrow-max);
  margin: 0 auto;
  padding: 0 24px;
}

/* Editorial vertical rhythm. Calibrated against Stripe and Linear reference
   sites: tight enough to keep visual flow between sections, generous enough
   to remain a content-scan surface. */
.section {
  padding: clamp(64px, 9vw, 128px) 0;
}

.section-sm {
  padding: clamp(40px, 6vw, 80px) 0;
}

.section-xs {
  padding: clamp(32px, 5vw, 56px) 0;
}

.section-tint {
  background: var(--color-bg-soft);
}

.section-tint-teal {
  background: var(--color-bg-tint);
}

.section-divider {
  border-top: 1px solid var(--color-border);
}

.text-center {
  text-align: center;
}

.text-left {
  text-align: left;
}

.mx-auto {
  margin-left: auto;
  margin-right: auto;
}

.mb-3 {
  margin-bottom: var(--space-3);
}

.mb-4 {
  margin-bottom: var(--space-4);
}

.mb-5 {
  margin-bottom: var(--space-5);
}

.mb-6 {
  margin-bottom: var(--space-6);
}

.mb-7 {
  margin-bottom: var(--space-7);
}

.mt-5 {
  margin-top: var(--space-5);
}

.mt-6 {
  margin-top: var(--space-6);
}

.mt-7 {
  margin-top: var(--space-7);
}

.flex {
  display: flex;
}

.flex-wrap {
  flex-wrap: wrap;
}

.gap-3 {
  gap: var(--space-3);
}

.gap-4 {
  gap: var(--space-4);
}

.items-center {
  align-items: center;
}

.justify-center {
  justify-content: center;
}

.justify-between {
  justify-content: space-between;
}

/* ---------- Badge (eyebrow pill) ---------- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  font-weight: 500;
  padding: 8px 16px;
  border-radius: var(--radius-full);
  background: var(--color-bg-surface);
  color: var(--color-text-primary);
  border: 1px solid var(--color-border);
  transition: background-color, border-color, color var(--duration-fast) var(--ease-out);
}

.badge-dot {
  width: 6px;
  height: 6px;
  background: var(--color-teal-500);
  border-radius: 50%;
  box-shadow: 0 0 0 3px var(--color-teal-100);
}

.badge-arrow {
  display: inline-block;
  margin-left: 2px;
  color: var(--color-accent-text);
  transition: transform var(--duration-fast) var(--ease-out);
}

.badge:hover .badge-arrow {
  transform: translateX(3px);
}

.section-label {
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-teal-700);
}

/* Eyebrow — pill-shaped section identifier used inline in hero copy.
   Pairs with the pill-dot indicator; sized like .section-label but with
   capsule background so it stands alone in a hero that doesn't carry the
   .badge style. Used by /pt/newsletter and /en/newsletter hero. */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-teal-700);
  background: var(--color-bg-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
}

/* ---------- Navbar — minimal, floating pill style ---------- */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: saturate(180%) blur(24px);
  -webkit-backdrop-filter: saturate(180%) blur(24px);
  border-bottom: 1px solid var(--color-border);
  height: 72px;
  display: flex;
  align-items: center;
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  gap: var(--space-5);
}

.navbar-brand {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: 1.18rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--color-text-primary);
}

.navbar-brand:hover {
  color: var(--color-text-primary);
}

.brand-mark {
  display: inline-flex;
  width: 28px;
  height: 28px;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: var(--color-text-primary);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 700;
}

.navbar-links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
}

.navbar-links a {
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--color-text-secondary);
  border-radius: var(--radius-full);
  transition: color, background-color var(--duration-fast) var(--ease-out);
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.navbar-links a:hover {
  color: var(--color-text-primary);
  background: var(--color-bg-soft);
}

.navbar-links a.active {
  color: var(--color-text-primary);
  background: var(--color-bg-soft);
  font-weight: 600;
}

.lang-switch {
  display: inline-flex;
  gap: 2px;
  padding: 3px;
  background: var(--color-bg-soft);
  border-radius: var(--radius-full);
  border: 1px solid var(--color-border);
  margin-left: var(--space-3);
}

.lang-switch a {
  font-size: 0.72rem;
  font-weight: 600;
  padding: 5px 10px;
  border-radius: var(--radius-full);
  color: var(--color-text-muted);
  letter-spacing: 0.02em;
}

.lang-switch a.active {
  background: var(--color-bg-base);
  color: var(--color-text-primary);
  box-shadow: var(--shadow-xs);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-full);
  border: 1px solid var(--color-border);
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 1.5px;
  margin: 4px auto;
  background: var(--color-text-primary);
  border-radius: 2px;
  transition: transform var(--duration-fast) var(--ease-out);
}

/* ---------- Breadcrumb (visible wayfinding) ----------
   Renders below the sticky navbar as a horizontal trail: Home › Section › Page.
   Sits inside the page container. On mobile, font shrinks, padding tightens,
   and the current page label is ellipsis-truncated so the trail stays one
   row instead of wrapping into three. The separator is a CSS pseudo-element
   (`›`) on every non-last <li>, so the markup stays a clean ordered list. */
.breadcrumb {
  font-size: 0.78rem;
  color: var(--color-text-muted);
  padding-top: var(--space-3);
}

.breadcrumb ol {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0;
  padding: 0;
  margin: 0;
}

.breadcrumb li {
  display: inline-flex;
  align-items: center;
  min-width: 0;
}

.breadcrumb li>a {
  color: var(--color-text-muted);
  text-decoration: none;
  transition: color var(--duration-fast) var(--ease-out);
}

.breadcrumb li>a:hover,
.breadcrumb li>a:focus-visible {
  color: var(--color-accent-dark);
}

.breadcrumb li:not(:last-child)::after {
  content: '\203A';
  /* single right-pointing angle quotation mark */
  margin: 0 8px;
  color: var(--color-border-strong);
  user-select: none;
}

.breadcrumb [aria-current='page'] {
  color: var(--color-text-secondary);
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 60vw;
}

@media (max-width: 720px) {
  .breadcrumb {
    font-size: 0.72rem;
    padding-top: var(--space-2);
  }

  .breadcrumb li:not(:last-child)::after {
    margin: 0 6px;
  }

  .breadcrumb [aria-current='page'] {
    max-width: 50vw;
  }
}

/* ---------- Buttons — pill, black filled / outline ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 26px;
  font-size: 0.95rem;
  font-weight: 500;
  border-radius: var(--radius-full);
  border: 1px solid transparent;
  transition: color, background-color, border-color, box-shadow, transform var(--duration-base) var(--ease-out);
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  letter-spacing: -0.01em;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn:active {
  transform: translateY(0);
}

.btn[disabled],
.btn[aria-busy='true'] {
  cursor: not-allowed;
  opacity: 0.65;
  transform: none;
  pointer-events: none;
}

/* Primary — solid black pill */
.btn-primary {
  background: var(--color-text-primary);
  color: var(--color-bg-base);
  box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
  background: #1e293b;
  color: var(--color-bg-base);
  box-shadow: var(--shadow-md);
}

/* Secondary — outline pill */
.btn-secondary {
  background: transparent;
  color: var(--color-text-primary);
  border-color: var(--color-border-strong);
}

.btn-secondary:hover {
  background: var(--color-bg-soft);
  color: var(--color-text-primary);
  border-color: var(--color-text-primary);
}

/* Teal accent button — used for newsletter signup */
.btn-accent {
  background: var(--color-accent);
  color: #fff;
  box-shadow: 0 4px 16px -2px rgba(20, 184, 166, 0.4);
}

.btn-accent:hover {
  background: var(--color-accent-dark);
  color: #fff;
}

/* Ghost — link with subtle hover */
.btn-ghost {
  background: transparent;
  color: var(--color-text-secondary);
}

.btn-ghost:hover {
  color: var(--color-text-primary);
  background: var(--color-bg-soft);
}

.btn-lg {
  padding: 18px 32px;
  font-size: 1rem;
}

.btn-sm {
  padding: 10px 18px;
  font-size: 0.86rem;
}

.btn-arrow::after {
  content: '';
  width: 7px;
  height: 7px;
  border-top: 1.5px solid currentColor;
  border-right: 1.5px solid currentColor;
  transform: rotate(45deg);
  display: inline-block;
  transition: transform var(--duration-fast) var(--ease-out);
}

.btn-arrow:hover::after {
  transform: rotate(45deg) translateX(3px);
}

/* ---------- Hero — generous, centered, very light ---------- */
.hero {
  position: relative;
  text-align: center;
  padding: clamp(64px, 10vw, 128px) 0 clamp(56px, 7vw, 96px);
  overflow: hidden;
  isolation: isolate;
}

/* Tight hero variant for content-focused landing pages — opt in via
   class="hero hero--compact". Sized to read tighter than .hero defaults at every
   viewport. The left/right reset keeps the modifier self-contained if .hero's
   horizontal padding value ever changes. */
.hero--compact {
  padding-top: clamp(48px, 7vw, 96px);
  padding-right: 0;
  padding-bottom: clamp(32px, 4vw, 60px);
  padding-left: 0;
}

.hero::before {
  /* Very subtle, single radial at the top — matches the model's airy feel. */
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(60% 50% at 50% -10%, rgba(16, 185, 129, 0.10) 0%, transparent 70%);
  z-index: -1;
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 880px;
  margin: 0 auto;
  padding: 0 24px;
}

.hero h1 {
  margin: var(--space-5) 0 var(--space-5);
}

.hero p.text-lead {
  margin: 0 auto var(--space-7);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  justify-content: center;
  align-items: center;
  margin-bottom: var(--space-7);
}

/* Trust bar — overlapping avatars + mini-quote (like the reference) */
.hero-trust {
  display: inline-flex;
  align-items: center;
  gap: var(--space-4);
  margin-top: var(--space-4);
  padding: 8px 8px 8px 8px;
  background: var(--color-bg-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-xs);
}

.hero-trust-avatars {
  display: inline-flex;
}

.hero-trust-avatars>* {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 2px solid var(--color-bg-surface);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 700;
  color: #fff;
  margin-left: -8px;
  box-shadow: var(--shadow-xs);
}

.hero-trust-avatars>*:first-child {
  margin-left: 0;
}

.hero-trust-text {
  font-size: 0.85rem;
  color: var(--color-text-secondary);
  font-style: italic;
  padding-right: 12px;
  font-variant-numeric: tabular-nums;
}

.hero-trust-text strong {
  font-style: normal;
  color: var(--color-text-primary);
  font-weight: 600;
}

/* ---- Logo bar ---- */
.logo-bar {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-5);
  margin: var(--space-8) auto 0;
  max-width: 820px;
  opacity: 0.6;
  letter-spacing: 0.01em;
}

.logo-bar-label {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}

.logo-bar-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-8);
  align-items: center;
  justify-content: center;
}

.logo-bar-item {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--color-text-secondary);
  letter-spacing: -0.02em;
  position: relative;
  padding-left: 18px;
}

.logo-bar-item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-teal-300);
}

/* ---------- Device mockup (the tilted phone) ---------- */
.mockups {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-5);
  margin-top: var(--space-8);
  perspective: 1200px;
}

.mockup {
  position: relative;
  background: var(--color-bg-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: var(--space-5);
  box-shadow: var(--shadow-lg);
  transform: rotate(-2deg) translateY(-12px);
  transform-origin: center center;
  transition: transform var(--duration-base) var(--ease-out);
}

.mockup:nth-child(2) {
  transform: rotate(2deg) translateY(0px);
}

.mockup:hover {
  transform: rotate(0deg) translateY(-6px);
}

.mockup-screen {
  background: var(--color-bg-soft);
  border-radius: var(--radius-md);
  padding: var(--space-5);
  aspect-ratio: 4 / 3;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  overflow: hidden;
  position: relative;
}

.mockup-screen::before {
  content: '';
  position: absolute;
  top: 12px;
  left: 14px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-teal-500);
  box-shadow: 14px 0 0 0 var(--color-warning), 28px 0 0 0 var(--color-text-muted);
}

/* In-mockup UI primitives */
.mock-row {
  display: flex;
  gap: var(--space-3);
  align-items: center;
}

.mock-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-teal-300), var(--color-teal-600));
  flex-shrink: 0;
}

.mock-bubble {
  background: var(--color-bg-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 8px 12px;
  font-size: 0.78rem;
  color: var(--color-text-primary);
  flex: 1;
}

.mock-bubble.bot {
  background: var(--color-teal-50);
  border-color: var(--color-teal-100);
  color: var(--color-teal-700);
}

.mock-line {
  height: 8px;
  background: var(--color-border);
  border-radius: var(--radius-full);
}

.mock-line.short {
  width: 60%;
}

.mock-line.medium {
  width: 80%;
}

.mock-line.accent {
  background: var(--color-teal-100);
  width: 40%;
}

.mock-card-mini {
  background: var(--color-bg-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 12px;
  display: flex;
  gap: 10px;
  align-items: center;
}

.mock-card-mini .mock-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--color-teal-100);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--color-teal-700);
  font-weight: 700;
  font-size: 0.78rem;
  flex-shrink: 0;
}

/* ---------- App mockups — browser-window demos for solucoes page ----------
   Simulates a realistic application window with chrome (dots, title bar),
   KPI cards, risk indicators, bar charts, and data tables. Everything is
   illustrative — no real company data. Uses its own compact token scale
   so the mockup stays readable inside a card column without blowing out
   the layout. */

.app-mockup {
  background: var(--color-bg-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  min-height: 380px;
  display: flex;
  flex-direction: column;
}

/* Browser chrome bar */
.app-mockup-bar {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: 10px 14px;
  background: #e8e6e1;
  border-bottom: 1px solid var(--color-border);
  font-size: 0.72rem;
  color: var(--color-text-muted);
  flex-shrink: 0;
}

.app-mockup-dots {
  display: inline-flex;
  gap: 6px;
  flex-shrink: 0;
}

.app-mockup-dots i {
  display: block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #c4c2bb;
}

.app-mockup-dots i:nth-child(1) {
  background: #f45b5b;
}

.app-mockup-dots i:nth-child(2) {
  background: #f5c842;
}

.app-mockup-dots i:nth-child(3) {
  background: #5bc75b;
}

.app-mockup-title {
  flex: 1;
  text-align: center;
  font-weight: 500;
  color: #5a5650;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.app-mockup-spacer {
  flex-shrink: 0;
  width: 42px;
}

/* balances the dots */

/* Dashboard body */
.app-mockup-body {
  padding: 14px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 0.7rem;
  overflow: hidden;
}

/* KPI row */
.app-kpi-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.app-kpi {
  background: #f8f7f3;
  border: 1px solid #eae8e1;
  border-radius: 8px;
  padding: 8px 10px;
  text-align: center;
}

.app-kpi-num {
  display: block;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-text-primary);
  line-height: 1.1;
  margin-bottom: 2px;
  font-family: var(--font-mono);
  letter-spacing: -0.02em;
}

.app-kpi-label {
  display: block;
  font-size: 0.62rem;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-weight: 600;
}

.app-kpi--warn .app-kpi-num {
  color: #b37400;
}

.app-kpi--accent .app-kpi-num {
  color: var(--color-teal-600);
}

/* Section label inside mockup */
.app-section-label {
  font-size: 0.6rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-text-muted);
  margin: 2px 0 0;
}

/* Risk score bars */
.app-risk-bar {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.app-risk-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 4px 8px;
  border-radius: 5px;
  font-weight: 600;
  font-size: 0.68rem;
}

.app-risk-score {
  font-family: var(--font-mono);
  font-weight: 700;
  padding: 1px 7px;
  border-radius: 10px;
  font-size: 0.62rem;
}

.app-risk--crit {
  background: #fbe9e7;
  color: #b3261e;
}

.app-risk--crit .app-risk-score {
  background: #b3261e;
  color: #fff;
}

.app-risk--high {
  background: #fdf0e0;
  color: #c2541f;
}

.app-risk--high .app-risk-score {
  background: #c2541f;
  color: #fff;
}

.app-risk--med {
  background: #fdf1dc;
  color: #b37400;
}

.app-risk--med .app-risk-score {
  background: #b37400;
  color: #fff;
}

.app-risk--low {
  background: #e6f4ec;
  color: #1f7a4d;
}

.app-risk--low .app-risk-score {
  background: #1f7a4d;
  color: #fff;
}

/* Bar chart (mini) */
.app-bars {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 56px;
  padding: 0 2px;
}

.app-bar-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  height: 100%;
  justify-content: flex-end;
}

.app-bar {
  width: 100%;
  max-width: 24px;
  background: var(--color-teal-400);
  border-radius: 3px 3px 0 0;
  min-height: 6px;
  transition: height 600ms var(--ease-out);
}

.app-bar-col span {
  font-size: 0.52rem;
  color: var(--color-text-muted);
  font-weight: 500;
}

/* Mini table */
.app-table-scroll {
  font-size: 0.66rem;
}

.app-table-row {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.3fr;
  gap: 4px;
  padding: 4px 6px;
  border-bottom: 1px solid #f0ede6;
  align-items: center;
}

/* Fleet table needs wider vehicle-name column since names include model */
.fleet-skin .app-table-row {
  grid-template-columns: 2.4fr 1fr 1fr 1.3fr;
}

.app-table-row:last-child {
  border-bottom: none;
}

.app-table-head {
  font-weight: 700;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 0.58rem;
  padding-bottom: 5px;
  border-bottom: 1.5px solid var(--color-border);
}

.app-table-row--warn {
  background: #fefce8;
}

.app-table-row--crit {
  background: #fef2f2;
}

/* Status pills inside table */
.app-st {
  display: inline-block;
  font-size: 0.56rem;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  white-space: nowrap;
}

.app-st--ok {
  color: #1f7a4d;
  background: #e6f4ec;
}

.app-st--soon {
  color: #b37400;
  background: #fdf1dc;
}

.app-st--late {
  color: #b3261e;
  background: #fbe9e7;
}

/* Mockup footer note */
.app-mockup-note {
  font-size: 0.58rem;
  color: var(--color-text-muted);
  text-align: center;
  padding: 6px 8px;
  border-top: 1px solid var(--color-border);
  background: var(--color-bg-soft);
  margin: 0;
}

/* Fleet skin — slightly warmer tone */
.fleet-skin {
  background: #faf8f3;
}

/* Pricing skin — slightly cooler tone */
.pricing-skin {
  background: #f7f9fb;
}

/* ---------- Feature pill cluster (generic, has dot) ---------- */
.feature-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-top: var(--space-6);
}

.feature-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  font-size: 0.92rem;
  font-weight: 500;
  border-radius: var(--radius-full);
  background: var(--color-bg-surface);
  color: var(--color-text-primary);
  border: 1px solid var(--color-border);
  transition: border-color, color, transform var(--duration-fast) var(--ease-out);
}

.feature-pill:hover {
  border-color: var(--color-teal-300);
  color: var(--color-teal-700);
  transform: translateY(-1px);
}

.feature-pill::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-teal-500);
}

/* ---------- Tab pills (decorative chip row; not interactive) ---------- */
.tab-pills {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: center;
  margin-top: var(--space-6);
  padding: 6px;
  background: var(--color-bg-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-xs);
}

.tab-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 22px;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--color-text-secondary);
  border-radius: var(--radius-full);
  user-select: none;
}

.tab-pill.active {
  background: var(--color-text-primary);
  color: #fff;
  box-shadow: var(--shadow-xs);
}

/* ---------- Cards ---------- */
.card {
  background: var(--color-bg-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  transition: border-color, box-shadow var(--duration-base) var(--ease-out);
}

.card:hover {
  border-color: var(--color-teal-300);
  box-shadow:
    var(--shadow-md),
    inset 0 0 0 1px var(--color-teal-100);
}

.card-sm {
  padding: var(--space-5);
}

.card-lg {
  padding: var(--space-7);
}

.card h3 {
  margin-bottom: var(--space-3);
}

.card-bordered {
  border: 2px solid var(--color-teal-500);
}

.tag, .pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  background: var(--color-accent-soft);
  color: var(--color-accent-dark);
}

.pill-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-teal-500);
}

.pill-dot.coming {
  background: var(--color-warning);
}

.product-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--color-text-secondary);
}

/* ---------- Grids ---------- */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-5);
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-5);
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--space-5);
}

/* ---------- Article cards ---------- */
.article-card {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  background: var(--color-bg-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  transition: border-color var(--duration-base) var(--ease-out), box-shadow var(--duration-base) var(--ease-out), opacity 200ms var(--ease-out), transform 200ms var(--ease-out);
  text-decoration: none;
  color: inherit;
}

.article-card:hover {
  border-color: var(--color-teal-300);
  box-shadow:
    var(--shadow-md),
    inset 0 0 0 1px var(--color-teal-100);
}

.article-card .card-tag {
  display: inline-flex;
  align-self: flex-start;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  background: var(--color-teal-50);
  color: var(--color-teal-700);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.article-card h3 {
  font-size: 1.06rem;
  font-weight: 600;
  color: var(--color-text-primary);
  line-height: 1.3;
  margin-top: 0;
}

.article-card p {
  font-size: 0.92rem;
  color: var(--color-text-secondary);
  margin: 0;
  line-height: 1.5;
}

.article-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
  padding-top: var(--space-3);
  font-size: 0.8rem;
  color: var(--color-text-muted);
}

.read-more {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-accent-dark);
}

.read-more::after {
  content: '';
  width: 6px;
  height: 6px;
  border-top: 1.5px solid currentColor;
  border-right: 1.5px solid currentColor;
  transform: rotate(45deg);
  transition: transform var(--duration-fast) var(--ease-out);
}

.article-card:hover .read-more::after {
  transform: rotate(45deg) translateX(3px);
}

/* ---------- Before / After comparison ---------- */
.before-after {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-5);
  align-items: stretch;
}

.ba-card {
  background: var(--color-bg-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  min-height: 280px;
  position: relative;
}

.ba-card.before {
  opacity: 0.85;
}

.ba-card.after {
  border-color: var(--color-teal-300);
  background: linear-gradient(180deg, var(--color-bg-base) 0%, var(--color-teal-50) 100%);
}

.ba-card-label {
  display: inline-flex;
  align-self: flex-start;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: var(--radius-full);
}

.ba-card.before .ba-card-label {
  background: var(--color-bg-soft);
  color: var(--color-text-muted);
}

.ba-card.after .ba-card-label {
  background: var(--color-teal-500);
  color: #fff;
}

/* ---------- Stats ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: var(--space-7);
  padding: var(--space-6) 0;
  text-align: center;
}

.stat-value {
  font-size: 25px;
  font-weight: 700;
  color: var(--color-text-primary);
  letter-spacing: -0.04em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.stat-label {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  margin-top: var(--space-2);
}

/* ---------- Testimonial cards ---------- */
.testimonial {
  background: var(--color-bg-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  position: relative;
  transition: border-color, box-shadow var(--duration-base) var(--ease-out);
}

.testimonial:hover {
  border-color: var(--color-border-strong);
  box-shadow: var(--shadow-sm);
}

.testimonial blockquote {
  margin: 0 0 var(--space-4);
  font-size: 1rem;
  color: var(--color-text-primary);
  font-weight: 500;
  line-height: 1.55;
}

.testimonial-cite {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-style: normal;
}

.testimonial-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-teal-300), var(--color-teal-600));
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 700;
  font-size: 0.9rem;
}

.testimonial-name {
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--color-text-primary);
}

.testimonial-role {
  font-size: 0.8rem;
  color: var(--color-text-muted);
}

/* ---------- Steps ---------- */
.steps {
  counter-reset: step;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--space-5);
}

.step {
  counter-increment: step;
  padding: var(--space-6);
  background: var(--color-bg-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
}

.step::before {
  content: counter(step, decimal-leading-zero);
  display: block;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-teal-700);
  margin-bottom: var(--space-3);
}

.step h3 {
  margin-bottom: var(--space-2);
  font-size: 1.1rem;
}

.step p {
  margin: 0;
  font-size: 0.94rem;
}

/* ---------- Filter pills ---------- */
.tags-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: var(--space-6);
}

.tag-filter-btn {
  font-size: 0.85rem;
  font-weight: 500;
  padding: 12px 18px;
  min-height: 44px;
  border-radius: var(--radius-full);
  border: 1px solid var(--color-border);
  background: var(--color-bg-surface);
  color: var(--color-text-secondary);
  cursor: pointer;
  transition: border-color, color, background-color var(--duration-fast) var(--ease-out);
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.tag-filter-btn:hover {
  border-color: var(--color-teal-500);
  color: var(--color-teal-700);
}

.tag-filter-btn.active {
  background: var(--color-text-primary);
  color: var(--color-bg-base);
  border-color: var(--color-text-primary);
}

/* Tag count badge inside filter buttons */
.tag-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  margin-left: 4px;
  font-size: 0.72rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  background: var(--color-bg-soft);
  color: var(--color-text-muted);
  transition: background-color, color var(--duration-fast) var(--ease-out);
}

.tag-filter-btn.active .tag-count {
  background: rgba(255, 255, 255, 0.18);
  color: var(--color-bg-base);
}

/* ---------- Articles toolbar (search + filters) ---------- */
.articles-toolbar {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  margin-bottom: var(--space-7);
}

.search-wrap {
  position: relative;
  max-width: 420px;
}

.search-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--color-text-muted);
  pointer-events: none;
}

.search-input {
  width: 100%;
  padding: 12px 16px 12px 44px;
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-full);
  background: var(--color-bg-surface);
  color: var(--color-text-primary);
  font: inherit;
  font-size: 0.92rem;
  outline: none;
  transition: border-color, box-shadow var(--duration-fast) var(--ease-out);
  -webkit-appearance: none;
  appearance: none;
}

.search-input::placeholder {
  color: var(--color-text-muted);
}

.search-input:focus {
  border-color: var(--color-teal-500);
  box-shadow: 0 0 0 4px var(--color-teal-100);
}

/* Clear button inside search (webkit) */
.search-input::-webkit-search-cancel-button {
  cursor: pointer;
  opacity: 0.5;
  transition: opacity var(--duration-fast);
}

.search-input::-webkit-search-cancel-button:hover {
  opacity: 1;
}

/* ---------- Featured articles ---------- */
.articles-featured {
  margin-bottom: var(--space-7);
  padding-bottom: var(--space-6);
  border-bottom: 1px solid var(--color-border);
}

.article-card--featured {
  border-color: var(--color-teal-200);
  background: linear-gradient(180deg, var(--color-bg-surface) 0%, var(--color-teal-50) 100%);
}

.article-card--featured:hover {
  border-color: var(--color-teal-400);
  box-shadow: var(--shadow-md);
}

.card-tag--featured {
  background: var(--color-teal-100);
  color: var(--color-teal-700);
}

/* ---------- Articles count + empty ---------- */
.articles-count {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  margin-bottom: var(--space-5);
}

.articles-empty {
  text-align: center;
  padding: var(--space-8) var(--space-5);
  color: var(--color-text-muted);
}

/* Card filter transition */
.article-card[hidden] {
  display: none;
}

/* ---------- Forms ---------- */
/* Keep the native hidden attribute reliable even when a component sets display. */
[hidden] {
  display: none !important;
}

input[type='email'], input[type='text'], textarea {
  width: 100%;
  padding: 14px 20px;
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-full);
  background: var(--color-bg-surface);
  color: var(--color-text-primary);
  font: inherit;
  font-size: 0.95rem;
  outline: none;
  transition: border-color, box-shadow var(--duration-fast) var(--ease-out);
  -webkit-tap-highlight-color: transparent;
}

input[type='email']:focus, input[type='text']:focus, textarea:focus {
  border-color: var(--color-teal-500);
  box-shadow: 0 0 0 4px var(--color-teal-100);
}

.newsletter-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: var(--space-3);
  align-items: stretch;
  width: 100%;
  max-width: 520px;
}

.newsletter-form input[type='email'] {
  grid-column: 1;
  grid-row: 1;
  min-width: 0;
  min-height: 52px;
  padding: 14px 22px;
}

/* The consent row belongs below the email/button pair, not beside them. */
.newsletter-form .newsletter-consent {
  grid-column: 1 / -1;
  grid-row: 2;
  width: 100%;
  justify-content: flex-start;
  text-align: left;
}

.newsletter-form button[type='submit'] {
  grid-column: 2;
  grid-row: 1;
  min-height: 52px;
  white-space: nowrap;
}

.newsletter-form-stack {
  display: flex;
  flex-direction: column;
}

.newsletter-form-stack .btn {
  width: 100%;
}

/* Inline form error — announced by screen readers via aria-live on the field. */
.newsletter-form .input-error {
  grid-column: 1 / -1;
  grid-row: 3;
  display: block;
  margin-top: 0;
  font-size: 0.85rem;
  color: #b91c1c;
  font-weight: 500;
}

.newsletter-form button[aria-busy='true']::after {
  content: '';
  display: inline-block;
  width: 12px;
  height: 12px;
  margin-left: 8px;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  vertical-align: middle;
  animation: spin 0.7s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.success-state {
  display: none;
  padding: var(--space-5);
  background: var(--color-teal-50);
  border: 1px solid var(--color-teal-300);
  border-radius: var(--radius-md);
  text-align: center;
  color: var(--color-teal-700);
  font-weight: 500;
}

.success-state.show {
  display: block;
  animation: fadeUp 400ms var(--ease-out);
}

.success-state .check {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--color-teal-500);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: var(--space-3);
}

/* ---------- Inline CTA — used inside hero & mid-page ---------- */
.inline-cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-5);
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}

/* ---------- Page header ---------- */
.page-header {
  text-align: center;
  padding: clamp(56px, 8vw, 112px) 0 clamp(32px, 5vw, 64px);
}

.page-header h1 {
  margin-bottom: var(--space-4);
}

.page-header .text-lead {
  margin: 0 auto;
}

/* ---------- Method and service details ---------- */
.feature-list {
  list-style: none;
  margin: var(--space-6) 0;
  padding: 0;
}

.feature-list li {
  position: relative;
  padding: 10px 0 10px 32px;
  color: var(--color-text-secondary);
  border-bottom: 1px solid var(--color-border);
  font-size: 0.96rem;
}

.feature-list li:last-child {
  border-bottom: 0;
}

.feature-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--color-teal-100);
  color: var(--color-teal-700);
  font-weight: 700;
  font-size: 0.72rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.price-block {
  margin: var(--space-6) 0;
  display: flex;
  align-items: baseline;
  gap: var(--space-3);
  flex-wrap: wrap;
}

.service-price {
  font-size: clamp(2.1rem, 4vw, 3rem);
  font-weight: 700;
  color: var(--color-text-primary);
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
}

.price-original {
  color: var(--color-text-muted);
  text-decoration: line-through;
}

.price-save {
  font-size: 0.78rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  background: var(--color-teal-500);
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ---------- FAQ ---------- */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.faq-item {
  background: var(--color-bg-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color, background-color, box-shadow var(--duration-base) var(--ease-out);
}

.faq-item[open] {
  border-color: var(--color-teal-300);
  background: var(--color-bg-surface);
  box-shadow: var(--shadow-sm);
}

.faq-item summary {
  cursor: pointer;
  list-style: none;
  padding: var(--space-5) var(--space-6);
  font-weight: 600;
  font-size: 1rem;
  color: var(--color-text-primary);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: '';
  width: 12px;
  height: 12px;
  border-top: 1.5px solid currentColor;
  border-right: 1.5px solid currentColor;
  transform: rotate(135deg);
  font-size: 0;
  color: var(--color-accent);
  font-weight: 300;
  transition: transform var(--duration-base) var(--ease-out);
  flex-shrink: 0;
}

.faq-item[open] summary::after {
  transform: rotate(-45deg);
}

.faq-item p {
  padding: 0 var(--space-6) var(--space-5);
  color: var(--color-text-secondary);
}

/* ---------- Footer ---------- */
.footer {
  background: var(--color-bg-soft);
  border-top: 1px solid var(--color-border);
  padding: var(--space-10) 0 var(--space-6);
  margin-top: var(--space-10);
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: var(--space-7);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: var(--space-7);
}

.footer-brand-block {
  max-width: 320px;
}

.footer-brand-block .footer-brand {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--color-text-primary);
  margin-bottom: var(--space-3);
  letter-spacing: -0.02em;
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
}

.footer-brand-block p {
  font-size: 0.92rem;
  color: var(--color-text-muted);
}

.footer h4 {
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-text-primary);
  margin-bottom: var(--space-4);
}

.footer ul {
  list-style: none;
}

.footer ul li {
  margin-bottom: var(--space-2);
}

.footer ul a {
  color: var(--color-text-muted);
  font-size: 0.9rem;
}

.footer ul a:hover {
  color: var(--color-text-primary);
}

.footer-bottom {
  border-top: 1px solid var(--color-border);
  padding-top: var(--space-5);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.82rem;
  color: var(--color-text-muted);
  flex-wrap: wrap;
  gap: var(--space-3);
}

.footer-social {
  display: inline-flex;
  gap: var(--space-4);
}

.footer-bottom-meta {
  display: inline-flex;
  align-items: center;
  gap: var(--space-5);
  flex-wrap: wrap;
}

/* Footer re-decision trigger — small inline button that re-opens the
   consent banner. Sized so it doesn't compete with the social links but
   stays discoverable. The underline-on-hover reads as a link affordance
   while remaining a real <button> for assistive tech. */
.footer-privacy-trigger {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font: inherit;
  font-size: 0.82rem;
  color: var(--color-text-muted);
  background: transparent;
  border: 0;
  padding: 0;
  cursor: pointer;
  letter-spacing: 0;
  transition: color var(--duration-fast) var(--ease-out);
  -webkit-tap-highlight-color: transparent;
}

.footer-privacy-trigger::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-teal-300);
  flex-shrink: 0;
  transition: background-color var(--duration-fast) var(--ease-out);
}

.footer-privacy-trigger:hover,
.footer-privacy-trigger:focus-visible {
  color: var(--color-accent-dark);
}

.footer-privacy-trigger:hover::before,
.footer-privacy-trigger:focus-visible::before {
  background: var(--color-teal-500);
}

/* ---------- Hero banner (raccoon) ----------
   Decorative raccoon image used as a hero background on the home
   pages only. Positioned behind the hero copy (.hero-inner z-index:1)
   so the text floats over it. background-color matches the page base
   (#fafaf7) so the JPEG edges blend seamlessly. pointer-events:none
   keeps it from intercepting clicks. No hover transform — motion bans
   apply. */
.hero-banner {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  background: var(--color-bg-base);
  overflow: hidden;
}

/* Soft fade at the bottom edge so the image's hard crop dissolves
   into the page background instead of showing a visible cut line. */
.hero-banner::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 55%;
  background: linear-gradient(to bottom,
      rgba(250, 250, 247, 0) 0%,
      rgba(250, 250, 247, 0.65) 55%,
      rgba(250, 250, 247, 1) 100%);
  pointer-events: none;
}

.hero-banner img {
  display: block;
  width: auto;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center 40%;
  opacity: 0.20;
}

@media (max-width: 720px) {
  .hero-banner img {
    height: 100%;
    width: 100%;
    object-fit: cover;
    object-position: center 30%;
  }
}

/* ---------- 404 ---------- */
.notfound {
  text-align: center;
  padding: clamp(80px, 12vw, 160px) 0;
}

.notfound-code {
  font-size: clamp(7rem, 18vw, 12rem);
  font-weight: 800;
  line-height: 0.9;
  letter-spacing: -0.06em;
  background: linear-gradient(135deg, var(--color-teal-500) 0%, var(--color-teal-700) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.notfound p {
  margin: var(--space-4) auto var(--space-6);
  max-width: 480px;
  font-size: 1.1rem;
}

/* ---------- Showcase CTA (light, the "Customize the full experience" panel) ---------- */
.showcase-panel {
  position: relative;
  background: var(--color-bg-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: clamp(48px, 6vw, 80px) clamp(24px, 4vw, 56px);
  box-shadow: var(--shadow-sm);
}

.showcase-panel+.showcase-panel {
  margin-top: var(--space-6);
}

/* Feature row: heading + bullets on the left, phone mockup on the right. */
.feature-row {
  display: grid;
  grid-template-columns: 1fr 0.95fr;
  gap: clamp(40px, 6vw, 72px);
  align-items: center;
}

.feature-row .feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: var(--color-teal-100);
  color: var(--color-teal-700);
  margin-bottom: var(--space-4);
}

.feature-row h3 {
  font-size: clamp(1.4rem, 2.2vw, 1.75rem);
  margin-bottom: var(--space-3);
}

.feature-row .feature-bullets {
  list-style: none;
  margin: var(--space-5) 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.feature-row .feature-bullets li {
  position: relative;
  padding-left: 28px;
  color: var(--color-text-secondary);
  font-size: 0.96rem;
  line-height: 1.5;
}

.feature-row .feature-bullets li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 1px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 6px;
  background: var(--color-teal-100);
  color: var(--color-teal-700);
  font-size: 0.7rem;
  font-weight: 700;
}

.feature-row .feature-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

@media (max-width: 860px) {
  .feature-row {
    grid-template-columns: 1fr;
  }

  .feature-row .feature-visual {
    order: -1;
  }
}

/* ---------- Phone frame (concrete mockup with notch) ---------- */
.phone-frame {
  position: relative;
  width: min(320px, 100%);
  aspect-ratio: 9 / 19;
  background: #0f172a;
  border-radius: 44px;
  padding: 10px;
  box-shadow:
    0 30px 60px -20px rgba(15, 23, 42, 0.25),
    0 0 0 1px rgba(15, 23, 42, 0.06);
}

.phone-frame::before {
  /* Notch */
  content: '';
  position: absolute;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  width: 96px;
  height: 22px;
  background: #0f172a;
  border-radius: 999px;
  z-index: 2;
}

.phone-frame::after {
  /* Side button ridge for realism */
  content: '';
  position: absolute;
  right: -2px;
  top: 110px;
  width: 3px;
  height: 50px;
  background: rgba(15, 23, 42, 0.18);
  border-radius: 0 3px 3px 0;
}

.phone-screen {
  width: 100%;
  height: 100%;
  background: var(--color-bg-surface);
  border-radius: 36px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.phone-screen .phone-header {
  padding: 40px 18px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.7rem;
  color: var(--color-text-muted);
}

.phone-screen .phone-card {
  margin: 8px 14px 14px;
  padding: 16px 18px;
  background: var(--color-bg-soft);
  border: 1px solid var(--color-border);
  border-radius: 18px;
  display: flex;
  gap: 12px;
  align-items: center;
}

.phone-screen .phone-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-teal-300), var(--color-teal-600));
}

.phone-screen .phone-meta {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.phone-screen .phone-line {
  height: 8px;
  border-radius: 999px;
  background: var(--color-border);
}

.phone-screen .phone-line.short {
  width: 60%;
}

.phone-screen .phone-line.accent {
  background: var(--color-teal-100);
  width: 45%;
}

.phone-screen .phone-bubbles {
  flex: 1;
  padding: 6px 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  overflow: hidden;
}

.phone-screen .phone-bubble {
  font-size: 0.74rem;
  padding: 9px 12px;
  border-radius: 14px;
  background: var(--color-bg-soft);
  border: 1px solid var(--color-border);
  color: var(--color-text-primary);
  align-self: flex-start;
  max-width: 85%;
}

.phone-screen .phone-bubble.bot {
  background: var(--color-teal-50);
  border-color: var(--color-teal-100);
  color: var(--color-accent-text);
}

.phone-screen .phone-bubble.outgoing {
  align-self: flex-end;
  background: var(--color-text-primary);
  color: #fff;
  border-color: transparent;
}

/* ---------- Dotted horizontal divider (clean section boundary, no tinted bg) ---------- */
.section-divider {
  border: 0;
  border-top: 1px solid var(--color-border);
  margin: 0;
}

/* ---------- Skip link (WIG a11y quick win) ---------- */
.skip-link {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translate(-50%, -110%);
  padding: 12px 18px;
  background: var(--color-text-primary);
  color: var(--color-bg-base);
  font-weight: 600;
  font-size: 0.92rem;
  border-radius: 0 0 var(--radius-md) var(--radius-md);
  box-shadow: var(--shadow-md);
  z-index: 200;
  text-decoration: none;
  transition: transform var(--duration-fast) var(--ease-out);
}

.skip-link:focus,
.skip-link:focus-visible {
  transform: translate(-50%, 0);
  outline: 2px solid var(--color-teal-500);
  outline-offset: 2px;
  color: var(--color-bg-base);
}

/* ---------- A11y helpers ---------- */
:focus-visible {
  outline: 2px solid var(--color-teal-500);
  outline-offset: 2px;
  border-radius: 4px;
}

button:focus-visible, .btn:focus-visible {
  outline: 2px solid var(--color-teal-500);
  outline-offset: 3px;
}

.navbar-links a:focus-visible, .tag-filter-btn:focus-visible {
  outline: 2px solid var(--color-teal-500);
  outline-offset: 1px;
}

.faq-item summary:focus-visible {
  outline: 2px solid var(--color-teal-500);
  outline-offset: -2px;
  border-radius: var(--radius-md);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.sr-only-focusable:not(:focus):not(:focus-within) {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/* ---------- Animations ---------- */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(12px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .grid-3, .grid-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-6);
  }

  .before-after {
    grid-template-columns: 1fr;
  }

  .mockups {
    grid-template-columns: 1fr;
  }

  .mockup, .mockup:nth-child(2) {
    transform: rotate(0deg);
  }

  .app-kpi-row {
    grid-template-columns: repeat(2, 1fr);
  }

  .app-table-row {
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    font-size: 0.62rem;
  }
}

@media (max-width: 720px) {
  body {
    font-size: 16.5px;
  }

  .hero {
    padding-top: 56px;
    padding-bottom: 48px;
  }

  .hero-inner {
    padding-left: 16px;
    padding-right: 16px;
  }

  .hero h1 {
    font-size: clamp(2rem, 10vw, 3rem);
    line-height: 1.08;
  }

  .hero-support {
    font-size: .92rem;
  }

  .service-reach {
    font-size: .82rem;
  }

  .card,
  .showcase-panel,
  .ba-card {
    padding: var(--space-5);
  }

  .app-mockup {
    min-width: 0;
  }

  .app-mockup-body {
    padding: 10px;
    overflow-x: auto;
  }

  .app-kpi-row {
    min-width: 320px;
  }

  .app-table-scroll {
    min-width: 460px;
  }

  .grid-3, .grid-2, .grid-4 {
    grid-template-columns: 1fr;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .navbar-links {
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--color-bg-base);
    border-bottom: 1px solid var(--color-border);
    flex-direction: column;
    align-items: stretch;
    padding: var(--space-4);
    gap: 4px;
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity, transform var(--duration-base) var(--ease-out);
    box-shadow: var(--shadow-md);
  }

  .navbar-links.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .navbar-links a {
    width: 100%;
    min-height: 44px;
    padding: 12px 16px;
  }

  .lang-switch {
    align-self: flex-start;
    margin-left: 0;
    margin-top: var(--space-3);
  }

  .newsletter-form {
    grid-template-columns: 1fr;
  }

  .newsletter-form input[type='email'],
  .newsletter-form .newsletter-consent,
  .newsletter-form button[type='submit'],
  .newsletter-form .input-error {
    grid-column: 1;
  }

  .newsletter-form input[type='email'] {
    grid-row: 1;
    padding: 16px 22px;
  }

  .newsletter-form .newsletter-consent {
    grid-row: 2;
  }

  .newsletter-form button[type='submit'] {
    grid-row: 3;
    width: 100%;
  }

  .newsletter-form .input-error {
    grid-row: 4;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    max-width: 360px;
    margin-left: auto;
    margin-right: auto;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  .logo-bar {
    gap: var(--space-5);
    justify-content: center;
  }
}

:root {
  --color-bg-base: #f7f9fb;
  --color-bg-soft: #eef2f6;
  --color-bg-tint: #ffffff;
  --color-bg-surface: #ffffff;
  --color-bg-elevated: #ffffff;
  --color-bg-inverse: #0b1f33;
  --color-text-primary: #0b1f33;
  --color-text-secondary: #425466;
  --color-text-muted: #687b8d;
  --color-border: #dce4eb;
  --color-border-strong: #b9c7d3;
  --color-teal-50: #edf5fc;
  --color-teal-100: #d8e9f8;
  --color-teal-300: #9dc6e8;
  --color-teal-500: #1769aa;
  --color-teal-600: #12558b;
  --color-teal-700: #0c4777;
  --color-accent: #1769aa;
  --color-accent-soft: #d8e9f8;
  --color-accent-dark: #0c4777;
  --color-accent-text: #0c4777;
  --shadow-xs: 0 1px 2px rgba(11, 31, 51, .04);
  --shadow-sm: 0 2px 8px rgba(11, 31, 51, .06);
  --shadow-md: 0 10px 24px rgba(11, 31, 51, .09);
  --shadow-lg: 0 18px 42px rgba(11, 31, 51, .11);
  --shadow-xl: 0 28px 64px rgba(11, 31, 51, .13);
  --radius-xs: 4px;
  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 10px;
  --radius-xl: 14px;
}

.check .icon {
  width: 1.3em;
  height: 1.3em;
}

.icon {
  width: 1.05em;
  height: 1.05em;
  flex: 0 0 auto;
  stroke-width: 1.8;
  vertical-align: -0.14em;
}

.card-tag .icon {
  width: 1.1em;
  height: 1.1em;
}

/* Replace decorative emoji-like text treatments with a shared icon tile. */
.card-tag:has(.icon) {
  gap: 6px;
  text-transform: none;
  letter-spacing: .01em;
}

.card-tag:has(.icon) .icon {
  color: var(--color-accent);
}

.mock-icon .icon {
  width: 17px;
  height: 17px;
}

.mock-icon--accent {
  background: var(--color-accent) !important;
  color: #fff !important;
}

.navbar {
  background: rgba(255, 255, 255, .94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 rgba(11, 31, 51, .04);
}

.brand-mark {
  border-radius: 6px;
  background: var(--color-text-primary);
}

.navbar-links {
  gap: 2px;
}

.navbar-links a {
  border-radius: var(--radius-sm);
}

.lang-switch {
  border-radius: var(--radius-sm);
}

.lang-switch a {
  border-radius: 4px;
}

.btn {
  border-radius: var(--radius-sm);
  font-weight: 600;
  padding: 13px 22px;
}

.btn-primary {
  background: var(--color-text-primary);
  color: #fff;
}

.btn-primary:hover {
  background: #163b59;
  color: #fff;
}

.btn-secondary {
  border-color: var(--color-border-strong);
}

.btn-accent {
  background: var(--color-accent);
}

.btn-ghost {
  border-radius: var(--radius-sm);
}

.badge, .tag, .pill, .feature-pill {
  border-radius: var(--radius-sm);
}

.badge {
  font-weight: 600;
}

.section-label {
  color: var(--color-accent-dark);
}

.card, .article-card, .testimonial, .ba-card, .showcase-panel, .step, .faq-item {
  border-radius: var(--radius-lg);
  box-shadow: none;
}

.card:hover, .article-card:hover, .testimonial:hover, .faq-item[open] {
  box-shadow: var(--shadow-md);
}

.card:hover, .article-card:hover {
  border-color: var(--color-teal-300);
}

.article-card--featured {
  background: var(--color-bg-surface);
}

.ba-card.after {
  background: var(--color-teal-50);
}

.showcase-panel {
  box-shadow: var(--shadow-sm);
}

.hero::before {
  background: radial-gradient(54% 42% at 50% -10%, rgba(23, 105, 170, .09) 0%, transparent 72%);
}

.hero-trust-avatars>* {
  background: var(--color-accent-dark) !important;
}

.logo-bar-item::before {
  border-radius: 2px;
  background: var(--color-accent);
}

.feature-list li::before,
.feature-row .feature-bullets li::before {
  content: '';
  border-radius: 4px;
  background: var(--color-accent-soft);
}

.feature-list li::after,
.feature-row .feature-bullets li::after {
  content: '';
  position: absolute;
  width: 5px;
  height: 9px;
  border-right: 2px solid var(--color-accent-dark);
  border-bottom: 2px solid var(--color-accent-dark);
  transform: rotate(45deg);
}

.feature-list li::after {
  left: 8px;
  top: calc(50% - 6px);
}

.feature-row .feature-bullets li::after {
  left: 7px;
  top: 5px;
}

/* Make the entire icon-bearing card vocabulary align like a small design kit. */
.card-tag {
  min-height: 26px;
  align-items: center;
}

.search-icon {
  width: 17px;
  height: 17px;
  color: var(--color-accent-dark);
}

.tag-filter-btn {
  border-radius: var(--radius-sm);
}

.search-input, input[type='email'], input[type='text'], textarea {
  border-radius: var(--radius-sm);
}

@media (max-width: 720px) {
  .navbar-links {
    top: 72px;
    max-height: calc(100vh - 72px);
    overflow-y: auto;
  }

  .navbar-links a {
    border-radius: var(--radius-sm);
  }

  .hero-trust {
    border-radius: var(--radius-md);
  }
}


/* Honest launch-stage proof: clarity over manufactured social proof. */
.launch-note {
  max-width: 720px;
  margin: var(--space-5) auto 0;
  padding: var(--space-4) var(--space-5);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-bg-surface);
  color: var(--color-text-secondary);
  font-size: .95rem;
}

.launch-note .section-label {
  display: block;
  margin-bottom: var(--space-3);
}

.launch-note h2 {
  margin-bottom: var(--space-3);
}

.launch-note p:last-child {
  margin-bottom: 0;
}


.service-reach {
  max-width: 720px;
  margin: var(--space-3) auto 0;
  color: var(--color-text-muted);
  font-size: .9rem;
}

/* SMB comprehension helpers */
.hero-support {
  max-width: 56ch;
  margin: calc(var(--space-5) * -1) auto var(--space-6);
  color: var(--color-text-secondary);
  font-size: .98rem;
}

.agro-context {
  display: block;
  margin-top: var(--space-3);
}

.problem-note {
  max-width: 66ch;
  margin: 0 auto var(--space-5);
  padding: var(--space-3) var(--space-4);
  border-left: 3px solid var(--color-accent);
  background: var(--color-bg-soft);
  color: var(--color-text-secondary);
  font-size: .92rem;
  text-align: left;
}

.how-step {
  position: relative;
  padding-top: var(--space-7);
}

.how-step .step-number {
  position: absolute;
  top: var(--space-5);
  left: var(--space-5);
  font-family: var(--font-mono);
  font-size: .78rem;
  font-weight: 700;
  color: var(--color-accent-dark);
  letter-spacing: .08em;
}

.how-step h3 {
  margin-bottom: var(--space-3);
}

/* ---------- Framework pillar card (6-pillar formula preview) ----------
   Variant of .card used on the landing page to expose the 6 prompt-formula
   pillars as a credibility anchor. Distinct from .how-step so the numbered
   cards on this page don't read as another day-in-the-life process:
   - .pillar-number is a small teal pill (vs .how-step's plain text) so the
     pillars feel like "ingredients" of a framework, not execution steps.
   - .pillar-example is an italic micro-quote, separated by a hairline rule,
     so each card carries one concrete hint from the underlying article. */
.pillar-card {
  position: relative;
  padding-top: var(--space-8);
}

.pillar-card .pillar-number {
  position: absolute;
  /* Sit inside the .pillar-card padding-top zone so the h3 below never
     overlaps. .pillar-card padding-top is 64px (space-8); the pill is 32px
     tall starting at 16px (space-4) → bottom edge at 48px, leaving a 16px
     breathing gap before the h3 at 64px. */
  top: var(--space-4);
  left: var(--space-4);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  height: 32px;
  padding: 0 10px;
  border-radius: var(--radius-full);
  background: var(--color-teal-50);
  color: var(--color-accent-dark);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  border: 1px solid var(--color-teal-100);
}

.pillar-card h3 {
  margin-top: 0;
  margin-bottom: var(--space-3);
}

.pillar-card .pillar-example {
  margin: var(--space-4) 0 0;
  padding-top: var(--space-3);
  border-top: 1px solid var(--color-border);
  font-size: 0.84rem;
  font-style: italic;
  color: var(--color-text-muted);
  line-height: 1.5;
}

@media (max-width:720px) {
  .hero-support {
    margin-top: calc(var(--space-3) * -1);
  }

  .problem-note {
    text-align: left;
  }
}

/* ---------- About page layout ---------- */
/* Sobre/About hero — brand lockup (médio, centralizado) após o label */
.about-logo {
  display: block;
  width: 260px;
  height: auto;
  margin: var(--space-4) auto 0;
}

.about-page .showcase-panel {
  max-width: 1080px;
  margin-left: auto;
  margin-right: auto;
}

.about-profile-grid {
  min-width: 0;
}

.about-profile-copy,
.about-profile-copy>* {
  min-width: 0;
}

.about-profile-copy .text-lead {
  max-width: none;
}

.about-profile-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
}

.about-audience-section .container {
  max-width: 1200px;
}

.about-page .about-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 0;
  height: 100%;
}

.about-page .about-card p {
  flex: 1;
  width: 100%;
}

.about-page .about-card .read-more,
.about-page .about-card .btn {
  margin-top: auto;
}

.about-page .about-card h3 {
  width: 100%;
}

@media (max-width: 720px) {
  .about-page .showcase-panel {
    padding: var(--space-6) var(--space-5);
  }

  .about-profile-grid {
    gap: var(--space-7) !important;
  }

  .about-avatar-wrap {
    justify-content: center;
  }

  .about-avatar {
    width: min(220px, 72vw) !important;
  }

  .about-profile-copy {
    text-align: left;
  }

  .about-profile-actions {
    justify-content: flex-start;
  }

  .about-page .about-card {
    align-items: center;
  }
}

/* ==========================================================================
   Hero typewriter — H1 word-by-word reveal with blinking caret
   ==========================================================================
   Opt-in: add class="typewriter-host" to the H1, then wrap each word in
   <span class="tw-word" style="--tw-delay:N×90ms">…</span>.

   Effect: word 1 reveals left→right (340ms), then word 2, then word N. Each
   word uses the staggered --tw-delay. The caret rides on the LAST word as
   a ::after pseudo-element — it can never wrap to a new line independently,
   because pseudo elements follow their parent's line. Blink is 720ms hard.

   Timing (PT 10 words, EN 11 words):
     - per-word start stagger: 90ms
     - per-word reveal:        340ms
     - caret enters:           last-word start + 340ms
     - caret blink:            720ms steps(2, end) — hard on/off, no fade
     - total:                  PT ~1240ms, EN ~1330ms (no flicker after)

   Accessibility:
   - prefers-reduced-motion: reduce → animation off, caret hidden. Full copy
     stays in the DOM for SEO and screen readers.
   - Each .tw-word is still inline content; the caret is a pseudo-element
     (inherits no announcement) so the next line "Método Antes/Depois badge"
     reads cleanly right after the last word.
   - The .kw highlight stays under its own rules; inner .tw-word animates
     without affecting the highlight box.
   ========================================================================== */
.typewriter-host .tw-word {
  display: inline-block;
  margin-right: 0.22em;
  /* preserves word spacing without markup whitespace */
  opacity: 0;
  clip-path: inset(-6px 100% -6px -6px);
  animation: tw-reveal 340ms cubic-bezier(0.16, 1, 0.3, 1) forwards;
  animation-delay: var(--tw-delay, 0ms);
  will-change: clip-path, opacity;
}

.typewriter-host .tw-word:last-child {
  margin-right: 0.22em;
  /* keep gap before caret */
}

@keyframes tw-reveal {
  from {
    clip-path: inset(-6px 100% -6px -6px);
    opacity: 0;
  }

  to {
    clip-path: inset(-6px -6px -6px -6px);
    opacity: 1;
  }
}

/* Caret rides on the LAST word via ::after — a child pseudo-element cannot
   wrap to a new line independently from its host, so it always sits on the
   same visual line as the word it follows. Two animations chain: appear
   once (120ms), then blink forever (720ms steps for a hard on/off). */
.typewriter-host .tw-word:last-child::after {
  content: '';
  display: inline-block;
  width: 3px;
  height: 0.92em;
  margin-left: 0.22em;
  vertical-align: -0.12em;
  background: var(--color-teal-700);
  border-radius: 1px;
  opacity: 0;
  animation: tw-caret-appear 120ms ease-out forwards,
    tw-caret-blink 720ms steps(2, end) infinite;
  /* The appear-delay = last word's start + reveal duration. Blink starts
     at the same instant; the later-declared animation wins for `opacity`
     once it's past t=0 of its timeline. */
  animation-delay: calc(var(--tw-delay) + 340ms),
    calc(var(--tw-delay) + 340ms);
}

@keyframes tw-caret-appear {
  to {
    opacity: 1;
  }
}

@keyframes tw-caret-blink {
  0%, 50% {
    opacity: 1;
  }

  51%, 100% {
    opacity: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .typewriter-host .tw-word {
    clip-path: none;
    opacity: 1;
    animation: none;
  }

  .typewriter-host .tw-word:last-child::after {
    display: none;
  }
}

/* ---------- Pirbrain Catch form ----------
   Scoped rules for the Catch form. The shared form styles predate tel/url
   fields, so those native controls otherwise keep their browser dimensions. */
.catch-trap {
  display: none !important;
}

.catch-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
  width: 100%;
}

.catch-form .grid-2 {
  width: 100%;
  gap: var(--space-4) var(--space-5);
}

.catch-form>.grid-2>label {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: var(--space-2);
  width: 100%;
  color: var(--color-text-primary);
  font-size: 0.84rem;
  font-weight: 600;
  line-height: 1.35;
}

.catch-form input[type='text'],
.catch-form input[type='email'],
.catch-form input[type='tel'],
.catch-form input[type='url'] {
  display: block;
  width: 100%;
  min-width: 0;
  height: 52px;
  padding: 12px 16px;
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-sm);
  background: var(--color-bg-surface);
  color: var(--color-text-primary);
  font: inherit;
  font-size: .92rem;
  line-height: 1.35;
  outline: none;
  appearance: none;
  -webkit-appearance: none;
  transition: border-color, box-shadow var(--duration-fast) var(--ease-out);
}

.catch-form input[type='text']:focus,
.catch-form input[type='email']:focus,
.catch-form input[type='tel']:focus,
.catch-form input[type='url']:focus {
  border-color: var(--color-teal-500);
  box-shadow: 0 0 0 4px var(--color-teal-100);
}

.catch-form input::placeholder {
  color: var(--color-text-muted);
  opacity: 0.8;
}

.catch-form .consent-check {
  width: 100%;
  margin-top: var(--space-1);
}

.catch-form>.btn {
  align-self: flex-start;
  min-height: 52px;
}

.catch-form .form-feedback {
  margin: 0;
  color: var(--color-text-secondary);
  font-size: 0.72rem;
}

@media (max-width: 720px) {
  .catch-form .grid-2 {
    grid-template-columns: 1fr;
  }

  .catch-form>.btn {
    width: 100%;
  }
}