/* BILL OS product page. Tokens from the BILL OS Brand Book v1.0:
   Ignite #FF5A00 marks the logo ring and the one primary action; Ink carries
   text and structure; Manrope does the talking, JetBrains Mono the machine strings.
   Text on Ignite is always Ink. Hard 45° splits, never soft gradients. */

@font-face {
  font-family: "JetBrains Mono";
  src: url("/assets/fonts/jetbrains-mono-latin.woff2") format("woff2");
  font-weight: 400 800;
  font-display: swap;
}

.bos {
  --b-bg: #f6f7f9;
  --b-surface: #ffffff;
  --b-surface-2: #eef0f3;
  --b-border: #e1e4e9;
  --b-border-strong: #cdd2d9;
  --b-ink: #0e1116;
  --b-ink-2: #262b33;
  --b-muted: #5b6472;
  --b-ignite: #ff5a00;
  --b-ignite-hover: #e54f00;
  --b-ignite-700: #c24100;
  --b-ignite-subtle: #fff3eb;
  --b-ok: #087f52;
  --b-ok-bg: #e6f6ef;
  --b-shadow-2: 0 6px 16px -4px rgba(14, 17, 22, 0.12), 0 2px 4px rgba(14, 17, 22, 0.05);
  --b-shadow-3: 0 18px 44px -10px rgba(14, 17, 22, 0.22), 0 4px 10px rgba(14, 17, 22, 0.06);
  --b-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  /* Map onto the shared semantic tokens so shared components follow BILL OS. */
  --bg: var(--b-bg);
  --fg: var(--b-ink);
  --muted: var(--b-muted);
  --soft: #6b7482;
  --rule: var(--b-border);
  --rule-strong: var(--b-border-strong);
  --raised: var(--b-surface);
  --sunken: var(--b-surface-2);
  --accent-text: var(--b-ignite-700);
  --focus: var(--b-ink);
  --ok-bg: var(--b-ok-bg);
  --ok-fg: var(--b-ok);
  background: var(--b-bg);
  color: var(--b-ink);
  font-family: var(--font-bill);
}
.bos h1, .bos h2, .bos h3 { font-family: var(--font-bill); }
.bos .mono { font-family: var(--b-mono); }

/* Product sub-navigation */
.bos-sub { background: var(--b-surface); border-bottom: 1px solid var(--b-border); }
.bos-sub__bar { display: flex; align-items: center; gap: 1.5rem; min-height: 60px; }
.bos-sub__logo { display: inline-flex; padding: 8px 0; }
.bos-sub__logo svg { width: 118px; height: auto; }
.bos-sub__links { display: none; gap: 0.25rem; list-style: none; padding: 0; margin: 0 0 0 auto; }
.bos-sub__links a { display: inline-flex; align-items: center; height: 40px; padding: 0 0.75rem; border-radius: 6px; color: var(--b-muted); font-weight: 600; font-size: 0.875rem; text-decoration: none; }
.bos-sub__links a:hover { background: var(--b-surface-2); color: var(--b-ink); }
.bos-sub .btn { margin-left: auto; }
@media (max-width: 899px) { .bos-sub .btn { display: none; } }
@media (min-width: 900px) {
  .bos-sub { position: sticky; top: var(--header-h); z-index: 40; }
  .bos-sub__links { display: flex; }
  .bos-sub .btn { margin-left: 0.5rem; }
}

.bos .btn--ignite { min-height: 48px; }
.bos .btn--outline { background: var(--b-surface); color: var(--b-ink); border-color: var(--b-border-strong); font-family: var(--font-bill); font-weight: 700; }
.bos .btn--outline:hover { background: var(--b-surface-2); }

/* Hero */
.bos-hero { padding-block: clamp(32px, 5vw, 64px) clamp(56px, 7vw, 104px); }
.bos-hero .crumbs { margin-bottom: clamp(32px, 5vw, 64px); }
.bos-hero__grid { grid-template-columns: minmax(0, 1fr); display: grid; gap: clamp(40px, 6vw, 80px); align-items: center; }
@media (min-width: 1024px) { .bos-hero__grid { grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); } }
.bos-h1 { font-weight: 800; font-size: clamp(3rem, 1.6rem + 5.6vw, 6rem); letter-spacing: -0.05em; line-height: 0.95; }
.bos-h1__kicker { display: block; margin-bottom: 1.5rem; font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.09em; text-transform: uppercase; line-height: 1.4; color: var(--b-muted); }
.bos-hero .lede { margin-top: 1.5rem; color: var(--b-muted); font-size: 1.1875rem; line-height: 1.6; max-width: 31em; }
.bos-hero__actions { display: flex; flex-wrap: wrap; gap: 0.75rem 1rem; margin-top: 2.25rem; }
.bos-hero__note { margin-top: 1rem; color: var(--b-muted); font-size: 0.875rem; }

.bos-io {
  position: relative; aspect-ratio: 5 / 4; border-radius: 12px; overflow: hidden; color: #fff;
  background: linear-gradient(135deg, var(--b-ink) 0 64%, var(--b-ignite) 64% 100%);
}
.bos-io__mark { position: absolute; left: 38%; top: 47%; width: 27%; transform: translate(-50%, -50%); }
.bos-io__mark svg { width: 100%; height: auto; }
.bos-io__label { position: absolute; display: grid; gap: 0.35rem; font-size: clamp(0.8125rem, 0.7rem + 0.4vw, 0.9375rem); font-weight: 600; }
.bos-io__label b { font-family: var(--b-mono); font-weight: 500; font-size: 0.75rem; letter-spacing: 0.08em; opacity: 0.7; }
.bos-io__label--in { left: clamp(18px, 4%, 32px); top: clamp(18px, 5%, 32px); }
.bos-io__label--out { right: clamp(18px, 4%, 32px); bottom: clamp(18px, 5%, 32px); color: var(--b-ink); text-align: right; }
.motion .bos-io__mark circle { stroke-dasharray: 264; stroke-dashoffset: 264; animation: bos-ring 1400ms 300ms var(--ease-out) forwards; transform: rotate(-90deg); transform-origin: 81px 87px; }
.motion .bos-io__mark polygon { animation: bos-stem 700ms var(--ease-out) both; transform-origin: 9px 138px; }
@keyframes bos-ring { to { stroke-dashoffset: 0; } }
@keyframes bos-stem { from { transform: scaleY(0); } to { transform: none; } }

.bos-strip { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; margin-top: clamp(40px, 6vw, 72px); background: var(--b-border); border: 1px solid var(--b-border); border-radius: 12px; overflow: hidden; }
.bos-strip > div { background: var(--b-surface); padding: 1.1rem 1.25rem; }
.bos-strip dt { color: var(--b-muted); font-size: 0.6875rem; font-weight: 700; letter-spacing: 0.09em; text-transform: uppercase; }
.bos-strip dd { margin: 0.35rem 0 0; font-weight: 700; font-size: 0.9375rem; line-height: 1.4; }
@media (min-width: 900px) { .bos-strip { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* Sections */
.bos-sec { padding-block: clamp(72px, 9vw, 136px); scroll-margin-top: calc(var(--header-h) + 72px); }
.bos-sec--white { background: var(--b-surface); }
.bos-sec__head { display: grid; gap: 1rem; margin-bottom: clamp(36px, 5vw, 64px); max-width: 46rem; }
.bos-n { font-family: var(--b-mono); font-size: 0.75rem; color: var(--b-ignite-700); }
.bos-h2 { font-weight: 800; font-size: clamp(2rem, 1.3rem + 2.6vw, 3.25rem); letter-spacing: -0.04em; line-height: 1.02; }
.bos-sec__head p { color: var(--b-muted); font-size: 1.125rem; }

/* Sale flow */
.bos-flow { grid-template-columns: minmax(0, 1fr); display: grid; gap: clamp(32px, 5vw, 64px); align-items: start; }
@media (min-width: 1024px) { .bos-flow { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); } }
.bos-steps { list-style: none; padding: 0; border-top: 1px solid var(--b-ink); counter-reset: step; }
.bos-steps li { display: grid; grid-template-columns: 2.25rem minmax(0, 1fr); gap: 0.25rem 1rem; padding: 1.25rem 0; border-bottom: 1px solid var(--b-border); counter-increment: step; }
.bos-steps li::before { content: counter(step, decimal-leading-zero); font-family: var(--b-mono); font-size: 0.75rem; color: var(--b-muted); padding-top: 0.35rem; }
.bos-steps h3 { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem; font-size: 1.125rem; font-weight: 700; letter-spacing: -0.015em; }
.bos-steps p { grid-column: 2; color: var(--b-muted); font-size: 0.9375rem; }
.bos .kbd { height: 26px; font-size: 0.75rem; }

.bos-figs { display: grid; gap: 1rem; }
.bos-window--float { width: min(384px, 72%); margin: -3.5rem 0 0 auto; position: relative; z-index: 1; box-shadow: var(--b-shadow-3); }
.bos-window { border: 1px solid var(--b-border-strong); border-radius: 12px; overflow: hidden; background: #fff; box-shadow: var(--b-shadow-2); }
.bos-window__bar { display: flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; background: var(--b-surface-2); border-bottom: 1px solid var(--b-border); }
.bos-window__bar i { width: 9px; height: 9px; border-radius: 50%; background: var(--b-border-strong); }
.bos-window__bar span { margin-left: 0.5rem; font-family: var(--b-mono); font-size: 0.6875rem; color: #5b6472; }
.bos-window img { width: 100%; }
.bos-pan { overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: thin; }
@media (max-width: 767px) { .bos-pan img { width: 760px; max-width: none; } }


.bos-cap { color: var(--b-muted); font-size: 0.8125rem; display: flex; align-items: center; gap: 0.5rem; }
.bos-cap::before { content: ""; width: 8px; height: 8px; border-radius: 50%; border: 2px solid var(--b-ignite); flex: none; }

/* Capability groups */
.bos-groups { display: grid; gap: 1px; background: var(--b-border); border: 1px solid var(--b-border); border-radius: 12px; overflow: hidden; }
@media (min-width: 768px) { .bos-groups { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1200px) { .bos-groups { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.bos-group { background: var(--b-surface); padding: clamp(1.5rem, 3vw, 2rem); display: flex; flex-direction: column; gap: 1rem; transition: background-color var(--t-base); }
.bos-group:hover { background: #fcfcfd; }
.bos-group__icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 8px; background: var(--b-surface-2); color: var(--b-ink); }
.bos-group__icon .icon { width: 22px; height: 22px; stroke-linecap: square; stroke-linejoin: miter; stroke-width: 1.75; }
.bos-group h3 { font-size: 1.25rem; font-weight: 800; letter-spacing: -0.02em; }
.bos-group ul { list-style: none; padding: 0; display: grid; gap: 0.6rem; color: var(--b-muted); font-size: 0.9375rem; }
.bos-group li { position: relative; padding-left: 1.1rem; }
.bos-group li::before { content: ""; position: absolute; left: 0; top: 0.6em; width: 7px; height: 7px; border-radius: 50%; border: 1.5px solid var(--b-ink); }

.bos-band { grid-template-columns: minmax(0, 1fr); margin-top: clamp(48px, 6vw, 80px); display: grid; gap: 1.5rem; align-items: center; }
.bos-band__text { max-width: 40rem; }
@media (min-width: 1024px) { .bos-band--split { grid-template-columns: minmax(0, 1fr) minmax(0, 580px); gap: 4rem; } }
.bos-band__text h3 { font-size: 1.5rem; font-weight: 800; letter-spacing: -0.025em; }
.bos-band__text p { color: var(--b-muted); margin-top: 0.6rem; }

/* Guardian band */
.bos-dark { background: var(--b-ink); color: #eef1f5; --muted: #8c95a4; --focus: var(--b-ignite); --b-muted: #a3acba; --rule-strong: #353b47; }
.bos-dark .bos-n { color: #ff8a4c; }
.bos-guard { grid-template-columns: minmax(0, 1fr); display: grid; gap: clamp(24px, 4vw, 64px); align-items: end; }
.bos-guard .lede { margin-top: 1.25rem; color: var(--b-muted); }
.bos-guard__fig { margin: clamp(40px, 5vw, 64px) 0 0; }
@media (min-width: 1024px) { .bos-guard { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.bos-guard__list { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; background: #272c36; border: 1px solid #272c36; border-radius: 12px; overflow: hidden; }
.bos-guard__list li { background: #13161c; padding: 1rem 1.1rem; font-weight: 600; font-size: 0.9375rem; display: flex; gap: 0.6rem; align-items: flex-start; }
.bos-guard__list li::before { content: ""; flex: none; width: 9px; height: 9px; margin-top: 0.45em; border-radius: 50%; border: 2px solid #ff6a1a; }
.bos-dark .bos-window { border-color: #353b47; box-shadow: 0 20px 48px -10px rgba(0, 0, 0, 0.7); }
.bos-dark .bos-cap { color: #a3acba; }

/* Trust */
.bos-trust { display: grid; gap: 2rem; }
@media (min-width: 768px) { .bos-trust { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1200px) { .bos-trust { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.bos-trust__item { padding-top: 1.25rem; border-top: 2px solid var(--b-ink); }
.bos-trust__big { font-weight: 800; font-size: clamp(2rem, 1.5rem + 1.5vw, 2.75rem); letter-spacing: -0.04em; line-height: 1; font-variant-numeric: tabular-nums; }
.bos-trust__item h3 { font-size: 1.0625rem; font-weight: 800; margin-top: 0.75rem; }
.bos-trust__item p { color: var(--b-muted); font-size: 0.9375rem; margin-top: 0.4rem; }

/* Fit */
.bos-fit { display: grid; gap: 1rem; }
@media (min-width: 768px) { .bos-fit { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.bos-fit__item { background: var(--b-surface); border: 1px solid var(--b-border); border-radius: 8px; padding: 1.5rem; }
.bos-fit__item h3 { font-size: 1.125rem; font-weight: 800; letter-spacing: -0.015em; }
.bos-fit__item p { color: var(--b-muted); margin-top: 0.5rem; font-size: 0.9375rem; }

.bos .specs { border-top-color: var(--b-ink); }
.bos .specs dd { font-weight: 600; }
.bos .faq { border-top-color: var(--b-ink); }
.bos .faq summary .icon { color: var(--b-ignite-700); }

/* Closing band */
.bos-cta { background: linear-gradient(135deg, var(--b-ink) 0 64%, var(--b-ignite) 64% 100%); color: #fff; }
.bos-cta__inner { display: grid; gap: 2rem; padding-block: clamp(72px, 9vw, 128px); }
.bos-cta h2 { font-weight: 800; font-size: clamp(2.25rem, 1.4rem + 3.4vw, 4rem); letter-spacing: -0.045em; line-height: 1; max-width: 14em; }
.bos-cta p { color: #a3acba; max-width: 32em; font-size: 1.125rem; }
.bos-cta__actions { display: flex; flex-wrap: wrap; gap: 0.75rem 1rem; }
.bos-cta .btn--outline { background: transparent; color: #fff; border-color: #4a515d; }
.bos-cta .btn--outline:hover { background: #1a1e26; }
.bos-cta :focus-visible { outline-color: #fff; }
@media (max-width: 767px) { .bos-cta { background: var(--b-ink); border-top: 8px solid var(--b-ignite); } }

/* Compact mobile call to action: shown only after the hero's buttons scroll away,
   hidden again when the closing call to action is on screen. */
.sticky-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 45;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 0.6rem 16px calc(0.6rem + env(safe-area-inset-bottom, 0px));
  background: rgba(255, 255, 255, 0.96); border-top: 1px solid #e1e4e9;
  box-shadow: 0 -8px 24px -12px rgba(14, 17, 22, 0.25);
  font-family: var(--font-bill); color: #0e1116;
  transform: translateY(110%); transition: transform 240ms var(--ease-out);
}
.sticky-cta.is-shown { transform: none; }
.sticky-cta .btn { flex: none; white-space: nowrap; }
.sticky-cta__text { display: flex; align-items: center; gap: 0.6rem; font-weight: 700; font-size: 0.875rem; min-width: 0; }
.sticky-cta__text svg { width: 84px; height: auto; flex: none; }
.sticky-cta__text span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 429px) { .sticky-cta__text span { display: none; } }
@media (min-width: 900px) { .sticky-cta { display: none !important; } }
@media (max-width: 899px) { body:has(.sticky-cta.is-shown) .site-footer { padding-bottom: 72px; } }

/* Links from capability groups to feature pages */
.bos-group__more { display: inline-flex; align-items: center; gap: 0.4rem; margin-top: 1.25rem; color: var(--b-ignite-700); font-weight: 700; font-size: 0.9375rem; text-decoration: none; }
.bos-group__more .icon { width: 16px; height: 16px; }
.bos-group__more:hover { text-decoration: underline; text-underline-offset: 0.2em; }
.bos-more { margin-top: clamp(32px, 4vw, 48px); }
.bos .lcard { background: var(--b-surface); }
.bos .lcard__kicker, .bos .lcard__icon { color: var(--b-ignite-700); }
