/* OPTION 3, Comic Book
 * Bold primary colours, thick black outlines, hard offset shadows,
 * halftone dot pattern, Impact-style display type. Slightly rotated
 * elements for kinetic energy. Lichtenstein-by-way-of-Kirby.
 */

:root {
    --paper: #fff8e1;
    --paper-deep: #fff5cc;
    --white: #ffffff;
    --ink: #000000;
    --rule: #000000;
    --rule-soft: rgba(0, 0, 0, 0.4);
    --rule-faint: rgba(0, 0, 0, 0.15);
    --ink-mid: #111111;
    --ink-faint: #444444;
    --comic-red: #e02b2b;
    --comic-blue: #0a5cd9;
    --comic-yellow: #ffd60a;
    --comic-pink: #ff5b9c;
    --container: 1100px;
    --display: Impact, "Anton", "Helvetica Neue Condensed", "Arial Narrow", "Arial Black", sans-serif;
    --body: -apple-system, BlinkMacSystemFont, "Inter", "Helvetica Neue", "Segoe UI", Roboto, sans-serif;
    --mono: "SF Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }

html {
    scroll-behavior: smooth;
    scrollbar-gutter: stable;
}

body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: var(--body);
    font-size: 1.02rem;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
    /* clip (not hidden) keeps the sticky topbar working. hidden creates
     * a scroll container which breaks position: sticky inside it. */
    overflow-x: clip;
    width: 100%;
    /* Halftone is applied only to specific accent sections (hero, CTA)
     * via ::before pseudo-elements, so body text stays clean and high
     * contrast. */
}

a {
    color: var(--comic-blue);
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: 0.2em;
    font-weight: 700;
}
a:hover {
    color: var(--comic-red);
    text-decoration-thickness: 3px;
}

code, pre {
    font-family: var(--mono);
    font-size: 0.9em;
}
code {
    background: var(--comic-yellow);
    color: var(--ink);
    padding: 0.06em 0.4em;
    border: 2px solid var(--ink);
    border-radius: 0;
    font-weight: 700;
    box-shadow: 2px 2px 0 var(--ink);
    margin: 0 0.15em;
    display: inline-block;
}
pre {
    background: var(--ink);
    color: var(--paper);
    border: 3px solid var(--ink);
    border-radius: 0;
    padding: 1.5rem;
    overflow-x: auto;
    line-height: 1.55;
    margin: 2rem 0;
    font-size: 0.85rem;
    box-shadow: 8px 8px 0 var(--comic-yellow);
}
pre code {
    background: none;
    border: none;
    padding: 0;
    color: var(--paper);
    box-shadow: none;
    font-weight: 400;
}

h1, h2, h3, h4 {
    font-family: var(--display);
    color: var(--ink);
    line-height: 0.95;
    margin: 0 0 1rem;
    font-weight: 900;
    letter-spacing: -0.005em;
    text-transform: uppercase;
}
h1 {
    font-size: clamp(3.2rem, 8vw, 6.5rem);
    letter-spacing: -0.015em;
    -webkit-text-stroke: 2px var(--ink);
    text-shadow: 6px 6px 0 var(--ink);
}
h2 {
    font-size: clamp(2.4rem, 5vw, 4rem);
    letter-spacing: -0.01em;
}
h3 {
    font-size: 1.25rem;
    font-family: var(--body);
    font-weight: 800;
    letter-spacing: -0.005em;
    text-transform: none;
}
h4 {
    font-size: 0.85rem;
    font-family: var(--body);
    letter-spacing: 0.18em;
    color: var(--ink-mid);
    margin-bottom: 1rem;
}

p { margin: 0 0 1.1rem; max-width: 64ch; }

.kicker {
    display: inline-block;
    font-family: var(--body);
    font-size: 0.92rem;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--ink);
    background: var(--comic-yellow);
    padding: 0.5rem 1.1rem;
    margin: 0 0 1.5rem;
    font-weight: 900;
    border: 3px solid var(--ink);
    box-shadow: 4px 4px 0 var(--ink);
    transform: rotate(-1.5deg);
}
.kicker::before { content: "★ "; color: var(--comic-red); font-size: 1em; }

.lead {
    font-family: var(--body);
    font-size: 1.25rem;
    line-height: 1.5;
    color: var(--ink);
    max-width: 60ch;
    margin-bottom: 1.5rem;
    font-weight: 500;
}

/* ============================================================ */
/* Top bar                                                      */
/* ============================================================ */
.topbar {
    position: sticky;
    top: 0;
    z-index: 50;
    background: var(--white);
    border-bottom: 4px solid var(--ink);
}
.topbar-inner {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0.85rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
}
.brand {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    color: var(--ink);
    font-family: var(--display);
    font-size: 1.4rem;
    font-weight: 900;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: -0.005em;
}
.brand:hover { color: var(--comic-red); text-decoration: none; }
.brand-mark {
    width: 32px;
    height: 32px;
    background: var(--comic-yellow);
    color: var(--ink);
    font-family: var(--body);
    font-weight: 900;
    font-size: 0.82rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 3px solid var(--ink);
    box-shadow: 3px 3px 0 var(--ink);
    transform: rotate(-3deg);
    letter-spacing: -0.02em;
}

.topnav { margin-left: auto; display: flex; gap: 1.5rem; }
.topnav a {
    color: var(--ink);
    font-size: 0.95rem;
    font-weight: 700;
    text-decoration: none;
    text-transform: uppercase;
}
.topnav a:hover { color: var(--comic-red); }

.topbar-cta {
    color: var(--white);
    background: var(--comic-red);
    padding: 0.5rem 1rem;
    font-size: 0.92rem;
    font-weight: 700;
    text-decoration: none;
    border: 3px solid var(--ink);
    box-shadow: 3px 3px 0 var(--ink);
    text-transform: uppercase;
    transition: transform 0.1s ease, box-shadow 0.1s ease;
}
.topbar-cta:hover {
    transform: translate(-1px, -1px);
    box-shadow: 4px 4px 0 var(--ink);
    color: var(--white);
}

@media (max-width: 800px) {
    .topnav { display: none; }
    .topbar-cta { margin-left: auto; }
}

/* ============================================================ */
/* Hero                                                         */
/* ============================================================ */
.hero {
    position: relative;
    padding: 5rem 1.5rem 4rem;
    border-bottom: 4px solid var(--ink);
    background: var(--comic-yellow);
    overflow: hidden;
}
.hero::before { display: none; }
.hero::after {
    content: "POW!";
    position: absolute;
    top: 4rem;
    right: 4rem;
    font-family: var(--display);
    font-size: clamp(2rem, 5vw, 4rem);
    color: var(--comic-red);
    background: var(--white);
    padding: 0.3rem 1rem;
    border: 4px solid var(--ink);
    box-shadow: 8px 8px 0 var(--ink);
    transform: rotate(8deg);
    text-transform: uppercase;
    pointer-events: none;
    z-index: 2;
}
@media (max-width: 800px) { .hero::after { display: none; } }

.hero-inner {
    position: relative;
    z-index: 1;
    max-width: var(--container);
    margin: 0 auto;
    text-align: left;
}
.eyebrow {
    display: inline-block;
    font-family: var(--body);
    font-size: 0.85rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--white);
    background: var(--ink);
    padding: 0.45rem 0.95rem;
    margin-bottom: 2rem;
    font-weight: 800;
    border: 3px solid var(--ink);
    transform: rotate(-2deg);
}
.hero h1 {
    margin: 0 0 1.5rem;
    max-width: 22ch;
    color: var(--white);
    -webkit-text-stroke: 3px var(--ink);
    text-shadow: 8px 8px 0 var(--ink);
}
.hero-accent {
    display: inline;
    color: var(--comic-red);
    -webkit-text-stroke: 3px var(--ink);
}
.hero-lead {
    font-size: 1.3rem;
    color: var(--ink);
    max-width: 50em;
    margin: 0 0 2rem;
    font-weight: 600;
    line-height: 1.45;
}
.hero-lead strong { background: var(--white); padding: 0 0.3em; box-shadow: 3px 3px 0 var(--ink); border: 2px solid var(--ink); }
.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 2rem;
}
.hero-meta {
    color: var(--ink);
    font-family: var(--mono);
    font-size: 0.85rem;
    margin: 0;
    padding-top: 1rem;
    border-top: 3px solid var(--ink);
    max-width: 60ch;
    font-weight: 700;
}
.hero-grid { display: none; }

/* ============================================================ */
/* Buttons                                                      */
/* ============================================================ */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1.4rem;
    font-family: var(--body);
    font-size: 0.95rem;
    font-weight: 800;
    border: 3px solid var(--ink);
    cursor: pointer;
    text-decoration: none;
    border-radius: 0;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    box-shadow: 5px 5px 0 var(--ink);
    transition: transform 0.08s ease, box-shadow 0.08s ease;
}
.btn:hover { transform: translate(-2px, -2px); box-shadow: 7px 7px 0 var(--ink); text-decoration: none; }
.btn:active { transform: translate(2px, 2px); box-shadow: 0 0 0 var(--ink); }

.btn-primary { background: var(--comic-red); color: var(--white); }
.btn-primary:hover { color: var(--white); }
.btn-ghost { background: var(--white); color: var(--ink); }
.btn-ghost:hover { color: var(--ink); }
.btn-link {
    background: transparent;
    color: var(--comic-blue);
    border: none;
    box-shadow: none;
    padding: 0.85rem 0.25rem;
    text-decoration: underline;
    text-decoration-thickness: 2px;
}
.btn-link:hover { color: var(--comic-red); transform: none; box-shadow: none; }
.btn-bmac { background: var(--comic-yellow); color: var(--ink); }
.btn-bmac:hover { color: var(--ink); }

/* ============================================================ */
/* Stats                                                        */
/* ============================================================ */
.stats {
    border-top: 4px solid var(--ink);
    border-bottom: 4px solid var(--ink);
    background: var(--comic-blue);
    color: var(--white);
}
.stats-inner {
    max-width: var(--container);
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
}
.stat {
    text-align: center;
    padding: 2rem 1rem;
    border-right: 3px solid var(--ink);
}
.stat:last-child { border-right: none; }
.stat-number {
    font-family: var(--display);
    font-size: clamp(2.4rem, 4.5vw, 3.6rem);
    font-weight: 900;
    line-height: 1;
    color: var(--comic-yellow);
    -webkit-text-stroke: 2px var(--ink);
    text-shadow: 4px 4px 0 var(--ink);
}
.stat-label {
    margin-top: 0.6rem;
    font-family: var(--body);
    font-size: 0.85rem;
    color: var(--white);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 700;
}
@media (max-width: 720px) {
    .stats-inner { grid-template-columns: repeat(2, 1fr); }
    .stat:nth-child(2) { border-right: none; }
    .stat:nth-child(1), .stat:nth-child(2) { border-bottom: 3px solid var(--ink); }
}

/* ============================================================ */
/* Sections                                                     */
/* ============================================================ */
.section {
    padding: 5rem 1.5rem;
    border-bottom: 4px solid var(--ink);
}
.section-alt { background: var(--comic-pink); }
.section-alt h2, .section-alt .lead { color: var(--ink); }
.section-inner { max-width: var(--container); margin: 0 auto; }

/* ============================================================ */
/* How it works                                                 */
/* ============================================================ */
.how-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}
.how-card {
    background: var(--white);
    border: 4px solid var(--ink);
    padding: 1.75rem;
    box-shadow: 8px 8px 0 var(--ink);
    transition: transform 0.12s ease, box-shadow 0.12s ease;
}
.how-card:nth-child(1) { transform: rotate(-0.5deg); }
.how-card:nth-child(2) { transform: rotate(0.5deg); }
.how-card:nth-child(3) { transform: rotate(-0.3deg); }
.how-card:hover {
    transform: rotate(0deg) translate(-3px, -3px);
    box-shadow: 11px 11px 0 var(--ink);
}
.how-card-num {
    font-family: var(--display);
    font-size: 2.2rem;
    color: var(--comic-red);
    -webkit-text-stroke: 1.5px var(--ink);
    line-height: 1;
    margin-bottom: 0.85rem;
    font-weight: 900;
}
.how-card h3 { margin-bottom: 0.5rem; font-size: 1.4rem; }
.how-card p { font-size: 0.95rem; color: var(--ink-mid); margin: 0; }
@media (max-width: 900px) {
    .how-grid { grid-template-columns: 1fr; }
    .how-card { transform: none !important; }
}

/* ============================================================ */
/* Features                                                     */
/* ============================================================ */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
    margin-top: 3rem;
}
.feature {
    background: var(--white);
    border: 3px solid var(--ink);
    padding: 1.5rem;
    box-shadow: 5px 5px 0 var(--ink);
    transition: transform 0.1s ease, box-shadow 0.1s ease;
}
.feature:nth-child(3n+1) { background: var(--white); }
.feature:nth-child(3n+2) { background: var(--comic-yellow); }
.feature:nth-child(3n+3) { background: var(--white); }
.feature:hover {
    transform: translate(-2px, -2px);
    box-shadow: 8px 8px 0 var(--ink);
}
.feature-icon {
    display: inline-flex;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    background: var(--comic-red);
    color: var(--white);
    border: 3px solid var(--ink);
    margin-bottom: 1rem;
    font-size: 1.2rem;
    box-shadow: 3px 3px 0 var(--ink);
    transform: rotate(-3deg);
}
.feature h3 { font-size: 1.15rem; margin-bottom: 0.45rem; }
.feature p { font-size: 0.92rem; color: var(--ink-mid); margin: 0; line-height: 1.55; }
@media (max-width: 900px) { .features-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .features-grid { grid-template-columns: 1fr; } }

/* ============================================================ */
/* SEO list                                                     */
/* ============================================================ */
.seo-list {
    list-style: none;
    padding: 1rem;
    margin: 2.5rem 0 0;
    background: var(--white);
    border: 3px solid var(--ink);
    box-shadow: 6px 6px 0 var(--ink);
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem 1.5rem;
}
.seo-list li {
    position: relative;
    padding: 0.45rem 0 0.45rem 2rem;
    color: var(--ink);
    font-size: 0.98rem;
    font-weight: 500;
    border-bottom: 1px solid var(--rule-faint);
}
.seo-list li::before {
    content: "✓";
    position: absolute;
    left: 0.4rem;
    top: 0.45rem;
    color: var(--comic-red);
    font-weight: 900;
    font-size: 1.2rem;
    line-height: 1;
}
@media (max-width: 760px) { .seo-list { grid-template-columns: 1fr; } }

/* ============================================================ */
/* Install steps                                                */
/* ============================================================ */
.steps {
    counter-reset: step;
    list-style: none;
    padding: 0;
    margin: 2.5rem 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.steps li {
    background: var(--white);
    border: 3px solid var(--ink);
    padding: 1.25rem 1.5rem 1.25rem 5rem;
    position: relative;
    color: var(--ink);
    font-size: 1rem;
    line-height: 1.55;
    box-shadow: 4px 4px 0 var(--ink);
}
.steps li:nth-child(odd) { transform: rotate(-0.3deg); }
.steps li:nth-child(even) { transform: rotate(0.3deg); }
.steps li strong { color: var(--ink); }
.steps li::before {
    counter-increment: step;
    content: counter(step);
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    font-family: var(--display);
    font-size: 2.2rem;
    color: var(--comic-red);
    -webkit-text-stroke: 1.5px var(--ink);
    background: var(--comic-yellow);
    border: 3px solid var(--ink);
    width: 2.6rem;
    height: 2.6rem;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    font-weight: 900;
    box-shadow: 2px 2px 0 var(--ink);
}
.install-note {
    margin-top: 2rem;
    color: var(--ink);
    font-size: 0.95rem;
    background: var(--comic-pink);
    border: 3px solid var(--ink);
    padding: 1rem;
    box-shadow: 4px 4px 0 var(--ink);
    font-weight: 500;
}
.install-cta { margin-top: 2.5rem; display: flex; flex-wrap: wrap; gap: 1rem; }

/* ============================================================ */
/* Comparison                                                   */
/* ============================================================ */
.compare-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-top: 3rem;
}
.compare {
    background: var(--white);
    border: 3px solid var(--ink);
    padding: 1.5rem;
    box-shadow: 5px 5px 0 var(--ink);
}
.compare h3 { color: var(--ink); font-size: 1.3rem; margin-bottom: 0.3rem; }
.compare-size {
    color: var(--comic-red);
    font-size: 0.78rem;
    font-family: var(--mono);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin: 0 0 1rem;
    font-weight: 700;
}
.compare ul { list-style: none; padding: 0; margin: 0; }
.compare li {
    color: var(--ink-mid);
    font-size: 0.9rem;
    padding: 0.4rem 0;
    border-bottom: 1px solid var(--rule-faint);
}
.compare li:last-child { border-bottom: none; }

.compare-self {
    background: var(--comic-red);
    color: var(--white);
    transform: rotate(-1deg) scale(1.03);
    box-shadow: 8px 8px 0 var(--ink);
}
.compare-self h3 { color: var(--white); }
.compare-self .compare-size { color: var(--comic-yellow); }
.compare-self li { color: var(--white); border-bottom-color: rgba(255, 255, 255, 0.25); }

@media (max-width: 980px) {
    .compare-grid { grid-template-columns: repeat(2, 1fr); }
    .compare-self { transform: rotate(0) scale(1); }
}
@media (max-width: 540px) {
    .compare-grid { grid-template-columns: 1fr; }
}

/* ============================================================ */
/* CTA                                                          */
/* ============================================================ */
.cta-section {
    padding: 5rem 1.5rem;
    text-align: center;
    background: var(--comic-yellow);
    color: var(--ink);
    border-top: 4px solid var(--ink);
    border-bottom: 4px solid var(--ink);
    position: relative;
    overflow: hidden;
}
.cta-section::before { display: none; }
.cta-inner { max-width: 700px; margin: 0 auto; position: relative; z-index: 1; }
.cta-inner h2 {
    color: var(--ink);
    margin-bottom: 1rem;
    -webkit-text-stroke: 2px var(--ink);
    text-shadow: 5px 5px 0 var(--white);
}
.cta-inner p {
    color: var(--ink);
    font-family: var(--body);
    font-size: 1.15rem;
    margin-bottom: 2rem;
    font-weight: 600;
    line-height: 1.5;
}
.cta-actions { display: inline-flex; flex-wrap: wrap; justify-content: center; gap: 1rem; }

/* ============================================================ */
/* Footer                                                       */
/* ============================================================ */
.footer {
    background: var(--ink);
    padding: 4rem 1.5rem 1.5rem;
    color: var(--paper);
    border-top: 4px solid var(--ink);
}
.footer-inner {
    max-width: var(--container);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: 2.5rem;
    padding-bottom: 3rem;
    border-bottom: 2px solid var(--paper);
}
.footer-brand { display: flex; flex-direction: column; gap: 0.4rem; align-items: flex-start; }
.footer-brand .brand-mark { margin-bottom: 0.4rem; }
.footer-brand > span:nth-of-type(2) { color: var(--paper); font-family: var(--display); font-weight: 900; font-size: 1.4rem; text-transform: uppercase; }
.footer-tagline { color: rgba(255,248,225,0.8); font-size: 0.92rem; margin: 0.4rem 0 0; max-width: 28ch; }

.footer-col h4 { color: var(--comic-yellow); font-family: var(--body); font-size: 0.85rem; font-weight: 800; letter-spacing: 0.16em; text-transform: uppercase; }
.footer-col { display: flex; flex-direction: column; gap: 0.4rem; }
.footer-col a {
    color: var(--paper);
    font-size: 0.92rem;
    text-decoration: none;
    font-weight: 600;
}
.footer-col a:hover { color: var(--comic-yellow); }

.footer-strip {
    max-width: var(--container);
    margin: 0 auto;
    padding-top: 1.5rem;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
    color: rgba(255,248,225,0.65);
    font-size: 0.85rem;
}
.footer-strip p { margin: 0; color: rgba(255,248,225,0.65); }
.footer-strip a { color: rgba(255,248,225,0.85); text-decoration: none; }
.footer-strip a:hover { color: var(--comic-yellow); }

@media (max-width: 900px) {
    .footer-inner { grid-template-columns: 1fr 1fr; }
    .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 540px) {
    .footer-inner { grid-template-columns: 1fr; }
    .footer-brand { grid-column: auto; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    .how-card, .compare-self, .steps li, .brand-mark, .eyebrow, .kicker, .feature-icon { transform: none !important; }
}
