/* Partner materials (founder decision D10, 2026-10-04): the kit, the
   playbooks, the training, the rewards terms, the walkthroughs and the
   printable decks and one-pager, on one stylesheet. Tokens mirror the
   landing's Atelier set (webmaven_ui/src/foundation/tokens.ts): the neutral
   ramp, one accent, and the six pastels only as rings, hairlines and small
   accents, never as large fills. */

@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
    src: url('/fonts/inter-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
    --n-0: #FFFFFF;  --n-25: #FBFBFC; --n-50: #F5F6F8;  --n-100: #EDEEF2;
    --n-200: #E2E4EA; --n-300: #CDD0DA; --n-400: #9BA0AF; --n-500: #6E7382;
    --n-600: #4A4E5A; --n-700: #33363F; --n-800: #222429; --n-900: #17181C;
    --accent: #6A4BFF; --accent-deep: #5A3FE0; --accent-soft: #EEEBFF;
    --success: #2E9E63; --danger: #D6455D; --warning: #B7791F;
    --grad-brand: linear-gradient(135deg, #47C8D8, #5B9BD5, #8E85C2, #D08EC8, #E8919F, #F2AA84);
    --r-card: 16px; --r-panel: 20px;
    --sh-xs: 0 1px 2px rgba(23,24,28,.06);
    --sh-sm: 0 2px 8px -2px rgba(23,24,28,.10);
    --sh-md: 0 6px 20px -6px rgba(23,24,28,.14);
    --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
    --color-text-primary: var(--n-900);
    --color-text-secondary: var(--n-600);
    --color-border: var(--n-200);
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--n-900);
    background: var(--n-0);
    line-height: 1.6;
}

a { color: var(--accent); }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 2px solid var(--n-900); outline-offset: 3px; }

.container { max-width: 1040px; margin: 0 auto; padding: 0 40px; }

/* Header: the logo and the way back to the partner program. */
header.site-header {
    background: var(--n-0);
    border-bottom: 1px solid var(--color-border);
    padding: 18px 0;
    position: sticky; top: 0; z-index: 100;
}
.header-content { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.logo { font-size: 24px; font-weight: 800; color: var(--n-900); text-decoration: none; white-space: nowrap; }
.back-link { color: var(--accent); text-decoration: none; font-weight: 500; font-size: 15px; }
.back-link:hover { text-decoration: underline; }

/* Page top */
.page-hero { padding: 64px 0 36px; background:
    radial-gradient(900px 320px at 90% 0%, rgba(106, 75, 255, 0.06), transparent 70%),
    radial-gradient(700px 260px at 0% 100%, rgba(106, 75, 255, 0.042), transparent 70%); border-bottom: 1px solid var(--color-border); }
.eyebrow { font-size: 13px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); margin-bottom: 12px; }
.page-hero h1 { font-size: 44px; font-weight: 800; line-height: 1.15; letter-spacing: -0.02em; margin-bottom: 16px; max-width: 820px; }
.page-hero .lead { font-size: 19px; color: var(--n-600); max-width: 760px; }
.page-hero .actions { margin-top: 26px; display: flex; flex-wrap: wrap; gap: 12px; }

main { padding: 0 0 110px; }
.section { padding-top: 52px; }
.section > h2, .prose h2 { font-size: 30px; font-weight: 750; letter-spacing: -0.01em; line-height: 1.25; margin-bottom: 14px; }
.section-intro { font-size: 17px; color: var(--n-600); max-width: 760px; margin-bottom: 26px; }
.prose { max-width: 780px; }
.prose h2 { margin-top: 44px; scroll-margin-top: 90px; }
.prose h3, .section h3 { font-size: 19px; font-weight: 700; margin: 26px 0 8px; }
.prose p, .prose li { font-size: 16.5px; color: var(--n-600); }
.prose p { margin-bottom: 14px; }
.prose ul, .prose ol { padding-left: 22px; margin-bottom: 16px; }
.prose li { margin-bottom: 8px; }
.prose strong, .section strong { color: var(--n-900); }
code { font-family: var(--mono); font-size: 0.9em; background: var(--accent-soft); color: var(--n-800); padding: 1px 6px; border-radius: 5px; overflow-wrap: anywhere; }

/* Buttons: the near-black primary inside the gradient ring, a quiet outline second. */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 12px 22px; border-radius: 300px; font-weight: 600; font-size: 15px; line-height: 1.2; font-family: inherit;
    text-decoration: none; cursor: pointer; transition: filter .15s ease, border-color .15s ease;
}
.btn-primary {
    border: 2px solid transparent; color: #fff;
    background: linear-gradient(var(--n-900), var(--n-900)) padding-box, var(--grad-brand) border-box;
}
.btn-primary:hover { filter: brightness(1.12); }
.btn-secondary { border: 1px solid var(--n-500); color: var(--n-800); background: #fff; }
.btn-secondary:hover { border-color: var(--n-700); }
.btn:active { transform: scale(.97); }

/* Card grids: fixed columns that divide the count (never an orphan row). */
.grid { display: grid; gap: 18px; }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.card {
    border: 1px solid var(--color-border); border-radius: var(--r-card); padding: 22px 22px 20px;
    background: #fff; box-shadow: var(--sh-xs); display: flex; flex-direction: column;
}
.card h3 { font-size: 17px; font-weight: 700; margin: 0 0 6px; }
.card p { font-size: 15px; color: var(--n-600); margin: 0 0 12px; }
.card .card-link { margin-top: auto; font-weight: 600; font-size: 15px; text-decoration: none; }
.card .card-link:hover { text-decoration: underline; }
.card .tag { align-self: flex-start; font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--accent-deep); background: var(--accent-soft); padding: 2px 8px; border-radius: 999px; margin-bottom: 10px; }
a.card { text-decoration: none; color: inherit; transition: box-shadow .15s ease, border-color .15s ease; }
a.card:hover { box-shadow: var(--sh-md); border-color: var(--n-300); }

@media (max-width: 1000px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 900px) { .grid-3 { grid-template-columns: 1fr; } }
@media (max-width: 640px) { .grid-4, .grid-2 { grid-template-columns: 1fr; } }

/* Callouts */
.note {
    border: 1px solid var(--color-border); border-left: 4px solid var(--accent);
    background: var(--n-25); border-radius: 12px; padding: 16px 18px; margin: 18px 0 22px;
    font-size: 15.5px; color: var(--n-700);
}
.note strong { color: var(--n-900); }
.honest-label {
    border: 2px solid transparent; border-radius: 14px; padding: 14px 18px; margin: 0 0 26px;
    background: linear-gradient(#fff, #fff) padding-box, var(--grad-brand) border-box;
    font-size: 15.5px; color: var(--n-700);
}
.honest-label strong { color: var(--n-900); }

/* Steps */
.steps { list-style: none; counter-reset: step; padding: 0; margin: 0 0 18px; }
.steps > li { counter-increment: step; position: relative; padding: 0 0 18px 46px; font-size: 16.5px; color: var(--n-600); }
.steps > li::before {
    content: counter(step); position: absolute; left: 0; top: 0;
    width: 30px; height: 30px; border-radius: 50%; background: var(--n-900); color: #fff;
    display: flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 700;
}
.steps > li strong { color: var(--n-900); }

/* Tables; one card per row under 600px. */
.table-wrap { overflow-x: auto; border: 1px solid var(--color-border); border-radius: 12px; margin: 8px 0 20px; }
table { width: 100%; border-collapse: collapse; font-size: 15px; }
th, td { text-align: left; vertical-align: top; padding: 11px 14px; border-bottom: 1px solid var(--color-border); color: var(--n-600); }
th { background: var(--n-50); color: var(--n-900); font-weight: 650; font-size: 14px; }
tr:last-child td { border-bottom: none; }
td strong { color: var(--n-900); }
@media (max-width: 600px) {
    .table-wrap { border: none; overflow: visible; }
    .table-wrap table, .table-wrap tbody, .table-wrap tr, .table-wrap td { display: block; width: 100%; }
    .table-wrap thead { display: none; }
    .table-wrap tr { border: 1px solid var(--color-border); border-radius: 12px; margin-bottom: 12px; padding: 8px 0; }
    .table-wrap td { border-bottom: none; padding: 5px 16px; }
    .table-wrap td::before { content: attr(data-label); display: block; font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--n-500); }
    .table-wrap td:first-child { color: var(--n-900); font-weight: 650; }
    .table-wrap td:first-child::before { content: none; }
}

/* Templates you copy: an email, a post. */
.template {
    border: 1px solid var(--color-border); border-radius: 14px; margin: 0 0 22px; overflow: hidden; background: #fff;
}
.template-head {
    display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
    padding: 12px 16px; background: var(--n-50); border-bottom: 1px solid var(--color-border);
}
.template-head h3 { font-size: 16px; margin: 0; }
.template-meta { font-size: 13.5px; color: var(--n-500); }
.template-body { padding: 16px 18px; font-size: 15.5px; color: var(--n-700); white-space: pre-wrap; overflow-wrap: anywhere; font-family: inherit; }
.copy-btn {
    font-weight: 600; font-size: 13.5px; line-height: 1; font-family: inherit; padding: 8px 14px; border-radius: 999px; cursor: pointer;
    border: 1px solid var(--n-500); background: #fff; color: var(--n-800);
}
.copy-btn:hover { border-color: var(--n-700); }

/* Downloads: brand assets and banners */
.asset { border: 1px solid var(--color-border); border-radius: var(--r-card); overflow: hidden; background: #fff; display: flex; flex-direction: column; }
.asset-preview { aspect-ratio: 16 / 10; overflow: hidden; display: flex; align-items: center; justify-content: center; background: var(--n-50); padding: 18px; }
.asset-preview.dark { background: var(--n-900); }
.asset-preview.checker { background-color: #fff; background-image: linear-gradient(45deg, var(--n-100) 25%, transparent 25%), linear-gradient(-45deg, var(--n-100) 25%, transparent 25%), linear-gradient(45deg, transparent 75%, var(--n-100) 75%), linear-gradient(-45deg, transparent 75%, var(--n-100) 75%); background-size: 18px 18px; background-position: 0 0, 0 9px, 9px -9px, -9px 0; }
.asset-preview img, .asset-preview video { max-width: 100%; max-height: 100%; object-fit: contain; display: block; }
.asset-preview.cover { padding: 0; }
.asset-preview.cover img { width: 100%; height: 100%; object-fit: cover; max-height: none; }
.asset-body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.asset-body h3 { font-size: 15.5px; margin: 0; }
.asset-body p { font-size: 14px; color: var(--n-600); margin: 0; }
.asset-body a.download { margin-top: auto; font-weight: 600; font-size: 14.5px; }

.swatches { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.swatch { border: 1px solid var(--color-border); border-radius: 12px; overflow: hidden; }
.swatch-color { height: 72px; }
.swatch-body { padding: 10px 12px; font-size: 13.5px; color: var(--n-600); }
.swatch-body strong { display: block; color: var(--n-900); font-size: 14px; }
@media (max-width: 900px) { .swatches { grid-template-columns: repeat(2, 1fr); } }

/* Contents beside long pages */
.doc-layout { display: grid; grid-template-columns: 210px minmax(0, 1fr); gap: 52px; padding-top: 44px; }
.doc-toc { position: sticky; top: 92px; align-self: start; font-size: 14px; }
.doc-toc p { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--n-500); margin-bottom: 10px; }
.doc-toc ol { list-style: none; border-left: 2px solid var(--accent-soft); }
.doc-toc a { display: block; padding: 5px 0 5px 14px; margin-left: -2px; border-left: 2px solid transparent; color: var(--n-600); text-decoration: none; }
.doc-toc a:hover { color: var(--n-900); border-left-color: var(--accent); }
.doc-layout .prose h2:first-child { margin-top: 0; }
@media (max-width: 960px) {
    .doc-layout { grid-template-columns: 1fr; gap: 24px; }
    .doc-toc { position: static; }
    .doc-toc ol { display: flex; flex-wrap: wrap; gap: 4px 14px; border-left: none; }
    .doc-toc a { padding: 2px 0; margin-left: 0; border-left: none; }
}

/* Questions that open (training, quiz answers) */
details { border: 1px solid var(--color-border); border-radius: 12px; padding: 0 16px; margin: 0 0 12px; background: #fff; }
details[open] { padding-bottom: 12px; }
summary { cursor: pointer; font-weight: 650; padding: 13px 0; color: var(--n-900); }

/* The quiz */
.quiz-q { border: 1px solid var(--color-border); border-radius: 14px; padding: 18px 18px 12px; margin-bottom: 14px; }
.quiz-q legend { font-weight: 700; color: var(--n-900); padding: 0 4px; font-size: 16px; }
.quiz-q label { display: flex; gap: 10px; align-items: flex-start; padding: 7px 4px; font-size: 15.5px; color: var(--n-700); cursor: pointer; }
.quiz-q input { margin-top: 5px; }
.quiz-q .why { display: none; font-size: 14.5px; color: var(--n-600); margin: 6px 4px 4px; padding-top: 8px; border-top: 1px dashed var(--color-border); }
.quiz-q.graded .why { display: block; }
.quiz-q.right { border-color: var(--success); }
.quiz-q.wrong { border-color: var(--danger); }
.quiz-result { font-size: 17px; font-weight: 650; margin: 10px 0 0; }

/* A line under a printable page's toolbar */
.print-bar { background: var(--n-900); color: #fff; padding: 12px 0; }
.print-bar .container { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.print-bar a { color: #fff; }
.print-bar p { font-size: 14px; color: rgba(255,255,255,.8); }
.print-bar .btn-primary { padding: 9px 18px; font-size: 14px; }

/* Footer (as on every page of the site) */
footer .container { max-width: 1440px; }
footer { background: var(--n-900); color: rgba(255, 255, 255, 0.8); padding: 80px 0 40px; }
.footer-content { display: grid; grid-template-columns: 2fr repeat(5, 1fr); gap: 48px; margin-bottom: 48px; }
.footer-column h3 { color: white; font-size: 14px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 20px; }
.footer-column ul { list-style: none; padding: 0; margin: 0; }
.footer-column ul li { margin-bottom: 12px; }
.footer-column ul li a { color: rgba(255, 255, 255, 0.7); text-decoration: none; font-size: 14px; transition: color 0.2s cubic-bezier(0.72, 0, 0.12, 1); }
.footer-column ul li a:hover { color: white; }
.footer-brand { padding-right: 24px; }
.footer-brand .logo { font-size: 24px; font-weight: 800; color: white; margin-bottom: 16px; display: block; }
.footer-brand p { color: rgba(255, 255, 255, 0.6); font-size: 14px; line-height: 1.6; margin-bottom: 24px; }
.footer-social { display: flex; gap: 16px; }
.footer-social a { width: 40px; height: 40px; border-radius: 50%; background: rgba(255, 255, 255, 0.1); display: flex; align-items: center; justify-content: center; color: white; text-decoration: none; font-size: 18px; transition: all 0.2s cubic-bezier(0.72, 0, 0.12, 1); }
.footer-social a:hover { background: #6A4BFF; color: #ffffff; transform: translateY(-2px); }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, 0.1); padding-top: 32px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; }
.footer-bottom p { color: rgba(255, 255, 255, 0.5); font-size: 14px; margin: 0; }
.footer-bottom-links { display: flex; gap: 24px; flex-wrap: wrap; }
.footer-bottom-links a { color: rgba(255, 255, 255, 0.5); text-decoration: none; font-size: 14px; transition: color 0.2s cubic-bezier(0.72, 0, 0.12, 1); }
.footer-bottom-links a:hover { color: white; }

@media (max-width: 1100px) { .footer-content { grid-template-columns: repeat(3, 1fr); } .footer-brand { grid-column: 1 / -1; } }
@media (max-width: 768px) {
    .container { padding: 0 20px; }
    .page-hero { padding: 44px 0 28px; }
    .page-hero h1 { font-size: 34px; }
    .page-hero .lead { font-size: 17px; }
    .section > h2, .prose h2 { font-size: 25px; }
    .footer-content { grid-template-columns: 1fr; gap: 32px; }
    .footer-brand { padding-right: 0; }
    .footer-bottom { flex-direction: column; text-align: center; }
    .footer-bottom-links { flex-direction: column; gap: 12px; }
    .back-link { font-size: 14px; }
}

@media print {
    header.site-header, footer, .print-bar, .no-print, #wpm-consent { display: none !important; }
    body { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
    a { color: inherit; text-decoration: none; }
    .page-hero { background: none; padding: 0 0 16px; border: none; }
    .section { padding-top: 22px; break-inside: avoid-page; }
    .card, .template, .asset, .quiz-q, details { break-inside: avoid; }
    details { border: none; padding: 0; }
    details > summary { list-style: none; }
}
