/* ============================================================================
   1Bar brand layer  —  ob-brand.css
   Sits on top of Bootstrap 5.3.3. Named tokens only; NEVER put raw hex in HTML.
   SOURCE OF TRUTH: 1Bar/assets/brand/README.md (approved Oct 2, 2026).
   The colour is called plain "periwinkle" in all copy.

   USAGE RULES
     - Periwinkle 500 is the brand fill (buttons, icon). Periwinkle 700 is text and links
       on white. Periwinkle 900 is the dark footer field. Periwinkle 100 is for small tints.
     - Signal green, alarm red and amber are fills, lines and icon art, NOT text on white.
       Red text on white uses --ob-red-text.
     - Backgrounds are pure white. No off-white page backgrounds (decided).
     - Light only: no dark mode on this site.
   ============================================================================ */

/* ---- 0. Fonts (self-hosted; latin subset; SIL OFL via @fontsource) ---------- */
@font-face { font-family: "Roboto"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/roboto-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Roboto"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/roboto-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Roboto"; font-style: normal; font-weight: 900; font-display: swap; src: url("../fonts/roboto-latin-900-normal.woff2") format("woff2"); }
@font-face { font-family: "Montserrat"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/montserrat-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Montserrat"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/montserrat-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Montserrat"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/montserrat-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Montserrat"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/montserrat-latin-700-normal.woff2") format("woff2"); }

/* ---- 1. Design tokens ------------------------------------------------------ */
:root {
  --ob-500:   #6667AB;   /* periwinkle: brand fill */
  --ob-700:   #4A4B86;   /* periwinkle: pressed, text and links on white */
  --ob-900:   #2E2F58;   /* periwinkle: dark field */
  --ob-300:   #A3A4CF;   /* periwinkle: disabled */
  --ob-100:   #E1E1F2;   /* periwinkle: small tints */
  --ob-green: #12B76A;   /* connected (fills, icon art) */
  --ob-green-text: #067647;
  --ob-red:   #F04438;   /* SOS (fills, icon art) */
  --ob-red-text: #B42318;
  --ob-amber: #FDB022;   /* warnings (fills) */
  --ob-ink:   #101828;   /* text */
  --ob-line:  #D0D1DB;   /* borders, dividers */
  --ob-gray:  #8A8CA0;   /* icons, placeholders (not text) */
  --ob-muted: #4A4C5E;   /* secondary text */
  --ob-white: #FFFFFF;
  --ob-on-dark:     #FFFFFF;
  --ob-on-dark-dim: #E1E1F2;
  --ob-divider:     rgba(255,255,255,0.18);

  --ob-font-head: "Roboto", system-ui, -apple-system, "Segoe UI", sans-serif;
  --ob-font:      "Montserrat", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --ob-radius:      14px;
  --ob-radius-pill: 999px;
  --ob-section-y:   clamp(3.5rem, 7vw, 6rem);
  --ob-shadow-card: 0 6px 24px rgba(46, 47, 88, 0.08);

  --bs-body-font-family: var(--ob-font);
  --bs-body-color: var(--ob-ink);
  --bs-body-bg: var(--ob-white);
  --bs-link-color: var(--ob-700);
  --bs-link-hover-color: var(--ob-900);
}

/* ---- 2. Base --------------------------------------------------------------- */
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { font-family: var(--ob-font); color: var(--ob-ink); background: var(--ob-white); line-height: 1.65; -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4 { font-family: var(--ob-font-head); color: var(--ob-ink); line-height: 1.15; letter-spacing: -0.01em; }
h1 { font-weight: 900; font-size: clamp(2.4rem, 6.2vw, 4.4rem); }
h2 { font-weight: 700; font-size: clamp(1.7rem, 3.6vw, 2.5rem); }
h3 { font-weight: 700; font-size: 1.25rem; }
a { color: var(--ob-700); text-underline-offset: 3px; }
a:hover { color: var(--ob-900); }
:focus-visible { outline: 3px solid var(--ob-500); outline-offset: 3px; border-radius: 4px; }
.ob-muted { color: var(--ob-muted); }
.ob-lead { font-size: clamp(1.1rem, 2vw, 1.3rem); color: var(--ob-muted); }

/* ---- 3. Sections ----------------------------------------------------------- */
.ob-section { padding: var(--ob-section-y) 0; }
.ob-section--tint { background: var(--ob-100); }
.ob-section--dark { background: var(--ob-900); color: var(--ob-on-dark); }
.ob-section--dark h2, .ob-section--dark h3 { color: var(--ob-on-dark); }
.ob-section--dark .ob-muted, .ob-section--dark .ob-lead { color: var(--ob-on-dark-dim); }
.ob-eyebrow { display: inline-block; font-family: var(--ob-font-head); font-weight: 700; font-size: .85rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ob-700); margin-bottom: .8rem; }
.ob-section--dark .ob-eyebrow { color: var(--ob-100); }

/* ---- 4. Nav ---------------------------------------------------------------- */
.ob-nav { background: var(--ob-white); border-bottom: 1px solid var(--ob-line); padding: .6rem 0; }
.ob-nav .navbar-brand { display: inline-flex; align-items: center; gap: .6rem; }
.ob-nav .navbar-brand img { border-radius: 8px; }
.ob-wordmark { font-family: var(--ob-font-head); font-weight: 900; font-size: 1.4rem; color: var(--ob-ink); letter-spacing: -0.02em; }
.ob-nav .nav-link { font-weight: 600; color: var(--ob-ink); padding: .6rem 1rem; }
.ob-nav .nav-link:hover { color: var(--ob-700); }

/* ---- 5. Buttons ------------------------------------------------------------ */
.btn-ob { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; font-family: var(--ob-font); font-weight: 700; font-size: 1.05rem; color: var(--ob-white); background: var(--ob-500); border: 2px solid var(--ob-500); border-radius: var(--ob-radius-pill); padding: .85rem 1.7rem; min-height: 48px; text-decoration: none; cursor: pointer; transition: background .15s ease, border-color .15s ease; }
.btn-ob:hover, .btn-ob:focus { background: var(--ob-700); border-color: var(--ob-700); color: var(--ob-white); }
.btn-ob:disabled { background: var(--ob-300); border-color: var(--ob-300); cursor: default; }
.btn-ob--sm { font-size: .95rem; padding: .5rem 1.2rem; min-height: 40px; }
.btn-ob--ghost { background: transparent; color: var(--ob-700); }
.btn-ob--ghost:hover { background: var(--ob-100); color: var(--ob-900); border-color: var(--ob-700); }

/* ---- 6. Hero --------------------------------------------------------------- */
.ob-hero { padding: clamp(2.5rem, 6vw, 5rem) 0 var(--ob-section-y); }
.ob-pill { display: inline-flex; align-items: center; gap: .55rem; font-weight: 600; font-size: .9rem; color: var(--ob-700); background: var(--ob-100); border-radius: var(--ob-radius-pill); padding: .35rem .95rem; margin-bottom: 1.4rem; }
.ob-pill::before { content: ""; width: .6rem; height: .6rem; border-radius: 50%; background: var(--ob-green); }
.ob-slash { color: var(--ob-500); }
.ob-hero-art { width: 100%; max-width: 480px; margin: 0 auto; display: block; overflow: visible; }
.ob-hero-art .ob-phone { transform-box: fill-box; transform-origin: center; }
.ob-pbody { fill: var(--ob-white); stroke: var(--ob-500); stroke-width: 3; }
.ob-pbar { fill: none; stroke: var(--ob-500); stroke-width: 1.6; }
.ob-pdot { fill: var(--ob-green); transform-box: fill-box; transform-origin: center; }
.ob-link { stroke: var(--ob-500); stroke-width: 2.5; stroke-dasharray: 2 7; stroke-linecap: round; opacity: .55; }
.ob-pkt { fill: var(--ob-500); opacity: 0; }

/* Hero animation (GSAP timeline in build/fragments/index.post.html). The scene is authored in its
   FINAL state and is fully visible by default. html.ob-anim is set pre-paint ONLY when the visitor
   has not asked for reduced motion; it hides the pieces the timeline then reveals. If scripts fail
   the watchdog removes the class, so nothing stays hidden. */
html.ob-anim [data-hero] [data-h],
html.ob-anim [data-hero] [data-a="phone"],
html.ob-anim [data-hero] [data-a="link"],
html.ob-anim [data-hero] [data-a="dot"] { opacity: 0; }
@media (prefers-reduced-motion: reduce) {
  [data-hero] [data-h], [data-hero] [data-a] { opacity: 1 !important; transform: none !important; }
  [data-hero] .ob-pkt, [data-hero] }

/* ---- 7. Waitlist form ------------------------------------------------------ */
.ob-form { max-width: 520px; }
.ob-form label { font-weight: 600; margin-bottom: .35rem; }
.ob-input { width: 100%; font-family: var(--ob-font); font-size: 1.05rem; color: var(--ob-ink); background: var(--ob-white); border: 2px solid var(--ob-line); border-radius: var(--ob-radius); padding: .8rem 1rem; min-height: 52px; }
.ob-input:focus { border-color: var(--ob-500); outline: none; box-shadow: 0 0 0 3px var(--ob-100); }
.ob-choices { display: flex; flex-wrap: wrap; gap: .6rem 1.4rem; margin: .9rem 0 1.1rem; border: 0; padding: 0; }
.ob-choices legend { font-size: .95rem; font-weight: 600; float: none; width: auto; margin-bottom: .4rem; }
.ob-choices label { font-weight: 500; display: inline-flex; align-items: center; gap: .45rem; margin: 0; cursor: pointer; }
.ob-choices input { width: 1.15rem; height: 1.15rem; accent-color: var(--ob-500); }
.ob-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.ob-form-note { font-size: .9rem; color: var(--ob-muted); margin: .9rem 0 0; }
.ob-status { min-height: 1.6rem; margin-top: .9rem; font-weight: 600; }
.ob-status--ok { color: var(--ob-green-text); }
.ob-status--err { color: var(--ob-red-text); }

/* ---- 8. Cards and steps ---------------------------------------------------- */
.ob-card { height: 100%; background: var(--ob-white); border: 1px solid var(--ob-line); border-radius: var(--ob-radius); padding: 1.6rem; box-shadow: var(--ob-shadow-card); }
.ob-card h3 { margin-bottom: .5rem; }
.ob-card p { margin-bottom: 0; color: var(--ob-muted); }
.ob-card--sos { border-color: var(--ob-red); }
.ob-step-n { display: inline-flex; align-items: center; justify-content: center; width: 2.6rem; height: 2.6rem; border-radius: 50%; background: var(--ob-500); color: var(--ob-white); font-family: var(--ob-font-head); font-weight: 900; font-size: 1.2rem; margin-bottom: 1rem; }
.ob-ico { width: 2.6rem; height: 2.6rem; border-radius: 12px; background: var(--ob-100); display: inline-flex; align-items: center; justify-content: center; margin-bottom: 1rem; color: var(--ob-700); }
.ob-ico svg { width: 1.5rem; height: 1.5rem; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ob-ico--sos { background: var(--ob-red); color: var(--ob-white); }
.ob-ico--ok { background: var(--ob-green); color: var(--ob-white); }
.ob-checks { list-style: none; padding: 0; margin: 0; }
.ob-checks li { position: relative; padding-left: 2rem; margin-bottom: .9rem; }
.ob-checks li::before { content: ""; position: absolute; left: 0; top: .35rem; width: 1.15rem; height: 1.15rem; border-radius: 50%; background: var(--ob-green); }
.ob-note { border-left: 4px solid var(--ob-500); background: var(--ob-100); border-radius: 0 var(--ob-radius) var(--ob-radius) 0; padding: 1.2rem 1.4rem; }
.ob-note ul { margin-bottom: 0; padding-left: 1.2rem; }
.ob-prose { max-width: 720px; }
.ob-prose h2 { font-size: 1.6rem; margin: 2.2rem 0 .8rem; }
.ob-draft-banner { background: var(--ob-amber); color: var(--ob-ink); text-align: center; padding: .6rem 1rem; font-weight: 600; }

/* ---- 9. Footer ------------------------------------------------------------- */
.ob-footer { background: var(--ob-900); color: var(--ob-on-dark); }
.ob-footer a { color: var(--ob-on-dark); text-decoration: none; }
.ob-footer a:hover { text-decoration: underline; }
.ob-footer .ob-wordmark { color: var(--ob-on-dark); }
.ob-footer-head { font-weight: 700; margin-bottom: .8rem; }
.ob-footer-small { font-size: .88rem; color: var(--ob-on-dark-dim); }
.ob-footer hr { border-color: var(--ob-divider); opacity: 1; }

@media (max-width: 575.98px) { .btn-ob { width: 100%; } .btn-ob--sm { width: auto; } }
