/* Ledgerline — shared styles for content pages */

.page-hero { padding: clamp(56px, 8vw, 96px) 0 clamp(30px, 4vw, 48px); position: relative; }
.page-hero.tinted { background: linear-gradient(180deg, #f6f9fc, #fff); }
.page-hero .eyebrow { margin-bottom: 14px; }
.page-hero h1 { max-width: 16ch; margin-bottom: 16px; }
.page-hero .lead { max-width: 56ch; }
.page-hero.center h1, .page-hero.center .lead { margin-left: auto; margin-right: auto; }

/* prose article */
.prose { max-width: 720px; margin: 0 auto; padding: 0 24px; }
.prose h2 { font-size: 1.7rem; margin: 46px 0 14px; }
.prose h3 { font-size: 1.25rem; margin: 32px 0 10px; }
.prose p { font-size: 1.08rem; line-height: 1.72; margin-bottom: 18px; color: #3c4a5e; }
.prose ul, .prose ol { margin: 0 0 20px; padding-left: 24px; }
.prose li { margin-bottom: 9px; font-size: 1.06rem; color: #3c4a5e; line-height: 1.65; }
.prose blockquote { margin: 26px 0; padding: 4px 0 4px 24px; border-left: 3px solid var(--blurple); font-size: 1.3rem; line-height: 1.4; color: var(--navy); font-weight: 500; letter-spacing: -.01em; }
.prose code { font-family: var(--mono); font-size: .88em; background: var(--bg-tint-2); color: var(--blurple-700); padding: 2px 6px; border-radius: 5px; border: 1px solid var(--hairline); }
.prose a { text-decoration: underline; text-underline-offset: 2px; }
.prose hr { border: 0; height: 1px; background: var(--hairline); margin: 40px 0; }
.prose .figure { margin: 30px 0; padding: 22px 24px; background: var(--bg-tint); border: 1px solid var(--hairline); border-radius: 14px; }

/* pricing */
.tiers { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; max-width: 900px; margin: 0 auto; }
.tier { background: #fff; border: 1px solid var(--hairline); border-radius: 18px; padding: 32px; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; }
.tier.featured { border-color: var(--blurple); box-shadow: var(--shadow-blurple); position: relative; }
.tier.featured::before { content: 'Most popular'; position: absolute; top: -12px; left: 32px; background: var(--blurple); color: #fff; font-size: 12px; font-weight: 600; padding: 4px 12px; border-radius: 999px; }
.tier .tname { font-family: var(--mono); font-size: 13px; letter-spacing: .06em; text-transform: uppercase; color: var(--blurple-600); font-weight: 600; margin-bottom: 12px; }
.tier .tprice { font-size: 2.6rem; font-weight: 700; color: var(--navy); letter-spacing: -.03em; line-height: 1; }
.tier .tprice small { font-size: 1rem; font-weight: 500; color: var(--slate-400); }
.tier .twho { color: var(--slate-400); font-size: 14.5px; margin: 10px 0 22px; }
.tier ul { list-style: none; padding: 0; margin: 0 0 24px; display: grid; gap: 11px; }
.tier li { display: flex; gap: 10px; font-size: 14.5px; color: var(--slate); }
.tier li svg { flex: none; margin-top: 3px; }
.tier .btn { margin-top: auto; justify-content: center; }
.pricing-note { text-align: center; color: var(--slate-400); font-size: 14px; margin: 26px auto 0; max-width: 60ch; }
.rate-table { max-width: 720px; margin: 0 auto; border-collapse: collapse; width: 100%; }
.rate-table td, .rate-table th { padding: 14px 16px; border-bottom: 1px solid var(--hairline-2); text-align: left; font-size: 15px; }
.rate-table th { font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--slate-300); }
.rate-table td:last-child { text-align: right; font-variant-numeric: tabular-nums; font-weight: 600; color: var(--navy); }
@media (max-width: 720px) { .tiers { grid-template-columns: 1fr; } }

/* faq */
.faq { max-width: 720px; margin: 0 auto; }
.faq details { border-bottom: 1px solid var(--hairline); padding: 4px 0; }
.faq summary { cursor: pointer; list-style: none; padding: 18px 0; font-weight: 600; color: var(--navy); font-size: 1.06rem; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-size: 1.5rem; color: var(--blurple); font-weight: 400; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 0 20px; color: var(--slate); font-size: 1rem; line-height: 1.65; max-width: 62ch; }

/* blog */
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.post-card { display: flex; flex-direction: column; border: 1px solid var(--hairline); border-radius: 16px; overflow: hidden; background: #fff; box-shadow: var(--shadow-sm); transition: transform .2s var(--ease), box-shadow .2s; }
.post-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.post-cover { height: 150px; position: relative; overflow: hidden; }
.post-cover .g, .fp-cover .g, .article-cover .g { position: absolute; inset: 0; }
.post-body { padding: 22px; display: flex; flex-direction: column; flex: 1; }
.post-cat { font-family: var(--mono); font-size: 11.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--blurple-600); font-weight: 600; margin-bottom: 10px; }
.post-card h3 { font-size: 1.18rem; margin-bottom: 8px; color: var(--navy); }
.post-card p { font-size: 14px; color: var(--slate-400); margin-bottom: 16px; }
.post-meta { margin-top: auto; font-size: 13px; color: var(--slate-300); }
.featured-post { display: grid; grid-template-columns: 1.1fr 1fr; gap: 30px; align-items: center; border: 1px solid var(--hairline); border-radius: 20px; overflow: hidden; background: #fff; box-shadow: var(--shadow); margin-bottom: 40px; }
.featured-post .fp-cover { height: 100%; min-height: 280px; position: relative; }
.featured-post .fp-body { padding: 36px; }
.featured-post h2 { font-size: 1.9rem; margin: 10px 0 12px; }
.featured-post p { color: var(--slate); margin-bottom: 20px; }
@media (max-width: 860px) { .blog-grid { grid-template-columns: 1fr 1fr; } .featured-post { grid-template-columns: 1fr; } .featured-post .fp-cover { min-height: 200px; } }
@media (max-width: 560px) { .blog-grid { grid-template-columns: 1fr; } }

/* article header */
.article-head { max-width: 720px; margin: 0 auto; padding: clamp(48px,7vw,80px) 24px 20px; }
.article-head .a-cat { font-family: var(--mono); font-size: 12.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--blurple-600); font-weight: 600; margin-bottom: 14px; }
.article-head h1 { font-size: clamp(2rem, 4.4vw, 3rem); margin-bottom: 18px; }
.article-head .a-meta { color: var(--slate-400); font-size: 14.5px; display: flex; gap: 10px; align-items: center; }
.article-cover { max-width: 900px; height: 300px; margin: 24px auto 40px; border-radius: 18px; position: relative; overflow: hidden; }

/* changelog */
.changelog { max-width: 760px; margin: 0 auto; }
.cl-entry { display: grid; grid-template-columns: 180px 1fr; gap: 24px; padding: 34px 0; border-top: 1px solid var(--hairline); }
.cl-entry:first-child { border-top: 0; }
.cl-date { position: sticky; }
.cl-version { font-family: var(--mono); font-size: 14px; color: var(--navy); font-weight: 600; }
.cl-when { font-size: 13px; color: var(--slate-300); margin-top: 4px; }
.cl-body h3 { font-size: 1.2rem; margin-bottom: 8px; }
.cl-body p { color: var(--slate); font-size: 15px; margin-bottom: 12px; }
.cl-body ul { padding-left: 20px; margin: 0 0 8px; } .cl-body li { margin-bottom: 6px; color: var(--slate); font-size: 14.5px; }
.cl-tags { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 12px; }
@media (max-width: 640px) { .cl-entry { grid-template-columns: 1fr; gap: 10px; } }

/* newsletter */
.newsletter { background: var(--navy); border-radius: 20px; padding: clamp(32px,5vw,52px); color: #fff; position: relative; overflow: hidden; }
.newsletter h2 { color: #fff; margin-bottom: 10px; }
.newsletter p { color: #a9b8ce; max-width: 46ch; margin-bottom: 22px; }
.nl-form { display: flex; gap: 10px; max-width: 460px; flex-wrap: wrap; }
.nl-form input { flex: 1; min-width: 200px; padding: 13px 16px; border-radius: 10px; border: 1px solid rgba(255,255,255,.16); background: rgba(255,255,255,.08); color: #fff; font-family: var(--sans); font-size: 15px; }
.nl-form input::placeholder { color: #7f92ad; }
.nl-form input:focus { outline: none; border-color: var(--cyan); }
.nl-ok { color: #7dd3a8; font-weight: 600; margin-top: 6px; }

/* support */
.support-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; }
.help-card { border: 1px solid var(--hairline); border-radius: 14px; padding: 24px; background: #fff; transition: .18s; }
.help-card:hover { border-color: var(--blurple); box-shadow: var(--shadow); transform: translateY(-2px); }
.help-card h3 { font-size: 1.1rem; margin-bottom: 8px; color: var(--navy); }
.help-card p { font-size: 14px; color: var(--slate-400); }
.contact-form { max-width: 520px; }
.contact-form .field { margin-bottom: 14px; }
.contact-form label { display: block; font-size: 13px; font-weight: 600; color: var(--navy); margin-bottom: 6px; }
.contact-form input, .contact-form textarea { width: 100%; padding: 12px 14px; border: 1px solid var(--hairline); border-radius: 9px; font-family: var(--sans); font-size: 15px; color: var(--navy); }
.contact-form input:focus, .contact-form textarea:focus { outline: none; border-color: var(--blurple); box-shadow: 0 0 0 3px rgba(99,91,255,.15); }
.contact-form textarea { min-height: 120px; resize: vertical; }
@media (max-width: 760px) { .support-grid { grid-template-columns: 1fr; } }
