/* Deck to Skill — shares the skillmdcreator design system: fixed dark nav over
   a light canvas, monospace wordmark, the same button and consent primitives.
   The accent is a sibling of skillmdcreator's violet from the same palette, so
   the two products read as a family without being confusable. */

:root {
    --bg-dark:     #0e0e0e;
    --bg-light:    #f9f8f6;
    --surface:     #ffffff;
    --surface-2:   #f1efea;
    --accent:      #0984e3;
    --accent-hover:#0771c4;
    /* skillmdcreator.ai's signature violet — used for the "md" in the
       wordmark so the family link is visible at a glance. */
    --accent-alt:  #6c5ce7;
    --text-dark:   #1a1a1a;
    --text-light:  #f0efe8;
    --text-muted:  #888680;
    --text-soft:   #55534e;
    --border:      #e5e4df;
    --warn-bg:     #fdf6e3;
    --warn-line:   #e6d3a3;
    --error:       #c0392b;
    --radius:      10px;
    --maxw:        960px;
    --font-body:   system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-code:   'JetBrains Mono', 'Fira Code', 'Cascadia Code', ui-monospace, monospace;
}

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

/* An author `display` rule beats the UA stylesheet's [hidden] { display: none },
   so anything given a display value below would ignore the hidden attribute. */
[hidden] { display: none !important; }

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-body);
    color: var(--text-dark);
    background: var(--bg-light);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    padding-top: 64px;           /* clears the fixed nav */
}

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hover); }
img { max-width: 100%; }

code, pre, .mono { font-family: var(--font-code); font-size: 0.9em; }
code { background: var(--surface-2); padding: 0.1em 0.35em; border-radius: 4px; }

h1, h2, h3 { line-height: 1.25; letter-spacing: -0.015em; margin: 0 0 0.5em; }
h1 { font-size: clamp(1.9rem, 4.2vw, 2.75rem); }
h2 { font-size: clamp(1.35rem, 2.6vw, 1.7rem); }
h3 { font-size: 1.05rem; }

.muted  { color: var(--text-soft); }
.small  { font-size: 0.875rem; }
.centre { text-align: center; }

/* ─── Nav ───────────────────────────────────────────────────── */

.nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 2rem;
    background: rgba(14, 14, 14, 0.95);
    backdrop-filter: blur(10px);
}
.nav-logo {
    font-family: var(--font-code);
    font-size: 1.2rem;
    font-weight: 500;
    color: var(--text-light);
}
.nav-logo:hover { color: var(--text-light); }
.nav-logo .accent { color: var(--accent); }
/* pptx in this edition's accent, md in skillmdcreator.ai's violet — the
   wordmark says which product and which family in one glance. */
.nav-logo .mark-pptx { color: var(--accent); }
.nav-logo .mark-md   { color: var(--accent-alt); }

.nav-links { display: flex; align-items: center; gap: 1.5rem; }
.nav-links a { color: var(--text-muted); font-size: 0.9rem; }
.nav-links a:hover { color: var(--text-light); }
.nav-price { color: var(--text-muted); font-size: 0.9rem; }

.nav-toggle {
    display: none;
    background: none; border: 0;
    width: 36px; height: 36px;
    flex-direction: column; justify-content: center; align-items: center;
    gap: 5px; cursor: pointer; padding: 0; margin-left: auto;
}
.nav-toggle span {
    display: block; width: 24px; height: 2px;
    background: var(--text-light); border-radius: 2px;
    transition: transform .2s ease, opacity .2s ease;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 680px) {
    .nav { padding: 0.85rem 1.25rem; }
    .nav-toggle { display: flex; }
    .nav-links {
        display: none;
        position: absolute; top: 100%; left: 0; right: 0;
        flex-direction: column; align-items: flex-start;
        gap: 0.25rem;
        padding: 0.75rem 1.25rem 1.25rem;
        background: rgba(14, 14, 14, 0.98);
        border-top: 1px solid rgba(255,255,255,0.08);
    }
    .nav-links.open { display: flex; }
    .nav-links a { padding: 0.5rem 0; }
}

/* ─── Footer ────────────────────────────────────────────────── */

.footer {
    border-top: 1px solid var(--border);
    margin-top: 5rem;
    padding: 2rem 1.5rem;
    color: var(--text-muted);
    font-size: 0.875rem;
}
.footer-inner {
    max-width: var(--maxw); margin: 0 auto;
    display: flex; flex-wrap: wrap; gap: 1rem;
    align-items: center; justify-content: space-between;
}
.footer-inner p { margin: 0; }
.footer-inner nav { display: flex; flex-wrap: wrap; gap: 1.25rem; }
.footer-inner a { color: var(--text-muted); }
.footer-inner a:hover { color: var(--text-dark); }

/* ─── Layout ────────────────────────────────────────────────── */

main { max-width: var(--maxw); margin: 0 auto; padding: 0 1.5rem; }
.container { max-width: var(--maxw); margin: 0 auto; padding: 0 1.5rem; }
.narrow { max-width: 680px; }

.hero { padding: 2.5rem 0 1rem; }
.hero h1 { max-width: 20ch; }
.lede {
    font-size: clamp(1.02rem, 1.7vw, 1.15rem);
    color: var(--text-soft);
    max-width: 62ch;
    margin: 0 0 2rem;
}
.reassure {
    color: var(--text-muted);
    font-size: 0.875rem;
    max-width: 60ch;
    margin: 1rem auto 0;
    text-align: center;
}

/* ─── Dropzone ──────────────────────────────────────────────── */

.dropzone {
    border: 1.5px dashed var(--border);
    border-radius: var(--radius);
    background: var(--surface);
    padding: 3rem 1.5rem;
    text-align: center;
    cursor: pointer;
    transition: border-color .15s ease, background .15s ease;
}
.dropzone:hover { border-color: var(--accent); }
.dropzone.is-dragging { border-color: var(--accent); background: var(--surface-2); }
.dropzone.is-busy { cursor: progress; border-style: solid; }

.dz-icon { width: 34px; height: 34px; color: var(--accent); margin-bottom: 0.75rem; }
.dz-title { font-size: 1.1rem; font-weight: 600; margin: 0 0 0.25rem; }
.dz-sub { margin: 0 0 0.75rem; }
.dz-hint { color: var(--text-muted); font-size: 0.85rem; margin: 0; }

.linklike {
    background: none; border: 0; padding: 0;
    color: var(--accent); font: inherit; cursor: pointer;
    text-decoration: underline; text-underline-offset: 2px;
}

.dropzone-busy { display: flex; flex-direction: column; align-items: center; gap: 0.85rem; }
.dropzone-busy p { margin: 0; color: var(--text-soft); }
.spinner {
    width: 26px; height: 26px;
    border: 2.5px solid var(--border);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.error-msg { color: var(--error); font-size: 0.9rem; margin: 0.85rem 0 0; }
.ok-msg { color: #1e7e34; font-size: 0.9rem; margin: 0.85rem 0 0; }

/* ─── Buttons ───────────────────────────────────────────────── */

.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--surface);
    color: var(--text-dark);
    font: inherit; font-weight: 600;
    cursor: pointer;
    transition: background .15s ease, border-color .15s ease;
}
.btn:hover { border-color: var(--text-muted); color: var(--text-dark); }
.btn-accent { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn-accent:hover { background: var(--accent-hover); border-color: var(--accent-hover); color: #fff; }
.btn-accent:disabled { opacity: 0.6; cursor: default; }
.btn-outline { background: transparent; color: var(--text-light); border-color: rgba(255,255,255,0.25); }
.btn-outline:hover { background: rgba(255,255,255,0.08); color: var(--text-light); }
.btn-lg { padding: 0.85rem 1.5rem; font-size: 1.02rem; }
.btn-sm { padding: 0.45rem 0.9rem; font-size: 0.85rem; }
.btn-full { width: 100%; }

/* ─── Preview ───────────────────────────────────────────────── */

.preview { margin-top: 3.5rem; }

.preview-head {
    display: flex; flex-wrap: wrap; gap: 1rem;
    align-items: flex-start; justify-content: space-between;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid var(--border);
    margin-bottom: 1.5rem;
}
.preview-head h2 { margin: 0.15rem 0; }
.eyebrow {
    text-transform: uppercase; letter-spacing: 0.08em;
    font-size: 0.72rem; font-weight: 600;
    color: var(--text-muted); margin: 0;
}
.preview-tags { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.tag {
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: 0.2rem 0.65rem;
    font-size: 0.78rem;
    color: var(--text-soft);
}

.preview-grid { display: grid; grid-template-columns: 1.35fr 1fr; gap: 1rem; }
@media (max-width: 720px) { .preview-grid { grid-template-columns: 1fr; } }

.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.25rem;
    margin-bottom: 1rem;
}
.card h3 { margin-top: 0; }
.count { color: var(--text-muted); font-weight: 400; }

.swatches {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}
.swatch { display: flex; gap: 0.6rem; align-items: center; }
.swatch-chip {
    width: 34px; height: 34px; flex: none;
    border-radius: 6px; border: 1px solid var(--border);
}
.swatch-label { min-width: 0; line-height: 1.35; }
.swatch-label code { background: none; padding: 0; font-size: 0.78rem; display: block; }
.swatch-label span { font-size: 0.72rem; color: var(--text-muted); display: block; }
.swatch-label em { font-size: 0.72rem; color: var(--text-soft); font-style: normal; display: block; }

.font-row { margin: 0 0 0.4rem; }
.font-role {
    display: inline-block; min-width: 4.5rem;
    text-transform: uppercase; letter-spacing: 0.06em;
    font-size: 0.7rem; color: var(--text-muted);
}

.table-scroll { overflow-x: auto; }
table.layouts { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
table.layouts th {
    text-align: left; font-size: 0.72rem; text-transform: uppercase;
    letter-spacing: 0.06em; color: var(--text-muted);
    padding: 0.4rem 0.6rem; border-bottom: 1px solid var(--border);
    white-space: nowrap;
}
table.layouts td {
    padding: 0.5rem 0.6rem;
    border-bottom: 1px solid var(--border);
    vertical-align: top;
}
table.layouts tr:last-child td { border-bottom: 0; }
td.num { color: var(--text-muted); font-variant-numeric: tabular-nums; }
.used {
    display: inline-block; margin-left: 0.5rem;
    font-size: 0.7rem; color: var(--accent);
    background: var(--surface-2); border-radius: 999px;
    padding: 0.05rem 0.45rem;
}

.warn-card { background: var(--warn-bg); border-color: var(--warn-line); }
.warn-card ul, .warn-list { margin: 0; padding-left: 1.1rem; }
.warn-card li, .warn-list li { margin-bottom: 0.4rem; font-size: 0.9rem; }

/* ─── Buy card ──────────────────────────────────────────────── */

.buy-card { border-color: var(--accent); }
.field { margin-bottom: 1rem; }
.field label { display: block; font-weight: 600; font-size: 0.9rem; margin-bottom: 0.3rem; }
.optional { font-weight: 400; color: var(--text-muted); font-size: 0.8rem; }
.field input {
    width: 100%;
    padding: 0.6rem 0.75rem;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--bg-light);
    color: var(--text-dark);
    font: inherit;
}
.field input:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: var(--accent); }
.field-hint { color: var(--text-muted); font-size: 0.8rem; margin: 0.3rem 0 0; }

.deliverables { list-style: none; padding: 0; margin: 1.25rem 0; }
.deliverables li {
    padding: 0.4rem 0 0.4rem 1.4rem;
    position: relative; font-size: 0.9rem;
    border-bottom: 1px solid var(--border);
}
.deliverables li:last-child { border-bottom: 0; }
.deliverables li::before {
    content: ""; position: absolute; left: 0.2rem; top: 0.95rem;
    width: 6px; height: 6px; border-radius: 50%; background: var(--accent);
}

/* ─── Explainer / FAQ ───────────────────────────────────────── */

.explain { margin-top: 4.5rem; }
.explain-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.75rem;
    margin-top: 1.5rem;
}
.explain-grid h3 { margin-bottom: 0.35rem; }
.explain-grid p { color: var(--text-soft); margin: 0; font-size: 0.94rem; }

.faq { margin-top: 4rem; }
.faq details { border-bottom: 1px solid var(--border); padding: 1rem 0; }
.faq summary { cursor: pointer; font-weight: 600; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before { content: "+ "; color: var(--accent); }
.faq details[open] summary::before { content: "− "; }
.faq details p { color: var(--text-soft); margin: 0.6rem 0 0; font-size: 0.94rem; }

/* ─── Success page ──────────────────────────────────────────── */

.panel {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface);
    padding: 2rem;
    margin: 2rem 0;
}
.panel-success { border-color: var(--accent); }
.panel-error { border-color: var(--error); }
.panel h2 { margin-top: 2rem; font-size: 1.1rem; }

.strip-note {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--bg-light);
    padding: 1rem 1.25rem;
    margin: 1.5rem 0;
}
.strip-note h2 { margin-top: 0; }
.strip-figures {
    display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.6rem;
    margin: 0 0 0.5rem;
    font-variant-numeric: tabular-nums;
}
.strip-figures .was { color: var(--text-muted); text-decoration: line-through; }
.strip-figures .arrow { color: var(--text-muted); }
.strip-figures .now { font-size: 1.35rem; font-weight: 700; }
.strip-figures .saved {
    background: var(--surface-2); border: 1px solid var(--border);
    border-radius: 999px; padding: 0.1rem 0.6rem;
    font-size: 0.78rem; color: var(--accent);
}

.file-list { list-style: none; padding: 0; margin: 0; }
.file-list li { padding: 0.3rem 0; border-bottom: 1px solid var(--border); font-size: 0.9rem; }
.file-list li:last-child { border-bottom: 0; }

.steps { padding-left: 1.2rem; }
.steps li { margin-bottom: 0.6rem; font-size: 0.94rem; }

.email-box {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--bg-light);
    padding: 1rem 1.25rem;
    margin: 1.5rem 0;
}
.email-box h2 { margin-top: 0; }
.email-row { display: flex; flex-wrap: wrap; gap: 0.6rem; align-items: flex-start; }
.email-row input { flex: 1 1 240px; }
.email-row .btn { flex: none; }

/* ─── Consent banner ────────────────────────────────────────── */

.consent-banner {
    position: fixed;
    bottom: 0; left: 0; right: 0;
    z-index: 200;
    background: var(--bg-dark);
    border-top: 1px solid rgba(255,255,255,0.08);
    padding: 1rem 2rem;
}
.consent-inner {
    max-width: 900px; margin: 0 auto;
    display: flex; align-items: center; justify-content: space-between;
    gap: 1.5rem; flex-wrap: wrap;
}
.consent-inner p {
    color: var(--text-muted); font-size: 0.85rem;
    flex: 1; min-width: 250px;
}
.consent-inner a { color: var(--accent); }
.consent-buttons { display: flex; gap: 0.6rem; flex-wrap: wrap; }

/* ─── Static pages ──────────────────────────────────────────── */

.prose { max-width: 68ch; margin: 2rem auto 0; }
.prose h2 { margin-top: 2rem; }
.prose p, .prose li { color: var(--text-soft); }
.prose ul, .prose ol { padding-left: 1.2rem; margin: 0.75rem 0; }
.prose li { margin-bottom: 0.4rem; }

.form-block { margin: 1.5rem 0; }
.form-block textarea {
    width: 100%; min-height: 120px;
    padding: 0.6rem 0.75rem;
    border: 1px solid var(--border); border-radius: 8px;
    background: var(--surface); color: var(--text-dark);
    font: inherit; resize: vertical;
}
.form-block textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
