/* ── Tokens ──────────────────────────────────────────────────────────── */
:root {
  --bg:            #ffffff;
  --bg-soft:       #f5f6f8;
  --surface:       #ffffff;
  --border:        #e7e8ee;
  --border-strong: #d6d8e0;
  --ink:           #14161d;
  --ink-soft:      #565d6b;
  --ink-faint:     #8b909c;
  --accent:        #1f4ed8;
  --accent-strong: #1538a8;
  --accent-soft:   #eef2ff;
  --accent-contrast:#ffffff;
  --ok:            #15803d;
  --danger:        #b91c1c;
  --radius:        14px;
  --radius-sm:     9px;
  --radius-pill:   999px;
  --shadow-sm:     0 1px 2px rgba(16,18,28,.05), 0 1px 3px rgba(16,18,28,.04);
  --shadow:        0 10px 30px -12px rgba(16,18,28,.18);
  --shadow-lg:     0 24px 60px -20px rgba(16,18,28,.30);
  --max-w:         1140px;
  --gutter:        clamp(20px, 5vw, 40px);
  --font-sans:     'Inter Tight', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  --font-display:  'Fraunces', Georgia, 'Times New Roman', serif;
  --header-h:      72px;
}

/* ── Reset ───────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
button { background: none; border: none; cursor: pointer; font: inherit; color: inherit; }
input { font: inherit; }
a { color: inherit; text-decoration: none; }
::selection { background: var(--accent); color: #fff; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.app { display: flex; flex-direction: column; min-height: 100svh; }
.container { width: 100%; max-width: var(--max-w); margin: 0 auto; padding-inline: var(--gutter); }

/* ── Buttons ─────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 22px; border-radius: var(--radius-pill);
  font-weight: 600; font-size: .95rem; line-height: 1;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease, color .2s ease, border-color .2s ease;
  white-space: nowrap;
}
.btn__icon { width: 17px; height: 17px; transition: transform .2s ease; }
.btn:hover .btn__icon { transform: translateX(3px); }
.btn--primary { background: var(--accent); color: var(--accent-contrast); box-shadow: var(--shadow-sm); }
.btn--primary:hover { background: var(--accent-strong); box-shadow: var(--shadow); transform: translateY(-1px); }
.btn--light { background: #fff; color: var(--ink); box-shadow: var(--shadow-sm); }
.btn--light:hover { transform: translateY(-1px); box-shadow: var(--shadow); }
.btn--ghost { border: 1.5px solid var(--border-strong); color: var(--ink); }
.btn--ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn--ghost-light { border: 1.5px solid rgba(255,255,255,.55); color: #fff; }
.btn--ghost-light:hover { border-color: #fff; background: rgba(255,255,255,.12); }
.btn--lg { padding: 15px 30px; font-size: 1rem; }


/* ── Header ──────────────────────────────────────────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}
.site-header.is-scrolled { border-bottom-color: var(--border); box-shadow: var(--shadow-sm); }
.site-header__inner { display: flex; align-items: center; gap: 24px; height: var(--header-h); }
.brand { display: inline-flex; align-items: center; gap: 11px; font-weight: 700; letter-spacing: -.01em; }
.brand__mark {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: 10px; flex-shrink: 0;
  background: var(--ink); color: #fff; font-size: .82rem; font-weight: 700; letter-spacing: .02em;
}
.brand__mark--lg { width: 44px; height: 44px; border-radius: 12px; font-size: 1rem; }
.brand__name { font-size: 1.12rem; }
.nav { display: flex; align-items: center; gap: 2px; margin-left: auto; }
.nav__link {
  position: relative; padding: 9px 14px; border-radius: var(--radius-sm);
  font-size: .94rem; font-weight: 500; color: var(--ink-soft);
  transition: color .15s ease, background .15s ease;
}
.nav__link:hover { color: var(--ink); background: var(--bg-soft); }
.nav__link.is-active { color: var(--accent); }
.nav__link.is-active::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 3px; height: 2px;
  border-radius: 2px; background: var(--accent);
}
.nav__toggle { display: none; flex-direction: column; gap: 5px; padding: 8px; margin-left: auto; }
.nav__toggle span { width: 22px; height: 2px; border-radius: 2px; background: var(--ink); transition: transform .25s ease, opacity .2s ease; }
.site-header.is-open .nav__toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.site-header.is-open .nav__toggle span:nth-child(2) { opacity: 0; }
.site-header.is-open .nav__toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── Search ───────────────────────────────────────────────────────────── */
.search-toggle {
  display: flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; padding: 0; border: none; border-radius: var(--radius);
  background: transparent; color: var(--ink-soft); cursor: pointer; transition: color .15s, background .15s;
}
.search-toggle:hover { color: var(--ink); background: var(--bg-soft); }
.search-bar {
  display: flex; align-items: center; gap: 4px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 2px 4px; box-shadow: var(--shadow-sm);
}
.search-bar__input {
  border: none; background: transparent; outline: none;
  color: var(--ink); font-size: .9rem; padding: 4px 6px; width: 220px; min-width: 0;
}
.search-bar__input::placeholder { color: var(--ink-faint); }
.search-bar__btn, .search-bar__close {
  display: flex; align-items: center; justify-content: center;
  width: 30px; height: 30px; padding: 0; border: none; border-radius: calc(var(--radius) - 2px);
  background: transparent; color: var(--ink-soft); cursor: pointer; flex-shrink: 0;
  transition: color .15s, background .15s;
}
.search-bar__btn:hover, .search-bar__close:hover { color: var(--ink); background: var(--bg-soft); }

/* ── Cart badge ───────────────────────────────────────────────────────── */
.cart-badge {
  position: relative; display: flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; padding: 0; border: none; border-radius: var(--radius);
  background: transparent; color: var(--ink-soft); cursor: pointer; transition: color .15s;
}
.cart-badge:hover { color: var(--ink); }
.cart-badge__count {
  position: absolute; top: 2px; right: 0;
  background: var(--accent); color: var(--accent-contrast, #fff);
  font-size: .65rem; font-weight: 700; min-width: 16px; height: 16px;
  border-radius: 99px; display: flex; align-items: center; justify-content: center;
  padding: 0 4px; line-height: 1;
}

/* ── Hero (primeira dobra) ───────────────────────────────────────────── */
.hero {
  position: relative; display: flex; align-items: center;
  min-height: min(82vh, 660px);
  background: var(--ink); background-size: cover; background-position: center;
  overflow: hidden; isolation: isolate;
}
.hero:not(.hero--media) {
  background:
    radial-gradient(110% 120% at 12% 0%, color-mix(in srgb, var(--accent) 32%, transparent), transparent 55%),
    radial-gradient(90% 110% at 100% 100%, color-mix(in srgb, var(--accent-strong) 40%, transparent), transparent 60%),
    linear-gradient(155deg, #11131c 0%, #1b2030 60%, #11131c 100%);
}
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: 0; opacity: .5;
  background-image: linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 46px 46px; mask-image: radial-gradient(70% 70% at 30% 20%, #000, transparent);
}
.hero__overlay { position: absolute; inset: 0; z-index: 0;
  background: linear-gradient(135deg, rgba(10,12,20,.86) 0%, rgba(10,12,20,.45) 65%, rgba(10,12,20,.2) 100%); }
.hero--media::before { display: none; }
.hero__inner { position: relative; z-index: 1; max-width: 660px; padding-block: clamp(64px, 12vh, 120px); animation: rise .6s cubic-bezier(.2,.7,.2,1) both; }
.hero__eyebrow {
  display: inline-flex; align-items: center; gap: 8px; margin-bottom: 20px;
  padding: 6px 14px; border-radius: var(--radius-pill);
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.18);
  color: #fff; font-size: .78rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase;
}
.hero__title {
  font-family: var(--font-display); font-weight: 600; color: #fff;
  font-size: clamp(2.4rem, 6vw, 4.1rem); line-height: 1.04; letter-spacing: -.02em;
}
.hero__subtitle { margin-top: 22px; max-width: 540px; color: rgba(255,255,255,.82); font-size: clamp(1.02rem, 1.6vw, 1.2rem); line-height: 1.6; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }

/* ── Page hero ───────────────────────────────────────────────────────── */
.page-hero {
  position: relative; background: var(--bg-soft); border-bottom: 1px solid var(--border);
  padding-block: clamp(56px, 9vw, 96px); background-size: cover; background-position: center; isolation: isolate;
}
.page-hero--media { background-color: var(--ink); }
.page-hero--media .page-hero__title, .page-hero--media .page-hero__subtitle, .page-hero--media .hero__eyebrow { color: #fff; }
.page-hero__inner { position: relative; z-index: 1; max-width: 760px; }
.page-hero__title { font-family: var(--font-display); font-weight: 600; font-size: clamp(2rem, 4.4vw, 3rem); line-height: 1.08; letter-spacing: -.02em; }
.page-hero__subtitle { margin-top: 14px; color: var(--ink-soft); font-size: 1.08rem; max-width: 580px; }
.page-hero--media .page-hero__subtitle { color: rgba(255,255,255,.8); }

/* ── Section ─────────────────────────────────────────────────────────── */
.section { padding-block: clamp(56px, 8vw, 96px); }
.section--alt { background: var(--bg-soft); }
.section__head { max-width: 640px; margin-bottom: clamp(32px, 5vw, 52px); }
.section__head--center { margin-inline: auto; text-align: center; }
.section__eyebrow { color: var(--accent); font-size: .82rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 12px; }
.section__title { font-family: var(--font-display); font-weight: 600; font-size: clamp(1.7rem, 3.4vw, 2.4rem); line-height: 1.12; letter-spacing: -.02em; }
.section__subtitle { margin-top: 12px; color: var(--ink-soft); font-size: 1.05rem; }

/* ── Features ────────────────────────────────────────────────────────── */
.feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.feature-grid[data-count="2"] { grid-template-columns: repeat(2, 1fr); }
.feature {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 28px; transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
.feature:hover { border-color: var(--border-strong); box-shadow: var(--shadow); transform: translateY(-3px); }
.feature__icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 46px; height: 46px; border-radius: 12px; margin-bottom: 18px;
  background: var(--accent-soft); color: var(--accent);
}
.feature__icon .icon { width: 22px; height: 22px; }
.feature__title { font-size: 1.08rem; font-weight: 600; margin-bottom: 8px; }
.feature__text { color: var(--ink-soft); font-size: .96rem; line-height: 1.6; }

/* ── Stats ───────────────────────────────────────────────────────────── */
.stat-band { background: var(--ink); color: #fff; padding-block: clamp(44px, 6vw, 72px); }
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 28px; text-align: center; }
.stat__value { font-family: var(--font-display); font-weight: 600; font-size: clamp(2.2rem, 4vw, 3rem); letter-spacing: -.02em; }
.stat__label { margin-top: 6px; color: rgba(255,255,255,.66); font-size: .92rem; }

/* ── CTA ─────────────────────────────────────────────────────────────── */
.cta { padding-block: clamp(20px, 4vw, 40px); }
.cta__inner {
  display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-strong) 100%);
  color: #fff; border-radius: calc(var(--radius) + 8px); padding: clamp(32px, 5vw, 56px);
  box-shadow: var(--shadow-lg);
}
.cta__title { font-family: var(--font-display); font-weight: 600; font-size: clamp(1.6rem, 3vw, 2.2rem); line-height: 1.14; letter-spacing: -.02em; }
.cta__text { margin-top: 10px; color: rgba(255,255,255,.85); max-width: 520px; }
.cta__actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* ── Prose (editorial) ───────────────────────────────────────────────── */
.prose { max-width: 720px; font-size: 1.06rem; }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { font-family: var(--font-display); font-weight: 600; font-size: 1.7rem; letter-spacing: -.01em; margin-top: 1.6em; }
.prose h3 { font-weight: 600; font-size: 1.28rem; margin-top: 1.4em; }
.prose p { color: var(--ink-soft); line-height: 1.78; }
.prose ul, .prose ol { padding-left: 1.3em; color: var(--ink-soft); }
.prose li { margin-top: .5em; line-height: 1.7; }
.prose blockquote {
  border-left: 3px solid var(--accent); padding: 4px 0 4px 22px;
  font-family: var(--font-display); font-size: 1.3rem; line-height: 1.5; color: var(--ink);
}
.prose__lead { font-size: 1.22rem; line-height: 1.65; color: var(--ink); font-family: var(--font-display); }

/* ── Gallery ─────────────────────────────────────────────────────────── */
.gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.gallery[data-count="2"] { grid-template-columns: repeat(2, 1fr); }
.gallery__item { margin: 0; border-radius: var(--radius); overflow: hidden; background: var(--bg-soft); }
.gallery__item img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .4s ease; }
.gallery__item:hover img { transform: scale(1.04); }
.gallery__item figcaption { padding: 12px 14px; font-size: .88rem; color: var(--ink-soft); }

/* ── FAQ ─────────────────────────────────────────────────────────────── */
.faq { max-width: 820px; margin-inline: auto; }
.faq__item { border-bottom: 1px solid var(--border); }
.faq__q {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 22px 4px; font-size: 1.06rem; font-weight: 600; cursor: pointer; list-style: none;
}
.faq__q::-webkit-details-marker { display: none; }
.faq__chevron { position: relative; width: 14px; height: 14px; flex-shrink: 0; }
.faq__chevron::before, .faq__chevron::after { content: ""; position: absolute; top: 50%; width: 9px; height: 2px; border-radius: 2px; background: var(--accent); transition: transform .25s ease; }
.faq__chevron::before { left: 0; transform: rotate(45deg); }
.faq__chevron::after { right: 0; transform: rotate(-45deg); }
.faq__item[open] .faq__chevron::before { transform: rotate(-45deg); }
.faq__item[open] .faq__chevron::after { transform: rotate(45deg); }
.faq__a { padding: 0 4px 22px; color: var(--ink-soft); line-height: 1.7; max-width: 90%; }

/* ── Contact ─────────────────────────────────────────────────────────── */
.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; }
.contact { display: flex; gap: 16px; align-items: flex-start; padding: 24px; background: var(--bg-soft); border: 1px solid var(--border); border-radius: var(--radius); min-width: 0; }
.contact > div { min-width: 0; flex: 1; }
.contact__icon { display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; border-radius: 11px; background: var(--surface); color: var(--accent); flex-shrink: 0; box-shadow: var(--shadow-sm); }
.contact__icon .icon { width: 20px; height: 20px; }
.contact__label { font-size: .76rem; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-faint); margin-bottom: 4px; }
.contact__value { font-weight: 600; overflow-wrap: anywhere; word-break: break-word; }

/* ── Footer ──────────────────────────────────────────────────────────── */
.site-footer { margin-top: auto; background: var(--ink); color: rgba(255,255,255,.7); }
.site-footer__inner { display: flex; flex-wrap: wrap; gap: 32px; justify-content: space-between; align-items: flex-start; padding-block: 52px 32px; }
.site-footer__brand { display: flex; gap: 14px; align-items: center; }
.site-footer__brand .brand__mark { background: #fff; color: var(--ink); }
.site-footer__name { color: #fff; font-weight: 700; font-size: 1.1rem; }
.site-footer__tagline { font-size: .9rem; color: rgba(255,255,255,.6); margin-top: 2px; max-width: 320px; }
.site-footer__nav { display: flex; flex-wrap: wrap; gap: 4px 8px; }
.site-footer__link { padding: 6px 12px; border-radius: var(--radius-sm); font-size: .9rem; color: rgba(255,255,255,.62); transition: color .15s ease, background .15s ease; }
.site-footer__link:hover { color: #fff; background: rgba(255,255,255,.08); }
.site-footer__bottom { padding-block: 22px; border-top: 1px solid rgba(255,255,255,.12); font-size: .82rem; color: rgba(255,255,255,.5); }

/* ── Skeleton ────────────────────────────────────────────────────────── */
.skeleton__hero { padding-block: clamp(64px, 12vh, 120px); background: var(--bg-soft); border-bottom: 1px solid var(--border); }
.skeleton__bar, .skeleton__pill, .skeleton__card { position: relative; overflow: hidden; background: #e9eaf0; border-radius: 8px; }
.skeleton__bar { height: 18px; margin-bottom: 16px; }
.skeleton__bar--eyebrow { width: 130px; height: 26px; border-radius: var(--radius-pill); }
.skeleton__bar--title { height: 44px; max-width: 560px; }
.skeleton__bar--title.sk-short { max-width: 380px; }
.skeleton__bar--text { height: 14px; max-width: 460px; }
.skeleton__bar--chip { width: 46px; height: 46px; border-radius: 12px; margin-bottom: 18px; }
.skeleton__actions { display: flex; gap: 14px; margin-top: 30px; }
.skeleton__pill { width: 150px; height: 46px; border-radius: var(--radius-pill); }
.skeleton__pill.sk-ghost { width: 130px; opacity: .6; }
.skeleton__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.skeleton__card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; }
.skeleton__card .skeleton__bar:last-child { margin-bottom: 0; }
.skeleton__bar::after, .skeleton__pill::after, .skeleton__card::before {
  content: ""; position: absolute; inset: 0; transform: translateX(-100%);
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.65), transparent);
  animation: shimmer 1.4s infinite;
}
.skeleton__card::before { z-index: 0; }

/* ── States (404 / erro / vazio) ─────────────────────────────────────── */
.state { flex: 1; display: flex; align-items: center; justify-content: center; padding-block: clamp(48px, 9vh, 96px); }
.state__inner {
  max-width: 480px; margin-inline: auto; text-align: center;
  padding: clamp(36px, 5vw, 56px) clamp(24px, 4vw, 44px);
  background: var(--surface); border: 1px solid var(--border); border-radius: calc(var(--radius) + 6px);
  box-shadow: var(--shadow);
}
.state__badge {
  display: inline-flex; align-items: center; justify-content: center;
  width: 60px; height: 60px; margin: 0 auto 20px; border-radius: 50%;
  background: var(--accent-soft); color: var(--accent);
}
.state__badge .icon { width: 28px; height: 28px; }
.state__code { font-family: var(--font-display); font-weight: 600; font-size: clamp(3.4rem, 10vw, 5.5rem); line-height: 1; color: var(--accent); letter-spacing: -.04em; }
.state__title { font-family: var(--font-display); font-weight: 600; font-size: clamp(1.4rem, 3vw, 1.9rem); margin-top: 10px; letter-spacing: -.01em; }
.state__text { margin-top: 12px; color: var(--ink-soft); font-size: 1rem; line-height: 1.6; }
.state__actions { margin-top: 26px; display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ── Blog ────────────────────────────────────────────────────────────── */
.post-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 24px; }
.post-card { border-radius: var(--radius); overflow: hidden; background: var(--surface); border: 1px solid var(--border); cursor: pointer; transition: box-shadow .15s, transform .15s; }
.post-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.post-card--skeleton { min-height: 140px; }
.post-card__image { height: 160px; background-size: cover; background-position: center; }
.post-card__body { padding: 16px; }
.post-card__type { font-size: .7rem; text-transform: uppercase; letter-spacing: .06em; color: var(--accent); margin-bottom: 6px; font-weight: 600; }
.post-card__title { font-size: 1.05rem; font-weight: 600; line-height: 1.3; margin: 0 0 6px; }
.post-card__excerpt { font-size: .85rem; color: var(--ink-soft); line-height: 1.5; margin: 0 0 8px; }
.post-card__date { font-size: .75rem; color: var(--ink-faint); }

.post-tag-chip { display: inline-flex; align-items: center; padding: 3px 10px; border-radius: 20px; border: 1px solid var(--border); background: transparent; font-size: .75rem; font-weight: 500; color: var(--ink-soft); cursor: pointer; transition: background .1s, color .1s, border-color .1s; }
.post-tag-chip:hover { background: var(--accent-soft); color: var(--accent); border-color: var(--accent); }
.post-tag-chip--active { background: var(--accent); color: #fff; border-color: var(--accent); }
.post-tag-chip--sm { padding: 1px 7px; font-size: .7rem; cursor: default; pointer-events: none; }
.post-tag-chip--sm:hover { background: transparent; color: var(--ink-soft); border-color: var(--border); }

.post-hero { position: relative; min-height: 320px; display: flex; align-items: center; background-size: cover; background-position: center; overflow: hidden; }
.post-hero--media { color: #fff; }
.post-hero__inner { position: relative; z-index: 1; }
.post-hero__title { font-size: clamp(1.6rem, 4vw, 2.8rem); font-weight: 700; line-height: 1.15; margin: 0 0 12px; }
.post-hero__subtitle { font-size: 1.05rem; color: var(--ink-soft); max-width: 42em; }
.post-hero--media .post-hero__subtitle { color: rgba(255,255,255,.7); }
.post-hero__meta { display: flex; align-items: center; gap: 8px; font-size: .85rem; color: var(--ink-soft); margin-top: 12px; }
.post-hero--media .post-hero__meta { color: rgba(255,255,255,.6); }

.container--prose { max-width: 720px; }
.post-content img { border-radius: var(--radius); margin: 1.2em 0; }

.post-author { display: flex; align-items: center; gap: 16px; padding: 20px 0; border-top: 1px solid var(--border); }
.post-author__avatar { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; }
.post-author__avatar-fallback { width: 56px; height: 56px; border-radius: 50%; background: var(--accent-soft); display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 1.1rem; color: var(--accent); }
.post-author__name { font-weight: 600; font-size: .95rem; }
.post-author__bio { font-size: .85rem; color: var(--ink-soft); margin: 4px 0 0; }

/* ── Atendimento ─────────────────────────────────────────────────────── */
.team-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 24px; }
.team-member { text-align: center; }
.team-member__avatar { width: 80px; height: 80px; border-radius: 50%; object-fit: cover; margin: 0 auto 12px; display: block; }
.team-member__avatar-fallback { width: 80px; height: 80px; border-radius: 50%; background: var(--accent-soft); display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 1.3rem; color: var(--accent); margin: 0 auto 12px; }
.team-member__name { font-weight: 600; font-size: .95rem; }
.team-member__role { font-size: .8rem; color: var(--accent); margin-top: 2px; }
.team-member__bio { font-size: .82rem; color: var(--ink-soft); margin-top: 6px; }

.testimonial-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }
.testimonial { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; margin: 0; }
.testimonial__text { font-size: .9rem; line-height: 1.6; font-style: italic; margin: 0 0 12px; }
.testimonial__footer { display: flex; align-items: center; gap: 10px; }
.testimonial__avatar { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; }
.testimonial__name { font-weight: 600; font-size: .85rem; display: block; font-style: normal; }
.testimonial__role { font-size: .75rem; color: var(--ink-soft); display: block; font-style: normal; }

.services-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 20px; }
.service-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; }
.service-card__icon { width: 40px; height: 40px; border-radius: 50%; background: var(--accent-soft); display: flex; align-items: center; justify-content: center; color: var(--accent); margin-bottom: 12px; }
.service-card__title { font-weight: 600; font-size: .95rem; margin: 0 0 6px; }
.service-card__text { font-size: .85rem; color: var(--ink-soft); margin: 0; }

.contact-form { max-width: 560px; margin: 0 auto; }
.contact-form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.contact-form__field { display: block; margin-bottom: 12px; }
.contact-form__label { display: block; font-size: .8rem; font-weight: 600; margin-bottom: 4px; }
.contact-form__input, .contact-form__textarea { display: block; width: 100%; padding: 10px 12px; border: 1px solid var(--border); border-radius: var(--radius); font-size: .9rem; background: var(--bg); color: var(--ink); transition: border-color .15s; box-sizing: border-box; }
.contact-form__input:focus, .contact-form__textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.contact-form__error { color: #d63031; font-size: .82rem; margin-bottom: 8px; }
.contact-form__submit { margin-top: 4px; }

/* ── Web Chat ───────────────────────────────────────────────────────── */
.webchat { position: fixed; right: 18px; bottom: 18px; z-index: 80; display: flex; flex-direction: column; align-items: flex-end; gap: 12px; }
.webchat__fab { width: 54px; height: 54px; border: 0; border-radius: 50%; display: grid; place-items: center; color: var(--accent-contrast); background: var(--accent); box-shadow: var(--shadow); cursor: pointer; }
.webchat__fab .icon { width: 22px; height: 22px; }
.webchat__panel { width: min(360px, calc(100vw - 28px)); height: min(520px, calc(100vh - 110px)); display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--border); border-radius: 8px; background: var(--surface); box-shadow: 0 24px 70px rgba(0,0,0,.18); }
.webchat__head { flex-shrink: 0; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 14px 12px; color: var(--accent-contrast); background: var(--accent); }
.webchat__title { font-size: .98rem; font-weight: 700; }
.webchat__status { margin-top: 2px; font-size: .76rem; opacity: .82; }
.webchat__icon { width: 32px; height: 32px; border: 0; border-radius: 50%; display: grid; place-items: center; color: inherit; background: rgba(255,255,255,.14); cursor: pointer; }
.webchat__icon .icon { width: 17px; height: 17px; }
.webchat__start { padding: 16px; display: grid; gap: 12px; }
.webchat__intro { margin: 0; font-size: .82rem; color: var(--muted); line-height: 1.4; }
.webchat__start label { display: grid; gap: 5px; font-size: .78rem; font-weight: 700; }
.webchat__start input, .webchat__composer input { width: 100%; border: 1px solid var(--border); border-radius: 7px; background: var(--bg); color: var(--ink); padding: 10px 11px; font: inherit; box-sizing: border-box; }
.webchat__messages { flex: 1; min-height: 0; overflow-y: auto; padding: 14px; display: flex; flex-direction: column; gap: 8px; background: var(--bg-soft); }
.webchat__empty { margin: auto; color: var(--ink-soft); font-size: .84rem; text-align: center; max-width: 22em; }
.webchat__message { max-width: 82%; align-self: flex-start; padding: 9px 11px; border: 1px solid var(--border); border-radius: 8px; border-bottom-left-radius: 2px; background: var(--surface); color: var(--ink); font-size: .88rem; line-height: 1.45; white-space: pre-wrap; overflow-wrap: anywhere; }
.webchat__message--me { align-self: flex-end; border-color: transparent; border-bottom-left-radius: 8px; border-bottom-right-radius: 2px; color: var(--accent-contrast); background: var(--accent); }
.webchat__composer { flex-shrink: 0; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; padding: 12px; border-top: 1px solid var(--border); background: var(--surface); }
.webchat__error { margin: 0; padding: 0 16px 10px; color: #d63031; font-size: .78rem; }

/* ── E-commerce ──────────────────────────────────────────────────────── */
.store-banner { position: relative; min-height: 340px; display: flex; align-items: center; background-size: cover; background-position: center; overflow: hidden; }
.store-banner--media { color: #fff; }
.store-banner__inner { position: relative; z-index: 1; }
.store-banner__title { font-size: clamp(1.6rem, 4vw, 2.8rem); font-weight: 700; line-height: 1.15; margin: 0 0 12px; }
.store-banner__subtitle { font-size: 1.05rem; max-width: 42em; }
.store-banner--media .store-banner__subtitle { color: rgba(255,255,255,.7); }

.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 20px; }
.product-card { border-radius: var(--radius); overflow: hidden; background: var(--surface); border: 1px solid var(--border); transition: box-shadow .15s; }
.product-card:hover { box-shadow: var(--shadow); }
.product-card--skeleton { min-height: 220px; }
.product-card__image { height: 180px; background-size: cover; background-position: center; }
.product-card__body { padding: 14px; }
.product-card__name { font-weight: 600; font-size: .95rem; margin: 0 0 4px; }
.product-card__desc { font-size: .82rem; color: var(--ink-soft); margin: 0 0 8px; }
.product-card__price { font-weight: 700; font-size: 1.1rem; color: var(--accent); }

/* ── Animations ──────────────────────────────────────────────────────── */
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: translateY(0); } }
@keyframes shimmer { 100% { transform: translateX(100%); } }
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .001ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; }
}

/* ── Responsive ──────────────────────────────────────────────────────── */
@media (max-width: 720px) {
  :root { --header-h: 62px; }
  .nav__toggle { display: flex; }
  .nav {
    position: absolute; left: 0; right: 0; top: var(--header-h);
    flex-direction: column; align-items: stretch; gap: 2px; margin: 0; padding: 12px var(--gutter) 18px;
    background: var(--bg); border-bottom: 1px solid var(--border); box-shadow: var(--shadow);
    transform: translateY(-12px); opacity: 0; pointer-events: none; visibility: hidden;
    transition: opacity .2s ease, transform .2s ease, visibility .2s;
  }
  .site-header.is-open .nav { transform: translateY(0); opacity: 1; pointer-events: auto; visibility: visible; }
  .nav__link { padding: 12px 14px; font-size: 1rem; }
  .nav__link.is-active::after { display: none; }
  .cta__inner { flex-direction: column; align-items: flex-start; }
  .feature-grid[data-count="2"] { grid-template-columns: 1fr; }
  .search-bar__input { width: 140px; }
  .post-grid { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
  .contact-form__row { grid-template-columns: 1fr; }
  .product-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
  .webchat { right: 12px; bottom: 12px; }
  .webchat__panel { width: calc(100vw - 24px); height: min(520px, calc(100vh - 92px)); }
}
