/* =============================================================
   Loop Mídia
   Base clara, acento em preenchimento, cantos generosos,
   bloco escuro fechando a página.

   TROCAR O ACENTO: --accent / --accent-ink / --accent-soft
   abaixo. Nada mais precisa mudar.
   ============================================================= */

:root {
    /* Papel e tinta */
    --paper: #ffffff;
    /* Branco da marca */
    --paper-2: #f4f7f8;
    --ink: #000000;
    /* Preto da marca — 21:1 no branco */
    --ink-2: #55677a;
    /* 5.8:1  — corpo de texto, cinza-azulado */
    --ink-3: #64768a;
    /* 4.7:1  — legendas */
    --rule: #e3e9ec;

    /* Azul Loop. Cuidado: #3796d9 dá só 3.2:1 no branco — reprova
       como texto normal, e branco por cima dele também reprova.
       Por isso ele só entra como PREENCHIMENTO com preto por cima
       (5.7:1) ou como TEXTO SOBRE PRETO (5.7:1).
       --accent-ink é a versão escurecida, a única segura para texto
       sobre branco e para receber texto branco (5.2:1 nos dois). */
    --accent: #3796d9;
    --accent-ink: #1b6fb8;
    --accent-soft: #eaf3fb;

    --r-lg: 20px;
    --r-md: 12px;
    --r-sm: 8px;

    --shadow-card: 0 1px 2px rgba(0, 0, 0, 0.05), 0 8px 24px rgba(0, 0, 0, 0.07);
    --shadow-float: 0 4px 12px rgba(0, 0, 0, 0.07), 0 16px 40px rgba(0, 0, 0, 0.13);

    --ease: cubic-bezier(0.4, 0, 0.2, 1);
    --t: 160ms var(--ease);

    --pad-x: clamp(20px, 4vw, 40px);
    --section-y: clamp(64px, 8vw, 108px);
    --header-h: 72px;

    --font: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--header-h) + 16px);
    -webkit-text-size-adjust: 100%;
}

body {
    background: var(--paper);
    color: var(--ink);
    font-family: var(--font);
    font-size: 1rem;
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

img,
video {
    max-width: 100%;
    display: block;
}

h1,
h2,
h3,
h4 {
    color: var(--ink);
    font-weight: 800;
    line-height: 1.12;
    letter-spacing: -0.028em;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color var(--t);
}

::selection {
    background: var(--accent);
    color: var(--ink);
}

:focus-visible {
    outline: 2px solid var(--ink);
    outline-offset: 3px;
    border-radius: 4px;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--pad-x);
}

/* Rótulos versaletes — mesma família, caixa alta e entreletra */
.eyebrow,
.badge,
.exclusive,
.footer-brand p,
.frame-caption {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* Palavra em destaque no <h1>. O azul da marca dá 3.2:1 no branco:
   reprova como texto normal, mas passa em AA para texto grande
   (mínimo 3:1), que é o caso aqui — 64px em peso 800.
   NÃO reaproveitar esta classe em texto de corpo. */
.highlight {
    color: var(--accent);
}

/* --- Cabeçalho de seção ------------------------------------ */
.section-header {
    max-width: 46ch;
    margin-bottom: clamp(32px, 4vw, 52px);
}

.section-header h2 {
    font-size: clamp(1.7rem, 3.2vw, 2.5rem);
}

.section-header p {
    color: var(--ink-2);
    font-size: 1.0625rem;
    margin-top: 14px;
}

/* --- Botões ------------------------------------------------ */
.btn {
    display: inline-block;
    font-family: var(--font);
    font-weight: 700;
    font-size: 0.94rem;
    line-height: 1.2;
    padding: 15px 26px;
    border: 1px solid transparent;
    border-radius: var(--r-sm);
    text-align: center;
    cursor: pointer;
    transition: background var(--t), color var(--t), border-color var(--t);
}

.btn-primary {
    background: var(--ink);
    border-color: var(--ink);
    color: var(--paper);
}

.btn-primary:hover {
    background: var(--accent-ink);
    border-color: var(--accent-ink);
}

.btn-ghost {
    background: var(--paper);
    border-color: var(--rule);
    color: var(--ink);
}

.btn-ghost:hover {
    border-color: var(--ink);
}

.btn-block {
    display: block;
    width: 100%;
}

/* Sobre fundo preto o botão vira branco — o azul não sustenta
   texto branco por cima (3.2:1). Hover devolve o azul da marca,
   aí com texto preto (5.7:1). */
.on-dark .btn-primary {
    background: var(--paper);
    border-color: var(--paper);
    color: var(--ink);
}

.on-dark .btn-primary:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: var(--ink);
}

/* =============================================================
   Cabeçalho
   ============================================================= */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: saturate(180%) blur(10px);
    z-index: 1000;
    border-bottom: 1px solid var(--rule);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    height: var(--header-h);
}

.logo {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

/* Versão colorida da marca (azul + preto), já recortada e com o branco
   externo transparente. Só serve em fundo claro — para fundo escuro
   existe `logo loop.png`, que é a marca em branco. */
.logo-img {
    height: 38px;
    width: auto;
    object-fit: contain;
}

.menu-toggle {
    display: none;
}

.nav {
    display: flex;
    align-items: center;
    gap: clamp(18px, 2vw, 30px);
    margin-right: auto;
    margin-left: clamp(18px, 3vw, 48px);
}

.nav a {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--ink-2);
}

.nav a:hover {
    color: var(--ink);
}

.header-cta {
    display: flex;
    align-items: center;
    gap: 18px;
    flex-shrink: 0;
}

.header-cta .btn {
    padding: 11px 20px;
    font-size: 0.88rem;
}

/* =============================================================
   1. Hero
   ============================================================= */
.hero {
    padding: calc(var(--header-h) + clamp(40px, 6vw, 80px)) 0 var(--section-y);
}

.hero-container {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 0.92fr);
    gap: clamp(36px, 5vw, 80px);
    align-items: center;
}

.hero-text h1 {
    font-size: clamp(2.3rem, 5vw, 3.7rem);
    line-height: 1.05;
    letter-spacing: -0.038em;
    margin-bottom: 22px;
}

.hero-text>p {
    font-size: clamp(1.0625rem, 1.4vw, 1.175rem);
    color: var(--ink-2);
    max-width: 44ch;
    margin-bottom: 30px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 26px;
}

.hero-proof {
    font-size: 0.9rem;
    color: var(--ink-3);
}

.hero-proof strong {
    color: var(--ink);
    font-weight: 700;
}

/* --- Mídia do hero com cartão flutuante --- */
.hero-visual {
    position: relative;
}

.hero-media {
    position: relative;
    border-radius: var(--r-lg);
    overflow: hidden;
    background: var(--paper-2);
    aspect-ratio: 4 / 5;
}

.hero-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.float-card {
    position: absolute;
    left: clamp(-8px, -1vw, 0px);
    bottom: 26px;
    background: var(--paper);
    border-radius: var(--r-md);
    box-shadow: var(--shadow-float);
    padding: 16px 20px;
    max-width: 230px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.float-price {
    font-size: 1.3rem;
    font-weight: 800;
    letter-spacing: -0.03em;
}

.float-note {
    font-size: 0.8rem;
    line-height: 1.35;
    color: var(--ink-2);
}

/* =============================================================
   2. Como Funciona
   ============================================================= */
.how-it-works-section {
    padding: var(--section-y) 0;
    background: var(--paper-2);
}

.steps-container {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
}

.step-card {
    position: relative;
    background: var(--paper);
    border-radius: var(--r-md);
    padding: 26px 24px 28px;
    box-shadow: var(--shadow-card);
}

/* O ícone sai: o número em círculo já carrega a sequência */
.step-icon {
    display: none;
}

.step-number {
    position: static;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--accent-ink);
    color: var(--paper);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0;
    margin-bottom: 18px;
}

.step-card h3 {
    font-size: 1.05rem;
    margin-bottom: 9px;
}

.step-card p {
    color: var(--ink-2);
    font-size: 0.92rem;
    line-height: 1.55;
}

/* =============================================================
   3. Planos — SEÇÃO REMOVIDA DO HTML
   O bloco "Painel de LED / Essencial / Business / Premium" saiu
   do index.html. Estas regras ficam guardadas caso a seção volte;
   hoje não são aplicadas a nada. Pode apagar sem risco.
   ============================================================= */
.plans-section {
    padding: var(--section-y) 0;
}

.plans-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
    align-items: stretch;
}

.plan-card {
    position: relative;
    background: var(--paper);
    border: 1px solid var(--rule);
    border-radius: var(--r-md);
    padding: 32px 28px 30px;
    display: flex;
    flex-direction: column;
    transition: border-color var(--t);
}

.plan-card:hover {
    border-color: var(--ink);
}

.plan-card h3 {
    font-size: 1.1rem;
    margin-bottom: 16px;
}

.plan-card .price {
    font-size: 2.3rem;
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 1;
    margin-bottom: 24px;
    font-variant-numeric: tabular-nums;
}

.plan-card .price span {
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: -0.01em;
    color: var(--ink-3);
    margin-left: 4px;
}

.plan-card .features {
    list-style: none;
    flex-grow: 1;
    margin-bottom: 24px;
}

.plan-card .features li {
    padding: 11px 0;
    border-bottom: 1px solid var(--rule);
    color: var(--ink-2);
    font-size: 0.92rem;
    line-height: 1.5;
}

.plan-card .features li:last-child {
    border-bottom: none;
}

.plan-card .features strong {
    color: var(--ink);
    font-weight: 700;
}

/* O plano mais escolhido é o único bloco invertido desta seção */
.plan-card.featured {
    background: var(--ink);
    border-color: var(--ink);
}

.plan-card.featured h3 {
    color: var(--paper);
}

.plan-card.featured .price {
    color: var(--accent);
}

.plan-card.featured .price span {
    color: rgba(255, 255, 255, 0.55);
}

.plan-card.featured .features li {
    color: rgba(255, 255, 255, 0.72);
    border-bottom-color: rgba(255, 255, 255, 0.14);
}

.plan-card.featured .features strong {
    color: var(--paper);
}

.plan-card.featured .btn-primary {
    background: var(--paper);
    border-color: var(--paper);
    color: var(--ink);
}

.plan-card.featured .btn-primary:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: var(--ink);
}

.plan-card .badge {
    position: absolute;
    top: 0;
    left: 28px;
    transform: translateY(-50%);
    background: var(--accent-ink);
    color: var(--paper);
    padding: 5px 12px;
    border-radius: 999px;
}

.plan-card.premium .exclusive {
    display: inline-block;
    background: var(--accent-soft);
    color: var(--accent-ink);
    border-radius: 999px;
    padding: 3px 9px;
    margin-left: 8px;
    vertical-align: middle;
}

/* =============================================================
   4. Calculadora
   ============================================================= */
.calculator-section {
    padding: var(--section-y) 0;
    background: var(--paper-2);
}

/* --- Mapa dos pontos (Leaflet) --- */
.map-wrap {
    margin-bottom: 20px;
}

.points-map {
    height: clamp(320px, 42vw, 440px);
    border-radius: var(--r-md);
    overflow: hidden;
    box-shadow: var(--shadow-card);
    background: var(--paper);
    z-index: 0;
    /* mantém o mapa abaixo do header fixo */
}

.map-note {
    margin-top: 10px;
    font-size: 0.82rem;
    color: var(--ink-3);
}

/* O Leaflet traz visual próprio (fonte serifada, botões cinza, sombras
   pesadas). Tudo abaixo realinha os controles ao sistema do site. */
.leaflet-container {
    font-family: var(--font);
    background: var(--paper-2);
}

/* Zoom: dois quadrados brancos com fio, sem gradiente nem sombra forte */
.leaflet-touch .leaflet-bar,
.leaflet-bar {
    border: none;
    border-radius: var(--r-sm);
    overflow: hidden;
    box-shadow: var(--shadow-card);
}

.leaflet-bar a,
.leaflet-touch .leaflet-bar a {
    width: 32px;
    height: 32px;
    line-height: 32px;
    color: var(--ink);
    background: var(--paper);
    border-bottom: 1px solid var(--rule);
    font-size: 1.05rem;
    font-weight: 600;
}

.leaflet-bar a:last-child {
    border-bottom: none;
}

.leaflet-bar a:hover,
.leaflet-touch .leaflet-bar a:hover {
    background: var(--paper-2);
    color: var(--accent-ink);
}

/* Crédito obrigatório do OSM/CARTO — mantido, só discreto */
.leaflet-control-attribution {
    background: rgba(255, 255, 255, 0.82);
    color: var(--ink-3);
    font-size: 0.62rem;
    padding: 2px 7px;
    border-radius: var(--r-sm) 0 0 0;
}

.leaflet-control-attribution a {
    color: var(--ink-2);
}

/* Popup como cartão do site: cantos, sombra e fonte iguais aos demais */
.leaflet-popup-content-wrapper {
    border-radius: var(--r-md);
    box-shadow: var(--shadow-float);
    padding: 4px;
}

.leaflet-popup-content {
    margin: 12px 14px;
    line-height: 1.45;
}

.leaflet-popup-tip {
    box-shadow: none;
}

.leaflet-container a.leaflet-popup-close-button {
    color: var(--ink-3);
    padding: 8px 8px 0 0;
    font-weight: 400;
}

.leaflet-container a.leaflet-popup-close-button:hover {
    color: var(--ink);
    background: transparent;
}

/* Pino: gota azul da marca, desenhada em CSS — sem imagem externa */
.pin .pin-dot {
    display: block;
    width: 20px;
    height: 20px;
    margin: 0 auto;
    border-radius: 50% 50% 50% 0;
    transform: rotate(-45deg);
    background: var(--accent-ink);
    border: 2px solid var(--paper);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.35);
}

.pin-popup {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 168px;
    font-family: var(--font);
}

.pin-popup strong {
    font-size: 0.94rem;
    color: var(--ink);
}

.pin-price {
    font-size: 0.94rem;
    font-weight: 800;
    color: var(--accent-ink);
}

.pin-price em {
    font-style: normal;
    font-weight: 500;
    font-size: 0.76rem;
    color: var(--ink-3);
}

/* Pino de local aproximado: vazado, para não se passar por exato */
.pin-aprox .pin-dot {
    background: var(--paper);
    border: 3px solid var(--accent-ink);
}

/* Pino de ponto já selecionado (provedor OpenStreetMap) */
.pin-on .pin-dot {
    background: var(--ink);
    border-color: var(--paper);
}

.pin-aviso {
    font-size: 0.7rem;
    line-height: 1.35;
    color: var(--ink-3);
    max-width: 190px;
}

.pin-btn {
    margin-top: 8px;
    padding: 9px 12px;
    font-family: var(--font);
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--paper);
    background: var(--ink);
    border: 1px solid var(--ink);
    border-radius: var(--r-sm);
    cursor: pointer;
    transition: background var(--t), border-color var(--t);
}

.pin-btn:hover {
    background: var(--accent-ink);
    border-color: var(--accent-ink);
}

.pin-btn.is-on {
    background: var(--paper);
    color: var(--ink);
    border-color: var(--rule);
}

/* LINK REMOVIDO do balão — o "Abrir no Google Maps" saiu do popup.
   Regra guardada caso volte; hoje não se aplica a nada. */
.pin-link {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--accent-ink);
    text-decoration: underline;
}

.calculator-container {
    display: grid;
    grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
    gap: 20px;
    align-items: start;
}

.locations-list {
    background: var(--paper);
    border-radius: var(--r-md);
    box-shadow: var(--shadow-card);
    padding: 26px;
}

.master-checkbox {
    margin-bottom: 18px;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--rule);
}

.master-checkbox label,
.location-item label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-weight: 500;
    font-size: 0.875rem;
    line-height: 1.35;
    min-width: 0;
    flex: 1 1 auto;
    user-select: none;
}

.master-checkbox label {
    font-weight: 700;
}

.master-checkbox input,
.location-item input {
    margin-right: 11px;
    width: 17px;
    height: 17px;
    flex-shrink: 0;
    cursor: pointer;
    accent-color: var(--ink);
}

/* Esteira: coluna única rolável, cada ponto com perfil, preço e ação */
.locations-wrapper {
    display: block;
    max-height: 520px;
    overflow-y: auto;
    overflow-x: hidden;
    overscroll-behavior: contain;
    /* espaço para a barra de rolagem não colar no conteúdo */
    padding-right: 6px;
}

.locations-wrapper::-webkit-scrollbar {
    width: 8px;
}

.locations-wrapper::-webkit-scrollbar-thumb {
    background: var(--rule);
    border-radius: 99px;
}

.location-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding: 14px 10px;
    border-radius: var(--r-sm);
    border-bottom: 1px solid var(--rule);
    transition: background var(--t);
}

.location-item:last-child {
    border-bottom: none;
}

.location-item:hover {
    background: var(--paper-2);
}

.location-item.is-on {
    background: var(--accent-soft);
}

.loc-info {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
}

.loc-name {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--ink);
    line-height: 1.3;
}

.loc-profile {
    font-size: 0.8rem;
    line-height: 1.4;
    color: var(--ink-2);
}

.loc-acao {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-shrink: 0;
}

.loc-preco-bloco {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    line-height: 1.2;
}

.loc-por {
    font-size: 0.68rem;
    color: var(--ink-3);
}

/* Disponível: contorno leve. São 15 na tela ao mesmo tempo — botão
   preenchido em todos viraria uma parede preta. */
.loc-btn {
    font-family: var(--font);
    font-size: 0.8rem;
    font-weight: 700;
    padding: 9px 16px;
    min-width: 104px;
    color: var(--ink);
    background: var(--paper);
    border: 1px solid var(--rule);
    border-radius: 999px;
    cursor: pointer;
    transition: background var(--t), color var(--t), border-color var(--t);
}

.loc-btn:hover {
    border-color: var(--ink);
}

/* Selecionado: preenchido, para o estado saltar na varredura da lista */
.loc-btn.is-on {
    background: var(--ink);
    color: var(--paper);
    border-color: var(--ink);
}

.loc-btn.is-on:hover {
    background: var(--accent-ink);
    border-color: var(--accent-ink);
}

/* BOTÃO REMOVIDO da lista — o "Ver detalhes" saiu do initList().
   A regra fica guardada caso ele volte; hoje não se aplica a nada. */
.location-details-btn {
    background: none;
    border: none;
    font-family: var(--font);
    font-weight: 600;
    color: var(--accent-ink);
    font-size: 0.75rem;
    cursor: pointer;
    margin-left: auto;
    margin-right: 4px;
    padding: 2px 0;
    white-space: nowrap;
    border-bottom: 1px solid currentColor;
}

.location-details-btn:hover {
    color: var(--ink);
}

.location-price {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--ink);
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

/* --- Resumo do pedido --- */
.calculator-summary {
    background: var(--paper);
    border-radius: var(--r-md);
    box-shadow: var(--shadow-float);
    padding: 26px;
    position: sticky;
    top: calc(var(--header-h) + 20px);
}

.calculator-summary h3 {
    font-size: 1.05rem;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--rule);
}

.summary-item {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 12px;
    margin-bottom: 13px;
    font-size: 0.92rem;
    color: var(--ink-2);
}

.summary-item strong {
    font-weight: 700;
    color: var(--ink);
    font-variant-numeric: tabular-nums;
}

.duration-selector {
    margin: 20px 0;
}

.duration-selector label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.92rem;
    color: var(--ink-2);
}

.duration-selector select {
    width: 100%;
    padding: 13px 14px;
    background: var(--paper);
    color: var(--ink);
    font-family: var(--font);
    font-weight: 500;
    border: 1px solid var(--rule);
    border-radius: var(--r-sm);
    font-size: 0.94rem;
    outline: none;
    cursor: pointer;
    transition: border-color var(--t);
}

.duration-selector select:hover,
.duration-selector select:focus {
    border-color: var(--ink);
}

.discount-row strong {
    color: var(--accent-ink);
}

.calc-note {
    font-size: 0.8rem;
    line-height: 1.5;
    color: var(--ink-3);
    margin: -4px 0 16px;
}

.total-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 12px;
    margin: 20px 0;
    padding-top: 18px;
    border-top: 1px solid var(--rule);
    font-size: 0.92rem;
    color: var(--ink-2);
}

.total-row .price-display {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.old-price {
    font-size: 0.85rem;
    color: var(--ink-3);
    text-decoration: line-through;
}

.total-row strong {
    font-size: 1.95rem;
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 1.1;
    color: var(--ink);
    font-variant-numeric: tabular-nums;
}

/* =============================================================
   Modal
   ============================================================= */
.modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-content {
    background: var(--paper);
    width: 100%;
    max-width: 800px;
    border-radius: var(--r-lg);
    display: grid;
    grid-template-columns: 1fr 1fr;
    overflow: hidden;
    position: relative;
    box-shadow: var(--shadow-float);
}

.close-modal {
    position: absolute;
    top: 12px;
    right: 18px;
    font-size: 26px;
    line-height: 1;
    color: var(--ink-3);
    cursor: pointer;
    z-index: 10;
}

.close-modal:hover {
    color: var(--ink);
}

.modal-visual {
    height: 400px;
    background: var(--paper-2);
}

.modal-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.modal-info {
    padding: 34px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.modal-info h3 {
    font-size: 1.4rem;
    margin-bottom: 18px;
}

.modal-info p {
    margin-bottom: 10px;
    color: var(--ink-2);
    font-size: 0.94rem;
}

.modal-info strong {
    color: var(--ink);
    font-weight: 700;
}

/* =============================================================
   5. Especificações
   ============================================================= */
.specs-section {
    padding: var(--section-y) 0;
}

.specs-container {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
    gap: clamp(36px, 5vw, 72px);
    align-items: center;
}

.specs-text h2 {
    font-size: clamp(1.7rem, 3.2vw, 2.5rem);
    margin-bottom: 32px;
}

.spec-item {
    margin-bottom: 22px;
    padding-left: 18px;
    border-left: 2px solid var(--rule);
    transition: border-color var(--t);
}

.spec-item:hover {
    border-left-color: var(--accent);
}

.spec-item h3 {
    font-size: 0.98rem;
    margin-bottom: 5px;
}

.spec-item p {
    color: var(--ink-2);
    font-size: 0.94rem;
}

.production-note {
    background: var(--accent-soft);
    border-left-color: var(--accent);
    border-radius: 0 var(--r-sm) var(--r-sm) 0;
    padding: 18px;
    margin-bottom: 0;
}

.production-note:hover {
    border-left-color: var(--accent);
}

/* Moldura 9:16 — proporção real da tela exibida */
.specs-visual {
    display: flex;
    justify-content: flex-end;
}

.specs-frame {
    width: min(100%, 264px);
}

.frame-media {
    aspect-ratio: 9 / 16;
    overflow: hidden;
    border-radius: var(--r-lg);
    background: var(--paper-2);
    box-shadow: var(--shadow-float);
}

.frame-media video,
.frame-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.frame-caption {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-top: 12px;
    color: var(--ink-3);
}

/* =============================================================
   6. Carrossel de clientes
   ============================================================= */
.carousel-section {
    padding: var(--section-y) 0;
    overflow: hidden;
    background: var(--paper-2);
}

.carousel-container {
    width: 100%;
    overflow: hidden;
    position: relative;
    padding: 8px 0;
}

.carousel-container::before,
.carousel-container::after {
    content: '';
    position: absolute;
    top: 0;
    width: clamp(40px, 10vw, 150px);
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

.carousel-container::before {
    left: 0;
    background: linear-gradient(to right, var(--paper-2) 20%, rgba(244, 247, 248, 0) 100%);
}

.carousel-container::after {
    right: 0;
    background: linear-gradient(to left, var(--paper-2) 20%, rgba(244, 247, 248, 0) 100%);
}

.carousel-track {
    display: flex;
    width: calc(116px * 20);
    animation: scroll 34s linear infinite;
}

.carousel-track:hover {
    animation-play-state: paused;
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(calc(-116px * 10));
    }
}

/* As logos dos clientes são JPGs 150x150 de fundo opaco (preto, marinho,
   vinho). Não dá para soltá-las sobre o branco como logo transparente —
   viram quadrados de borda dura. Então viram ladrilho arredondado. */
.client-logo {
    width: 92px;
    height: 92px;
    margin: 0 12px;
    flex-shrink: 0;
    border-radius: 18px;
    overflow: hidden;
    background: var(--paper);
    box-shadow: var(--shadow-card);
}

.carousel-img {
    width: 100%;
    height: 100%;
    max-width: none;
    max-height: none;
    object-fit: cover;
}

/* =============================================================
   7. Seja um parceiro — bloco escuro que fecha a página
   ============================================================= */
.partner-section {
    background: var(--ink);
    color: rgba(255, 255, 255, 0.72);
    padding: var(--section-y) 0;
}

.partner-text {
    max-width: 54ch;
}

.partner-text h2 {
    color: var(--paper);
    font-size: clamp(1.7rem, 3.2vw, 2.5rem);
    margin-bottom: 18px;
}

.partner-text p {
    font-size: 1.0625rem;
    color: rgba(255, 255, 255, 0.72);
    margin-bottom: 30px;
}

/* =============================================================
   Barra fixa do pacote
   ============================================================= */
.barra-total {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1200;
    background: var(--ink);
    color: var(--paper);
    box-shadow: 0 -8px 28px rgba(0, 0, 0, 0.18);
    animation: subirBarra 220ms var(--ease);
}

@keyframes subirBarra {
    from {
        transform: translateY(100%);
    }

    to {
        transform: translateY(0);
    }
}

.barra-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding-top: 14px;
    padding-bottom: 14px;
}

.barra-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.barra-qtd {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--accent);
}

.barra-valor {
    font-size: 1.4rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.1;
    color: var(--paper);
}

.barra-valor em {
    font-style: normal;
    font-size: 0.8rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.6);
    margin-left: 6px;
}

.barra-cta {
    flex-shrink: 0;
    background: var(--paper);
    border-color: var(--paper);
    color: var(--ink);
}

.barra-cta:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: var(--ink);
}

/* Espaço para a barra não cobrir o fim do rodapé */
body.com-barra {
    padding-bottom: 84px;
}

@media (max-width: 700px) {
    .barra-inner {
        gap: 12px;
    }

    .barra-valor {
        font-size: 1.15rem;
    }

    .barra-cta {
        padding: 12px 16px;
        font-size: 0.84rem;
    }
}

/* =============================================================
   8. Rodapé — continua o bloco escuro
   ============================================================= */
.footer {
    background: var(--ink);
    color: rgba(255, 255, 255, 0.72);
    padding: clamp(40px, 5vw, 64px) 0 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-container {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 40px;
    flex-wrap: wrap;
    padding-bottom: 36px;
}

.footer-brand h3 {
    font-size: 1.25rem;
    color: var(--paper);
    margin-bottom: 7px;
}

.footer-brand p {
    color: var(--accent);
}

.footer-contact {
    display: flex;
    flex-direction: column;
    gap: 11px;
    align-items: flex-start;
}

.contact-link {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.92rem;
    color: rgba(255, 255, 255, 0.72);
}

.contact-link:hover {
    color: var(--paper);
}

.contact-link svg {
    width: 17px;
    height: 17px;
    flex-shrink: 0;
    opacity: 0.55;
}

.footer-bottom {
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.8rem;
}

.footer-bottom p {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--pad-x);
}

/* =============================================================
   9. Responsivo
   ============================================================= */
@media (max-width: 992px) {

    .hero-container,
    .specs-container,
    .calculator-container,
    .modal-content {
        grid-template-columns: 1fr;
    }

    .hero-media {
        aspect-ratio: 3 / 2;
        max-height: 420px;
    }

    .float-card {
        left: 16px;
        bottom: 16px;
    }

    .specs-visual {
        justify-content: flex-start;
    }

    .steps-container,
    .plans-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .calculator-summary {
        position: static;
    }

    .modal-content {
        max-height: 88vh;
        overflow-y: auto;
    }

    .modal-visual {
        height: 230px;
    }
}

@media (max-width: 860px) {
    :root {
        --header-h: 64px;
    }

    .nav {
        margin: 0;
    }

    .header-cta {
        display: none;
    }

    .logo-img {
        height: 32px;
    }

    /* Navegação mobile */
    .menu-toggle {
        display: flex;
        flex-direction: column;
        gap: 5px;
        cursor: pointer;
        z-index: 1001;
        padding: 4px;
        order: 3;
    }

    .menu-toggle span {
        display: block;
        width: 26px;
        height: 2px;
        border-radius: 2px;
        background: var(--ink);
        transition: transform var(--t), opacity var(--t);
    }

    .nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 78%;
        max-width: 340px;
        height: 100vh;
        background: var(--paper);
        border-left: 1px solid var(--rule);
        flex-direction: column;
        justify-content: center;
        align-items: flex-start;
        gap: 24px;
        padding: 0 32px;
        transition: right 260ms var(--ease);
    }

    .nav.active {
        right: 0;
    }

    .nav a {
        font-size: 1.45rem;
        font-weight: 800;
        letter-spacing: -0.03em;
        color: var(--ink);
    }

    .menu-toggle.active span:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }

    .menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .menu-toggle.active span:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }
}

@media (max-width: 700px) {

    .steps-container,
    .plans-grid,
    .locations-wrapper {
        grid-template-columns: 1fr;
    }

    .plan-card .badge {
        left: 24px;
    }

    .locations-list,
    .calculator-summary {
        padding: 22px 20px;
    }

    .hero-actions .btn {
        flex: 1 1 auto;
    }

    .footer-container {
        flex-direction: column;
        gap: 30px;
    }
}

@media (max-width: 480px) {
    .hero-media {
        aspect-ratio: 4 / 5;
        max-height: none;
    }

    .float-card {
        max-width: 200px;
    }

    .specs-frame {
        width: min(100%, 224px);
    }
}

/* =============================================================
   10. Movimento reduzido
   ============================================================= */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}
