/* =====================================================================
   NewPDV — Página de Segmento (/segmentos/{grupo}/{segmento})
   Hero premium .seg-hero-pro + seções editoriais:
     .sgp  — dores do segmento
     .sgs  — como o NewPDV resolve (features contextualizadas)
     .sgd  — a rotina do dia (timeline)
     .sgm  — números / resultados
     .sgt  — depoimentos
     .sgf  — FAQ do segmento
   Carregado por resources/views/segments/show.blade.php (?v=N)
   ===================================================================== */

/* ===== Accent por grupo de segmento ===== */
.seg-page {
    --seg-accent: #368DA8;
    --seg-accent-2: #045F7A;
    --seg-accent-rgb: 54, 141, 168;
}
.seg-page[data-seg-group="varejo"]      { --seg-accent: #368DA8; --seg-accent-2: #045F7A; --seg-accent-rgb: 54, 141, 168; }
.seg-page[data-seg-group="alimentacao"] { --seg-accent: #87C437; --seg-accent-2: #4d8f24; --seg-accent-rgb: 135, 196, 55; }
.seg-page[data-seg-group="servicos"]    { --seg-accent: #6ec3df; --seg-accent-2: #368DA8; --seg-accent-rgb: 110, 195, 223; }
.seg-page[data-seg-group="atacado"]     { --seg-accent: #b885e6; --seg-accent-2: #7d4ec2; --seg-accent-rgb: 184, 133, 230; }

/* =====================================================================
   HERO PREMIUM — .seg-hero-pro (movido do inline da view)
   ===================================================================== */
.seg-hero-pro {
    --bg-deep:   #02212d;
    --bg-mid:    #033d4f;
    --bg-glow:   #045F7A;
    --accent:    #7CC7E0;
    --accent-2:  #87C437;
    --txt:       rgba(255,255,255,0.92);
    --txt-mute:  rgba(189,225,237,0.70);
    --line:      rgba(124,199,224,0.18);

    position: relative;
    overflow: hidden;
    isolation: isolate;
    padding: clamp(70px, 9vw, 110px) 0 clamp(70px, 9vw, 110px);
    color: var(--txt);
    font-family: 'Manrope', system-ui, sans-serif;
}

/* ===== Camadas de fundo ===== */
.seg-hero-pro__bg {
    position: absolute;
    inset: 0;
    z-index: -2;
    background:
        radial-gradient(140% 90% at 50% -10%, var(--bg-glow) 0%, var(--bg-mid) 35%, var(--bg-deep) 80%);
}
.seg-hero-pro__grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(to right, rgba(124,199,224,0.06) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(124,199,224,0.06) 1px, transparent 1px);
    background-size: 64px 64px;
    background-position: -1px -1px;
    mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, #000 30%, transparent 80%);
    -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, #000 30%, transparent 80%);
    opacity: 0.7;
}
/* orbs sem filter:blur — o radial-gradient já é suave; blur animado
   derruba a rasterização em máquinas sem GPU */
.seg-hero-pro__orb {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}
.seg-hero-pro__orb--1 {
    width: 700px; height: 700px;
    background: radial-gradient(circle, rgba(54,141,168,0.46) 0%, rgba(54,141,168,0.16) 40%, transparent 68%);
    top: -250px; left: -180px;
    animation: seg-orb-drift-1 22s ease-in-out infinite;
}
.seg-hero-pro__orb--2 {
    width: 620px; height: 620px;
    background: radial-gradient(circle, rgba(135,196,55,0.15) 0%, rgba(135,196,55,0.05) 42%, transparent 68%);
    bottom: -230px; right: -160px;
    animation: seg-orb-drift-2 26s ease-in-out infinite;
}
.seg-hero-pro__orb--3 {
    width: 500px; height: 500px;
    background: radial-gradient(circle, rgba(124,199,224,0.25) 0%, rgba(124,199,224,0.08) 44%, transparent 70%);
    top: 40%; left: 50%; transform: translate(-50%, -50%);
    animation: seg-orb-drift-3 30s ease-in-out infinite;
}
@keyframes seg-orb-drift-1 {
    0%,100% { transform: translate(0,0)   rotate(0); }
    50%     { transform: translate(40px,30px) rotate(8deg); }
}
@keyframes seg-orb-drift-2 {
    0%,100% { transform: translate(0,0); }
    50%     { transform: translate(-30px,-40px); }
}
@keyframes seg-orb-drift-3 {
    0%,100% { transform: translate(-50%, -50%) scale(1); }
    50%     { transform: translate(-52%, -48%) scale(1.08); }
}
/* grain estático (SVG rasterizado uma única vez como textura, em vez de
   feTurbulence vivo + blend por frame) */
.seg-hero-pro__noise {
    position: absolute;
    inset: 0;
    opacity: 0.05;
    pointer-events: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    background-size: 220px 220px;
}

/* ===== Número editorial decorativo ===== */
.seg-hero-pro__num {
    position: absolute;
    top: 50%;
    right: -2vw;
    transform: translateY(-50%);
    font-family: 'Bricolage Grotesque', serif;
    font-weight: 800;
    font-size: clamp(280px, 42vw, 620px);
    line-height: 0.8;
    color: rgba(124,199,224,0.045);
    letter-spacing: -0.05em;
    pointer-events: none;
    user-select: none;
    z-index: -1;
    opacity: 0;
    transform-origin: center;
    transition: opacity 1.4s cubic-bezier(.2,.8,.2,1) .2s;
}
.seg-hero-pro.is-ready .seg-hero-pro__num { opacity: 1; }

/* ===== Container ===== */
.seg-hero-pro__container { position: relative; z-index: 1; }
.seg-hero-pro__row { gap: 40px 0; }

/* ===== Topbar (breadcrumb + eyebrow lado a lado) ===== */
.seg-hero-pro__topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 44px;
}

/* ===== Breadcrumb ===== */
.seg-hero-pro__crumb {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 16px;
    background: rgba(255,255,255,0.04);
    border: 1px solid var(--line);
    border-radius: 999px;
    font-size: 12.5px;
    font-weight: 500;
    letter-spacing: 0.3px;
    backdrop-filter: blur(10px);
    max-width: 100%;
    overflow: hidden;
}
.seg-hero-pro__crumb a {
    color: var(--txt-mute);
    text-decoration: none;
    transition: color .2s;
}
.seg-hero-pro__crumb a:hover { color: var(--txt) !important; }
.seg-hero-pro__crumb i { font-size: 9px; opacity: 0.5; }
.seg-hero-pro__crumb span[aria-current] { color: var(--txt); font-weight: 600; }

/* ===== Eyebrow com pulse ===== */
.seg-hero-pro__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 7px 16px 7px 12px;
    background: linear-gradient(135deg, rgba(124,199,224,0.12), rgba(124,199,224,0.04));
    border: 1px solid rgba(124,199,224,0.25);
    border-radius: 999px;
    font-size: 12.5px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--accent);
}
.seg-hero-pro__eyebrow-sep { opacity: 0.4; }
.seg-hero-pro__eyebrow-meta { color: var(--txt-mute); font-weight: 500; letter-spacing: 0.5px; text-transform: none; }
.seg-hero-pro__pulse {
    position: relative;
    width: 10px; height: 10px;
    display: inline-flex;
    align-items: center; justify-content: center;
}
.seg-hero-pro__pulse-dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 10px rgba(124,199,224,0.7);
}
.seg-hero-pro__pulse-dot--green {
    background: #4ade80;
    box-shadow: 0 0 10px rgba(74,222,128,0.7);
}
.seg-hero-pro__pulse::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: var(--accent);
    animation: seg-pulse 2s ease-out infinite;
}
@keyframes seg-pulse {
    0%   { transform: scale(1);  opacity: 0.7; }
    100% { transform: scale(3);  opacity: 0; }
}

/* ===== Overline editorial (kicker antes do título) ===== */
.seg-hero-pro__overline {
    font-family: 'Manrope', sans-serif;
    font-size: clamp(15px, 1.15vw, 18px);
    font-weight: 600;
    letter-spacing: -0.005em;
    color: var(--accent);
    margin: 0 0 8px;
    line-height: 1.3;
    opacity: 0.92;
}

/* ===== Título display ===== */
.seg-hero-pro__title {
    font-family: 'Bricolage Grotesque', 'Manrope', sans-serif;
    font-weight: 700;
    font-size: clamp(40px, 5.4vw, 72px);
    line-height: 1.02;
    letter-spacing: -0.025em;
    color: #fff;
    margin: 0 0 26px;
    text-wrap: balance;
}
.seg-hero-pro__title::after {
    content: '.';
    color: var(--accent-2);
    margin-left: 4px;
}

/* ===== Lede / parágrafo ===== */
.seg-hero-pro__lede {
    font-size: clamp(16px, 1.25vw, 19px);
    line-height: 1.65;
    color: var(--txt-mute);
    max-width: 540px;
    margin: 0 0 36px;
}

/* ===== Stats inline ===== */
.seg-hero-pro__stats {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    margin-bottom: 40px;
    padding: 22px 0;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}
.seg-hero-pro__stat {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.seg-hero-pro__stat strong {
    font-family: 'Bricolage Grotesque', sans-serif;
    font-size: clamp(22px, 1.9vw, 28px);
    font-weight: 700;
    color: #fff;
    line-height: 1;
    letter-spacing: -0.02em;
}
.seg-hero-pro__stat span {
    font-size: 12.5px;
    color: var(--txt-mute);
    font-weight: 500;
}

/* ===== CTA buttons ===== */
.seg-hero-pro__cta {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 28px;
}
.seg-hero-pro__btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 28px;
    border-radius: 999px;
    font-size: 14.5px;
    font-weight: 700;
    letter-spacing: 0.2px;
    text-decoration: none;
    transition: transform .25s cubic-bezier(.2,.8,.2,1), box-shadow .25s, background .25s, border-color .25s;
    will-change: transform;
}
.seg-hero-pro__btn--primary {
    background: linear-gradient(135deg, #87C437, #6fad22);
    color: #122522 !important;
    box-shadow: 0 14px 30px rgba(99,177,47,0.32), inset 0 1px 0 rgba(255,255,255,0.18);
}
.seg-hero-pro__btn--primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 38px rgba(99,177,47,0.45), inset 0 1px 0 rgba(255,255,255,0.18);
    color: #122522 !important;
}
.seg-hero-pro__btn--primary i {
    transition: transform .25s ease;
}
.seg-hero-pro__btn--primary:hover i {
    transform: translateX(4px);
}
.seg-hero-pro__btn:focus-visible { outline-color: #fff !important; }
.seg-hero-pro__btn--ghost {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.18);
    color: #fff !important;
    backdrop-filter: blur(10px);
}
.seg-hero-pro__btn--ghost:hover {
    background: rgba(255,255,255,0.10);
    border-color: rgba(255,255,255,0.35);
    transform: translateY(-2px);
    color: #fff !important;
}
.seg-hero-pro__btn-play {
    display: inline-flex;
    align-items: center; justify-content: center;
    width: 24px; height: 24px;
    border-radius: 50%;
    background: rgba(255,255,255,0.15);
}

/* ===== Trust line ===== */
.seg-hero-pro__trust {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px 8px;
    font-size: 12.5px;
    color: var(--txt-mute);
    margin: 0;
}
.seg-hero-pro__trust i {
    color: var(--accent-2);
    margin-right: 4px;
}
.seg-hero-pro__trust-dot {
    opacity: 0.4;
    margin: 0 4px;
}

/* ===== Stage / coluna direita ===== */
.seg-hero-pro__visual { position: relative; }
.seg-hero-pro__stage {
    position: relative;
    perspective: 1200px;
}
.seg-hero-pro__stage-glow {
    position: absolute;
    inset: -40px;
    background: radial-gradient(ellipse at center, rgba(54,141,168,0.45), transparent 60%);
    filter: blur(50px);
    z-index: 0;
    animation: seg-glow-pulse 5s ease-in-out infinite;
}
@keyframes seg-glow-pulse {
    0%,100% { opacity: 0.7; transform: scale(1); }
    50%     { opacity: 1;   transform: scale(1.05); }
}

/* ===== Card principal ===== */
.seg-hero-pro__card {
    position: relative;
    z-index: 1;
    margin: 0;
    background: #033d4f;
    border-radius: 18px;
    overflow: hidden;
    box-shadow:
        0 30px 80px rgba(0,0,0,0.55),
        0 0 0 1px rgba(124,199,224,0.18),
        0 0 60px rgba(54,141,168,0.20);
    transform: rotate(-1.2deg);
    transition: transform .8s cubic-bezier(.2,.8,.2,1);
}
.seg-hero-pro.is-ready .seg-hero-pro__card { transform: rotate(0); }
/* Barra accent fina no topo do card */
.seg-hero-pro__card-bar {
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg,
        var(--accent-2) 0%,
        #4d8f24 35%,
        var(--accent) 65%,
        var(--bg-glow) 100%);
    z-index: 3;
    box-shadow: 0 1px 12px rgba(135, 196, 55, 0.45);
}
.seg-hero-pro__card img {
    width: 100%;
    height: auto;
    max-height: 460px;
    object-fit: cover;
    display: block;
}

/* ===== Floating UI badges ===== */
.seg-hero-pro__float {
    position: absolute;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(20px);
    border-radius: 14px;
    box-shadow: 0 18px 38px rgba(2,30,40,0.35), 0 0 0 1px rgba(255,255,255,0.2);
    color: #1f2d35;
    will-change: transform;
}
.seg-hero-pro__float-body {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}
.seg-hero-pro__float-label {
    font-size: 10.5px;
    color: #64798a;
    font-weight: 600;
    letter-spacing: 0.4px;
    text-transform: uppercase;
}
.seg-hero-pro__float-value {
    font-family: 'Bricolage Grotesque', sans-serif;
    font-size: 19px;
    color: #045F7A;
    font-weight: 700;
    letter-spacing: -0.01em;
    line-height: 1.1;
}
.seg-hero-pro__float-icon {
    width: 36px; height: 36px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center; justify-content: center;
    flex-shrink: 0;
}
.seg-hero-pro__float-icon--live {
    background: rgba(74,222,128,0.15);
}
.seg-hero-pro__float-icon--growth {
    background: linear-gradient(135deg, #87C437, #4d8f24);
    color: #122522;
    font-size: 14px;
}
.seg-hero-pro__float-stars {
    display: inline-flex;
    gap: 2px;
    color: #f59e0b;
    font-size: 12px;
}
.seg-hero-pro__float--live {
    top: 6%; left: -7%;
    animation: seg-float-1 8s ease-in-out infinite;
}
.seg-hero-pro__float--rating {
    bottom: 16%; left: -8%;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    padding: 14px 18px;
    animation: seg-float-2 9s ease-in-out infinite;
}
.seg-hero-pro__float--growth {
    bottom: 8%; right: -6%;
    animation: seg-float-3 7s ease-in-out infinite;
}
@keyframes seg-float-1 { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-12px)} }
@keyframes seg-float-2 { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-8px)}  }
@keyframes seg-float-3 { 0%,100%{transform:translateY(0)} 50%{transform:translateY(10px)}  }

/* ===== Scroll hint ===== */
.seg-hero-pro__scroll {
    position: absolute;
    left: 50%;
    bottom: -50px;
    transform: translateX(-50%);
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: var(--txt-mute);
    text-decoration: none;
    font-size: 11px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    font-weight: 600;
    transition: color .2s, transform .3s;
    opacity: 0;
    animation: seg-fade-up .8s cubic-bezier(.2,.8,.2,1) 1.6s forwards;
}
@keyframes seg-fade-up {
    from { opacity: 0; transform: translateX(-50%) translateY(12px); }
    to   { opacity: 1; transform: translateX(-50%) translateY(0); }
}
.seg-hero-pro__scroll:hover { color: var(--accent) !important; transform: translateX(-50%) translateY(4px); }
.seg-hero-pro__scroll-line {
    width: 1px;
    height: 30px;
    background: linear-gradient(to bottom, transparent, var(--accent));
    animation: seg-scroll-line 2s ease-in-out infinite;
}
@keyframes seg-scroll-line {
    0%   { transform: scaleY(0.3); transform-origin: top; }
    50%  { transform: scaleY(1);   transform-origin: top; }
    51%  { transform-origin: bottom; }
    100% { transform: scaleY(0.3); transform-origin: bottom; }
}

/* ===== Entrance animations =====
   Estado inicial: opacity 0 + offset. JS adiciona .is-ready para revelar.
   FALLBACK: animação CSS pura roda após 1.8s caso o JS falhe ou demore,
   garantindo que o conteúdo nunca fica invisível. */
@keyframes seg-hero-fallback-reveal {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
.seg-hero-pro [data-anim] {
    opacity: 0;
    transform: translateY(24px);
    transition:
        opacity .9s cubic-bezier(.2,.8,.2,1),
        transform .9s cubic-bezier(.2,.8,.2,1);
    animation: seg-hero-fallback-reveal .6s cubic-bezier(.2,.8,.2,1) 1.8s forwards;
}
.seg-hero-pro.is-ready [data-anim] {
    opacity: 1;
    transform: translateY(0);
    animation: none; /* JS chegou primeiro — desliga fallback */
}
.seg-hero-pro.is-ready [data-anim="0"] { transition-delay: 0.05s; }
.seg-hero-pro.is-ready [data-anim="1"] { transition-delay: 0.15s; }
.seg-hero-pro.is-ready [data-anim="2"] { transition-delay: 0.25s; }
.seg-hero-pro.is-ready [data-anim="3"] { transition-delay: 0.35s; }
.seg-hero-pro.is-ready [data-anim="4"] { transition-delay: 0.50s; }
.seg-hero-pro.is-ready [data-anim="5"] { transition-delay: 0.60s; }
.seg-hero-pro.is-ready [data-anim="6"] { transition-delay: 0.70s; }
.seg-hero-pro.is-ready [data-anim="7"] { transition-delay: 0.80s; }
.seg-hero-pro [data-anim="visual"] { transform: translateY(40px) scale(0.96); }
.seg-hero-pro.is-ready [data-anim="visual"] {
    opacity: 1;
    transform: translateY(0) scale(1);
    transition: opacity 1.1s cubic-bezier(.2,.8,.2,1) .35s,
                transform 1.1s cubic-bezier(.2,.8,.2,1) .35s;
}
.seg-hero-pro [data-anim^="float-"] { transform: scale(0.7); }
.seg-hero-pro.is-ready [data-anim="float-1"] {
    opacity: 1;
    transform: scale(1);
    transition: opacity .7s ease 1.0s, transform .7s cubic-bezier(.34,1.56,.64,1) 1.0s;
}
.seg-hero-pro.is-ready [data-anim="float-2"] {
    opacity: 1;
    transform: scale(1);
    transition: opacity .7s ease 1.15s, transform .7s cubic-bezier(.34,1.56,.64,1) 1.15s;
}
.seg-hero-pro.is-ready [data-anim="float-3"] {
    opacity: 1;
    transform: scale(1);
    transition: opacity .7s ease 1.30s, transform .7s cubic-bezier(.34,1.56,.64,1) 1.30s;
}

/* Após entrada terminar, badges retomam o "float idle" */
.seg-hero-pro.is-ready .seg-hero-pro__float--live  { animation: seg-float-1 8s ease-in-out infinite 1.8s; }
.seg-hero-pro.is-ready .seg-hero-pro__float--rating{ animation: seg-float-2 9s ease-in-out infinite 1.95s; }
.seg-hero-pro.is-ready .seg-hero-pro__float--growth{ animation: seg-float-3 7s ease-in-out infinite 2.1s; }

/* ===== Hero responsive ===== */
@media (max-width: 991px) {
    .seg-hero-pro { padding: 100px 0 70px; }
    .seg-hero-pro__num { font-size: 280px; opacity: 0.6 !important; right: -8vw; }
    .seg-hero-pro__visual { margin-top: 30px; }
    .seg-hero-pro__float--live   { left: -2%; top: -2%; }
    .seg-hero-pro__float--rating { left: -4%; bottom: 8%; }
    .seg-hero-pro__float--growth { right: -2%; bottom: 4%; }
    .seg-hero-pro__scroll { display: none; }
}
@media (max-width: 575px) {
    .seg-hero-pro { padding: 80px 0 60px; }
    .seg-hero-pro__num { display: none; }
    .seg-hero-pro__title { font-size: clamp(32px, 9vw, 44px); }
    .seg-hero-pro__title::after { font-size: 0.8em; }
    .seg-hero-pro__stats { gap: 18px; padding: 18px 0; }
    .seg-hero-pro__stat strong { font-size: 22px; }
    .seg-hero-pro__cta { flex-direction: column; }
    .seg-hero-pro__btn { width: 100%; max-width: 100%; justify-content: center; min-height: 48px; padding: 13px 18px; font-size: 13.5px; white-space: normal; text-align: center; overflow-wrap: anywhere; }
    .seg-hero-pro__topbar { flex-direction: column; align-items: flex-start; gap: 10px; margin-bottom: 28px; }
    .seg-hero-pro__crumb { width: 100%; font-size: 11px; padding: 6px 12px; overflow-x: auto; white-space: nowrap; scrollbar-width: none; }
    .seg-hero-pro__crumb::-webkit-scrollbar { display: none; }
    .seg-hero-pro__eyebrow { font-size: 11px; padding: 6px 12px 6px 10px; }
    .seg-hero-pro__eyebrow-meta,
    .seg-hero-pro__eyebrow-sep { display: none; }
    .seg-hero-pro__card { aspect-ratio: 4 / 3; }
    .seg-hero-pro__card img { width: 100%; height: 100%; object-fit: cover; }
    .seg-hero-pro__float { padding: 10px 12px; gap: 8px; }
    .seg-hero-pro__float-value { font-size: 15px; }
    .seg-hero-pro__float-label { font-size: 9.5px; }
    .seg-hero-pro__float-icon { width: 30px; height: 30px; }
    .seg-hero-pro__float--live   { top: -4%; left: 2%; }
    .seg-hero-pro__float--rating { display: none; }
    .seg-hero-pro__float--growth { bottom: -4%; right: 0%; }
}

@media (prefers-reduced-motion: reduce) {
    .seg-hero-pro * {
        animation: none !important;
        transition: opacity .4s ease !important;
    }
    .seg-hero-pro [data-anim] { transform: none !important; opacity: 1 !important; }
}

/* =====================================================================
   Base compartilhada das seções editoriais
   ===================================================================== */
.sg-section {
    padding: clamp(60px, 8vw, 100px) 0;
    font-family: 'Manrope', system-ui, sans-serif;
}
.sg-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    background: rgba(var(--seg-accent-rgb), 0.10);
    border-radius: 999px;
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    color: var(--seg-accent-2);
    margin-bottom: 18px;
}
.sg-eyebrow i { font-size: 12px; color: var(--seg-accent); }
.sg-title {
    font-family: 'Bricolage Grotesque', 'Manrope', sans-serif;
    font-size: clamp(26px, 3.2vw, 38px);
    font-weight: 700;
    color: #045F7A;
    line-height: 1.15;
    letter-spacing: -0.02em;
    margin: 0 0 14px;
    text-wrap: balance;
}
.sg-highlight {
    color: var(--seg-accent-2);
    background: linear-gradient(180deg, transparent 60%, rgba(var(--seg-accent-rgb), 0.18) 60%);
    padding: 0 4px;
    border-radius: 4px;
}
.sg-subtitle {
    font-size: 16px;
    color: #4a6470;
    line-height: 1.6;
    margin: 0;
}

/* =====================================================================
   DORES DO SEGMENTO — .sgp (lista editorial numerada, tom quente)
   ===================================================================== */
.sgp {
    background: linear-gradient(180deg, #fff8f6 0%, #fffdfc 100%);
}
.sgp .sg-eyebrow { background: rgba(199,90,58,0.08); color: #c75a3a; }
.sgp .sg-eyebrow i { color: #c75a3a; }
.sgp__hot {
    color: #c75a3a;
    background: linear-gradient(180deg, transparent 60%, rgba(199,90,58,0.14) 60%);
    padding: 0 4px;
    border-radius: 4px;
}
.sgp__header { max-width: 680px; margin-bottom: 30px; }
.sgp__list {
    max-width: 920px;
    margin: 0;
    padding: 0;
    list-style: none;
}
.sgp__item {
    display: grid;
    grid-template-columns: 96px 1fr;
    gap: 10px 24px;
    align-items: start;
    padding: 28px 0;
    border-top: 1px solid rgba(199,90,58,0.14);
}
.sgp__item:last-child { border-bottom: 1px solid rgba(199,90,58,0.14); }
.sgp__num {
    font-family: 'Bricolage Grotesque', sans-serif;
    font-size: clamp(36px, 4vw, 52px);
    font-weight: 800;
    line-height: 0.9;
    color: rgba(199,90,58,0.22);
    letter-spacing: -0.03em;
    user-select: none;
}
.sgp__item-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'Bricolage Grotesque', sans-serif;
    font-size: clamp(18px, 1.8vw, 22px);
    font-weight: 700;
    color: #35302d;
    margin: 0 0 6px;
    line-height: 1.25;
}
.sgp__item-title i {
    color: #c75a3a;
    font-size: 16px;
    flex-shrink: 0;
}
.sgp__item-desc {
    font-size: 15px;
    color: #6b6560;
    line-height: 1.6;
    margin: 0;
    max-width: 640px;
}
@media (max-width: 575px) {
    .sgp__item { grid-template-columns: 1fr; gap: 6px; padding: 22px 0; }
    .sgp__num { font-size: 30px; }
}

/* =====================================================================
   COMO O NEWPDV RESOLVE — .sgs (features contextualizadas por dor)
   ===================================================================== */
.sgs { background: #fff; }
.sgs__header { max-width: 720px; margin-bottom: 44px; }

/* cores por grupo de FUNCIONALIDADE (pilar do produto) */
.sgs [data-group="estoque"]    { --sgs-g: #87C437; --sgs-g-rgb: 135,196,55; }
.sgs [data-group="vendas"]     { --sgs-g: #368DA8; --sgs-g-rgb: 54,141,168; }
.sgs [data-group="financeira"] { --sgs-g: #6ec3df; --sgs-g-rgb: 110,195,223; }
.sgs [data-group="fiscal"]     { --sgs-g: #b885e6; --sgs-g-rgb: 184,133,230; }

/* Essenciais (top 3, card com imagem + frase-ponte contextual) */
.sgs__essential {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 32px;
}
.sgs-card {
    --sgs-g: #368DA8;
    --sgs-g-rgb: 54,141,168;
    position: relative;
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    border: 1px solid rgba(4,95,122,0.08);
    transition: transform .3s cubic-bezier(.2,.8,.2,1), box-shadow .3s;
}
.sgs-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--sgs-g), transparent 85%);
    z-index: 2;
}
.sgs-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(var(--sgs-g-rgb), 0.18);
    color: inherit;
}
.sgs-card__visual {
    position: relative;
    height: 165px;
    overflow: hidden;
}
.sgs-card__visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .5s ease;
}
.sgs-card:hover .sgs-card__visual img { transform: scale(1.06); }
.sgs-card__chip {
    position: absolute;
    top: 12px; left: 12px;
    padding: 4px 10px;
    background: rgba(255,255,255,0.94);
    backdrop-filter: blur(8px);
    border-radius: 6px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    color: var(--sgs-g);
}
.sgs-card__body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: 12px;
}
.sgs-card__name {
    font-family: 'Bricolage Grotesque', sans-serif;
    font-size: 19px;
    font-weight: 700;
    color: #045F7A;
    margin: 0;
    line-height: 1.25;
}
/* Frase-ponte: o context_description do pivot — a resposta à dor DESTE segmento */
.sgs-card__context {
    margin: 0;
    padding: 10px 14px;
    background: rgba(var(--sgs-g-rgb), 0.07);
    border-left: 3px solid var(--sgs-g);
    border-radius: 0 8px 8px 0;
    font-size: 14px;
    font-weight: 600;
    color: #1a3a47;
    line-height: 1.5;
    flex: 1;
}
.sgs-card__link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 700;
    color: #045F7A;
    transition: gap .2s, color .2s;
}
.sgs-card:hover .sgs-card__link { gap: 10px; color: var(--sgs-g); }

/* Secundárias agrupadas por pilar */
.sgs__pillars {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 16px 24px;
    margin-bottom: 32px;
}
.sgs__pillar-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    color: #4a6470;
    margin: 0 0 10px;
}
.sgs__pillar-dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: var(--sgs-g, #368DA8);
    box-shadow: 0 0 8px rgba(var(--sgs-g-rgb, 54,141,168), 0.6);
    flex-shrink: 0;
}
.sgs-mini {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 13px 16px;
    background: #fbfdfe;
    border-radius: 12px;
    border: 1px solid rgba(4,95,122,0.06);
    text-decoration: none;
    color: inherit;
    transition: background .2s, border-color .2s, transform .2s;
}
.sgs-mini + .sgs-mini { margin-top: 8px; }
.sgs-mini:hover {
    background: rgba(var(--sgs-g-rgb, 54,141,168), 0.05);
    border-color: rgba(var(--sgs-g-rgb, 54,141,168), 0.35);
    transform: translateX(4px);
    color: inherit;
}
.sgs-mini__icon {
    flex-shrink: 0;
    color: var(--sgs-g, #368DA8);
    font-size: 16px;
}
.sgs-mini__body { flex: 1; min-width: 0; }
.sgs-mini__name {
    font-family: 'Bricolage Grotesque', sans-serif;
    font-size: 14.5px;
    font-weight: 700;
    color: #045F7A;
    margin: 0 0 2px;
    line-height: 1.3;
}
.sgs-mini__desc {
    font-size: 12.5px;
    color: #4a6470;
    margin: 0;
    line-height: 1.4;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.sgs-mini__arrow {
    flex-shrink: 0;
    color: #bbd0d8;
    transition: color .2s, transform .2s;
}
.sgs-mini:hover .sgs-mini__arrow {
    color: var(--sgs-g, #368DA8);
    transform: translateX(3px);
}

/* Footer da seção */
.sgs__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
}
.sgs__more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 700;
    color: #045F7A;
    text-decoration: none;
    transition: color .2s, gap .2s;
}
.sgs__more:hover { color: var(--seg-accent); gap: 12px; }
.sgs__signal {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: rgba(var(--seg-accent-rgb), 0.08);
    border-radius: 8px;
    font-size: 12.5px;
    font-weight: 600;
    color: #4a6470;
    margin: 0;
}
.sgs__signal i { color: var(--seg-accent); font-size: 13px; }

@media (max-width: 575px) {
    .sgs__essential { grid-template-columns: 1fr; }
    .sgs__pillars { grid-template-columns: 1fr; }
    .sgs__footer { flex-direction: column; align-items: flex-start; }
}

/* =====================================================================
   A ROTINA DO DIA — .sgd (timeline vertical manhã → fechamento)
   ===================================================================== */
.sgd { background: linear-gradient(180deg, #f3f8fa 0%, #fbfdfe 100%); }
.sgd__header { max-width: 680px; margin: 0 auto 44px; text-align: center; }
.sgd__timeline {
    position: relative;
    max-width: 760px;
    margin: 0 auto;
    padding: 0;
    list-style: none;
}
.sgd__item {
    position: relative;
    display: grid;
    grid-template-columns: 108px 1fr;
    gap: 0 28px;
    padding-bottom: 34px;
}
.sgd__item:last-child { padding-bottom: 0; }
/* linha vertical conectando os passos */
.sgd__item::before {
    content: '';
    position: absolute;
    top: 34px;
    bottom: 0;
    left: 130px;
    width: 2px;
    background: linear-gradient(to bottom, rgba(var(--seg-accent-rgb), 0.35), rgba(var(--seg-accent-rgb), 0.08));
}
.sgd__item:last-child::before { display: none; }
/* nó da timeline */
.sgd__item::after {
    content: '';
    position: absolute;
    top: 12px;
    left: 124px;
    width: 14px; height: 14px;
    border-radius: 50%;
    background: #fff;
    border: 3px solid var(--seg-accent);
    box-shadow: 0 0 0 4px rgba(var(--seg-accent-rgb), 0.15);
}
.sgd__time {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    align-self: start;
    padding: 7px 0;
    background: #fff;
    border: 1px solid rgba(var(--seg-accent-rgb), 0.30);
    border-radius: 999px;
    font-family: 'Bricolage Grotesque', sans-serif;
    font-size: 14px;
    font-weight: 700;
    color: var(--seg-accent-2);
    text-align: center;
    box-shadow: 0 4px 12px rgba(4,95,122,0.06);
}
.sgd__body { padding-left: 26px; padding-top: 4px; }
.sgd__item-title {
    font-family: 'Bricolage Grotesque', sans-serif;
    font-size: 17.5px;
    font-weight: 700;
    color: #045F7A;
    margin: 0 0 5px;
    line-height: 1.3;
}
.sgd__item-desc {
    font-size: 14.5px;
    color: #4a6470;
    line-height: 1.6;
    margin: 0;
    max-width: 520px;
}
@media (max-width: 575px) {
    .sgd__item {
        grid-template-columns: 1fr;
        gap: 10px;
        padding-left: 30px;
        padding-bottom: 28px;
    }
    .sgd__item::before { left: 6px; top: 26px; }
    .sgd__item::after  { left: 0;   top: 8px; }
    .sgd__time { justify-self: start; padding: 6px 14px; font-size: 13px; }
    .sgd__body { padding-left: 0; padding-top: 0; }
}

/* =====================================================================
   NÚMEROS / RESULTADOS — .sgm (strip horizontal)
   ===================================================================== */
.sgm {
    background: #fff;
    padding: clamp(50px, 6vw, 80px) 0;
}
.sgm__strip {
    display: flex;
    flex-wrap: wrap;
    gap: 28px 0;
    border-top: 1px solid #e2ecf0;
    border-bottom: 1px solid #e2ecf0;
    padding: clamp(28px, 3.5vw, 44px) 0;
}
.sgm__item {
    flex: 1 1 220px;
    min-width: 200px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 8px;
    padding: 0 20px;
}
.sgm__item + .sgm__item { border-left: 1px solid #e2ecf0; }
.sgm__icon {
    width: 44px; height: 44px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(var(--seg-accent-rgb), 0.10);
    color: var(--seg-accent-2);
    font-size: 18px;
}
.sgm__value {
    font-family: 'Bricolage Grotesque', sans-serif;
    font-size: clamp(30px, 3.4vw, 44px);
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.02em;
    color: var(--seg-accent-2);
}
.sgm__label {
    font-size: 13.5px;
    font-weight: 600;
    color: #4a6470;
    line-height: 1.4;
    max-width: 220px;
}
@media (max-width: 767px) {
    .sgm__item { flex: 1 1 46%; min-width: 150px; }
    .sgm__item + .sgm__item { border-left: none; }
}
@media (max-width: 575px) {
    .sgm__strip { flex-direction: column; gap: 24px; }
    .sgm__item { flex: 1 1 auto; }
}

/* =====================================================================
   DEPOIMENTOS — .sgt (quotes editoriais, sem card box)
   ===================================================================== */
.sgt { background: linear-gradient(180deg, #f3f8fa 0%, #fbfdfe 100%); }
.sgt__header { max-width: 680px; margin: 0 auto 40px; text-align: center; }
.sgt__row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 40px;
    max-width: 1060px;
    margin: 0 auto;
}
.sgt__quote {
    flex: 1 1 380px;
    max-width: 500px;
    margin: 0;
    position: relative;
    padding: 8px 0 0 34px;
}
.sgt__quote::before {
    content: '\201C';
    position: absolute;
    top: -14px; left: -6px;
    font-family: 'Bricolage Grotesque', serif;
    font-size: 76px;
    font-weight: 800;
    line-height: 1;
    color: rgba(var(--seg-accent-rgb), 0.30);
    user-select: none;
}
.sgt__text {
    font-family: 'Bricolage Grotesque', 'Manrope', sans-serif;
    font-size: clamp(17px, 1.6vw, 21px);
    font-weight: 500;
    line-height: 1.5;
    color: #1a3a47;
    margin: 0 0 16px;
    letter-spacing: -0.01em;
}
.sgt__who {
    display: flex;
    flex-direction: column;
    gap: 1px;
    font-size: 13px;
}
.sgt__name { font-weight: 700; color: #045F7A; }
.sgt__biz  { color: #4a6470; font-weight: 500; }
@media (max-width: 575px) {
    .sgt__row { gap: 30px; }
    .sgt__quote { padding-left: 26px; }
}

/* =====================================================================
   FAQ DO SEGMENTO — .sgf (accordion <details>)
   ===================================================================== */
.sgf { background: #fff; }
.sgf__header { text-align: center; margin-bottom: 48px; }
.sgf__list { max-width: 1080px; margin: 0 auto; }
.sgf__item { border-bottom: 1px solid #e2ecf0; }
.sgf__item:first-child { border-top: 1px solid #e2ecf0; }
.sgf__question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    cursor: pointer;
    font: 600 16px/1.4 'Manrope', sans-serif;
    color: #1a3a47;
    list-style: none;
    transition: color .2s;
}
.sgf__question::-webkit-details-marker { display: none; }
.sgf__question::marker { display: none; content: ''; }
.sgf__question:hover { color: var(--seg-accent-2); }
.sgf__toggle {
    width: 28px; height: 28px;
    border-radius: 50%;
    background: #edf4f7;
    color: #5a8a9a;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    flex-shrink: 0;
    margin-left: 16px;
    transition: transform .3s cubic-bezier(.2,.8,.2,1), background .2s;
}
.sgf__item[open] .sgf__toggle {
    transform: rotate(45deg);
    background: var(--seg-accent);
    color: #fff;
}
.sgf__answer { padding: 0 0 20px; }
.sgf__answer p {
    font: 400 14.5px/1.7 'Manrope', sans-serif;
    color: #5a7a8a;
    margin: 0;
    max-width: 640px;
}
