/* MarinerSync public site — brand tokens mirror plugins/anchored/constants.py. */

@font-face {
  font-family: 'Barlow Condensed';
  src: url('fonts/barlow-condensed-600.woff2') format('woff2');
  font-weight: 600; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Barlow';
  src: url('fonts/barlow-400.woff2') format('woff2');
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Barlow';
  src: url('fonts/barlow-500.woff2') format('woff2');
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'IBM Plex Mono';
  src: url('fonts/plex-mono-500.woff2') format('woff2');
  font-weight: 500; font-style: normal; font-display: swap;
}

:root {
  --ink: #06121F;
  --hull: #0A1A2F;
  --deck: #14304F;
  --seam: #1B3A5C;
  --fog: #E8EEF2;
  --dim: #9FB0C4;
  --faint: #6B7E96;
  --brass: #D59942;
  --brass-bright: #ECAD44;
  --sea: #1FB6D6;
  --shore: #86E3A3;
  --together: #2FCB5B;

  --display: 'Barlow Condensed', 'Arial Narrow', system-ui, sans-serif;
  --body: 'Barlow', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, 'SF Mono', Menlo, monospace;

  --measure: 62ch;
  --gutter: clamp(1.25rem, 4vw, 3.5rem);
}

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

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

body {
  margin: 0;
  background: var(--ink);
  color: var(--fog);
  font-family: var(--body);
  font-size: clamp(1rem, 0.96rem + 0.2vw, 1.125rem);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  line-height: 0.98;
  margin: 0;
  text-wrap: balance;
}

h1 { font-size: clamp(2.75rem, 1.6rem + 5.2vw, 6rem); }
h2 { font-size: clamp(1.9rem, 1.3rem + 2.4vw, 3.25rem); }
h3 { font-size: clamp(1.25rem, 1.1rem + 0.7vw, 1.6rem); }

p { margin: 0 0 1.1em; max-width: var(--measure); }
p:last-child { margin-bottom: 0; }

a { color: var(--brass-bright); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--fog); }

:focus-visible {
  outline: 2px solid var(--brass-bright);
  outline-offset: 3px;
  border-radius: 2px;
}

.wrap {
  width: min(76rem, 100%);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.eyebrow {
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brass);
  margin: 0 0 1rem;
}

/* ── header ─────────────────────────────────────────────────────────────── */

.masthead {
  position: sticky;
  top: 0;
  z-index: 20;
  background: color-mix(in srgb, var(--ink) 86%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--seam);
}
.masthead .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4.25rem;
}
.masthead img { height: 2.1rem; width: auto; display: block; }
.masthead a { text-decoration: none; }

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2.5vw, 2rem);
  font-family: var(--mono);
  font-size: 0.74rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.nav-links a { color: var(--dim); }
.nav-links a:hover { color: var(--fog); }

.btn {
  display: inline-block;
  font-family: var(--mono);
  font-size: 0.76rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 0.7rem 1.35rem;
  border-radius: 2px;
  transition: background-color 120ms ease, color 120ms ease, border-color 120ms ease;
}
.btn-solid { background: var(--brass); color: var(--ink); border: 1px solid var(--brass); }
.btn-solid:hover { background: var(--brass-bright); color: var(--ink); }
.btn-ghost { border: 1px solid var(--seam); color: var(--fog); }
.btn-ghost:hover { border-color: var(--brass); color: var(--brass-bright); }

/* ── hero ───────────────────────────────────────────────────────────────── */

.hero { padding: clamp(3.5rem, 8vw, 7rem) 0 clamp(2.5rem, 5vw, 4rem); }
.hero h1 { max-width: 16ch; }
.hero h1 em {
  font-style: normal;
  color: var(--together);
}
.hero .lede {
  margin-top: 1.75rem;
  font-size: clamp(1.05rem, 1rem + 0.4vw, 1.3rem);
  color: var(--dim);
  max-width: 46ch;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2.25rem; }

/* ── the hitch strip (signature) ────────────────────────────────────────── */

.strip {
  margin-top: clamp(3rem, 7vw, 5rem);
  border: 1px solid var(--seam);
  border-radius: 3px;
  background: linear-gradient(180deg, var(--hull), var(--ink));
  padding: clamp(1.1rem, 2.5vw, 1.9rem);
  overflow: hidden;
}
.strip-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
  margin-bottom: 1.4rem;
}
.strip-head .eyebrow { margin: 0; }
.legend {
  display: flex;
  flex-wrap: wrap;
  gap: 1.1rem;
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--faint);
}
.legend span { display: inline-flex; align-items: center; gap: 0.45rem; }
.legend i {
  width: 0.7rem; height: 0.7rem; border-radius: 1px; display: block;
}
.legend .k-sea { background: var(--deck); box-shadow: inset 0 0 0 1px var(--seam); }
.legend .k-shore { background: var(--shore); }
.legend .k-together { background: var(--together); }

.strip-grid {
  display: grid;
  grid-template-columns: minmax(0, max-content) minmax(0, 1fr);
  column-gap: clamp(0.75rem, 2vw, 1.5rem);
  row-gap: 0.55rem;
  align-items: center;
  position: relative;
}
.strip-name { line-height: 1.15; }
.strip-name b {
  display: block;
  font-family: var(--display);
  font-size: clamp(0.95rem, 0.9rem + 0.3vw, 1.1rem);
  font-weight: 600;
  letter-spacing: 0.04em;
}
.strip-name span {
  font-family: var(--mono);
  font-size: 0.64rem;
  letter-spacing: 0.08em;
  color: var(--faint);
  white-space: nowrap;
}
.strip-track {
  position: relative;
  height: clamp(1.6rem, 3.4vw, 2rem);
}
.seg {
  position: absolute;
  top: 0;
  bottom: 0;
  border-radius: 2px;
}
.seg.shore { background: var(--shore); }
.seg.sea { background: var(--deck); box-shadow: inset 0 0 0 1px var(--seam); }

/* The window and the today-line bleed into the row gaps so they read as one column. */
.ignite, .sweep {
  position: absolute;
  top: -0.3rem;
  bottom: -0.3rem;
  pointer-events: none;
}
.ignite {
  background: var(--together);
  border-radius: 2px;
  box-shadow: 0 0 20px 3px color-mix(in srgb, var(--together) 50%, transparent);
}
.sweep { left: 0; width: 2px; background: var(--sea); }

.sweep { animation: sweep 16s linear infinite; }
@keyframes sweep {
  0%   { left: 0%; opacity: 0; }
  4%   { opacity: 0.85; }
  96%  { opacity: 0.85; }
  100% { left: 100%; opacity: 0; }
}

.ignite { animation: ignite 16s linear infinite; }
@keyframes ignite {
  0%, 48%   { opacity: 0.3; }
  53%, 63%  { opacity: 1; }
  68%, 100% { opacity: 0.3; }
}

.strip-foot {
  margin-top: 1.1rem;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  color: var(--dim);
}
.strip-foot b { color: var(--together); font-weight: 500; }

/* ── generic sections ───────────────────────────────────────────────────── */

section { padding: clamp(3.5rem, 8vw, 6.5rem) 0; }
.band { background: var(--hull); border-block: 1px solid var(--seam); }

.lead-copy { max-width: var(--measure); color: var(--dim); margin-top: 1.5rem; }
.lead-copy strong { color: var(--fog); font-weight: 500; }

.steps {
  display: grid;
  gap: clamp(1.5rem, 3vw, 2.5rem);
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
  counter-reset: step;
}
.step { border-top: 1px solid var(--seam); padding-top: 1.25rem; }
.step::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  display: block;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  color: var(--brass);
  margin-bottom: 0.8rem;
}
.step h3 { margin-bottom: 0.6rem; }
.step p { color: var(--dim); font-size: 0.98rem; }

.features {
  display: grid;
  gap: 1px;
  grid-template-columns: repeat(auto-fit, minmax(20rem, 1fr));
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
  background: var(--seam);
  border: 1px solid var(--seam);
  border-radius: 3px;
  overflow: hidden;
}
.feature { background: var(--ink); padding: clamp(1.4rem, 3vw, 2rem); }
.feature h3 { font-size: 1.2rem; margin-bottom: 0.55rem; }
.feature p { color: var(--dim); font-size: 0.95rem; margin: 0; }

/* ── closing call ───────────────────────────────────────────────────────── */

.close { text-align: center; }
.close h2 { margin-inline: auto; max-width: 20ch; }
.close p { margin-inline: auto; color: var(--dim); margin-top: 1.25rem; }
.close .hero-actions { justify-content: center; }

/* ── footer ─────────────────────────────────────────────────────────────── */

footer {
  border-top: 1px solid var(--seam);
  padding: 2.5rem 0 3.5rem;
  font-size: 0.9rem;
  color: var(--faint);
}
footer .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  align-items: center;
  justify-content: space-between;
}
footer a { color: var(--dim); }
footer nav { display: flex; flex-wrap: wrap; gap: 1.25rem; }

/* ── document pages (privacy) ───────────────────────────────────────────── */

.doc { padding: clamp(3rem, 7vw, 5rem) 0 clamp(3.5rem, 8vw, 6rem); }
.doc-head { border-bottom: 1px solid var(--seam); padding-bottom: 2rem; margin-bottom: 2.5rem; }
.doc-head p { color: var(--dim); margin-top: 1rem; }
.doc h2 { font-size: clamp(1.4rem, 1.15rem + 1vw, 2rem); margin-top: 3rem; }
.doc h2 + p, .doc h2 + ul { margin-top: 1rem; }
.doc h3 { font-size: 1.15rem; margin-top: 1.75rem; }
.doc p, .doc li { color: var(--dim); }
.doc strong { color: var(--fog); font-weight: 500; }
.doc ul { max-width: var(--measure); padding-left: 1.1rem; margin: 0 0 1.1em; }
.doc li { margin-bottom: 0.5rem; }
.doc li::marker { color: var(--brass); }
.doc .updated {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--faint);
}
.doc table {
  width: 100%;
  max-width: 52rem;
  border-collapse: collapse;
  margin: 1.25rem 0 1.75rem;
  font-size: 0.94rem;
}
.doc th, .doc td {
  text-align: left;
  vertical-align: top;
  padding: 0.7rem 0.9rem 0.7rem 0;
  border-bottom: 1px solid var(--seam);
  color: var(--dim);
}
.doc th {
  font-family: var(--mono);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--faint);
}
.doc td:first-child { color: var(--fog); width: 34%; }

@media (max-width: 40rem) {
  .strip-name span { display: none; }
  .strip-grid { column-gap: 0.7rem; }
  /* Section links live in the page itself on a phone; keep the bar to mark + action. */
  .nav-links a:not(.btn) { display: none; }
  .masthead img { height: 1.85rem; }
}

@media (prefers-reduced-motion: reduce) {
  .sweep, .ignite { animation: none; }
  .ignite { opacity: 1; }
  * { transition-duration: 0.01ms !important; }
}
