/* ==========================================================================
   Tokens: Suprigraf (CMYK da logo: ciano, magenta, amarelo, preto)
   ========================================================================== */
:root {
    --papel: #ffffff;
    --fundo: #f2f4fa;
    --tinta: #1b1c21;
    --tinta-2: #2e3038;
    --magenta: #e2007a;
    --magenta-2: #c0006a;
    --ciano: #00a0e3;
    --ciano-escuro: #0072ad;
    --amarelo: #ffd200;
    --cinza: #555963;
    --linha: #dde1ec;

    --font-sans: 'Instrument Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    --font-display: 'Unbounded', 'Arial Black', system-ui, sans-serif;

    --radius: 6px;
    --header-h: 72px;
    --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

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

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

body {
    font-family: var(--font-sans);
    font-size: 1.0625rem;
    line-height: 1.6;
    color: var(--tinta);
    background: var(--papel);
    -webkit-font-smoothing: antialiased;
}

body.menu-open { overflow: hidden; }

img, iframe { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 700; line-height: 1.12; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.1rem, 4.6vw, 3.6rem); }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.4rem); margin-bottom: 0.8rem; }
h3 { font-size: 1.15rem; margin-bottom: 0.9rem; }

.sprite { display: none; }
.icon { width: 1.15em; height: 1.15em; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.container { width: min(1180px, 100% - 2.5rem); margin-inline: auto; }

.skip-link { position: absolute; left: 1rem; top: -4rem; z-index: 100; padding: 0.6rem 1rem; background: var(--tinta); color: #fff; border-radius: var(--radius); }
.skip-link:focus { top: 1rem; }

:focus-visible { outline: 3px solid var(--ciano-escuro); outline-offset: 3px; }

/* Botões: magenta com texto branco (contraste AA) */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    padding: 0.8rem 1.3rem;
    border: 2px solid transparent;
    border-radius: var(--radius);
    font-weight: 700;
    font-size: 0.95rem;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.2s;
}
.btn:hover { transform: translateY(-1px); }
.btn-sm { padding: 0.55rem 1rem; font-size: 0.9rem; }
.btn-lg { padding: 1rem 1.6rem; font-size: 1.02rem; }
.btn-primary { background: var(--magenta); color: #fff; }
.btn-primary:hover { background: var(--magenta-2); }
.btn-outline { border-color: var(--tinta); color: var(--tinta); background: transparent; }
.btn-outline:hover { background: var(--tinta); color: #fff; }
.btn-dark { background: var(--tinta); color: #fff; }
.btn-dark:hover { background: var(--tinta-2); }

.stars { display: inline-flex; gap: 2px; color: var(--amarelo); }

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    height: var(--header-h);
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s;
}
.site-header.is-scrolled { border-color: var(--linha); }

.header-inner { height: 100%; display: flex; align-items: center; gap: 2rem; }

.brand { display: flex; align-items: center; gap: 0.7rem; text-decoration: none; margin-right: auto; }
.brand-logo { height: 46px; width: auto; }
.brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.brand-text strong { font-family: var(--font-display); font-size: 1.05rem; letter-spacing: -0.01em; }
.brand-text span { font-size: 0.8rem; color: var(--cinza); }

.nav-list { display: flex; gap: 1.8rem; list-style: none; }
.nav-link { text-decoration: none; font-weight: 500; font-size: 0.95rem; color: var(--cinza); transition: color 0.2s; }
.nav-link:hover, .nav-link.is-active { color: var(--tinta); }

.header-actions { display: flex; align-items: center; gap: 0.75rem; }

.menu-toggle { display: none; width: 44px; height: 44px; border: 0; background: none; cursor: pointer; flex-direction: column; justify-content: center; gap: 5px; padding: 10px; }
.menu-toggle span { display: block; height: 2px; background: var(--tinta); border-radius: 2px; transition: transform 0.25s, opacity 0.25s; }
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ==========================================================================
   Hero: impressora + folha saindo
   ========================================================================== */
.hero { padding: clamp(2.5rem, 6vw, 5rem) 0 clamp(3rem, 7vw, 6rem); background: var(--fundo); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 3.5rem; align-items: center; }
.hero h1 { max-width: 14ch; }
.lead { margin: 1.3rem 0 2rem; font-size: 1.12rem; color: var(--cinza); max-width: 36rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.8rem; }
.hero-rating { display: inline-flex; align-items: center; gap: 0.7rem; margin-top: 1.8rem; text-decoration: none; font-size: 0.98rem; }
.hero-rating:hover strong { color: var(--ciano-escuro); }

.printer { position: relative; max-width: 440px; margin-inline: auto; width: 100%; }
.printer-body {
    position: relative;
    z-index: 2;
    height: 92px;
    border-radius: 14px 14px 8px 8px;
    background: linear-gradient(180deg, var(--tinta-2), var(--tinta));
    box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.08);
}
.printer-led {
    position: absolute;
    top: 22px;
    right: 26px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #3ee07a;
    box-shadow: 0 0 10px #3ee07a;
}
.printer-slot {
    position: absolute;
    left: 7%;
    right: 7%;
    bottom: 14px;
    height: 10px;
    border-radius: 6px;
    background: #05060c;
}
.sheet-window { position: relative; z-index: 1; margin: -20px 9% 0; overflow: hidden; padding: 0 18px 30px; margin-inline: calc(9% - 18px); }
.sheet {
    aspect-ratio: 210 / 260;
    padding: 2.2rem 1.6rem 1.4rem;
    background: var(--papel);
    border-radius: 0 0 4px 4px;
    box-shadow: 0 1px 0 var(--linha), 0 18px 30px -18px rgba(22, 26, 46, 0.45);
    display: flex;
    flex-direction: column;
}
.sheet-brand {
    width: 100%;
    height: auto;
    padding-bottom: 0.9rem;
    margin-bottom: 1rem;
    border-bottom: 3px solid var(--tinta);
}
.sheet-lines { list-style: none; display: grid; gap: 0.55rem; font-weight: 600; font-size: 0.98rem; }
.sheet-lines li { display: flex; align-items: center; gap: 0.6rem; }
.sheet-lines li::before { content: ""; width: 10px; height: 10px; border-radius: 2px; background: var(--ciano); flex-shrink: 0; }
.sheet-lines li:nth-child(4n+2)::before { background: var(--magenta); }
.sheet-lines li:nth-child(4n+3)::before { background: var(--amarelo); }
.sheet-lines li:nth-child(4n)::before { background: var(--tinta); }
.sheet-foot { margin-top: auto; padding-top: 1rem; font-size: 0.8rem; color: var(--cinza); border-top: 1px dashed var(--linha); }

/* A folha sai da fenda e as linhas aparecem enquanto ela desce (uma vez) */
@keyframes feed { from { transform: translateY(-100%); } to { transform: none; } }
@keyframes ink { from { opacity: 0; } to { opacity: 1; } }
.js .sheet { animation: feed 1.6s cubic-bezier(0.3, 0.1, 0.2, 1) 0.3s both; }
.js .sheet-brand,
.js .sheet-lines li,
.js .sheet-foot { animation: ink 0.25s linear both; }
.js .sheet-foot { animation-delay: 0.5s; }
.js .sheet-lines li:nth-child(7) { animation-delay: 0.6s; }
.js .sheet-lines li:nth-child(6) { animation-delay: 0.7s; }
.js .sheet-lines li:nth-child(5) { animation-delay: 0.8s; }
.js .sheet-lines li:nth-child(4) { animation-delay: 0.95s; }
.js .sheet-lines li:nth-child(3) { animation-delay: 1.1s; }
.js .sheet-lines li:nth-child(2) { animation-delay: 1.25s; }
.js .sheet-lines li:nth-child(1) { animation-delay: 1.4s; }
.js .sheet-brand { animation-delay: 1.55s; }

/* ==========================================================================
   Seções
   ========================================================================== */
.section { padding: clamp(4rem, 8vw, 6.5rem) 0; }

.section-head { max-width: 640px; margin-bottom: 3rem; }
.section-head p { color: var(--cinza); }

.groups { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 3px solid var(--tinta); }
.group { position: relative; padding: 2rem 1.6rem 0 0; display: flex; flex-direction: column; }
.group + .group { padding-left: 1.6rem; border-left: 1px solid var(--linha); }
.group-tag { display: block; width: 44px; height: 8px; border-radius: 2px; margin-bottom: 1.2rem; }
.tag-magenta { background: var(--magenta); }
.tag-ciano { background: var(--ciano); }
.tag-tinta { background: var(--tinta); }
.tag-amarelo { background: var(--amarelo); }
.group ul { list-style: none; display: grid; gap: 0.15rem; margin-bottom: 1.5rem; }
.group li { padding: 0.45rem 0; border-bottom: 1px solid var(--linha); }
.group-link { margin-top: auto; font-weight: 700; color: var(--ciano-escuro); text-underline-offset: 4px; text-decoration-thickness: 2px; }
.group-link:hover { color: #005a89; }

/* Avaliações: faixa ciano */
.section--ciano { background: var(--ciano-escuro); color: #fff; }
.reviews { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 3rem; align-items: center; }
.score h2 { font-size: clamp(1.4rem, 2.6vw, 1.9rem); }
.score-num { font-family: var(--font-display); font-weight: 800; font-size: clamp(4.5rem, 10vw, 7rem); line-height: 1; letter-spacing: -0.04em; margin: 0.5rem 0 0.6rem; }
.stars-lg .icon { width: 1.8rem; height: 1.8rem; }
.score-sub { margin-top: 0.6rem; color: rgba(255, 255, 255, 0.85); }
.quotes { display: grid; gap: 1.2rem; }
.quote { padding: 1.6rem 1.8rem; background: var(--papel); color: var(--tinta); border-radius: var(--radius); }
.quote p { font-family: var(--font-display); font-weight: 600; font-size: clamp(1.05rem, 2vw, 1.3rem); line-height: 1.35; letter-spacing: -0.01em; margin: 0.7rem 0; }
.quote cite { font-style: normal; font-size: 0.92rem; color: var(--cinza); }

/* Horário e endereço */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 3.5rem; align-items: center; }
.hours { margin: 1.2rem 0 1.5rem; }
.hours-simple { display: flex; gap: 0.7rem; align-items: flex-start; font-weight: 600; }
.hours-simple .icon { margin-top: 0.25rem; color: var(--magenta); }
.hours-table { width: 100%; max-width: 28rem; border-collapse: collapse; }
.hours-table th, .hours-table td { padding: 0.5rem 0; border-bottom: 1px solid var(--linha); text-align: left; font-weight: 500; }
.hours-table td { text-align: right; }
.hours-table tr.is-today { font-weight: 700; color: var(--ciano-escuro); }
.hours-status { display: inline-block; margin-bottom: 0.8rem; padding: 0.25rem 0.7rem; border-radius: 4px; font-size: 0.88rem; font-weight: 700; background: var(--fundo); }
.hours-status.is-open { background: #dff7e8; color: #0d6b34; }
.info-list { display: grid; gap: 0.9rem; margin-bottom: 1.8rem; list-style: none; }
.info-list li { display: flex; gap: 0.7rem; align-items: flex-start; }
.info-list .icon { margin-top: 0.25rem; color: var(--magenta); }
.map { width: 100%; height: 400px; border: 0; border-radius: var(--radius); background: var(--fundo); }

/* CTA amarelo */
.cta { padding: clamp(3.5rem, 7vw, 5.5rem) 0; background: var(--amarelo); color: var(--tinta); }
.cta-inner { display: grid; grid-template-columns: 1fr auto; gap: 0.6rem 3rem; align-items: center; }
.cta h2 { margin: 0; }
.cta p { grid-column: 1; font-size: 1.1rem; max-width: 34rem; }
.cta .btn { grid-column: 2; grid-row: 1 / span 2; }

/* Rodapé */
.site-footer { padding: 3.5rem 0 1.5rem; background: var(--tinta); color: rgba(255, 255, 255, 0.78); font-size: 0.95rem; }
.footer-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 2rem; padding-bottom: 2.2rem; border-bottom: 1px solid rgba(255, 255, 255, 0.12); }
.footer-brand img { background: #fff; border-radius: 8px; padding: 4px; }
.footer-brand { display: flex; align-items: center; gap: 0.7rem; margin-bottom: 0.7rem; font-family: var(--font-display); font-weight: 700; font-size: 1.2rem; color: #fff; }
.footer-list { list-style: none; display: grid; gap: 0.7rem; }
.footer-list li { display: flex; gap: 0.7rem; align-items: flex-start; }
.footer-list .icon { margin-top: 0.2rem; color: var(--magenta); }
.footer-list a { color: #fff; text-underline-offset: 3px; }
.footer-bottom { padding-top: 1.3rem; font-size: 0.85rem; color: rgba(255, 255, 255, 0.55); }

.whatsapp-float {
    position: fixed;
    right: 1.2rem;
    bottom: 1.2rem;
    z-index: 40;
    display: grid;
    place-items: center;
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: #107c41;
    color: #fff;
    box-shadow: 0 10px 25px -8px rgba(0, 0, 0, 0.4);
    opacity: 0;
    transform: translateY(20px);
    pointer-events: none;
    transition: opacity 0.3s, transform 0.3s;
}
.whatsapp-float .icon { width: 28px; height: 28px; }
.whatsapp-float.is-visible { opacity: 1; transform: none; pointer-events: auto; }

/* ==========================================================================
   Animações ao rolar
   ========================================================================== */
@keyframes reveal { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.js .reveal { opacity: 0; }
.js .reveal.is-visible { animation: reveal 0.7s var(--ease) var(--delay, 0s) both; }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .js .reveal { opacity: 1; }
    .js .reveal.is-visible,
    .js .sheet,
    .js .sheet-brand,
    .js .sheet-lines li,
    .js .sheet-foot { animation: none; }
    .btn:hover { transform: none; }
}

/* ==========================================================================
   Responsivo
   ========================================================================== */
@media (max-width: 960px) {
    .menu-toggle { display: flex; }
    .nav {
        position: fixed;
        inset: var(--header-h) 0 auto 0;
        padding: 1.5rem 1.25rem 2rem;
        background: var(--papel);
        border-bottom: 3px solid var(--tinta);
        transform: translateY(-12px);
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.25s, transform 0.25s, visibility 0.25s;
    }
    .nav.is-open { transform: none; opacity: 1; visibility: visible; }
    .nav-list { flex-direction: column; gap: 1.1rem; }
    .nav-link { font-size: 1.05rem; }

    .hero-grid, .split, .reviews, .footer-grid { grid-template-columns: 1fr; }
    .printer { max-width: 380px; }
    .groups { grid-template-columns: 1fr; }
    .group, .group + .group { padding: 1.8rem 0 1.4rem; border-left: 0; }
    .group + .group { border-top: 1px solid var(--linha); }
    .cta-inner { grid-template-columns: 1fr; }
    .cta .btn { grid-column: 1; grid-row: auto; justify-self: start; margin-top: 1rem; }
    .map { height: 320px; }
}

@media (max-width: 520px) {
    .hide-sm { display: none; }
    .brand-text span { display: none; }
    .hero-actions .btn, .cta .btn { width: 100%; }
    .sheet { padding: 1.6rem 1.2rem 1.1rem; }
    .sheet-lines { font-size: 0.9rem; }
}
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
