/* ==========================================================================
   Seafair marketing site
   --------------------------------------------------------------------------
   1. Fonts & tokens      5. Client logos & stats    9. Why Seafair / vessel app
   2. Base & utilities    6. Product window + Compass 10. Demo form & FAQ
   3. Navigation          7. Platform module cards    11. Closing CTA & footer
   4. Hero & radar        8. Compliance engine        12. Motion preferences

   Two visual languages live here on purpose:
   - the marketing page itself (Inter Display + Satoshi, pills, soft shadows)
   - ".ui-*" product mocks, which copy the real office portal (nereides-ui):
     Geist, 8px radii, #5295EF header bar, MUI-style chips. Keep them in step
     with the product, not with the marketing styles.
   ========================================================================== */

/* 1. Fonts & tokens ------------------------------------------------------- */

@font-face { font-family: "Satoshi"; src: url("../fonts/satoshi-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Satoshi"; src: url("../fonts/satoshi-500.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Satoshi"; src: url("../fonts/satoshi-700.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Inter Display"; src: url("../fonts/inter-display-500.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Inter Display"; src: url("../fonts/inter-display-600.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Geist"; src: url("../fonts/geist-var.woff2") format("woff2"); font-weight: 400 700; font-style: normal; font-display: swap; }

:root {
  /* Brand (measured from the previous seafair.io) */
  --ink: #001B2E;
  --ink-2: #1B3346;
  --ink-3: #33485A;
  --muted: #4A5D6E;
  --muted-2: #5A6B7B;
  --blue: #5295EF;          /* logo, graphics. Too light for small text on white */
  --blue-text: #2563C9;     /* accessible blue for text and links */
  --blue-deep: #1A4A99;
  --blue-ring: #CFE1FB;
  --blue-line: #E1ECFB;
  --lilac: #9F80DA;
  --lilac-text: #5A3C9E;
  --lilac-bg: #F3EEFC;
  --amber: #F2A65A;
  --ground: #F7FAFF;
  --ice: #EAF2FE;
  --white: #FFFFFF;

  /* Compliance statuses: every pair passes 4.5:1 */
  --met-fg: #1F6B45;      --met-bg: #E3F5EC;
  --partial-fg: #7A4F00;  --partial-bg: #FFF1D6;
  --gap-fg: #A11F14;      --gap-bg: #FDE8E6;

  /* Product UI (nereides-ui theme) */
  --ui-primary: #5295EF;
  --ui-primary-dark: #3D76C4;   /* question bubble: primary darkened 22% */
  --ui-text: #1E293B;
  --ui-text-2: #64748B;
  --ui-divider: rgba(0, 0, 0, 0.08);
  --ui-border: #E5E7EB;
  --ui-bg: #F4F6F8;
  --ui-paper: #FFFFFF;
  --ui-body: #6F6F6F;
  --ui-dark: #505051;

  --font-display: "Inter Display", "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Satoshi", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-ui: "Geist", "Inter", "Roboto", "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, Consolas, monospace;

  --wrap: 1240px;
  --gutter: 24px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --shadow-card: 0 14px 34px -20px rgba(0, 27, 46, 0.30);
  --shadow-float: 0 40px 80px -30px rgba(0, 27, 46, 0.35);
}

/* 2. Base & utilities ----------------------------------------------------- */

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

html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

h1, h2, h3, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, svg { display: block; max-width: 100%; }
a { color: var(--blue-text); }
a:hover { color: var(--blue-deep); }
button, input { font: inherit; color: inherit; }
/* Author display rules (grid, flex) would otherwise win over the hidden attribute. */
[hidden] { display: none !important; }

:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 6px; }

.sr-only {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  padding: 10px 16px; border-radius: 999px;
  background: var(--ink); color: var(--white); text-decoration: none; font-weight: 600;
  transition: top .15s ease;
}
.skip-link:focus { top: 12px; color: var(--white); }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }

.section { padding: 96px 0; position: relative; }
.section--ice-down { background: linear-gradient(180deg, var(--ground) 0%, var(--ice) 100%); }
.section--ice-up { background: linear-gradient(180deg, var(--ice) 0%, var(--ground) 100%); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; align-self: flex-start;
  padding: 6px 14px; border-radius: 999px;
  background: var(--white); color: var(--blue-text);
  font-size: 13px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; line-height: 1.5;
  box-shadow: inset 0 0 0 1px var(--blue-line);
}
.eyebrow--lilac { background: var(--lilac-bg); color: var(--lilac-text); box-shadow: none; }
.eyebrow--ice { background: var(--ice); box-shadow: none; }

.h2 {
  font-family: var(--font-display); font-weight: 500;
  font-size: clamp(32px, 4.2vw, 54px); line-height: 1.05; letter-spacing: -0.03em;
  text-wrap: balance;
}
.lede { font-size: 18px; line-height: 1.6; color: var(--ink-3); text-wrap: pretty; }

.section-head { display: flex; flex-direction: column; gap: 16px; max-width: 740px; margin-bottom: 48px; }
.section-head--center { align-items: center; text-align: center; margin-left: auto; margin-right: auto; }
.section-head--center .eyebrow { align-self: center; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 28px; border: 0; border-radius: 999px;
  font-weight: 700; font-size: 16px; line-height: 1; text-decoration: none; cursor: pointer;
  transition: transform .15s var(--ease), box-shadow .2s ease, background-color .2s ease;
}
.btn:active { transform: scale(.98); }
.btn--ink { background: var(--ink); color: var(--white); }
.btn--ink:hover { background: #0A2C45; color: var(--white); }
.btn--ghost { background: var(--white); color: var(--ink); box-shadow: inset 0 0 0 1px var(--blue-ring); }
.btn--ghost:hover { color: var(--ink); box-shadow: inset 0 0 0 1px var(--blue), 0 8px 20px -10px rgba(82, 149, 239, .5); }
.btn--white { background: var(--white); color: var(--ink); }
.btn--white:hover { color: var(--ink); box-shadow: 0 10px 30px -10px rgba(255, 255, 255, .45); }
.btn--glow { /* the previous site's signature secondary button */
  min-height: 44px; padding: 0 22px; font-size: 15px;
  background: var(--white); color: var(--ink);
  box-shadow: 0 0 0 3px var(--blue-ring), 0 6px 18px rgba(82, 149, 239, 0.25);
}
.btn--glow:hover { color: var(--ink); box-shadow: 0 0 0 3px #B5D0F8, 0 8px 22px rgba(82, 149, 239, 0.38); }
.btn .arrow { transition: transform .2s var(--ease); }
.btn:hover .arrow { transform: translateX(3px); }

.pill {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 4px 12px; border-radius: 999px;
  font-size: 13px; font-weight: 700; line-height: 1.4; white-space: nowrap;
}
.pill--met { background: var(--met-bg); color: var(--met-fg); }
.pill--partial { background: var(--partial-bg); color: var(--partial-fg); }
.pill--gap { background: var(--gap-bg); color: var(--gap-fg); }
.pill--skipped { background: #EEF1F5; color: #55606E; }

/* Scroll reveal. Only hidden once JS is running, so no-JS still shows content. */
.js [data-reveal] { opacity: 0; transform: translateY(16px); transition: opacity .7s var(--ease), transform .7s var(--ease); transition-delay: var(--d, 0s); }
.js [data-reveal].is-in { opacity: 1; transform: none; }

/* Looping decoration only runs while its section is on screen. Scoped to .js:
   without the script nothing would ever un-pause, and entrance animations
   (the hero text) would stay invisible. */
.js [data-motion]:not(.is-onscreen) *, .js [data-motion]:not(.is-onscreen) { animation-play-state: paused !important; }

/* 3. Navigation ----------------------------------------------------------- */

.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(247, 250, 255, 0.82);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(0, 27, 46, 0.06);
}
.nav__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 72px; }
.nav__logo { display: inline-flex; align-items: center; flex: none; }
.nav__logo img { height: 34px; width: auto; }
.nav__links { display: flex; gap: 30px; font-size: 15px; font-weight: 500; }
.nav__links a { color: var(--ink); text-decoration: none; padding: 8px 0; position: relative; }
.nav__links a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 2px; border-radius: 2px;
  background: var(--blue); transform: scaleX(0); transform-origin: left; transition: transform .25s var(--ease);
}
.nav__links a:hover::after, .nav__links a[aria-current="true"]::after { transform: scaleX(1); }
.nav__actions { display: flex; align-items: center; gap: 12px; }
.nav__toggle {
  display: none; width: 44px; height: 44px; border: 0; border-radius: 12px; cursor: pointer;
  background: var(--white); box-shadow: inset 0 0 0 1px var(--blue-ring);
  align-items: center; justify-content: center;
}
.nav__toggle svg { width: 20px; height: 20px; }
.nav__toggle .close { display: none; }
.nav__toggle[aria-expanded="true"] .open { display: none; }
.nav__toggle[aria-expanded="true"] .close { display: block; }

@media (max-width: 900px) {
  .nav__toggle { display: inline-flex; }
  .nav__links {
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; gap: 0; padding: 8px var(--gutter) 20px;
    background: var(--ground); border-bottom: 1px solid rgba(0, 27, 46, 0.08);
    box-shadow: 0 24px 40px -24px rgba(0, 27, 46, .3);
    display: none;
  }
  .nav__links.is-open { display: flex; }
  .nav__links a { padding: 14px 0; font-size: 17px; border-bottom: 1px solid rgba(0, 27, 46, 0.06); }
  .nav__links a::after { display: none; }
}
@media (max-width: 420px) {
  .nav__logo img { height: 28px; }
  .btn--glow { padding: 0 16px; font-size: 14px; }
}

/* 4. Hero & radar --------------------------------------------------------- */

/* overflow-x: clip keeps the colour fields from widening the page on phones,
   without clipping them vertically where they fade into the next section. */
.hero { position: relative; padding: 64px 0 40px; overflow-x: clip; }
.hero__grid { position: relative; display: grid; grid-template-columns: minmax(0, 1.02fr) minmax(0, 1fr); gap: 40px; align-items: center; }
.hero__copy { display: flex; flex-direction: column; gap: 24px; }

/* Soft colour fields. Gradients rather than blurred discs: same look, no filter cost. */
.orb { position: absolute; border-radius: 50%; pointer-events: none; }
.orb--blue { background: radial-gradient(closest-side, rgba(82, 149, 239, .34), rgba(82, 149, 239, 0)); }
.orb--lilac { background: radial-gradient(closest-side, rgba(159, 128, 218, .30), rgba(159, 128, 218, 0)); }
.hero .orb--blue { left: -360px; top: -40px; width: 900px; height: 900px; animation: drift1 18s ease-in-out infinite; }
.hero .orb--lilac { right: -380px; top: -120px; width: 900px; height: 900px; animation: drift2 22s ease-in-out infinite; }
@keyframes drift1 { 0%, 100% { transform: translate(0, 0) scale(1); } 50% { transform: translate(80px, 40px) scale(1.12); } }
@keyframes drift2 { 0%, 100% { transform: translate(0, 0) scale(1.08); } 50% { transform: translate(-90px, -30px) scale(.95); } }

.watch {
  display: inline-flex; align-items: center; gap: 10px; align-self: flex-start;
  padding: 6px 14px; border-radius: 999px; background: var(--white); color: var(--blue-text);
  font-family: var(--font-mono); font-size: 13px; letter-spacing: 0.04em;
  box-shadow: 0 1px 0 rgba(0, 27, 46, 0.06), inset 0 0 0 1px var(--blue-ring);
}
.watch__dot { width: 8px; height: 8px; border-radius: 50%; background: #2FA36B; box-shadow: 0 0 0 4px rgba(47, 163, 107, 0.18); animation: livedot 2.4s ease-in-out infinite; }
@keyframes livedot { 0%, 100% { box-shadow: 0 0 0 4px rgba(47, 163, 107, 0.18); } 50% { box-shadow: 0 0 0 7px rgba(47, 163, 107, 0.06); } }

.hero h1 {
  font-family: var(--font-display); font-weight: 500;
  font-size: clamp(40px, 5.4vw, 72px); line-height: 1.02; letter-spacing: -0.035em; text-wrap: balance;
}
.hero h1 em { font-style: normal; color: var(--blue-text); }
.hero__sub { max-width: 560px; font-size: 19px; line-height: 1.6; color: var(--ink-3); }
.hero__cta { display: flex; gap: 12px; flex-wrap: wrap; }

.rise { animation: rise .7s var(--ease) both; animation-delay: var(--d, 0s); }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

.radar-wrap { position: relative; width: 100%; max-width: 600px; margin: 0 auto; }
.radar { position: relative; width: 100%; aspect-ratio: 1 / 1; }
.radar__disc {
  position: absolute; inset: 0; border-radius: 50%;
  background: radial-gradient(circle, #FFFFFF 0%, rgba(255, 255, 255, 0.85) 55%, rgba(234, 242, 254, 0.6) 100%);
  box-shadow: 0 40px 80px -40px rgba(0, 27, 46, 0.35), inset 0 0 0 1px rgba(37, 99, 201, 0.22);
}
.radar__ring { position: absolute; border-radius: 50%; border: 1px solid rgba(37, 99, 201, 0.16); }
.radar__ring--1 { inset: 16%; }
.radar__ring--2 { inset: 32%; border-color: rgba(37, 99, 201, 0.14); }
.radar__axis { position: absolute; background: rgba(37, 99, 201, 0.10); }
.radar__axis--v { left: 50%; top: 0; bottom: 0; width: 1px; }
.radar__axis--h { top: 50%; left: 0; right: 0; height: 1px; }
.radar__sweep {
  position: absolute; inset: 0; border-radius: 50%;
  background: conic-gradient(from 0deg, rgba(82, 149, 239, 0) 0deg, rgba(82, 149, 239, 0) 290deg, rgba(82, 149, 239, 0.38) 360deg);
  animation: sweep 6s linear infinite;
}
@keyframes sweep { to { transform: rotate(360deg); } }
.radar__hub {
  position: absolute; left: 50%; top: 50%; width: 14px; height: 14px; margin: -7px 0 0 -7px;
  border-radius: 50%; background: var(--ink); box-shadow: 0 0 0 6px rgba(82, 149, 239, 0.25);
}
.blip { position: absolute; width: 10px; height: 10px; }
.blip::before, .blip::after { content: ""; position: absolute; inset: 0; border-radius: 50%; }
.blip::before { background: var(--c-soft); animation: blip 2s ease-out infinite; animation-delay: var(--d, 0s); }
.blip::after { background: var(--c); }
.blip--blue { --c: #2563C9; --c-soft: #5295EF; }
.blip--lilac { --c: #6E4FB8; --c-soft: #9F80DA; }
.blip--amber { --c: #C9781E; --c-soft: #F2A65A; }
@keyframes blip { 0% { transform: scale(.6); opacity: .9; } 100% { transform: scale(3.2); opacity: 0; } }

/* Alert cards: one at a time on a 9s loop. */
.callout {
  position: absolute; width: 268px; padding: 14px 16px; border-radius: 16px; background: var(--white);
  box-shadow: 0 20px 40px -18px rgba(0, 27, 46, 0.35), inset 0 0 0 1px var(--edge, #E1ECFB);
  display: flex; flex-direction: column; gap: 6px;
  opacity: 0; animation: callout 9s ease-in-out infinite; animation-delay: var(--d, 0s);
}
.callout__tag { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.06em; color: var(--tag, var(--blue-text)); }
.callout__text { font-size: 15px; line-height: 1.4; color: var(--ink-2); }
.callout--crew { left: -2%; top: 8%; }
.callout--hsqe { right: -2%; top: 38%; --edge: #E9E1F8; --tag: #6E4FB8; --d: 3s; }
.callout--docs { left: 4%; bottom: 4%; --edge: #F6E3CB; --tag: #8A5200; --d: 6s; }
@keyframes callout { 0%, 4% { opacity: 0; transform: translateY(8px); } 8%, 30% { opacity: 1; transform: none; } 36%, 100% { opacity: 0; transform: translateY(-6px); } }

/* Hero visual variants. The radar is the default; "?hero=brief" (class set in
   index.html's head) shows the Daily Brief card instead. When one is chosen,
   delete the other's markup and rules. */
.hero-visual--brief { display: none; }
.hero-brief .hero-visual--radar { display: none; }
.hero-brief .hero-visual--brief { display: block; }

/* Daily Brief card: follows the product's briefing layout (calypso brief_full.html). */
.brief-wrap { position: relative; width: 100%; max-width: 540px; margin: 0 auto; }
.brief { border-radius: 20px; background: var(--ui-paper); overflow: hidden; }
.brief__body { padding: 26px 28px 22px; }
.brief__brand { display: flex; align-items: center; gap: 8px; font-size: 11px; font-weight: 700; letter-spacing: 1.1px; text-transform: uppercase; color: var(--blue-text); }
.brief__brand .cmark { width: 20px; height: 20px; color: var(--ui-primary); }
.brief__title { margin-top: 10px; font-size: 22px; font-weight: 700; line-height: 1.15; letter-spacing: -0.4px; color: var(--ui-text); }
.brief__date { margin-top: 4px; font-size: 13px; color: var(--ui-text-2); }
.brief__summary { margin-top: 14px; font-size: 15px; line-height: 1.6; color: #334155; }
.brief__summary b { font-weight: 600; color: var(--ui-text); }
.brief__h { margin: 16px 0 4px; padding-bottom: 5px; font-size: 15px; font-weight: 700; letter-spacing: 0.2px; color: var(--ui-text); border-bottom: 1px solid #E2E8F0; }
.brief__item { display: grid; grid-template-columns: 58px minmax(0, 1fr); gap: 12px; align-items: baseline; padding: 7px 0; font-size: 14.5px; line-height: 1.5; color: #334155; }
.brief__item strong, .brief__row strong { font-weight: 600; color: var(--ui-text); }
.brief__days { justify-self: start; padding: 2px 6px; border-radius: 4px; background: #FDF4EA; color: #9A5B14; font-size: 10px; font-weight: 600; letter-spacing: 0.4px; text-transform: uppercase; white-space: nowrap; }
.brief__row { padding: 5px 0; font-size: 14.5px; line-height: 1.5; color: #334155; }
.brief__cta { display: inline-flex; margin-top: 14px; padding: 11px 20px; border-radius: 8px; background: var(--ui-primary); color: #fff; font-size: 14px; font-weight: 600; line-height: 1.2; }
.brief__foot { padding: 14px 28px 16px; border-top: 1px solid #E2E8F0; background: #F8FAFC; font-size: 12px; color: var(--ui-text-2); }

/* The bell notification that announces the brief in the portal. */
.brief-toast {
  position: absolute; right: -18px; top: -26px; z-index: 2;
  display: flex; align-items: center; gap: 10px; padding: 9px 16px 9px 10px; border-radius: 999px;
  background: var(--white); font-family: var(--font-ui); font-size: 13px; line-height: 1.3; color: var(--ui-text);
  box-shadow: 0 20px 40px -18px rgba(0, 27, 46, 0.4), inset 0 0 0 1px var(--blue-line);
}
.brief-toast b { font-weight: 600; }
.brief-toast__bell { position: relative; flex: none; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--ui-primary); }
.brief-toast__bell svg { width: 16px; height: 16px; fill: none; stroke: #fff; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.brief-toast__bell::after { content: ""; position: absolute; right: -1px; top: -1px; width: 9px; height: 9px; border-radius: 50%; background: #E24B4A; box-shadow: 0 0 0 2px #fff; }

@media (max-width: 980px) {
  .hero { padding-top: 40px; }
  .hero__grid { grid-template-columns: 1fr; gap: 48px; }
  .radar-wrap { max-width: 520px; }
}
@media (max-width: 640px) {
  /* The cards would crowd a small radar, so they move below it and take turns. */
  .radar-wrap { max-width: 340px; }
  .callouts { position: relative; height: 104px; margin-top: 20px; }
  .callout { left: 0 !important; right: 0 !important; top: 0 !important; bottom: auto !important; width: 100%; }
  .brief-toast { position: static; width: fit-content; max-width: 100%; margin: 0 0 12px; }
  .brief__body { padding: 20px 18px 18px; }
  .brief__foot { padding: 12px 18px 14px; }
  .brief__item { grid-template-columns: 54px minmax(0, 1fr); gap: 10px; font-size: 14px; }
  .brief__row { font-size: 14px; }
}

/* 5. Client logos & stats ------------------------------------------------- */

.clients { padding: 32px 0 56px; }
.clients__label { margin-bottom: 26px; text-align: center; font-size: 14px; font-weight: 700; color: var(--muted-2); padding: 0 var(--gutter); }
.marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.marquee__track { display: flex; align-items: center; gap: 72px; width: max-content; padding-right: 72px; animation: marquee 36s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__track img { height: 44px; width: auto; flex: none; mix-blend-mode: multiply; filter: grayscale(1) contrast(1.05); opacity: .72; transition: filter .3s ease, opacity .3s ease; }
.marquee__track img:hover { filter: none; opacity: 1; }
.marquee__track img.is-block { height: 48px; border-radius: 8px; mix-blend-mode: normal; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

.stats { padding-bottom: 80px; }
.stats__grid {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px;
  border-radius: 24px; overflow: hidden; background: #DCE7F7;
  box-shadow: 0 20px 50px -30px rgba(0, 27, 46, 0.3);
}
.stat { padding: 28px; background: var(--white); display: flex; flex-direction: column; gap: 6px; }
.stat__n { font-family: var(--font-display); font-weight: 500; font-size: clamp(34px, 3.4vw, 44px); letter-spacing: -0.03em; line-height: 1.1; }
.stat__l { font-size: 15px; line-height: 1.45; color: var(--muted); }
@media (max-width: 900px) { .stats__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .stats__grid { grid-template-columns: 1fr; } .stat { padding: 22px 24px; } }

/* 6. Product window + Compass --------------------------------------------- */

.frame { /* frosted bezel around a product mock */
  position: relative; border-radius: 28px; padding: 10px;
  background: rgba(255, 255, 255, 0.6);
  box-shadow: var(--shadow-float), inset 0 0 0 1px rgba(255, 255, 255, 0.9);
}

.ui { font-family: var(--font-ui); color: var(--ui-text); font-size: 14px; line-height: 1.5; text-align: left; }
.ui-window { border-radius: 20px; overflow: hidden; background: var(--ui-bg); border: 1px solid var(--ui-border); }
.ui-bar { display: flex; align-items: center; justify-content: space-between; padding: 12px 20px; background: var(--ui-primary); color: #fff; }
.ui-bar__logo { font-size: 20px; font-weight: 500; letter-spacing: 0.3px; }
.ui-bar__icons { display: flex; align-items: center; gap: 18px; }
.ui-bar__icons svg { width: 20px; height: 20px; stroke: #fff; fill: none; stroke-width: 1.8; }
.ui-bell { position: relative; display: flex; }
.ui-badge { position: absolute; top: -8px; right: -10px; background: #E24B4A; color: #fff; font-size: 10px; font-weight: 500; padding: 2px 6px; border-radius: 10px; line-height: 1.3; }

.ui-body { display: grid; grid-template-columns: 196px minmax(0, 1fr) 420px; height: 664px; }
.ui-side { background: var(--ui-paper); border-right: 1px solid var(--ui-border); padding: 16px 0; overflow: hidden; }
.ui-profile { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 4px 16px 16px; border-bottom: 1px solid var(--ui-border); margin-bottom: 10px; }
.ui-avatar { width: 44px; height: 44px; border-radius: 50%; background: #99C3FC; color: var(--ink); display: grid; place-items: center; font-size: 15px; font-weight: 500; }
.ui-profile__name { font-size: 13px; font-weight: 500; color: var(--ui-dark); }
.ui-navitem { display: flex; align-items: center; gap: 12px; padding: 9px 18px 9px 15px; font-size: 13.5px; color: var(--ui-body); border-left: 3px solid transparent; }
.ui-navitem svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 1.6; flex: none; }
.ui-navitem.is-active { background: rgba(82, 149, 239, 0.10); color: var(--ui-primary); font-weight: 500; border-left-color: var(--ui-primary); }
.ui-navsub { background: var(--ui-bg); padding: 5px 0; border-top: 1px solid var(--ui-border); border-bottom: 1px solid var(--ui-border); }
.ui-navsub span { display: block; padding: 5px 18px 5px 46px; font-size: 12.5px; color: var(--ui-body); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.ui-main { padding: 22px 26px; overflow: hidden; min-width: 0; }
.ui-crumbs { font-size: 12.5px; color: var(--ui-body); margin-bottom: 10px; }
.ui-crumbs b { font-weight: 400; color: var(--ui-primary); }
.ui-title { font-size: 22px; font-weight: 500; color: var(--ui-dark); line-height: 1.3; }
.ui-subtitle { font-size: 13.5px; color: var(--ui-body); margin-bottom: 18px; }
.ui-shortcut { display: flex; gap: 10px; align-items: center; margin-bottom: 18px; }
.ui-shortcut__field {
  flex: 1; min-width: 0; height: 42px; display: flex; align-items: center; padding: 0 14px;
  border: 1px solid var(--ui-border); border-radius: 8px; background: var(--ui-paper);
  color: var(--ui-body); font-size: 13.5px; white-space: nowrap; overflow: hidden;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.ui-shortcut__field.is-focus { border-color: var(--ui-primary); box-shadow: 0 0 0 3px rgba(82, 149, 239, 0.12); color: var(--ui-dark); }
.ui-shortcut__btn { height: 42px; padding: 0 16px; display: flex; align-items: center; border-radius: 8px; background: #E9EBEF; color: #9AA1AC; font-size: 13.5px; font-weight: 500; white-space: nowrap; }
.ui-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.ui-tile {
  background: var(--ui-paper); border: 1px solid var(--ui-border); border-radius: 8px;
  padding: 20px 12px 16px; min-height: 196px;
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 7px;
}
.ui-tile svg { width: 34px; height: 34px; stroke: var(--ui-primary); fill: none; stroke-width: 1.5; }
.ui-tile__title { font-size: 14.5px; font-weight: 500; color: var(--ui-dark); line-height: 1.3; }
.ui-tile__share { font-size: 10.5px; font-weight: 500; color: var(--ui-primary); background: rgba(82, 149, 239, 0.10); padding: 2px 8px; border-radius: 4px; }
.ui-tile__desc { font-size: 12.5px; line-height: 1.45; color: var(--ui-body); }

/* --- Compass panel (mirrors packages/commons/frontend/compass) --- */
.compass { display: flex; flex-direction: column; min-width: 0; background: var(--ui-paper); border-left: 1px solid var(--ui-border); box-shadow: -4px 0 16px rgba(0, 0, 0, 0.06); position: relative; }
.compass__head { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-bottom: 1px solid var(--ui-divider); flex: none; }
.compass__head .cmark { width: 26px; height: 26px; color: var(--ui-primary); }
.compass__title { font-size: 15px; font-weight: 600; line-height: 1.25; color: var(--ui-text); }
.compass__subtitle { font-size: 11.5px; color: var(--ui-text-2); line-height: 1.3; }
.compass__tools { margin-left: auto; display: flex; gap: 12px; color: var(--ui-text-2); }
.compass__tools svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; }

.compass__body { flex: 1; min-height: 0; position: relative; overflow: hidden; }
.compass__view { position: absolute; inset: 0; padding: 16px; display: flex; flex-direction: column; opacity: 0; visibility: hidden; transition: opacity .35s ease, visibility 0s linear .35s; }
.compass__view.is-active { opacity: 1; visibility: visible; transition: opacity .35s ease; }

.cmark { display: block; flex: none; }
.cmark .needle, .cmark .ring { transform-box: fill-box; transform-origin: 50% 50%; }
.cmark.is-seeking .needle { animation: needleSeek 3.6s cubic-bezier(0.45, 0.05, 0.55, 0.95) infinite; }
.cmark.is-seeking .ring { animation: ringPulse 2.6s ease-in-out infinite; }
.cmark.is-settling .needle { animation: needleSettle 2.8s ease-in-out 1 both; }
.cmark:not(.is-seeking):not(.is-settling) .needle { transform: rotate(20deg); }
@keyframes needleSeek { 0% { transform: rotate(0deg); } 35% { transform: rotate(200deg); } 55% { transform: rotate(160deg); } 100% { transform: rotate(360deg); } }
@keyframes needleSettle { 0% { transform: rotate(-70deg); } 30% { transform: rotate(34deg); } 52% { transform: rotate(13deg); } 72% { transform: rotate(23deg); } 88% { transform: rotate(19deg); } 100% { transform: rotate(20deg); } }
@keyframes ringPulse { 0%, 100% { opacity: .3; transform: scale(1); } 50% { opacity: .6; transform: scale(1.06); } }

/* Empty state */
.compass-empty { align-items: center; text-align: center; color: var(--ui-text-2); justify-content: center; }
.compass-empty__mark {
  width: 84px; height: 84px; display: grid; place-items: center; margin-bottom: 12px; border-radius: 50%; color: var(--ui-primary);
  background: radial-gradient(circle at 50% 45%, rgba(82, 149, 239, .14), rgba(82, 149, 239, .02) 70%);
}
.compass-empty__mark .cmark { width: 68px; height: 68px; }
.compass-empty__title { font-size: 20px; font-weight: 700; letter-spacing: -0.01em; color: var(--ui-text); line-height: 1.3; }
.compass-empty__sub { font-size: 13.5px; margin-top: 2px; }
.cap-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; width: 100%; margin-top: 18px; }
.cap {
  display: flex; flex-direction: column; align-items: flex-start; text-align: left; gap: 5px;
  padding: 11px 13px; border-radius: 12px; border: 1px solid var(--ui-divider);
  background: color-mix(in srgb, var(--tint) 4%, white);
}
.cap__icon { width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; color: var(--tint); background: color-mix(in srgb, var(--tint) 12%, white); }
.cap__icon svg { width: 18px; height: 18px; fill: currentColor; }
.cap__label { font-size: 14px; font-weight: 700; color: var(--ui-text); line-height: 1.3; }
.cap__desc { font-size: 12px; line-height: 1.4; color: var(--ui-text-2); }
.compass-empty__hint { margin-top: 16px; font-size: 12px; }
.kbd { display: inline-block; padding: 1px 6px; margin: 0 2px; border-radius: 4px; border: 1px solid var(--ui-divider); background: rgba(0, 0, 0, .04); font-size: 11px; font-weight: 600; line-height: 1.6; color: var(--ui-text); }

/* Transcript */
.compass-turn { gap: 14px; justify-content: flex-start; overflow: hidden; }
.cq-row { display: flex; justify-content: flex-end; flex: none; }
.cq {
  max-width: 84%; padding: 7px 13px; border-radius: 16px 16px 5px 16px;
  background: var(--ui-primary-dark); color: #fff; font-size: 14px; font-weight: 500; line-height: 1.5;
  animation: turnIn .26s ease-out both;
}
@keyframes turnIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

.cthink { display: flex; align-items: center; gap: 10px; padding: 2px 0; flex: none; }
.cthink__well { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; color: var(--ui-primary); background: radial-gradient(circle at 50% 45%, rgba(82, 149, 239, .14), rgba(82, 149, 239, 0) 70%); }
.cthink__well .cmark { width: 38px; height: 38px; }
.cthink__word {
  font-size: 14px; font-weight: 500; letter-spacing: .005em;
  background: linear-gradient(90deg, var(--ui-text-2) 0%, var(--ui-text-2) 35%, var(--ui-primary) 50%, var(--ui-text-2) 65%, var(--ui-text-2) 100%);
  background-size: 250% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent;
  animation: wordShimmer 2.4s linear infinite;
}
@keyframes wordShimmer { from { background-position: 175% 0; } to { background-position: -75% 0; } }

.ca { display: flex; flex-direction: column; gap: 10px; min-height: 0; animation: turnIn .3s ease-out both; }
.ca__who { display: flex; align-items: center; gap: 6px; color: var(--ui-text-2); font-size: 12px; font-weight: 600; letter-spacing: .01em; }
.ca__who .cmark { width: 16px; height: 16px; color: var(--ui-primary); }
.ca__lead { font-size: 14.5px; font-weight: 500; line-height: 1.55; color: var(--ui-text); }
.ca__text { font-size: 13.5px; line-height: 1.55; color: var(--ui-text); }
.ca sup { font-size: 10.5px; font-weight: 700; color: var(--ui-primary); padding-left: 1px; line-height: 0; }
.ca__list { display: flex; flex-direction: column; gap: 4px; font-size: 13.5px; line-height: 1.5; }
.ca__list li { position: relative; padding-left: 16px; }
.ca__list li::before { content: ""; position: absolute; left: 4px; top: .62em; width: 5px; height: 5px; border-radius: 50%; background: #94A3B8; }

.ctable { width: 100%; border-collapse: collapse; font-size: 12.5px; border: 1px solid var(--ui-divider); border-radius: 10px; overflow: hidden; border-spacing: 0; display: table; }
.ctable th { text-align: left; font-weight: 600; font-size: 11px; letter-spacing: .04em; text-transform: uppercase; color: var(--ui-text-2); background: #F8FAFC; padding: 7px 10px; }
.ctable td { padding: 7px 10px; border-top: 1px solid var(--ui-divider); white-space: nowrap; }
.ctable td:first-child { font-weight: 600; white-space: normal; }
.ctable .warn { color: #B45309; font-weight: 600; }

.cfig { border: 1px solid var(--ui-divider); border-radius: 12px; padding: 12px 14px; display: flex; flex-direction: column; gap: 9px; }
.cfig__title { font-size: 13px; font-weight: 600; }
.cfig__row { display: grid; grid-template-columns: 84px minmax(0, 1fr) 26px; align-items: center; gap: 8px; font-size: 12px; color: var(--ui-text-2); }
.cfig__bar { height: 12px; border-radius: 4px; background: var(--ui-primary); width: var(--w); transform-origin: left; animation: growX .9s var(--ease) both; animation-delay: var(--d, 0s); }
.cfig__row b { font-weight: 600; color: var(--ui-text); text-align: right; }
@keyframes growX { from { transform: scaleX(0); } to { transform: scaleX(1); } }

.cev { display: flex; flex-direction: column; gap: 2px; }
.cev__toggle { display: flex; align-items: center; gap: 4px; font-size: 12px; color: var(--ui-text-2); }
.cev__toggle svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; transform: rotate(180deg); }
.cev__row { display: flex; gap: 8px; padding: 5px 8px; border-radius: 8px; }
.cev__row:nth-child(2) { background: rgba(0, 0, 0, .035); }
.cev__i { flex: none; font-size: 12px; font-weight: 700; color: var(--ui-primary); }
.cev__b { min-width: 0; flex: 1; display: flex; flex-wrap: wrap; align-items: baseline; gap: 1px 10px; }
.cev__label { font-size: 13px; font-weight: 600; color: var(--ui-text); line-height: 1.4; }
.cev__label span { font-weight: 400; color: var(--ui-text-2); }
.cev__quote { order: 3; flex-basis: 100%; font-size: 12px; line-height: 1.45; font-style: italic; color: var(--ui-text-2); }
.cev__action { margin-left: auto; font-size: 11px; font-weight: 600; color: var(--ui-primary); white-space: nowrap; }

.cfollow { display: flex; flex-wrap: wrap; gap: 6px; }
.cfollow span { padding: 5px 11px; border-radius: 999px; border: 1px solid var(--ui-divider); font-size: 12.5px; color: var(--ui-text-2); line-height: 1.4; }

/* Composer */
.compass__composer { flex: none; padding: 10px 14px 14px; }
.composer { display: flex; align-items: center; gap: 8px; min-height: 48px; padding: 6px 6px 6px 14px; border-radius: 14px; border: 1px solid var(--ui-divider); background: #fff; box-shadow: 0 2px 10px rgba(15, 23, 42, .06); transition: border-color .2s ease, box-shadow .2s ease; }
.composer.is-focus { border-color: rgba(82, 149, 239, .7); box-shadow: 0 0 0 3px rgba(82, 149, 239, .14); }
.composer__text { flex: 1; min-width: 0; font-size: 14px; line-height: 1.45; color: var(--ui-text); }
.composer__text.is-placeholder { color: #94A3B8; }
.composer__caret { display: inline-block; width: 2px; height: 17px; margin-left: 1px; vertical-align: -3px; background: var(--ui-primary); animation: blink 1s steps(1) infinite; }
@keyframes blink { 0%, 49% { opacity: 1; } 50%, 100% { opacity: 0; } }
.composer__send { flex: none; width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: #E9EEF5; color: #94A3B8; transition: background-color .2s ease, color .2s ease; }
.composer__send svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.composer.is-ready .composer__send { background: var(--ui-primary); color: #fff; }

.compass-points { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; margin-top: 44px; }
.point { display: flex; flex-direction: column; gap: 8px; }
.point h3 { font-family: var(--font-display); font-weight: 600; font-size: 19px; line-height: 1.25; letter-spacing: -0.01em; }
.point p { font-size: 15.5px; line-height: 1.55; color: var(--muted); }
.point__icon { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--white); color: var(--blue-text); box-shadow: inset 0 0 0 1px var(--blue-line); margin-bottom: 4px; }
.point__icon svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }

.sample-note { margin-top: 14px; text-align: center; font-size: 13px; color: var(--muted-2); }

@media (max-width: 1160px) { .ui-body { grid-template-columns: minmax(0, 1fr) 420px; } .ui-side { display: none; } }
@media (max-width: 900px) {
  .ui-body { grid-template-columns: 1fr; height: 640px; }
  .ui-main { display: none; }
  .compass { border-left: 0; box-shadow: none; }
  .compass-points { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 20px; }
}
@media (max-width: 520px) {
  .frame { padding: 6px; border-radius: 22px; }
  .ui-window { border-radius: 16px; }
  .ui-bar { padding: 10px 14px; }
  .ui-bar__icons { gap: 14px; }
  .compass-points { grid-template-columns: 1fr; }
  .ctable th:nth-child(1), .ctable td:nth-child(1) { display: none; }
}

/* 7. Platform module cards ------------------------------------------------ */

.modules { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.module { padding: 24px; border-radius: 24px; background: var(--white); box-shadow: var(--shadow-card); display: flex; flex-direction: column; gap: 22px; }
.module__viz { height: 224px; border-radius: 14px; background: #F2F7FE; padding: 16px 18px; overflow: hidden; position: relative; display: flex; flex-direction: column; justify-content: center; }
.module__body { display: flex; flex-direction: column; gap: 10px; }
.module h3 { font-family: var(--font-display); font-weight: 600; font-size: 22px; letter-spacing: -0.01em; line-height: 1.2; }
.module__lead { font-size: 16px; line-height: 1.5; color: var(--ink-3); }
.module__list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 18px; margin-top: 6px; }
.module__list li { position: relative; padding-left: 22px; font-size: 15px; line-height: 1.45; color: var(--muted); }
.module__list li::before {
  content: ""; position: absolute; left: 0; top: 4px; width: 14px; height: 14px;
  background: no-repeat center / contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232563C9' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7'/%3E%3C/svg%3E");
}
.viz-tag { position: absolute; left: 14px; top: 12px; z-index: 2; padding: 3px 9px; border-radius: 6px; background: rgba(255, 255, 255, .9); font-family: var(--font-ui); font-size: 11px; font-weight: 500; color: var(--ui-text-2); box-shadow: inset 0 0 0 1px var(--ui-border); }

/* Crew: the vessel manager's rank-by-month contract timeline */
.tl { font-family: var(--font-ui); display: grid; grid-template-columns: 78px minmax(0, 1fr); gap: 6px 10px; align-items: center; font-size: 11.5px; color: var(--ui-text-2); position: relative; margin-top: 26px; }
.tl__months { grid-column: 2; display: grid; grid-template-columns: repeat(5, 1fr); font-size: 10.5px; padding-bottom: 16px; }
.tl__lane { display: flex; height: 20px; border-radius: 3px; overflow: hidden; gap: 0; }
.tl__seg { height: 100%; display: flex; align-items: center; padding: 0 7px; font-size: 10.5px; font-weight: 500; color: #fff; white-space: nowrap; overflow: hidden; flex: none; width: calc(var(--f, 10) * 10%); transform-origin: left; animation: growX 1.2s var(--ease) both; animation-delay: var(--d, 0s); }
.tl__seg--active { background: #5295EF; }
.tl__seg--month { background: #EF5350; }
.tl__seg--two { background: #FB9A0C; color: #3A2500; }
.tl__seg--planned { background: #8CC88A; color: #173A16; }
.tl__seg--prov { background: #9CCBFF; color: #0F2F57; }
.tl__port { font-style: normal; position: absolute; top: 20px; bottom: -4px; width: 5px; border-radius: 3px; background: #A9A1E8; left: var(--x); }
.tl__port span { position: absolute; left: 0; top: 0; padding: 1px 6px; line-height: 1.5; white-space: nowrap; border-radius: 3px; background: #A9A1E8; color: #fff; font-size: 9.5px; font-weight: 600; letter-spacing: .02em; }

/* HSQE: compliance breakdown rows */
.mini-rows { font-family: var(--font-ui); display: flex; flex-direction: column; gap: 7px; }
.mini-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 7px 10px; border-radius: 8px; background: #fff; font-size: 12.5px; color: var(--ui-text); box-shadow: inset 0 0 0 1px var(--ui-border); }
.mini-row span:first-child { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.mini-row .pill { font-size: 11px; padding: 2px 9px; font-family: var(--font-ui); font-weight: 600; }
.scan { position: absolute; left: 0; right: 0; top: 0; height: 100%; pointer-events: none; background: linear-gradient(180deg, rgba(82, 149, 239, 0) 0%, rgba(82, 149, 239, 0.14) 50%, rgba(82, 149, 239, 0) 100%); animation: scan 3.5s linear infinite; }
@keyframes scan { 0% { transform: translateY(-100%); } 100% { transform: translateY(100%); } }

/* Technical: maintenance job list with due status */
.mini-row .due { font-size: 11px; font-weight: 600; white-space: nowrap; }
.due--ok { color: var(--met-fg); }
.due--soon { color: var(--partial-fg); }
.due--over { color: var(--gap-fg); }
.mini-row .dot { width: 8px; height: 8px; border-radius: 50%; flex: none; margin-right: 8px; display: inline-block; }

/* Accounting: MGA table */
.mga { font-family: var(--font-ui); width: 100%; border-collapse: collapse; font-size: 12px; color: var(--ui-text); background: #fff; border-radius: 8px; overflow: hidden; box-shadow: inset 0 0 0 1px var(--ui-border); }
.mga th { text-align: left; font-size: 10.5px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--ui-text-2); padding: 7px 10px; background: #F8FAFC; }
.mga td { padding: 7px 10px; border-top: 1px solid var(--ui-divider); white-space: nowrap; }
.mga td:last-child, .mga th:last-child { text-align: right; }
.mga .tick { display: inline-block; width: 16px; height: 16px; vertical-align: -3px; animation: tick 5s ease-out infinite; animation-delay: var(--d, 0s); }
@keyframes tick { 0%, 14% { opacity: 0; transform: scale(.4); } 22%, 100% { opacity: 1; transform: none; } }

/* minmax(0, …) rather than 1fr: the cards hold one-line rows that must not set the column's minimum width. */
@media (max-width: 900px) { .modules { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 520px) {
  .module { padding: 18px; }
  .module__list { grid-template-columns: 1fr; }
  .module__viz { padding: 14px 12px; }
  .tl__port + .tl__port { display: none; } /* a second marker would cross the lineup labels */
}

/* 8. Compliance engine ---------------------------------------------------- */

.split { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 56px; align-items: center; }
.split__copy { display: flex; flex-direction: column; gap: 20px; }
.checks { display: flex; flex-direction: column; gap: 12px; font-size: 16px; color: var(--ink-2); }
.checks li { display: flex; gap: 12px; align-items: flex-start; }
.checks svg { flex: none; width: 18px; height: 18px; margin-top: 4px; fill: none; stroke: var(--blue-text); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }

.assess { border-radius: 20px; background: var(--ui-paper); padding: 22px 24px 20px; display: flex; flex-direction: column; gap: 14px; }
.assess__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.assess__title { font-size: 17px; font-weight: 600; letter-spacing: -0.01em; line-height: 1.3; }
.assess__meta { font-size: 12.5px; color: var(--ui-text-2); }
.assess__done { flex: none; padding: 2px 10px; border-radius: 999px; font-size: 12px; font-weight: 500; color: #1F6B45; box-shadow: inset 0 0 0 1px #2E7D32; }
.assess__tabs { display: grid; grid-template-columns: 1fr 1fr; text-align: center; font-size: 13.5px; font-weight: 500; color: var(--ui-text-2); border-bottom: 1px solid var(--ui-divider); }
.assess__tabs span { padding: 8px 0 10px; }
.assess__tabs .is-on { color: var(--ui-primary); box-shadow: inset 0 -3px 0 var(--ui-primary); }
.assess__counts { display: flex; flex-wrap: wrap; gap: 8px 16px; font-size: 13.5px; align-items: center; }
.assess__counts > span { display: inline-flex; align-items: center; gap: 7px; }
.assess .pill { font-family: var(--font-ui); font-weight: 600; font-size: 12px; padding: 3px 10px; }
.assess__meter { display: flex; height: 8px; border-radius: 999px; overflow: hidden; gap: 2px; }
.assess__meter i { display: block; height: 100%; flex: var(--f) 1 0; transform-origin: left; }
.js .assess__meter i { transform: scaleX(0); transition: transform 1.2s var(--ease); transition-delay: var(--d, 0s); }
.js .is-in .assess__meter i { transform: scaleX(1); }
.insight { display: flex; gap: 10px; padding: 11px 13px; border-radius: 12px; background: rgba(82, 149, 239, .07); box-shadow: inset 0 0 0 1px rgba(82, 149, 239, .22); }
.insight .cmark { width: 22px; height: 22px; color: var(--ui-primary); margin-top: 1px; }
.insight__title { font-size: 13px; font-weight: 600; line-height: 1.4; }
.insight__title span { font-weight: 400; color: var(--ui-text-2); }
.insight__list { margin-top: 4px; display: flex; flex-direction: column; gap: 2px; font-size: 13px; line-height: 1.5; color: var(--ui-text); }
.insight__list li { position: relative; padding-left: 14px; }
.insight__list li::before { content: ""; position: absolute; left: 3px; top: .62em; width: 5px; height: 5px; border-radius: 50%; background: var(--ui-primary); }
.atable { width: 100%; border-collapse: collapse; font-size: 13px; }
.atable th { font-size: 10.5px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--ui-text); padding: 9px 6px; background: #F8FAFC; text-align: center; }
.atable th:first-child { text-align: left; padding-left: 12px; }
.atable td { padding: 8px 6px; border-top: 1px solid var(--ui-divider); text-align: center; }
.atable td:first-child { text-align: left; padding-left: 12px; }
.atable__name { display: block; font-weight: 600; line-height: 1.3; }
.atable__group { display: block; font-size: 10.5px; letter-spacing: .05em; text-transform: uppercase; color: var(--ui-text-2); }
.js .atable tbody tr { opacity: 0; transform: translateY(8px); transition: opacity .5s var(--ease), transform .5s var(--ease); transition-delay: var(--d, 0s); }
.js .is-in .atable tbody tr { opacity: 1; transform: none; }

@media (max-width: 980px) { .split { grid-template-columns: 1fr; gap: 40px; } }
@media (max-width: 560px) {
  .assess { padding: 16px 14px; }
  .atable .col-opt { display: none; }
}

/* 9. Why Seafair / vessel app --------------------------------------------- */

.why { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.why__card { padding: 26px 24px; border-radius: 22px; background: var(--white); box-shadow: var(--shadow-card); display: flex; flex-direction: column; gap: 10px; transition: transform .3s var(--ease), box-shadow .3s ease; }
.why__card:hover { transform: translateY(-4px); box-shadow: 0 24px 44px -22px rgba(0, 27, 46, 0.38); }
.why__icon { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: var(--ice); color: var(--blue-text); margin-bottom: 6px; }
.why__icon svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.why__card h3 { font-family: var(--font-display); font-weight: 600; font-size: 19px; line-height: 1.25; letter-spacing: -0.01em; }
.why__card p { font-size: 15.5px; line-height: 1.55; color: var(--muted); }
@media (max-width: 1000px) { .why { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .why { grid-template-columns: 1fr; } }

.vessel { border-radius: 28px; background: var(--white); box-shadow: 0 20px 50px -30px rgba(0, 27, 46, 0.3), inset 0 0 0 1px var(--blue-line); padding: 48px; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 40px; align-items: center; }
.vessel__copy { display: flex; flex-direction: column; gap: 16px; }
.vessel__viz { position: relative; height: 260px; display: grid; place-items: center; }
.wave { position: absolute; width: 220px; height: 220px; border-radius: 50%; border: 2px solid var(--blue); animation: wave 2.6s ease-out infinite; animation-delay: var(--d, 0s); }
.wave:nth-child(3) { border-color: var(--lilac); }
@keyframes wave { 0% { transform: scale(.4); opacity: .9; } 100% { transform: scale(1.6); opacity: 0; } }
.vessel__chip { position: relative; width: 96px; height: 96px; border-radius: 28px; background: var(--ink); display: grid; place-items: center; box-shadow: 0 20px 40px -10px rgba(0, 27, 46, 0.45); }
.vessel__chip svg { width: 44px; height: 44px; fill: none; stroke: #8DB8F5; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.sync { position: absolute; left: 50%; bottom: 6px; transform: translateX(-50%); display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; background: var(--white); font-family: var(--font-mono); font-size: 12px; color: var(--ink-2); box-shadow: 0 10px 24px -12px rgba(0, 27, 46, .4), inset 0 0 0 1px var(--blue-line); white-space: nowrap; }
.sync i { width: 8px; height: 8px; border-radius: 50%; background: #2FA36B; }
@media (max-width: 860px) { .vessel { grid-template-columns: 1fr; padding: 32px 24px; } .vessel__viz { height: 240px; } }

/* 10. Demo form & FAQ ----------------------------------------------------- */

.demo { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 480px); gap: 56px; align-items: center; }
.demo__copy { display: flex; flex-direction: column; gap: 20px; }
.demo__steps { display: flex; flex-direction: column; gap: 14px; margin-top: 4px; }
.demo__steps li { display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 16px; align-items: baseline; padding-top: 14px; border-top: 1px solid rgba(0, 27, 46, .08); }
.demo__steps b { font-family: var(--font-display); font-weight: 500; font-size: 22px; letter-spacing: -0.02em; }
.demo__steps span { font-size: 15.5px; color: var(--muted); line-height: 1.5; }

.form-card { border-radius: 28px; background: var(--white); padding: 32px; box-shadow: var(--shadow-float), inset 0 0 0 1px var(--blue-line); }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field--full { grid-column: 1 / -1; }
.field label { font-size: 14px; font-weight: 700; color: var(--ink-2); }
.field label i { font-style: normal; color: var(--gap-fg); }
.field input {
  width: 100%; height: 50px; padding: 0 16px; border-radius: 14px; border: 0;
  background: var(--ground); color: var(--ink); font-size: 16px;
  box-shadow: inset 0 0 0 1.5px var(--blue-ring); transition: box-shadow .2s ease, background-color .2s ease;
}
.field input::placeholder { color: #7B8A98; }
.field input:hover { box-shadow: inset 0 0 0 1.5px #A9C8F5; }
.field input:focus { outline: none; background: var(--white); box-shadow: inset 0 0 0 2px var(--blue), 0 0 0 4px rgba(82, 149, 239, .18); }
.field input[aria-invalid="true"] { box-shadow: inset 0 0 0 2px #D0453A; }
.field__error { font-size: 13px; color: var(--gap-fg); min-height: 0; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form__submit { grid-column: 1 / -1; width: 100%; border: 0; min-height: 54px; border-radius: 14px; background: linear-gradient(180deg, #5295EF 0%, #3F7FDB 100%); color: #fff; font-weight: 700; font-size: 16px; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 10px; box-shadow: 0 12px 24px -12px rgba(37, 99, 201, .7); transition: transform .15s var(--ease), filter .2s ease; }
.form__submit:hover { filter: brightness(1.05); }
.form__submit:active { transform: scale(.985); }
.form__submit[disabled] { cursor: progress; filter: saturate(.6) brightness(1.05); }
.spinner { width: 18px; height: 18px; border-radius: 50%; border: 2.5px solid rgba(255, 255, 255, .45); border-top-color: #fff; animation: spin .8s linear infinite; display: none; }
.form__submit[disabled] .spinner { display: block; }
@keyframes spin { to { transform: rotate(360deg); } }
.form__note { grid-column: 1 / -1; font-size: 13.5px; line-height: 1.5; color: var(--muted-2); text-align: center; }
.form__status { grid-column: 1 / -1; font-size: 14.5px; line-height: 1.5; border-radius: 12px; padding: 12px 14px; display: none; }
.form__status.is-error { display: block; background: var(--gap-bg); color: var(--gap-fg); }
.form-done { display: none; flex-direction: column; align-items: center; text-align: center; gap: 12px; padding: 28px 8px; }
.form-done.is-shown { display: flex; }
.form-done__icon { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; background: var(--met-bg); color: var(--met-fg); }
.form-done__icon svg { width: 30px; height: 30px; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.form-done h3 { font-family: var(--font-display); font-weight: 600; font-size: 24px; letter-spacing: -0.02em; }
.form-done p { color: var(--ink-3); font-size: 16px; max-width: 340px; }

@media (max-width: 980px) { .demo { grid-template-columns: 1fr; gap: 40px; } }
@media (max-width: 520px) { .form-card { padding: 22px 18px; border-radius: 22px; } .form { grid-template-columns: 1fr; } .demo__steps li { grid-template-columns: 78px minmax(0, 1fr); } }

.faq { max-width: 860px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.faq details { border-radius: 20px; background: var(--white); box-shadow: inset 0 0 0 1px var(--blue-line); transition: box-shadow .25s ease; }
.faq details[open] { box-shadow: inset 0 0 0 1px var(--blue-ring), var(--shadow-card); }
.faq summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 24px; font-family: var(--font-display); font-weight: 600; font-size: 18px; line-height: 1.35; letter-spacing: -0.01em; border-radius: 20px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; width: 32px; height: 32px; border-radius: 50%;
  background: var(--ice) no-repeat center / 14px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232563C9' stroke-width='2.6' stroke-linecap='round'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E");
  transition: transform .3s var(--ease);
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq__a { padding: 0 24px 22px; display: flex; flex-direction: column; gap: 12px; color: var(--ink-3); font-size: 16.5px; line-height: 1.65; max-width: 720px; }

/* 11. Closing CTA & footer ------------------------------------------------ */

.cta-wrap { padding: 24px 0 96px; }
.cta { position: relative; overflow: hidden; border-radius: 32px; background: var(--ink); color: var(--white); padding: 76px 32px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 20px; }
.cta > * { position: relative; }
.cta .orb--blue { left: -220px; bottom: -330px; width: 700px; height: 700px; position: absolute; background: radial-gradient(closest-side, rgba(82, 149, 239, .55), rgba(82, 149, 239, 0)); animation: drift1 18s ease-in-out infinite; }
.cta .orb--lilac { right: -220px; top: -330px; width: 680px; height: 680px; position: absolute; background: radial-gradient(closest-side, rgba(159, 128, 218, .5), rgba(159, 128, 218, 0)); animation: drift2 22s ease-in-out infinite; }
.cta h2 { font-family: var(--font-display); font-weight: 500; font-size: clamp(32px, 4.2vw, 52px); letter-spacing: -0.03em; line-height: 1.06; max-width: 760px; text-wrap: balance; }
.cta p { max-width: 560px; font-size: 18px; line-height: 1.55; color: #C9D6E3; }

.footer { padding: 0 0 48px; }
.footer__inner { display: flex; justify-content: space-between; align-items: center; gap: 16px 32px; flex-wrap: wrap; font-size: 14.5px; color: var(--muted-2); }
.footer__brand { display: flex; align-items: center; gap: 16px; }
.footer__brand img { height: 26px; width: auto; }
.footer__links { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.footer__links a { color: var(--ink-3); text-decoration: none; font-weight: 500; }
.footer__links a:hover { color: var(--blue-text); text-decoration: underline; }

@media (max-width: 720px) {
  .section { padding: 72px 0; }
  .section-head { margin-bottom: 36px; }
  .cta { padding: 56px 22px; border-radius: 26px; }
}

/* 12. Motion preferences -------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js [data-reveal], .js .atable tbody tr { opacity: 1; transform: none; }
  .js .assess__meter i { transform: none; }
  .callout { opacity: 1; }
  .cthink__word { background: none; color: var(--ui-text-2); -webkit-text-fill-color: currentColor; }
  .composer__caret { display: none; }
  /* All three alert cards stay visible, stacked under the radar. */
  .callouts { position: static; height: auto; margin-top: 20px; display: grid; gap: 10px; }
  .callout { position: static !important; width: 100%; }
}
