/* ═══════════════════════════════════════════════════════════
   WorkHub site — styles for the pages added alongside the landing page:
   value-proposition blocks, Integrations, Help & knowledge base, Roadmap.
   Loaded after style.css, which owns the shared tokens and the landing page.
   ═══════════════════════════════════════════════════════════ */

/* ── Mobile nav drawer ──
   style.css hides .nav-links under 768px; .open re-shows it as a drawer, so
   the hamburger button has something to toggle. */
.nav-links a.is-current { color: white; }
.mobile-menu.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.mobile-menu.is-open span:nth-child(2) { opacity: 0; }
.mobile-menu.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
@media (max-width: 768px) {
    .nav-links.open {
        display: flex; flex-direction: column; align-items: stretch;
        position: absolute; top: 100%; left: 0; right: 0;
        background: rgba(27, 27, 27, 0.98); backdrop-filter: blur(20px);
        padding: 20px 24px 24px; gap: 4px;
        border-top: 1px solid rgba(255,255,255,0.08);
        max-height: calc(100vh - 70px); overflow-y: auto;
    }
    .nav-links.open a { padding: 12px 0; font-size: 16px; }
    .nav-links.open .nav-cta { margin-top: 8px; text-align: center; padding: 12px 20px !important; }
}

/* ── Brand logo ──
   Replaces the old "W" square plus text span. The light variant is used because
   both the navigation and the footer sit on dark backgrounds; images/logo.svg is
   the same artwork with a dark wordmark for light surfaces.

   Width and height are set so the browser reserves the right box before the SVG
   arrives — a logo that pops in and reflows the nav is the first thing a visitor
   sees. Aspect ratio is 1129.64 : 281.03, so height drives width. */
.logo img { display: block; height: 34px; width: auto; }
#footer .logo img { height: 30px; }
@media (max-width: 768px) { .logo img { height: 28px; } }

/* Footer gained a fourth column (Resources). */
.footer-content { grid-template-columns: 1.5fr 1fr 1.15fr 1fr 1fr; gap: 32px; }
@media (max-width: 1000px) { .footer-content { grid-template-columns: 1fr 1fr 1fr; gap: 32px; } }
@media (max-width: 760px) { .footer-content { grid-template-columns: 1fr 1fr; gap: 28px; } }
@media (max-width: 560px) { .footer-content { grid-template-columns: 1fr; } }

/* ── Inner-page hero ── */
.page-hero { background: var(--surface-dark); color: var(--text-light); padding: 150px 0 70px; position: relative; overflow: hidden; }
.page-hero::after { content: ""; position: absolute; top: -40%; right: -10%; width: 60%; height: 180%; background: radial-gradient(circle, var(--brand-glow) 0%, transparent 65%); pointer-events: none; }
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 { font-size: clamp(32px, 4.5vw, 52px); font-weight: 800; color: white; line-height: 1.15; letter-spacing: -0.02em; margin-bottom: 18px; max-width: 22ch; }
.page-hero p.page-lede { font-size: 18px; color: rgba(255,255,255,0.68); max-width: 62ch; line-height: 1.7; }
.page-hero .hero-actions { margin: 36px 0 0; }
.breadcrumb { display: flex; align-items: center; gap: 8px; font-size: 13px; color: rgba(255,255,255,0.45); margin-bottom: 20px; flex-wrap: wrap; }
.breadcrumb a { color: rgba(255,255,255,0.6); }
.breadcrumb a:hover { color: white; text-decoration: underline; }
.breadcrumb .sep { opacity: 0.4; }

/* ── Homepage value proposition ── */
.value-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.value-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 32px; transition: var(--transition); }
.value-card:hover { border-color: var(--brand-primary); box-shadow: var(--shadow-lg); transform: translateY(-4px); }
.value-metric { font-size: 40px; font-weight: 800; color: var(--brand-primary); letter-spacing: -0.03em; line-height: 1.1; }
.value-metric small { font-size: 18px; font-weight: 700; color: var(--text-muted); }
/* The three core promises use the metric slot for a word, not a number, so it
   wants label proportions rather than headline ones. */
.value-card.promise .value-metric { font-size: 21px; text-transform: uppercase; letter-spacing: 0.14em; }

/* Solution cards — four of them, so two columns rather than the three the
   other card grids use. Whole card is the link: the anchor text a crawler
   reads is the descriptive line at the bottom, not "read more". */
.solutions-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.solution-card { display: block; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 28px; transition: var(--transition); }
.solution-card:hover { border-color: var(--brand-primary); box-shadow: var(--shadow-lg); transform: translateY(-3px); }
.solution-card h3 { font-size: 18px; font-weight: 700; margin-bottom: 8px; color: var(--text); }
.solution-card p { font-size: 14.5px; color: var(--text-muted); line-height: 1.65; margin-bottom: 14px; }
.solution-link { font-size: 13.5px; font-weight: 700; color: var(--brand-primary); }
.solution-link::after { content: ' →'; }

/* Homepage module cards: an explicit "go deeper" link. Only four of the eight
   modules have a page, so the affordance is a link rather than a clickable
   card — otherwise the four without one look broken. */
.feature-more { display: inline-block; margin-top: 12px; font-size: 13px; font-weight: 700; color: var(--brand-accent); }
.feature-more::after { content: ' →'; }
.feature-more:hover { text-decoration: underline; }
.value-card h3 { font-size: 17px; font-weight: 700; margin: 14px 0 8px; }
.value-card p { font-size: 14.5px; color: var(--text-muted); line-height: 1.65; }

.proof-strip { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 44px; }
.proof-pill { display: inline-flex; align-items: center; gap: 8px; background: #F1F1F1; border: 1px solid var(--border); border-radius: 100px; padding: 9px 18px; font-size: 13.5px; font-weight: 700; color: var(--text); }
.proof-pill .tick { color: var(--success); font-weight: 800; }

/* ── Savings calculator ── */
.calc { display: grid; grid-template-columns: 1fr 1.1fr; gap: 44px; align-items: start; background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.1); border-radius: var(--radius-lg); padding: 40px; }
.calc-inputs { display: flex; flex-direction: column; gap: 26px; }
.calc-field label { display: block; font-size: 14px; font-weight: 700; color: white; margin-bottom: 4px; }
.calc-field .calc-hint { font-size: 12.5px; color: rgba(255,255,255,0.45); margin-bottom: 14px; }
.calc-field output { float: right; font-weight: 800; color: var(--brand-accent); font-variant-numeric: tabular-nums; }
.calc-field input[type=range] { width: 100%; -webkit-appearance: none; appearance: none; height: 6px; border-radius: 100px; background: rgba(255,255,255,0.15); outline: none; }
.calc-field input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; width: 22px; height: 22px; border-radius: 50%; background: var(--brand-primary-light); border: 3px solid white; cursor: pointer; box-shadow: 0 2px 8px rgba(0,0,0,0.4); }
.calc-field input[type=range]::-moz-range-thumb { width: 18px; height: 18px; border-radius: 50%; background: var(--brand-primary-light); border: 3px solid white; cursor: pointer; }
.calc-field input[type=range]:focus-visible { box-shadow: 0 0 0 4px var(--brand-glow); }

.calc-result { background: rgba(27, 27, 27,0.55); border: 1px solid rgba(255,255,255,0.12); border-radius: var(--radius); padding: 30px; }
.calc-row { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,0.07); font-size: 14.5px; color: rgba(255,255,255,0.72); }
.calc-row strong { color: white; font-size: 17px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.calc-row.is-total { border-bottom: none; padding-top: 20px; }
.calc-row.is-total span { font-size: 16px; font-weight: 700; color: white; }
.calc-row.is-total strong { font-size: 30px; font-weight: 800; color: var(--success); letter-spacing: -0.02em; }
.calc-verdict { margin-top: 20px; padding: 18px 20px; border-radius: var(--radius); background: rgba(174, 58, 237,0.14); border: 1px solid rgba(174, 58, 237,0.35); font-size: 14.5px; color: rgba(255,255,255,0.85); line-height: 1.6; }
.calc-verdict strong { color: white; }
.calc-footnote { font-size: 12px; color: rgba(255,255,255,0.4); margin-top: 16px; line-height: 1.55; }

/* ── Pricing emphasis ── */
.pricing-featured { border-width: 2px; box-shadow: 0 24px 70px rgba(174, 58, 237,0.28); }
.pricing-recommended-note { font-size: 13px; color: var(--brand-accent); font-weight: 700; margin: -18px 0 20px; }
.pricing-unit { font-size: 12.5px; color: rgba(255,255,255,0.42); margin-bottom: 22px; font-variant-numeric: tabular-nums; }
.pricing-features li.is-missing { color: rgba(255,255,255,0.32); }
.pricing-features li.is-missing::before { content: "—"; color: rgba(255,255,255,0.28); }
.pricing-note-under { text-align: center; font-size: 14px; color: rgba(255,255,255,0.55); margin-top: 36px; line-height: 1.7; }
.pricing-note-under a { color: var(--brand-accent); text-decoration: underline; }

/* ── Generic card grid ──
   minmax(0, 1fr) rather than 1fr: a plain 1fr track refuses to shrink below its
   content's min-content width, and a card containing a fixed-width logo and a
   nowrap status pill has a wide one — which pushed the whole page sideways on a
   phone. */
.card-grid { display: grid; gap: 22px; }
.card-grid.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.card-grid.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.card-grid.cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

/* ── Integrations ── */
.filter-bar { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-bottom: 44px; }
.filter-chip { background: var(--surface); border: 1px solid var(--border); border-radius: 100px; padding: 9px 20px; font-size: 14px; font-weight: 700; color: var(--text-muted); cursor: pointer; font-family: inherit; transition: var(--transition); }
.filter-chip:hover { border-color: var(--brand-primary); color: var(--brand-primary); }
.filter-chip[aria-pressed="true"] { background: var(--brand-primary); border-color: var(--brand-primary); color: white; }

.integration-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 28px; display: flex; flex-direction: column; transition: var(--transition); }
.integration-card:hover { border-color: var(--brand-primary); box-shadow: var(--shadow-lg); transform: translateY(-3px); }
.integration-top { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; flex-wrap: wrap; }
/* The name/category block must be allowed to shrink, or the flex row sets an
   unshrinkable min-content width for the whole card. */
.integration-top > div:not(.integration-logo) { flex: 1 1 auto; min-width: 0; }
.integration-logo { width: 46px; height: 46px; flex: 0 0 46px; border-radius: 12px; display: flex; align-items: center; justify-content: center; color: white; font-weight: 800; font-size: 17px; letter-spacing: -0.02em; }
.integration-card h3 { font-size: 17px; font-weight: 700; line-height: 1.25; overflow-wrap: break-word; }
.integration-cat { font-size: 12px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 1px; font-weight: 700; }
.integration-summary { font-size: 14.5px; color: var(--text-muted); line-height: 1.65; margin-bottom: 18px; }
.integration-caps { list-style: none; margin-bottom: 20px; }
.integration-caps li { position: relative; padding: 5px 0 5px 22px; font-size: 13.5px; color: var(--text); }
.integration-caps li::before { content: "\2713"; position: absolute; left: 0; color: var(--success); font-weight: 700; }
.integration-setup { font-size: 13px; color: var(--text-muted); background: #F7F7F7; border-left: 3px solid var(--border); padding: 12px 14px; border-radius: 0 8px 8px 0; line-height: 1.6; margin-bottom: 18px; }
.integration-foot { margin-top: auto; display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.integration-foot a { font-size: 13.5px; font-weight: 700; color: var(--brand-primary); }
.integration-foot a:hover { text-decoration: underline; }

.status-pill { display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.8px; padding: 4px 11px; border-radius: 100px; white-space: nowrap; }
.status-pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.status-live { background: rgba(16,185,129,0.12); color: #047857; }
.status-beta { background: rgba(174, 58, 237,0.12); color: #8E2BC7; }
.status-development { background: rgba(245,158,11,0.16); color: #b45309; }
.status-planned { background: #F1F1F1; color: #6B6B6B; }
.integration-top .status-pill { margin-left: auto; }

.request-box { text-align: center; background: #F7F7F7; border: 1px dashed var(--border); border-radius: var(--radius-lg); padding: 44px 28px; margin-top: 44px; }
.request-box h3 { font-size: 22px; font-weight: 700; margin-bottom: 10px; }
.request-box p { color: var(--text-muted); max-width: 58ch; margin: 0 auto 24px; line-height: 1.7; }
.request-box .hero-actions { justify-content: center; margin: 0; }

/* ── Help & support ── */
.help-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 30px; transition: var(--transition); display: block; }
.help-card:hover { border-color: var(--brand-primary); box-shadow: var(--shadow-lg); transform: translateY(-3px); }
.help-icon { font-size: 28px; margin-bottom: 14px; }
.help-card h3 { font-size: 17px; font-weight: 700; margin-bottom: 8px; }
.help-card p { font-size: 14.5px; color: var(--text-muted); line-height: 1.65; }
.help-meta { display: block; margin-top: 14px; font-size: 12.5px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: var(--brand-primary); }

.sla-table-wrapper { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); }
.sla-table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.sla-table th { background: var(--surface-dark); color: white; padding: 14px 18px; text-align: left; font-size: 12.5px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.6px; }
.sla-table td { padding: 14px 18px; border-bottom: 1px solid var(--border); vertical-align: top; }
.sla-table tr:last-child td { border-bottom: none; }
.sla-table td:first-child { font-weight: 700; }
.sev-note { display: block; font-size: 13px; color: var(--text-muted); font-weight: 400; margin-top: 3px; }

.kb-search { max-width: 620px; margin: 0 auto 44px; position: relative; }
.kb-search input { width: 100%; padding: 17px 20px 17px 52px; font-size: 16px; font-family: inherit; border: 1px solid var(--border); border-radius: 100px; background: var(--surface); box-shadow: var(--shadow); color: var(--text); }
.kb-search input:focus { outline: none; border-color: var(--brand-primary); box-shadow: 0 0 0 4px var(--brand-glow); }
.kb-search-icon { position: absolute; left: 20px; top: 50%; transform: translateY(-50%); font-size: 17px; opacity: 0.5; pointer-events: none; }

.kb-category-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 28px; transition: var(--transition); }
.kb-category-card:hover { border-color: var(--brand-primary); box-shadow: var(--shadow-lg); }
.kb-cat-icon { font-size: 26px; margin-bottom: 12px; }
.kb-category-card h3 { font-size: 17px; font-weight: 700; margin-bottom: 6px; }
.kb-category-card > p { font-size: 14px; color: var(--text-muted); line-height: 1.6; margin-bottom: 14px; }
.kb-article-links { list-style: none; }
.kb-article-links li { padding: 4px 0; }
.kb-article-links a { font-size: 14px; color: var(--brand-primary); }
.kb-article-links a:hover { text-decoration: underline; }

.kb-results { max-width: 760px; margin: 0 auto; }
.kb-result { display: block; padding: 18px 20px; border: 1px solid var(--border); border-radius: var(--radius); margin-bottom: 12px; background: var(--surface); transition: var(--transition); }
.kb-result:hover { border-color: var(--brand-primary); box-shadow: var(--shadow); }
.kb-result h4 { font-size: 16px; font-weight: 700; margin-bottom: 4px; }
.kb-result p { font-size: 14px; color: var(--text-muted); line-height: 1.55; }
.kb-result-cat { font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: var(--brand-primary); }
.kb-empty { text-align: center; color: var(--text-muted); padding: 40px 20px; }

/* ── Article reader ── */
.article-layout { display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: 56px; align-items: start; }
.article-body { max-width: 74ch; }
.article-body h2 { font-size: 26px; font-weight: 800; margin: 44px 0 14px; letter-spacing: -0.01em; scroll-margin-top: 100px; }
.article-body h3 { font-size: 19px; font-weight: 700; margin: 32px 0 10px; scroll-margin-top: 100px; }
.article-body p { font-size: 16.5px; line-height: 1.75; color: #3A3A3A; margin-bottom: 18px; }
.article-body ul, .article-body ol { margin: 0 0 20px; padding-left: 26px; }
.article-body li { font-size: 16.5px; line-height: 1.75; color: #3A3A3A; margin-bottom: 9px; }
.article-body a { color: var(--brand-primary); text-decoration: underline; text-underline-offset: 2px; }
.article-body strong { font-weight: 700; color: var(--text); }
.article-body code { background: #F1F1F1; border: 1px solid var(--border); border-radius: 5px; padding: 1px 6px; font-size: 14.5px; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
/* Tables inside a knowledge base article. Scroll inside their own container so
   a wide comparison table never makes the whole page scroll sideways. */
.article-body .table-scroll { overflow-x: auto; margin: 24px 0; border: 1px solid var(--border); border-radius: var(--radius); }
.article-body .doc-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.article-body .doc-table th { background: #F7F7F7; text-align: left; padding: 12px 16px; font-size: 12.5px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; color: var(--text-muted); border-bottom: 1px solid var(--border); white-space: nowrap; }
.article-body .doc-table td { padding: 12px 16px; border-bottom: 1px solid var(--border); color: #3A3A3A; vertical-align: top; line-height: 1.6; }
.article-body .doc-table tr:last-child td { border-bottom: none; }

.article-body figure { margin: 28px 0; }
.article-body figure img { width: 100%; border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); }
.article-body figcaption { font-size: 13.5px; color: var(--text-muted); text-align: center; margin-top: 10px; font-style: italic; }
.shot-placeholder { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; min-height: 200px; background: #F7F7F7; border: 2px dashed var(--border); border-radius: var(--radius); color: var(--text-muted); text-align: center; padding: 28px; }
.shot-icon { font-size: 28px; opacity: 0.6; }
.shot-label { font-size: 14px; font-weight: 700; }
.shot-sub { font-size: 12.5px; }

.article-aside { position: sticky; top: 100px; }
.article-toc { border-left: 2px solid var(--border); padding-left: 18px; margin-bottom: 32px; }
.aside-title { font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: 1.2px; color: var(--text-muted); margin-bottom: 12px; }
.article-toc a { display: block; font-size: 14px; color: var(--text-muted); padding: 5px 0; line-height: 1.45; }
.article-toc a:hover { color: var(--brand-primary); }
.article-related a { display: block; font-size: 14px; color: var(--brand-primary); padding: 5px 0; line-height: 1.45; }
.article-related a:hover { text-decoration: underline; }
.article-feedback { margin-top: 56px; padding: 26px 28px; background: #F7F7F7; border: 1px solid var(--border); border-radius: var(--radius-lg); }
.article-feedback h4 { font-size: 16px; font-weight: 700; margin-bottom: 6px; }
.article-feedback p { font-size: 14.5px; color: var(--text-muted); margin-bottom: 16px; }
.article-updated { font-size: 13px; color: var(--text-muted); margin-bottom: 28px; }

/* ── Roadmap ── */
.auth-bar { display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.12); border-radius: var(--radius); padding: 16px 22px; margin-top: 32px; }
.auth-bar p { font-size: 14.5px; color: rgba(255,255,255,0.72); margin: 0; }
.auth-who { color: white; font-weight: 700; }
.auth-actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.btn-sm { padding: 9px 18px; font-size: 13.5px; border-radius: 8px; }
.btn-link { background: none; border: none; color: rgba(255,255,255,0.6); font-family: inherit; font-size: 13.5px; cursor: pointer; text-decoration: underline; padding: 9px 4px; }
.btn-link:hover { color: white; }

.roadmap-board { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; align-items: start; }
.roadmap-column { background: #F7F7F7; border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 20px; }
.roadmap-column-head { display: flex; align-items: center; gap: 9px; margin-bottom: 6px; }
.roadmap-column-head h3 { font-size: 15px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.8px; }
.roadmap-dot { width: 9px; height: 9px; border-radius: 50%; flex: 0 0 9px; }
.roadmap-count { margin-left: auto; font-size: 12.5px; font-weight: 700; color: var(--text-muted); background: var(--surface); border: 1px solid var(--border); border-radius: 100px; padding: 1px 9px; }
.roadmap-lane-blurb { font-size: 13px; color: var(--text-muted); line-height: 1.55; margin-bottom: 18px; }
.roadmap-items { display: flex; flex-direction: column; gap: 12px; }
.roadmap-item { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; transition: var(--transition); }
.roadmap-item:hover { border-color: var(--brand-primary); box-shadow: var(--shadow); }
.roadmap-item h4 { font-size: 15px; font-weight: 700; line-height: 1.35; margin-bottom: 8px; }
.roadmap-item p { font-size: 13.5px; color: var(--text-muted); line-height: 1.6; margin-bottom: 14px; }
.roadmap-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.roadmap-tag { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.7px; color: var(--text-muted); background: #F1F1F1; border-radius: 5px; padding: 3px 8px; }
.roadmap-target { display: inline-block; font-size: 12px; font-weight: 700; color: var(--brand-primary); background: var(--brand-glow); border-radius: 5px; padding: 3px 9px; margin-bottom: 12px; }
.roadmap-item-foot { display: flex; align-items: center; gap: 12px; }
.vote-btn { display: inline-flex; align-items: center; gap: 8px; background: var(--surface); border: 1.5px solid var(--border); border-radius: 100px; padding: 7px 15px; font-family: inherit; font-size: 13.5px; font-weight: 700; color: var(--text); cursor: pointer; transition: var(--transition); font-variant-numeric: tabular-nums; }
.vote-btn:hover:not(:disabled) { border-color: var(--brand-primary); color: var(--brand-primary); }
.vote-arrow { font-size: 11px; }
.vote-btn[aria-pressed="true"] { background: var(--brand-primary); border-color: var(--brand-primary); color: white; }
.vote-btn:disabled { opacity: 0.55; cursor: not-allowed; }
.roadmap-empty { font-size: 13.5px; color: var(--text-muted); text-align: center; padding: 22px 8px; font-style: italic; }

.suggest-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.suggest-form { display: flex; flex-direction: column; gap: 16px; }
.suggest-form label { font-size: 14px; font-weight: 700; margin-bottom: 6px; display: block; }
.signin-gate { background: #F7F7F7; border: 1px dashed var(--border); border-radius: var(--radius); padding: 28px; text-align: center; }
.signin-gate p { font-size: 14.5px; color: var(--text-muted); margin-bottom: 18px; line-height: 1.65; }

/* ── Sign-in form (email link) ──
   Appears on a light panel in the suggestion box and on the dark header bar, so
   the compact variant inverts its text colours. */
.signin-form { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: center; }
.signin-form input[type=email] {
    flex: 1 1 210px; min-width: 0; padding: 11px 14px; font-size: 14.5px; font-family: inherit;
    border: 1px solid var(--border); border-radius: 8px; background: var(--surface); color: var(--text);
}
.signin-form input[type=email]:focus { outline: none; border-color: var(--brand-primary); box-shadow: 0 0 0 3px var(--brand-glow); }
.signin-form .btn-link { color: var(--text-muted); }
.signin-form .btn-link:hover { color: var(--brand-primary); }
.signin-form .signin-feedback { flex: 1 0 100%; margin: 0; font-size: 13px; text-align: center; }
.signin-form .signin-feedback:empty { display: none; }

.signin-form.is-compact { justify-content: flex-end; }
.signin-form.is-compact input[type=email] {
    flex: 0 1 220px; background: rgba(255,255,255,0.08);
    border-color: rgba(255,255,255,0.2); color: white;
}
.signin-form.is-compact input[type=email]::placeholder { color: rgba(255,255,255,0.45); }
.signin-form.is-compact .btn-link { color: rgba(255,255,255,0.6); }
.signin-form.is-compact .btn-link:hover { color: white; }
.signin-form.is-compact .signin-feedback { color: rgba(255,255,255,0.75); text-align: right; }
.signin-form.is-compact .form-ok { color: #6ee7b7; }

.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.form-error { font-size: 13.5px; color: var(--danger); }
.form-ok { font-size: 13.5px; color: var(--success); font-weight: 700; }
.field-note { font-size: 12.5px; color: var(--text-muted); margin-top: -8px; }

/* ── Release notes ── */
.container-narrow { max-width: 880px; }

.release-list { position: relative; }
.release { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 32px; padding: 34px 0; border-top: 1px solid var(--border); scroll-margin-top: 100px; }
.release:first-child { border-top: none; padding-top: 8px; }
.release-meta { position: sticky; top: 100px; align-self: start; }
.release-date { display: block; font-size: 14px; font-weight: 700; color: var(--text); }
.release-version { display: inline-block; margin-top: 6px; font-size: 11.5px; font-weight: 700; letter-spacing: 0.6px; color: var(--brand-primary); background: var(--brand-glow); border-radius: 5px; padding: 2px 8px; font-variant-numeric: tabular-nums; }
.release-body h2 { font-size: 23px; font-weight: 800; letter-spacing: -0.01em; margin-bottom: 10px; line-height: 1.25; }
.release-summary { font-size: 16.5px; line-height: 1.7; color: var(--text-muted); margin-bottom: 20px; }

.change-list { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.change { display: flex; gap: 12px; align-items: baseline; font-size: 15px; line-height: 1.65; }
.change-tag { flex: 0 0 auto; min-width: 68px; text-align: center; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.7px; padding: 3px 9px; border-radius: 100px; }
.change-added .change-tag { background: rgba(16,185,129,0.13); color: #047857; }
.change-improved .change-tag { background: rgba(174, 58, 237,0.12); color: #8E2BC7; }
.change-fixed .change-tag { background: rgba(245,158,11,0.16); color: #b45309; }
.change-text { color: #3A3A3A; }

/* Homepage "recently shipped" strip */
.shipped-strip { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; justify-content: center; background: #F7F7F7; border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 20px 26px; margin-top: 44px; }
.shipped-pulse { width: 9px; height: 9px; border-radius: 50%; background: var(--success); flex: 0 0 9px; animation: pulse 2s ease-in-out infinite; }
.shipped-strip p { font-size: 14.5px; color: var(--text-muted); margin: 0; }
.shipped-strip strong { color: var(--text); font-weight: 700; }
.shipped-strip a { color: var(--brand-primary); font-weight: 700; text-decoration: underline; white-space: nowrap; }

@media (max-width: 720px) {
    .release { grid-template-columns: minmax(0, 1fr); gap: 14px; padding: 26px 0; }
    .release-meta { position: static; display: flex; align-items: center; gap: 10px; }
    .release-version { margin-top: 0; }
    .release-body h2 { font-size: 20px; }
    .change { flex-direction: column; gap: 4px; }
    .change-tag { align-self: flex-start; min-width: 0; }
}

/* ── Toasts ── */
.toast-host { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); z-index: 4000; display: flex; flex-direction: column; gap: 10px; align-items: center; pointer-events: none; }
.toast { background: var(--surface-dark); color: white; border-radius: 100px; padding: 12px 24px; font-size: 14px; font-weight: 700; box-shadow: 0 8px 30px rgba(0,0,0,0.3); animation: toast-in 0.25s ease; max-width: min(90vw, 520px); text-align: center; }
.toast.is-error { background: var(--danger); }
.toast.is-ok { background: #047857; }
@keyframes toast-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

/* ── Draft preview banner ── */
.cms-draft-preview::before { content: "Draft preview \2014 not published"; position: fixed; top: 0; left: 0; right: 0; z-index: 3000; background: var(--warning); color: #2E2E2E; text-align: center; font-size: 12.5px; font-weight: 800; text-transform: uppercase; letter-spacing: 1px; padding: 5px; }

/* When the draft couldn't be loaded, an explanation replaces the generic banner
   rather than sitting on top of it — and it's red, because showing the
   published site when someone asked for their draft is a failure, not a state. */
.cms-draft-problem::before { content: none; display: none; }
.cms-draft-bar {
    position: fixed; top: 0; left: 0; right: 0; z-index: 3001;
    background: var(--danger); color: #fff; text-align: center;
    font-size: 13px; font-weight: 700; padding: 8px 16px; line-height: 1.45;
}

/* ── Responsive ── */
@media (max-width: 1024px) {
    .card-grid.cols-4, .card-grid.cols-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .value-grid { grid-template-columns: minmax(0, 1fr); }
    .roadmap-board { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .article-layout { grid-template-columns: minmax(0, 1fr); gap: 32px; }
    .article-aside { position: static; display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
    .calc { grid-template-columns: 1fr; gap: 32px; padding: 30px; }
}
@media (max-width: 768px) {
    .page-hero { padding: 120px 0 50px; }
    .card-grid.cols-2, .card-grid.cols-3, .card-grid.cols-4 { grid-template-columns: minmax(0, 1fr); }
    .solutions-grid { grid-template-columns: minmax(0, 1fr); }
    .roadmap-board { grid-template-columns: minmax(0, 1fr); }
    .suggest-layout { grid-template-columns: minmax(0, 1fr); gap: 36px; }
    .article-aside { grid-template-columns: minmax(0, 1fr); }
    .calc { padding: 24px; }
    .auth-bar { flex-direction: column; align-items: stretch; }
    .auth-actions .btn { width: 100%; }
    .article-body h2 { font-size: 22px; }
    .article-body p, .article-body li { font-size: 16px; }
}

/* ── Legal pages (privacy, terms) ───────────────────────────────────────────
   Long-form reading rather than marketing: a narrow measure, generous leading
   and headings that are scannable, because the people who open these are
   usually looking for one specific clause rather than reading it through. */
.legal-page { padding: 140px 0 80px; background: var(--bg, #fff); }
.legal-page .container { max-width: 780px; }
.legal-header { border-bottom: 1px solid var(--border); padding-bottom: 24px; margin-bottom: 36px; }
.legal-header h1 { font-size: clamp(30px, 4vw, 44px); font-weight: 800; letter-spacing: -0.02em; margin: 0 0 10px; }
.legal-meta { font-size: 14px; color: var(--text-muted); margin: 0; }
.legal-body { font-size: 16.5px; line-height: 1.75; color: var(--text); }
.legal-intro { font-size: 18px; line-height: 1.7; color: var(--text-muted); margin-bottom: 36px; }
.legal-body h2 { font-size: 22px; font-weight: 700; letter-spacing: -0.01em; margin: 44px 0 14px; padding-top: 4px; }
.legal-body h3 { font-size: 17px; font-weight: 700; margin: 28px 0 10px; }
.legal-body p { margin: 0 0 16px; }
.legal-body ul { margin: 0 0 20px; padding-left: 22px; }
.legal-body li { margin-bottom: 10px; }
.legal-body a { color: var(--brand-primary); text-decoration: underline; }
.legal-body code {
  font-size: 0.88em; background: var(--surface-alt, #f4f4f7);
  padding: 2px 6px; border-radius: 4px;
}
/* Used for the section a reviewer or a cautious IT admin will look for first. */
.legal-callout {
  border-left: 3px solid var(--brand-primary);
  background: var(--surface-alt, #f7f7fb);
  padding: 14px 18px; margin: 0 0 20px; border-radius: 0 var(--radius) var(--radius) 0;
  color: var(--text);
}
.legal-body em { color: var(--danger); font-style: normal; font-weight: 700; }

@media (max-width: 768px) {
  .legal-page { padding: 110px 0 60px; }
  .legal-body { font-size: 16px; }
  .legal-body h2 { font-size: 20px; margin-top: 36px; }
}
