/* ============================================================
   SparkWeb — landing pages por segmento
   Reaproveita os tokens e componentes globais de style.css.
   ============================================================ */

.niche-page {
  --niche-accent: var(--sw-orange);
  --niche-accent-deep: var(--sw-red);
  --niche-soft: #fff3e5;
  --niche-ink: #42200f;
  background: var(--bg);
}

.niche-page[data-niche="clinicas"] {
  --niche-accent: #42d3bd;
  --niche-accent-deep: #168c7b;
  --niche-soft: #e9f8f5;
  --niche-ink: #123e37;
}

.niche-page[data-niche="dentistas"] {
  --niche-accent: #76b8f6;
  --niche-accent-deep: #2d6fab;
  --niche-soft: #eaf4fd;
  --niche-ink: #143c62;
}

.niche-page[data-niche="locais"] {
  --niche-accent: #ffc24f;
  --niche-accent-deep: #d47b16;
  --niche-soft: #fff5df;
  --niche-ink: #51310d;
}

.niche-page .site-header .brand img,
.niche-page .site-footer .brand img { height: 30px; }

.niche-page .main-nav { gap: 26px; }
.niche-page .main-nav a { font-size: 13px; }

.niche-hero {
  min-height: 760px;
  padding: calc(var(--nav-h) + 72px) 0 84px;
  display: flex;
  align-items: center;
  overflow: hidden;
  isolation: isolate;
  background: var(--bg-dark);
  color: var(--on-dark);
}

.niche-hero::before {
  content: "";
  position: absolute;
  width: 780px;
  height: 780px;
  right: -260px;
  top: -240px;
  border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--niche-accent) 24%, transparent), transparent 66%);
  z-index: -1;
}

.niche-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(90deg, transparent 5%, #000 75%);
  z-index: -2;
}

.niche-hero .container {
  display: grid;
  grid-template-columns: minmax(0, .92fr) minmax(440px, 1.08fr);
  gap: 68px;
  align-items: center;
}

.niche-label {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 8px 12px;
  margin-bottom: 22px;
  border: 1px solid color-mix(in srgb, var(--niche-accent) 45%, transparent);
  border-radius: 999px;
  color: var(--niche-accent);
  background: color-mix(in srgb, var(--niche-accent) 9%, transparent);
  font-size: 13px;
  font-weight: 700;
}

.niche-label::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 0 5px color-mix(in srgb, var(--niche-accent) 13%, transparent);
}

.niche-hero h1 {
  max-width: 720px;
  font-size: clamp(43px, 6vw, 78px);
  line-height: .98;
  letter-spacing: -.045em;
  font-weight: 800;
}

.niche-hero .lead {
  max-width: 600px;
  margin-top: 24px;
  color: rgba(251,250,249,.68);
  font-size: clamp(17px, 1.6vw, 20px);
  line-height: 1.62;
}

.niche-hero-actions {
  display: flex;
  gap: 13px;
  flex-wrap: wrap;
  margin-top: 34px;
}

.niche-hero-note {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-top: 22px;
  color: rgba(251,250,249,.5);
  font-size: 13px;
}

.niche-hero-note svg { color: var(--niche-accent); flex: 0 0 auto; }

.project-preview {
  position: relative;
  width: 100%;
  max-width: 640px;
  margin-left: auto;
}

.project-preview::after {
  display: none;
}

.preview-browser {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 36px 90px rgba(0,0,0,.42);
  transform: perspective(1400px) rotateY(-5deg) rotateX(1deg);
  transform-origin: center right;
}

.preview-browser-bar,
.case-browser-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  height: 38px;
  padding: 0 14px;
  background: #f1f2f4;
  border-bottom: 1px solid #dedfe2;
}

.preview-browser-bar i,
.case-browser-bar i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #c7c9ce;
}

.preview-browser-bar span,
.case-browser-bar span {
  min-width: 0;
  margin-left: 8px;
  color: #858990;
  font-size: 10px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.preview-browser img {
  width: 100%;
  aspect-ratio: 1.44 / 1;
  object-fit: cover;
  object-position: top center;
}

.preview-phone {
  position: absolute;
  width: 29%;
  right: -4%;
  bottom: -9%;
  overflow: hidden;
  border: 6px solid #25282e;
  border-radius: 26px;
  background: #fff;
  box-shadow: 0 24px 52px rgba(0,0,0,.46);
}

.preview-phone::before {
  content: "";
  position: absolute;
  top: 7px;
  left: 50%;
  width: 38%;
  height: 10px;
  border-radius: 999px;
  transform: translateX(-50%);
  background: #25282e;
  z-index: 2;
}

.preview-phone img {
  width: 100%;
  height: 285px;
  object-fit: cover;
  object-position: top center;
}

.project-seal {
  position: absolute;
  left: -26px;
  bottom: 24px;
  max-width: 210px;
  padding: 14px 17px;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 14px;
  background: rgba(17,19,23,.92);
  box-shadow: 0 18px 45px rgba(0,0,0,.34);
  backdrop-filter: blur(12px);
}

.project-seal strong,
.project-seal span { display: block; }
.project-seal::before {
  display: none;
}
.project-seal strong { color: #fff; font-size: 14px; }
.project-seal span { margin-top: 3px; color: rgba(255,255,255,.56); font-size: 12px; }

.trust-ribbon {
  background: #fff;
  border-bottom: 1px solid var(--border);
}

.trust-ribbon .container {
  min-height: 86px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  align-items: center;
}

.trust-item {
  min-height: 44px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 22px;
  border-right: 1px solid var(--border);
}

.trust-item:first-child { padding-left: 0; }
.trust-item:last-child { border-right: 0; }
.trust-item svg { color: var(--sw-solid); flex: 0 0 auto; }
.trust-item b { display: block; font-size: 14px; }
.trust-item span { display: block; margin-top: 2px; color: var(--muted); font-size: 12px; }

.niche-section { padding: 112px 0; }
.niche-section.soft { background: var(--bg-soft); }
.niche-section.dark { background: var(--bg-dark); color: var(--on-dark); }

.niche-heading {
  max-width: 750px;
  margin-bottom: 54px;
}

.niche-heading.center { margin-right: auto; margin-left: auto; text-align: center; }
.niche-heading .niche-label { margin-bottom: 18px; color: var(--niche-accent-deep); background: var(--niche-soft); border-color: color-mix(in srgb, var(--niche-accent-deep) 20%, transparent); }
.dark .niche-heading .niche-label { color: var(--niche-accent); background: color-mix(in srgb, var(--niche-accent) 9%, transparent); border-color: color-mix(in srgb, var(--niche-accent) 28%, transparent); }
.niche-heading h2 { font-size: clamp(34px, 5vw, 62px); letter-spacing: -.035em; }
.niche-heading p { max-width: 680px; margin-top: 18px; color: var(--body-text); font-size: 18px; line-height: 1.65; }
.niche-heading.center p { margin-right: auto; margin-left: auto; }
.dark .niche-heading p { color: var(--on-dark-muted); }

.outcomes-layout {
  display: grid;
  grid-template-columns: .82fr 1.18fr;
  gap: 80px;
  align-items: start;
}

.outcomes-intro {
  position: sticky;
  top: 122px;
}

.outcomes-intro h2 { font-size: clamp(34px, 4vw, 54px); letter-spacing: -.035em; }
.outcomes-intro p { margin-top: 18px; color: var(--body-text); font-size: 17px; line-height: 1.65; }

.outcomes-list { border-top: 1px solid var(--border); }
.outcome-row {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 18px;
  padding: 27px 0;
  border-bottom: 1px solid var(--border);
}
.outcome-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--niche-accent-deep);
  background: var(--niche-soft);
}
.outcome-row h3 { font-size: 20px; }
.outcome-row p { max-width: 580px; margin-top: 7px; color: var(--body-text); line-height: 1.6; }

.featured-case {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 62px;
  align-items: center;
}

.case-browser {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 28px 70px rgba(20,20,22,.14);
}
.case-browser img {
  width: 100%;
  aspect-ratio: 1.44 / 1;
  object-fit: cover;
  object-position: top center;
}
.case-copy .niche-label { color: var(--niche-accent-deep); background: var(--niche-soft); border-color: transparent; }
.case-copy h2 { font-size: clamp(34px, 4.6vw, 58px); letter-spacing: -.04em; }
.case-copy > p { margin-top: 18px; color: var(--body-text); font-size: 17px; line-height: 1.7; }
.case-facts { margin: 30px 0; border-top: 1px solid var(--border); }
.case-fact { display: grid; grid-template-columns: 112px 1fr; gap: 20px; padding: 16px 0; border-bottom: 1px solid var(--border); }
.case-fact dt { color: var(--muted); font-size: 13px; font-weight: 700; }
.case-fact dd { margin: 0; font-size: 14px; font-weight: 600; }

.blueprint-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--on-dark-border);
  border-left: 1px solid var(--on-dark-border);
}
.blueprint-item {
  min-height: 230px;
  padding: 30px;
  border-right: 1px solid var(--on-dark-border);
  border-bottom: 1px solid var(--on-dark-border);
}
.blueprint-item .index { display: block; color: var(--niche-accent); font-size: 13px; font-weight: 800; }
.blueprint-item h3 { margin-top: 36px; font-size: 22px; }
.blueprint-item p { margin-top: 11px; color: var(--on-dark-muted); line-height: 1.6; }

.process-line {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid var(--border);
}
.process-step { position: relative; padding: 34px 34px 8px 0; }
.process-step::before {
  content: "";
  position: absolute;
  top: -6px;
  left: 0;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--niche-accent-deep);
  box-shadow: 0 0 0 6px var(--niche-soft);
}
.process-step .step-num { display: block; color: var(--niche-accent-deep); font-size: 13px; font-weight: 800; }
.process-step h3 { margin-top: 20px; font-size: 20px; }
.process-step p { margin-top: 9px; color: var(--body-text); line-height: 1.6; }

.deliverables {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}
.deliverable {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 14px;
  padding: 22px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: #fff;
}
.deliverable svg { color: var(--sw-solid); }
.deliverable h3 { font-size: 17px; }
.deliverable p { margin-top: 5px; color: var(--body-text); font-size: 14px; line-height: 1.55; }

.faq-list { max-width: 840px; margin: 0 auto; border-top: 1px solid var(--border); }
.faq-list details { border-bottom: 1px solid var(--border); }
.faq-list summary {
  position: relative;
  padding: 24px 48px 24px 0;
  cursor: pointer;
  list-style: none;
  font-size: 18px;
  font-weight: 700;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: "+";
  position: absolute;
  right: 2px;
  top: 20px;
  color: var(--niche-accent-deep);
  font-size: 28px;
  font-weight: 400;
}
.faq-list details[open] summary::after { content: "−"; }
.faq-list details p { max-width: 720px; padding: 0 48px 24px 0; color: var(--body-text); line-height: 1.7; }

.segment-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.segment-link {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  min-height: 160px;
  padding: 25px;
  border-radius: 16px;
  background: #fff;
  border: 1px solid var(--border);
  transition: border-color .2s ease, transform .2s ease;
}
.segment-link:hover { transform: translateY(-3px); border-color: var(--sw-solid); }
.segment-link span { display: block; color: var(--muted); font-size: 12px; }
.segment-link strong { display: block; max-width: 220px; margin-top: 9px; font-size: 21px; }
.segment-link svg { flex: 0 0 auto; color: var(--sw-solid); }
.segment-link.is-current { color: #fff; background: var(--bg-dark); border-color: var(--bg-dark); }
.segment-link.is-current span { color: rgba(255,255,255,.5); }
.segment-link.is-current svg { color: var(--niche-accent); }

.diagnostic {
  position: relative;
  overflow: hidden;
  padding: 112px 0;
  background: var(--bg-dark);
  color: #fff;
}
.diagnostic::before {
  content: "";
  position: absolute;
  width: 680px;
  height: 680px;
  left: -380px;
  top: -360px;
  border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--niche-accent) 24%, transparent), transparent 68%);
  pointer-events: none;
}
.diagnostic .container {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: 0;
  align-items: stretch;
}
.diagnostic-copy {
  min-width: 0;
  padding: clamp(38px, 5vw, 60px);
  border: 1px solid rgba(255,255,255,.12);
  border-right: 0;
  border-radius: 28px 0 0 28px;
  background: rgba(255,255,255,.035);
}
.diagnostic-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--niche-accent);
  font-size: 13px;
  font-weight: 800;
}
.diagnostic-kicker::before { content: ""; width: 24px; height: 2px; background: currentColor; }
.diagnostic-copy h2 { max-width: 580px; margin-top: 17px; font-size: clamp(34px, 4.4vw, 54px); line-height: 1.04; letter-spacing: -.04em; }
.diagnostic-copy > p { max-width: 520px; margin-top: 19px; color: rgba(255,255,255,.67); font-size: 16px; line-height: 1.7; }
.diagnostic-map { margin-top: 32px; border-top: 1px solid rgba(255,255,255,.12); }
.diagnostic-map > div {
  display: grid;
  grid-template-columns: 38px 1fr;
  gap: 13px;
  padding: 17px 0;
  border-bottom: 1px solid rgba(255,255,255,.12);
}
.diagnostic-map-icon {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: color-mix(in srgb, var(--niche-accent) 16%, transparent);
  color: var(--niche-accent);
  font-size: 14px;
  font-weight: 900;
}
.diagnostic-map p { margin: 0; }
.diagnostic-map strong { display: block; color: #fff; font-size: 14px; }
.diagnostic-map p span { display: block; margin-top: 4px; color: rgba(255,255,255,.55); font-size: 13px; line-height: 1.5; }
.diagnostic-assurances { display: flex; flex-wrap: wrap; gap: 8px 16px; margin-top: 25px; color: rgba(255,255,255,.66); font-size: 12px; font-weight: 700; }
.diagnostic-assurances span { display: inline-flex; align-items: center; gap: 7px; }
.diagnostic-assurances span::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--niche-accent); }

.diagnostic-form {
  min-width: 0;
  padding: clamp(34px, 5vw, 54px);
  border-radius: 0 28px 28px 0;
  background: #fff;
  color: var(--ink);
  box-shadow: 0 28px 70px rgba(0,0,0,.24);
}
.diagnostic-form-head { margin-bottom: 26px; }
.diagnostic-form-head > span { display: block; margin-bottom: 7px; color: var(--niche-accent-deep); font-size: 12px; font-weight: 800; }
.diagnostic-form-head h3 { font-size: clamp(22px, 2.6vw, 29px); line-height: 1.16; letter-spacing: -.025em; }
.diagnostic-form-head p { margin-top: 8px; color: var(--body-text); font-size: 14px; line-height: 1.55; }
.diagnostic-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 17px 15px; }
.diagnostic-form .field { min-width: 0; margin: 0; }
.diagnostic-form .field-wide { grid-column: 1 / -1; }
.diagnostic-form label { display: block; margin-bottom: 6px; font-size: 12px; font-weight: 750; }
.diagnostic-form input,
.diagnostic-form select,
.diagnostic-form textarea {
  width: 100%;
  min-height: 49px;
  padding: 13px 14px;
  border: 1px solid #d9d9dc;
  border-radius: 9px;
  background: #fbfbfc;
  color: var(--ink);
  font: inherit;
  font-size: 14px;
  outline: none;
  transition: border-color .2s ease, background .2s ease, box-shadow .2s ease;
}
.diagnostic-form textarea { min-height: 106px; resize: vertical; }
.diagnostic-form input::placeholder,
.diagnostic-form textarea::placeholder { color: #9a9ba1; }
.diagnostic-form input:focus,
.diagnostic-form select:focus,
.diagnostic-form textarea:focus { border-color: var(--niche-accent-deep); background: #fff; box-shadow: 0 0 0 3px color-mix(in srgb, var(--niche-accent) 18%, transparent); }
.diagnostic-submit { width: 100%; justify-content: space-between; margin-top: 23px; padding-inline: 21px; }
.diagnostic-submit:disabled { cursor: wait; opacity: .68; }
.diagnostic-privacy { display: block; margin-top: 12px; color: var(--muted); font-size: 11.5px; line-height: 1.5; }
.diagnostic-privacy a { color: var(--niche-accent-deep); font-weight: 700; }
.diagnostic-form .form-status { margin-top: 13px; }

.niche-page :focus-visible { outline: 3px solid var(--niche-accent); outline-offset: 3px; }

@media (prefers-reduced-motion: reduce) {
  .preview-browser { transform: none; }
  .segment-link, .btn { transition: none; }
}

@media (max-width: 1080px) {
  .niche-hero .container { grid-template-columns: 1fr 1fr; gap: 38px; }
  .main-nav { display: none; }
  .nav-toggle { display: flex; }
  .featured-case { gap: 40px; }
  .blueprint-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 860px) {
  .niche-hero { min-height: auto; padding-bottom: 110px; }
  .niche-hero .container,
  .outcomes-layout,
  .featured-case,
  .diagnostic .container { grid-template-columns: 1fr; }
  .niche-hero .container { gap: 60px; }
  .project-preview { margin: 0 auto; }
  .outcomes-intro { position: static; }
  .trust-ribbon .container { grid-template-columns: repeat(2, 1fr); padding: 16px 24px; }
  .trust-item { min-height: 62px; }
  .trust-item:nth-child(2) { border-right: 0; }
  .process-line { grid-template-columns: repeat(2, 1fr); row-gap: 30px; }
  .segment-links { grid-template-columns: 1fr; }
  .diagnostic-copy { border-right: 1px solid rgba(255,255,255,.12); border-bottom: 0; border-radius: 26px 26px 0 0; }
  .diagnostic-form { border-radius: 0 0 26px 26px; }
}

@media (max-width: 640px) {
  .niche-page { --nav-h: 72px; }
  .niche-page .header-actions > .btn { display: none; }
  .niche-hero { padding-top: calc(var(--nav-h) + 48px); }
  .niche-hero h1 { font-size: clamp(40px, 12vw, 56px); }
  .niche-hero-actions { align-items: stretch; flex-direction: column; }
  .niche-hero-actions .btn { width: 100%; }
  .project-preview {
    display: grid;
    justify-items: center;
    gap: 18px;
    max-width: 370px;
    padding: 28px 18px 20px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,.72);
    border-radius: 26px;
    background:
      radial-gradient(circle at 90% 6%, color-mix(in srgb, var(--niche-accent) 28%, transparent) 0 13%, transparent 13.5%),
      linear-gradient(155deg, #fff 0%, var(--niche-soft) 100%);
    box-shadow: 0 24px 54px rgba(0,0,0,.24);
    isolation: isolate;
  }
  .project-preview::after {
    content: "";
    display: block;
    position: absolute;
    width: 145px;
    height: 145px;
    right: -68px;
    bottom: 56px;
    border: 28px solid color-mix(in srgb, var(--niche-accent) 22%, transparent);
    border-radius: 50%;
    z-index: -1;
  }
  .preview-browser { display: none; }
  .preview-phone {
    position: relative;
    right: auto;
    bottom: auto;
    width: min(62vw, 220px);
    border-width: 6px;
    border-radius: 28px;
    box-shadow: 0 24px 46px rgba(28,35,42,.24);
    transform: rotate(-1deg);
  }
  .preview-phone::before { top: 8px; height: 9px; }
  .preview-phone img { height: auto; aspect-ratio: 430 / 932; }
  .project-seal {
    position: relative;
    left: auto;
    bottom: auto;
    width: 100%;
    max-width: none;
    padding: 14px 17px;
    border-radius: 14px;
    text-align: left;
  }
  .trust-ribbon .container { grid-template-columns: 1fr; }
  .trust-item { padding: 12px 0; border-right: 0; border-bottom: 1px solid var(--border); }
  .trust-item:last-child { border-bottom: 0; }
  .niche-section { padding: 78px 0; }
  .outcome-row { grid-template-columns: 38px 1fr; gap: 14px; }
  .outcome-icon { width: 36px; height: 36px; }
  .blueprint-grid,
  .process-line,
  .deliverables { grid-template-columns: 1fr; }
  .blueprint-item { min-height: 190px; }
  .case-fact { grid-template-columns: 1fr; gap: 5px; }
  .diagnostic { padding: 78px 0; }
  .diagnostic-copy { padding: 32px 23px; border-radius: 22px 22px 0 0; }
  .diagnostic-copy h2 { font-size: 34px; }
  .diagnostic-assurances { flex-direction: column; }
  .diagnostic-form { padding: 31px 22px; border-radius: 0 0 22px 22px; }
  .diagnostic-fields { grid-template-columns: 1fr; }
  .diagnostic-form .field-wide { grid-column: auto; }
  .segment-link { min-height: 130px; }
}
