/* Brand pages. Colours come from /brands/<slug>/theme.css (--brand, --brand-2, --on-brand);
   the layout is chosen per brand in the panel and set as a class on <body>. */

.bhero { position: relative; overflow: hidden; color: var(--on-brand); background: var(--brand); }
.bhero__inner { position: relative; z-index: 1; display: grid; gap: 2rem; padding-block: clamp(2.5rem, 7vw, 5rem); }
.bhero h1 { color: inherit; font-size: clamp(1.8rem, 5.2vw, 3rem); line-height: 1.35; }
.bhero__lead { font-size: clamp(1.02rem, 2.2vw, 1.2rem); opacity: .9; max-width: 38rem; }
.bhero__cta { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.5rem; }
.bhero .crumbs, .bhero .crumbs a { color: inherit; opacity: .8; }
.bhero .crumbs li + li::before { color: inherit; }
.bhero__logo { display: grid; place-items: center; min-height: 9rem; padding: 1.5rem; border-radius: 22px; background: #fff; box-shadow: var(--shadow-lg); }
.bhero__logo img { max-height: 72px; width: auto; max-width: 240px; }
.bhero__word { font-family: Arial, Helvetica, sans-serif; font-weight: 900; font-size: clamp(2.2rem, 7vw, 3.5rem); letter-spacing: .02em; color: var(--brand); direction: ltr; line-height: 1; }
.auth { display: inline-flex; flex-wrap: wrap; align-items: center; gap: .5rem; margin-bottom: 1rem; padding: .35rem .9rem .35rem .5rem; border-radius: 99px; background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .28); font-weight: 700; font-size: .92rem; }
.auth .icon { width: 1.4rem; height: 1.4rem; }
.auth code { font-family: inherit; direction: ltr; padding: 0 .4rem; border-radius: 6px; background: rgba(0, 0, 0, .18); }
@media (min-width: 900px) { .bhero__inner { grid-template-columns: 1.3fr .7fr; align-items: center; } }

.bnav { position: sticky; top: var(--header-h); z-index: 30; background: #fff; border-bottom: 1px solid var(--line); }
.bnav ul { display: flex; gap: .25rem; list-style: none; margin: 0; padding: .4rem 0; overflow-x: auto; scrollbar-width: none; }
.bnav a { display: block; white-space: nowrap; padding: .45rem .9rem; border-radius: 8px; color: var(--text); text-decoration: none; font-weight: 600; font-size: .95rem; }
.bnav a:hover { background: var(--surface); color: var(--brand); }

.bdevices { display: grid; gap: .75rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 15rem), 1fr)); }
.bdevice { display: flex; align-items: center; gap: .9rem; padding: 1.1rem; border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; color: var(--ink); background: #fff; transition: border-color .15s, box-shadow .15s; }
.bdevice:hover { border-color: var(--brand); box-shadow: var(--shadow); color: var(--ink); }
.bdevice__icon { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 14px; flex: none; background: var(--brand); color: var(--on-brand); }
.bdevice strong { display: block; }
.bdevice small { color: var(--muted); }

.bcard-accent { border-top: 4px solid var(--brand); }
.bbadge { display: inline-block; padding: .15rem .7rem; border-radius: 99px; background: var(--brand); color: var(--on-brand); font-size: .85rem; font-weight: 700; }
.features--brand .icon { color: var(--brand); background: var(--surface); }
.steps--brand li::before { background: var(--brand); color: var(--on-brand); }
.cta-band--brand { background: var(--brand); color: var(--on-brand); }
.cta-band--brand h2, .cta-band--brand p { color: inherit; }
.problems { columns: 2 14rem; column-gap: 2rem; list-style: none; margin: 0; padding: 0; }
.problems li { break-inside: avoid; display: flex; gap: .5rem; padding: .45rem 0; border-bottom: 1px dashed var(--line); }
.problems .icon { color: var(--brand); margin-top: .25rem; }

/* Layout: clean — airy white canvas, colour only as accent (consumer-electronics feel). */
.layout-clean .bhero { background: #fff; color: var(--ink); border-bottom: 1px solid var(--line); }
.layout-clean .bhero h1 { color: var(--ink); }
.layout-clean .bhero h1 em { font-style: normal; color: var(--brand); }
.layout-clean .bhero .auth { background: var(--surface); border-color: var(--line); color: var(--ink); }
.layout-clean .bhero .auth .icon { color: var(--brand); }
.layout-clean .bhero .auth code { background: #fff; border: 1px solid var(--line); }
.layout-clean .bhero__logo { background: var(--surface); box-shadow: none; border: 1px solid var(--line); border-radius: 999px; aspect-ratio: 1; max-width: 18rem; justify-self: center; }
.layout-clean .bhero .btn--outline-light { color: var(--ink); border-color: var(--ink); }
.layout-clean .bhero .btn--outline-light:hover { background: var(--surface); color: var(--ink); }
.layout-clean .bhero .btn--light { background: var(--brand); color: var(--on-brand); }

/* Layout: bold — saturated colour field with a large diagonal panel. */
.layout-bold .bhero { background: linear-gradient(115deg, var(--brand) 0 58%, color-mix(in srgb, var(--brand) 70%, #000) 58% 100%); }
.layout-bold .bhero h1 { font-size: clamp(2rem, 6vw, 3.4rem); font-weight: 900; }
.layout-bold .bhero h1 em { font-style: normal; text-decoration: underline; text-decoration-thickness: .12em; text-underline-offset: .2em; }
.layout-bold .bhero__logo { border-radius: 28px; transform: rotate(-3deg); }
.layout-bold .bdevice { border-radius: 22px; }
.layout-bold .bdevice__icon { border-radius: 50%; }

/* Layout: engineered — precise grid, thin rules, technical labels. */
.layout-engineered .bhero { background: var(--brand-2); }
.layout-engineered .bhero::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255, 255, 255, .07) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .07) 1px, transparent 1px); background-size: 24px 24px; }
.layout-engineered .bhero::after { content: ""; position: absolute; inset-inline-end: 0; top: 0; bottom: 0; width: 10px; background: var(--brand); }
.layout-engineered .bhero h1 em { font-style: normal; color: inherit; border-bottom: 4px solid var(--brand); }
.layout-engineered .bhero__logo { border-radius: 4px; border-top: 6px solid var(--brand); }
.layout-engineered .bdevice, .layout-engineered .card, .layout-engineered .steps li { border-radius: 4px; }
.layout-engineered .bdevice__icon { border-radius: 4px; }
.layout-engineered .section__head h2::before { content: ""; display: block; width: 3rem; height: 4px; background: var(--brand); margin-bottom: .75rem; }

/* Layout: warm — heating brands: soft gradient from brand colour to ember tones. */
.layout-warm .bhero { background: radial-gradient(90% 140% at 0% 100%, color-mix(in srgb, var(--brand) 55%, #f59e0b) 0%, transparent 60%), linear-gradient(160deg, var(--brand) 0%, color-mix(in srgb, var(--brand) 60%, #000) 100%); }
.layout-warm .bhero h1 em { font-style: normal; color: #ffd38a; }
.layout-warm .bhero__logo { border-radius: 50% 50% 22px 22px; }
.layout-warm .section--tint { background: color-mix(in srgb, var(--brand) 5%, #fff); }
