/* ==========================================================================
   Content pages (guides, comparisons, use cases)
   Built on the tokens in site.css. Reading measure ~68 characters.
   ========================================================================== */

.article { padding-top: clamp(110px, 14vh, 150px); }

.article-head { max-width: calc(780px + var(--gutter) * 2); }
.article-head .headline { font-size: clamp(38px, 5.2vw, 64px); margin-bottom: 22px; }
.article-head .lede { margin-bottom: 26px; }

.crumbs { display: flex; gap: 8px; align-items: center; font-size: 14px; color: var(--text-3); margin-bottom: 28px; }
.crumbs a { color: var(--text-2); }
.crumbs a:hover { color: var(--text); }

.byline {
    font-size: 14px; color: var(--text-3);
    padding-bottom: 32px; border-bottom: 1px solid var(--line);
}

/* ---------- Prose ---------- */

.prose { max-width: calc(780px + var(--gutter) * 2); padding-top: 40px; padding-bottom: 40px; font-size: 19px; line-height: 1.65; color: #d2d2d7; }
.prose > * + * { margin-top: 1.1em; }
.prose h2 {
    font-size: clamp(28px, 3vw, 36px); font-weight: 700; letter-spacing: -0.03em; line-height: 1.15;
    color: var(--text); margin-top: 2.2em; scroll-margin-top: 90px; text-wrap: balance;
}
.prose h3 { font-size: 22px; font-weight: 700; letter-spacing: -0.02em; color: var(--text); margin-top: 1.8em; }
.prose h2 + *, .prose h3 + * { margin-top: 0.6em; }
.prose strong { color: var(--text); font-weight: 600; }
.prose a:not(.btn):not(.related-card) { color: var(--blue); text-decoration: underline; text-decoration-color: rgba(86, 166, 238, 0.4); text-underline-offset: 3px; }
.prose a:not(.btn):not(.related-card):hover { text-decoration-color: var(--blue); }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: 0.45em; }
.prose li::marker { color: var(--text-3); }
.prose blockquote { border-left: 3px solid var(--violet); padding: 4px 0 4px 20px; color: var(--text); font-style: italic; }
.prose figure img { border-radius: 18px; }
.prose figcaption { font-size: 14px; color: var(--text-3); margin-top: 10px; text-align: center; }
.prose small, .prose .note { font-size: 15px; color: var(--text-3); }
.prose code { font-size: 0.9em; background: var(--surface-2); padding: 2px 6px; border-radius: 6px; }

/* Answer-first summary */
.summary {
    background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
    padding: 24px 26px; font-size: 18px; line-height: 1.6;
}
.summary-label { display: block; font-size: 13px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--cyan); margin-bottom: 8px; }
.summary p { color: var(--text); }

/* Callouts */
.callout { background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--radius); padding: 20px 24px; }
.callout p { color: var(--text); }
.callout--green { background: rgba(52, 211, 153, 0.07); border-color: rgba(52, 211, 153, 0.3); }
.callout--orange { background: rgba(255, 162, 51, 0.07); border-color: rgba(255, 162, 51, 0.3); }
.callout--cyan { background: rgba(44, 200, 211, 0.07); border-color: rgba(44, 200, 211, 0.3); }

/* Legal pages: long documents, slightly denser type */
.prose.legal { font-size: 17px; line-height: 1.65; }
.prose.legal h2 { font-size: clamp(24px, 2.4vw, 30px); margin-top: 1.9em; }
.prose.legal h3 { font-size: 19px; margin-top: 1.5em; }
.prose.legal .compare td:first-child { color: var(--text); }

/* Table of contents */
.toc { border-left: 2px solid var(--line-strong); padding: 4px 0 4px 20px; font-size: 16px; }
.toc p { font-size: 13px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-3); margin-bottom: 8px; }
.toc ol { padding-left: 1.2em; }
.toc li + li { margin-top: 4px; }
.prose .toc a { color: var(--text-2); text-decoration: none; }
.prose .toc a:hover { color: var(--text); }

/* Numbered steps */
.steps-list { list-style: none; padding: 0; counter-reset: step; display: flex; flex-direction: column; gap: 14px; }
.prose .steps-list li + li { margin-top: 0; }
.steps-list li {
    counter-increment: step; position: relative;
    background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
    padding: 22px 24px 22px 76px;
}
.steps-list li::before {
    content: counter(step); position: absolute; left: 22px; top: 22px;
    width: 36px; height: 36px; border-radius: 50%;
    display: grid; place-items: center;
    background: var(--text); color: #000; font-weight: 700; font-size: 16px;
}
.steps-list b { display: block; color: var(--text); font-size: 19px; letter-spacing: -0.015em; margin-bottom: 4px; }

/* Comparison table */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); -webkit-overflow-scrolling: touch; }
.compare { width: 100%; min-width: 560px; border-collapse: collapse; font-size: 16px; line-height: 1.45; }
.compare th, .compare td { text-align: left; vertical-align: top; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.compare tr:last-child td { border-bottom: 0; }
.compare thead th { font-size: 14px; color: var(--text-3); font-weight: 600; background: var(--surface); }
.compare tbody th { color: var(--text); font-weight: 600; width: 24%; }
.compare td { color: var(--text-2); }
.compare .is-us { color: var(--text); background: rgba(123, 108, 246, 0.06); }
.compare thead .is-us { color: #b4acff; background: rgba(123, 108, 246, 0.12); }

/* Two-column verdict */
.verdict { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.verdict > div { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 24px; font-size: 17px; }
.verdict h3 { margin-top: 0 !important; font-size: 19px; margin-bottom: 10px; }
.verdict ul { padding-left: 1.1em; }
.verdict .is-us { border-color: rgba(123, 108, 246, 0.45); }

/* Example: note → knowledge → quiz */
.example { display: grid; gap: 12px; }
.example .card { padding: 20px 22px; font-size: 16px; line-height: 1.55; }
.example-label { font-size: 12px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-3); margin-bottom: 8px; display: block; }
.example .k-title { color: var(--text); }
.example-arrow { text-align: center; color: var(--text-3); font-size: 22px; line-height: 1; }

/* Copyable template */
.template { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 26px; }
.template pre { font-family: ui-monospace, 'SF Mono', Menlo, Consolas, monospace; font-size: 15px; line-height: 1.7; white-space: pre-wrap; color: var(--text); }
.template-copy {
    position: absolute; top: 14px; right: 14px;
    height: 34px; padding: 0 14px; border-radius: 999px;
    background: var(--surface-2); border: 1px solid var(--line-strong); font-size: 14px; font-weight: 600;
}
.template-copy:hover { background: #24242b; }

/* Inline download card */
.cta-card {
    display: grid; grid-template-columns: auto 1fr auto; gap: 18px; align-items: center;
    padding: 20px 22px; border-radius: var(--radius);
    background: linear-gradient(135deg, rgba(123, 108, 246, 0.14), rgba(44, 200, 211, 0.08));
    border: 1px solid rgba(123, 108, 246, 0.35);
    margin: 2em 0;
}
.cta-card img { width: 56px; height: 56px; border-radius: 14px; }
.cta-card-title { color: var(--text); font-weight: 700; font-size: 18px; letter-spacing: -0.015em; line-height: 1.3; }
.cta-card-text { font-size: 15px; color: var(--text-2); line-height: 1.45; margin-top: 4px !important; }
.cta-card .btn { height: 44px; font-size: 15px; padding: 0 18px; white-space: nowrap; }

/* FAQ inside an article */
.article-faq details { border-bottom: 1px solid var(--line); }
.article-faq details:first-of-type { border-top: 1px solid var(--line); margin-top: 18px; }
.article-faq summary {
    list-style: none; cursor: pointer; padding: 20px 0;
    display: flex; justify-content: space-between; gap: 20px; align-items: center;
    color: var(--text); font-weight: 600; font-size: 19px; letter-spacing: -0.015em;
}
.article-faq summary::-webkit-details-marker { display: none; }
.article-faq summary::after { content: '+'; font-size: 24px; font-weight: 400; color: var(--text-2); transition: transform 0.3s var(--ease); }
.article-faq details[open] summary::after { transform: rotate(45deg); }
.article-faq .answer { padding: 0 0 22px; font-size: 17px; color: var(--text-2); }

/* Related pages */
.related { max-width: 780px; margin: 0 auto; padding: 20px 0 40px; }
.related h2 { font-size: 24px; font-weight: 700; letter-spacing: -0.02em; margin-bottom: 16px; }
.related-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; }
.related-card {
    display: flex; flex-direction: column; gap: 6px;
    padding: 20px 22px; border-radius: var(--radius);
    background: var(--surface); border: 1px solid var(--line);
    transition: border-color 0.3s ease, transform 0.4s var(--ease);
}
.related-card:hover { border-color: var(--line-strong); transform: translateY(-2px); }
.related-card span { font-size: 13px; color: var(--text-3); font-weight: 600; }
.related-card b { font-size: 18px; letter-spacing: -0.015em; line-height: 1.3; }

/* Closing download band */
.cta-band { text-align: center; padding: clamp(80px, 12vh, 140px) 0; border-top: 1px solid var(--line); margin-top: 40px; }
.cta-band .lede { margin: 18px auto 0; }
.cta-band-stores { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; margin-top: 36px; }

@media (max-width: 640px) {
    .prose { font-size: 17px; }
    .summary { font-size: 17px; padding: 20px; }
    .steps-list li { padding: 20px 20px 20px 68px; }
    .steps-list li::before { left: 18px; top: 20px; }
    .verdict { grid-template-columns: 1fr; }
    .cta-card { grid-template-columns: auto 1fr; }
    .cta-card .btn { grid-column: 1 / -1; width: 100%; }
    .cta-band-stores .store { width: 100%; max-width: 300px; justify-content: center; }
}
