/* ============================================================================
   HoneyBee Central Web — pages.css
   Per-page marketing styles, migrated out of inline <style> blocks by the CW1
   consolidation. Filled incrementally, page-group by page-group. Loaded globally
   via central_header.

   Unified breakpoint scale: 360 / 480 / 640 / 768 / 1024 / 1280 / 1440 (px).
   ============================================================================ */

/* ── Legal documents — strip-to-site-style (CW1, owner-approved 2026-07-05) ────
   terms_and_conditions was a Microsoft-Word paste (Calibri / point-sizes /
   justify inline on hundreds of nodes). Those typographic inline styles are
   stripped from the markup; this wrapper re-dresses the legal copy in HoneyBee
   typography. Structural inline styles (margin-left indentation, list-style-type
   for a/b/c sub-clauses) are intentionally preserved, so numbering/indentation
   are unchanged — only the font/size/alignment become on-brand. Wording is
   untouched. Apply via class="... legal-doc" on the content wrapper.
   ---------------------------------------------------------------------------- */
.legal-doc { font-family: var(--n-font); color: var(--n-dark); font-size: 15px; line-height: 1.75; }
.legal-doc p { margin: 0 0 14px; }
.legal-doc h1, .legal-doc h2, .legal-doc h3, .legal-doc h4, .legal-doc h5, .legal-doc h6 {
    font-family: 'Montserrat', sans-serif; color: var(--n-dark); font-weight: 800; line-height: 1.25; margin: 28px 0 12px;
}
.legal-doc h1 { font-size: 30px; }
.legal-doc h2 { font-size: 22px; }
.legal-doc h3 { font-size: 18px; }
.legal-doc h4, .legal-doc h5, .legal-doc h6 { font-size: 16px; }
.legal-doc li { margin: 4px 0; }
.legal-doc a { color: var(--n-amber); text-decoration: underline; }
.legal-doc strong, .legal-doc b { color: var(--n-dark); font-weight: 700; }
.legal-doc table { border-collapse: collapse; max-width: 100%; }
.legal-doc td, .legal-doc th { border: 1px solid var(--n-border-md); padding: 8px 10px; }

/* ── Legacy processing / preloader overlay ────────────────────────────────────
   Relocated verbatim from the retired temporary_inline.css (CW1, 2026-07-05).
   ID-scoped (inert unless the element is present); currently referenced by the
   payment-method page and legacy buddybee views — NOT by any marketing page,
   which use #hb-preloader instead. The image URLs are stale (one is an
   unrendered Twig token, one is a hardcoded dev host) and are preserved exactly
   as they were so this move is visually neutral; scheduled for removal once the
   buddybee preloader is confirmed dead.
   ---------------------------------------------------------------------------- */
#buddybee_preloader div {

    background: url("{{ url('dashboard') }}buddybee_assets/images/resized_buddybee.gif");
    width: 20vh;
    height: 20vh;
    margin: auto;
    margin-top: 40vh;
    border-radius: 50%;

    background-size: cover !important;
    background-position: center !important;

}

#buddybee_processing_loader {
    position: fixed;
    top: 0;
    bottom: 0;
    right: 0;
    left: 0;
    background-color: #ffffffad;

    display: none;
    /*background-size: cover !important;*/
    /*background-position: center !important;*/

}

#buddybee_processing_loader div {

    background: url(http://honeybee/buddybee_assets/images/resized_buddybee.gif?version=1.3.110);
    width: 20vh;
    height: 20vh;
    margin: auto;
    margin-top: 40vh;
    border-radius: 16px;
    background-size: 80%;
    background-repeat: no-repeat;
    background-position: top !important;
    /* border: 1px solid red; */
    background-color: white;

}

#buddybee_processing_loader p {

    text-align: center !important;
    color: #1d5b9e;
    text-transform: uppercase;
    padding-top: 16vh;
    font-weight: bold;

}

/* ── HoneyBee ERP product page (route honeybee_erp, /honeybee-erp) ─────────────
   One-claim page: "The ERP that refuses to guess." Page-scoped `.hbe-*` classes
   live here rather than in a per-page <style> block or inline style= attributes,
   per the CW1 consolidation. Colours/typography come entirely from the shared
   n-* tokens in _web_design_system.html.twig — nothing is hardcoded.
   Breakpoints use the unified scale (1024 / 768 / 480).
   ---------------------------------------------------------------------------- */

/* Hero */
.hbe-hero { background: var(--n-cream); padding: 120px 0 88px; position: relative; overflow: hidden; }
.hbe-hero::before {
    content: ''; position: absolute; inset: 0 0 0 auto; width: 55%;
    background: radial-gradient(ellipse 75% 70% at 85% 35%, rgba(192,125,42,.08) 0%, transparent 65%),
                radial-gradient(ellipse 55% 60% at 95% 85%, rgba(61,107,82,.06) 0%, transparent 60%);
    pointer-events: none;
}
.hbe-hero-inner { max-width: 720px; position: relative; }
.hbe-h1 {
    font-family: 'Montserrat', sans-serif; font-size: clamp(38px, 5.4vw, 66px);
    font-weight: 800; line-height: 1.04; letter-spacing: -.025em; color: var(--n-dark); margin: 0;
}
/* --n-amber on --n-cream measures 3.52:1. That clears WCAG AA for LARGE text
   (>=3:1) but not for normal text, so this line is pinned to a minimum of 19px
   at weight 700 — i.e. it is always large text, at every viewport width. Do not
   drop the size or the weight without also changing the colour. */
.hbe-sub {
    font-family: 'Montserrat', sans-serif; font-size: clamp(19px, 2.2vw, 25px);
    font-weight: 700; line-height: 1.35; letter-spacing: -.01em;
    color: var(--n-amber); margin: 20px 0 0; max-width: 21ch;
}
.hbe-lede { font-size: 17px; line-height: 1.72; color: var(--n-muted); max-width: 60ch; margin: 24px 0 0; }
.hbe-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }

/* Proof block — the centrepiece */
.hbe-proof { padding: 0 0 100px; background: var(--n-cream); }
.hbe-transcript {
    margin-top: 40px; background: var(--n-dark); border-radius: var(--n-radius-lg);
    box-shadow: var(--n-shadow-lg); overflow: hidden;
}
.hbe-tr-bar {
    display: flex; align-items: center; gap: 10px; padding: 14px 22px;
    background: rgba(255,255,255,.04); border-bottom: 1px solid rgba(255,255,255,.08);
}
.hbe-tr-dots { display: flex; gap: 6px; flex-shrink: 0; }
.hbe-tr-dots span { width: 9px; height: 9px; border-radius: 50%; background: rgba(255,255,255,.16); }
.hbe-tr-meta {
    font-family: ui-monospace, SFMono-Regular, 'SF Mono', Menlo, Consolas, monospace;
    font-size: 11.5px; letter-spacing: .04em; color: rgba(255,255,255,.62);
}
.hbe-tr-body { padding: 30px 34px 34px; }
.hbe-turn + .hbe-turn { margin-top: 26px; padding-top: 26px; border-top: 1px solid rgba(255,255,255,.07); }
.hbe-who {
    display: block; font-family: ui-monospace, SFMono-Regular, 'SF Mono', Menlo, Consolas, monospace;
    font-size: 11px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase;
    color: rgba(255,255,255,.5); margin-bottom: 10px;
}
.hbe-turn-bee .hbe-who { color: var(--n-amber-lt); }
.hbe-said { font-size: 16.5px; line-height: 1.7; color: rgba(255,255,255,.9); margin: 0; }
.hbe-said + .hbe-said { margin-top: 12px; }
.hbe-said b { color: #fff; font-weight: 700; }
.hbe-verdicts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; list-style: none; padding: 0; }
.hbe-verdicts li {
    font-family: ui-monospace, SFMono-Regular, 'SF Mono', Menlo, Consolas, monospace;
    font-size: 11.5px; letter-spacing: .02em; color: var(--n-amber-lt);
    padding: 6px 12px; border: 1px solid rgba(212,149,74,.32);
    border-radius: 6px; background: rgba(212,149,74,.08);
}
.hbe-caption {
    margin-top: 26px; padding-left: 20px; border-left: 3px solid var(--n-amber);
    font-family: 'Montserrat', sans-serif; font-size: clamp(17px, 2vw, 21px);
    font-weight: 600; line-height: 1.45; color: var(--n-dark); letter-spacing: -.01em;
}
.hbe-ladder { font-size: 15px; line-height: 1.7; color: var(--n-muted); margin: 20px 0 0; max-width: 68ch; }

/* Three points */
.hbe-points { border-top: 1px solid var(--n-border); }
.hbe-point { padding: 44px 0; border-bottom: 1px solid var(--n-border); display: grid; grid-template-columns: 64px 1fr; gap: 8px; }
.hbe-point-n {
    font-family: ui-monospace, SFMono-Regular, 'SF Mono', Menlo, Consolas, monospace;
    font-size: 12px; font-weight: 700; color: var(--n-amber); padding-top: 6px; letter-spacing: .05em;
}
.hbe-point h3 {
    font-family: 'Montserrat', sans-serif; font-size: clamp(20px, 2.4vw, 26px);
    font-weight: 700; letter-spacing: -.015em; color: var(--n-dark); margin: 0 0 12px;
}
.hbe-point p { font-size: 16.5px; line-height: 1.72; color: var(--n-muted); margin: 0; max-width: 66ch; }
.hbe-point p + p { margin-top: 10px; }
/* In-copy link (the /ai-connector cross-link). --n-dark on --n-cream, underlined —
   never amber, which fails AA at body size. */
.hbe-point p a {
    color: var(--n-dark); text-decoration: underline;
    text-underline-offset: 3px; text-decoration-thickness: 1px;
}
.hbe-point p a:hover { color: var(--n-dark); text-decoration-thickness: 2px; }
.hbe-point p a:focus-visible { outline: 2px solid var(--n-amber); outline-offset: 3px; border-radius: var(--n-radius-sm); }

/* Closing CTA — white rather than cream-2 on purpose: --n-muted body copy
   measures 4.26:1 on --n-cream-2 (an AA fail) and 4.98:1 on white. */
.hbe-cta { background: var(--n-white); padding: 96px 0; text-align: center; border-top: 1px solid var(--n-border); }
.hbe-cta h2 {
    font-family: 'Montserrat', sans-serif; font-size: clamp(28px, 3.6vw, 44px);
    font-weight: 800; letter-spacing: -.02em; color: var(--n-dark); margin: 0;
}
.hbe-cta p { font-size: 16.5px; line-height: 1.7; color: var(--n-muted); max-width: 52ch; margin: 18px auto 0; }
.hbe-cta .hbe-actions { justify-content: center; margin-top: 30px; }

/* Quiet cross-link to the other half of the ecosystem.
   Kept quiet by SIZE, not by low contrast: --n-muted-2 measures only 2.99:1 on
   white, so the text uses --n-muted (4.98:1) and the link uses --n-dark. Hover
   thickens the underline instead of switching to amber, which would fail. */
.hbe-xlink { padding: 30px 0 42px; background: var(--n-white); text-align: center; }
.hbe-xlink p { font-size: 14.5px; line-height: 1.65; color: var(--n-muted); margin: 0; }
.hbe-xlink a {
    color: var(--n-dark); text-decoration: underline;
    text-underline-offset: 3px; text-decoration-thickness: 1px;
}
.hbe-xlink a:hover { color: var(--n-dark); text-decoration-thickness: 2px; }

/* Keyboard focus — visible on every interactive element of this page */
.hbe-hero a:focus-visible, .hbe-cta a:focus-visible, .hbe-xlink a:focus-visible {
    outline: 2px solid var(--n-amber); outline-offset: 3px; border-radius: var(--n-radius-sm);
}

@media (max-width: 1024px) {
    .hbe-hero { padding: 88px 0 64px; }
    .hbe-hero::before { width: 100%; opacity: .7; }
    .hbe-tr-body { padding: 26px 24px 28px; }
}
@media (max-width: 768px) {
    .hbe-proof { padding-bottom: 72px; }
    .hbe-point { grid-template-columns: 1fr; gap: 0; padding: 36px 0; }
    .hbe-point-n { padding: 0 0 10px; }
    .hbe-cta { padding: 72px 0; }
    .hbe-sub { max-width: none; }
}
@media (max-width: 480px) {
    .hbe-tr-body { padding: 22px 18px 24px; }
    .hbe-said { font-size: 15.5px; }
    .hbe-tr-meta { font-size: 10.5px; }
    .hbe-caption { padding-left: 14px; }
}

/* ── AI Connector documentation page (route honeybee_ai_connector, /ai-connector) ─
   The PUBLIC documentation URL submitted to Anthropic's Connectors Directory.
   Page-scoped `.hbc-*` classes live here rather than in a per-page <style> block
   or inline style= attributes, per the CW1 consolidation. Colours and typography
   come entirely from the shared n-* tokens — nothing hardcoded. Breakpoints use
   the unified scale (1024 / 768 / 480).

   Contrast notes carried over from the .hbe-* page and re-checked here:
     · --n-amber on --n-cream is 3.52:1 → LARGE TEXT ONLY (>=19px @700).
     · --n-muted on --n-cream-2 is 4.26:1 (AA fail for body) → body copy sits on
       --n-cream or --n-white only.
     · --n-muted-2 is 2.99:1 on white → never used for text on this page.
   ---------------------------------------------------------------------------- */

/* Hero */
.hbc-hero { background: var(--n-cream); padding: 116px 0 80px; position: relative; overflow: hidden; }
.hbc-hero::before {
    content: ''; position: absolute; inset: 0 0 0 auto; width: 55%;
    background: radial-gradient(ellipse 75% 70% at 85% 35%, rgba(61,79,114,.09) 0%, transparent 65%),
                radial-gradient(ellipse 55% 60% at 95% 85%, rgba(192,125,42,.07) 0%, transparent 60%);
    pointer-events: none;
}
.hbc-hero-inner { max-width: 760px; position: relative; }
.hbc-h1 {
    font-family: 'Montserrat', sans-serif; font-size: clamp(34px, 4.8vw, 58px);
    font-weight: 800; line-height: 1.06; letter-spacing: -.025em; color: var(--n-dark); margin: 0;
}
/* Pinned to >=19px @700 so --n-amber always counts as large text (see note above). */
.hbc-sub {
    font-family: 'Montserrat', sans-serif; font-size: clamp(19px, 2vw, 23px);
    font-weight: 700; line-height: 1.35; letter-spacing: -.01em;
    color: var(--n-amber); margin: 18px 0 0; max-width: 30ch;
}
.hbc-lede { font-size: 17px; line-height: 1.72; color: var(--n-muted); max-width: 62ch; margin: 22px 0 0; }
.hbc-lede b { color: var(--n-dark); font-weight: 700; }
.hbc-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

/* Shared body copy */
.hbc-body { font-size: 16.5px; line-height: 1.74; color: var(--n-muted); max-width: 68ch; margin: 16px 0 0; }
.hbc-body b { color: var(--n-dark); font-weight: 700; }
.hbc-band { background: var(--n-cream); }

/* Numbered setup steps */
.hbc-steps { list-style: none; counter-reset: hbcstep; margin: 30px 0 0; padding: 0; border-top: 1px solid var(--n-border); }
.hbc-steps > li {
    counter-increment: hbcstep; position: relative;
    padding: 28px 0 28px 62px; border-bottom: 1px solid var(--n-border);
}
.hbc-steps > li::before {
    content: counter(hbcstep); position: absolute; left: 0; top: 28px;
    width: 34px; height: 34px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 13px; font-weight: 700; color: var(--n-white); background: var(--n-dark);
}
.hbc-steps h3 {
    font-family: 'Montserrat', sans-serif; font-size: clamp(18px, 2vw, 22px);
    font-weight: 700; letter-spacing: -.015em; color: var(--n-dark); margin: 0 0 10px;
}
.hbc-steps p { font-size: 16px; line-height: 1.72; color: var(--n-muted); margin: 0; max-width: 64ch; }
.hbc-steps p + p { margin-top: 10px; }
.hbc-steps code, .hbc-url {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: .88em; color: var(--n-dark); background: var(--n-cream-2);
    border: 1px solid var(--n-border-md); border-radius: var(--n-radius-sm);
    padding: 2px 7px; word-break: break-all;
}
.hbc-note { color: var(--n-muted); }

/* Callout box */
.hbc-callout {
    margin-top: 34px; background: var(--n-white); border: 1px solid var(--n-border-md);
    border-left: 3px solid var(--n-amber); border-radius: var(--n-radius);
    padding: 24px 26px; box-shadow: var(--n-shadow-xs);
}
.hbc-callout h3 {
    font-family: 'Montserrat', sans-serif; font-size: 18px; font-weight: 700;
    letter-spacing: -.01em; color: var(--n-dark); margin: 0 0 10px;
}
.hbc-callout p { font-size: 15.5px; line-height: 1.72; color: var(--n-muted); margin: 0; max-width: 66ch; }
.hbc-callout p + p { margin-top: 12px; }
.hbc-callout b { color: var(--n-dark); font-weight: 700; }

/* The limits section — the differentiator */
.hbc-limits { background: var(--n-cream); padding: 88px 0; border-top: 1px solid var(--n-border); }
.hbc-rails { margin-top: 36px; border-top: 1px solid var(--n-border); }
.hbc-rail { padding: 38px 0; border-bottom: 1px solid var(--n-border); display: grid; grid-template-columns: 64px 1fr; gap: 8px; }
.hbc-rail-n {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 12px; font-weight: 700; color: var(--n-amber); padding-top: 6px; letter-spacing: .05em;
}
.hbc-rail h3 {
    font-family: 'Montserrat', sans-serif; font-size: clamp(19px, 2.2vw, 25px);
    font-weight: 700; letter-spacing: -.015em; color: var(--n-dark); margin: 0 0 12px; max-width: 30ch;
}
.hbc-rail p { font-size: 16.5px; line-height: 1.72; color: var(--n-muted); margin: 0; max-width: 66ch; }
.hbc-rail p + p { margin-top: 12px; }
.hbc-rail b { color: var(--n-dark); font-weight: 700; }

/* Tool catalogue */
.hbc-tools { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin-top: 30px; }
.hbc-group {
    background: var(--n-white); border: 1px solid var(--n-border-md);
    border-radius: var(--n-radius); padding: 22px 24px; box-shadow: var(--n-shadow-xs);
}
.hbc-group h3 {
    font-family: 'Montserrat', sans-serif; font-size: 15px; font-weight: 700;
    letter-spacing: .01em; color: var(--n-dark); margin: 0 0 14px;
    display: flex; align-items: center; justify-content: space-between; gap: 10px;
}
.hbc-count {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 11.5px; font-weight: 700; color: var(--n-amber);
    background: var(--n-amber-dim); border-radius: 999px; padding: 3px 10px; flex-shrink: 0;
}
.hbc-group ul { list-style: none; margin: 0; padding: 0; }
.hbc-group li {
    font-size: 15px; line-height: 1.5; color: var(--n-muted);
    padding: 7px 0; border-top: 1px solid var(--n-border);
}
.hbc-group li:first-child { border-top: none; padding-top: 0; }

/* Footer block */
.hbc-foot { background: var(--n-white); padding: 84px 0 64px; border-top: 1px solid var(--n-border); }
.hbc-links { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.hbc-contact { font-size: 15.5px; line-height: 1.8; color: var(--n-muted); margin: 26px 0 0; }
.hbc-contact a { color: var(--n-dark); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.hbc-contact a:hover { color: var(--n-dark); text-decoration-thickness: 2px; }
.hbc-xlink { font-size: 14.5px; line-height: 1.65; color: var(--n-muted); margin: 22px 0 0; }
.hbc-xlink a { color: var(--n-dark); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.hbc-xlink a:hover { text-decoration-thickness: 2px; }

/* Keyboard focus — visible on every interactive element of this page */
.hbc-hero a:focus-visible, .hbc-foot a:focus-visible, .hbc-contact a:focus-visible, .hbc-xlink a:focus-visible {
    outline: 2px solid var(--n-amber); outline-offset: 3px; border-radius: var(--n-radius-sm);
}

@media (max-width: 1024px) {
    .hbc-hero { padding: 84px 0 60px; }
    .hbc-hero::before { width: 100%; opacity: .7; }
    .hbc-limits { padding: 64px 0; }
}
@media (max-width: 768px) {
    .hbc-tools { grid-template-columns: 1fr; }
    .hbc-rail { grid-template-columns: 1fr; gap: 0; padding: 30px 0; }
    .hbc-rail-n { padding: 0 0 10px; }
    .hbc-rail h3 { max-width: none; }
    .hbc-sub { max-width: none; }
    .hbc-foot { padding: 64px 0 52px; }
}
@media (max-width: 480px) {
    .hbc-steps > li { padding-left: 0; padding-top: 58px; }
    .hbc-steps > li::before { top: 26px; }
    .hbc-callout { padding: 20px 18px; }
    .hbc-group { padding: 18px 18px; }
}
