/* DevOpsRaiz — base styles. Plain CSS, no build step. */

:root {
    --bg: #0b1320;
    --bg-soft: #11192a;
    --bg-deep: #060c17;
    --surface: #ffffff;
    --surface-soft: #f8fafc;
    --surface-mute: #f1f5f9;
    --border: #e2e8f0;
    --ink: #0f172a;
    --ink-soft: #334155;
    --muted: #64748b;
    --accent: #0e7490;
    --accent-strong: #0c5566;
    --accent-soft: #ecfeff;
    --danger: #b91c1c;
    --danger-bg: #fef2f2;
    --max: 72ch;
    --shadow-sm: 0 1px 2px rgba(15, 23, 42, .06);
    --shadow-md: 0 6px 16px rgba(15, 23, 42, .08);
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.65;
    color: var(--ink);
    background: var(--surface);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

img, svg { max-width: 100%; height: auto; }

a { color: var(--accent-strong); text-decoration-thickness: 1.5px; text-underline-offset: 2px; }
a:hover, a:focus { color: var(--accent); }

p { margin: .75rem 0 1rem; }

h1, h2, h3 { color: var(--ink); }

.container {
    max-width: 1080px;
    margin: 0 auto;
    padding: 0 1.25rem;
}

.skip {
    position: absolute;
    left: -9999px;
    top: auto;
}
.skip:focus {
    left: 1rem;
    top: 1rem;
    background: #fff;
    padding: .5rem .75rem;
    border: 2px solid var(--accent);
    z-index: 100;
}

/* Header */
.site-header {
    background: var(--bg);
    color: #f8fafc;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, .06);
}
.site-header a { color: #f8fafc; text-decoration: none; }
.site-header a:hover, .site-header a:focus { color: #e0f2fe; }
.header-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}
.brand {
    font-weight: 700;
    letter-spacing: .02em;
    font-size: 1.2rem;
}
.brand .brand-dot { color: #67e8f9; }
.nav {
    list-style: none;
    display: flex;
    gap: 1.25rem;
    padding: 0;
    margin: 0;
    flex-wrap: wrap;
    font-weight: 500;
}
.nav a[aria-current="page"] {
    text-decoration: underline;
    text-underline-offset: 6px;
    text-decoration-color: #67e8f9;
    text-decoration-thickness: 2px;
}

/* Hero */
.hero {
    padding: 3.25rem 1.25rem 1.75rem;
    position: relative;
}
.hero.hero-dark {
    background:
        radial-gradient(1100px 380px at 12% 0%, rgba(14, 116, 144, .25), transparent 65%),
        radial-gradient(900px 320px at 100% 20%, rgba(8, 145, 178, .18), transparent 60%),
        linear-gradient(180deg, var(--bg) 0%, var(--bg-soft) 100%);
    color: #f8fafc;
    margin: 0;
    padding: 4rem 1.25rem 3rem;
    max-width: none;
    border-bottom: 1px solid rgba(255, 255, 255, .05);
}
.hero.hero-dark h1, .hero.hero-dark p { color: #f8fafc; }
.hero.hero-dark .lead { color: #cbd5e1; }
.hero.hero-dark .eyebrow { color: #67e8f9; }
.hero-inner { max-width: 1080px; margin: 0 auto; }

.eyebrow {
    display: inline-block;
    text-transform: uppercase;
    letter-spacing: .12em;
    font-size: .75rem;
    font-weight: 700;
    color: var(--accent-strong);
    margin-bottom: .75rem;
}

.hero h1 {
    font-size: clamp(1.75rem, 2.6vw + 1rem, 2.6rem);
    line-height: 1.15;
    margin: 0 0 1rem;
    letter-spacing: -0.01em;
}
.lead {
    font-size: 1.125rem;
    color: var(--ink-soft);
    max-width: var(--max);
    margin: 0 0 1rem;
}

.cta-row {
    display: flex;
    gap: .75rem;
    flex-wrap: wrap;
    margin-top: 1.5rem;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: .75rem 1.25rem;
    border-radius: .5rem;
    font-weight: 600;
    text-decoration: none;
    border: 2px solid transparent;
    cursor: pointer;
    font-size: 1rem;
    line-height: 1.2;
    transition: background-color .15s ease, color .15s ease, transform .05s ease, box-shadow .15s ease;
    box-shadow: var(--shadow-sm);
}
.btn:active { transform: translateY(1px); }
.btn-primary {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
}
.btn-primary:hover, .btn-primary:focus {
    background: var(--accent-strong);
    border-color: var(--accent-strong);
    color: #fff;
    box-shadow: var(--shadow-md);
}
.btn-secondary {
    background: transparent;
    border-color: var(--accent);
    color: var(--accent-strong);
    box-shadow: none;
}
.btn-secondary:hover, .btn-secondary:focus {
    background: var(--accent);
    color: #fff;
}
.hero.hero-dark .btn-secondary {
    color: #e0f2fe;
    border-color: #67e8f9;
}
.hero.hero-dark .btn-secondary:hover,
.hero.hero-dark .btn-secondary:focus {
    background: #67e8f9;
    color: var(--bg);
}

/* Content */
.content {
    padding: 2rem 1.25rem 3rem;
    max-width: 75ch;
}
.content h2 {
    margin-top: 2.5rem;
    margin-bottom: .75rem;
    font-size: 1.4rem;
    letter-spacing: -0.005em;
}
.content h2:first-child { margin-top: 1rem; }
.content ul, .content ol { padding-left: 1.25rem; }
.content li { margin: .35rem 0; }

.muted { color: var(--muted); font-size: .95rem; }

/* Cards / grid */
.section-title {
    margin: 2.5rem 0 1rem;
    font-size: 1.5rem;
    letter-spacing: -0.005em;
}
.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.25rem;
    padding-top: 1rem;
    padding-bottom: 1.5rem;
}
.card {
    padding: 1.5rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: .75rem;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    gap: .5rem;
    transition: transform .12s ease, box-shadow .12s ease, border-color .12s ease;
}
.card:hover, .card:focus-within {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    border-color: #cbd5e1;
}
.card .card-tag {
    display: inline-block;
    text-transform: uppercase;
    letter-spacing: .1em;
    font-size: .7rem;
    font-weight: 700;
    color: var(--accent-strong);
    background: var(--accent-soft);
    padding: .15rem .55rem;
    border-radius: 999px;
    align-self: flex-start;
}
.card h2 { margin: .35rem 0 0; font-size: 1.2rem; }
.card h2 a { text-decoration: none; color: var(--ink); }
.card h2 a:hover, .card h2 a:focus { color: var(--accent-strong); }
.card p { margin: .25rem 0 .5rem; color: var(--ink-soft); }
.card .card-cta {
    margin-top: auto;
    font-weight: 600;
    color: var(--accent-strong);
    text-decoration: none;
}
.card .card-cta:hover, .card .card-cta:focus {
    text-decoration: underline;
}

.callout {
    background: var(--surface-mute);
    border-left: 4px solid var(--accent);
    padding: 1.5rem 1.5rem;
    margin: 2.5rem auto;
    border-radius: .5rem;
}
.callout h2 { margin-top: 0; }

/* Mailing list notice — reused across /mar, /ingles, /contato */
.mailing-notice {
    background: var(--accent-soft);
    border: 1px solid #a5f3fc;
    border-left: 4px solid var(--accent);
    padding: 1rem 1.25rem;
    margin: 1.5rem 0;
    border-radius: .5rem;
    color: var(--ink);
}
.mailing-notice strong { color: var(--accent-strong); }
.mailing-notice ul { margin: .5rem 0 .25rem 1.25rem; padding: 0; }
.mailing-notice li { margin: .15rem 0; }

/* Forms */
.form-section { padding: 1.5rem 1.25rem 3rem; max-width: 60ch; }
.field { margin-bottom: 1rem; }
.field label {
    display: block;
    font-weight: 600;
    margin-bottom: .25rem;
}
.field input, .field select, .field textarea {
    width: 100%;
    padding: .6rem .7rem;
    font: inherit;
    border: 1px solid #cbd5e1;
    border-radius: .375rem;
    background: #fff;
    transition: border-color .12s ease, box-shadow .12s ease;
}
.field input:focus, .field select:focus, .field textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(14, 116, 144, .18);
}
.hint { color: var(--muted); font-size: .9rem; margin: .25rem 0 0; }
.req { color: var(--danger); }

.alert {
    padding: .85rem 1rem;
    border-radius: .5rem;
    margin-bottom: 1.25rem;
}
.alert-error {
    background: var(--danger-bg);
    border: 1px solid #fecaca;
    color: var(--danger);
}

/* Honeypot — visually hide but keep accessible to bots */
.hp {
    position: absolute;
    left: -10000px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* Mailing-list opt-in checkbox on /contato */
.field-consent {
    border: 1px solid var(--border, #e5e7eb);
    background: #f8fafc;
    border-radius: 8px;
    padding: .85rem 1rem;
    margin: 1.25rem 0;
}
.consent-label {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: .65rem;
    align-items: start;
    cursor: pointer;
    font-weight: 400;
}
.consent-label input[type="checkbox"] {
    margin-top: .25rem;
    width: 1.1rem;
    height: 1.1rem;
}
.field-consent .hint {
    margin: .5rem 0 0 1.75rem;
    color: #475569;
    font-size: .9rem;
}

/* Footer */
.site-footer {
    background: var(--bg-deep);
    color: #cbd5e1;
    padding: 2.5rem 0 2rem;
    margin-top: 3.5rem;
}
.site-footer a { color: #e0f2fe; text-decoration: none; }
.site-footer a:hover, .site-footer a:focus { color: #67e8f9; text-decoration: underline; }
.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}
.footer-col h3 {
    margin: 0 0 .5rem;
    font-size: .9rem;
    text-transform: uppercase;
    letter-spacing: .1em;
    color: #f8fafc;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin: .25rem 0; }
.site-footer .bottom {
    border-top: 1px solid rgba(255, 255, 255, .08);
    padding-top: 1.25rem;
    margin-top: 1rem;
}
.site-footer p { margin: .35rem 0; }
.site-footer .muted { color: #94a3b8; }

/* Long-form content variant: a touch wider so cards/checklists breathe. */
.content.content-wide { max-width: 80ch; }

/* Section card grid — used by /mar to summarise areas. */
.grid-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
    margin: 1rem 0 1.5rem;
}
.info-card {
    background: var(--surface-soft);
    border: 1px solid var(--border);
    border-radius: .6rem;
    padding: 1rem 1.1rem;
    box-shadow: var(--shadow-sm);
}
.info-card h3 {
    margin: 0 0 .35rem;
    font-size: 1rem;
    color: var(--accent-strong);
    letter-spacing: -0.005em;
}
.info-card p { margin: 0; color: var(--ink-soft); font-size: .95rem; }

/* Checklist blocks — checkmark bullets. */
.check-list { list-style: none; padding-left: 0; margin: .5rem 0 1rem; }
.check-list li {
    position: relative;
    padding-left: 1.6rem;
    margin: .4rem 0;
}
.check-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 0;
    color: var(--accent-strong);
    font-weight: 700;
}
.check-block {
    background: var(--accent-soft);
    border: 1px solid #a5f3fc;
    border-left: 4px solid var(--accent);
    border-radius: .5rem;
    padding: 1rem 1.25rem;
    margin: 1rem 0 1.5rem;
}
.check-block h3 {
    margin: 0 0 .25rem;
    font-size: 1.05rem;
    color: var(--accent-strong);
}

/* Step-by-step ordered lists with circular numbers. */
.step-list {
    list-style: none;
    counter-reset: step;
    padding-left: 0;
    margin: 1rem 0 1.5rem;
}
.step-list > li {
    counter-increment: step;
    position: relative;
    padding: .5rem 0 .5rem 2.6rem;
    margin: .25rem 0;
}
.step-list > li::before {
    content: counter(step);
    position: absolute;
    left: 0;
    top: .35rem;
    width: 1.9rem;
    height: 1.9rem;
    border-radius: 50%;
    background: var(--accent);
    color: #fff;
    font-weight: 700;
    font-size: .9rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Warning boxes — red-flag content (scams, common mistakes). */
.warn-box {
    background: var(--danger-bg);
    border: 1px solid #fecaca;
    border-left: 4px solid var(--danger);
    border-radius: .5rem;
    padding: 1rem 1.25rem;
    margin: 1rem 0 1.5rem;
    color: var(--ink);
}
.warn-box strong { color: var(--danger); }
.warn-list { list-style: none; padding-left: 0; margin: .5rem 0 0; }
.warn-list li {
    position: relative;
    padding-left: 1.6rem;
    margin: .35rem 0;
}
.warn-list li::before {
    content: "⚠";
    position: absolute;
    left: 0;
    top: 0;
    color: var(--danger);
    font-weight: 700;
}

/* FAQ accordion — uses native <details>/<summary>; no JS required. */
.faq-list { margin: 1rem 0 1.5rem; display: flex; flex-direction: column; gap: .5rem; }
.faq-item {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: .5rem;
    padding: .25rem .25rem;
    box-shadow: var(--shadow-sm);
}
.faq-item summary {
    cursor: pointer;
    padding: .65rem .85rem;
    font-weight: 600;
    color: var(--ink);
    list-style: none;
    position: relative;
    padding-right: 2rem;
}
.faq-item summary::marker { content: ""; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
    content: "+";
    position: absolute;
    right: .9rem;
    top: 50%;
    transform: translateY(-50%);
    font-weight: 700;
    color: var(--accent-strong);
    font-size: 1.2rem;
    line-height: 1;
}
.faq-item[open] summary::after { content: "−"; }
.faq-item[open] summary { color: var(--accent-strong); }
.faq-item p { margin: 0 .85rem .75rem; color: var(--ink-soft); }

/* CTA panel — highlighted lead magnet / waitlist block. */
.cta-panel {
    background: var(--bg);
    color: #f8fafc;
    border-radius: .75rem;
    padding: 1.5rem 1.5rem;
    margin: 1.5rem 0 2rem;
    box-shadow: var(--shadow-md);
}
.cta-panel h3 {
    color: #f8fafc;
    margin: .35rem 0 .5rem;
    font-size: 1.25rem;
}
.cta-panel p { color: #cbd5e1; }
.cta-panel .check-list li { color: #e2e8f0; }
.cta-panel .check-list li::before { color: #67e8f9; }
.cta-panel .card-tag {
    display: inline-block;
    text-transform: uppercase;
    letter-spacing: .1em;
    font-size: .7rem;
    font-weight: 700;
    color: #0b1320;
    background: #67e8f9;
    padding: .15rem .55rem;
    border-radius: 999px;
}
.cta-panel strong { color: #f8fafc; }
.cta-panel .btn-primary {
    background: #67e8f9;
    color: #0b1320;
    border-color: #67e8f9;
}
.cta-panel .btn-primary:hover, .cta-panel .btn-primary:focus {
    background: #a5f3fc;
    border-color: #a5f3fc;
    color: #0b1320;
}

/* Mobile tweaks */
@media (max-width: 640px) {
    .hero { padding: 2.25rem 1.25rem 1.25rem; }
    .hero.hero-dark { padding: 2.75rem 1.25rem 2rem; }
    .hero h1 { font-size: 1.7rem; }
    .lead { font-size: 1.05rem; }
    .btn { width: 100%; text-align: center; }
    .cta-row { flex-direction: column; align-items: stretch; }
    .nav { gap: .9rem; width: 100%; }
    .header-inner { flex-direction: column; align-items: flex-start; }
    .content { padding-top: 1.25rem; }
    .content.content-wide { max-width: 100%; }
    .grid-cards { grid-template-columns: 1fr; }
    .cta-panel { padding: 1.25rem 1.1rem; }
    .step-list > li { padding-left: 2.4rem; }
}

/* ------------------------------------------------------------------
 * Print styles
 *
 * Used primarily by /mar/checklist-primeiros-passos so visitors can
 * print or "Save as PDF" the lead-magnet checklist directly from the
 * browser. No JavaScript involved.
 *
 * Strategy:
 * - Switch to black ink on white background.
 * - Hide chrome (header nav, footer, skip link, hero CTAs) and any
 *   element marked `.no-print`.
 * - Strip card / panel backgrounds so the content is readable as plain
 *   text on paper.
 * - Avoid awkward page breaks inside checklist blocks.
 * ------------------------------------------------------------------ */
@media print {
    :root {
        color-scheme: only light;
    }
    html, body {
        background: #fff !important;
        color: #000 !important;
    }
    body {
        font-size: 11pt;
        line-height: 1.4;
    }
    a, a:visited {
        color: #000 !important;
        text-decoration: none;
    }
    /* Hide navigation, footer, the skip link and any opt-out element. */
    .skip,
    .site-header,
    .site-footer,
    .no-print,
    .cta-row,
    .btn {
        display: none !important;
    }
    /* Flatten the dark hero into plain text. */
    .hero,
    .hero.hero-dark {
        background: none !important;
        color: #000 !important;
        padding: 0 !important;
        margin: 0 0 1rem !important;
        box-shadow: none !important;
    }
    .hero h1,
    .hero .lead,
    .hero .eyebrow {
        color: #000 !important;
    }
    .container,
    .content,
    .content-wide,
    .hero-inner {
        max-width: 100% !important;
        padding: 0 !important;
        margin: 0 !important;
    }
    /* Strip card / panel chrome so they print as plain checklists. */
    .cta-panel,
    .check-block,
    .warn-box,
    .info-card,
    .faq-item {
        background: #fff !important;
        color: #000 !important;
        box-shadow: none !important;
        border: 1px solid #000 !important;
        border-radius: 0 !important;
        padding: .5rem .75rem !important;
        margin: .5rem 0 !important;
    }
    .cta-panel h3,
    .cta-panel p,
    .cta-panel strong,
    .cta-panel .check-list li,
    .cta-panel .check-list li::before,
    .warn-box strong {
        color: #000 !important;
    }
    .card-tag {
        background: #000 !important;
        color: #fff !important;
    }
    /* Keep checklist groups together where possible. */
    .check-block,
    .warn-box,
    ol.step-list,
    ul.check-list {
        page-break-inside: avoid;
        break-inside: avoid;
    }
    h1, h2, h3 {
        page-break-after: avoid;
        break-after: avoid-page;
    }
    /* Make the checklist marker readable without color. */
    .check-list li::before {
        color: #000 !important;
    }
    .warn-list li::before {
        color: #000 !important;
    }
}

/* ----------------------------------------------------------
   Content publishing foundation (PR #12).
   Reusable patterns for /conteudos, section indexes and articles.
   ---------------------------------------------------------- */

.content-list {
    display: grid;
    gap: 1.25rem;
    grid-template-columns: 1fr;
    margin: 1.5rem 0 2rem;
}

@media (min-width: 720px) {
    .content-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 1040px) {
    .content-list {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

.article-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.25rem 1.25rem 1rem;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    gap: .5rem;
}

.article-card h3 {
    margin: .25rem 0 .25rem;
    font-size: 1.15rem;
    line-height: 1.35;
}

.article-card h3 a { text-decoration: none; }
.article-card h3 a:hover, .article-card h3 a:focus { text-decoration: underline; }

.article-card p { margin: 0; }

.article-section-label {
    display: inline-block;
    text-transform: uppercase;
    letter-spacing: .08em;
    font-size: .72rem;
    font-weight: 600;
    color: var(--accent-strong);
    background: var(--accent-soft);
    border-radius: 999px;
    padding: .15rem .55rem;
}

.article-section-label a {
    color: inherit;
    text-decoration: none;
}

.article-meta {
    color: var(--muted);
    font-size: .9rem;
}

.article-body {
    max-width: 72ch;
}

.article-body h2 {
    margin-top: 2rem;
}

.article-body ul, .article-body ol {
    padding-left: 1.25rem;
}

.article-nav {
    margin-top: 2.5rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
    color: var(--muted);
    font-size: .95rem;
}

.article-nav a {
    color: var(--accent-strong);
}
