/* =============================================================
   O24 - Public site (dark, premium, conversion-focused)
   Mobile-first. Palette mirrors the app shell (#11131c / #171b26 /
   #1e2433 + lime #8ffa04) so marketing and product feel like one.
   ============================================================= */

:root {
  --p-bg: #11131c;
  --p-surface: #171b26;
  --p-surface-2: #1e2433;
  --p-ink: #f5f7fb;
  --p-ink-2: #9aa5ba;
  --p-ink-3: #64708a;
  --p-line: rgba(255, 255, 255, 0.07);
  --p-line-strong: rgba(255, 255, 255, 0.14);
  --p-lime: #8ffa04;
  --p-lime-ink: #1c2b00;
  --p-blue: #4e95d9;
  --p-red: #ff5d5d;
  --p-radius: 14px;
  --p-radius-sm: 10px;
  --p-shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 14px 34px -18px rgba(0, 0, 0, 0.55);
  --p-shadow-lg: 0 2px 4px rgba(0, 0, 0, 0.35), 0 34px 70px -30px rgba(0, 0, 0, 0.75);
  --p-font: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--p-font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--p-ink);
  background: var(--p-bg);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--p-blue); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 { line-height: 1.18; letter-spacing: -0.015em; margin: 0 0 .5em; }
h1 { font-size: clamp(2rem, 5.4vw, 3.4rem); font-weight: 800; }
h2 { font-size: clamp(1.5rem, 3.4vw, 2.1rem); font-weight: 800; }
h3 { font-size: 1.05rem; font-weight: 700; }

.pub-container { max-width: 1140px; margin: 0 auto; padding: 0 20px; }

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--p-lime); color: var(--p-lime-ink); padding: 10px 16px; border-radius: 0 0 10px 0;
  z-index: 100;
}
.skip-link:focus { left: 0; }

/* ---- Buttons ----------------------------------------------------
   Public pages use the backoffice kit (.btn / .btn-primary from app.css).
   This only adds the larger hero size. */

.pub-btn-lg { padding: 13px 26px; font-size: 15.5px; border-radius: 12px; }
.pub-nav-cta .btn { font-size: 14px; padding: 9px 16px; }
.pub-hero-actions .pub-btn-lg, .pub-cta-actions .pub-btn-lg { min-width: 210px; }

/* ---- Header ----------------------------------------------------- */

.pub-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(17, 19, 28, 0.82);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--p-line);
}
.pub-header-in { display: flex; align-items: center; gap: 20px; height: 66px; }

.pub-brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none !important; color: var(--p-ink); }
.pub-brand-mark {
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border-radius: 11px;
  background: var(--p-lime); color: var(--p-lime-ink);
  font-weight: 900; font-size: 14px; letter-spacing: -0.02em;
}
.pub-brand-name { font-weight: 800; font-size: 19px; letter-spacing: -0.02em; }
.pub-brand-name span { color: var(--p-blue); }

.pub-nav { display: flex; align-items: center; gap: 22px; margin-left: auto; }
.pub-nav ul { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.pub-nav ul a {
  display: block; padding: 8px 12px; border-radius: 9px;
  color: var(--p-ink-2); font-size: 15px; font-weight: 600; text-decoration: none;
}
.pub-nav ul a:hover { color: var(--p-ink); background: rgba(255, 255, 255, 0.05); }
.pub-nav ul a.is-active { color: var(--p-ink); }
.pub-nav ul a.is-active::after { content: ""; display: block; height: 2px; border-radius: 2px; background: var(--p-lime); margin-top: 2px; }

.pub-nav-cta { display: flex; align-items: center; gap: 8px; }
.pub-nav-cta-note { display: none; }

.pub-burger {
  display: none; margin-left: auto;
  width: 42px; height: 42px; border: 1px solid var(--p-line-strong); border-radius: 11px;
  background: var(--p-surface); cursor: pointer;
  flex-direction: column; align-items: center; justify-content: center; gap: 4px;
}
.pub-burger span { display: block; width: 18px; height: 2px; border-radius: 2px; background: var(--p-ink); transition: transform .18s ease, opacity .18s ease; }
.pub-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.pub-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.pub-burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 900px) {
  .pub-burger { display: flex; }
  /* Scroll lock while the drawer is open: the background must not scroll
     behind it (prevents URL-bar churn on mobile browsers). */
  html.is-nav-open, body.is-nav-open { overflow: hidden; }
  /* The header is sticky + backdrop-blurred. backdrop-filter makes the header
     the containing block for position:fixed descendants, which broke the drawer
     (it resolved against the 66px bar instead of the viewport). The drawer is
     now absolute at top:100% of the sticky header (rides along with it) and the
     header clips the closed panel so it never creates horizontal scroll. */
  .pub-header { overflow-x: hidden; overflow-x: clip; }
  .pub-nav {
    position: absolute; top: 100%; left: 0; right: 0;
    height: calc(100vh - 66px);
    height: calc(100dvh - 66px);
    margin: 0; padding: 20px; flex-direction: column; align-items: stretch; gap: 8px;
    background: var(--p-surface); border-top: 1px solid var(--p-line);
    /* Fade + slide entrance: smooth ease-out quint, fade slightly faster.
       visibility flips immediately on open and lags behind on close so the
       panel is inert (and unfocusable) when hidden. */
    transform: translateX(105%);
    opacity: 0;
    visibility: hidden;
    transition: transform .34s cubic-bezier(0.22, 1, 0.36, 1), opacity .24s ease, visibility 0s linear .34s;
    overflow-y: auto; -webkit-overflow-scrolling: touch;
    /* Thin scrollbar in the drawer, matching the cookie modal treatment. */
    scrollbar-width: thin;
    scrollbar-color: rgba(143, 250, 4, 0.45) transparent;
  }
  .pub-nav::-webkit-scrollbar { width: 6px; }
  .pub-nav::-webkit-scrollbar-track { background: transparent; }
  .pub-nav::-webkit-scrollbar-thumb {
    background: rgba(143, 250, 4, 0.45);
    border-radius: 99px;
    border: none;
  }
  .pub-nav::-webkit-scrollbar-thumb:hover { background: rgba(143, 250, 4, 0.8); }
  .pub-nav.is-open {
    transform: translateX(0);
    opacity: 1;
    visibility: visible;
    transition: transform .34s cubic-bezier(0.22, 1, 0.36, 1), opacity .24s ease, visibility 0s;
    box-shadow: var(--p-shadow-lg);
  }
  .pub-nav ul { flex-direction: column; align-items: stretch; gap: 2px; }
  .pub-nav ul a { padding: 13px 14px; font-size: 17px; border-radius: 11px; }
  .pub-nav ul a.is-active { background: rgba(255, 255, 255, 0.05); }
  .pub-nav ul a.is-active::after { display: none; }
  /* CTAs pinned to the bottom of the drawer as a proper bottom bar: a
     microcopy line + Entrar/Criar conta side by side (larger tap targets). */
  .pub-nav-cta {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr);
    gap: 10px;
    margin-top: auto; padding: 14px;
    position: sticky; bottom: 0;
    background: var(--p-surface);
    border-top: 1px solid var(--p-line);
  }
  .pub-nav-cta-note {
    display: block;
    grid-column: 1 / -1;
    font-size: 12px; font-weight: 600;
    color: var(--p-ink-3);
    text-align: center;
  }
  .pub-nav-cta .btn {
    min-height: 46px; width: 100%; margin: 0;
    justify-content: center; font-weight: 700;
  }
  .pub-nav-cta .btn:not(.btn-primary) {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--p-line-strong);
    color: var(--p-ink);
  }
  .pub-nav-cta .btn:not(.btn-primary):hover {
    background: rgba(255, 255, 255, 0.11);
    border-color: var(--p-line-strong);
  }
}

/* ---- Hero ------------------------------------------------------- */

.pub-hero {
  padding: clamp(56px, 9vw, 108px) 0 clamp(40px, 6vw, 72px);
  text-align: center;
  background:
    radial-gradient(620px 360px at 15% 0%, rgba(143, 250, 4, 0.16), transparent 70%),
    radial-gradient(660px 400px at 85% 10%, rgba(78, 149, 217, 0.2), transparent 70%),
    var(--p-bg);
}
.pub-hero .pub-container { max-width: 860px; }
.pub-hero h1 { margin-bottom: 18px; }
.pub-hero .pub-lead { font-size: clamp(1.05rem, 2.2vw, 1.25rem); color: var(--p-ink-2); max-width: 640px; margin: 0 auto 28px; }
.pub-hero-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.pub-hero-note {
  margin: 22px auto 0; display: inline-flex; align-items: center; gap: 8px;
  background: var(--p-surface); border: 1px solid var(--p-line); border-radius: 999px;
  padding: 9px 18px; font-size: 14px; font-weight: 600; color: var(--p-ink);
  box-shadow: var(--p-shadow);
}
.pub-hero-note::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--p-lime); }

.pub-hero-inner { padding: clamp(40px, 6vw, 64px) 0 clamp(28px, 4vw, 44px); text-align: left; }
.pub-hero-inner .pub-container { max-width: 1140px; }
.pub-hero-inner h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); }
.pub-hero-inner .pub-lead { max-width: 640px; margin: 0; }

/* ---- Sections --------------------------------------------------- */

.pub-section { padding: clamp(48px, 7vw, 84px) 0; }
.pub-section-alt {
  background: var(--p-surface);
  border-top: 1px solid var(--p-line);
  border-bottom: 1px solid var(--p-line);
}

.pub-sec-head { text-align: center; max-width: 640px; margin: 0 auto 42px; }
.pub-sec-head h2 { margin-bottom: 10px; }
.pub-sec-head p { color: var(--p-ink-2); margin: 0; font-size: 17px; }
.pub-eyebrow {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--p-blue); margin-bottom: 12px;
}

/* Two entries (profissionais / clientes) */

.pub-duo { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.pub-duo-card {
  position: relative; overflow: hidden;
  background: var(--p-surface); border: 1px solid var(--p-line); border-radius: var(--p-radius);
  padding: 34px 30px; box-shadow: var(--p-shadow);
  text-decoration: none !important; color: var(--p-ink); display: block;
  transition: transform .16s ease, box-shadow .18s ease, border-color .18s ease;
}
.pub-duo-card:hover { transform: translateY(-3px); box-shadow: var(--p-shadow-lg); border-color: var(--p-blue); }
.pub-duo-card .pub-duo-ico {
  width: 46px; height: 46px; border-radius: 13px; display: flex; align-items: center; justify-content: center;
  background: rgba(143, 250, 4, 0.14); margin-bottom: 18px; color: var(--p-lime);
}
.pub-duo-card .pub-duo-ico.alt { background: rgba(78, 149, 217, 0.16); color: var(--p-blue); }
.pub-duo-card h3 { font-size: 1.3rem; margin-bottom: 8px; }
.pub-duo-card p { color: var(--p-ink-2); margin: 0 0 18px; }
.pub-duo-card .btn { margin-top: 4px; }

/* How it works */

.pub-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.pub-step {
  background: var(--p-surface); border: 1px solid var(--p-line); border-radius: var(--p-radius);
  padding: 24px 20px; position: relative;
}
.pub-step-n {
  display: inline-flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; border-radius: 10px;
  background: rgba(143, 250, 4, 0.14); color: var(--p-lime); font-weight: 800; font-size: 15px;
  margin-bottom: 14px;
}
.pub-step h3 { font-size: 1rem; margin-bottom: 6px; }
.pub-step p { margin: 0; font-size: 14.5px; color: var(--p-ink-2); }

/* Calculator - compact backoffice card (not a giant panel) */

.pub-calc {
  max-width: 640px; margin: 0 auto;
  background: var(--p-surface);
  border: 1px solid var(--p-line);
  border-radius: 14px;
  padding: 24px;
  box-shadow: var(--p-shadow);
}
.pub-calc-head { margin-bottom: 18px; }
.pub-calc-head h2 { font-size: 1.25rem; margin-bottom: 4px; }
.pub-calc-head .pub-lead { font-size: 14px; color: var(--p-ink-2); margin: 0; }
.pub-calc-grid {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 18px; align-items: start;
}
.pub-calc label { display: block; font-size: 13px; font-weight: 600; color: var(--p-ink-2); margin-bottom: 6px; }
.pub-calc-input {
  width: 100%; font-family: inherit; font-size: 17px; font-weight: 700; color: var(--p-ink);
  background: var(--p-bg); border: 1px solid var(--p-line-strong); border-radius: 10px;
  padding: 10px 12px;
}
.pub-calc-input:focus { outline: none; border-color: var(--p-lime); box-shadow: 0 0 0 3px rgba(143, 250, 4, 0.18); }
.pub-calc-out { display: grid; gap: 7px; }
.pub-calc-row {
  display: flex; justify-content: space-between; gap: 10px; align-items: baseline;
  background: var(--p-surface-2); border: 1px solid var(--p-line); border-radius: 9px;
  padding: 8px 12px; font-size: 13px; color: var(--p-ink-2);
}
.pub-calc-row b { color: var(--p-ink); font-weight: 700; white-space: nowrap; }
.pub-calc-row.hl { background: rgba(143, 250, 4, 0.1); border-color: rgba(143, 250, 4, 0.35); }
.pub-calc-row.hl b { color: var(--p-lime); font-size: 14px; }
.pub-calc-row.pub-calc-note-row { font-size: 12px; color: var(--p-ink-3); }
.pub-calc-row.pub-calc-note-row b { color: var(--p-ink-2); font-weight: 600; white-space: normal; }
.pub-calc-foot {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  margin-top: 16px; flex-wrap: wrap;
}
.pub-calc-note { margin: 0; font-size: 12px; color: var(--p-ink-3); max-width: 300px; }
@media (max-width: 640px) {
  .pub-calc-grid { grid-template-columns: 1fr; }
}

/* Features grid */

.pub-feats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.pub-feat {
  background: var(--p-surface); border: 1px solid var(--p-line); border-radius: var(--p-radius);
  padding: 26px 22px; box-shadow: var(--p-shadow);
}
.pub-feat-ico {
  width: 42px; height: 42px; border-radius: 12px; margin-bottom: 16px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(78, 149, 217, 0.16); color: var(--p-blue);
}
.pub-feat h3 { margin-bottom: 6px; }
.pub-feat p { margin: 0; font-size: 14.5px; color: var(--p-ink-2); }

/* Search bar */

.pub-search {
  background: var(--p-surface); border: 1px solid var(--p-line-strong); border-radius: 18px;
  box-shadow: var(--p-shadow-lg); padding: 10px;
  display: flex; align-items: center; gap: 8px;
  max-width: 780px; margin: 0 auto;
}
.pub-search-field { flex: 1 1 0; min-width: 0; display: flex; align-items: center; gap: 10px; padding: 8px 14px; }
.pub-search-field label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.pub-search-field .pub-search-ico { color: var(--p-ink-3); flex: 0 0 auto; }
.pub-search-field input {
  width: 100%; border: none; background: none; font-family: inherit; font-size: 16px; color: var(--p-ink);
}
.pub-search-field input:focus { outline: none; }
.pub-search-field input::placeholder { color: var(--p-ink-3); }
.pub-search-div { width: 1px; align-self: stretch; background: var(--p-line-strong); margin: 6px 2px; }
.pub-search .btn { flex: 0 0 auto; }
.pub-search-hint { text-align: center; color: var(--p-ink-3); font-size: 13.5px; margin-top: 14px; }

/* Directory */

.pub-dir-toolbar {
  display: flex; gap: 12px; align-items: end; flex-wrap: wrap;
  background: var(--p-surface); border: 1px solid var(--p-line); border-radius: var(--p-radius);
  padding: 16px; margin-bottom: 22px;
}
.pub-dir-toolbar .field { margin: 0; }

.pub-result-count { font-size: 14px; color: var(--p-ink-2); margin: 0 0 16px; }

.pub-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.pub-pro-card {
  background: var(--p-surface); border: 1px solid var(--p-line); border-radius: var(--p-radius);
  padding: 24px; box-shadow: var(--p-shadow);
  display: flex; flex-direction: column; gap: 12px;
  transition: transform .16s ease, box-shadow .18s ease, border-color .18s ease;
  text-decoration: none !important; color: var(--p-ink);
}
.pub-pro-card:hover { transform: translateY(-3px); box-shadow: var(--p-shadow-lg); border-color: var(--p-blue); }
.pub-pro-head { display: flex; align-items: center; gap: 12px; }
.pub-pro-avatar {
  width: 46px; height: 46px; border-radius: 50%; flex: 0 0 auto;
  background: var(--p-surface-2); border: 1px solid var(--p-line);
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 17px; color: var(--p-blue);
  overflow: hidden;
}
.pub-pro-avatar img { width: 100%; height: 100%; object-fit: cover; }
.pub-pro-name { font-weight: 800; font-size: 16px; }
.pub-pro-cat { font-size: 13.5px; color: var(--p-blue); font-weight: 600; }
.pub-pro-loc { display: flex; align-items: center; gap: 6px; font-size: 13.5px; color: var(--p-ink-3); }
.pub-pro-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.pub-pro-tag {
  font-size: 12px; font-weight: 600; color: var(--p-ink-2);
  background: var(--p-surface-2); border-radius: 999px; padding: 4px 10px;
}
.pub-pro-cta { margin-top: auto; }

/* Professional profile page */
.pub-profile-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 20px; align-items: start; }
.pub-profile-card {
  background: var(--p-surface); border: 1px solid var(--p-line); border-radius: var(--p-radius);
  padding: 26px; box-shadow: var(--p-shadow);
}
.pub-profile-main { display: grid; gap: 22px; }
.pub-profile-head { display: flex; align-items: center; gap: 16px; }
.pub-profile-avatar {
  width: 72px; height: 72px; border-radius: 50%; flex: 0 0 auto;
  background: var(--p-surface-2); border: 1px solid var(--p-line);
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 28px; color: var(--p-lime);
  overflow: hidden;
}
.pub-profile-avatar img { width: 100%; height: 100%; object-fit: cover; }
.pub-profile-bio h3, .pub-profile-services h3 { font-size: 13px; text-transform: uppercase; letter-spacing: .08em; color: var(--p-ink-3); margin: 0 0 10px; }
.pub-profile-bio p { margin: 0; font-size: 15px; line-height: 1.65; color: var(--p-ink-2); }
.pub-profile-services ul {
  list-style: none; margin: 0; padding: 0; display: grid; gap: 9px;
}
.pub-profile-services li {
  display: flex; align-items: center; gap: 10px; font-size: 14.5px; color: var(--p-ink);
}
.pub-profile-services li::before {
  content: ''; width: 7px; height: 7px; border-radius: 50%; flex: 0 0 auto;
  background: var(--p-lime); box-shadow: 0 0 0 3px rgba(143, 250, 4, 0.14);
}
.pub-profile-side { position: sticky; top: 20px; }
.pub-profile-contact { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.pub-profile-contact li { display: flex; align-items: center; gap: 10px; font-size: 14px; }
.pub-profile-contact a { color: var(--p-ink-2); text-decoration: none; word-break: break-word; }
.pub-profile-contact a:hover { color: var(--p-blue); }
.pub-pro-cico { color: var(--p-blue); display: inline-flex; flex: 0 0 auto; }
.pub-pro-cico svg { width: 17px; height: 17px; }
@media (max-width: 900px) {
  .pub-profile-grid { grid-template-columns: 1fr; }
  .pub-profile-side { position: static; }
}

/* Pagination */

.pub-pager { display: flex; align-items: center; justify-content: center; gap: 6px; margin-top: 28px; flex-wrap: wrap; }
.pub-pager a, .pub-pager span {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 38px; height: 38px; padding: 0 10px;
  border: 1px solid var(--p-line-strong); border-radius: 10px;
  font-size: 14px; font-weight: 600; color: var(--p-ink-2);
  background: var(--p-surface); text-decoration: none !important;
}
.pub-pager a:hover { border-color: var(--p-blue); color: var(--p-blue); }
.pub-pager .is-current { background: var(--p-lime); border-color: var(--p-lime); color: var(--p-lime-ink); }
.pub-pager .pub-pager-gap { border: none; background: none; }

/* Empty state */

.pub-empty {
  text-align: center; background: var(--p-surface); border: 1px dashed var(--p-line-strong);
  border-radius: var(--p-radius); padding: 56px 24px; margin-bottom: 22px;
}
.pub-empty h3 { font-size: 1.15rem; margin-bottom: 8px; }
.pub-empty p { color: var(--p-ink-2); max-width: 460px; margin: 0 auto 20px; }

/* FAQ accordion */

.pub-faq { max-width: 760px; margin: 0 auto; }
.pub-accordion {
  background: var(--p-surface); border: 1px solid var(--p-line); border-radius: var(--p-radius-sm);
  margin-bottom: 10px; overflow: hidden;
}
.pub-accordion-head {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 14px;
  background: none; border: none; cursor: pointer; font-family: inherit;
  font-size: 16px; font-weight: 700; color: var(--p-ink); text-align: left;
  padding: 16px 18px;
}
.pub-accordion-head:focus-visible { outline: 3px solid rgba(78, 149, 217, 0.5); outline-offset: -3px; }
.pub-accordion-head .pub-acc-arrow {
  flex: 0 0 auto; width: 22px; height: 22px; border-radius: 7px;
  display: flex; align-items: center; justify-content: center;
  background: var(--p-surface-2); color: var(--p-ink-2);
  transition: transform .18s ease;
  font-size: 13px;
}
.pub-accordion.open .pub-acc-arrow { transform: rotate(180deg); background: var(--p-lime); color: var(--p-lime-ink); }
.pub-accordion-panel { display: none; padding: 0 18px 18px; color: var(--p-ink-2); font-size: 15px; }
.pub-accordion.open .pub-accordion-panel { display: block; }

/* Content pages (sobre, legal, orcamentos, funcionalidades detail) */

.pub-prose { max-width: 780px; }
.pub-prose h2 { font-size: 1.5rem; margin-top: 2em; }
.pub-prose p { color: var(--p-ink-2); margin: 0 0 1.1em; }
.pub-prose ul, .pub-prose ol { color: var(--p-ink-2); padding-left: 1.3em; }
.pub-prose li { margin-bottom: .45em; }
.pub-prose .pub-note {
  background: rgba(78, 149, 217, 0.12); border-left: 3px solid var(--p-blue);
  border-radius: 0 var(--p-radius-sm) var(--p-radius-sm) 0;
  padding: 14px 18px; margin: 1.4em 0; color: var(--p-ink);
}

/* Pricing */

.pub-price-hero-note { text-align: center; margin-top: 16px; }
.pub-price-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; max-width: 900px; margin: 0 auto; }
.pub-price-card {
  background: var(--p-surface); border: 1px solid var(--p-line); border-radius: var(--p-radius);
  padding: 28px 24px; box-shadow: var(--p-shadow); display: flex; flex-direction: column; gap: 14px;
}
.pub-price-card.is-featured {
  border-color: rgba(143, 250, 4, 0.55); box-shadow: 0 0 0 3px rgba(143, 250, 4, 0.18), var(--p-shadow-lg);
}
.pub-price-name { font-size: 17px; font-weight: 800; }
.pub-price-amount { font-size: 30px; font-weight: 900; letter-spacing: -0.02em; }
.pub-price-amount small { font-size: 14px; font-weight: 600; color: var(--p-ink-3); }
.pub-price-feats { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.pub-price-feats li { display: flex; gap: 9px; align-items: baseline; font-size: 14.5px; color: var(--p-ink-2); }
.pub-price-feats li::before { content: "✓"; color: var(--p-lime); font-weight: 800; }
.pub-price-card .btn { margin-top: auto; }
.pub-table td { border-color: var(--p-line) !important; color: var(--p-ink-2); }

/* CTA band */

.pub-cta {
  text-align: center; padding: clamp(56px, 8vw, 96px) 0;
  background:
    radial-gradient(620px 320px at 50% 120%, rgba(143, 250, 4, 0.2), transparent 70%),
    linear-gradient(180deg, #151b29, #0f1420);
  border-top: 1px solid var(--p-line);
  color: var(--p-ink);
}
.pub-cta h2 { color: #fff; margin-bottom: 10px; }
.pub-cta p { color: var(--p-ink-2); margin: 0 0 24px; font-size: 17px; }
.pub-cta-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.pub-cta-note { margin: 20px 0 0 !important; font-size: 14px !important; color: var(--p-ink-3) !important; }

/* Breadcrumbs */

.pub-breadcrumbs { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 13.5px; margin-bottom: 18px; color: var(--p-ink-3); }
.pub-breadcrumbs a { color: var(--p-ink-2); text-decoration: none; }
.pub-breadcrumbs a:hover { color: var(--p-blue); }
.pub-bc-sep { color: var(--p-ink-3); }
.pub-breadcrumbs [aria-current="page"] { color: var(--p-ink); font-weight: 600; }

/* Footer */

.pub-footer { background: #0b0f18; color: var(--p-ink-2); padding: 56px 0 28px; border-top: 1px solid var(--p-line); }
.pub-footer a { color: var(--p-ink-2); text-decoration: none; }
.pub-footer a:hover { color: #fff; }
.pub-footer-grid {
  display: grid; grid-template-columns: 1.6fr repeat(4, 1fr); gap: 28px;
  padding-bottom: 34px; border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}
.pub-footer-col h3 { color: #fff; font-size: 13px; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 14px; }
.pub-footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; font-size: 14.5px; }
.pub-footer-about p { font-size: 14px; margin: 14px 0 0; max-width: 260px; }
.pub-brand-footer .pub-brand-mark { background: rgba(143, 250, 4, 0.16); color: var(--p-lime); }
.pub-brand-footer .pub-brand-name { color: #fff; }
.pub-cookie-link { background: none; border: none; padding: 0; font: inherit; color: var(--p-ink-2); cursor: pointer; }
.pub-cookie-link:hover { color: #fff; }
.pub-footer-bottom { padding-top: 22px; text-align: center; font-size: 13.5px; color: var(--p-ink-3); }

/* ---- Cookie consent ------------------------------------------------
   One dialog, no dark patterns. Desktop: centered card with a slim themed
   scrollbar. Mobile: bottom sheet, full-width, scrolls inside. */

.cookie-consent { position: fixed; inset: 0; z-index: 90; display: flex; align-items: center; justify-content: center; padding: 24px; }
.cookie-consent[hidden] { display: none; }
.cookie-backdrop { position: absolute; inset: 0; background: rgba(5, 8, 14, 0.72); -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px); }
.cookie-consent-modal {
  position: relative; width: min(520px, 100%);
  background: var(--p-surface); border: 1px solid var(--p-line-strong); border-radius: 18px;
  box-shadow: var(--p-shadow-lg);
  padding: 26px 26px 24px;
  max-height: 84vh; overflow-y: auto; -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  /* slim themed scrollbar */
  scrollbar-width: thin;
  scrollbar-color: rgba(143, 250, 4, 0.45) transparent;
}
.cookie-consent-modal::-webkit-scrollbar { width: 6px; }
.cookie-consent-modal::-webkit-scrollbar-track { background: transparent; }
.cookie-consent-modal::-webkit-scrollbar-thumb { background: rgba(143, 250, 4, 0.45); border-radius: 99px; }
.cookie-consent-modal::-webkit-scrollbar-thumb:hover { background: rgba(143, 250, 4, 0.8); }
.cookie-consent-modal h2 { font-size: 1.2rem; margin-bottom: 8px; }
.cookie-intro { color: var(--p-ink-2); font-size: 13.5px; margin: 0 0 16px; }
.cookie-category {
  border: 1px solid var(--p-line); background: rgba(255, 255, 255, 0.02);
  border-radius: var(--p-radius-sm);
  padding: 12px 14px; margin-bottom: 9px;
}
.cookie-category-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.cookie-category-head strong { font-size: 13.5px; }
.cookie-category p { margin: 7px 0 0; font-size: 12.5px; color: var(--p-ink-3); line-height: 1.5; }
.cookie-always { font-size: 11.5px; font-weight: 700; color: var(--p-blue); white-space: nowrap; }
.cookie-switch { position: relative; display: inline-flex; flex: 0 0 auto; cursor: pointer; }
.cookie-switch input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.cookie-switch span {
  width: 40px; height: 22px; border-radius: 999px; background: var(--p-surface-2);
  border: 1px solid var(--p-line-strong);
  transition: background .15s ease, border-color .15s ease; position: relative;
}
.cookie-switch span::after {
  content: ""; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px;
  border-radius: 50%; background: var(--p-ink-2); transition: transform .15s ease, background .15s ease;
}
.cookie-switch input:checked + span { background: var(--p-lime); border-color: var(--p-lime); }
.cookie-switch input:checked + span::after { transform: translateX(18px); background: var(--p-lime-ink); }
.cookie-switch input:focus-visible + span { outline: 3px solid rgba(78, 149, 217, 0.5); outline-offset: 2px; }
.cookie-actions {
  display: flex; gap: 8px; flex-wrap: wrap;
  /* Sticky footer: the accept/refuse buttons stay visible while the
     category list scrolls, so the primary action is never below the fold. */
  position: sticky; bottom: -24px;
  margin: 16px -26px -24px; padding: 12px 26px 24px;
  background: var(--p-surface);
  border-top: 1px solid var(--p-line);
  border-radius: 0 0 18px 18px;
}
.cookie-actions .btn { flex: 1 1 auto; font-size: 14px; padding: 10px 14px; }
.cookie-actions .btn-ghost { border-color: var(--p-line-strong); }
.cookie-actions .btn-ghost:hover { border-color: var(--p-blue); }
.cookie-note { margin: 13px 0 0; font-size: 12.5px; color: var(--p-ink-3); }

@media (max-width: 600px) {
  .cookie-consent { padding: 0; align-items: flex-end; }
  .cookie-backdrop { backdrop-filter: none; }
  .cookie-actions {
    bottom: calc(-20px - env(safe-area-inset-bottom));
    margin: 16px -20px calc(-20px - env(safe-area-inset-bottom));
    padding: 12px 20px calc(20px + env(safe-area-inset-bottom));
    border-radius: 0;
  }
  .cookie-consent-modal {
    width: 100%; max-height: 82dvh;
    border-radius: 20px 20px 0 0;
    border-left: none; border-right: none; border-bottom: none;
    padding: 24px 20px calc(20px + env(safe-area-inset-bottom));
    scroll-padding-bottom: 72px;
    animation: pub-sheet-up .26s cubic-bezier(0.22, 0.8, 0.3, 1);
  }
}
@keyframes pub-sheet-up {
  from { transform: translateY(40px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

/* Forms (contactos) */

.pub-form { max-width: 560px; background: var(--p-surface); border: 1px solid var(--p-line); border-radius: var(--p-radius); padding: 26px; box-shadow: var(--p-shadow); }
.pub-form .field { margin-bottom: 16px; }
.pub-form .field textarea { min-height: 120px; }
.pub-alert {
  border-radius: var(--p-radius-sm); padding: 13px 16px; font-size: 14px; margin-bottom: 16px;
  display: flex; gap: 10px; align-items: flex-start;
}
.pub-alert.ok { background: rgba(143, 250, 4, 0.12); color: #c9f27a; border: 1px solid rgba(143, 250, 4, 0.35); }
.pub-alert.err { background: rgba(255, 93, 93, 0.12); color: #ff9d9d; border: 1px solid rgba(255, 93, 93, 0.35); }

/* ---- Responsive ------------------------------------------------ */

@media (max-width: 1024px) {
  .pub-footer-grid { grid-template-columns: repeat(3, 1fr); }
  .pub-steps { grid-template-columns: repeat(2, 1fr); }
  .pub-feats, .pub-cards { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 720px) {
  .pub-duo { grid-template-columns: 1fr; }
  .pub-steps { grid-template-columns: 1fr; }
  .pub-feats, .pub-cards { grid-template-columns: 1fr; }
  .pub-search { flex-direction: column; align-items: stretch; gap: 8px; }
  .pub-search-div { width: auto; height: 1px; margin: 0 10px; }
  .pub-search .btn { width: 100%; }
  .pub-footer-grid { grid-template-columns: 1fr 1fr; }
  .pub-footer-about { grid-column: 1 / -1; }
  .pub-hero-actions .btn { width: 100%; }
  .pub-dir-toolbar { flex-direction: column; align-items: stretch; }
  .pub-dir-toolbar .pub-field { flex: 1 1 auto !important; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
