/* ==========================================================================
   ByHuman — frontend styles
   Custom overrides only; everything Bootstrap 5.3 already provides is used as-is.
   ========================================================================== */

/* --------------------------------------------------------------------------
   Tokens
   -------------------------------------------------------------------------- */

:root {
    --bh-bg: #faf9f7;
    --bh-bg-soft: #fbfaf8;
    --bh-surface: #fff;
    --bh-border: #e8e6e1;
    --bh-line: #ddd9d2;
    --bh-ink: #1a1a1a;
    --bh-black: #030404;
    --bh-black-hover: #26272a;
    --bh-muted: #555;
    --bh-subtle: #888;
    --bh-faint: #999;
    --bh-design: #e11d48;
    --bh-coding: #3b82f6;
    --bh-content: #a855f7;
    --bh-spectrum: linear-gradient(90deg, #e11d48, #f97316, #facc15, #22c55e, #3b82f6, #a855f7);
    --bh-heading-font: "Bricolage Grotesque", Helvetica, Arial, sans-serif;
    --bh-mono-font: ui-monospace, SFMono-Regular, Menlo, monospace;
}

/* --------------------------------------------------------------------------
   Base & typography
   -------------------------------------------------------------------------- */

body {
    background: var(--bh-bg);
    color: var(--bh-ink);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
}

h1, h2, h3, h4, h5, .navbar-brand {
    font-family: var(--bh-heading-font);
}

a {
    color: var(--bh-black);
}

a:hover {
    color: #444;
}

.bh-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: var(--bh-bg);
}

.bh-main {
    flex: 1;
}

/* Heading scale — fluid, so no separate mobile sizes are needed. */
.bh-title-hero {
    font-size: clamp(2.4rem, 5vw, 3.6rem);
    letter-spacing: -0.03em;
    line-height: 1.05;
    text-wrap: balance;
}

.bh-title-xl {
    font-size: clamp(2.2rem, 4.5vw, 3.2rem);
    letter-spacing: -0.03em;
}

.bh-title-lg {
    font-size: clamp(2rem, 4vw, 2.8rem);
    letter-spacing: -0.03em;
}

.bh-title-md {
    font-size: clamp(1.8rem, 3.5vw, 2.5rem);
    letter-spacing: -0.02em;
}

.bh-title-sm {
    font-size: 1.25rem;
    letter-spacing: -0.02em;
}

.bh-title-tight {
    letter-spacing: -0.02em;
}

.bh-lead {
    font-size: 1.15rem;
    color: var(--bh-muted);
    text-wrap: pretty;
}

.bh-muted {
    color: var(--bh-muted);
}

.bh-subtle {
    color: var(--bh-subtle);
}

.bh-faint {
    color: var(--bh-faint);
    font-weight: 400;
}

.bh-small {
    font-size: 0.9rem;
}

.bh-smaller {
    font-size: 0.85rem;
}

.bh-mono {
    font-family: var(--bh-mono-font);
    font-size: 0.72rem;
    letter-spacing: 0.08em;
    color: var(--bh-faint);
}

.bh-gradient-text {
    background: linear-gradient(90deg, #e11d48, #f97316, #3b82f6, #a855f7);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.bh-break {
    overflow-wrap: anywhere;
}

/* --------------------------------------------------------------------------
   Layout rhythm
   -------------------------------------------------------------------------- */

.bh-header {
    padding-block: 4rem 2.5rem;
}

.bh-header-lg {
    padding-block: 4.5rem;
}

.bh-section {
    padding-bottom: 5rem;
}

.bh-section-tight {
    padding-bottom: 3.5rem;
}

.bh-section-page {
    padding-block: 4rem 6rem;
}

.bh-section-form {
    padding-block: 4.5rem 6rem;
}

.bh-section-center {
    padding-block: 5.5rem 7.5rem;
}

.bh-column {
    max-width: 100%;
}

.bh-column-narrow {
    max-width: 30rem;
}

.bh-measure {
    max-width: 36rem;
}

.bh-form-column {
    max-width: 640px;
}

.bh-form-column-sm {
    max-width: 480px;
}

/* --------------------------------------------------------------------------
   Navigation & footer
   -------------------------------------------------------------------------- */

.bh-spectrum-bar {
    height: 4px;
    background: var(--bh-spectrum);
}

.bh-navbar {
    background: var(--bh-surface);
    border-bottom: 1px solid var(--bh-border);
}

.bh-navbar .navbar-brand {
    letter-spacing: -0.02em;
    font-size: 1.35rem;
}

.bh-navbar .navbar-toggler {
    border: none;
    box-shadow: none;
    outline: none;
}

.bh-nav-list {
    gap: 4px;
}

.bh-nav-divider {
    color: #d5d1c9;
    padding-left: 8px;
    padding-right: 8px;
}

.bh-nav-rule {
    border-top: 1px solid var(--bh-border);
}

.bh-nav-strong {
    color: var(--bh-black);
}

.bh-footer {
    background: var(--bh-black);
    color: #a9a7a2;
    padding: 3rem 0;
}

.bh-footer-brand {
    font-family: var(--bh-heading-font);
    color: #fff;
    font-size: 1.15rem;
}

.bh-footer-links {
    gap: 20px;
    font-size: 0.9rem;
}

.bh-footer-links a {
    color: #d5d3ce;
    text-decoration: none;
}

/* --------------------------------------------------------------------------
   Cards & panels
   -------------------------------------------------------------------------- */

.bh-card {
    background: var(--bh-surface);
    border: 1px solid var(--bh-border);
}

/* Same off-white as .bh-badge-frame, so a white badge preview stays visible against it. */
.bh-badge-tile {
    background: #f2f0eb;
    border: 1px solid var(--bh-border);
}

.bh-card-raised {
    box-shadow: 0 24px 48px -32px rgba(3, 4, 4, 0.25);
}


.bh-card-danger {
    background: var(--bh-surface);
    border: 1px solid #fecaca;
}

.bh-danger-title {
    color: #b91c1c;
}

.bh-alert-warning {
    background: #fef3c7;
    color: #92400e;
}

.bh-alert-success {
    background: #dcfce7;
    color: #166534;
}

.bh-panel-soft {
    background: var(--bh-surface);
    border-top: 1px solid var(--bh-border);
    border-bottom: 1px solid var(--bh-border);
    padding: 5rem 0;
}

.bh-stack {
    gap: 12px;
}

.bh-stack-lg {
    gap: 16px;
}

.bh-stack-xl {
    gap: 24px;
}

/* --------------------------------------------------------------------------
   Claims
   -------------------------------------------------------------------------- */

.bh-claim-rule {
    width: 40px;
    height: 4px;
    border-radius: 999px;
    margin-bottom: 14px;
}

.bh-claim-bar {
    width: 6px;
    align-self: stretch;
    border-radius: 999px;
}

.bh-claim-design {
    background: var(--bh-design);
}

.bh-claim-coding {
    background: var(--bh-coding);
}

.bh-claim-content {
    background: var(--bh-content);
}

/* The "Three claims" cards on the homepage and How it works use red, green, purple
   instead of the site-wide design/coding/content colours, which stay blue for
   "coding" everywhere else (e.g. a profile page). */
.bh-claim-coding-green {
    background: #22c55e;
}

.bh-text-design {
    color: var(--bh-design);
}

.bh-text-coding {
    color: var(--bh-coding);
}

.bh-text-content {
    color: var(--bh-content);
}

.bh-claim-row {
    gap: 16px;
}

/* --------------------------------------------------------------------------
   Status pills
   -------------------------------------------------------------------------- */

.bh-pill {
    font-weight: 600;
    font-size: 0.82rem;
}

.bh-pill-sm {
    font-weight: 600;
    font-size: 0.72rem;
}

.bh-pill-declared,
.bh-pill-live {
    background: #dcfce7;
    color: #15803d;
}

.bh-pill-off {
    background: #f2f0eb;
    color: #8a877f;
}

.bh-pill-pending {
    background: #fef3c7;
    color: #92400e;
}

.bh-pill-suspended {
    background: #fee2e2;
    color: #b91c1c;
}

.bh-pill-design {
    background: #ffe4e6;
    color: #be123c;
}

.bh-pill-coding {
    background: #dbeafe;
    color: #1d4ed8;
}

.bh-pill-content {
    background: #f3e8ff;
    color: #7e22ce;
}

/* --------------------------------------------------------------------------
   Buttons & forms
   -------------------------------------------------------------------------- */

.btn-dark {
    --bs-btn-bg: var(--bh-black);
    --bs-btn-border-color: var(--bh-black);
    --bs-btn-hover-bg: var(--bh-black-hover);
    --bs-btn-hover-border-color: var(--bh-black-hover);
    --bs-btn-active-bg: var(--bh-black-hover);
    --bs-btn-active-border-color: var(--bh-black-hover);
}

.btn-outline-dark {
    --bs-btn-hover-bg: var(--bh-black);
    --bs-btn-hover-border-color: var(--bh-black);
    --bs-btn-active-bg: var(--bh-black);
    --bs-btn-active-border-color: var(--bh-black);
}

.form-control:focus,
.form-check-input:focus,
.form-select:focus {
    border-color: var(--bh-black);
    box-shadow: 0 0 0 0.2rem rgba(3, 4, 4, 0.08);
}

.form-check-input:checked {
    background-color: var(--bh-black);
    border-color: var(--bh-black);
}

.bh-form {
    gap: 16px;
}

.bh-form-wide {
    gap: 20px;
}

/* A checkbox presented as a full-width choice card. */
.bh-choice {
    border: 1px solid var(--bh-border);
    gap: 10px;
    margin: 0;
    padding-left: 44px !important;
}

.bh-switch {
    gap: 12px;
    padding-left: 44px;
}

.bh-consent {
    background: var(--bh-bg-soft);
    border: 1px solid var(--bh-border);
}

.bh-consent .form-check {
    gap: 10px;
    padding-left: 24px;
}

.bh-fieldset-legend {
    font-size: 1rem;
}

/* --------------------------------------------------------------------------
   Badge preview & picker
   -------------------------------------------------------------------------- */

.bh-badge-frame {
    border: 2px dashed var(--bh-line);
    padding: 3rem 1rem;
    background: #f2f0eb;
}

.bh-badge-frame-tight {
    padding: 2.5rem 1rem;
}

.bh-badge-plate {
    border: 1px solid var(--bh-border);
    background: var(--bh-surface);
    padding: 3rem 1rem;
}

.bh-option {
    background: var(--bh-surface);
    color: var(--bh-ink);
    border: 1px solid var(--bh-line);
    font-size: 0.9rem;
}

.bh-option:hover {
    border-color: var(--bh-black);
    color: var(--bh-ink);
}

.bh-option.bh-option-active {
    background: var(--bh-black);
    color: #fff;
    border-color: var(--bh-black);
}

.bh-snippet {
    font-family: var(--bh-mono-font);
    font-size: 0.78rem;
    background: var(--bh-bg-soft);
}

.bh-width-range {
    flex: 1 1 12rem;
    max-width: 16rem;
}

/* --------------------------------------------------------------------------
   Page-specific pieces
   -------------------------------------------------------------------------- */

.bh-hero {
    padding-block: 4.5rem;
}

.bh-step-number {
    font-family: var(--bh-heading-font);
    font-size: 1.5rem;
    min-width: 2ch;
}

.bh-step-number-lg {
    font-family: var(--bh-heading-font);
    font-size: 1.6rem;
}

.bh-step-row {
    gap: 20px;
}

.bh-card-link {
    text-decoration: none;
    height: 100%;
    gap: 6px;
}

.bh-card-link strong {
    font-size: 1.05rem;
}

.bh-card-link:hover {
    border-color: var(--bh-line);
}

.bh-card-since {
    color: var(--bh-faint);
    font-size: 0.8rem;
    margin-top: auto;
}

.bh-website-row {
    gap: 16px;
}

.bh-website-row strong {
    font-size: 1.1rem;
}

.bh-chevron {
    color: #bbb;
    text-decoration: none;
}

.bh-back-link {
    font-size: 0.9rem;
    text-decoration: none;
    color: var(--bh-subtle);
}

.bh-error-code {
    font-family: var(--bh-heading-font);
    font-weight: 800;
    font-size: clamp(5rem, 14vw, 9rem);
    letter-spacing: -0.04em;
    line-height: 1;
    background: var(--bh-spectrum);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.bh-invoice-row {
    gap: 8px;
    border: 1px solid var(--bh-border);
}

.bh-feature-list {
    gap: 12px;
}

.bh-feature-check {
    color: #22c55e;
    font-weight: 700;
}

.bh-cta-row {
    gap: 12px;
}

/* Radio-driven option pills in the badge picker. */
.btn-check:checked + .bh-option {
    background: var(--bh-black);
    color: #fff;
    border-color: var(--bh-black);
}

/* Step accents and statement type used on the marketing pages. */
.bh-text-orange {
    color: #f97316;
}

.bh-text-green {
    color: #22c55e;
}

.bh-mono-accent {
    color: #c2410c;
}

/* Reusable card with the same rainbow gradient as the header and footer's spectrum
   bar, as a thick border around a white card, for callouts that should stand out
   against the page background. The site's one callout box style. */
.bh-card-rainbow {
    background: linear-gradient(var(--bh-surface), var(--bh-surface)) padding-box,
        var(--bh-spectrum) border-box;
    border: 3px solid transparent;
}

.bh-mono-rainbow {
    color: var(--bh-black);
}

.bh-statement {
    font-size: 1.25rem;
    max-width: 42rem;
    text-wrap: balance;
}

.bh-section-tall {
    padding-bottom: 6rem;
}

.bh-stack-sm {
    gap: 8px;
}

/* Pagination follows the site's black rather than Bootstrap's blue. */
.pagination {
    --bs-pagination-color: var(--bh-black);
    --bs-pagination-hover-color: var(--bh-black);
    --bs-pagination-focus-color: var(--bh-black);
    --bs-pagination-focus-box-shadow: 0 0 0 0.2rem rgba(3, 4, 4, 0.08);
    --bs-pagination-active-bg: var(--bh-black);
    --bs-pagination-active-border-color: var(--bh-black);
}

.bh-picker-column {
    max-width: 720px;
}

.bh-lead-sm {
    font-size: 1.1rem;
}
