/* =========================================================
   MODELO YNOVA — página de captura
   Brand Book YNOVA 2026: laranja e azul são a base;
   Poppins nos títulos, Inter no texto.
   ========================================================= */

/* Fontes da marca (licença livre OFL), servidas pelo próprio site. */
@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 600; font-display: swap; src: url(fonts/poppins-latin-600-normal.woff2) format('woff2'); }
@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 700; font-display: swap; src: url(fonts/poppins-latin-700-normal.woff2) format('woff2'); }
@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 800; font-display: swap; src: url(fonts/poppins-latin-800-normal.woff2) format('woff2'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 400; font-display: swap; src: url(fonts/inter-latin-400-normal.woff2) format('woff2'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 500; font-display: swap; src: url(fonts/inter-latin-500-normal.woff2) format('woff2'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 600; font-display: swap; src: url(fonts/inter-latin-600-normal.woff2) format('woff2'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 700; font-display: swap; src: url(fonts/inter-latin-700-normal.woff2) format('woff2'); }

:root {
    --yn-laranja: #FE5200;
    --yn-laranja-2: #FE6807;
    --yn-laranja-3: #FF802D;
    --yn-azul: #010088;
    --yn-azul-2: #191BDF;
    --yn-azul-3: #013DF5;
    --yn-grafite: #1E1E1E;
    --yn-cinza: #DDDDDD;
    --yn-fundo: #F5F5F7;
    --yn-texto-2: #4A4A57;
    --yn-raio: 16px;
    --yn-titulo: 'Poppins', system-ui, -apple-system, 'Segoe UI', sans-serif;
    --yn-corpo: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
    margin: 0; background: #fff; color: var(--yn-grafite);
    font: 400 16px/1.6 var(--yn-corpo);
    -webkit-font-smoothing: antialiased;
}
img, video { display: block; max-width: 100%; }
a { color: inherit; }

/* Topo */
.yn-top {
    display: flex; justify-content: center; align-items: center;
    padding: 16px; background: #fff;
    border-bottom: 3px solid var(--yn-laranja);
}
.yn-top img { height: 38px; width: auto; }

/* Seções */
.yn-sec { padding: 44px 16px 52px; position: relative; }
.yn-wrap { max-width: 640px; margin: 0 auto; text-align: center; position: relative; z-index: 1; }

.yn-eyebrow {
    display: inline-block; margin: 0 0 14px; padding: 6px 12px;
    border-radius: 999px; background: #FFF0E8; color: #C23F00;
    font: 600 12px/1.2 var(--yn-corpo); letter-spacing: .08em; text-transform: uppercase;
}
.yn-eyebrow--light { background: rgba(254, 82, 0, .18); color: #FFB48A; }

.yn-title {
    margin: 0 0 12px; color: var(--yn-azul);
    font: 800 clamp(30px, 8vw, 46px)/1.1 var(--yn-titulo);
    letter-spacing: -.02em; text-wrap: balance;
}
.yn-title--sm { font-size: clamp(24px, 6vw, 34px); font-weight: 700; }
.yn-lead { margin: 0 auto 26px; max-width: 34em; color: var(--yn-texto-2); font-size: 17px; text-wrap: pretty; }

/* Seção azul com o padrão gráfico do símbolo (usado com moderação, como pede o brand book) */
.yn-blue { background: var(--yn-azul); color: #fff; overflow: hidden; }
.yn-blue::before {
    content: ""; position: absolute; inset: 0;
    background: url(img/simbolo-branco.png) 0 0 / 88px auto repeat;
    opacity: .05; pointer-events: none;
}
.yn-blue .yn-title { color: #fff; }
.yn-lead--light { color: #C9CCF5; }

/* Vídeos */
.yn-video {
    position: relative; margin: 0 auto 26px;
    border-radius: var(--yn-raio); overflow: hidden; background: #000;
    box-shadow: 0 20px 44px -22px rgba(1, 0, 136, .55);
}
.yn-blue .yn-video { box-shadow: 0 0 0 4px rgba(255, 255, 255, .08), 0 24px 50px -20px rgba(0, 0, 0, .7); }
.yn-video--16x9 { aspect-ratio: 16 / 9; }
.yn-video--4x3 { aspect-ratio: 4 / 3; }
.yn-video iframe, .yn-video video, .yn-play, .yn-play img { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.yn-video video { object-fit: contain; background: #000; }
.yn-play { padding: 0; cursor: pointer; background: #000; }
.yn-play img { object-fit: cover; opacity: .9; transition: opacity .2s; }
.yn-play:hover img { opacity: 1; }
.yn-play-icon {
    position: absolute; left: 50%; top: 50%;
    width: 76px; height: 76px; margin: -38px 0 0 -38px;
    display: grid; place-items: center; border-radius: 50%;
    background: var(--yn-laranja);
    box-shadow: 0 0 0 10px rgba(254, 82, 0, .25), 0 10px 24px rgba(0, 0, 0, .35);
    transition: transform .2s;
}
.yn-play:hover .yn-play-icon { transform: scale(1.06); }
.yn-play-icon svg { width: 32px; height: 32px; fill: #fff; margin-left: 4px; }

/* Botões — texto de 18px em negrito garante contraste do branco sobre o laranja */
.yn-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    width: 100%; max-width: 420px; min-height: 60px; padding: 16px 28px;
    border: 0; border-radius: 14px;
    background: var(--yn-laranja); color: #fff;
    font: 700 18px/1.2 var(--yn-titulo); text-decoration: none; cursor: pointer;
    box-shadow: 0 12px 26px -12px rgba(254, 82, 0, .85);
    transition: transform .15s, background .15s, box-shadow .15s;
}
.yn-btn:hover { background: var(--yn-laranja-2); transform: translateY(-1px); }
.yn-btn:active { transform: translateY(0); }
.yn-btn:focus-visible, .yn-play:focus-visible { outline: 3px solid var(--yn-azul-3); outline-offset: 3px; }
.yn-blue .yn-btn:focus-visible { outline-color: #fff; }
.yn-btn svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.yn-btn--blue { background: var(--yn-azul); max-width: none; box-shadow: 0 12px 26px -14px rgba(1, 0, 136, .9); }
.yn-btn--blue:hover { background: var(--yn-azul-2); }
.yn-btn[disabled] { opacity: .6; cursor: wait; transform: none; }

.yn-note { margin: 12px 0 0; font-size: 13px; color: var(--yn-texto-2); }

/* Formulário */
.yn-form-sec { background: var(--yn-fundo); padding-bottom: 60px; }
.yn-card {
    background: #fff; text-align: left;
    border-radius: var(--yn-raio); padding: 26px 20px;
    border-top: 5px solid var(--yn-laranja);
    box-shadow: 0 18px 40px -26px rgba(1, 0, 136, .35);
}
.yn-field { display: block; margin-bottom: 16px; }
.yn-field span { display: block; margin-bottom: 6px; font: 600 14px/1.3 var(--yn-corpo); color: var(--yn-grafite); }
.yn-field input {
    width: 100%; min-height: 52px; padding: 12px 14px;
    border: 1.5px solid var(--yn-cinza); border-radius: 10px;
    background: #fff; color: var(--yn-grafite);
    font: 400 17px/1.3 var(--yn-corpo);
    transition: border-color .15s, box-shadow .15s;
}
.yn-field input:focus { outline: none; border-color: var(--yn-azul-3); box-shadow: 0 0 0 3px rgba(1, 61, 245, .18); }
.yn-field input[aria-invalid="true"] { border-color: #C62828; }
.yn-check { display: flex; gap: 10px; align-items: flex-start; margin: 4px 0 18px; font-size: 14px; line-height: 1.45; color: var(--yn-texto-2); cursor: pointer; }
.yn-check input { flex: 0 0 auto; width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--yn-laranja); }
.yn-error { margin: 0 0 14px; padding: 10px 12px; border-radius: 8px; background: #FDECEC; color: #9B1C1C; font-size: 14px; }
.yn-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.yn-success { text-align: center; padding: 10px 0; }
.yn-success img { margin: 0 auto 14px; height: 41px; width: auto; }
.yn-success .vx-success-text { margin: 0 0 16px; font: 600 19px/1.4 var(--yn-titulo); color: var(--yn-azul); }
.yn-link { color: #C23F00; font-weight: 600; }

/* Rodapé */
.yn-foot { padding: 30px 16px 40px; text-align: center; background: #fff; font-size: 14px; color: var(--yn-texto-2); }
.yn-foot img { margin: 0 auto 10px; height: 29px; width: auto; }
.yn-foot p { margin: 4px 0; }
.yn-slogan { font: 700 16px/1.3 var(--yn-titulo); color: var(--yn-azul); margin-bottom: 10px !important; }
.yn-foot a { color: #C23F00; font-weight: 600; text-decoration: none; }

/* Página indisponível */
.yn-off { min-height: 100vh; display: grid; place-items: center; padding: 24px 16px; text-align: center; }
.yn-off img { margin: 0 auto 24px; height: 48px; width: auto; }

/* Vitrine de produtos (aparece só quando a empresa tem produtos cadastrados) */
.yn-loja { background: #fff; }
.yn-btn--loja { background: #fff; color: var(--yn-azul); box-shadow: inset 0 0 0 2px var(--yn-azul); }
.yn-btn--loja:hover { background: var(--yn-azul); color: #fff; }

@media (min-width: 720px) {
    .yn-sec { padding: 64px 24px 72px; }
    .yn-card { padding: 34px 32px; }
}
@media (prefers-reduced-motion: reduce) {
    * { transition: none !important; scroll-behavior: auto !important; }
}

/* Link da política de privacidade */
.sac-privacy { margin-top: 10px !important; font-size: 12px; opacity: .8; }
.yn-check a { color: inherit; }
