/* ==========================================================================
   Helio Richter · site profissional
   CSS moderno, sem build: camadas (@layer), propriedades customizadas,
   transições entre páginas (View Transitions), animações por rolagem,
   :has(), <details name>, <dialog> e Popover API.
   Fontes auto-hospedadas: DM Serif Display (títulos) · Inter (corpo)
   ========================================================================== */

@layer reset, base, layout, components, pages, utilities;

/* --- Fontes (auto-hospedadas, sem Google Fonts) --------------------------- */
@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-var.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "DM Serif Display";
  src: url("../fonts/dm-serif-display.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "DM Serif Display";
  src: url("../fonts/dm-serif-display-italic.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

/* Transição suave entre páginas (navegadores compatíveis) */
@view-transition { navigation: auto; }

/* --- Tokens --------------------------------------------------------------- */
:root {
  color-scheme: light;

  --ink-900: #263339;
  --ink-800: #374850;
  --ink-700: #41525A;
  --ink-600: #5B6B73;
  --ink-500: #6E7C85;
  --ink-400: #74838C;
  --ink-300: #93A3AC;

  --blue: #347CE2;
  --blue-hover: #2A66BC;
  --blue-ink: #2462BA;
  --blue-light: #5B96EA;
  --blue-pale: #A9C7F0;
  --blue-wash: #EAF2FD;

  --dark-900: #0F171C;
  --dark-800: #1B252A;
  --dark-700: #18232A;
  --dark-600: #243039;
  --dark-navy: #2C4E82;

  --line: #E6E9ED;
  --line-2: #E4E8EC;
  --line-soft: #EDF0F3;

  --bg-1: #F5F7FA;
  --bg-2: #F1F4F7;
  --bg-3: #EEF1F4;
  --bg-4: #EAEEF2;

  --wa: #25D366;
  --wa-ink: #128C4B;

  --serif: "DM Serif Display", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --maxw: 1220px;
  --header-h: 72px;
  --gutter: clamp(16px, 4vw, 40px);
  --radius: 16px;

  --grad-hero: linear-gradient(155deg, #1B252A 0%, #243039 42%, #2C4E82 100%);
  --grad-card: linear-gradient(135deg, #243039, #2C4E82);
  --shadow-lift: 0 26px 50px -26px rgb(38 51 57 / .3);
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* ==========================================================================
   RESET
   ========================================================================== */
@layer reset {
  *, *::before, *::after { box-sizing: border-box; }
  html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; interpolate-size: allow-keywords; }
  body, h1, h2, h3, h4, p, figure, blockquote, ul, ol, dl, dd { margin: 0; }
  ul[role="list"], ol[role="list"] { list-style: none; padding: 0; }
  img, picture, svg, video { display: block; max-width: 100%; }
  img { height: auto; }
  input, button, textarea, select { font: inherit; color: inherit; }
  button { cursor: pointer; }
  [hidden] { display: none !important; }
}

/* ==========================================================================
   BASE
   ========================================================================== */
@layer base {
  html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
  body {
    min-height: 100dvh;
    background: #fff;
    font-family: var(--sans);
    color: var(--ink-900);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    overflow-x: clip;
  }
  h1, h2, h3, h4 { text-wrap: balance; }
  p, li { text-wrap: pretty; }
  a { color: var(--blue-ink); text-decoration: none; }
  a:hover { color: var(--blue-hover); }
  ::selection { background: rgb(52 124 226 / .22); }

  :focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 6px; }

  .skip-link {
    position: absolute; left: 12px; top: -120px; z-index: 1000;
    background: #fff; color: var(--ink-900); font-weight: 600;
    padding: 10px 16px; border-radius: 10px; box-shadow: 0 10px 30px -10px rgb(0 0 0 / .4);
    transition: top .2s;
  }
  .skip-link:focus { top: 12px; }

  .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;
  }

  @media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
    @view-transition { navigation: none; }
  }
}

/* ==========================================================================
   LAYOUT
   ========================================================================== */
@layer layout {
  .wrap { max-width: var(--maxw); margin-inline: auto; }
  .wrap--narrow { max-width: 860px; margin-inline: auto; }
  .section { padding: clamp(72px, 9vw, 120px) var(--gutter); }
  .section--tight { padding-block: clamp(20px, 4vw, 40px); padding-inline: var(--gutter); }
  .section + .section { content-visibility: auto; contain-intrinsic-size: auto 800px; }

  .bg-white { background: #fff; }
  .bg-soft { background: var(--bg-1); }
  .bg-soft-grad { background: linear-gradient(180deg, var(--bg-1), var(--bg-4)); }
  .bg-ink { background: var(--dark-900); color: #fff; }

  .grid-auto { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 22px; }
  .grid-auto--300 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 20px; }
  .grid-auto--240 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 24px; }
}

/* ==========================================================================
   COMPONENTES
   ========================================================================== */
@layer components {
  /* --- Títulos de seção ---------------------------------------------------- */
  .eyebrow {
    margin: 0 0 16px;
    font: 600 13px/1 var(--sans);
    letter-spacing: .14em; text-transform: uppercase;
    color: var(--ink-600);
  }
  .eyebrow::before { content: "[ "; color: var(--blue); }
  .eyebrow::after { content: " ]"; color: var(--blue); }
  .eyebrow--light { color: var(--blue-pale); }

  .h-section {
    font-family: var(--serif); font-weight: 400;
    font-size: clamp(30px, 4.4vw, 52px); line-height: 1.08; letter-spacing: -.01em;
  }
  .h-section--light { color: #fff; }
  .h-section--sm { font-size: clamp(28px, 4vw, 46px); line-height: 1.1; }
  .lead { margin-top: 20px; font-size: 17px; line-height: 1.6; color: var(--ink-600); }

  .section-head { max-width: 720px; margin-bottom: clamp(40px, 5vw, 64px); }
  .section-head--center { text-align: center; margin-inline: auto; }
  .section-head--row {
    display: flex; flex-wrap: wrap; gap: 20px; justify-content: space-between; align-items: flex-end;
    margin-bottom: clamp(36px, 5vw, 56px);
  }
  .section-head--row > div { max-width: 640px; }
  .link-more { font-weight: 600; font-size: 15.5px; white-space: nowrap; }

  /* --- Botões -------------------------------------------------------------- */
  .btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 9px;
    font-weight: 600; font-size: 16px; line-height: 1.2;
    padding: 15px 26px; border-radius: 12px; border: 1px solid transparent;
    transition: background .18s, border-color .18s, transform .18s var(--ease), color .18s, box-shadow .18s;
  }
  .btn-primary { background: var(--blue); color: #fff; box-shadow: 0 16px 34px -12px rgb(52 124 226 / .7); }
  .btn-primary:hover { background: var(--blue-hover); color: #fff; transform: translateY(-2px); }
  .btn-ghost-dark { color: #fff; border-color: rgb(255 255 255 / .3); }
  .btn-ghost-dark:hover { color: #fff; border-color: var(--blue-pale); background: rgb(255 255 255 / .06); }
  .btn-outline { color: var(--ink-900); border-color: #CBD5DD; background: #fff; }
  .btn-outline:hover { border-color: var(--blue); color: var(--blue-ink); }
  .btn-sm { font-size: 15px; padding: 12px 20px; border-radius: 11px; }
  .cta-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
  .cta-actions--center { justify-content: center; }

  .tick { color: var(--blue); font-weight: 700; flex: none; }
  .tick--light { color: var(--blue-pale); }

  /* --- Header -------------------------------------------------------------- */
  .site-header {
    position: fixed; inset: 0 0 auto 0; z-index: 100;
    background: transparent; border-bottom: 1px solid transparent;
    transition: background .25s, border-color .25s;
    view-transition-name: site-header;
  }
  .site-header__inner {
    max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter);
    height: var(--header-h);
    display: flex; align-items: center; justify-content: space-between; gap: 24px;
  }
  /* Ao rolar: grafite da marca (#263339, o mesmo tom do "helio" na logo)
     translúcido com desfoque, para o conteúdo passar por trás sem brigar
     com o texto. Mantém logo e menu claros nos dois estados. */
  .site-header.is-solid {
    background: rgb(38 51 57 / .82);
    backdrop-filter: saturate(160%) blur(14px);
    -webkit-backdrop-filter: saturate(160%) blur(14px);
    border-bottom-color: rgb(255 255 255 / .08);
    box-shadow: 0 10px 30px -18px rgb(10 20 30 / .55);
  }
  @supports not (backdrop-filter: blur(1px)) {
    .site-header.is-solid { background: rgb(38 51 57 / .97); }
  }

  .logo { display: inline-flex; align-items: center; line-height: 0; flex: none; }
  .logo__img { height: 44px; width: auto; }
  .logo--rodape .logo__img { height: 54px; }
  @media (max-width: 480px) { .site-header .logo__img { height: 38px; } }

  .site-nav { display: flex; align-items: center; gap: 30px; }
  .site-nav a {
    font-size: 15px; font-weight: 500; color: rgb(255 255 255 / .85);
    padding: 6px 2px; border-bottom: 2px solid transparent;
    transition: color .18s, border-color .18s;
  }
  .site-nav a:hover { color: #fff; }
  .site-nav a[aria-current="page"] { font-weight: 600; color: #fff; border-bottom-color: var(--blue); }

  .header-right { display: flex; align-items: center; gap: 14px; }
  .header-cta {
    display: inline-flex; align-items: center;
    font-size: 14.5px; font-weight: 600; color: #fff;
    background: var(--blue); padding: 11px 20px; border-radius: 10px;
    box-shadow: 0 6px 16px -6px rgb(52 124 226 / .6);
    transition: background .18s, transform .18s;
  }
  .header-cta:hover { background: var(--blue-hover); color: #fff; transform: translateY(-1px); }

  /* Hambúrguer + menu mobile (Popover API) */
  .burger {
    display: none; flex-direction: column; justify-content: center; gap: 5px;
    width: 44px; height: 44px; padding: 0 10px;
    background: rgb(255 255 255 / .14); border: none; border-radius: 10px;
  }
  .burger span { display: block; height: 2px; border-radius: 2px; background: #fff; transition: transform .2s, opacity .2s; }
  .burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .mobile-menu {
    position: fixed; inset: var(--header-h) 0 auto 0; margin: 0; width: 100%; max-width: none;
    border: 0; border-bottom: 1px solid #E9ECEF; background: #fff;
    padding: 8px var(--gutter) 22px;
    box-shadow: 0 20px 40px -20px rgb(38 51 57 / .35);
    flex-direction: column;
    opacity: 0; translate: 0 -8px;
    transition: opacity .2s, translate .2s, display .2s allow-discrete, overlay .2s allow-discrete;
  }
  .mobile-menu:popover-open { display: flex; opacity: 1; translate: 0 0; }
  @starting-style { .mobile-menu:popover-open { opacity: 0; translate: 0 -8px; } }
  .mobile-menu::backdrop { background: rgb(15 23 28 / .25); }
  .mobile-menu a { font-size: 17px; font-weight: 500; color: var(--ink-900); padding: 14px 4px; border-bottom: 1px solid var(--line-soft); }
  .mobile-menu a[aria-current="page"] { font-weight: 600; color: var(--blue-ink); }
  .mobile-menu .header-cta { margin-top: 16px; justify-content: center; font-size: 16px; padding: 14px; border-radius: 12px; border: 0; color: #fff; }

  @media (max-width: 899px) {
    .site-nav { display: none; }
    .header-right > .header-cta { display: none; }
    .burger { display: flex; }
  }
  @media (min-width: 900px) { .mobile-menu { display: none !important; } }

  /* --- Footer -------------------------------------------------------------- */
  .site-footer { background: var(--dark-800); color: #C6D0D6; position: relative; overflow: hidden; }
  .site-footer::before {
    content: ""; position: absolute; top: -140px; right: -80px; width: 360px; height: 360px;
    border-radius: 50%; background: radial-gradient(circle, rgb(52 124 226 / .28), transparent 68%); pointer-events: none;
  }
  .site-footer__grid {
    position: relative; max-width: var(--maxw); margin-inline: auto;
    padding: clamp(52px, 7vw, 84px) var(--gutter) 0;
    display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 190px), 1fr)); gap: clamp(32px, 4vw, 56px);
  }
  .site-footer__blurb { margin-top: 22px; font-size: 15px; line-height: 1.6; color: var(--ink-300); max-width: 300px; }
  .footer-wa {
    display: inline-flex; align-items: center; gap: 9px; margin-top: 24px;
    font-size: 14.5px; font-weight: 600; color: #fff;
    background: rgb(52 124 226 / .16); border: 1px solid rgb(52 124 226 / .4);
    padding: 10px 16px; border-radius: 10px;
  }
  .footer-wa:hover { color: #fff; background: rgb(52 124 226 / .26); }
  .site-footer h2 { margin: 0 0 18px; font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: #8597A1; }
  .footer-link, .footer-item { display: block; margin-bottom: 12px; font-size: 15px; line-height: 1.4; color: #A9B6BD; }
  .footer-link:hover { color: #fff; }
  .site-footer__bar {
    position: relative; max-width: var(--maxw); margin: clamp(44px, 6vw, 68px) auto 0;
    padding: 22px var(--gutter);
    border-top: 1px solid rgb(255 255 255 / .08);
    display: flex; flex-wrap: wrap; gap: 12px 28px; align-items: center; justify-content: space-between;
  }
  .site-footer__bar p { font-size: 13px; color: #8A9AA3; max-width: 640px; line-height: 1.6; }
  .site-footer__bar strong { color: var(--ink-300); font-weight: 600; }
  .site-footer__legal { display: flex; gap: 22px; }
  .site-footer__legal a { font-size: 13px; color: #A3B1B8; }
  .site-footer__legal a:hover { color: #fff; }
  .site-footer__stripe { height: 5px; background: linear-gradient(90deg, #263339, #347CE2, #A9C7F0); }

  /* --- WhatsApp flutuante -------------------------------------------------- */
  @keyframes wa-pulse {
    0% { box-shadow: 0 0 0 0 rgb(37 211 102 / .5); }
    70% { box-shadow: 0 0 0 16px rgb(37 211 102 / 0); }
    100% { box-shadow: 0 0 0 0 rgb(37 211 102 / 0); }
  }
  .wa-fab {
    position: fixed; right: clamp(16px, 3vw, 32px); bottom: clamp(16px, 3vw, 32px); z-index: 90;
    display: inline-flex; align-items: center; gap: 11px;
    background: var(--wa); color: #0B2E18; font-weight: 700; font-size: 15px;
    padding: 13px 20px 13px 15px; border-radius: 999px;
    box-shadow: 0 14px 34px -8px rgb(37 211 102 / .6);
    animation: wa-pulse 2.6s infinite;
  }
  .wa-fab svg { fill: #0B2E18; }
  .wa-fab:hover { color: #0B2E18; filter: brightness(1.04); }
  @media (max-width: 559px) { .wa-fab { padding: 14px; } .wa-fab__label { display: none; } }

  /* --- Cards --------------------------------------------------------------- */
  .card {
    border: 1px solid var(--line); border-radius: var(--radius); padding: 32px 28px; background: #fff;
    transition: transform .2s var(--ease), box-shadow .2s;
  }
  .card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lift); }
  .icon-badge {
    width: 54px; height: 54px; border-radius: 13px; background: var(--blue-wash);
    display: grid; place-items: center; margin-bottom: 22px; color: var(--blue);
  }
  .icon-badge--xs { width: 40px; height: 40px; border-radius: 10px; margin-bottom: 16px; }
  .icon-badge--sm { width: 44px; height: 44px; border-radius: 11px; margin-bottom: 16px; font-size: 20px; }
  .step-label { font: 600 12px/1 var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--blue-ink); }
  .card__title { margin: 12px 0 10px; font-size: 22px; font-weight: 600; }
  .card__text { font-size: 15.5px; line-height: 1.62; color: var(--ink-600); }

  .why-card { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 26px 24px; }
  .why-card__title { margin: 0 0 8px; font-size: 18px; font-weight: 600; }
  .why-card__text { font-size: 15px; line-height: 1.6; color: var(--ink-600); }

  .step { padding-top: 14px; }
  .step__n { font-family: var(--serif); font-size: 56px; line-height: 1; color: #C9D9F1; }
  .step__title { margin: 14px 0 8px; font-size: 20px; font-weight: 600; }
  .step__text { font-size: 15px; line-height: 1.6; color: var(--ink-600); }

  /* --- Planos (resumo e completo) ----------------------------------------- */
  .plan {
    position: relative; display: flex; flex-direction: column;
    background: #fff; border: 1px solid #E1E6EB; border-radius: 18px; padding: 32px 28px;
  }
  .plan--featured {
    background: linear-gradient(160deg, #243039, #2C4E82); color: #fff; border-color: transparent;
    box-shadow: 0 34px 70px -30px rgb(44 78 130 / .7);
  }
  @media (min-width: 901px) { .plan--featured { translate: 0 -8px; } }
  .plan__badge {
    position: absolute; top: -13px; left: 28px;
    background: var(--blue); color: #fff; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
    padding: 6px 12px; border-radius: 8px;
  }
  .plan__name { font-weight: 600; font-size: 14px; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-600); }
  .plan--featured .plan__name { color: var(--blue-pale); }
  .plan__price { margin: 14px 0 6px; font-family: var(--serif); font-size: clamp(38px, 4vw, 44px); line-height: 1.1; }
  .plan__unit { font-size: 13.5px; color: var(--ink-500); }
  .plan--featured .plan__unit { color: #B8C6CF; }
  .plan__desc { margin: 16px 0 22px; font-size: 15px; line-height: 1.55; color: var(--ink-600); }
  .plan--featured .plan__desc { color: #D3DCE3; }
  .plan__list { border-top: 1px solid var(--line-soft); padding-top: 18px; display: flex; flex-direction: column; gap: 11px; margin-bottom: 24px; list-style: none; padding-left: 0; }
  .plan--featured .plan__list { border-top-color: rgb(255 255 255 / .14); }
  .plan__list li { display: flex; gap: 9px; align-items: flex-start; font-size: 14.5px; line-height: 1.4; color: var(--ink-700); }
  .plan--featured .plan__list li { color: #E2E8ED; }
  .plan--featured .tick { color: var(--blue-pale); }
  .plan__cta {
    margin-top: auto; text-align: center; font-weight: 600; font-size: 15px;
    padding: 13px; border-radius: 11px; border: 1px solid #CBD5DD; color: var(--ink-900);
    transition: border-color .18s, color .18s, background .18s;
  }
  .plan__cta:hover { border-color: var(--blue); color: var(--blue-ink); }
  .plan--featured .plan__cta { border: none; background: var(--blue); color: #fff; }
  .plan--featured .plan__cta:hover { background: var(--blue-light); color: #fff; }
  .plan__cta--top { margin: 0 0 22px; background: var(--ink-900); color: #fff; border: 0; }
  .plan__cta--top:hover { color: #fff; background: #36464e; }
  .plans-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 24px; align-items: start; }
  .plans-grid--stretch { align-items: stretch; }

  /* --- Projetos ------------------------------------------------------------ */
  .proj-card {
    position: relative; display: flex; flex-direction: column;
    border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #fff; color: inherit;
    transition: transform .2s var(--ease), box-shadow .2s;
  }
  .proj-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lift); color: inherit; }
  .proj-card__media { position: relative; aspect-ratio: 16 / 9; background: var(--grad-card); overflow: hidden; }
  .proj-card__media img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: scale .5s var(--ease); }
  .proj-card:hover .proj-card__media img { scale: 1.04; }
  .proj-card__cat {
    position: absolute; top: 12px; left: 12px; z-index: 1;
    background: rgb(15 23 28 / .74); color: #fff; font-size: 12px; font-weight: 600; letter-spacing: .03em;
    padding: 6px 11px; border-radius: 7px; backdrop-filter: blur(4px);
  }
  .proj-card__body { padding: 20px 22px 22px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
  .proj-card__type { font-size: 12.5px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--blue-ink); }
  .proj-card__title { font-size: 20px; font-weight: 600; line-height: 1.25; }
  .proj-card__text { font-size: 14.5px; line-height: 1.55; color: var(--ink-600); }
  .proj-card__foot { margin-top: auto; padding-top: 8px; display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; }
  .proj-card__open {
    display: inline-flex; align-items: center; gap: 8px;
    font-size: 14px; font-weight: 600; color: var(--blue-ink);
    background: var(--blue-wash); border: 0; padding: 9px 14px; border-radius: 9px;
  }
  .proj-card__open:hover { background: #dbe8fb; }
  /* o botão cobre o card inteiro, mas o link externo fica clicável por cima */
  .proj-card__open::after { content: ""; position: absolute; inset: 0; z-index: 0; }
  .proj-card__site { position: relative; z-index: 1; font-size: 14px; font-weight: 600; }
  .proj-card__pages { font-size: 13px; color: var(--ink-500); }

  /* Filtro do portfólio sem JavaScript: rádios + :has() */
  .filter-bar {
    display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: clamp(28px, 4vw, 40px);
    position: sticky; top: var(--header-h); z-index: 10; background: #fff; padding: 16px 0;
    border: 0; margin-inline: 0;
  }
  .filter-bar legend { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .chip { position: relative; }
  .chip input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
  .chip span {
    display: inline-block; font-size: 14.5px; font-weight: 600;
    padding: 10px 18px; border-radius: 999px; border: 1px solid #D9DEE4; background: #fff; color: var(--ink-700);
    transition: background .18s, border-color .18s, color .18s;
  }
  .chip:hover span { border-color: var(--blue-pale); }
  .chip input:checked + span { border-color: var(--blue); background: var(--blue); color: #fff; }
  .chip input:focus-visible + span { outline: 3px solid var(--blue); outline-offset: 3px; }

  .pf:has(#f-institucional:checked) .proj-card:not([data-cat~="institucional"]),
  .pf:has(#f-landing:checked) .proj-card:not([data-cat~="landing"]),
  .pf:has(#f-catalogo:checked) .proj-card:not([data-cat~="catalogo"]) { display: none; }

  /* Janela com a página inteira do projeto (<dialog>) */
  .viewer {
    width: min(1100px, 100vw - 24px); max-width: none; height: min(92dvh, 1000px); max-height: none;
    padding: 0; border: 0; border-radius: 18px; overflow: hidden;
    box-shadow: 0 40px 100px -30px rgb(0 0 0 / .6);
    opacity: 0; scale: .97;
    transition: opacity .22s, scale .22s var(--ease), display .22s allow-discrete, overlay .22s allow-discrete;
  }
  .viewer[open] { opacity: 1; scale: 1; display: flex; flex-direction: column; }
  @starting-style { .viewer[open] { opacity: 0; scale: .97; } }
  .viewer::backdrop { background: rgb(15 23 28 / .78); backdrop-filter: blur(4px); }
  .viewer__bar {
    display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 10px 12px;
    padding: 12px 14px 12px 20px; background: var(--bg-2); border-bottom: 1px solid var(--line);
  }
  .viewer__title { font-size: 16px; font-weight: 600; }
  .viewer__tabs { display: flex; flex-wrap: wrap; gap: 6px; grid-column: 1 / -1; grid-row: 2; }
  .viewer__tabs:empty { display: none; }
  @media (min-width: 900px) {
    .viewer__bar { grid-template-columns: auto 1fr auto; }
    .viewer__tabs { grid-column: 2; grid-row: 1; justify-content: flex-end; }
  }
  .viewer__tab { font-size: 13.5px; font-weight: 600; padding: 7px 12px; border-radius: 8px; border: 1px solid var(--line); background: #fff; color: var(--ink-700); }
  .viewer__tab[aria-pressed="true"] { background: var(--ink-900); border-color: var(--ink-900); color: #fff; }
  .viewer__close { width: 40px; height: 40px; border-radius: 10px; border: 0; background: #fff; font-size: 22px; line-height: 1; color: var(--ink-900); }
  .viewer__close:hover { background: var(--line); }
  .viewer__scroll { flex: 1; overflow-y: auto; overscroll-behavior: contain; background: var(--bg-3); }
  .viewer__scroll img { width: 100%; height: auto; margin-inline: auto; max-width: 960px; }
  .viewer__hint { font-size: 12.5px; color: var(--ink-500); }

  /* --- Faixa de clientes (hero) ------------------------------------------ */
  .clients { position: relative; border-top: 1px solid rgb(255 255 255 / .08); }
  .clients__inner { max-width: var(--maxw); margin-inline: auto; padding: 20px var(--gutter); display: flex; flex-wrap: wrap; gap: 10px 40px; align-items: center; justify-content: space-between; }
  .clients__label { font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: #8A9AA3; }
  .clients__list { display: flex; flex-wrap: wrap; gap: 8px 26px; list-style: none; padding: 0; font-family: var(--serif); font-size: 19px; color: #B8C6CF; }

  /* --- FAQ (<details name> = acordeão exclusivo nativo) ------------------- */
  .faq { display: flex; flex-direction: column; gap: 12px; }
  .faq details { border: 1px solid var(--line); border-radius: 12px; background: #fff; overflow: hidden; }
  .faq summary {
    list-style: none; cursor: pointer;
    display: flex; align-items: center; justify-content: space-between; gap: 16px;
    padding: 20px 22px; font-size: 16.5px; font-weight: 600; color: var(--ink-900);
  }
  .faq summary::-webkit-details-marker { display: none; }
  .faq summary::after { content: "+"; flex: none; font-size: 24px; font-weight: 400; line-height: 1; color: var(--blue); transition: rotate .2s; }
  .faq details[open] summary::after { rotate: 45deg; }
  .faq details::details-content { block-size: 0; overflow: hidden; transition: block-size .28s var(--ease), content-visibility .28s allow-discrete; }
  .faq details[open]::details-content { block-size: auto; }
  .faq details p { padding: 0 22px 22px; font-size: 15.5px; line-height: 1.65; color: var(--ink-600); }

  /* --- CTA final ----------------------------------------------------------- */
  .cta-band {
    max-width: var(--maxw); margin-inline: auto; position: relative; overflow: hidden; isolation: isolate;
    border-radius: 24px; background: var(--grad-hero); color: #fff;
    padding: clamp(48px, 7vw, 88px) clamp(24px, 5vw, 72px);
  }
  .cta-band::before {
    content: ""; position: absolute; bottom: -160px; right: -80px; width: 420px; height: 420px; z-index: -1;
    border-radius: 50%; background: radial-gradient(circle, rgb(52 124 226 / .4), transparent 66%);
  }
  .cta-band__inner { max-width: 640px; }
  .cta-band--center .cta-band__inner { margin-inline: auto; text-align: center; }
  .cta-band__title { font-family: var(--serif); font-weight: 400; font-size: clamp(30px, 4.6vw, 54px); line-height: 1.06; }
  .cta-band__text { margin-top: 20px; font-size: 17.5px; line-height: 1.6; color: #C6D0D6; }

  /* --- Hero de páginas internas ------------------------------------------ */
  .page-hero { padding: clamp(120px, 14vw, 164px) var(--gutter) clamp(36px, 5vw, 52px); background: linear-gradient(180deg, var(--bg-1), #fff); }
  .page-hero__title { font-family: var(--serif); font-weight: 400; font-size: clamp(38px, 6vw, 68px); line-height: 1.03; letter-spacing: -.015em; max-width: 820px; }
  .page-hero__sub { margin-top: 20px; font-size: 17.5px; line-height: 1.6; color: var(--ink-600); max-width: 620px; }
  .page-hero--center { text-align: center; }
  .page-hero--center .page-hero__title, .page-hero--center .page-hero__sub { margin-inline: auto; }

  .breadcrumb { margin-bottom: 18px; font-size: 13.5px; color: var(--ink-500); }
  .breadcrumb ol { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; padding: 0; }
  .breadcrumb li + li::before { content: "/"; margin-right: 6px; color: #B5C0C7; }
  .breadcrumb a { color: var(--ink-600); }
  .breadcrumb a:hover { color: var(--blue-ink); }

  /* --- Revelar ao rolar (só onde houver suporte) -------------------------- */
  @supports (animation-timeline: view()) {
    @media (prefers-reduced-motion: no-preference) {
      .reveal {
        animation: reveal linear both;
        animation-timeline: view();
        animation-range: entry 0% entry 40%;
      }
      @keyframes reveal { from { opacity: 0; translate: 0 28px; } to { opacity: 1; translate: 0 0; } }
    }
  }
}

/* ==========================================================================
   PÁGINAS
   ========================================================================== */
@layer pages {
  /* --- Home: hero ---------------------------------------------------------- */
  .hero { position: relative; background: var(--grad-hero); color: #fff; overflow: hidden; isolation: isolate; }
  .hero::before, .hero::after { content: ""; position: absolute; border-radius: 50%; z-index: -1; pointer-events: none; }
  .hero::before { top: -160px; right: -120px; width: 520px; height: 520px; background: radial-gradient(circle, rgb(52 124 226 / .42), transparent 66%); filter: blur(6px); }
  .hero::after { bottom: -180px; left: -140px; width: 460px; height: 460px; background: radial-gradient(circle, rgb(169 199 240 / .16), transparent 68%); }
  .hero__inner {
    max-width: var(--maxw); margin-inline: auto;
    padding: clamp(116px, 15vw, 168px) var(--gutter) clamp(64px, 9vw, 110px);
    display: flex; flex-wrap: wrap; gap: clamp(48px, 6vw, 72px); align-items: center;
  }
  .hero__copy { flex: 1 1 460px; min-width: min(100%, 300px); }
  .hero__kicker { margin-bottom: 22px; font: 600 13px/1.3 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--blue-pale); }
  .hero__kicker::before { content: "[ "; color: var(--blue-light); }
  .hero__kicker::after { content: " ]"; color: var(--blue-light); }
  .hero__title { font-family: var(--serif); font-weight: 400; font-size: clamp(42px, 6.4vw, 76px); line-height: 1.02; letter-spacing: -.015em; }
  .hero__sub { margin-top: 20px; font-size: clamp(18px, 2.3vw, 21px); line-height: 1.42; color: #DCE4EA; max-width: 560px; }
  .hero__accent { color: var(--blue-pale); font-weight: 600; }
  .hero__desc { margin-top: 22px; font-size: 16.5px; line-height: 1.65; color: #A9B9C3; max-width: 520px; }
  .hero__checks { display: flex; flex-wrap: wrap; gap: 10px 24px; margin-top: 30px; list-style: none; padding: 0; }
  .hero__checks li { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: #BFCCD4; }
  .hero__checks .tick { color: var(--blue-light); }

  /* Mockup do navegador com projeto real */
  @keyframes floaty { 0%, 100% { translate: 0 0; } 50% { translate: 0 -12px; } }
  .hero__art { flex: 1 1 380px; min-width: min(100%, 300px); position: relative; }
  .browser { position: relative; background: #fff; border-radius: 16px; box-shadow: 0 40px 80px -30px rgb(0 0 0 / .55); overflow: hidden; animation: floaty 7s ease-in-out infinite; }
  .browser__bar { display: flex; align-items: center; gap: 8px; padding: 12px 16px; background: var(--bg-2); border-bottom: 1px solid var(--line); }
  .dot { width: 11px; height: 11px; border-radius: 50%; flex: none; }
  .dot--r { background: #E1655A; } .dot--y { background: #E6B23C; } .dot--g { background: #4CB65A; }
  .browser__url { flex: 1; min-width: 0; margin-left: 10px; background: #fff; border: 1px solid #E1E6EB; border-radius: 7px; padding: 6px 12px; display: flex; align-items: center; gap: 7px; font-size: 12.5px; color: var(--ink-600); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .browser__screen { aspect-ratio: 16 / 9; overflow: hidden; background: var(--grad-card); }
  .browser__screen img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
  .badge { position: absolute; background: #fff; color: var(--ink-900); border-radius: 12px; padding: 11px 15px; box-shadow: 0 16px 30px -14px rgb(0 0 0 / .4); display: flex; align-items: center; gap: 9px; font-size: 13.5px; font-weight: 600; }
  .badge--tl { top: -16px; left: -10px; animation: floaty 7s ease-in-out .8s infinite; }
  .badge--br { bottom: -18px; right: -6px; animation: floaty 6s ease-in-out .3s infinite; }
  .pulse { width: 9px; height: 9px; border-radius: 50%; background: #4CB65A; box-shadow: 0 0 0 4px rgb(76 182 90 / .18); }

  /* --- Sobre --------------------------------------------------------------- */
  .about-hero { padding: clamp(120px, 14vw, 160px) var(--gutter) clamp(56px, 7vw, 88px); background: linear-gradient(180deg, var(--bg-1), #fff); }
  .about-hero__grid { max-width: 1180px; margin-inline: auto; display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(40px, 5vw, 64px); align-items: center; }
  .about-hero__title { font-family: var(--serif); font-weight: 400; font-size: clamp(36px, 5.4vw, 62px); line-height: 1.04; letter-spacing: -.015em; }
  .about-hero__p1 { margin-top: 22px; font-size: 18.5px; line-height: 1.6; color: var(--ink-800); max-width: 560px; }
  .about-hero__p2 { margin-top: 18px; font-size: 16.5px; line-height: 1.65; color: var(--ink-600); max-width: 560px; }
  .about-photo { position: relative; max-width: 420px; justify-self: center; width: 100%; }
  .about-photo::before { content: ""; position: absolute; inset: 16px -16px -16px 16px; border-radius: 20px; background: linear-gradient(160deg, #243039, #2C4E82); }
  .about-photo img { position: relative; width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 20px; box-shadow: 0 30px 60px -30px rgb(38 51 57 / .5); }
  .about-photo__badge { position: absolute; bottom: -18px; left: -12px; background: #fff; border-radius: 14px; padding: 14px 18px; box-shadow: 0 20px 40px -18px rgb(38 51 57 / .4); display: flex; align-items: center; gap: 11px; font-size: 14px; font-weight: 600; }

  .stats-grid { max-width: 1180px; margin-inline: auto; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr)); gap: 18px; }
  .stat-card { background: var(--bg-1); border-radius: var(--radius); padding: 28px 26px; }
  .stat-card__n { font-family: var(--serif); font-size: 42px; color: var(--blue-ink); line-height: 1; }
  .stat-card__label { margin-top: 8px; font-size: 15px; color: var(--ink-600); line-height: 1.4; }

  .why-dark { position: relative; overflow: hidden; isolation: isolate; }
  .why-dark::before { content: ""; position: absolute; top: -120px; right: -90px; width: 420px; height: 420px; z-index: -1; border-radius: 50%; background: radial-gradient(circle, rgb(52 124 226 / .24), transparent 66%); }
  .why-dark__grid { max-width: 1180px; margin-inline: auto; display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(36px, 5vw, 64px); align-items: start; }
  .why-dark__grid p { margin-bottom: 20px; font-size: 17px; line-height: 1.7; color: #C6D0D6; }
  .why-dark__grid p:last-child { margin-bottom: 0; }
  .why-dark__grid strong { color: #fff; }

  .expertise-card { border: 1px solid var(--line); border-radius: 14px; padding: 26px 24px; }
  .expertise-card__title { margin: 0 0 8px; font-size: 18px; font-weight: 600; }
  .expertise-card__text { font-size: 14.5px; line-height: 1.6; color: var(--ink-600); }

  @media (max-width: 859px) {
    .about-hero__grid, .why-dark__grid { grid-template-columns: 1fr; }
  }

  /* --- Planos --------------------------------------------------------------- */
  .plans-note { margin-top: 26px; text-align: center; font-size: 14.5px; color: var(--ink-500); }
  .included-band { max-width: var(--maxw); margin-inline: auto; background: var(--dark-900); color: #fff; border-radius: 22px; padding: clamp(32px, 5vw, 56px); position: relative; overflow: hidden; isolation: isolate; }
  .included-band::before { content: ""; position: absolute; top: -120px; right: -80px; width: 400px; height: 400px; z-index: -1; border-radius: 50%; background: radial-gradient(circle, rgb(52 124 226 / .28), transparent 66%); }
  .included-band__title { margin: 0 0 8px; font-family: var(--serif); font-weight: 400; font-size: clamp(26px, 3.6vw, 40px); }
  .included-band__sub { margin: 0 0 32px; font-size: 16px; color: var(--ink-300); }
  .included-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 22px; }
  .included-card { background: var(--dark-700); border: 1px solid rgb(255 255 255 / .08); border-radius: 14px; padding: 24px 22px; }
  .included-card__check { width: 44px; height: 44px; border-radius: 11px; background: rgb(52 124 226 / .16); display: grid; place-items: center; margin-bottom: 16px; color: var(--blue-light); font-size: 20px; font-weight: 700; }
  .included-card h3 { margin: 0 0 7px; font-size: 17px; font-weight: 600; }
  .included-card p { font-size: 14px; line-height: 1.55; color: var(--ink-300); }

  .monthly-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 22px; }
  .monthly-card { border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 26px; background: #fff; }
  .monthly-card__name { font-weight: 600; font-size: 13.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--blue-ink); }
  .monthly-card__price { margin: 12px 0 4px; font-family: var(--serif); font-size: 34px; }
  .monthly-card__price small { font-family: var(--sans); font-size: 15px; color: var(--ink-500); font-weight: 500; }
  .monthly-card__list { border-top: 1px solid var(--line-soft); margin-top: 18px; padding-top: 16px; display: flex; flex-direction: column; gap: 11px; list-style: none; padding-left: 0; }
  .monthly-card__list li { display: flex; gap: 9px; font-size: 14.5px; color: var(--ink-700); line-height: 1.4; }

  /* --- Blog ------------------------------------------------------------------ */
  .blog-feat {
    display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(24px, 4vw, 44px); align-items: center;
    border: 1px solid var(--line); border-radius: 20px; overflow: hidden; background: #fff; color: inherit;
    transition: box-shadow .2s;
  }
  .blog-feat:hover { box-shadow: var(--shadow-lift); color: inherit; }
  .blog-feat__art {
    aspect-ratio: 16 / 11; min-height: 220px; background: var(--grad-card); position: relative; overflow: hidden;
    display: grid; place-items: center; padding: 28px; color: #fff; isolation: isolate;
  }
  .blog-feat__art::before { content: ""; position: absolute; top: -80px; right: -60px; width: 300px; height: 300px; z-index: -1; border-radius: 50%; background: radial-gradient(circle, rgb(52 124 226 / .5), transparent 66%); }
  .blog-feat__art span { font-family: var(--serif); font-size: clamp(26px, 3.4vw, 40px); line-height: 1.1; text-align: center; }
  .blog-feat__body { padding: clamp(24px, 3vw, 40px) clamp(24px, 3vw, 44px) clamp(24px, 3vw, 40px) 0; }
  .meta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-bottom: 16px; }
  .tag { font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--blue-ink); background: var(--blue-wash); padding: 6px 11px; border-radius: 7px; }
  .meta-date { font-size: 13.5px; color: var(--ink-500); }
  .blog-feat__title { margin: 0 0 12px; font-family: var(--serif); font-weight: 400; font-size: clamp(24px, 3vw, 34px); line-height: 1.14; }
  .blog-feat__excerpt { margin: 0 0 18px; font-size: 16px; line-height: 1.6; color: var(--ink-600); }
  .read-more { font-weight: 600; font-size: 15px; color: var(--blue-ink); }
  @media (max-width: 759px) { .blog-feat { grid-template-columns: 1fr; } .blog-feat__body { padding: 0 24px 28px; } }

  /* --- Artigo / páginas de texto ------------------------------------------- */
  .article { max-width: 760px; margin-inline: auto; padding: clamp(112px, 13vw, 150px) var(--gutter) 0; }
  .article__title { margin: 0 0 22px; font-family: var(--serif); font-weight: 400; font-size: clamp(32px, 5vw, 52px); line-height: 1.08; letter-spacing: -.01em; }
  .article__author { display: flex; align-items: center; gap: 12px; padding-bottom: 30px; border-bottom: 1px solid var(--line-soft); margin-bottom: 36px; }
  .article__author img { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; }
  .article__author-name { font-weight: 600; font-size: 15px; }
  .article__author-role { font-size: 13px; color: var(--ink-500); }

  .prose p { margin: 0 0 22px; font-size: 18px; line-height: 1.75; color: var(--ink-800); }
  .prose h2 { margin: 44px 0 16px; font-family: var(--serif); font-weight: 400; font-size: clamp(26px, 3.4vw, 36px); line-height: 1.14; }
  .prose h3 { margin: 32px 0 12px; font-size: 21px; font-weight: 600; }
  .prose ul { margin: 0 0 22px; padding-left: 0; list-style: none; }
  .prose li { position: relative; padding-left: 28px; margin-bottom: 12px; font-size: 17.5px; line-height: 1.65; color: var(--ink-800); }
  .prose li::before { content: ""; position: absolute; left: 2px; top: 11px; width: 8px; height: 8px; border-radius: 50%; background: var(--blue); }
  .prose strong { color: var(--ink-900); font-weight: 600; }
  .prose blockquote { margin: 32px 0; padding: 6px 0 6px 26px; border-left: 3px solid var(--blue); }
  .prose blockquote p { margin: 0; font-family: var(--serif); font-size: 24px; line-height: 1.4; color: var(--ink-900); }
  .prose--legal p, .prose--legal li { font-size: 16.5px; }
  .prose--legal h2 { font-size: clamp(22px, 2.6vw, 28px); margin-top: 36px; }

  .article__cta { margin: 48px 0 0; padding: 34px clamp(24px, 4vw, 40px); border-radius: 18px; background: linear-gradient(150deg, #1B252A, #2C4E82); color: #fff; position: relative; overflow: hidden; isolation: isolate; }
  .article__cta::before { content: ""; position: absolute; top: -90px; right: -60px; width: 280px; height: 280px; z-index: -1; border-radius: 50%; background: radial-gradient(circle, rgb(52 124 226 / .34), transparent 66%); }
  .article__cta h2 { margin: 0 0 10px; font-family: var(--serif); font-weight: 400; font-size: clamp(22px, 3vw, 30px); }
  .article__cta p { margin: 0 0 22px; font-size: 16px; line-height: 1.6; color: #C6D0D6; max-width: 520px; }

  /* --- 404 ------------------------------------------------------------------- */
  .notfound { min-height: 100dvh; display: grid; place-items: center; text-align: center; padding: 120px var(--gutter) 80px; background: var(--grad-hero); color: #fff; }
  .notfound__code { font-family: var(--serif); font-size: clamp(90px, 18vw, 180px); line-height: 1; color: var(--blue-pale); }
  .notfound h1 { margin-top: 8px; font-family: var(--serif); font-weight: 400; font-size: clamp(28px, 4vw, 44px); }
  .notfound p { margin: 16px auto 0; max-width: 460px; color: #C6D0D6; font-size: 17px; line-height: 1.6; }

  /* ==========================================================================
     ORÇAMENTO (calculadora)
     ========================================================================== */
  @keyframes stepIn { from { opacity: 0; translate: 0 10px; } to { opacity: 1; translate: 0 0; } }
  .orc-body { background: var(--bg-3); }
  .orc-body input:focus-visible, .orc-body textarea:focus-visible { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgb(52 124 226 / .18); }
  .orc { min-height: 100dvh; display: flex; flex-direction: column; }
  .orc-header { position: sticky; top: 0; z-index: 50; background: rgb(255 255 255 / .92); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line-2); }
  .orc-header__inner { max-width: 1180px; margin-inline: auto; padding-inline: var(--gutter); height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
  .orc-exit { font-size: 14.5px; font-weight: 600; color: var(--ink-600); }
  .orc-exit:hover { color: var(--blue-ink); }
  .orc-progress { background: #fff; border-bottom: 1px solid var(--line-2); }
  .orc-progress__inner { max-width: 1180px; margin-inline: auto; padding: 16px var(--gutter); display: flex; align-items: center; gap: 16px; }
  .orc-progress__track { flex: 1; height: 7px; background: var(--line-2); border-radius: 999px; overflow: hidden; }
  .orc-progress__bar { height: 100%; width: 6%; background: linear-gradient(90deg, #347CE2, #5B96EA); border-radius: 999px; transition: width .35s ease; }
  .orc-progress__label { font-size: 13.5px; font-weight: 600; color: var(--ink-600); white-space: nowrap; }
  .orc-main { flex: 1; max-width: 1180px; width: 100%; margin-inline: auto; padding: clamp(24px, 4vw, 44px) var(--gutter) 140px; display: grid; grid-template-columns: 1fr 320px; gap: clamp(24px, 4vw, 48px); align-items: start; }
  .orc-step { min-width: 0; }
  .orc-step__inner { animation: stepIn .32s ease; }
  .orc-kicker { margin: 0 0 6px; font-size: 13px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--blue-ink); }
  .orc-title { margin: 0 0 6px; font-family: var(--serif); font-weight: 400; font-size: clamp(26px, 4vw, 42px); line-height: 1.1; letter-spacing: -.01em; }
  .orc-hint { margin: 0 0 28px; font-size: 16px; line-height: 1.55; color: var(--ink-600); max-width: 560px; }
  .opts { display: flex; flex-direction: column; gap: 12px; max-width: 600px; }
  .opt { display: flex; align-items: center; gap: 16px; width: 100%; text-align: left; padding: 18px 20px; border-radius: 14px; transition: border-color .16s, box-shadow .16s; background: #fff; border: 1.5px solid var(--line-2); }
  .opt:hover { border-color: var(--blue-pale); }
  .opt[aria-pressed="true"] { border-color: var(--blue); box-shadow: 0 10px 24px -14px rgb(52 124 226 / .6); }
  .opt__icon { flex: none; width: 46px; height: 46px; border-radius: 11px; display: grid; place-items: center; font-size: 22px; background: var(--bg-2); }
  .opt[aria-pressed="true"] .opt__icon { background: var(--blue-wash); }
  .opt__body { flex: 1; min-width: 0; }
  .opt__label { display: block; font-size: 16.5px; font-weight: 600; color: var(--ink-900); margin-bottom: 3px; }
  .opt__desc { display: block; font-size: 13.5px; line-height: 1.4; color: var(--ink-500); }
  .opt__check { flex: none; width: 24px; height: 24px; border-radius: 50%; display: none; place-items: center; background: var(--blue); color: #fff; font-size: 13px; font-weight: 700; }
  .opt[aria-pressed="true"] .opt__check { display: grid; }
  .chips { display: flex; flex-wrap: wrap; gap: 10px; max-width: 640px; }
  .chipm { display: inline-flex; align-items: center; gap: 9px; padding: 12px 16px; border-radius: 12px; font-size: 14.5px; font-weight: 600; transition: background .16s, border-color .16s; background: #fff; border: 1.5px solid var(--line-2); color: var(--ink-700); }
  .chipm[aria-pressed="true"] { background: var(--blue-wash); border-color: var(--blue); color: #1F4E8F; }
  .chipm__dot { width: 9px; height: 9px; border-radius: 50%; background: #CBD5DD; }
  .chipm[aria-pressed="true"] .chipm__dot { background: var(--blue); }
  .chipm__price { font-size: 12.5px; font-weight: 600; margin-left: 2px; color: var(--ink-500); }
  .chipm[aria-pressed="true"] .chipm__price { color: var(--blue-ink); }
  .chipm__price--free { color: var(--wa-ink); }
  .orc-form { max-width: 560px; }
  .form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
  @media (max-width: 520px) { .form-grid { grid-template-columns: 1fr; } }
  .field { display: block; }
  .field--full { grid-column: 1 / -1; }
  .field__label { display: block; font-size: 13.5px; font-weight: 600; color: var(--ink-700); margin-bottom: 7px; }
  .field__input { width: 100%; padding: 13px 15px; border: 1.5px solid var(--line-2); border-radius: 11px; font-size: 15px; color: var(--ink-900); background: #fff; transition: border-color .15s; }
  textarea.field__input { resize: vertical; field-sizing: content; min-height: 96px; }
  .orc-summary { max-width: 600px; }
  .summary-card { background: #fff; border: 1px solid var(--line-2); border-radius: var(--radius); overflow: hidden; }
  .summary-head { padding: 24px clamp(20px, 3vw, 30px); background: linear-gradient(150deg, #1B252A, #2C4E82); color: #fff; }
  .summary-head__label { font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--blue-pale); }
  .summary-head__est { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 10px; margin-top: 8px; }
  .summary-head__price { font-family: var(--serif); font-size: clamp(30px, 5vw, 44px); line-height: 1.1; }
  .summary-head__unit { font-size: 14px; color: #B8C6CF; }
  .summary-head__month { margin-top: 10px; font-size: 13.5px; color: #B8C6CF; }
  .summary-head__month strong { color: #fff; }
  .summary-rows { padding: 24px clamp(20px, 3vw, 30px); }
  .summary-row { display: flex; justify-content: space-between; gap: 16px; padding: 11px 0; border-bottom: 1px solid #F0F2F5; }
  .summary-row__k { font-size: 14.5px; color: var(--ink-600); }
  .summary-row__v { font-size: 14.5px; font-weight: 600; color: var(--ink-900); text-align: right; }
  .lgpd { display: flex; gap: 12px; align-items: flex-start; margin-top: 22px; cursor: pointer; }
  .lgpd input { width: 20px; height: 20px; margin-top: 1px; accent-color: var(--blue); flex: none; }
  .lgpd span { font-size: 13.5px; line-height: 1.55; color: var(--ink-600); }
  .lgpd strong { color: var(--ink-800); }
  .submit-wa { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; margin-top: 22px; padding: 16px; border-radius: 13px; border: none; font-size: 16.5px; font-weight: 700; color: #0B2E18; background: var(--wa); box-shadow: 0 14px 30px -12px rgb(37 211 102 / .6); transition: filter .18s; }
  .submit-wa:hover { filter: brightness(1.04); }
  .submit-wa[aria-disabled="true"] { cursor: not-allowed; background: #C3CCD2; color: #4A5A62; box-shadow: none; }
  .lgpd-warn { margin: 12px 0 0; text-align: center; font-size: 13.5px; color: #B23B3B; }

  /* Orçamento: escolha do que contratar + botão de pagamento (Asaas) */
  .buy { margin-top: 26px; border: 1px solid var(--line-2); border-radius: var(--radius); padding: 22px clamp(18px, 3vw, 26px); background: #fff; }
  .buy__title { margin: 0; font-size: 17px; font-weight: 700; color: var(--ink-900); }
  .buy__hint { margin: 6px 0 16px; font-size: 13.5px; line-height: 1.5; color: var(--ink-500); }
  .buy__opts { display: grid; gap: 10px; border: 0; margin: 0; padding: 0; }
  .buy__opt { position: relative; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px; padding: 14px 16px; border: 1.5px solid var(--line-2); border-radius: 12px; cursor: pointer; transition: border-color .15s, background .15s; }
  .buy__opt:has(input:checked) { border-color: var(--blue); background: var(--blue-wash); }
  .buy__opt:has(input:focus-visible) { outline: 2px solid var(--blue); outline-offset: 2px; }
  .buy__opt input { width: 18px; height: 18px; margin: 0; accent-color: var(--blue); }
  .buy__name { display: block; font-size: 15px; font-weight: 600; color: var(--ink-900); }
  .buy__desc { display: block; margin-top: 2px; font-size: 12.5px; line-height: 1.4; color: var(--ink-500); }
  .buy__price { font-size: 15px; font-weight: 700; color: var(--ink-900); white-space: nowrap; text-align: right; }
  .buy__price small { display: block; font-size: 11.5px; font-weight: 500; color: var(--ink-500); }
  .buy__rec { display: inline-block; margin-left: 6px; padding: 2px 7px; border-radius: 6px; background: var(--blue); color: #fff; font-size: 10.5px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; vertical-align: 2px; }
  .buy__note { margin: 14px 0 0; font-size: 12.5px; line-height: 1.5; color: var(--ink-500); }
  .submit-pay { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; margin-top: 18px; padding: 16px; border-radius: 13px; border: none; font-size: 16.5px; font-weight: 700; color: #fff; background: var(--blue); box-shadow: 0 14px 30px -12px rgb(52 124 226 / .7); transition: background .18s; }
  .submit-pay:hover { background: var(--blue-hover); }
  .submit-pay[aria-disabled="true"], .submit-pay[aria-busy="true"] { cursor: not-allowed; background: #C3CCD2; color: #4A5A62; box-shadow: none; }
  .submit-ou { margin: 18px 0 0; text-align: center; font-size: 13px; color: var(--ink-500); }
  .submit-ou + .submit-wa { margin-top: 10px; }
  .pay-aviso { margin: 12px 0 0; padding: 12px 14px; border-radius: 10px; background: #FFF6E5; color: #6B4A00; font-size: 13.5px; line-height: 1.5; }
  .pay-aviso a { color: inherit; font-weight: 700; text-decoration: underline; }

  /* Serviços (catálogo com checkout) */
  .svc-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 290px), 1fr)); gap: 24px; align-items: stretch; }
  .svc-grid--um { max-width: 420px; }
  .svc { position: relative; display: flex; flex-direction: column; background: #fff; border: 1px solid #E1E6EB; border-radius: 18px; padding: 30px 26px 26px; }
  .svc--destaque { border-color: var(--blue); box-shadow: 0 30px 60px -34px rgb(44 78 130 / .55); }
  .svc__nome { margin: 0; font-size: 17px; font-weight: 700; color: var(--ink-900); }
  .svc__preco { margin: 12px 0 4px; font-family: var(--serif); font-size: clamp(34px, 4vw, 40px); line-height: 1.1; color: var(--ink-900); }
  .svc__preco small { font-family: var(--sans); font-size: 15px; color: var(--ink-500); }
  .svc__unidade { font-size: 13px; color: var(--ink-500); }
  .svc__lista { margin: 20px 0 0; padding: 0; display: grid; gap: 9px; font-size: 14.5px; line-height: 1.45; color: var(--ink-700); }
  .svc__lista li { display: flex; gap: 9px; }
  .svc__nao { margin: 16px 0 0; font-size: 13px; line-height: 1.5; color: var(--ink-500); }
  .svc__cta { margin-top: auto; padding: 14px; border-radius: 11px; border: 0; background: var(--ink-900); color: #fff; font-size: 15.5px; font-weight: 600; transition: background .18s; }
  .svc__lista + .svc__cta, .svc__nao + .svc__cta { margin-top: 24px; }
  .svc { gap: 0; }
  .svc__lista { flex: 1 0 auto; align-content: start; }
  .svc__cta:hover { background: #36464e; }
  .svc--destaque .svc__cta { background: var(--blue); }
  .svc--destaque .svc__cta:hover { background: var(--blue-hover); }
  .svc__cta[aria-busy="true"] { cursor: progress; opacity: .7; }
  .svc__aviso { margin: 12px 0 0; padding: 11px 13px; border-radius: 10px; background: #FFF6E5; color: #6B4A00; font-size: 13px; line-height: 1.5; }
  .svc__aviso a { color: inherit; font-weight: 700; text-decoration: underline; }

  /* Retorno do pagamento */
  .pay { min-height: 70dvh; display: grid; align-items: center; }
  .pay__icone { width: 64px; height: 64px; margin: 0 auto 22px; border-radius: 50%; display: grid; place-items: center; background: var(--blue); color: #fff; font-size: 30px; font-weight: 700; }
  .orc-aside { position: sticky; top: 96px; }
  .aside-card { background: #fff; border: 1px solid var(--line-2); border-radius: 18px; overflow: hidden; box-shadow: 0 20px 40px -28px rgb(38 51 57 / .4); }
  .aside-head { padding: 24px 24px 20px; background: linear-gradient(150deg, #1B252A, #2C4E82); color: #fff; }
  .aside-head__label { font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--blue-pale); }
  .aside-head__est { margin-top: 8px; font-family: var(--serif); font-size: 30px; line-height: 1.1; }
  .aside-head__unit { font-size: 12.5px; color: #B8C6CF; }
  .aside-head__month { margin-top: 12px; padding-top: 12px; border-top: 1px solid rgb(255 255 255 / .14); font-size: 12.5px; color: #B8C6CF; }
  .aside-head__month strong { color: #fff; font-size: 14px; }
  .aside-body { padding: 18px 22px 22px; }
  .aside-row { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid #F3F5F7; }
  .aside-row__k { font-size: 13px; color: var(--ink-500); }
  .aside-row__v { font-size: 13px; font-weight: 600; color: var(--ink-800); text-align: right; }
  .aside-incl { margin-top: 16px; display: flex; flex-direction: column; gap: 8px; list-style: none; padding: 0; }
  .aside-incl li { font-size: 12.5px; color: var(--ink-700); }
  .orc-nav { display: flex; gap: 12px; margin-top: 30px; max-width: 600px; }
  .orc-back { padding: 13px 22px; border-radius: 11px; border: 1.5px solid #D9DEE4; background: #fff; font-size: 15px; font-weight: 600; color: var(--ink-600); }
  .orc-next { padding: 13px 26px; border-radius: 11px; border: none; font-size: 15px; font-weight: 600; color: #fff; background: var(--blue); box-shadow: 0 12px 26px -12px rgb(52 124 226 / .7); }
  .orc-next:disabled, .m-next:disabled { opacity: .5; cursor: not-allowed; }
  .orc-mobilebar { position: fixed; inset: auto 0 0 0; z-index: 60; background: linear-gradient(150deg, #1B252A, #2C4E82); padding: 12px var(--gutter) calc(12px + env(safe-area-inset-bottom)); box-shadow: 0 -10px 30px -14px rgb(0 0 0 / .4); }
  .orc-mobilebar__inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; max-width: 1180px; margin-inline: auto; }
  .orc-mobilebar__label { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--blue-pale); }
  .orc-mobilebar__est { font-family: var(--serif); font-size: 21px; color: #fff; line-height: 1.15; }
  .m-next { padding: 12px 20px; border-radius: 11px; border: none; font-size: 15px; font-weight: 600; color: #fff; background: var(--blue); white-space: nowrap; }
  .success { max-width: 440px; width: calc(100% - 32px); border: 0; padding: clamp(32px, 5vw, 48px); border-radius: 20px; text-align: center; box-shadow: 0 40px 80px -30px rgb(0 0 0 / .5); }
  .success::backdrop { background: rgb(15 23 28 / .72); backdrop-filter: blur(4px); }
  .success__icon { width: 72px; height: 72px; border-radius: 50%; background: #E7F7EC; display: grid; place-items: center; margin: 0 auto 22px; color: #1F8A3E; font-size: 34px; }
  .success h2 { margin: 0 0 12px; font-family: var(--serif); font-weight: 400; font-size: 30px; }
  .success p { margin: 0 0 26px; font-size: 16px; line-height: 1.6; color: var(--ink-600); }
  .success__wa { display: inline-flex; align-items: center; justify-content: center; gap: 9px; width: 100%; background: var(--wa); color: #0B2E18; font-weight: 700; font-size: 16px; padding: 15px 26px; border-radius: 12px; box-shadow: 0 14px 30px -10px rgb(37 211 102 / .6); }
  .success__wa:hover { color: #0B2E18; }
  .success__back { margin-top: 14px; background: none; border: none; font-size: 14px; color: var(--ink-500); }
  @media (max-width: 959px) { .orc-main { grid-template-columns: 1fr; } .orc-aside { display: none; } }
  @media (min-width: 960px) { .orc-mobilebar { display: none; } }
}

/* ==========================================================================
   UTILIDADES
   ========================================================================== */
@layer utilities {
  .mt-0 { margin-top: 0; }
  .text-center { text-align: center; }
}
