/* Binnacle corporate site. Brand: Binnacle Logo System v1.0.
   Plus Jakarta Sans for text, JetBrains Mono for labels. Navy on paper; teal only on navy. */

@font-face {
  font-family: "Plus Jakarta Sans";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url("/fonts/plus-jakarta-sans-latin-wght-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/jetbrains-mono-latin-400-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/fonts/jetbrains-mono-latin-500-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --navy: #0B1220;
  --paper: #FAFAF7;
  --teal: #14B8A6;
  --teal-hover: #2DD4BF;
  --ink: #0E2438;
  --ink-soft: #3C4F62;
  --muted: #5B6A7A;
  --mist: #A9B7C6;
  --on-navy: #C9D4E0;
  --wash: #F3F5F2;
  --rule: #D9E0E7;
  --signal: #1E6F63;
  --signal-soft: #E2F0EC;
  --white: #FFFFFF;
  --sans: "Plus Jakarta Sans", -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Menlo, Consolas, monospace;
  --header-h: 68px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  font-weight: 400;
  line-height: 1.6;
  word-spacing: 0.05em; /* Plus Jakarta's word space is very narrow (0.17em) */
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
p { margin: 0; }
h1, h2, h3 { margin: 0; }
ul, ol, dl, dd { margin: 0; padding: 0; }
ul, ol { list-style: none; }
a { color: inherit; }
a:focus-visible, summary:focus-visible, button:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 2px;
}
.on-paper a:focus-visible { outline-color: var(--signal); }

.skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--navy); color: var(--paper);
  padding: 8px 16px; border-radius: 8px; font-size: 14px; font-weight: 600; z-index: 60;
}
.skip:focus { left: 16px; top: 16px; }

.wrap { max-width: 1140px; margin: 0 auto; padding-inline: 24px; }
@media (min-width: 640px) { .wrap { padding-inline: 28px; } }

.label {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border-radius: 8px; padding: 12px 20px;
  font-size: 15px; font-weight: 600; line-height: 1.3; text-decoration: none;
  border: 1px solid transparent; transition: background-color .15s, color .15s, border-color .15s;
  cursor: pointer; text-wrap: balance;
}
.btn svg { width: 16px; height: 16px; }
.btn--teal { background: var(--teal); color: var(--navy); }
.btn--teal:hover { background: var(--teal-hover); }
.btn--ghost-dark { border-color: rgba(255, 255, 255, .3); color: var(--paper); }
.btn--ghost-dark:hover { border-color: var(--paper); background: rgba(255, 255, 255, .05); }
.btn--navy { background: var(--navy); color: var(--paper); }
.btn--navy:hover { background: var(--ink); }
.btn--outline { border-color: var(--navy); color: var(--navy); }
.btn--outline:hover { background: var(--navy); color: var(--paper); }
.btn--sm { padding: 8px 16px; font-size: 14px; }
.btn--block { display: flex; width: 100%; }

/* Header */
.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(250, 250, 247, .95);
  -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
  border-bottom: 1px solid var(--rule);
}
.header__bar {
  display: flex; align-items: center; gap: 12px;
  height: var(--header-h);
  max-width: 1140px; margin: 0 auto; padding-inline: 12px;
}
@media (min-width: 640px) { .header__bar { gap: 24px; padding-inline: 20px; } }
.brand { flex: none; display: block; padding: 5px; }
@media (min-width: 640px) { .brand { padding: 6px; } }
.brand img { height: 24px; width: auto; }
@media (min-width: 640px) { .brand img { height: 30px; } }
.nav-links { display: none; margin-left: 16px; gap: 28px; }
@media (min-width: 1024px) { .nav-links { display: flex; } }
.nav-links a { font-size: 14px; font-weight: 500; color: var(--ink-soft); text-decoration: none; transition: color .15s; }
.nav-links a:hover { color: var(--navy); }
.header__actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.header__book { display: none; }
@media (min-width: 640px) { .header__book { display: inline-flex; } }

/* Mobile menu: <details>, so it works without JavaScript */
.menu { display: block; }
@media (min-width: 1024px) { .menu { display: none; } }
.menu summary {
  list-style: none; cursor: pointer; padding: 8px; margin-right: -4px;
  color: var(--ink-soft); display: block;
}
.menu summary::-webkit-details-marker { display: none; }
.menu summary:hover { color: var(--navy); }
.menu svg { width: 20px; height: 20px; }
.menu .icon-close { display: none; }
.menu[open] .icon-open { display: none; }
.menu[open] .icon-close { display: block; }
.menu__panel {
  position: absolute; left: 0; right: 0; top: var(--header-h);
  background: var(--paper); border-bottom: 1px solid var(--rule);
  padding: 8px 16px 20px;
}
.menu__panel a:not(.btn) {
  display: block; padding: 12px 0; border-bottom: 1px solid var(--rule);
  font-size: 15px; font-weight: 500; color: var(--ink-soft); text-decoration: none;
}
.menu__panel .btn { margin-top: 16px; }

/* Hero */
.hero { position: relative; overflow: hidden; background: var(--navy); color: var(--paper); }
.hero__grid { display: grid; align-items: center; gap: 48px; padding-block: 64px; position: relative; }
@media (min-width: 640px) { .hero__grid { padding-top: 96px; } }
@media (min-width: 1024px) { .hero__grid { grid-template-columns: 1.3fr .7fr; } }
.hero .label { margin-bottom: 24px; color: var(--mist); }
.hero h1 {
  max-width: 15ch; margin-bottom: 24px;
  font-size: 40px; font-weight: 700; line-height: 1.05; letter-spacing: -0.025em; text-wrap: balance;
}
@media (min-width: 640px) { .hero h1 { font-size: 58px; } }
.hero__lede { max-width: 600px; margin-bottom: 36px; font-size: 19px; line-height: 1.55; color: var(--on-navy); }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; }
.hero__mark { display: none; position: relative; justify-self: center; }
@media (min-width: 1024px) { .hero__mark { display: block; } }
.hero__mark img { position: relative; width: 280px; height: 280px; }
.rings {
  position: absolute; left: 50%; top: 50%; width: 1000px; height: 1000px; max-width: none;
  transform: translate(-50%, -50%); color: #fff; pointer-events: none;
}
.hero__facts { position: relative; border-top: 1px solid rgba(255, 255, 255, .1); }
.hero__facts ul { display: flex; flex-wrap: wrap; gap: 8px 36px; padding-block: 20px; color: var(--mist); }

/* Sections */
.section { border-bottom: 1px solid var(--rule); padding-block: 64px; scroll-margin-top: var(--header-h); }
@media (min-width: 640px) { .section { padding-block: 80px; } }
.section--white { background: var(--white); }
.section--navy { background: var(--navy); color: var(--paper); border-bottom: 0; }
.section__grid { display: grid; gap: 12px; }
@media (min-width: 768px) { .section__grid { grid-template-columns: 190px 1fr; gap: 40px; } }
.section__grid > * { min-width: 0; }
.section__side { padding-top: 10px; color: var(--muted); }
.section--navy .section__side { color: var(--mist); }
.section h2 {
  max-width: 760px; margin-bottom: 20px;
  font-size: 30px; font-weight: 700; line-height: 1.15; letter-spacing: -0.02em; text-wrap: balance;
}
@media (min-width: 640px) { .section h2 { font-size: 36px; } }
.section h3 { font-size: 17px; font-weight: 600; line-height: 1.3; margin-bottom: 6px; }
.prose { max-width: 680px; color: var(--ink-soft); }
.prose > * + * { margin-top: 16px; }
.prose .strong { font-weight: 600; color: var(--ink); }
.small { font-size: 14px; color: var(--muted); }
.link { color: var(--signal); font-weight: 500; text-decoration: underline; text-underline-offset: 2px; }

/* Flow: a real sequence */
.flow {
  display: grid; grid-template-columns: 1fr; gap: 1px; margin-top: 40px;
  background: var(--rule); border-block: 1px solid var(--rule); border-top: 2px solid var(--navy);
}
@media (min-width: 640px) { .flow { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .flow { grid-template-columns: repeat(3, 1fr); } }
.flow li { background: var(--white); padding: 20px; }
.flow li:last-child { background: var(--signal-soft); }
.flow .n { font-family: var(--mono); font-size: 13px; font-weight: 500; color: var(--signal); }
.flow .t { display: block; margin: 2px 0 4px; font-size: 16px; font-weight: 600; line-height: 1.35; }
.flow .d { display: block; font-size: 14px; line-height: 1.5; color: var(--ink-soft); }
.flow-cap { margin-top: 12px; }

/* Bordered cell grids */
.cells {
  display: grid; grid-template-columns: 1fr; gap: 1px; margin-top: 36px;
  background: var(--rule); border: 1px solid var(--rule);
}
@media (min-width: 640px) { .cells { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .cells--3 { grid-template-columns: repeat(3, 1fr); } }
.cells > div { background: var(--white); padding: 24px; }
.cells p { font-size: 15px; line-height: 1.55; color: var(--ink-soft); }

/* Controls and "what we are not" */
.product-split { display: grid; gap: 40px; margin-top: 56px; }
@media (min-width: 1024px) { .product-split { grid-template-columns: 1.2fr 1fr; gap: 56px; } }
.product-split h3 { font-size: 22px; font-weight: 700; letter-spacing: -0.015em; margin-bottom: 16px; }
.controls { display: flex; flex-direction: column; gap: 16px; }
.controls li { border-left: 2px solid var(--signal); padding-left: 16px; font-size: 15px; line-height: 1.55; color: var(--ink-soft); }
.controls b, .nots b { font-weight: 600; color: var(--ink); }
.nots-box { align-self: start; background: var(--wash); padding: 24px; }
.nots-box .label { margin-bottom: 16px; color: var(--muted); }
.nots { display: flex; flex-direction: column; gap: 14px; font-size: 15px; line-height: 1.5; color: var(--ink-soft); }
.nots-box .small { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--rule); font-size: 13px; line-height: 1.55; }

/* Audiences */
.segs { display: grid; gap: 32px; margin-top: 32px; }
@media (min-width: 768px) { .segs { grid-template-columns: repeat(3, 1fr); gap: 24px; } }
.segs > div { border-top: 2px solid var(--navy); padding-top: 14px; }
.segs p { font-size: 15px; line-height: 1.55; color: var(--ink-soft); }

/* Log in */
.login { display: grid; gap: 40px; }
@media (min-width: 1024px) { .login { grid-template-columns: 1fr 420px; gap: 56px; } }
.login__lede { max-width: 520px; color: var(--on-navy); }
.login-card { background: var(--paper); color: var(--ink); padding: 24px; }
@media (min-width: 640px) { .login-card { padding: 28px; } }
.login-card .label { margin-bottom: 12px; color: var(--muted); }
.login-card .small { margin-top: 12px; }
.login-card dl { margin-top: 24px; border-top: 1px solid var(--rule); }
.login-card dl > div { padding-block: 16px; border-bottom: 1px solid var(--rule); }
.login-card dl > div:last-child { border-bottom: 0; padding-bottom: 0; }
.login-card dt { font-size: 15px; font-weight: 600; }
.login-card dd { margin-top: 2px; font-size: 14px; line-height: 1.5; color: var(--ink-soft); }

/* Company */
.facts { margin-top: 40px; border-top: 1px solid var(--rule); }
.facts > div { display: grid; gap: 4px; padding-block: 16px; border-bottom: 1px solid var(--rule); }
@media (min-width: 640px) { .facts > div { grid-template-columns: 200px 1fr; gap: 24px; } }
.facts dt { font-weight: 600; }
.facts dd { color: var(--ink-soft); }

/* Footer */
.footer { background: var(--navy); color: var(--paper); }
.footer__top { display: grid; gap: 40px; padding-top: 56px; padding-bottom: 40px; }
@media (min-width: 768px) { .footer__top { grid-template-columns: 1fr auto auto; gap: 80px; } }
.footer__brand img { height: 34px; width: auto; margin: 7px 0 0 0; }
.footer__tag { margin-top: 24px; font-size: 15px; color: var(--mist); }
.footer h2 { margin-bottom: 16px; font-family: var(--mono); font-size: 12px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--mist); }
.footer ul { display: flex; flex-direction: column; gap: 10px; }
.footer a { font-size: 14px; color: var(--mist); text-decoration: none; transition: color .15s; }
.footer a:hover { color: var(--paper); }
.footer__legal {
  display: flex; flex-direction: column; gap: 8px;
  border-top: 1px solid rgba(255, 255, 255, .1); padding-block: 24px 40px;
  font-size: 13px; color: var(--mist);
}
@media (min-width: 640px) { .footer__legal { flex-direction: row; justify-content: space-between; } }

/* 404 */
.notfound { min-height: 70vh; display: grid; align-content: center; gap: 20px; padding-block: 96px; }
.notfound h1 { font-size: 40px; font-weight: 700; line-height: 1.1; letter-spacing: -0.025em; }
.notfound .btn { justify-self: start; }
