/* =============================================================
   Sofira — Landing Page Styles
   Extracted from the single-file build into an external stylesheet.
   Order preserved exactly as in the original document:
     1) Design tokens (:root variables)
     2) Base + component styles
     3) Hero keyframes + responsive overrides (originally inline in <body>)
   ============================================================= */
/* =============================================================
   Self-hosted webfonts (Geist + Geist Mono, SIL OFL)
   Previously loaded from Google Fonts (fonts.googleapis.com /
   fonts.gstatic.com). Self-hosted to drop the render-blocking
   cross-origin CSS round-trip, stop leaking visitor IPs to Google
   (LGPD), and remove those two origins from the CSP. Files in
   assets/fonts/ are the exact latin / latin-ext variable woff2
   subsets Google served (unicode-range preserved). font-display:swap
   keeps the prior fallback-then-swap behavior.
   NOTE: a fresh Claude export re-adds the Google Fonts <link> in
   index.html — re-apply this self-hosting after dropping a new export.
   ============================================================= */
@font-face {
  font-family: 'Geist';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url(../assets/fonts/geist-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Geist';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url(../assets/fonts/geist-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Geist Mono';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url(../assets/fonts/geist-mono-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Geist Mono';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url(../assets/fonts/geist-mono-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* =============================================================
   Sofira — Design Tokens
   Colors, Typography, Spacing, Radius, Elevation
   Source of truth for all Sofira surfaces.
   ============================================================= */

/* Fonts — Geist Sans + Geist Mono, loaded locally */
:root {
  /* ---------- COLORS ---------- */
  /* Base — 90% of any surface lives here */
  --bg:            #1C1C20;  /* Charcoal — primary dark bg */
  --bg-translucent: rgba(28,28,32,0.78);  /* Same charcoal, for sticky nav blur */
  --bg-alt:        #FAFAFA;  /* Pure White — primary light bg */
  --surface-1:     #232328;  /* Cards, tables, note boxes on dark */
  --surface-2:     #2B2B32;  /* Elevated cards, hover states */
  --surface-3:     #26262E;  /* Strong borders, dividers */
  --surface-4:     #33333C;  /* Tertiary surface on top of dark cards */
  --surface-5:     #44444F;  /* Hover / pressed over surface-3 */
  --surface-6:     #5A5A66;  /* Light gray on dark, for badges/chips */
  --surface-7:     #7A7A88;  /* Lightest neutral on dark */
  --border:        rgba(255,255,255,0.08);
  --border-strong: rgba(255,255,255,0.14);

  /* Light-theme borders */
  --border-light:        rgba(0,0,0,0.08);
  --border-light-strong: rgba(0,0,0,0.14);

  /* Text on dark */
  --text:        #F0F0F0;
  --text-mid:    rgba(255,255,255,0.62);
  --text-dim:    rgba(255,255,255,0.52);   /* WCAG AA: 0.38 failed 4.5:1 on dark surfaces */
  --text-ghost:  rgba(255,255,255,0.18);

  /* Text on light */
  --ink:        #0A0A0A;
  --ink-mid:    rgba(10,10,10,0.62);
  --ink-dim:    rgba(10,10,10,0.62);   /* WCAG AA: 0.38 failed 4.5:1 on .theme-light surfaces */
  --ink-ghost:  rgba(10,10,10,0.18);

  /* Accent — single pinpoint marker per surface */
  --accent:     #E0FF17;  /* Acid Lime — the ONLY brand color */
  --accent-ink: #0A0A0A;  /* text color when on accent */

  /* Signal — rare */
  --danger:     #CC4444;

  /* ---------- TYPOGRAPHY ---------- */
  --font-display: 'Geist', ui-sans-serif, system-ui, sans-serif;
  --font-body:    'Geist', ui-sans-serif, system-ui, sans-serif;
  --font-mono:    'Geist Mono', ui-monospace, 'JetBrains Mono', monospace;

  /* Type scale (px) */
  --fs-display-xl: 96px;
  --fs-display-l:  56px;
  --fs-h1:         40px;
  --fs-h2:         32px;
  --fs-h3:         24px;
  --fs-body-l:     18px;
  --fs-body:       16px;
  --fs-body-s:     14px;
  --fs-label:      12px;
  --fs-label-s:    11px;
  --fs-stat:       80px;

  /* ---------- SPACING (8pt grid) ---------- */
  --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;

  /* ---------- RADIUS ---------- */
  --radius-0:   0;     /* buttons primários, badges, tags, chips — SHARP DEFAULT */
  --radius-1:   2px;   /* inputs, selects, checkboxes */
  --radius-2:   3px;   /* cards pequenos, cells de tabela com hover */
  --radius-3:   4px;   /* cards grandes, modais, panels — TETO DO SISTEMA */
  --radius-4:   4px;   /* alias — nunca ultrapassa radius-3 */
  --radius-max: 4px;   /* HARD CAP */

  /* ---------- ELEVATION (no drop-shadow on dark) ---------- */
  --elevation-0: none;
  --elevation-1: 0 0 0 1px var(--border);
  --elevation-2: 0 0 0 1px var(--border-strong);
  --elevation-3: 0 1px 0 0 var(--border-strong) inset,
                 0 0 0 1px var(--border-strong);
  --elevation-light: 0 24px 48px rgba(0,0,0,0.12);
}

/* =============================================================
   BASE
   ============================================================= */
html, body {
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  font-variant-numeric: tabular-nums;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.theme-light {
  /* Re-flavor the entire token table for sections wrapped in .theme-light */
  --bg:             #C4C4C8;   /* mid-light gray — clear contrast for lime, distinct from white */
  --text:           var(--ink);
  --text-mid:       var(--ink-mid);
  --text-dim:       var(--ink-dim);
  --text-ghost:     var(--ink-ghost);
  --border:         rgba(10,10,10,0.10);
  --border-strong:  rgba(10,10,10,0.18);
  --surface-1:      #D8D8DC;   /* cards sit slightly above bg */
  --surface-2:      #E6E6EA;   /* elevated */
  --surface-3:      #B0B0B6;
  --surface-4:      #9C9CA2;
  --surface-5:      #84848C;
  color:            var(--ink);
  background:       #C4C4C8;
}

/* =============================================================
   SEMANTIC TYPE CLASSES
   ============================================================= */
.sf-display-xl {
  font-family: var(--font-display);
  font-size: var(--fs-display-xl);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.0;
}
.sf-display-l {
  font-family: var(--font-display);
  font-size: var(--fs-display-l);
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.05;
}
.sf-h1 {
  font-family: var(--font-display);
  font-size: var(--fs-h1);
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.1;
}
.sf-h2 {
  font-family: var(--font-display);
  font-size: var(--fs-h2);
  font-weight: 700;
  letter-spacing: -0.005em;
  line-height: 1.15;
}
.sf-h3 {
  font-family: var(--font-display);
  font-size: var(--fs-h3);
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1.2;
}
.sf-body-l {
  font-size: var(--fs-body-l);
  line-height: 1.55;
  font-weight: 400;
}
.sf-body { font-size: var(--fs-body); line-height: 1.6; font-weight: 400; }
.sf-body-s { font-size: var(--fs-body-s); line-height: 1.5; font-weight: 400; }

/* Mono label / eyebrow — signature move */
.sf-label {
  font-family: var(--font-mono);
  font-size: var(--fs-label);
  font-weight: 500;
  letter-spacing: 0.08em;   /* +8% */
  text-transform: uppercase;
  line-height: 1.3;
  color: var(--text-dim);
}
.sf-label-s {
  font-family: var(--font-mono);
  font-size: var(--fs-label-s);
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1.3;
  color: var(--text-dim);
}

/* Stat — the power move */
.sf-stat {
  font-family: var(--font-display);
  font-size: var(--fs-stat);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.0;
  font-variant-numeric: tabular-nums;
}
.sf-stat-unit {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-mid);
}

/* Mono inline (IDs, code, timestamps) */
.sf-mono {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0;
}

/* Table header */
.sf-th {
  font-family: var(--font-mono);
  font-size: var(--fs-label);
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-dim);
}

/* =============================================================
   UTILITIES
   ============================================================= */
.sf-accent { color: var(--accent); }
.sf-dim    { color: var(--text-dim); }
.sf-mid    { color: var(--text-mid); }

/* Section number prefix — 01, 02, 03 */
.sf-section-num::before {
  content: attr(data-num);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--text-dim);
  display: block;
  margin-bottom: 12px;
  text-transform: uppercase;
}

  * { box-sizing: border-box; }
  html, body { margin:0; background: var(--bg); color: var(--text); }
  a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible { outline: 1px solid var(--accent); outline-offset: 2px; }
  ::selection { background: var(--accent); color: var(--accent-ink); }

  /* Grid background — signature of the system */
  .sf-dot-grid {
    background-image: radial-gradient(rgba(255,255,255,0.06) 1px, transparent 1px);
    background-size: 24px 24px;
  }
  .sf-line-grid {
    background-image:
      linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
      linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
    background-size: 80px 80px;
  }

  /* Marquee */
  @keyframes sf-marquee {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
  }
  .sf-marquee-track {
    display: flex; gap: 96px; width: max-content;
    animation: sf-marquee 60s linear infinite;
  }

  /* Typewriter caret */
  @keyframes sf-caret {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
  }

  /* Reveal on scroll — content always rendered; only a subtle transform animates in. */
  .sf-reveal { transition: transform .5s ease-out; }

  /* Inputs */
  .sf-input {
    width: 100%;
    background: transparent;
    border: 0;
    border-bottom: 1px solid var(--border-strong);
    color: var(--text);
    font-family: var(--font-body);
    font-size: 15px;
    padding: 14px 0;
    transition: border-color .15s;
  }
  .sf-input::placeholder { color: var(--text-dim); }
  .sf-input:focus { border-bottom-color: var(--accent); outline: none; }
  textarea.sf-input { resize: vertical; min-height: 80px; }

  /* HubSpot embed CSS removed — contact form is now a native Sofira form. */


  /* Buttons — Avra-style: sharp corners, label + arrow with divider */
  .sf-btn-primary, .sf-btn-secondary {
    display: inline-flex;
    align-items: stretch;
    text-decoration: none;
    font-family: var(--font-mono);
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.10em;
    text-transform: uppercase;
    border-radius: 0;
    cursor: pointer;
    border: 0;
    padding: 0;
  }
  .sf-btn-primary {
    background: var(--accent);
    color: var(--accent-ink);
    transition: filter .15s;
  }
  .sf-btn-primary:hover { filter: brightness(0.92); }
  .sf-btn-secondary {
    background: transparent;
    color: var(--text);
    border: 1px dashed var(--border-strong);
    transition: border-color .15s, color .15s;
  }
  .sf-btn-secondary:hover { border-color: var(--accent); color: var(--accent); }

  .sf-btn-primary .sf-btn-label,
  .sf-btn-secondary .sf-btn-label {
    padding: 14px 22px;
    display: inline-flex;
    align-items: center;
  }
  .sf-btn-primary .sf-btn-arrow {
    padding: 0 18px;
    display: inline-flex;
    align-items: center;
    border-left: 1px solid rgba(10,10,10,0.22);
    font-size: 16px;
    font-family: var(--font-body);
  }
  .sf-btn-secondary .sf-btn-arrow {
    padding: 0 18px;
    display: inline-flex;
    align-items: center;
    border-left: 1px dashed var(--border-strong);
    font-size: 16px;
    font-family: var(--font-body);
  }

  .sf-btn-ghost {
    color: var(--text-mid); padding: 12px 0;
    font-size: 14px; font-weight: 500; text-decoration: none;
    transition: color .15s;
    font-family: var(--font-body);
  }
  .sf-btn-ghost:hover { color: var(--text); }

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

  /* Faux scroll cursor */
  details > summary { list-style: none; cursor: pointer; }
  details > summary::-webkit-details-marker { display: none; }

  /* Diagonal hatch for empty divider blocks */
  .sf-hatch {
    background-image: repeating-linear-gradient(
      45deg,
      rgba(255,255,255,0.05) 0,
      rgba(255,255,255,0.05) 1px,
      transparent 1px,
      transparent 8px
    );
  }

  /* ----- Page frame: vertical dashed gutters ----- */
  .sf-page-frame {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 100;
  }
  .sf-page-frame-line {
    position: absolute;
    top: 0; bottom: 0;
    width: 0;
    border-left: 1px dashed rgba(180,180,190,0.38);
  }
  .sf-page-frame-left  { left:  max(40px, calc(50vw - 720px)); }
  .sf-page-frame-right { right: max(40px, calc(50vw - 720px)); }
  .sf-page-frame-top {
    position: absolute;
    left: 0; right: 0; top: 1px;
    height: 0;
    border-top: 1px dashed rgba(180,180,190,0.38);
  }
  @media (max-width: 720px) {
    .sf-page-frame { display: none; }
  }

/* Static-export additions */
.sf-faq-item[data-open="0"] .sf-faq-num { color: var(--text-dim); }
.sf-faq-item[data-open="1"] .sf-faq-num { color: var(--accent); }
@keyframes sf-pulse {
  0% { transform: scale(1); opacity: 0.6; }
  100% { transform: scale(1.6); opacity: 0; }
}

        @keyframes sf-line-in {
          from { opacity:0; transform:translateY(4px); }
          to   { opacity:1; transform:translateY(0); }
        }
        @keyframes sf-mark-in {
          from { opacity:0; }
          to   { opacity:1; }
        }
        @media (max-width: 980px) {
          .sf-hero-grid { grid-template-columns: 1fr !important; gap: 48px !important; }
        }

/* =============================================================
   MOBILE / RESPONSIVE OVERRIDES
   This page is a design-tool export: layout lives in inline styles.
   Those inline styles carry no !important, so the attribute-substring
   selectors below (each ending in !important) win at small viewports.
   Matching is by exact inline-style fragment — keep the strings in
   sync if a future export changes them.
   ============================================================= */
@media (max-width: 768px) {

  html, body { overflow-x: hidden; }

  /* ---- Horizontal rhythm: collapse the 48px desktop gutters ---- */
  [style*="padding: 20px 48px"]       { padding: 16px 20px !important; }    /* nav inner */
  [style*="padding: 128px 48px 96px"] { padding: 72px 20px 56px !important; } /* hero / diagnóstico / como-funciona */
  [style*="padding: 128px 48px;"]     { padding: 72px 20px !important; }    /* para quem / trust / faq / contato */
  [style*="padding: 96px 48px 48px"]  { padding: 56px 20px 40px !important; } /* footer */

  /* ---- Nav: the mobile header is now a disclosure menu (hamburger) so
          EVERY link + the CTA stays reachable. See the "HEADER / NAV" block
          at the end of this file. (Previously these lines hid Início and
          tightened gaps — replaced to stop making links inaccessible.) ---- */

  /* ---- Collapse every multi-column grid to a single column ---- */
  [style*="grid-template-columns: repeat(2, 1fr)"] { grid-template-columns: 1fr !important; }
  [style*="grid-template-columns: repeat(3, 1fr)"] { grid-template-columns: 1fr !important; }
  [style*="grid-template-columns: 320px 1fr"]      { grid-template-columns: 1fr !important; gap: 40px !important; }
  [style*="grid-template-columns: 1fr 1.2fr"]      { grid-template-columns: 1fr !important; gap: 48px !important; }
  [style*="grid-template-columns: 1fr 1fr"]        { grid-template-columns: 1fr !important; }
  [style*="grid-template-columns: 1.4fr 1fr"]      { grid-template-columns: 1fr !important; gap: 40px !important; }

  /* Let those now-single columns actually shrink to the viewport
     (grid items default to min-width:auto, which keeps wide content
     like the newsletter form from collapsing). */
  [style*="grid-template-columns: repeat(2, 1fr)"] > *,
  [style*="grid-template-columns: repeat(3, 1fr)"] > *,
  [style*="grid-template-columns: 320px 1fr"] > *,
  [style*="grid-template-columns: 1fr 1.2fr"] > *,
  [style*="grid-template-columns: 1fr 1fr"] > *,
  [style*="grid-template-columns: 1.4fr 1fr"] > * { min-width: 0 !important; }

  /* ---- Problem cards: tighten the 72px icon rail + padding ---- */
  [style*="grid-template-columns: 72px 1fr;"] { grid-template-columns: 48px 1fr !important; gap: 20px !important; }
  [style*="padding: 40px 36px"] { padding: 28px 22px !important; min-height: 0 !important; }

  /* ---- "Como funciona" scroll timeline → plain stacked cards ---- */
  [style*="grid-template-columns: 48px minmax(260px, 1fr) minmax(0px, 1.4fr)"] {
    grid-template-columns: 1fr !important;
    gap: 40px !important;
  }
  /* the absolute rail/fill/head decorations are the grid's absolute children
     (JS mutates their top/height, so match on position:absolute, not top) */
  [style*="grid-template-columns: 48px minmax(260px, 1fr) minmax(0px, 1.4fr)"] > [style*="position: absolute"] {
    display: none !important;
  }
  /* hide the dot-marker column cells */
  [style*="grid-column: 1 / 2"] { display: none !important; }
  /* text + visual cells take the single column, no side padding, natural height */
  [style*="grid-column: 2 / 3"] { grid-column: 1 / -1 !important; padding-right: 0 !important; min-height: 0 !important; }
  [style*="grid-column: 3 / 4"] { grid-column: 1 / -1 !important; padding-left: 0 !important;  min-height: 0 !important; }
  /* JS dims inactive steps to opacity 0.4 inline — keep them readable */
  [data-step] > div { opacity: 1 !important; }
  /* dashboard mock cards: size to content instead of 420px */
  [style*="min-height: 420px"] { min-height: 0 !important; }

  /* ---- Hero: let the single column shrink. The agent card's dense
          inner content gives it a large min-content width; grid items
          default to min-width:auto, which would inflate the 1fr track
          (and clip the headline/paragraph against the section's
          overflow:hidden). min-width:0 lets it wrap to the viewport. ---- */
  .sf-hero-grid > * { min-width: 0 !important; }

  /* ---- Hero agent-log card: shorter on mobile ---- */
  [style*="height: 520px"] { height: 380px !important; }

  /* ---- Hero agent-log rows: the 3-col layout (timestamp / action /
          right-aligned metadata) collides on a narrow card. Restack to two
          lines — "timestamp  action" on top, metadata indented beneath the
          action. js/script.js regenerates these rows but always emits this
          exact inline grid template, so the selector keeps matching. ---- */
  [style*="grid-template-columns: 72px 1fr auto"] {
    grid-template-columns: 56px 1fr !important;
    gap: 1px 10px !important;
    font-size: 11px !important;
    line-height: 1.45 !important;
    padding-bottom: 7px !important;
  }
  [style*="grid-template-columns: 72px 1fr auto"] > span:nth-child(3) {
    grid-column: 2 !important;          /* under the action, not the timestamp */
    text-align: left !important;
    opacity: 0.55;
  }

  /* ---- FAQ: tighten the number gutter, unstick the sidebar ---- */
  .sf-faq-btn,
  .sf-faq-body { grid-template-columns: 24px 1fr 24px !important; gap: 14px !important; }
  [style*="position: sticky; top: 120px"] { position: static !important; }

  /* ---- Contact form / success card: lighter inner padding ---- */
  #sofira-contato-form,
  #sf-form-success { padding: 24px !important; }

  /* ---- Display headings: the clamp() min values (44–48px) overflow
          narrow screens, so cap them down here ---- */
  h1[style*="clamp"]  { font-size: clamp(30px, 8.5vw, 44px) !important; line-height: 1.06 !important; }
  .sf-display-l       { font-size: clamp(28px, 7.5vw, 44px) !important; }
}

@media (max-width: 480px) {
  /* Even tighter gutters on phones */
  [style*="padding: 128px 48px 96px"] { padding: 56px 16px 44px !important; }
  [style*="padding: 128px 48px;"]     { padding: 56px 16px !important; }
  [style*="padding: 96px 48px 48px"]  { padding: 44px 16px 32px !important; }
  [style*="padding: 20px 48px"]       { padding: 14px 16px !important; }

  /* Let the primary CTA label wrap instead of overflowing the viewport */
  .sf-btn-primary .sf-btn-label { white-space: normal; padding: 12px 16px; }
}

/* =============================================================
   BLOG / CONTEÚDO
   Hand-authored (not from a design-tool export), so it uses
   reusable token-driven classes instead of inline styles.
   Shared by: the homepage "Conteúdo" teaser section, the blog
   hub (/blog/), and article pages (/blog/*.html).
   Reuses the existing system: --surface-*, --border*, --accent,
   --radius-3, the mono labels and sharp-corner language. No new
   colors, no drop-shadows on dark (border + lime glow only).
   ============================================================= */

/* ---- Category tag / chip (mono, uppercase) — sits on covers + meta rows ---- */
.sf-tag {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-mono);
  font-size: var(--fs-label-s);
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-ink);
  background: var(--accent);
  border-radius: var(--radius-0);
  padding: 5px 10px;
  line-height: 1;
}
.sf-tag--ghost {
  color: var(--text-mid);
  background: transparent;
  border: 1px solid var(--border-strong);
}

/* ---- Article meta row (date · read time · author) ---- */
.sf-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  font-family: var(--font-mono);
  font-size: var(--fs-label);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.sf-meta time { color: var(--text-mid); }
.sf-meta .sf-meta-dot { color: var(--text-ghost); }

/* ---- Card grid (auto-fill so it scales to N future posts) ---- */
.sf-blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: var(--space-5);
}

/* ---- Article card ---- */
.sf-card {
  display: flex;
  flex-direction: column;
  background: var(--surface-1);
  border: 1px solid var(--border);
  border-radius: var(--radius-3);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: border-color .18s ease, transform .18s ease;
}
.sf-card:hover,
.sf-card:focus-visible {
  border-color: var(--border-strong);
  transform: translateY(-3px);
  outline: none;
}
.sf-card:focus-visible { border-color: var(--accent); }

/* Coming-soon card: signal "not yet published" by dimming ONLY the cover image
   (text stays at full token contrast for WCAG AA) and removing interactivity. */
.sf-card--soon { cursor: default; }
.sf-card--soon:hover { transform: none; border-color: var(--border); }
.sf-card--soon .sf-cover > img { opacity: .5; }
.sf-card--soon:hover .sf-cover > img { transform: none; }
.sf-card--soon:hover .sf-card-title { color: var(--text); }

/* ---- Generated/self-hosted cover ---- */
.sf-cover {
  position: relative;
  aspect-ratio: 16 / 9;
  background: var(--surface-3);
  overflow: hidden;
}
.sf-cover > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .4s ease;
}
.sf-card:hover .sf-cover > img { transform: scale(1.03); }
.sf-cover > .sf-tag {
  position: absolute;
  top: var(--space-3);
  left: var(--space-3);
  z-index: 1;
}

.sf-card-body {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  padding: var(--space-5);
  flex: 1;
}
.sf-card-title {
  font-family: var(--font-display);
  font-size: var(--fs-h3);
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1.2;
  color: var(--text);
  margin: 0;
  transition: color .15s ease;
}
.sf-card:hover .sf-card-title,
.sf-card:focus-visible .sf-card-title { color: var(--accent); }
.sf-card-excerpt {
  color: var(--text-mid);
  font-size: var(--fs-body-s);
  line-height: 1.55;
  margin: 0;
}
.sf-card-foot {
  margin-top: auto;
  padding-top: var(--space-3);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
}
.sf-card-readmore {
  font-family: var(--font-mono);
  font-size: var(--fs-label);
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-mid);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: color .15s ease, gap .15s ease;
}
.sf-card:hover .sf-card-readmore { color: var(--accent); gap: 12px; }

/* ---- Featured article — large, two-column on desktop ---- */
.sf-featured {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 0;
  background: var(--surface-1);
  border: 1px solid var(--border);
  border-radius: var(--radius-3);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: border-color .18s ease;
}
.sf-featured:hover,
.sf-featured:focus-visible { border-color: var(--border-strong); outline: none; }
.sf-featured:focus-visible { border-color: var(--accent); }
.sf-featured .sf-cover { aspect-ratio: auto; min-height: 100%; }
.sf-featured-body {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  padding: var(--space-7);
}
.sf-featured-title {
  font-family: var(--font-display);
  font-size: var(--fs-h2);
  font-weight: 700;
  letter-spacing: -0.005em;
  line-height: 1.15;
  margin: 0;
  color: var(--text);
  transition: color .15s ease;
}
.sf-featured:hover .sf-featured-title,
.sf-featured:focus-visible .sf-featured-title { color: var(--accent); }
.sf-featured-excerpt {
  color: var(--text-mid);
  font-size: var(--fs-body-l);
  line-height: 1.55;
  margin: 0;
}

/* ---- Author identity (mono initials in a bordered square — no photos) ---- */
.sf-author {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
}
.sf-author-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-1);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--accent);
  flex: none;
}
.sf-author-name { font-size: var(--fs-body-s); color: var(--text); line-height: 1.2; }
.sf-author-role { font-family: var(--font-mono); font-size: var(--fs-label-s); letter-spacing: 0.04em; text-transform: uppercase; color: var(--text-dim); }

/* ---- Inline lead-capture card (mid-article + section CTA) ---- */
.sf-lead-card {
  background: var(--surface-1);
  border: 1px solid var(--border-strong);
  border-left: 2px solid var(--accent);
  border-radius: var(--radius-3);
  padding: var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

/* ---- Article prose (typography for post bodies) ---- */
.sf-prose { color: var(--text); font-size: var(--fs-body-l); line-height: 1.7; }
.sf-prose > * + * { margin-top: var(--space-5); }
.sf-prose h2 {
  font-family: var(--font-display);
  font-size: var(--fs-h2);
  font-weight: 700;
  letter-spacing: -0.005em;
  line-height: 1.2;
  margin-top: var(--space-8);
  scroll-margin-top: 96px;
}
.sf-prose h3 {
  font-family: var(--font-display);
  font-size: var(--fs-h3);
  font-weight: 600;
  line-height: 1.25;
  margin-top: var(--space-7);
  scroll-margin-top: 96px;
}
.sf-prose p { color: var(--text-mid); margin: 0; }
.sf-prose strong { color: var(--text); font-weight: 600; }
.sf-prose a { color: var(--accent); text-decoration: none; border-bottom: 1px solid var(--accent); }
/* Buttons inside prose must NOT inherit the prose-link color (it caused
   lime text on a lime button = invisible). Restore proper button contrast. */
.sf-prose a.sf-btn-primary,
.sf-prose a.sf-btn-secondary { border-bottom: 0; }
.sf-prose a.sf-btn-primary { color: var(--accent-ink); }
.sf-prose a.sf-btn-primary .sf-btn-label,
.sf-prose a.sf-btn-primary .sf-btn-arrow { color: var(--accent-ink); }
.sf-prose a.sf-btn-secondary { color: var(--text); }
.sf-prose a.sf-btn-secondary .sf-btn-label,
.sf-prose a.sf-btn-secondary .sf-btn-arrow { color: var(--text); }
.sf-prose ul, .sf-prose ol { color: var(--text-mid); padding-left: 1.25em; }
.sf-prose li + li { margin-top: var(--space-2); }
.sf-prose blockquote {
  margin: 0;
  padding: var(--space-4) var(--space-5);
  border-left: 2px solid var(--accent);
  background: var(--surface-1);
  border-radius: var(--radius-2);
  color: var(--text);
  font-size: var(--fs-h3);
  font-weight: 500;
  line-height: 1.35;
  letter-spacing: -0.005em;
}
.sf-prose figure { margin: 0; }
.sf-prose figure img { width: 100%; height: auto; border-radius: var(--radius-3); border: 1px solid var(--border); display: block; }
.sf-prose figcaption { font-family: var(--font-mono); font-size: var(--fs-label-s); letter-spacing: 0.04em; text-transform: uppercase; color: var(--text-dim); margin-top: var(--space-3); }
.sf-prose .sf-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.sf-prose table { width: 100%; border-collapse: collapse; font-size: var(--fs-body-s); margin: 0; }
.sf-prose th, .sf-prose td { border: 1px solid var(--border); padding: 10px 12px; text-align: left; vertical-align: top; color: var(--text-mid); }
.sf-prose th { font-family: var(--font-mono); font-size: var(--fs-label); letter-spacing: 0.04em; text-transform: uppercase; color: var(--text-dim); background: var(--surface-1); }
.sf-prose td strong { color: var(--text); }
/* Author "Sobre a Sofira" closing block (the original article's own CTA) */
.sf-prose .sf-author-cta { background: var(--surface-1); border: 1px solid var(--border-strong); border-left: 2px solid var(--accent); border-radius: var(--radius-3); padding: var(--space-6); }
.sf-prose .sf-author-cta > * + * { margin-top: var(--space-3); }

/* ---- Generic content max-width wrapper (matches the page's 1280 system) ---- */
.sf-container { max-width: 1280px; margin: 0 auto; }
.sf-prose-container { max-width: 760px; margin: 0 auto; }

/* ---- Responsive: collapse featured + tighten covers on small screens ---- */
@media (max-width: 860px) {
  .sf-featured { grid-template-columns: 1fr; }
  .sf-featured .sf-cover { aspect-ratio: 16 / 9; min-height: 0; }
  .sf-featured-body { padding: var(--space-6); }
  .sf-featured-title { font-size: var(--fs-h3); }
}
@media (max-width: 768px) {
  .sf-blog-grid { grid-template-columns: 1fr; gap: var(--space-4); }
}

/* =============================================================
   HEADER / NAV — responsive disclosure menu (hamburger)
   Desktop (>768px): the links + CTA render inline, exactly as before.
   Mobile (≤768px): a 44×44 toggle opens a full-width dropdown holding
   EVERY link + the CTA, each a ≥48px touch target. No link is hidden,
   nothing overflows down to 320px. Reuses tokens + .sf-btn-primary.
   Toggle behavior lives in js/script.js (no eval; data-attr + classes).
   ============================================================= */
.sf-nav-toggle { display: none; }

@media (max-width: 768px) {
  /* Toggle button — visible only on mobile, full 44px hit area. */
  .sf-nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    margin-right: -8px;        /* pull to edge without shrinking the hit area */
    padding: 0;
    background: transparent;
    border: 0;
    cursor: pointer;
    color: var(--text);
    -webkit-tap-highlight-color: transparent;
  }
  .sf-nav-toggle__bars { position: relative; display: block; width: 22px; height: 16px; }
  .sf-nav-toggle__bars > i {
    position: absolute; left: 0; right: 0; height: 2px;
    background: currentColor; border-radius: 1px;
    transition: transform .2s ease, opacity .2s ease, top .2s ease;
  }
  .sf-nav-toggle__bars > i:nth-child(1) { top: 0; }
  .sf-nav-toggle__bars > i:nth-child(2) { top: 7px; }
  .sf-nav-toggle__bars > i:nth-child(3) { top: 14px; }
  /* Morph to an X when open */
  nav[data-nav-open="1"] .sf-nav-toggle { color: var(--accent); }
  nav[data-nav-open="1"] .sf-nav-toggle__bars > i:nth-child(1) { top: 7px; transform: rotate(45deg); }
  nav[data-nav-open="1"] .sf-nav-toggle__bars > i:nth-child(2) { opacity: 0; }
  nav[data-nav-open="1"] .sf-nav-toggle__bars > i:nth-child(3) { top: 7px; transform: rotate(-45deg); }

  /* Solid bar while the menu is open (overrides the inline bg set by the
     sticky-scroll handler, which is non-!important so this wins). */
  nav[data-nav-open="1"] {
    background: var(--bg-translucent) !important;
    -webkit-backdrop-filter: blur(14px) saturate(1.2);
    backdrop-filter: blur(14px) saturate(1.2);
    border-bottom: 1px solid var(--border) !important;
  }

  /* Links container → full-width dropdown panel below the bar. */
  .sf-nav-menu {
    position: absolute;
    top: 100%; left: 0; right: 0;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 0 !important;
    padding: 4px 20px 16px;
    background: var(--bg-translucent);
    -webkit-backdrop-filter: blur(14px) saturate(1.2);
    backdrop-filter: blur(14px) saturate(1.2);
    border-bottom: 1px solid var(--border);
    display: none !important;     /* beats the element's inline display:flex */
  }
  nav[data-nav-open="1"] .sf-nav-menu { display: flex !important; }

  /* Every text link: comfortable full-width touch target (≥48px). */
  .sf-nav-menu > a:not(.sf-btn-primary) {
    display: flex;
    align-items: center;
    min-height: 48px;
    width: 100%;
    font-size: 16px;
    color: var(--text);
    border-bottom: 1px solid var(--border);
  }
  .sf-nav-menu > a:not(.sf-btn-primary):active { color: var(--accent); }

  /* CTA keeps its lime identity, goes full-width with a centered label. */
  .sf-nav-menu > a.sf-btn-primary {
    display: flex;
    width: 100%;
    margin-top: 14px;
  }
  .sf-nav-menu > a.sf-btn-primary .sf-btn-label {
    flex: 1 1 auto;
    justify-content: center;
    min-height: 48px;
  }
}

/* Respect reduced-motion for the toggle animation */
@media (prefers-reduced-motion: reduce) {
  .sf-nav-toggle__bars > i { transition: none; }
}

/* Visible text label on the menu toggle — no button ships icon-only.
   (aria-label still provides the accessible name; this adds a visible word.) */
@media (max-width: 768px) {
  .sf-nav-toggle { width: auto; min-width: 44px; gap: 8px; padding: 0 6px 0 8px; }
  .sf-nav-toggle::after {
    content: "Menu";
    font-family: var(--font-mono);
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: currentColor;
  }
  nav[data-nav-open="1"] .sf-nav-toggle::after { content: "Fechar"; }
}

/* Mid-article inline CTA banner (reuses .sf-lead-card look, full-width) */
.sf-cta-band {
  background: var(--surface-1);
  border: 1px solid var(--border-strong);
  border-left: 2px solid var(--accent);
  border-radius: var(--radius-3);
  padding: var(--space-6);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-5);
  flex-wrap: wrap;
}
.sf-cta-band__txt { flex: 1 1 320px; }
.sf-cta-band__txt .sf-h3 { margin: 0 0 6px; }
.sf-cta-band__txt p { margin: 0; color: var(--text-mid); font-size: var(--fs-body-s); line-height: 1.5; }

/* =============================================================
   AVATAR DA AUTORA (Priscila Holanda)
   Substitui o monograma "PH" por foto circular em TODOS os lugares
   (bylines dos artigos, destaque do hub e da home). Uma única regra.
   Troque o arquivo abaixo pela foto real (mesmo nome) — ver nota.
   ============================================================= */
.sf-author-badge {
  border-radius: 50%;
  border-color: var(--border);
  background: var(--surface-3) url(/assets/images/priscila-holanda.jpg) center / cover no-repeat;
  color: transparent;          /* esconde o texto "PH"; o nome aparece ao lado */
  overflow: hidden;
}

/* =============================================================
   BLOG SEM IMAGENS DE CAPA
   Remove as imagens de capa (destaque + miniaturas dos cards) em
   todo o blog (hub, seção da home, "Continue lendo"). A imagem some;
   a TAG de categoria — que vivia sobre a imagem — sobe para o topo do
   card como uma faixa de texto. Destaque vira coluna única.
   (Os arquivos das capas seguem em assets/ para OG/schema, só não
   são mais exibidos.)
   ============================================================= */
.sf-cover > img { display: none !important; }
.sf-cover {
  position: static;
  aspect-ratio: auto;
  min-height: 0;
  background: transparent;
  overflow: visible;
  padding: var(--space-5) var(--space-5) 0;
}
.sf-cover > .sf-tag { position: static; }

/* Destaque (featured): sem a metade da imagem → coluna única */
.sf-featured { grid-template-columns: 1fr; }
.sf-featured .sf-cover { padding: var(--space-7) var(--space-7) 0; }
@media (max-width: 860px) {
  /* já era 1 coluna no mobile; mantém o padding do cover coerente */
  .sf-featured .sf-cover { padding: var(--space-6) var(--space-6) 0; }
}

/* =============================================================
   BLOG — RECUO LATERAL NO MOBILE
   As seções/wrappers do blog usam 48px de recuo lateral (desktop).
   No mobile isso desperdiça largura; reduz para 20px (16px em telas
   muito pequenas), preservando o recuo vertical. Alcança qualquer
   wrapper (section/div/header) que contenha um container do blog.
   Navegadores sem :has() mantêm 48px (degradação suave).
   ============================================================= */
@media (max-width: 768px) {
  main section:has(> .sf-container),
  main div:has(> .sf-container),
  main section:has(> .sf-prose-container),
  main header:has(> .sf-prose-container),
  main div:has(> .sf-prose-container) {
    padding-left: 20px !important;
    padding-right: 20px !important;
  }
  /* Newsletter/rodapé (1.4fr 1fr) já colapsa p/ 1 coluna; encurta o gap */
  [style*="grid-template-columns: 1.4fr 1fr"] { gap: 24px !important; }
}
@media (max-width: 480px) {
  main section:has(> .sf-container),
  main div:has(> .sf-container),
  main section:has(> .sf-prose-container),
  main header:has(> .sf-prose-container),
  main div:has(> .sf-prose-container) {
    padding-left: 16px !important;
    padding-right: 16px !important;
  }
}

/* =============================================================
   NEWSLETTER (Substack) — robustez no mobile
   O input tem min-width intrínseco (~size=20) que impedia o flex de
   encolher, fazendo o botão "Assinar" vazar à direita no iPhone SE.
   min-width:0 deixa o input encolher e o form caber sempre. O botão
   não encolhe seu rótulo (white-space:nowrap). Vale em todas as
   instâncias (home + hub + artigos), pois mira o #sf-substack-form.
   ============================================================= */
#sf-substack-form { max-width: 100%; }
#sf-substack-form input[type="email"] { min-width: 0; }
#sf-substack-form button[type="submit"] { flex: none; white-space: nowrap; }
/* Telas pequenas: empilha o form (input em cima, botão embaixo, largura
   cheia) — evita o botão "Assinar" espremido/vazando no iPhone SE. */
@media (max-width: 480px) {
  #sf-substack-form { flex-direction: column !important; height: auto !important; padding: 8px !important; gap: 8px; }
  #sf-substack-form input[type="email"] { flex: none !important; width: 100% !important; height: 46px !important; padding: 0 12px !important; }
  #sf-substack-form button[type="submit"] { width: 100% !important; height: 46px !important; justify-content: center; }
}
      