/* === flowguard.run — additions to the inherited stylesheet ============ */

/* Header: our own nav markup instead of the builder's */
.header .nav { display: none; }
@media (min-width: 1024px) { .header .nav { display: block; } }
.header .nav-list { display: flex; align-items: center; gap: var(--space-xl); list-style: none; margin: 0; padding: 0; }
/* The header has more in it than the 1200px content column holds — eight
   menu items for a signed-in visitor, longer in German, plus language,
   theme, sign-in and the button. Squeezed, labels broke onto two lines and
   the logo shrank. So the header gets a wider column of its own, labels
   never break, and below 1280px the menu button takes over, as it does on
   phones. */
.header .container { max-width: 1360px; }
.header .logo { flex-shrink: 0; }
.header .nav-link, .header .nav-link-account, .header-actions .btn { white-space: nowrap; }
.header .nav-link { display: inline-flex; align-items: center; gap: 4px; }
.header .nav-tag { margin-left: 2px; }
@media (min-width: 1280px) and (max-width: 1480px) {
    .header .nav-list { gap: clamp(14px, 1.5vw, var(--space-xl)); }
    .header-inner, .header-actions { gap: clamp(12px, 1.2vw, var(--space-lg)); }
}
@media (min-width: 1024px) and (max-width: 1279px) {
    .header .nav, .header .header-actions { display: none; }
    .header .mobile-menu-btn { display: flex; }
}
.logo img { height: 30px; width: auto; display: block; }
.skip-link { position: absolute; left: -999px; top: 0; }
.skip-link:focus { left: 12px; top: 12px; z-index: 1000; padding: 8px 12px; background: var(--accent-primary); color: #fff; border-radius: 6px; }

/* Platforms row under the hero */
.platform-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; list-style: none; margin: 0 0 var(--space-lg); padding: 0; }
.platform-pill { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border: 1px solid var(--w08); border-radius: 999px; background: var(--bg-surface); color: var(--text-secondary); font-size: var(--font-size-sm); font-weight: 500; letter-spacing: 0.01em; }
.platform-pill-any { border-color: rgba(6,182,212,0.35); color: var(--text-primary); }
.platform-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent-cyan); box-shadow: 0 0 10px rgba(6,182,212,0.6); }
.social-proof-hint { max-width: 720px; margin-left: auto; margin-right: auto; }

/* Autopilot mockup: the one step that goes red */
.flow-step-status-warn { background: rgba(224,69,43,0.18) !important; color: var(--danger) !important; }

/* Plain pages (legal, contact) */
.page-hero { padding: calc(var(--space-5xl) + 40px) 0 var(--space-2xl); }
.legal-content { padding: 0 0 var(--space-5xl); }
.legal-body { max-width: 760px; color: var(--text-secondary); line-height: var(--line-height-relaxed); }
.legal-body h2, .legal-body h3 { color: var(--text-primary); margin-top: var(--space-xl); }
.legal-body p, .legal-body li { margin-bottom: var(--space-md); }
.legal-body a { color: var(--accent-cyan); }

/* Features: a mockup where the other stages show a video */
.feature-frame-mockup .frame-content-mockup { display: flex; align-items: center; justify-content: center; padding: clamp(16px, 4vw, 48px); background: radial-gradient(ellipse at top, rgba(59,130,246,0.10), transparent 60%), var(--bg-surface); }
.feature-frame-mockup .flow-editor-mockup { width: min(100%, 560px); }

/* Platform / Autopilot cards: a quiet panel where the old pages had a video */
.platform-card { background: var(--bg-elevated); border: 1px solid var(--w08); border-radius: 16px; overflow: hidden; box-shadow: 0 30px 80px -40px var(--k6); }
.platform-card-head { display: flex; align-items: center; gap: 10px; padding: 14px 18px; border-bottom: 1px solid var(--w06); font-size: var(--font-size-sm); font-weight: 600; color: var(--text-primary); }
.platform-steps { margin: 0; padding: 18px 18px 18px 38px; color: var(--text-secondary); line-height: 1.55; }
.platform-steps li { margin-bottom: 10px; } .platform-steps li:last-child { margin-bottom: 0; } .platform-steps strong { color: var(--text-primary); }
.platform-code { margin: 0; padding: 18px; background: var(--bg-deep); color: var(--accent-cyan); font-size: 13px; line-height: 1.5; overflow-x: auto; white-space: pre-wrap; word-break: break-all; }
.platform-card-foot { padding: 14px 18px; font-size: var(--font-size-sm); color: var(--text-muted); border-top: 1px solid var(--w06); line-height: 1.5; }
.platform-card-foot code { color: var(--text-secondary); }
.platform-diff { display: flex; flex-direction: column; gap: 8px; padding: 18px; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 13px; }
.platform-diff-old { color: var(--danger); text-decoration: line-through; opacity: 0.8; }
.platform-diff-new { color: var(--success); }
.steps-container-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
@media (max-width: 1100px) { .steps-container-5 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .steps-container-5 { grid-template-columns: 1fr; } }
.deep-dive .hero-cta .btn { margin-right: 8px; }

/* Pricing: four cards, one of them featured */
.pricing-grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1100px) { .pricing-grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .pricing-grid-4 { grid-template-columns: 1fr; } }
.pricing-card { position: relative; }
.pricing-card-featured { border-color: rgba(59,130,246,0.55); box-shadow: 0 0 0 1px rgba(59,130,246,0.25), 0 30px 80px -40px rgba(59,130,246,0.5); }
.pricing-badge { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); padding: 4px 12px; border-radius: 999px; background: var(--accent-primary); color: #fff; font-size: 11px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; white-space: nowrap; }
.billing-toggle { display: flex; justify-content: center; gap: 4px; width: max-content; margin: 0 auto var(--space-2xl, 48px); padding: 4px; border-radius: 999px; background: var(--w05, rgba(255,255,255,0.05)); border: 1px solid var(--border-subtle, rgba(255,255,255,0.08)); }
.billing-option { appearance: none; border: 0; background: transparent; color: var(--text-secondary); font: inherit; font-size: var(--font-size-sm); font-weight: 600; padding: 8px 18px; border-radius: 999px; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; }
.billing-option.is-active { background: var(--accent-primary); color: #fff; }
.billing-save { font-size: 11px; font-weight: 600; padding: 2px 8px; border-radius: 999px; background: rgba(52,211,153,0.15); color: var(--success, #34d399); }
.billing-option.is-active .billing-save { background: rgba(255,255,255,0.2); color: #fff; }
.price-tax-yearly { display: none; }
[data-billing-current="yearly"] .price-tax-monthly { display: none; }
[data-billing-current="yearly"] .price-tax-yearly { display: inline; }
/* Four digits a year need a little less size to keep "/year" on the line. */
.price-tax { margin: calc(-1 * var(--space-xl) + 6px) 0 var(--space-xl); font-size: var(--font-size-sm); color: var(--text-muted); }
.pricing-note { text-align: center; color: var(--text-muted); font-size: var(--font-size-sm); margin: var(--space-xl) auto 0; max-width: 720px; }
.comparison-table .check-no { color: var(--text-muted); }
.features-grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 900px; margin-left: auto; margin-right: auto; }
@media (max-width: 800px) { .features-grid-2 { grid-template-columns: 1fr; } }

/* --- MCP: the agent conversation, the client list, the tool chips ----- */
.agent { max-width: 760px; margin: 0 auto; }
.agent-conn { margin-left: auto; display: inline-flex; align-items: center; gap: 7px; font-family: var(--font-mono); font-size: 11.5px; color: var(--text-muted); }
.agent-conn i { width: 7px; height: 7px; border-radius: 50%; background: var(--fg-success, #34d399); box-shadow: 0 0 8px rgba(52, 211, 153, 0.7); }
.agent-log { display: flex; flex-direction: column; gap: 10px; padding: 18px; }
.agent-msg { display: flex; }
.agent-msg span { max-width: 78%; padding: 10px 14px; border-radius: 14px 14px 14px 4px; background: var(--w05); font-size: 0.875rem; line-height: 1.55; color: var(--text-primary); }
.agent-msg code { font-family: var(--font-mono); font-size: 12px; color: var(--accent-cyan); }
.agent-msg b { font-weight: 600; }
.agent-msg i { font-style: italic; color: var(--text-secondary); }
.agent-msg--user { justify-content: flex-end; }
.agent-msg--user span { border-radius: 14px 14px 4px 14px; background: rgba(34, 211, 238, 0.12); border: 1px solid rgba(34, 211, 238, 0.22); }
.agent-tool { display: grid; grid-template-columns: 14px auto minmax(0, 1fr) auto; align-items: center; gap: 10px; margin: 0 6%; padding: 7px 12px; border: 1px dashed var(--w09); border-radius: 10px; font-family: var(--font-mono); font-size: 11.5px; color: var(--text-muted); }
.agent-tool svg { width: 12px; height: 12px; color: var(--accent-cyan); }
.agent-tool b { font-weight: 500; color: var(--accent-cyan); }
.agent-tool span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.agent-tool em { font-style: normal; color: var(--text-secondary); white-space: nowrap; }
.agent-clients { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.agent-clients span { padding: 5px 11px; border: 1px solid var(--w09); border-radius: 999px; font-size: 12.5px; color: var(--text-secondary); background: var(--w022); }
.agent-tools { padding-bottom: 6px; }
.agent-toolgroup { padding: 12px 18px; border-top: 1px solid var(--hairline); }
.agent-toolgroup:first-of-type { border-top: 0; }
.agent-toolgroup .fork-kind { margin-bottom: 8px; }
.agent-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.agent-chips code { font-family: var(--font-mono); font-size: 11.5px; padding: 3px 8px; border-radius: 6px; background: var(--w05); color: var(--text-secondary); }
.page-mcp .code-card .code-body { font-size: 12.5px; }
@media (max-width: 720px) {
    .agent-msg span { max-width: 92%; }
    .agent-tool { margin: 0; grid-template-columns: 14px auto minmax(0, 1fr); }
    .agent-tool em { grid-column: 2 / -1; }
}

/* --- MCP: the example tabs ------------------------------------------- */
.agent-wrap { max-width: 760px; margin: 0 auto; }
.agent-tabs { display: flex; flex-wrap: wrap; gap: 6px; padding: 5px; margin: 0 auto 16px; width: max-content; max-width: 100%; border: 1px solid var(--w09); border-radius: 999px; background: var(--w022); }
.agent-tabs [role="tab"] { appearance: none; border: 0; cursor: pointer; padding: 8px 16px; border-radius: 999px; font: inherit; font-size: 0.875rem; font-weight: 500; color: var(--text-secondary); background: transparent; transition: background 0.15s, color 0.15s; }
.agent-tabs [role="tab"]:hover { color: var(--text-primary); background: var(--w05); }
.agent-tabs [role="tab"][aria-selected="true"] { color: var(--text-primary); background: rgba(34, 211, 238, 0.14); box-shadow: inset 0 0 0 1px rgba(34, 211, 238, 0.28); }
.agent-tabs [role="tab"]:focus-visible { outline: 2px solid var(--accent-cyan); outline-offset: 2px; }
:root[data-theme="light"] .agent-tabs [role="tab"][aria-selected="true"] { background: rgba(36, 86, 200, 0.10); box-shadow: inset 0 0 0 1px rgba(36, 86, 200, 0.28); }
.agent[hidden] { display: none; }
@media (max-width: 560px) { .agent-tabs { width: 100%; border-radius: 16px; } .agent-tabs [role="tab"] { flex: 1 1 45%; text-align: center; } }

/* Home: "Why not just use what you have?" — three side by side. */
@media (min-width: 801px) { .compare .cases-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* Pricing: the worked example under the cards. */
.pricing-example { max-width: 720px; margin: var(--space-lg) auto 0; padding: 16px 20px; border-radius: 12px; background: var(--w03); border: 1px solid var(--w08); font-size: var(--font-size-sm); line-height: 1.6; color: var(--text-secondary); text-align: left; }
.pricing-example strong { display: block; margin-bottom: 4px; color: var(--text-primary); }

/* Pricing: four cards side by side share their rows, so the same line sits
   at the same height in every card even when one label wraps. Header,
   price, tax, eight features, button = twelve rows. */
@media (min-width: 641px) {
    .pricing-grid-4 { row-gap: 0; }
    .pricing-grid-4 .pricing-card { display: grid; grid-row: span 12; grid-template-rows: subgrid; }
    .pricing-grid-4 .pricing-features { display: contents; }
    .pricing-grid-4 .pricing-btn { margin-top: var(--space-xl); align-self: end; }
}
@media (min-width: 641px) and (max-width: 1100px) {
    .pricing-grid-4 .pricing-card { margin-bottom: var(--space-2xl); }
}

/* Bricksforge offer: the pill above the home headline, the band on pricing,
   two lifetime cards side by side, three steps in a row. */
.hero-offer {
    display: inline-flex; align-items: center; gap: 10px; margin-bottom: 22px;
    padding: 6px 14px 6px 6px; border-radius: 999px;
    border: 1px solid rgba(34, 211, 238, 0.35); background: rgba(34, 211, 238, 0.08);
    color: #e2ecf6; font-size: 14px; text-decoration: none; transition: background 0.15s, border-color 0.15s;
}
.hero-offer:hover { background: rgba(34, 211, 238, 0.16); border-color: rgba(34, 211, 238, 0.6); }
.hero-offer__tag { padding: 3px 10px; border-radius: 999px; background: #22d3ee; color: #062330; font-size: 12px; font-weight: 600; }
.offer-band {
    display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; margin: 0 auto var(--space-xl); max-width: 980px;
    padding: 14px 20px; border-radius: 14px; border: 1px solid var(--accent-line, rgba(36, 86, 200, 0.28));
    background: var(--accent-wash, rgba(36, 86, 200, 0.07)); color: var(--text-secondary); text-decoration: none; font-size: 15px;
}
.offer-band strong { color: var(--text-primary); }
.offer-band em { margin-left: auto; font-style: normal; font-weight: 600; color: var(--accent-cyan); white-space: nowrap; }
.offer-band:hover em { text-decoration: underline; }
.lifetime-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 760px) { .lifetime-grid { grid-template-columns: 1fr; } }
@media (min-width: 801px) { .lifetime-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* Pricing: the Bricksforge offer as a card of its own — navy like the app's
   chassis, Bricksforge's gold as the accent, logo, both prices, a button. */
.offer-card {
    position: relative; overflow: hidden;
    display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; align-items: center; gap: 22px;
    max-width: 1100px; margin: 0 auto var(--space-2xl); padding: 22px 26px;
    border-radius: 18px; text-decoration: none; color: #e2ecf6;
    background: radial-gradient(120% 140% at 0% 0%, rgba(250, 204, 21, 0.16), transparent 55%), linear-gradient(135deg, #0c1c33, #0a1424 70%);
    border: 1px solid rgba(250, 204, 21, 0.35);
    box-shadow: 0 20px 50px -30px rgba(11, 27, 43, 0.6);
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.offer-card:hover { transform: translateY(-2px); border-color: rgba(250, 204, 21, 0.6); box-shadow: 0 26px 60px -30px rgba(11, 27, 43, 0.7); }
.offer-card__logo { width: 56px; height: 56px; filter: drop-shadow(0 6px 16px rgba(250, 204, 21, 0.35)); }
.offer-card__text { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.offer-card__eyebrow { font-size: 12px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: #facc15; }
.offer-card__title { font-size: 19px; line-height: 1.3; color: #fff; }
.offer-card__meta { font-size: 13px; color: rgba(226, 236, 246, 0.6); }
.offer-card__prices { display: flex; gap: 10px; }
.offer-card__price {
    display: flex; flex-direction: column; align-items: center; min-width: 92px; padding: 8px 14px;
    border-radius: 12px; background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.08);
}
.offer-card__price b { font-size: 22px; line-height: 1.1; color: #fff; font-variant-numeric: tabular-nums; }
.offer-card__price small { font-size: 11.5px; color: rgba(226, 236, 246, 0.6); }
.offer-card__cta {
    padding: 11px 18px; border-radius: 10px; white-space: nowrap;
    background: #facc15; color: #1a1300; font-weight: 600; font-size: 14.5px;
}
.offer-card:hover .offer-card__cta { background: #fde047; }
@media (max-width: 900px) {
    .offer-card { grid-template-columns: auto minmax(0, 1fr); }
    .offer-card__prices, .offer-card__cta { grid-column: 1 / -1; }
    .offer-card__cta { text-align: center; }
}
.hero-offer__tag { display: inline-flex; align-items: center; gap: 6px; }
.hero-offer__tag img { width: 16px; height: 16px; }
/* The home pill carries Bricksforge's gold, not the app's cyan. */
.hero-offer { border-color: rgba(250, 204, 21, 0.4); background: rgba(250, 204, 21, 0.07); }
.hero-offer:hover, .hero-offer:focus-visible { border-color: rgba(250, 204, 21, 0.7); background: rgba(250, 204, 21, 0.13); color: #fff; }
.hero-offer__tag { background: rgba(250, 204, 21, 0.16); color: #facc15; }

/* Yearly shows the price per month; the cents sit small beside the euros. */
.price-cents { font-size: 0.45em; letter-spacing: 0; vertical-align: 0.95em; margin-left: 1px; }
.pricing-price { flex-wrap: nowrap; }

/* ---------- Bricksforge offer page: Bricksforge's gold for recognition ---------- */
.page-kicker {
    display: inline-flex; align-items: center; gap: 10px; margin-bottom: 26px;
    padding: 8px 16px 8px 10px; border-radius: 999px;
    border: 1px solid rgba(250, 204, 21, 0.35); background: rgba(250, 204, 21, 0.07);
    color: #fef3c7; font-size: 14px; font-weight: 600;
}
.page-kicker i { font-style: normal; color: rgba(254, 243, 199, 0.5); font-weight: 400; }
.page-kicker em { margin-left: 6px; padding: 3px 10px; border-radius: 999px; background: #facc15; color: #1a1300; font-style: normal; font-size: 12px; }
.page-bricksforge .page-top .home-hero-sky i:first-child { background: radial-gradient(circle, rgba(250, 204, 21, 0.22), transparent 65%); }
.page-bricksforge .page-title-accent {
    background: linear-gradient(90deg, #fde047, #f59e0b) !important;
    -webkit-background-clip: text !important; background-clip: text !important;
    -webkit-text-fill-color: transparent !important; color: transparent !important;
}
.page-bricksforge .hero-row { border-top-color: rgba(250, 204, 21, 0.25); }
.page-bricksforge .hero-row::before { background: linear-gradient(90deg, #facc15, transparent) !important; box-shadow: 0 0 14px rgba(250, 204, 21, 0.55) !important; }
.page-bricksforge .hero-row::after { background: #facc15 !important; box-shadow: 0 0 0 4px rgba(250, 204, 21, 0.18), 0 0 16px #facc15 !important; }
:root .page-bricksforge .btn-primary { background: #facc15 !important; border-color: #facc15 !important; color: #1a1300 !important; box-shadow: 0 10px 34px -10px rgba(250, 204, 21, 0.65) !important; }
:root .page-bricksforge .btn-primary:hover { background: #fde047 !important; border-color: #fde047 !important; }
.page-bricksforge .page-top [class*="readout"] b, .page-bricksforge .page-top [class*="readout"] strong { color: #facc15; }
.page-bricksforge .pricing-card-featured { border-color: rgba(245, 158, 11, 0.6) !important; box-shadow: 0 0 0 1px rgba(245, 158, 11, 0.35), 0 24px 50px -30px rgba(245, 158, 11, 0.45) !important; }
.page-bricksforge .pricing-badge { background: linear-gradient(90deg, #facc15, #f59e0b) !important; color: #1a1300 !important; }
.page-bricksforge .feature-check { color: #d97706; }
.page-bricksforge .cta-section .btn-primary { background: #facc15 !important; }

/* Nori and Kolibo */
.bonus-apps { padding: var(--space-3xl, 96px) 0 0; }
.bonus-apps__head { max-width: 680px; margin-bottom: 28px; }
.bonus-apps__eyebrow { font-size: 12px; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase; color: #d97706; }
.bonus-apps__head h2 { margin: 6px 0 10px; }
.bonus-apps__head p { color: var(--text-secondary); }
.bonus-apps__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
@media (max-width: 760px) { .bonus-apps__grid { grid-template-columns: 1fr; } }
.bonus-apps { padding-bottom: var(--space-3xl, 96px); }
.page-bricksforge .pricing-feature a { color: var(--text-primary); text-decoration: underline; text-decoration-color: rgba(217, 119, 6, 0.5); text-underline-offset: 3px; }
.page-bricksforge .pricing-feature a:hover { text-decoration-color: #d97706; }

/* Nori and Kolibo, each in its own look but in the same frame: icon and
   eyebrow, name, its slogan, one sentence, the deal, the link. */
.bonus-app {
    position: relative; overflow: hidden; display: flex; flex-direction: column; gap: 10px;
    padding: 28px; border-radius: 22px; text-decoration: none; min-height: 100%;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.bonus-app:hover { transform: translateY(-3px); }
.bonus-app__top { display: flex; align-items: center; gap: 14px; margin-bottom: 6px; }
.bonus-app__top img { width: 56px; height: 56px; border-radius: 14px; }
.bonus-app__eyebrow { font-family: var(--fg-mono, ui-monospace, monospace); font-size: 11.5px; letter-spacing: 0.12em; text-transform: uppercase; }
.bonus-app__name { font-size: 40px; line-height: 1; }
.bonus-app__slogan { font-size: 22px; line-height: 1.2; }
.bonus-app__text { font-size: 15px; line-height: 1.6; flex: 1; }
.bonus-app__deal { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 6px; font-size: 13px; }
.bonus-app__deal s { opacity: 0.6; }
.bonus-app__deal b, .bonus-app__deal span { padding: 5px 11px; border-radius: 999px; }
.bonus-app__cta { align-self: flex-start; margin-top: 8px; padding: 10px 18px; font-size: 14px; font-weight: 600; }

/* Nori: near-black night, Shippori Mincho, the pink-violet-blue gradient, violet pills. */
.bonus-app--nori {
    background: radial-gradient(90% 70% at 0% 0%, rgba(168, 85, 247, 0.28), transparent 60%), radial-gradient(70% 60% at 100% 100%, rgba(20, 184, 166, 0.16), transparent 60%), #04040d;
    color: #f4f4fa; border: 1px solid rgba(255, 255, 255, 0.08); box-shadow: 0 30px 60px -36px rgba(76, 29, 149, 0.8);
}
.bonus-app--nori .bonus-app__eyebrow { color: rgba(244, 244, 250, 0.55); }
.bonus-app--nori .bonus-app__name, .bonus-app--nori .bonus-app__slogan { font-family: "Shippori Mincho B1", "Yu Mincho", Georgia, serif; font-weight: 700; }
.bonus-app--nori .bonus-app__slogan em { font-style: normal; background: linear-gradient(90deg, #f472b6, #a855f7, #3b82f6, #22d3ee); -webkit-background-clip: text; background-clip: text; color: transparent; }
.bonus-app--nori .bonus-app__text { color: rgba(244, 244, 250, 0.72); }
.bonus-app--nori .bonus-app__deal b { background: linear-gradient(90deg, rgba(244, 114, 182, 0.25), rgba(168, 85, 247, 0.3)); color: #fff; }
.bonus-app--nori .bonus-app__deal span { background: rgba(255, 255, 255, 0.07); color: rgba(244, 244, 250, 0.8); }
.bonus-app--nori .bonus-app__cta { border-radius: 999px; background: linear-gradient(180deg, #8b6cff, #6d4aff); color: #fff; box-shadow: 0 8px 24px -8px rgba(124, 92, 255, 0.8); }

/* Kolibo: pale lavender, Fraunces light, the red mono line, deep indigo buttons. */
.bonus-app--kolibo {
    background: radial-gradient(80% 70% at 100% 0%, rgba(167, 139, 250, 0.35), transparent 60%), #f5f3fb;
    color: #1e1838; border: 1px solid rgba(30, 24, 56, 0.1); box-shadow: 0 30px 60px -40px rgba(79, 70, 229, 0.55);
}
.bonus-app--kolibo .bonus-app__eyebrow { color: #c0263f; letter-spacing: 0.02em; text-transform: none; font-size: 12.5px; }
.bonus-app--kolibo .bonus-app__name, .bonus-app--kolibo .bonus-app__slogan { font-family: Fraunces, Georgia, serif; font-weight: 300; letter-spacing: -0.01em; }
.bonus-app--kolibo .bonus-app__text { color: rgba(30, 24, 56, 0.75); }
.bonus-app--kolibo .bonus-app__deal b { background: rgba(91, 61, 245, 0.12); color: #3f22c9; }
.bonus-app--kolibo .bonus-app__deal span { background: rgba(255, 255, 255, 0.7); color: rgba(30, 24, 56, 0.75); border: 1px solid rgba(30, 24, 56, 0.08); }
.bonus-app--kolibo .bonus-app__cta { border-radius: 14px; background: linear-gradient(180deg, #5b3df5, #4527d8); color: #fff; box-shadow: 0 10px 24px -10px rgba(69, 39, 216, 0.75); }

/* Nori/Kolibo hover: one slow, soft curve for lift, shadow and the arrow.
   The card is promoted to its own layer up front, so the text is not
   re-rasterised mid-move (that was the shimmer on the serif and the
   gradient words). */
.bonus-app {
    transform: translate3d(0, 0, 0);
    backface-visibility: hidden;
    will-change: transform;
    transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.55s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.55s ease;
}
.bonus-app:hover { transform: translate3d(0, -4px, 0); }
.bonus-app--nori:hover { box-shadow: 0 40px 70px -36px rgba(76, 29, 149, 0.95); border-color: rgba(255, 255, 255, 0.14); }
.bonus-app--kolibo:hover { box-shadow: 0 40px 70px -40px rgba(79, 70, 229, 0.7); border-color: rgba(30, 24, 56, 0.16); }
.bonus-app * { -webkit-font-smoothing: antialiased; }
.bonus-app__cta { transition: box-shadow 0.55s cubic-bezier(0.22, 1, 0.36, 1), filter 0.55s ease; }
.bonus-app__cta span { display: inline-block; transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1); }
.bonus-app:hover .bonus-app__cta { filter: brightness(1.08); }
.bonus-app:hover .bonus-app__cta span { transform: translateX(4px); }
@media (prefers-reduced-motion: reduce) {
    .bonus-app, .bonus-app__cta, .bonus-app__cta span { transition: none; }
    .bonus-app:hover, .bonus-app:hover .bonus-app__cta span { transform: none; }
}

/* Links on the offer page change colour and underline gradually, not at once. */
.page-bricksforge a,
.page-bricksforge .pricing-feature a,
.page-bricksforge .btn,
.page-bricksforge .faq-question {
    transition: color 0.35s ease, text-decoration-color 0.35s ease, background-color 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease, opacity 0.35s ease;
}
.page-bricksforge .pricing-feature a:hover { color: #b45309; }

/* Home pill on a phone: the tag shrinks to the Bricksforge mark, so the
   sentence gets the width and stays on one or two calm lines. */
@media (max-width: 560px) {
    .hero-offer { gap: 9px; padding: 5px 14px 5px 5px; font-size: 13.5px; line-height: 1.35; margin-bottom: 18px; max-width: 100%; }
    .hero-offer__tag { flex-shrink: 0; padding: 6px; font-size: 0; gap: 0; }
    .hero-offer__tag img { width: 18px; height: 18px; }
}

/* ---------- Phone pass ---------- */
@media (max-width: 800px) {
    /* "What goes wrong": heading above the list, not squeezed beside it. */
    .why .why-grid { grid-template-columns: 1fr; gap: 28px; }
    .why .why-statement h2 { font-size: clamp(30px, 8vw, 40px); }
}
@media (max-width: 640px) {
    /* Plan comparison: the feature column stays put while the plans scroll. */
    .comparison-table { min-width: 560px; font-size: 13.5px; }
    .comparison-table th, .comparison-table td { padding: 10px 8px; }
    .comparison-table .feature-col, .comparison-table td:first-child {
        position: sticky; left: 0; z-index: 1; min-width: 150px; max-width: 170px;
        background: var(--bg-elevated, #fff); box-shadow: 6px 0 10px -8px rgba(11, 27, 43, 0.25);
    }
    .comparison-section .section-header::after { content: "← →"; display: block; margin-top: 8px; font-size: 12px; color: var(--text-muted); letter-spacing: 0.04em; }
}

/* ---------- Phone pass, part 2 ---------- */
@media (max-width: 900px) {
    /* A hero without buttons used to keep its 9-of-12 column on a phone. */
    .page-top .hero-row .hero-row-text:only-child { grid-column: 1 / -1; }
}
@media (max-width: 800px) {
    /* Commands and snippets wrap instead of running off the card. */
    .code-card .code-body, .code-card .code-body code { white-space: pre-wrap; overflow-wrap: anywhere; word-break: break-all; }
    .code-card .code-body { font-size: 12px; }
    /* Agent transcript: long selectors break inside the tool line. */
    .agent-tool { margin: 0; overflow-wrap: anywhere; word-break: break-word; }
    .agent-msg span { max-width: 90%; }
    /* Sections breathe less on a small screen. */
    .cases, .compare, .comparison-section, .trust-section, .faq-section, .calc-section, .bonus-apps, .why, .proof, .start { padding-top: 56px; padding-bottom: 56px; }
    .cases-head, .comparison-section .section-header, .faq-section .section-header { margin-bottom: 24px; }
}
@media (max-width: 560px) {
    /* Case cards: the small coloured label goes under its title, not beside it. */
    .case-top { flex-direction: column; align-items: flex-start; gap: 2px; }
    /* Plan comparison: feature names read left to right. */
    .comparison-table td:first-child, .comparison-table .feature-col { text-align: left; }
    /* Trust badges two by two instead of four stacked cards. */
    .trust-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 10px; }
    .trust-badge { padding: 16px 12px; }
    .trust-badge .trust-desc { font-size: 12.5px; }
    /* Bricksforge kicker: the two logos and names fit; the label drops. */
    .page-kicker { flex-wrap: wrap; gap: 8px; padding: 7px 12px 7px 8px; font-size: 13px; }
    .page-kicker em { display: none; }
    /* Two hero buttons side by side when they fit, full width when not. */
    .page-top .hero-actions { flex-wrap: wrap; }
}
@media (max-width: 800px) {
    .code-card pre.code-body, .code-card pre.code-body code { white-space: pre-wrap !important; overflow-wrap: anywhere; word-break: normal !important; }
    .pillars { padding-bottom: 32px; }
}
@media (max-width: 560px) {
    .cases .case .case-top { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; }
    .cases .case .case-top em { margin-left: 0 !important; text-align: left; }
}
@media (max-width: 560px) {
    /* Tool line: icon, name and argument on one row, the result below. */
    .agent-tool { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; }
    .agent-tool > * { min-width: 0; overflow-wrap: anywhere; }
    .agent-tool > :last-child { flex-basis: 100%; padding-left: 22px; white-space: normal !important; word-break: break-word; }
}
@media (max-width: 560px) {
    .bonus-app { padding: 22px; }
    .bonus-app__eyebrow { letter-spacing: 0.06em; font-size: 11px; }
    .bonus-app__name { font-size: 34px; }
}

/* ---------- Header: one height, dark over dark bands, light over light ---------- */
/* It no longer shrinks on scroll (that was the jump on phones). */
.header, .header.scrolled { padding: 14px 0; }
@media (max-width: 1023px) { .header, .header.scrolled { padding: 10px 0; } }
.header { transition: background-color 0.35s ease, border-color 0.35s ease, backdrop-filter 0.35s ease; }
/* Scrolled over a dark band: dark glass instead of the light bar. */
.header.scrolled.on-dark {
    background: rgba(8, 12, 22, 0.78) !important;
    -webkit-backdrop-filter: saturate(140%) blur(14px); backdrop-filter: saturate(140%) blur(14px);
    border-bottom-color: rgba(255, 255, 255, 0.08) !important;
}
.header.on-dark .nav-link, .header.on-dark .nav-link-account, .header.on-dark .lang summary, .header.on-dark .theme-toggle { color: rgba(238, 243, 248, 0.82); }
.header.on-dark .nav-link:hover { color: #fff; }
.header.on-dark .lang summary, .header.on-dark .theme-toggle { background: rgba(255, 255, 255, 0.05); border-color: rgba(255, 255, 255, 0.12); }
.header.on-dark .nav-tag { background: rgba(34, 211, 238, 0.16); color: #67e8f9; }
.header.on-dark .hamburger, .header.on-dark .hamburger::before, .header.on-dark .hamburger::after { background: #eef3f8; }
:root .header.on-dark .btn-header { background: #22d3ee; border-color: #22d3ee; color: #062330; }
:root .header.on-dark img.logo-img--dark { display: block; }
:root .header.on-dark img.logo-img--light { display: none; }
/* Scrolled over a light band: light glass, still blurred. */
.header.scrolled:not(.on-dark) { -webkit-backdrop-filter: saturate(140%) blur(14px); backdrop-filter: saturate(140%) blur(14px); }
/* Mobile menu open in light mode: the menu is white, so the header's logo
   and the close button switch to their dark versions, whatever band the
   page was scrolled to. */
:root[data-theme="light"] .header:has(.mobile-menu-btn[aria-expanded="true"]) { background: transparent !important; border-bottom-color: transparent !important; -webkit-backdrop-filter: none; backdrop-filter: none; }
:root[data-theme="light"] .header:has(.mobile-menu-btn[aria-expanded="true"]) img.logo-img--dark { display: none !important; }
:root[data-theme="light"] .header:has(.mobile-menu-btn[aria-expanded="true"]) img.logo-img--light { display: block !important; }
:root[data-theme="light"] .header:has(.mobile-menu-btn[aria-expanded="true"]) .hamburger::before,
:root[data-theme="light"] .header:has(.mobile-menu-btn[aria-expanded="true"]) .hamburger::after { background: #0b1b2b !important; }
:root .header:has(.mobile-menu-btn[aria-expanded="true"]) .hamburger { background: transparent !important; }

/* Launch films on the Nori and Kolibo cards: a poster with a play button
   that opens the film (streamed from Gumlet) in a lightbox. */
.bonus-film {
    position: relative; display: block; width: 100%; margin: 0 0 30px; padding: 0;
    border: 0; background: none; cursor: pointer; text-align: left;
}
.bonus-film__img {
    display: block; aspect-ratio: 16 / 9; border-radius: 14px; overflow: hidden; background: #0b0b14;
    box-shadow: 0 18px 40px -24px rgba(15, 10, 40, 0.7);
}
.bonus-film img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1); }
.bonus-film__play {
    position: absolute; left: 16px; bottom: -20px; z-index: 1; display: inline-flex; align-items: center; gap: 10px;
    padding: 6px 16px 6px 6px; border-radius: 999px; font-size: 13.5px; font-weight: 600; color: #1e1838;
    background: rgba(255, 255, 255, 0.94); box-shadow: 0 10px 28px -10px rgba(10, 8, 30, 0.55);
    transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}
.bonus-film__play i { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; color: #fff; background: #1e1838; }
.bonus-film__play svg { margin-left: 2px; }
.bonus-film--nori .bonus-film__play i { background: linear-gradient(180deg, #8b6cff, #6d4aff); }
.bonus-film--kolibo .bonus-film__play { box-shadow: 0 10px 28px -12px rgba(69, 39, 216, 0.45), 0 0 0 1px rgba(30, 24, 56, 0.08); }
.bonus-film--kolibo .bonus-film__play i { background: linear-gradient(180deg, #5b3df5, #4527d8); }
.bonus-film:hover img { transform: scale(1.03); }
.bonus-film:hover .bonus-film__play { transform: translateY(-2px); }
.bonus-film:focus-visible { outline: none; }
.bonus-film:focus-visible .bonus-film__img { outline: 3px solid #8b6cff; outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) {
    .bonus-film img, .bonus-film__play { transition: none; }
    .bonus-film:hover img, .bonus-film:hover .bonus-film__play { transform: none; }
}

.film-box {
    width: min(1280px, calc(100vw - 32px)); max-width: none; max-height: none; margin: auto; padding: 0;
    border: 0; border-radius: 16px; overflow: visible; background: #000; color: #fff;
    box-shadow: 0 40px 120px -20px rgba(0, 0, 0, 0.8);
}
.film-box::backdrop { background: rgba(6, 6, 16, 0.86); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.film-box[open] { animation: film-box-in 0.4s cubic-bezier(0.22, 1, 0.36, 1); }
@keyframes film-box-in { from { opacity: 0; transform: scale(0.97); } to { opacity: 1; transform: none; } }
.film-box__frame { position: relative; aspect-ratio: 16 / 9; max-height: calc(100vh - 96px); margin: 0 auto; border-radius: 16px; overflow: hidden; }
.film-box__frame video { position: absolute; inset: 0; width: 100%; height: 100%; background: #000; }
.film-box__close {
    position: absolute; right: 0; top: -48px; display: grid; place-items: center; width: 40px; height: 40px;
    border: 0; border-radius: 50%; cursor: pointer; color: #fff; background: rgba(255, 255, 255, 0.14);
}
.film-box__close:hover { background: rgba(255, 255, 255, 0.26); }
@media (prefers-reduced-motion: reduce) { .film-box[open] { animation: none; } }
