/* 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 {
  display: inline-flex;
  flex-direction: column;
  gap: 0.3rem;
  text-decoration: none;
}

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

.logo .tagline {
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1.2;
}

.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);
  background: var(--bg-soft);
  padding: 2.5rem 0 2rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.footer-cols {
  display: grid;
  gap: 1.75rem 2rem;
  grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr));
}

.footer-cols h2 {
  margin: 0 0 0.6rem;
  font-size: 0.95rem;
  color: var(--text);
  letter-spacing: 0;
}

.footer-cols nav a {
  display: block;
  padding: 0.2rem 0;
}

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

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

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

.footer-cols p {
  margin: 0 0 0.6rem;
}

.footer-legal {
  margin-top: 2rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
  font-size: 0.9rem;
}

/* On phones the header keeps the main links; Help and About are in the footer. */
@media (max-width: 40rem) {
  .site-nav .wide-only {
    display: none;
  }
}

.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);
}

.tag {
  display: inline-block;
  vertical-align: middle;
  margin-left: 0.4rem;
  padding: 0.1rem 0.6rem;
  border-radius: 999px;
  border: 1px solid var(--brand-2);
  color: var(--brand);
  font-size: 0.8rem;
  font-weight: 600;
}

.coming {
  margin: 1.25rem 0 0;
  color: var(--muted);
  font-style: italic;
}

/* Screenshots (ADR-431) */
.shots {
  display: grid;
  gap: 1.5rem;
}

.shots.with-phone {
  grid-template-columns: minmax(0, 260px) 1fr;
  align-items: start;
}

.shots.with-phone .wide ~ .wide {
  grid-column: 1 / -1;
}

.shots:not(.with-phone) {
  grid-template-columns: 1fr 1fr;
}

.shots:not(.with-phone) .shot:first-child {
  grid-column: 1 / -1;
}

.shot {
  margin: 0;
}

.shot img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(7, 29, 61, 0.12);
  background: var(--card);
}

.shot.phone img {
  border-radius: 22px;
}

.shot figcaption {
  margin-top: 0.6rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.shot-note {
  margin: 1rem 0 0;
  color: var(--muted);
  font-size: 0.85rem;
}

@media (max-width: 48rem) {
  .shots.with-phone,
  .shots:not(.with-phone) {
    grid-template-columns: 1fr;
  }

  .shot.phone {
    max-width: 260px;
  }
}

/* Blog (ADR-431) */
.post-list {
  display: grid;
  gap: 1.25rem;
  max-width: 46rem;
}

.post-list h2 {
  margin: 0 0 0.5rem;
  font-size: 1.3rem;
  line-height: 1.3;
}

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

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

.post-meta {
  color: var(--muted);
  font-size: 0.92rem;
  margin: 0 0 0.5rem;
}

.feed-link {
  margin-top: 1.5rem;
}

.post .page-title h1 {
  max-width: 46rem;
  line-height: 1.2;
}

.post .prose ol li,
.post .prose ul li {
  margin: 0.45rem 0;
}

.post-cta {
  margin: 2.5rem 0 1.5rem;
}

.post-cta h2 {
  margin: 0 0 0.4rem;
  font-size: 1.15rem;
}

/* Help & training (ADR-544) */
.videos {
  display: grid;
  gap: 2rem 1.5rem;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 28rem), 1fr));
  margin: 1.5rem 0 2.5rem;
}

.video {
  margin: 0;
}

.video video {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  background: var(--navy);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.video figcaption {
  margin-top: 0.6rem;
}

.video figcaption strong {
  display: block;
  font-size: 1.05rem;
}

.video figcaption span {
  color: var(--muted);
}

.help-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 1rem 0 0;
}

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

.manual table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0 1.5rem;
  font-size: 0.95rem;
}

.manual th,
.manual td {
  text-align: left;
  vertical-align: top;
  padding: 0.5rem 0.6rem;
  border-bottom: 1px solid var(--line);
}

.manual th {
  font-weight: 600;
}

.table-scroll {
  overflow-x: auto;
}

.manual blockquote {
  margin: 1rem 0;
  padding: 0.75rem 1rem;
  border-left: 3px solid var(--brand);
  background: var(--card);
}

.flow {
  padding-left: 1.4rem;
}

@media print {
  .site-header,
  .site-footer,
  .skip,
  .crumbs,
  .help-links {
    display: none;
  }

  .manual h2 {
    break-after: avoid;
  }

  .manual table,
  .manual blockquote {
    break-inside: avoid;
  }
}

/* Products page */
.ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 12px;
  color: #fff;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
}

.ico.small {
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 10px;
}

.ico.small svg {
  width: 18px;
  height: 18px;
}

.prod-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 22rem), 1fr));
}

.prod-card {
  display: flex;
  flex-direction: column;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem;
  scroll-margin-top: 1rem;
  transition:
    border-color 0.15s,
    box-shadow 0.15s;
}

.prod-card:hover {
  border-color: var(--brand);
  box-shadow: 0 10px 30px rgba(7, 29, 61, 0.1);
}

.prod-head {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 0.6rem;
}

.prod-head h3 {
  margin: 0;
  font-size: 1.2rem;
}

.prod-head h3 a {
  color: inherit;
  text-decoration: none;
}

.prod-line {
  margin: 0 0 0.8rem;
  font-weight: 600;
}

.ticks {
  list-style: none;
  padding: 0;
  margin: 0 0 1rem;
}

.ticks li {
  position: relative;
  padding-left: 1.6rem;
  margin: 0.35rem 0;
  color: var(--muted);
}

.ticks li::before {
  content: "\2713";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--brand);
  font-weight: 700;
}

.who {
  margin: auto 0 0.6rem;
  font-size: 0.92rem;
  color: var(--muted);
}

.more {
  margin: 0;
  font-weight: 600;
}

.addon .prod-head h3 {
  font-size: 1.1rem;
}

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

.peek {
  display: block;
  color: var(--muted);
  text-decoration: none;
  font-size: 0.92rem;
}

.peek img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: top left;
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(7, 29, 61, 0.12);
  margin-bottom: 0.6rem;
  transition: transform 0.15s;
}

.peek:hover img {
  transform: translateY(-3px);
}

.peek:hover span {
  color: var(--brand);
}

.fit h3 {
  margin: 0 0 0.6rem;
  font-size: 1.1rem;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0 0 0.7rem !important;
}

.chip {
  display: inline-block;
  padding: 0.15rem 0.7rem;
  border-radius: 999px;
  border: 1px solid var(--brand-2);
  color: var(--brand);
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
}

.chip:hover {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
}

.shared {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 1rem 1.5rem;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 16rem), 1fr));
}

.shared li {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
}

.shared li strong {
  display: block;
}

.shared li > span:last-child {
  color: var(--muted);
}

.shared li strong {
  color: var(--text);
}

.cta {
  background:
    radial-gradient(40rem 20rem at 90% 0%, rgba(0, 184, 217, 0.18), transparent 60%), var(--bg-soft);
}

.cta h2 {
  margin-top: 0;
}

/* About page */
.about-story .prose h2 {
  margin-top: 0;
}

.signoff {
  margin-top: 1.5rem;
}

.value .prod-head h3 {
  font-size: 1.1rem;
}

.post-meta a {
  color: inherit;
}

.values {
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 24rem), 1fr));
}

/* "Used every day by…" line under the top banner's buttons */
.proof {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  margin: 1.5rem 0 0;
  max-width: 40rem;
  color: var(--muted);
  font-size: 0.98rem;
}

.proof svg {
  flex: none;
  margin-top: 0.2rem;
  color: var(--brand);
}
