/* ==========================================================================
   FinalFinal marketing site — style.css
   Color tokens are taken directly from the FinalFinal Illustrator extension's
   own design system (client/css/variables.css) so the site matches the real
   product rather than inventing a separate look.
   ========================================================================== */

:root {
    /* --- Brand palette (from the extension's dark theme) --- */
    --bg:            #1c1d21;
    --bg-elev:       #24262b;
    --bg-elev-2:     #2c2f36;
    --bg-input:      #191a1e;
    --border:        #3a3d45;
    --border-strong: #4a4e58;
    --text:          #e8e9ec;
    --text-dim:      #a7abb4;
    --text-faint:    #7c818b;

    --accent:        #4f8cff;
    --accent-hover:  #3f7ae6;
    --accent-2:      #6ea0ff;
    --on-accent:     #ffffff;

    --error:         #ff5c5c;
    --warning:       #ffb547;
    --info:          #5ac8fa;
    --passed:        #4ecb7d;

    /* --- Site-level scale (site needs a bigger type/space scale than the
       compact in-app panel; radii/border language stays identical) --- */
    --radius:      8px;
    --radius-lg:   14px;
    --radius-pill: 999px;

    --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, "Noto Sans", sans-serif;
    --mono: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;

    --container: 1140px;
    --shadow: 0 12px 40px rgba(0,0,0,0.35);
    --shadow-sm: 0 2px 10px rgba(0,0,0,0.25);
}

/* ---------- Reset ---------- */
* , *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--accent-2); text-decoration: none; }
a:hover { color: var(--accent); text-decoration: underline; }
h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 0.5em; font-weight: 700; letter-spacing: -0.01em; }
p { margin: 0 0 1em; color: var(--text-dim); }
ul { margin: 0; padding: 0; }
button { font-family: inherit; }

/* Visible, consistent keyboard focus ring across all interactive elements */
a:focus-visible,
button:focus-visible,
summary:focus-visible {
    outline: 2px solid var(--accent-2);
    outline-offset: 3px;
    border-radius: 4px;
}

.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 24px;
}

.visually-hidden {
    position: absolute;
    width: 1px; height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

.skip-link {
    position: absolute;
    left: -999px;
    top: 0;
    background: var(--accent);
    color: var(--on-accent);
    padding: 10px 16px;
    border-radius: 0 0 8px 0;
    z-index: 100;
}
.skip-link:focus {
    left: 0;
}

/* ---------- Header ---------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(28, 29, 33, 0.86);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
}
.site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 68px;
}
.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text);
    font-weight: 700;
    font-size: 17px;
}
.brand:hover { text-decoration: none; color: var(--text); }
.brand img { width: 30px; height: 30px; border-radius: 7px; }

.main-nav { display: flex; align-items: center; }
.main-nav a { margin-right: 28px; }
.main-nav a:last-of-type { margin-right: 0; }
.main-nav a {
    color: var(--text-dim);
    font-size: 14.5px;
    font-weight: 500;
}
.main-nav a:hover { color: var(--text); text-decoration: none; }
.main-nav .btn { margin-left: 4px; }

.nav-toggle {
    display: none;
    background: none;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text);
    width: 40px; height: 40px;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 22px;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 15px;
    border: 1px solid transparent;
    cursor: pointer;
    transition: transform 0.12s ease, background-color 0.12s ease, border-color 0.12s ease;
}
.btn:hover { text-decoration: none; }
.btn:active { transform: translateY(1px); }

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

.btn-ghost {
    background: transparent;
    border-color: var(--border-strong);
    color: var(--text);
}
.btn-ghost:hover { border-color: var(--accent-2); color: var(--accent-2); }

.btn-lg { padding: 14px 28px; font-size: 16px; }

/* ---------- Hero ---------- */
.hero {
    padding: 96px 0 72px;
    text-align: center;
    background:
        radial-gradient(700px 380px at 50% -10%, rgba(79,140,255,0.14), transparent 65%),
        var(--bg);
}
.hero .eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--text-dim);
    font-size: 13.5px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    background: var(--bg-elev);
    border: 1px solid var(--border);
    padding: 6px 14px;
    border-radius: var(--radius-pill);
    margin-bottom: 24px;
}
.hero .eyebrow img { width: 16px; height: 16px; border-radius: 4px; }

.hero h1 {
    font-size: clamp(34px, 5.4vw, 58px);
    max-width: 880px;
    margin: 0 auto 20px;
}
.hero .lede {
    max-width: 640px;
    margin: 0 auto 36px;
    font-size: 18px;
    color: var(--text-dim);
}
.hero .cta-row {
    display: flex;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 64px;
}

.hero-shot {
    max-width: 640px;
    margin: 0 auto;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    overflow: hidden;
    background: var(--bg-elev);
}
.hero-shot img { width: 100%; height: 480px; object-fit: cover; object-position: top center; display: block; }

/* ---------- Sections ---------- */
section { padding: 88px 0; }
section.tight { padding: 64px 0; }
.section-head {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 52px;
}
.section-head .kicker {
    color: var(--accent-2);
    font-size: 13.5px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-bottom: 10px;
    display: block;
}
.section-head h2 { font-size: clamp(26px, 3.4vw, 36px); }
.section-head p { font-size: 16.5px; }

.alt-bg { background: var(--bg-elev); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

/* ---------- Screenshot gallery ---------- */
.shot-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}
.shot-card {
    background: var(--bg-elev);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: transform 0.18s ease, border-color 0.18s ease;
}
.shot-card:hover { transform: translateY(-4px); border-color: var(--border-strong); }
.shot-card .shot-frame {
    background: var(--bg-input);
    border-bottom: 1px solid var(--border);
    overflow: hidden;
}
.shot-card img { width: 100%; height: 280px; object-fit: cover; object-position: top center; display: block; }
.shot-card .shot-caption {
    padding: 16px 18px 20px;
}
.shot-card .shot-caption h3 { font-size: 15.5px; margin-bottom: 4px; }
.shot-card .shot-caption p { font-size: 14px; margin: 0; }

/* ---------- Mode cards (Digital / Print / Complete) ---------- */
.mode-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}
.mode-card {
    background: var(--bg-elev);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 28px 24px;
}
.mode-card.is-complete {
    border-color: var(--accent);
    background: linear-gradient(180deg, rgba(79,140,255,0.08), transparent 60%), var(--bg-elev);
}
.mode-card .mode-icon {
    width: 44px; height: 44px;
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    background: var(--bg-elev-2);
    border: 1px solid var(--border);
    margin-bottom: 18px;
    color: var(--accent-2);
}
.mode-card h3 { font-size: 19px; margin-bottom: 8px; }
.mode-card p { font-size: 14.5px; margin-bottom: 0; }

/* ---------- Feature grid ---------- */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.feature {
    padding: 4px 0;
}
.feature .feature-icon {
    width: 40px; height: 40px;
    border-radius: 9px;
    background: var(--bg-elev-2);
    border: 1px solid var(--border);
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 16px;
    color: var(--accent-2);
}
.feature h3 { font-size: 16.5px; margin-bottom: 6px; }
.feature p { font-size: 14.5px; margin: 0; }

/* ---------- Workflow steps ---------- */
.steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    counter-reset: step;
}
.step { position: relative; padding-left: 4px; }
.step .step-num {
    display: inline-flex;
    align-items: center; justify-content: center;
    width: 36px; height: 36px;
    border-radius: 50%;
    background: var(--accent);
    color: var(--on-accent);
    font-weight: 700;
    margin-bottom: 18px;
    font-size: 15px;
}
.step h3 { font-size: 17px; margin-bottom: 6px; }
.step p { font-size: 14.5px; margin: 0; }

/* ---------- Compatibility badges ---------- */
.compat-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px;
}
.compat-badge {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--bg-elev);
    border: 1px solid var(--border);
    border-radius: var(--radius-pill);
    padding: 12px 20px;
    font-size: 14.5px;
    color: var(--text);
    font-weight: 500;
}
.compat-badge .dot {
    width: 8px; height: 8px; border-radius: 50%;
    background: var(--passed);
    margin-right: 10px;
}

/* ---------- FAQ ---------- */
.faq-list { max-width: 760px; margin: 0 auto; }
.faq-item {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--bg-elev);
    margin-bottom: 12px;
    overflow: hidden;
}
.faq-item summary {
    cursor: pointer;
    list-style: none;
    padding: 18px 22px;
    font-weight: 600;
    font-size: 15.5px;
    color: var(--text);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
    content: "+";
    font-size: 22px;
    color: var(--text-dim);
    flex-shrink: 0;
    transition: transform 0.15s ease;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item .faq-body {
    padding: 0 22px 20px;
    font-size: 14.5px;
    color: var(--text-dim);
}
.faq-item .faq-body p:last-child { margin-bottom: 0; }

/* ---------- Support / contact ---------- */
.support-card {
    max-width: 640px;
    margin: 0 auto;
    text-align: center;
    background: var(--bg-elev);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 48px 40px;
}
.support-card h2 { font-size: 24px; }
.support-card p { font-size: 15.5px; }

/* ---------- Footer ---------- */
.site-footer {
    border-top: 1px solid var(--border);
    padding: 40px 0;
}
.site-footer .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
}
.footer-brand { display: flex; align-items: center; gap: 10px; color: var(--text-dim); font-size: 14px; }
.footer-brand img { width: 22px; height: 22px; border-radius: 5px; }
.footer-links { display: flex; gap: 22px; flex-wrap: wrap; }
.footer-links a { margin-right: 22px; }
.footer-links a:last-child { margin-right: 0; }
.footer-links a { color: var(--text-dim); font-size: 14px; }
.footer-links a:hover { color: var(--text); }
.footer-copy { color: var(--text-faint); font-size: 13px; width: 100%; text-align: center; margin-top: 8px; }

/* ---------- Inner pages (help / privacy / terms) ---------- */
.page-hero {
    padding: 64px 0 40px;
    text-align: center;
    border-bottom: 1px solid var(--border);
}
.page-hero h1 { font-size: clamp(28px, 4vw, 40px); }
.page-hero p { max-width: 560px; margin: 0 auto; font-size: 16px; }

.doc-layout {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 48px;
    padding: 64px 0 96px;
    align-items: start;
}
.doc-nav {
    position: sticky;
    top: 96px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.doc-nav a {
    color: var(--text-dim);
    font-size: 14px;
    padding: 8px 12px;
    border-radius: var(--radius);
}
.doc-nav a:hover, .doc-nav a:focus-visible { color: var(--text); background: var(--bg-elev); text-decoration: none; }

.doc-content h2 {
    font-size: 21px;
    margin-top: 40px;
    padding-top: 8px;
    scroll-margin-top: 96px;
}
.doc-content h2:first-child { margin-top: 0; }
.doc-content h3 { font-size: 16.5px; margin-top: 24px; color: var(--text); }
.doc-content p, .doc-content li { color: var(--text-dim); font-size: 15px; }
.doc-content ul, .doc-content ol { padding-left: 22px; margin-bottom: 1em; }
.doc-content li { margin-bottom: 6px; }
.doc-content code {
    background: var(--bg-elev-2);
    border: 1px solid var(--border);
    border-radius: 5px;
    padding: 1px 7px;
    font-family: var(--mono);
    font-size: 0.92em;
    color: var(--accent-2);
}
.doc-content .callout {
    background: var(--bg-elev);
    border: 1px solid var(--border);
    border-left: 3px solid var(--accent);
    border-radius: var(--radius);
    padding: 16px 18px;
    margin: 20px 0;
    font-size: 14.5px;
    color: var(--text-dim);
}
.doc-content .callout.warn { border-left-color: var(--warning); }
.doc-content .updated {
    color: var(--text-faint);
    font-size: 13.5px;
    margin-bottom: 32px;
}
.doc-content a { color: var(--accent-2); }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
    .shot-grid, .mode-grid, .feature-grid, .steps { grid-template-columns: repeat(2, 1fr); }
    .doc-layout { grid-template-columns: 1fr; }
    .doc-nav { position: static; flex-direction: row; flex-wrap: wrap; margin-bottom: 8px; }
}

@media (max-width: 720px) {
    .main-nav { display: none; }
    .main-nav.is-open {
        display: flex;
        position: absolute;
        top: 68px; left: 0; right: 0;
        background: var(--bg-elev);
        border-bottom: 1px solid var(--border);
        flex-direction: column;
        align-items: flex-start;
        padding: 16px 24px 24px;
        gap: 16px;
    }
    .nav-toggle { display: flex; }
    .shot-grid, .mode-grid, .feature-grid, .steps { grid-template-columns: 1fr; }
    .hero { padding: 64px 0 48px; }
    section { padding: 64px 0; }
    .support-card { padding: 36px 24px; }
    .hero-shot img { height: 340px; }
    .shot-card img { height: 240px; }
}
