/* getonebx.com – the OneBx brochure site (ADR-431). Plain CSS, no build step. */

:root {
  color-scheme: light dark;
  --bg: #ffffff;
  --bg-soft: #f3f6fb;
  --text: #0b1b33;
  --muted: #4a5b73;
  --line: #dbe3ee;
  --brand: #075bea;
  --brand-2: #00b8d9;
  --card: #ffffff;
  --navy: #071d3d;
  --radius: 14px;
  --max: 72rem;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #06152b;
    --bg-soft: #0b2040;
    --text: #e8eef7;
    --muted: #a7b6cc;
    --line: #1c3357;
    --brand: #4c9bff;
    --brand-2: #22d3ee;
    --card: #0b2040;
  }
}

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

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family:
    system-ui,
    -apple-system,
    "Segoe UI",
    Roboto,
    "Helvetica Neue",
    Arial,
    sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: var(--brand);
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--brand-2);
  outline-offset: 2px;
  border-radius: 4px;
}

.skip {
  position: absolute;
  left: -999px;
}

.skip:focus {
  left: 1rem;
  top: 1rem;
  background: var(--card);
  padding: 0.5rem 1rem;
  z-index: 10;
}

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* Header */
.site-header {
  border-bottom: 1px solid var(--line);
  background: var(--bg);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 0.9rem;
  padding-bottom: 0.9rem;
  flex-wrap: wrap;
}

.logo img {
  display: block;
  height: 36px;
  width: auto;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 0.25rem 1.1rem;
  flex-wrap: wrap;
}

.site-nav a {
  color: var(--text);
  text-decoration: none;
  font-weight: 500;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--brand);
}

.button {
  display: inline-block;
  background: var(--brand);
  color: #fff !important;
  text-decoration: none;
  font-weight: 600;
  padding: 0.55rem 1.1rem;
  border-radius: 999px;
}

.button:hover {
  filter: brightness(1.08);
}

.button.ghost {
  background: transparent;
  color: var(--brand) !important;
  border: 2px solid var(--brand);
}

/* Sections */
main {
  display: block;
}

.hero {
  background:
    radial-gradient(60rem 30rem at 85% -10%, rgba(0, 184, 217, 0.18), transparent 60%),
    radial-gradient(50rem 30rem at -10% 110%, rgba(7, 91, 234, 0.16), transparent 60%),
    var(--bg-soft);
  padding: 4.5rem 0 4rem;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3.25rem);
  line-height: 1.15;
  margin: 0 0 1rem;
  letter-spacing: -0.02em;
}

.hero p.lead {
  font-size: 1.2rem;
  color: var(--muted);
  max-width: 40rem;
  margin: 0 0 1.75rem;
}

.actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.section {
  padding: 3.5rem 0;
}

.section.soft {
  background: var(--bg-soft);
}

h1,
h2,
h3 {
  letter-spacing: -0.01em;
}

.page-title {
  padding: 3rem 0 1rem;
}

.page-title h1 {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  margin: 0 0 0.5rem;
}

.page-title p {
  color: var(--muted);
  margin: 0;
}

.grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(auto-fill, minmax(18rem, 1fr));
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.4rem 1.4rem 1.2rem;
}

.card h3 {
  margin: 0 0 0.4rem;
  font-size: 1.15rem;
}

.card p {
  margin: 0;
  color: var(--muted);
}

.product {
  border-top: 1px solid var(--line);
  padding: 2rem 0;
  scroll-margin-top: 1rem;
}

.product:first-of-type {
  border-top: 0;
}

.product h2 {
  margin: 0 0 0.5rem;
}

.prose {
  max-width: 46rem;
}

.prose h2 {
  margin-top: 2.2rem;
  font-size: 1.35rem;
}

.prose li {
  margin: 0.25rem 0;
}

.notice {
  border: 2px dashed #d97706;
  background: rgba(217, 119, 6, 0.08);
  border-radius: var(--radius);
  padding: 1rem 1.2rem;
  margin: 1rem 0 1.5rem;
}

dl.facts {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 0.4rem 1.5rem;
}

dl.facts dt {
  font-weight: 600;
}

dl.facts dd {
  margin: 0;
}

@media (max-width: 30rem) {
  dl.facts {
    grid-template-columns: 1fr;
  }

  dl.facts dd {
    margin-bottom: 0.6rem;
  }
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 2rem 0 2.5rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
}

.site-footer nav {
  display: flex;
  gap: 1.1rem;
  flex-wrap: wrap;
}

.site-footer a {
  color: var(--muted);
}

.site-footer p {
  margin: 0.2rem 0;
}

.link-card {
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s;
}

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

.pill {
  display: inline-block;
  margin: 0 0 1rem;
  padding: 0.25rem 0.8rem;
  border-radius: 999px;
  border: 1px solid var(--brand-2);
  color: var(--brand);
  background: var(--card);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.hero.small {
  padding: 3rem 0 2.75rem;
}

.crumbs {
  margin: 0 0 0.75rem;
  font-size: 0.95rem;
  color: var(--muted);
}

.crumbs a {
  color: var(--muted);
}

.subtitle {
  font-size: 1.3rem;
  font-weight: 600;
  margin: -0.4rem 0 0.9rem;
}

.link-list {
  padding-left: 1.2rem;
}

.link-list li {
  margin: 0.4rem 0;
}

.product h2 a {
  color: inherit;
  text-decoration: none;
}

.product h2 a:hover {
  color: var(--brand);
}
