/* Bella Baxter web — page layout on top of the Design System tokens (site/ds/, verbatim copies).
 * Rules from design/design-system/ui_kits/website/README.md: sections are separated by a line, not
 * by colour bands except the alternating --bb-bg-band of the web-home template; one primary button per
 * screen; the final CTA is the only filled block; the endorsement closes the page.
 * No hex here: every colour is a var(--bb-*) so the light theme follows. */

/* Same override as the console (spec 063 FR-011, #1472): the DS ring in --bb-violet measures 2.95:1
 * on --bb-bg-elevated in dark. Remove when the DS changes borders.css (gap DS-2). */
:root { --bb-focus-ring: 0 0 0 2px var(--bb-accent-line); }

html { scroll-behavior: smooth; scroll-padding-top: 80px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

.wrap { max-width: var(--bb-container); margin: 0 auto; padding: 0 var(--bb-gutter); }
@media (max-width: 640px) { .wrap { padding: 0 16px; } }

.skip { position: absolute; left: 16px; top: -48px; z-index: 50; padding: 8px 12px; border-radius: var(--bb-radius); background: var(--bb-bg-elevated); color: var(--bb-text); }
.skip:focus { top: 12px; }

.eyebrow { font-family: var(--bb-font-mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--bb-text-muted); }
h1, h2, h3 { font-family: var(--bb-font-display); font-weight: 600; text-wrap: balance; }
h2 { font-size: 32px; line-height: 1.2; margin: 16px 0 40px; }
.lead { font-size: 18px; line-height: 1.5; color: var(--bb-text-muted); max-width: 52ch; }
.mono { font-family: var(--bb-font-mono); }

/* Lockup }·{ BellaBaxter */
.lockup { display: inline-flex; align-items: center; gap: 10px; white-space: nowrap; color: inherit; }
.lockup-mark { font-family: var(--bb-font-symbol); font-size: 27px; line-height: 1; color: var(--bb-accent-line); }
.lockup-word { font-family: var(--bb-font-display); font-size: 20px; }
.lockup-word b { font-weight: 700; color: var(--bb-lilac); }
.lockup-word span { font-weight: 300; color: var(--bb-lilac-light); }

/* Button (components/core/Button.jsx, as a link) */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; white-space: nowrap; font-family: var(--bb-font-body); font-weight: 500; font-size: 14px; padding: 10px 20px; border-radius: var(--bb-radius); border: 1px solid var(--bb-line); color: var(--bb-text); background: transparent; transition: background var(--bb-duration) var(--bb-ease), border-color var(--bb-duration) var(--bb-ease); }
.btn:hover { color: var(--bb-text); border-color: var(--bb-accent-line); }
.btn-primary, .btn-primary:hover { background: var(--bb-violet); border-color: var(--bb-violet); color: var(--bb-on-accent); }
.btn-primary:hover { background: var(--bb-violet-deep); border-color: var(--bb-violet-deep); }
.btn-sm { font-size: 12px; padding: 6px 12px; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 20; background: var(--bb-header-veil); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: var(--bb-border); }
.site-header .wrap { height: 64px; display: flex; align-items: center; gap: 32px; }
.site-nav { display: flex; gap: 24px; margin-left: 16px; font-size: 13px; }
.site-nav a, .signin { color: var(--bb-text-muted); }
.site-nav a:hover, .signin:hover { color: var(--bb-text); }
.header-end { margin-left: auto; display: flex; align-items: center; gap: 16px; font-size: 13px; }
.theme-toggle { width: 32px; height: 32px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--bb-line); border-radius: var(--bb-radius); background: transparent; color: var(--bb-text-muted); cursor: pointer; font-size: 18px; }
.theme-toggle:hover { color: var(--bb-text); }
.theme-toggle .ph-sun { display: none; }
:root[data-theme="light"] .theme-toggle .ph-sun { display: inline-block; }
:root[data-theme="light"] .theme-toggle .ph-moon { display: none; }
@media (max-width: 760px) { .site-nav { display: none; } .site-header .wrap { gap: 16px; } }
@media (max-width: 420px) { .signin { display: none; } }

/* Sections */
section { padding: var(--bb-section-y) 0; }
.band { background: var(--bb-bg-band); }
@media (max-width: 640px) { section { padding: 64px 0; } }

.hero .wrap { display: grid; grid-template-columns: 1.05fr 1fr; gap: 64px; align-items: center; }
.hero h1 { font-size: 56px; line-height: 1.15; margin: 20px 0 0; }
.hero .lead { margin: 24px 0 0; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.dots { display: flex; flex-wrap: wrap; gap: 12px 24px; margin-top: 32px; }
.dot { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; color: var(--bb-text-muted); }
.dot::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--bb-success); flex-shrink: 0; }
@media (max-width: 960px) { .hero .wrap { grid-template-columns: 1fr; gap: 48px; } }
@media (max-width: 640px) { .hero h1 { font-size: 40px; } }

/* Terminal (components/code/Terminal.jsx) */
.term { border: var(--bb-border); border-radius: var(--bb-radius); overflow: hidden; background: var(--bb-bg); min-width: 0; }
.term-tab { padding: 8px 16px; border-bottom: var(--bb-border); background: var(--bb-bg-elevated); font-family: var(--bb-font-mono); font-size: 11px; color: var(--bb-text-muted); }
.term pre { margin: 0; padding: 16px; overflow-x: auto; font-family: var(--bb-font-mono); font-size: 13px; line-height: 1.8; color: var(--bb-lilac); }
.term .prompt { color: var(--bb-text-muted); user-select: none; }

/* Pending marker: visible on purpose. scripts/check.mjs refuses a release while any is left. */
.pending { display: block; padding: 16px; font-family: var(--bb-font-mono); font-size: 12px; line-height: 1.6; color: var(--bb-warning); border: 1px dashed var(--bb-warning); border-radius: var(--bb-radius); }

/* Architecture */
.flow { font-family: var(--bb-font-mono); font-size: 13px; color: var(--bb-lilac); margin: -24px 0 40px; overflow-wrap: anywhere; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
@media (max-width: 860px) { .grid-3, .grid-2 { grid-template-columns: 1fr; } }

/* Card (components/core/Card.jsx) */
.card { background: var(--bb-bg-elevated); border: var(--bb-border); border-radius: var(--bb-radius-card); padding: 24px; }
.card-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; }
.card h3 { font-size: 16px; margin: 0; }
.card-meta { font-size: 12px; color: var(--bb-text-muted); }
.card p { margin: 16px 0 0; font-size: 13px; line-height: 1.6; color: var(--bb-text-muted); }
.card code { color: var(--bb-lilac); }
.card .ph-duotone { font-size: 28px; color: var(--bb-text); }
.card .ph-duotone + h3 { margin-top: 16px; }
.card .ph-duotone ~ p { margin-top: 8px; }

/* Providers (components/core/Tag.jsx) */
.providers .wrap { display: flex; align-items: center; gap: 24px 40px; flex-wrap: wrap; }
.providers h2 { margin: 8px 0 0; font-size: 20px; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 0; }
.tag { display: inline-flex; padding: 4px 8px; border: var(--bb-border); border-radius: var(--bb-radius-sm); background: var(--bb-bg); color: var(--bb-text); font-family: var(--bb-font-mono); font-size: 12px; }

/* Get started */
.start .wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.start h2 { margin-bottom: 16px; }
.stack { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
@media (max-width: 860px) { .start .wrap { grid-template-columns: 1fr; } }

/* Final CTA: the only filled block */
.cta-final { padding: 72px 0; }
.cta-box { max-width: 900px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; border: 1px solid var(--bb-accent-line); border-radius: var(--bb-radius-card); background: var(--bb-violet-soft); padding: 32px; }
.cta-box p { margin: 0; font-family: var(--bb-font-display); font-size: 24px; font-weight: 600; line-height: 1.3; max-width: 32ch; color: var(--bb-text); }

/* Footer */
.site-footer { padding: 64px 0 40px; border-top: var(--bb-border); }
.foot-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 32px; }
.foot-grid > p, .foot-desc { margin: 16px 0 0; font-size: 13px; line-height: 1.6; color: var(--bb-text-muted); max-width: 34ch; }
.foot-col { display: flex; flex-direction: column; gap: 10px; font-size: 13px; }
.foot-col h2 { margin: 0 0 4px; font-family: var(--bb-font-mono); font-weight: 400; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--bb-text-muted); }
.foot-col a { color: var(--bb-text); }
.foot-col a:hover { color: var(--bb-lilac-light); }
.foot-bottom { margin-top: 48px; padding-top: 24px; border-top: var(--bb-border); display: flex; justify-content: flex-end; font-size: 12px; color: var(--bb-text-muted); }
.endorse .cosmic { color: var(--bb-terracotta); }
@media (max-width: 860px) { .foot-grid { grid-template-columns: 1fr 1fr; } .foot-grid > :first-child { grid-column: 1 / -1; } }

/* Stub pages (legal, contact, security) */
.stub { padding: 96px 0; min-height: 50vh; }
.stub h1 { font-size: 40px; margin: 16px 0 32px; }
.legal .wrap > * { max-width: 68ch; }
.legal h2 { font-size: 20px; margin: 40px 0 12px; }
.legal p, .legal li, .legal address { font-size: 15px; line-height: 1.6; color: var(--bb-text-muted); }
.legal p { margin: 0 0 16px; }
.legal ul { margin: 0 0 16px; padding-left: 20px; }
.legal li + li { margin-top: 6px; }
.legal a { color: var(--bb-lilac); text-decoration: underline; text-underline-offset: 3px; }
.legal a:hover { color: var(--bb-lilac-light); }
.term-body { padding: 16px; }
.start-lead { margin: 0; font-size: 16px; max-width: 48ch; }
.start-lead code { font-size: 14px; color: var(--bb-lilac); }
.term .comment { color: var(--bb-text-muted); }
.legal .lead { font-size: 18px; }
.legal address { font-style: normal; margin: 0 0 16px; }
.legal .nowrap, .legal a[href^="mailto:"] { white-space: nowrap; }
