/* Blue Hour: components. Built only from tokens.css. */

*, *::before, *::after { box-sizing: border-box; }

.bh {
  margin: 0;
  background: var(--bh-ink);
  color: var(--bh-text);
  font-family: var(--bh-font);
  font-size: var(--bh-text-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
:where(.bh a) { color: inherit; }
.bh img, .bh svg { max-width: 100%; }

.bh-container { width: 100%; max-width: var(--bh-container); margin: 0 auto; padding: 0 var(--bh-gutter); }
.bh-section { padding: var(--bh-space-9) 0; }
.bh-section--tight { padding: var(--bh-space-8) 0; }

/* ---------- Type ---------- */
.bh-hero-title, .bh-h2, .bh-h3 { margin: 0; font-weight: 600; color: var(--bh-text); }
.bh-hero-title { font-size: var(--bh-text-hero); line-height: 1.04; letter-spacing: var(--bh-track-tight); max-width: 18ch; }
.bh-h2 { font-size: var(--bh-text-h2); line-height: 1.08; letter-spacing: var(--bh-track-tight); max-width: 20ch; }
.bh-h3 { font-size: var(--bh-text-h3); line-height: 1.3; letter-spacing: -0.015em; }
.bh-lead { font-size: var(--bh-text-lead); color: var(--bh-dim); line-height: 1.5; margin: var(--bh-space-4) 0 0; max-width: 46ch; }
.bh-muted { color: var(--bh-dim); }
.bh-micro, .bh-eyebrow { font-family: var(--bh-mono); font-size: var(--bh-text-micro); letter-spacing: var(--bh-track-mono); color: var(--bh-dim); }
.bh-eyebrow { text-transform: uppercase; color: var(--bh-ice); display: inline-block; margin-bottom: var(--bh-space-4); }
.bh-strong { color: var(--bh-text); font-weight: 500; }

/* ---------- Buttons ---------- */
.bh-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--bh-space-2);
  height: 38px; padding: 0 var(--bh-space-4);
  border-radius: var(--bh-radius-btn); border: 1px solid transparent;
  font: 500 14px/1 var(--bh-font); text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: transform .15s ease, background .15s ease, box-shadow .2s ease;
}
.bh-btn:active { transform: translateY(1px); }
.bh-btn--white { background: var(--bh-white); color: var(--bh-ink); box-shadow: var(--bh-shadow-btn); }
.bh-btn--white:hover { background: var(--bh-ice); }
.bh-btn--volt { background: var(--bh-volt); color: var(--bh-white); box-shadow: 0 0 0 1px rgba(169, 187, 255, .5) inset, 0 8px 30px rgba(58, 87, 255, .45); }
.bh-btn--volt:hover { box-shadow: 0 0 0 1px rgba(169, 187, 255, .8) inset, 0 8px 40px rgba(58, 87, 255, .7); }
.bh-btn--ghost { background: transparent; color: var(--bh-dim); }
.bh-btn--ghost:hover { color: var(--bh-text); }
.bh-btn--line { background: var(--bh-raised); color: var(--bh-text); border-color: var(--bh-line-bright); }
.bh-btn--line:hover { border-color: var(--bh-ice); }
.bh-btn--lg { height: 46px; padding: 0 var(--bh-space-5); font-size: 15px; }
.bh-btn--block { width: 100%; }

/* ---------- Nav ---------- */
.bh-nav { position: sticky; top: 0; z-index: 20; background: rgba(5, 5, 7, .78); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.bh-nav__inner { display: flex; align-items: center; gap: var(--bh-space-6); height: 64px; }
.bh-logo { display: inline-flex; align-items: center; gap: var(--bh-space-2); font-weight: 600; font-size: 16px; letter-spacing: -0.02em; text-decoration: none; color: var(--bh-text); }
.bh-logo__mark { width: 20px; height: 20px; flex-shrink: 0; }
.bh-nav__links { display: flex; gap: var(--bh-space-5); list-style: none; margin: 0; padding: 0; }
.bh-nav__links a { color: var(--bh-dim); text-decoration: none; font-size: 14px; }
.bh-nav__links a:hover, .bh-nav__links a[aria-current] { color: var(--bh-text); }
.bh-nav__end { margin-left: auto; display: flex; align-items: center; gap: var(--bh-space-2); }
@media (max-width: 820px) { .bh-nav__links { display: none; } .bh-nav__end .bh-btn--ghost { display: none; } }

/* ---------- Hero ---------- */
.bh-hero { padding-top: var(--bh-space-9); padding-bottom: var(--bh-space-7); }
.bh-hero__row { display: flex; flex-wrap: wrap; align-items: center; gap: var(--bh-space-4) var(--bh-space-5); margin-top: var(--bh-space-6); }
.bh-hero__note { margin-left: auto; font-size: var(--bh-text-small); color: var(--bh-dim); }
.bh-hero__note b { color: var(--bh-text); font-weight: 500; }
@media (max-width: 720px) { .bh-hero { padding-top: var(--bh-space-8); } .bh-hero__note { margin-left: 0; width: 100%; } }

/* ---------- The frame, the haze and the glowing glass ---------- */
.bh-frame {
  position: relative; overflow: hidden;
  border-radius: var(--bh-radius-frame); border: 1px solid var(--bh-line);
  background: var(--bh-panel);
  padding: clamp(28px, 6vw, 96px) clamp(16px, 5vw, 80px) 0;
  isolation: isolate;
}
.bh-frame::before { content: ""; position: absolute; inset: 0; background: var(--bh-haze); z-index: -1; }
.bh-frame--soft::before { background: var(--bh-haze-soft); }
.bh-frame--pad { padding-bottom: clamp(28px, 5vw, 72px); }

.bh-glass {
  position: relative; max-width: 620px; margin: 0 auto;
  border-radius: var(--bh-radius-glass); background: var(--bh-glass);
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  border: 1px solid rgba(169, 187, 255, .18);
  padding: var(--bh-space-5);
}
.bh-glass--lit { box-shadow: var(--bh-edge-glow); border-color: transparent; }
.bh-glass--bottom { border-bottom-left-radius: 0; border-bottom-right-radius: 0; }

.bh-select-bar { display: flex; gap: var(--bh-space-3); max-width: 620px; margin: 0 auto var(--bh-space-4); }
.bh-select-bar__field { flex: 1; min-width: 0; display: flex; align-items: center; justify-content: space-between; gap: var(--bh-space-3); height: 52px; padding: 0 var(--bh-space-5); border-radius: var(--bh-radius-card); background: var(--bh-glass); border: 1px solid rgba(169, 187, 255, .16); font-size: clamp(16px, 2.2vw, 22px); font-weight: 500; white-space: nowrap; overflow: hidden; }
.bh-select-bar__plus { width: 52px; height: 52px; flex-shrink: 0; border-radius: var(--bh-radius-card); background: var(--bh-glass); border: 1px solid rgba(169, 187, 255, .16); display: grid; place-items: center; font-size: 26px; color: var(--bh-dim); }

.bh-prompt { font-size: clamp(18px, 2.4vw, 26px); line-height: 1.3; font-weight: 500; letter-spacing: -0.015em; margin: 0; }
.bh-caret { display: inline-block; width: 2px; height: 1.05em; background: var(--bh-text); vertical-align: -0.15em; margin-left: 2px; animation: bh-blink 1s steps(1) infinite; }
@keyframes bh-blink { 50% { opacity: 0; } }
.bh-prompt-bar { display: flex; align-items: center; justify-content: space-between; gap: var(--bh-space-3); margin-top: var(--bh-space-6); padding-top: var(--bh-space-4); border-top: 1px solid rgba(169, 187, 255, .14); }
.bh-chips { display: flex; flex-wrap: wrap; gap: var(--bh-space-2); }
.bh-chip { font-family: var(--bh-mono); font-size: var(--bh-text-micro); color: var(--bh-ice); padding: 5px 10px; border-radius: var(--bh-radius-pill); background: rgba(58, 87, 255, .16); border: 1px solid rgba(169, 187, 255, .2); white-space: nowrap; }
.bh-send { width: 38px; height: 38px; flex-shrink: 0; border-radius: 50%; background: var(--bh-white); color: var(--bh-ink); display: grid; place-items: center; border: 0; }

/* Readout rows inside glass */
.bh-readout { display: grid; gap: 1px; margin-top: var(--bh-space-5); border-radius: var(--bh-radius-input); overflow: hidden; background: rgba(169, 187, 255, .12); }
.bh-readout--flush { margin-top: 0; }
.bh-readout__row { display: flex; align-items: center; gap: var(--bh-space-3); padding: var(--bh-space-3) var(--bh-space-4); background: rgba(12, 13, 19, .7); font-size: 14px; }
.bh-readout__label { color: var(--bh-dim); flex: 1; min-width: 0; }
.bh-readout__value { font-family: var(--bh-mono); font-size: 12px; color: var(--bh-text); white-space: nowrap; }
.bh-readout__value--cyan { color: var(--bh-cyan); }
.bh-readout__value--flare { color: var(--bh-flare); }

/* Chart drawn with SVG */
.bh-chart { display: block; width: 100%; height: auto; margin-top: var(--bh-space-4); }
.bh-chart__grid { stroke: rgba(169, 187, 255, .12); stroke-width: 1; }
.bh-chart__line { fill: none; stroke: var(--bh-cyan); stroke-width: 2; }
.bh-chart__area { fill: url(#bh-area); }
.bh-chart__stop { stop-color: var(--bh-cyan); }
.bh-chart__dot { fill: var(--bh-white); stroke: var(--bh-volt); stroke-width: 3; }

/* ---------- Badges ---------- */
.bh-badge { display: inline-flex; align-items: center; gap: 6px; font-family: var(--bh-mono); font-size: var(--bh-text-micro); padding: 4px 10px; border-radius: var(--bh-radius-pill); border: 1px solid var(--bh-line-bright); color: var(--bh-dim); white-space: nowrap; }
.bh-badge--volt { color: var(--bh-ice); border-color: rgba(169, 187, 255, .35); background: rgba(58, 87, 255, .14); }
.bh-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--bh-cyan); box-shadow: 0 0 10px var(--bh-cyan); flex-shrink: 0; }
.bh-dot--flare { background: var(--bh-flare); box-shadow: 0 0 10px var(--bh-flare); }

/* ---------- Logos strip ---------- */
.bh-logos { display: flex; flex-wrap: wrap; gap: var(--bh-space-6) var(--bh-space-7); align-items: center; color: var(--bh-faint); font-weight: 600; font-size: 17px; letter-spacing: -0.02em; }

/* ---------- Grids and cards ---------- */
.bh-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: var(--bh-space-5); margin-bottom: var(--bh-space-7); }
.bh-head .bh-lead { margin: 0; max-width: 40ch; }
.bh-grid { display: grid; gap: var(--bh-space-4); }
.bh-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.bh-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.bh-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 960px) { .bh-grid--3, .bh-grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .bh-grid--2, .bh-grid--3, .bh-grid--4 { grid-template-columns: minmax(0, 1fr); } }

.bh-card { position: relative; overflow: hidden; border-radius: var(--bh-radius-card); background: var(--bh-panel); border: 1px solid var(--bh-line); padding: var(--bh-space-6); text-decoration: none; display: block; transition: border-color .2s ease; }
.bh-card:hover { border-color: var(--bh-line-bright); }
.bh-card p { color: var(--bh-dim); margin: var(--bh-space-2) 0 0; }
.bh-card--haze { isolation: isolate; }
.bh-card--haze::before { content: ""; position: absolute; inset: 0; background: var(--bh-haze-soft); z-index: -1; }
.bh-card--wide { grid-column: span 2; }
@media (max-width: 640px) { .bh-card--wide { grid-column: auto; } }
.bh-card__icon { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: var(--bh-raised); border: 1px solid var(--bh-line-bright); color: var(--bh-ice); margin-bottom: var(--bh-space-5); }

.bh-stat { font-size: clamp(36px, 4vw, 52px); font-weight: 600; letter-spacing: var(--bh-track-tight); line-height: 1; }
.bh-stat small { font-size: 0.45em; color: var(--bh-dim); font-weight: 500; letter-spacing: 0; }

/* ---------- Split ---------- */
.bh-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: var(--bh-space-8); align-items: center; }
@media (max-width: 900px) { .bh-split { grid-template-columns: minmax(0, 1fr); gap: var(--bh-space-6); } }
.bh-list { list-style: none; padding: 0; margin: var(--bh-space-5) 0 0; display: grid; gap: var(--bh-space-3); }
.bh-list li { display: flex; gap: var(--bh-space-3); color: var(--bh-dim); }
.bh-list li::before { content: ""; width: 14px; height: 14px; margin-top: 5px; flex-shrink: 0; border-radius: 4px; border: 1.5px solid var(--bh-volt); box-shadow: 0 0 8px rgba(58, 87, 255, .6); }

/* ---------- Quote ---------- */
.bh-quote { margin: 0; }
.bh-quote blockquote { margin: 0; font-size: clamp(20px, 2.4vw, 28px); line-height: 1.3; letter-spacing: -0.02em; font-weight: 500; }
.bh-quote figcaption { display: flex; align-items: center; gap: var(--bh-space-3); margin-top: var(--bh-space-5); color: var(--bh-dim); font-size: 14px; }
.bh-avatar { width: 36px; height: 36px; border-radius: 50%; flex-shrink: 0; background: linear-gradient(135deg, var(--bh-volt), var(--bh-cyan)); }

/* ---------- Tabs ---------- */
.bh-tabs { display: inline-flex; padding: 4px; gap: 4px; border-radius: var(--bh-radius-pill); background: var(--bh-panel); border: 1px solid var(--bh-line); }
.bh-tabs button { font: 500 13px/1 var(--bh-font); color: var(--bh-dim); background: none; border: 0; padding: 9px 16px; border-radius: var(--bh-radius-pill); cursor: pointer; white-space: nowrap; }
.bh-tabs button[aria-selected="true"] { background: var(--bh-white); color: var(--bh-ink); }

/* ---------- Pricing ---------- */
.bh-plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--bh-space-4); align-items: stretch; }
@media (max-width: 900px) { .bh-plans { grid-template-columns: minmax(0, 1fr); } }
.bh-plan { display: flex; flex-direction: column; gap: var(--bh-space-4); padding: var(--bh-space-6); border-radius: var(--bh-radius-glass); background: var(--bh-panel); border: 1px solid var(--bh-line); }
.bh-plan--lit { background: var(--bh-glass); box-shadow: var(--bh-edge-glow); border-color: transparent; position: relative; }
.bh-plan__price { display: flex; align-items: baseline; gap: 6px; }
.bh-plan__amount { font-size: 44px; font-weight: 600; letter-spacing: var(--bh-track-tight); line-height: 1; }
.bh-plan__per { color: var(--bh-dim); font-size: 14px; }
.bh-plan .bh-list { margin: 0; flex: 1; }
.bh-plan .bh-list li { font-size: 14px; }

.bh-table-wrap { overflow-x: auto; border-radius: var(--bh-radius-card); border: 1px solid var(--bh-line); }
.bh-table { width: 100%; min-width: 560px; border-collapse: collapse; font-size: 14px; }
.bh-table th, .bh-table td { padding: var(--bh-space-4) var(--bh-space-5); text-align: left; border-bottom: 1px solid var(--bh-line); }
.bh-table thead th { font-family: var(--bh-mono); font-size: var(--bh-text-micro); font-weight: 400; color: var(--bh-dim); background: var(--bh-panel); }
.bh-table tbody tr:last-child td { border-bottom: 0; }
.bh-table td { color: var(--bh-dim); }
.bh-table td:first-child { color: var(--bh-text); }
.bh-yes { color: var(--bh-cyan); }

.bh-faq { border-top: 1px solid var(--bh-line); }
.bh-faq details { border-bottom: 1px solid var(--bh-line); padding: var(--bh-space-5) 0; }
.bh-faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: var(--bh-space-4); font-weight: 500; font-size: 17px; }
.bh-faq summary::-webkit-details-marker { display: none; }
.bh-faq summary::after { content: "+"; color: var(--bh-ice); font-size: 20px; line-height: 1; }
.bh-faq details[open] summary::after { content: "\2212"; }
.bh-faq p { color: var(--bh-dim); margin: var(--bh-space-3) 0 0; max-width: 62ch; }

/* ---------- Forms ---------- */
.bh-auth { max-width: 440px; margin: 0 auto; }
.bh-form { display: grid; gap: var(--bh-space-4); }
.bh-field { display: grid; gap: 6px; }
.bh-label { font-size: 13px; font-weight: 500; }
.bh-input, .bh-select { width: 100%; height: 46px; padding: 0 var(--bh-space-4); border-radius: var(--bh-radius-input); background: rgba(5, 5, 7, .6); border: 1px solid var(--bh-line-bright); color: var(--bh-text); font: 400 15px var(--bh-font); }
.bh-input::placeholder { color: var(--bh-faint); }
.bh-input:focus, .bh-select:focus { outline: none; border-color: var(--bh-ice); box-shadow: 0 0 0 3px rgba(58, 87, 255, .35); }
.bh-hint { font-size: 12px; color: var(--bh-faint); }
.bh-check { display: flex; gap: var(--bh-space-3); align-items: flex-start; font-size: 13px; color: var(--bh-dim); }
.bh-check input { accent-color: var(--bh-volt); margin-top: 3px; }
.bh-or { display: flex; align-items: center; gap: var(--bh-space-3); font-family: var(--bh-mono); font-size: var(--bh-text-micro); color: var(--bh-faint); }
.bh-or::before, .bh-or::after { content: ""; flex: 1; height: 1px; background: var(--bh-line-bright); }
.bh-social { display: grid; grid-template-columns: 1fr 1fr; gap: var(--bh-space-3); }

/* ---------- Article ---------- */
.bh-article { max-width: var(--bh-measure); margin: 0 auto; font-size: 17px; line-height: 1.75; color: var(--bh-soft); }
.bh-article h2 { color: var(--bh-text); font-size: 26px; line-height: 1.2; letter-spacing: -0.03em; font-weight: 600; margin: var(--bh-space-7) 0 var(--bh-space-3); }
.bh-article p { margin: 0 0 var(--bh-space-5); }
.bh-article a { color: var(--bh-ice); text-decoration-color: var(--bh-volt); text-underline-offset: 3px; }
.bh-article strong { color: var(--bh-text); font-weight: 600; }
.bh-article code { font-family: var(--bh-mono); font-size: 0.8em; padding: 2px 6px; border-radius: 6px; background: var(--bh-raised); color: var(--bh-cyan); }
.bh-article ul { padding-left: 1.2em; margin: 0 0 var(--bh-space-5); }
.bh-article li::marker { color: var(--bh-volt); }
.bh-article blockquote { margin: var(--bh-space-6) 0; padding: var(--bh-space-2) 0 var(--bh-space-2) var(--bh-space-5); border-left: 2px solid var(--bh-volt); color: var(--bh-text); font-size: 21px; line-height: 1.45; letter-spacing: -0.015em; }
.bh-byline { display: flex; flex-wrap: wrap; align-items: center; gap: var(--bh-space-3); color: var(--bh-dim); font-size: 14px; margin-top: var(--bh-space-5); }

/* ---------- CTA ---------- */
.bh-cta { text-align: left; }
.bh-cta .bh-h2 { max-width: 16ch; }

/* ---------- Footer ---------- */
.bh-footer { border-top: 1px solid var(--bh-line); padding: var(--bh-space-8) 0 var(--bh-space-6); margin-top: var(--bh-space-8); font-size: 14px; }
.bh-footer__grid { display: grid; grid-template-columns: 2fr repeat(3, 1fr); gap: var(--bh-space-6); }
@media (max-width: 720px) { .bh-footer__grid { grid-template-columns: 1fr 1fr; } .bh-footer__grid > :first-child { grid-column: 1 / -1; } }
.bh-footer h4 { margin: 0 0 var(--bh-space-3); font-family: var(--bh-mono); font-size: var(--bh-text-micro); font-weight: 400; color: var(--bh-faint); text-transform: uppercase; letter-spacing: var(--bh-track-mono); }
.bh-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--bh-space-2); }
.bh-footer a { color: var(--bh-dim); text-decoration: none; }
.bh-footer a:hover { color: var(--bh-text); }
.bh-footer__base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--bh-space-3); margin-top: var(--bh-space-7); padding-top: var(--bh-space-5); border-top: 1px solid var(--bh-line); color: var(--bh-faint); font-size: 13px; }

/* ---------- Motion ---------- */
.bh-rise { animation: bh-rise .7s cubic-bezier(.2, .7, .2, 1) both; }
.bh-rise--2 { animation-delay: .08s; }
.bh-rise--3 { animation-delay: .16s; }
@keyframes bh-rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .bh-rise, .bh-caret { animation: none; } }
