/* ============================================================================================
   navdeck marketing site — no framework, no external assets.

   DARK-FIRST, and the palette below is lifted VERBATIM from marina-portal's night-mode token
   block (src/styles.css `[data-theme="dark"]`). That is deliberate rather than merely
   convenient: this site's job is to look like the thing it is selling, the product
   screenshots on it are dark, and a marketing page that invents its own navy is a page that
   drifts from the product one release later. When the portal palette moves, move this with it.

   Three distinctions carried over from the portal, each one a bug waiting to happen:

   * `--navy` is heading TEXT and is therefore LIGHT here (#dbe7f4). `--brand-surface` is a
     dark brand SURFACE and stays dark. Using one token for both is what turns "white text on
     navy" into white on white.
   * `--on-accent` is text sitting ON `--sea`. The night teal is lightened to read as an accent
     against #0a1420, and white on it measures ~2:1 — so text on the accent is DARK ink.
   * The nav bar goes DARKER than the page (#06101b), not lighter, exactly as the portal
     sidebar does: a lighter bar would be the brightest thing on screen and invert the
     hierarchy.

   ⚠️ `--keyline` and the mock-window chrome stay at fixed values: they sit over screenshots
   and map imagery we do not theme.
   ============================================================================================ */
:root {
  color-scheme: dark;

  /* --- brand --- */
  --navy: #dbe7f4;          /* heading TEXT (light here — see the note above) */
  --brand-surface: #0b2545; /* dark brand SURFACE — never inverts */
  --brand-surface-2: #123361;
  --brand-surface-3: #16406f;
  --teal: #3ab8a8;
  --teal-dark: #4ac7b6;     /* "dark" by name, LIGHTER by value: it is the hover state, and
                               on a dark ground a hover lifts rather than deepens */
  --teal-ink: #6fd3c2;      /* teal as INK on a dark surface (eyebrows, small captions) */
  --on-accent: #06231f;     /* text on --teal */
  --on-brand: #ffffff;      /* text on --brand-surface */
  --blue: #7fb2e5;
  --blue-ink: #9dc6ef;
  /* Yacht's accent: the warm gold of harbour lights at dusk (the yacht banner), so the four
     products read as four colours — teal marina, blue fleet, gold yacht, teal boat owner. */
  --gold: #e8bf72;
  --gold-ink: #f0cf8d;
  --keyline: #ffffff;

  /* --- text + surfaces --- */
  --ink: #e6edf5;
  --muted: #93a4b8;
  --muted-2: #8496aa;
  --bg: #0a1420;
  --card: #101f31;
  --bg-soft: #16273a;
  --bg-soft-2: #1a2c40;
  --border: #22364c;
  --border-2: #2b415a;

  /* --- status --- */
  --ok-ink: #6fd3c2;
  --warn-ink: #e8bf72;
  --danger: #ff8a7d;

  --radius: 14px;
  /* Elevation LEVELS, not one shadow. On a dark ground a shadow does almost nothing, so the
     levels lean on the border and the surface step instead — same conclusion the portal
     reached for its night mode. */
  --elev-0: none;
  --elev-1: 0 1px 2px rgba(0, 0, 0, 0.4);
  --elev-2: 0 2px 6px rgba(0, 0, 0, 0.5), 0 12px 30px rgba(0, 0, 0, 0.45);
  --shadow: var(--elev-2);   /* legacy alias — older rules still reference it */
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
/* Never let :visited restyle a link — a pricing page is not "seen" content and the default
   violet reads as a different kind of thing. Same rule the portals carry.
   ☠️ `:where()` is load-bearing, not decoration. Written as a plain `a:visited` this rule has
   specificity (0,1,1), which BEATS every component that colours a link — `.btn-primary`
   (0,1,0), `.path-card`, `.also-card`, `.price-other-card`, `.brand`. So the moment you had
   visited the URL a button pointed at, its label was repainted --blue on the teal fill:
   measured 1.09:1, i.e. invisible. It presented as "the marina and myboat buttons look
   broken and the fleet one is fine", which is not a CSS-shaped symptom at all — it is just
   which of the three portals that browser had been to. `:where()` contributes ZERO
   specificity, so this drops to (0,0,1), the same as the bare `a` rule above it: plain links
   still never go violet, and any component class now wins as it should. */
a:where(:visited) { color: var(--blue); }
h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 0.5rem; color: var(--navy); }
h2 { font-size: clamp(1.5rem, 3.2vw, 2.1rem); }
p { margin: 0.4rem 0 0.9rem; }
.muted { color: var(--muted); }
::selection { background: rgba(58, 184, 168, 0.3); color: #fff; }

/* --- Nav --- */
.nav {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; gap: 1.4rem;
  padding: 0.65rem clamp(1rem, 4vw, 2.5rem);
  background: rgba(6, 16, 27, 0.86);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.brand {
  display: inline-flex; align-items: center; gap: 0.45rem;
  font-weight: 800; font-size: 1.15rem; color: #fff; letter-spacing: -0.02em;
}
.brand:hover { text-decoration: none; }
.logo { width: 26px; height: 26px; color: var(--teal); }
.nav-links { display: flex; gap: 1.1rem; margin-left: auto; }
.nav-links a { color: var(--ink); font-weight: 500; font-size: 0.95rem; }
.nav-links a:hover { color: #fff; }
.nav-links a.active { color: var(--teal-ink); font-weight: 700; }
.lang-switch { display: flex; gap: 0.1rem; font-size: 0.8rem; }
.lang-switch a { color: var(--muted); font-weight: 700; padding: 0.15rem 0.4rem; border-radius: 6px; }
.lang-switch a:hover { text-decoration: none; color: #fff; }
.lang-switch a.active { color: #fff; background: var(--bg-soft); }
@media (max-width: 640px) { .nav-links { display: none; } .lang-dd { margin-left: auto; } .signin-dd { display: none; } }

/* --- Buttons --- */
.btn {
  display: inline-block; padding: 0.7rem 1.3rem; border-radius: 10px;
  font-weight: 700; font-size: 0.98rem; border: 2px solid transparent;
  transition: transform 0.08s ease, box-shadow 0.12s ease, background 0.12s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
/* Dark ink on the night teal — white measures ~2:1 against it and fails on every button
   label on the site. */
.btn-primary { background: var(--teal); color: var(--on-accent); box-shadow: 0 4px 18px rgba(58, 184, 168, 0.22); }
.btn-primary:hover { background: var(--teal-dark); color: var(--on-accent); }
.btn-ghost { border-color: var(--border-2); color: var(--ink); background: transparent; }
.btn-ghost:hover { border-color: var(--teal); color: #fff; }
.btn-sm { padding: 0.45rem 0.95rem; font-size: 0.88rem; }

/* --- Hero --- */
.hero {
  display: flex; align-items: center; min-height: min(62vh, 560px);
  padding: clamp(3rem, 8vw, 6rem) clamp(1rem, 5vw, 4rem);
  background:
    radial-gradient(1100px 520px at 82% -10%, rgba(58, 184, 168, 0.16), transparent 62%),
    radial-gradient(900px 500px at -10% 110%, rgba(29, 111, 184, 0.14), transparent 60%),
    linear-gradient(180deg, #0b1a2b 0%, #0a1420 100%);
  border-bottom: 1px solid var(--border);
  color: var(--ink);
}
.hero h1 { font-size: clamp(2rem, 5vw, 3.3rem); letter-spacing: -0.02em; color: #fff; }
.eyebrow {
  text-transform: uppercase; letter-spacing: 0.12em; font-size: 0.78rem; font-weight: 700;
  color: var(--teal-ink); margin: 0 0 0.6rem;
}
.lede { font-size: 1.13rem; color: var(--muted); max-width: 34rem; }
.lede strong { color: #fff; }
.hero-ctas { display: flex; gap: 0.8rem; flex-wrap: wrap; margin: 1.4rem 0 1.2rem; }
.hero .btn-ghost { background: transparent; color: var(--ink); border-color: rgba(255,255,255,0.22); }
.hero-badges { display: flex; gap: 1.2rem; flex-wrap: wrap; font-size: 0.86rem; color: var(--muted); }
/* The copy column. Capped so it never runs across the whole banner — the right of the
   picture stays picture. */
.hero-inner { width: 100%; max-width: 1200px; margin: 0 auto; }
.hero-copy { max-width: 36rem; }
@media (max-width: 900px) { .hero { min-height: 0; } }

/* --- Mock window (SVG product mocks AND real screenshots share this frame) --- */
.mock-window {
  border-radius: 12px; overflow: hidden;
  border: 1px solid var(--border-2); background: var(--card);
  box-shadow: var(--elev-2);
}
.mock-bar {
  display: flex; align-items: center; gap: 6px;
  padding: 8px 12px; background: var(--bg-soft); border-bottom: 1px solid var(--border);
}
.mock-bar i { width: 10px; height: 10px; border-radius: 50%; background: #33475e; }
.mock-bar i:nth-child(1) { background: #e06c60; }
.mock-bar i:nth-child(2) { background: #d9a441; }
.mock-bar i:nth-child(3) { background: #5aab6a; }
.mock-bar span { margin-left: 8px; font-size: 0.75rem; color: var(--muted); }
.mock-svg { display: block; width: 100%; height: auto; }
/* A real screenshot in the same frame. `object-position: top` keeps the top of the app —
   the nav, the tiles, the thing the caption names — visible when the frame is cropped. */
.mock-shot { display: block; width: 100%; height: auto; }
.mock-shot--crop { aspect-ratio: 16 / 9; object-fit: cover; object-position: top left; }

/* --- Strip --- */
.strip {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 2rem;
  padding: clamp(2rem, 5vw, 3rem) clamp(1rem, 5vw, 4rem);
  background: var(--bg-soft); border-bottom: 1px solid var(--border);
}
.strip-item h3 { font-size: 1.05rem; }
.strip-item p { color: var(--muted); font-size: 0.94rem; }

/* --- Product sections --- */
.product { padding: clamp(2.5rem, 6vw, 4.5rem) clamp(1rem, 5vw, 4rem); }
.product.alt { background: var(--bg-soft); border-block: 1px solid var(--border); }
.product-head { max-width: 46rem; margin-bottom: 2rem; }
.product-head p { color: var(--muted); font-size: 1.04rem; }
.pill {
  display: inline-block; font-size: 0.75rem; font-weight: 800; letter-spacing: 0.06em;
  text-transform: uppercase; padding: 0.25rem 0.7rem; border-radius: 999px; margin-bottom: 0.7rem;
}
.pill-boat { background: rgba(58, 184, 168, 0.16); color: var(--teal-ink); }
.pill-marina { background: rgba(127, 178, 229, 0.14); color: var(--blue-ink); }
.pill-fleet { background: rgba(127, 178, 229, 0.14); color: var(--blue-ink); }
.pill-yacht { background: rgba(232, 191, 114, 0.14); color: var(--gold-ink); }

.feature-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.1rem;
}
.feature-grid.three { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.feature {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1.25rem 1.35rem; transition: transform 0.12s ease, border-color 0.15s ease;
}
.feature:hover { border-color: var(--border-2); transform: translateY(-2px); }
.feature h4 { font-size: 1rem; color: var(--navy); }
.feature p { color: var(--muted); font-size: 0.92rem; margin-bottom: 0; }
/* The leading glyph on a feature card — sized and spaced here rather than inline so a new
   card cannot arrive with its own size. */
.feature .f-ico { font-size: 1.35rem; line-height: 1; display: block; margin-bottom: 0.5rem; }

/* --- Split --- */
.split { display: grid; grid-template-columns: 1.1fr 1fr; gap: 2.5rem; align-items: start; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } }
.checklist { list-style: none; padding: 0; margin: 0; }
.checklist li {
  position: relative; padding: 0.42rem 0 0.42rem 1.9rem; color: var(--muted); font-size: 0.97rem;
}
.checklist li::before { content: "✓"; position: absolute; left: 0.2rem; color: var(--teal); font-weight: 800; }
.checklist li strong { color: var(--ink); }

/* --- How it works --- */
.how { padding: clamp(2.5rem, 6vw, 4rem) clamp(1rem, 5vw, 4rem); background: var(--brand-surface); color: #e8f0f8; border-block: 1px solid var(--border); }
.how h2 { color: #fff; }
.how > p { color: #a9bdd2; }
.steps { list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.6rem; padding: 0; margin: 1.6rem 0 0; }
.steps li { position: relative; padding-top: 0.4rem; }
.steps span {
  display: inline-flex; align-items: center; justify-content: center;
  width: 30px; height: 30px; border-radius: 50%; margin-bottom: 0.6rem;
  background: var(--teal); color: var(--on-accent); font-weight: 800; font-size: 0.9rem;
}
.steps h4 { color: #fff; }
.steps p { color: #a9bdd2; font-size: 0.94rem; }

/* --- Pricing (in-page sections) --- */
.pricing { padding: clamp(2.5rem, 6vw, 4.5rem) clamp(1rem, 5vw, 4rem); }
.pricing-lede { color: var(--muted); max-width: 40rem; }
.pricing-group { margin: 2.2rem 0 1rem; font-size: 1.1rem; }
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.2rem; align-items: stretch; }
.plans.two { max-width: 60rem; }
.plans.one { max-width: 34rem; }
.plan {
  display: flex; flex-direction: column;
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.5rem 1.4rem;
}
.plan.featured { border-color: var(--teal); box-shadow: 0 0 0 1px rgba(58, 184, 168, 0.35), var(--elev-2); }
.plan .tag {
  display: inline-block; font-size: 0.7rem; font-weight: 800; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--teal-ink); margin-bottom: 0.4rem;
}
.plan h4 { font-size: 1.15rem; }
.price { font-size: 2.1rem; font-weight: 800; color: #fff; margin: 0.3rem 0 0.6rem; }
.price span { font-size: 0.95rem; font-weight: 600; color: var(--muted); }
.price-note { font-size: 0.83rem; color: var(--muted); margin-top: -0.3rem; }
.price-note strong { color: var(--ink); }
.plan ul { list-style: none; padding: 0; margin: 0 0 1.2rem; flex: 1; }
.plan li { padding: 0.34rem 0 0.34rem 1.5rem; position: relative; font-size: 0.93rem; color: var(--ink); }
.plan li::before { content: "→"; position: absolute; left: 0; color: var(--teal); font-weight: 700; }
.plan .btn { text-align: center; }
.pricing-promise {
  margin-top: 2.2rem; padding: 1.3rem 1.5rem; border-radius: var(--radius);
  background: var(--bg-soft); border: 1px solid var(--border); border-left: 4px solid var(--teal); max-width: 60rem;
}
.pricing-promise p { color: var(--muted); margin-bottom: 0; }

/* --- Sign-in dropdown --- */
.signin-dd { position: relative; margin: 0; }
.signin-dd summary { list-style: none; cursor: pointer; }
.signin-dd summary::-webkit-details-marker { display: none; }
.signin-dd summary::marker { content: ""; }
.signin-dd[open] summary { background: var(--bg-soft); }
.signin-menu {
  position: absolute; top: calc(100% + 8px); right: 0; z-index: 60;
  background: var(--card); border: 1px solid var(--border-2); border-radius: 10px;
  box-shadow: var(--elev-2); padding: 0.35rem; min-width: 210px;
  display: flex; flex-direction: column; gap: 0.05rem;
}
.signin-menu a { padding: 0.55rem 0.7rem; border-radius: 7px; color: var(--ink); font-weight: 600; font-size: 0.9rem; }
.signin-menu a:hover { background: var(--bg-soft); text-decoration: none; }

/* --- Product path cards (home) --- */
.paths {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem;
  padding: 0 clamp(1rem, 5vw, 4rem); max-width: 1200px; margin: -2.5rem auto 0; position: relative; z-index: 5;
}
@media (max-width: 900px) { .paths { grid-template-columns: 1fr; margin-top: -1.5rem; } }
.path-card {
  background: var(--card); border: 1px solid var(--border); border-top: 4px solid var(--teal);
  border-radius: var(--radius); padding: 1.4rem 1.5rem; color: var(--ink);
  box-shadow: var(--elev-2); transition: transform 0.12s ease, border-color 0.15s ease;
}
.path-card:hover { transform: translateY(-3px); border-color: var(--border-2); text-decoration: none; }
.path-card.marina { border-top-color: var(--teal); }
.path-card.fleet { border-top-color: var(--blue); }
.path-icon { font-size: 1.8rem; }
.path-card h3 { font-size: 1.08rem; margin: 0.5rem 0 0.35rem; color: var(--navy); }
.path-card p { color: var(--muted); font-size: 0.92rem; margin-bottom: 0.7rem; }
.path-cta { font-weight: 700; font-size: 0.86rem; color: var(--teal-ink); }
.path-card.marina .path-cta { color: var(--teal-ink); }
.path-card.fleet .path-cta { color: var(--blue-ink); }

/* --- Sub-page hero (Marina / Fleet / myboat deep-dive pages) --- */
.page-hero {
  padding: clamp(2.5rem, 6vw, 4.5rem) clamp(1rem, 5vw, 4rem) clamp(2rem, 5vw, 3rem);
  background:
    radial-gradient(900px 440px at 88% -10%, rgba(58, 184, 168, 0.14), transparent 62%),
    linear-gradient(180deg, #0b1a2b 0%, #0a1420 100%);
  border-bottom: 1px solid var(--border);
}
/* ⚠️ `width: 100%` is load-bearing on a FLEX item. `.page-hero.has-photo` is a flex
   container, and a flex item does not stretch on the main axis — it shrink-wraps to its
   content. So without this the inner collapsed to the copy's own 36rem and `margin: 0 auto`
   then centred THAT, parking the headline in the middle of the banner: measured 610px from
   the left on a 1797px viewport, which is where the text actually sat. `.hero-inner` on the
   home page always had it, which is why only the three sub-pages were affected. */
.page-hero-inner { width: 100%; max-width: 1200px; margin: 0 auto; }
.page-hero .hero-copy { max-width: 36rem; }

/* Over a full-bleed photograph the copy is anchored to the page's left padding edge rather
   than to a centred 1200px column — on a wide screen a centred column leaves a gap on the
   left that reads as the text having drifted into the middle of the picture. */
.hero.has-photo .hero-inner,
.page-hero.has-photo .page-hero-inner { margin-inline: 0; max-width: 1240px; }
.page-hero.has-photo { min-height: min(56vh, 480px); display: flex; align-items: center; }
/* Same weighting as the home hero, and for the same reason — see .hero.has-photo. */
.page-hero.has-photo {
  background:
    radial-gradient(900px 440px at 88% -10%, rgba(58, 184, 168, 0.12), transparent 62%),
    linear-gradient(100deg,
      rgba(6, 15, 26, 0.90) 0%,
      rgba(6, 15, 26, 0.84) 38%,
      rgba(8, 18, 30, 0.52) 72%,
      rgba(8, 18, 30, 0.42) 100%),
    var(--hero-photo, none) center / cover no-repeat,
    linear-gradient(180deg, #0b2545 0%, #123361 70%, #16406f 100%);
}
.page-hero.has-photo h1 { color: #fff; }
.page-hero.has-photo .lede,
.page-hero.has-photo .hero-badges,
.page-hero.has-photo .breadcrumb,
.page-hero.has-photo .breadcrumb a { color: #b6c6d8; }
@media (max-width: 900px) {
  .page-hero.has-photo {
    min-height: 0;
    background:
      linear-gradient(180deg, rgba(6, 15, 26, 0.88), rgba(8, 18, 30, 0.82)),
      var(--hero-photo, none) center / cover no-repeat,
      linear-gradient(180deg, #0b2545 0%, #123361 70%, #16406f 100%);
  }
}

/* ── The product shot, in a band of its own ──────────────────────────────────────────────
   It used to sit in the hero's right-hand cell, which meant the screenshot was covering the
   half of the banner photograph worth looking at. Given its own section it is also simply
   bigger and legible, which a third of a hero never was. */
.screenshot-band { padding: clamp(2.5rem, 6vw, 4rem) clamp(1rem, 5vw, 4rem); background: var(--bg-soft); border-block: 1px solid var(--border); }
.screenshot-band .section-lede { margin-bottom: clamp(1.2rem, 3vw, 1.8rem); }
.screenshot-band .mock-window { max-width: 1100px; margin: 0 auto; }
.page-hero h1 { font-size: clamp(1.9rem, 4.4vw, 2.9rem); color: #fff; letter-spacing: -0.02em; }
.page-hero .lede { color: var(--muted); max-width: none; }
.page-hero .lede strong { color: #fff; }
.breadcrumb { font-size: 0.85rem; color: var(--muted); margin-bottom: 0.9rem; }
.breadcrumb a { color: var(--muted); font-weight: 600; }

/* --- Feature categories (deep-dive pages) --- */
.feature-cats { padding: clamp(2rem, 5vw, 3.5rem) clamp(1rem, 5vw, 4rem); max-width: 1200px; margin: 0 auto; }
.feature-cat { margin-bottom: 2.6rem; }
.feature-cat:last-child { margin-bottom: 0; }
.feature-cat-head { display: flex; align-items: baseline; gap: 0.6rem; margin-bottom: 1rem; flex-wrap: wrap; }
.feature-cat-head h3 { font-size: 1.2rem; color: var(--navy); }
.feature-cat-head span { color: var(--muted); font-size: 0.9rem; }

/* --- Two-mode comparison (afloat vs ashore) --- */
.modes { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; max-width: 1100px; margin: 0 auto clamp(1.4rem, 4vw, 2rem); padding: 0 clamp(1rem, 5vw, 4rem); }
@media (max-width: 780px) { .modes { grid-template-columns: 1fr; } }
.mode-card { border: 1px solid var(--border); border-radius: var(--radius); padding: 1.4rem 1.5rem; background: var(--card); }
.mode-card.yard { background: var(--bg-soft); }
.mode-card h3 { font-size: 1.1rem; color: var(--navy); }
.mode-card ul { list-style: none; padding: 0; margin: 0.6rem 0 0; }
.mode-card li { padding: 0.3rem 0 0.3rem 1.4rem; position: relative; color: var(--muted); font-size: 0.92rem; }
.mode-card li::before { content: "✓"; position: absolute; left: 0; color: var(--teal); font-weight: 800; }
.modes-note { text-align: center; color: var(--muted); font-size: 0.92rem; max-width: 44rem; margin: 0 auto 2.5rem; padding: 0 1rem; }
.modes-note strong { color: var(--ink); }

/* --- Centered section intro --- */
.section-lede { max-width: 44rem; margin: 0 auto clamp(1.6rem, 4vw, 2.2rem); padding: 0 clamp(1rem, 5vw, 4rem); text-align: center; }
.section-lede h2 { color: var(--navy); }
.section-lede p { color: var(--muted); }

/* --- Changelog --- */
.changelog { padding: clamp(2.5rem, 6vw, 4rem) clamp(1rem, 5vw, 4rem); background: var(--bg-soft); border-block: 1px solid var(--border); }
.log { list-style: none; padding: 0; margin: 1.4rem 0 0; max-width: 52rem; }
.log li {
  display: grid; grid-template-columns: 90px 1fr; gap: 1rem;
  padding: 0.75rem 0; border-bottom: 1px solid var(--border);
}
.log time { color: var(--teal-ink); font-size: 0.85rem; font-weight: 700; white-space: nowrap; padding-top: 2px; }
.log div { font-size: 0.96rem; color: var(--muted); }
.log strong { color: var(--ink); }

/* --- FAQ --- */
.faq { padding: clamp(2.5rem, 6vw, 4rem) clamp(1rem, 5vw, 4rem); max-width: 56rem; }
.faq details {
  border: 1px solid var(--border); border-radius: 10px; padding: 0.9rem 1.2rem; margin-bottom: 0.7rem;
  background: var(--card);
}
.faq details[open] { border-color: var(--border-2); }
.faq summary { font-weight: 700; cursor: pointer; color: var(--navy); }
.faq details p { color: var(--muted); margin: 0.7rem 0 0.2rem; }

/* --- CTA + footer --- */
.cta {
  text-align: center; padding: clamp(3rem, 7vw, 5rem) 1.5rem;
  background:
    radial-gradient(700px 300px at 50% 0%, rgba(58, 184, 168, 0.14), transparent 65%),
    linear-gradient(180deg, #0e2340, var(--brand-surface));
  border-block: 1px solid var(--border);
}
.cta h2 { color: #fff; }
.cta p { color: #b9cbdd; }
.cta .hero-ctas { justify-content: center; }
.cta .btn-ghost { background: transparent; color: #eef4fa; border-color: rgba(255,255,255,0.3); }
.footer {
  display: flex; justify-content: space-between; gap: 2rem; flex-wrap: wrap;
  padding: 2rem clamp(1rem, 5vw, 4rem); border-top: 1px solid var(--border);
  font-size: 0.92rem; color: var(--muted); background: #06101b;
}
.footer a { color: var(--muted); }
.footer a:hover { color: var(--ink); }
.footer-links { display: flex; gap: 1.2rem; flex-wrap: wrap; align-items: center; }

/* --- Brand wordmark accent (nav) --- */
.brand-accent { color: var(--teal); }
.logo { border-radius: 7px; }

/* --- Language dropdown (flag switcher, JS-free <details>) --- */
.lang-dd { position: relative; }
.lang-dd summary {
  list-style: none; cursor: pointer;
  display: inline-flex; align-items: center; gap: 0.35rem;
  padding: 0.38rem 0.6rem; border-radius: 8px;
  font-size: 0.82rem; font-weight: 700; color: var(--ink);
  border: 1px solid var(--border-2); background: transparent;
}
.lang-dd summary::-webkit-details-marker { display: none; }
.lang-dd summary::marker { content: ""; }
.lang-dd[open] summary { background: var(--bg-soft); }
.lang-dd .flag { font-size: 1.05rem; line-height: 1; }
.lang-dd .caret { color: var(--muted); font-size: 0.68rem; }
.lang-menu {
  position: absolute; top: calc(100% + 8px); right: 0; z-index: 60;
  background: var(--card); border: 1px solid var(--border-2); border-radius: 10px;
  box-shadow: var(--elev-2); padding: 0.35rem; min-width: 190px;
  display: flex; flex-direction: column; gap: 0.05rem;
  max-height: 70vh; overflow: auto;
}
.lang-menu a {
  display: flex; align-items: center; gap: 0.55rem;
  padding: 0.5rem 0.65rem; border-radius: 7px; color: var(--ink);
  font-weight: 600; font-size: 0.9rem;
}
.lang-menu a:hover { background: var(--bg-soft); text-decoration: none; }
.lang-menu a.active { background: rgba(58, 184, 168, 0.16); color: #fff; }

/* --- Photo band (marketing photography with a navy overlay; graceful gradient
   fallback when the image at --photo is absent — see public/img/README.md) --- */
.photo-band {
  padding: clamp(3rem, 8vw, 6rem) clamp(1rem, 5vw, 4rem);
  color: #fff; border-block: 1px solid var(--border);
  background:
    linear-gradient(180deg, rgba(6, 16, 27, 0.86), rgba(6, 16, 27, 0.92)),
    var(--photo, none),
    linear-gradient(135deg, #16406f, #0b2545);
  background-size: cover; background-position: center;
}
.photo-band-inner { max-width: 46rem; }
.photo-band .eyebrow { color: var(--teal-ink); margin-bottom: 0.6rem; }
.photo-band h2 { color: #fff; }
.photo-band p { color: #cddbec; font-size: 1.05rem; max-width: 40rem; margin-bottom: 1.2rem; }

/* --- Hero with a real photo behind the gradient (graceful navy fallback if --hero-photo
   is absent — see public/img/README.md). The overlay is heavier than a light-theme site
   would need: the page under it is #0a1420, so a half-lit photo would read as a bright
   panel rather than as the top of the page. --- */
.hero.has-photo {
  background:
    radial-gradient(1100px 500px at 85% -10%, rgba(58, 184, 168, 0.14), transparent 60%),
    /* Weighted ACROSS the hero rather than flat, because the two halves have different jobs:
       the copy sits left and needs a dark ground, the photograph earns its place on the right
       where the harbour lights are. A single flat overlay heavy enough for the text erases the
       picture; one light enough for the picture loses the headline. */
    linear-gradient(100deg,
      rgba(6, 15, 26, 0.90) 0%,
      rgba(6, 15, 26, 0.84) 38%,
      rgba(8, 18, 30, 0.52) 72%,
      rgba(8, 18, 30, 0.42) 100%),
    var(--hero-photo, none) center / cover no-repeat,
    linear-gradient(180deg, #0b2545 0%, #123361 70%, #16406f 100%);
}
/* Copy over a PHOTOGRAPH needs more contrast than copy over a flat card, because the ground
   is whatever the picture happens to be doing there. Measured against the brightest pixel in
   this banner's text zone — a lamp reflection at rgb(255,255,227) — `--muted` lands at
   3.91:1, under the 4.5 minimum, so the lede and the badges lift to a brighter ink here only.
   Together with the 0.84 mid-stop above that worst case reads 7.12:1. ⚠️ If the banner is
   ever swapped, re-measure rather than assuming: the number that matters is the brightest
   pixel behind the copy, not how dark the photo looks overall. */
.hero.has-photo .lede,
.hero.has-photo .hero-badges { color: #b6c6d8; }

/* One column on a phone, so the copy is over the middle of the photo rather than its dark
   left edge — the horizontal weighting no longer helps and the overlay goes flat and heavy. */
@media (max-width: 900px) {
  .hero.has-photo {
    background:
      linear-gradient(180deg, rgba(6, 15, 26, 0.88), rgba(8, 18, 30, 0.82)),
      var(--hero-photo, none) center / cover no-repeat,
      linear-gradient(180deg, #0b2545 0%, #123361 70%, #16406f 100%);
  }
}

/* --- Screenshot gallery (real portal shots in a browser frame) --- */
.gallery { padding: clamp(2.5rem, 6vw, 4.5rem) clamp(1rem, 5vw, 4rem); background: var(--bg-soft); border-block: 1px solid var(--border); }
.shots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; max-width: 1200px; margin: 1.2rem auto 0; }
@media (max-width: 900px) { .shots { grid-template-columns: 1fr; max-width: 560px; } }
.shot { margin: 0; }
.shot figcaption { color: var(--muted); font-size: 0.9rem; margin-top: 0.7rem; }
.shot figcaption strong { color: var(--ink); display: block; }

/* --- Full-bleed screenshot showcase: one product, one big shot, the reasons beside it.
   Alternates side by side on wide screens; the shot always comes FIRST in the source so a
   narrow screen shows the product before the prose. --- */
.showcase { padding: clamp(2.5rem, 6vw, 4.5rem) clamp(1rem, 5vw, 4rem); border-bottom: 1px solid var(--border); }
.showcase.alt { background: var(--bg-soft); }
.showcase-inner { display: grid; grid-template-columns: 1.35fr 1fr; gap: clamp(1.6rem, 4vw, 3rem); align-items: center; max-width: 1240px; margin: 0 auto; }
/* Flipping swaps the TRACK WIDTHS as well as the order — moving the shot to column 2
   without this leaves the prose sitting in the 1.35fr track, i.e. the copy gets wider than
   the screenshot on exactly the alternating bands. */
.showcase.flip .showcase-inner { grid-template-columns: 1fr 1.35fr; }
.showcase.flip .showcase-shot { order: 2; }
@media (max-width: 960px) {
  .showcase-inner, .showcase.flip .showcase-inner { grid-template-columns: 1fr; }
  .showcase.flip .showcase-shot { order: 0; }
}
.showcase-copy h2 { font-size: clamp(1.4rem, 3vw, 1.9rem); }
.showcase-copy p { color: var(--muted); }
.showcase-copy .checklist { margin-top: 0.8rem; }
.showcase-copy .btn { margin-top: 1rem; }

/* --- "Also from navdeck" --- */
.also { padding: clamp(2rem, 5vw, 3.5rem) clamp(1rem, 5vw, 4rem) clamp(3rem, 6vw, 4.5rem); }
/* Three products beside marina since yacht joined — three columns, one on a phone. */
.also-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; max-width: 1100px; margin: 1.2rem auto 0; }
@media (max-width: 900px) { .also-cards { grid-template-columns: 1fr; max-width: 620px; } }
.also-card { display: block; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.4rem 1.5rem; color: var(--ink); border-top: 4px solid var(--blue); transition: transform 0.12s ease, border-color 0.15s ease; }
.also-card.boat { border-top-color: var(--teal); }
.also-card.yacht { border-top-color: var(--gold); }
.also-card:hover { transform: translateY(-2px); border-color: var(--border-2); text-decoration: none; }
.also-card h3 { color: var(--navy); font-size: 1.05rem; margin-bottom: 0.3rem; }
.also-card p { color: var(--muted); font-size: 0.92rem; margin-bottom: 0.6rem; }
.also-card .path-cta { font-weight: 700; font-size: 0.86rem; color: var(--blue-ink); }
.also-card.boat .path-cta { color: var(--teal-ink); }
.also-card.yacht .path-cta { color: var(--gold-ink); }

/* --- Prose (About + legal pages) --- */
.prose { max-width: 48rem; margin: 0 auto; padding: clamp(2.5rem, 6vw, 4rem) clamp(1rem, 5vw, 2rem); }
.prose h2 { color: var(--navy); font-size: clamp(1.4rem, 3vw, 1.9rem); margin-top: 2rem; }
.prose h2:first-of-type { margin-top: 0; }
.prose h3 { color: var(--navy); font-size: 1.1rem; margin: 1.6rem 0 0.4rem; }
.prose p { color: var(--muted); font-size: 1.02rem; margin: 0.5rem 0 0.9rem; }
.prose ul { color: var(--muted); font-size: 1.02rem; margin: 0.4rem 0 1rem; padding-left: 1.2rem; }
.prose li { margin: 0.3rem 0; }
.prose strong { color: var(--ink); }
.prose a { font-weight: 600; }
.legal-meta { color: var(--muted); font-size: 0.9rem; font-weight: 600; margin-bottom: 1.2rem; }
.legal-note {
  border: 1px solid var(--border); border-left: 4px solid var(--teal); border-radius: 8px;
  background: var(--bg-soft); padding: 0.9rem 1.1rem; margin: 0 0 1.6rem;
  color: var(--muted); font-size: 0.92rem;
}
.legal-toc { font-size: 0.95rem; margin-bottom: 1.5rem; }

/* --- About hero badge --- */
.about-badge { display: flex; flex-direction: column; align-items: center; gap: 1rem; text-align: center; }
.about-badge p { color: var(--muted); font-weight: 700; margin: 0; }

/* --- Contact page --- */
.contact-wrap { padding: clamp(2rem, 5vw, 3.5rem) clamp(1rem, 5vw, 4rem); max-width: 1100px; margin: 0 auto; }
.contact-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 2rem; align-items: start; }
@media (max-width: 820px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-info { display: flex; flex-direction: column; gap: 1rem; }
.info-card {
  display: flex; gap: 0.9rem; align-items: flex-start;
  border: 1px solid var(--border); border-radius: var(--radius); padding: 1.1rem 1.2rem; background: var(--card);
}
.info-ico { font-size: 1.5rem; line-height: 1.2; }
.info-card h3 { font-size: 1.02rem; color: var(--navy); margin-bottom: 0.2rem; }
.info-card p { margin: 0.1rem 0; font-size: 0.95rem; }
.info-card p.muted { font-size: 0.84rem; margin-bottom: 0; }
.contact-form-card {
  border: 1px solid var(--border); border-radius: var(--radius);
  padding: clamp(1.4rem, 3vw, 2rem); background: var(--card); box-shadow: var(--elev-2);
}
.contact-form-card h2 { color: var(--navy); margin-bottom: 1rem; }
.field { margin-bottom: 1rem; display: flex; flex-direction: column; gap: 0.35rem; }
.field label { font-size: 0.85rem; font-weight: 700; color: var(--navy); }
.field input, .field textarea {
  font: inherit; padding: 0.7rem 0.8rem; border: 1px solid var(--border-2); border-radius: 9px;
  background: var(--bg); color: var(--ink); width: 100%; resize: vertical;
}
.field input:focus, .field textarea:focus {
  outline: none; border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(58, 184, 168, 0.2); background: var(--bg-soft);
}
.field input::placeholder, .field textarea::placeholder { color: #6c8098; }
.contact-form-card .btn { width: 100%; text-align: center; cursor: pointer; }
.contact-form-card .btn:disabled { opacity: 0.6; cursor: default; transform: none; }
.form-status { margin: 0.9rem 0 0; font-size: 0.92rem; font-weight: 600; min-height: 1.2em; }
.form-status.ok { color: var(--ok-ink); }
.form-status.err { color: var(--danger); }

/* --- Dedicated pricing page --- */
.price-page { padding: clamp(1.5rem, 4vw, 2.5rem) clamp(1rem, 5vw, 4rem) clamp(2.5rem, 6vw, 4rem); max-width: 1220px; margin: 0 auto; }
.price-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.1rem; align-items: stretch; }
.price-cards.three { grid-template-columns: repeat(3, 1fr); max-width: 960px; margin-inline: auto; }
/* A group with a single product still needs a card-shaped card, not one stretched across the
   full page width. */
.price-cards.one { grid-template-columns: 1fr; max-width: 380px; margin-inline: auto; }
/* A single card carrying a long feature list reads badly at 380px — it becomes a narrow
   ribbon of text. */
.price-cards.one.wide { max-width: 560px; }
@media (max-width: 1040px) { .price-cards, .price-cards.three { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .price-cards, .price-cards.three { grid-template-columns: 1fr; } }
.price-card {
  position: relative; display: flex; flex-direction: column;
  border: 1px solid var(--border); border-radius: 18px; background: var(--card);
  padding: 1.6rem 1.5rem;
}
/* The featured card LIFTS off the page rather than going darker — on a dark ground "more
   important" cannot be expressed by more navy. */
.price-card.popular {
  border-color: rgba(58, 184, 168, 0.55);
  background: linear-gradient(180deg, #14304a 0%, #0f2438 100%);
  box-shadow: 0 0 0 1px rgba(58, 184, 168, 0.25), 0 18px 44px rgba(0, 0, 0, 0.5);
}
.price-name { font-size: 1.2rem; font-weight: 800; color: var(--navy); margin: 0 0 0.3rem; }
.price-card.popular .price-name { color: #fff; }
.price-desc { color: var(--muted); font-size: 0.92rem; margin: 0 0 1rem; min-height: 3.2em; }
.price-card.popular .price-desc { color: #c3d5e8; }
.price-amount { font-size: 2.2rem; font-weight: 800; color: #fff; line-height: 1.1; }
.price-amount small { font-size: 0.95rem; font-weight: 600; color: var(--muted); margin-left: 0.15rem; }
.price-sub { font-size: 0.83rem; color: var(--muted); margin: 0.35rem 0 0; }
.price-card.popular .price-sub { color: #a9bdd2; }
.price-divider { border: 0; border-top: 1px solid var(--border); margin: 1.1rem 0; }
.price-card.popular .price-divider { border-color: rgba(255, 255, 255, 0.14); }
.price-plus { font-size: 0.8rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; color: var(--muted); margin: 0 0 0.6rem; }
.price-card.popular .price-plus { color: var(--teal-ink); }
.price-feats { list-style: none; padding: 0; margin: 0 0 1.3rem; flex: 1; display: flex; flex-direction: column; gap: 0.55rem; }
.price-feats li { position: relative; padding-left: 1.7rem; font-size: 0.92rem; color: var(--ink); }
.price-card.popular .price-feats li { color: #dbe7f2; }
.price-feats li::before {
  content: "✓"; position: absolute; left: 0; top: -1px;
  width: 1.2rem; height: 1.2rem; border-radius: 50%;
  background: rgba(58, 184, 168, 0.18); color: var(--teal-ink);
  font-size: 0.72rem; font-weight: 800; display: inline-flex; align-items: center; justify-content: center;
}
.price-cta { text-align: center; margin-top: auto; }
.price-pill {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: var(--teal); color: var(--on-accent); font-size: 0.7rem; font-weight: 800;
  padding: 0.24rem 0.85rem; border-radius: 999px; letter-spacing: 0.05em; text-transform: uppercase;
}
.price-trust {
  display: flex; gap: 1.6rem; flex-wrap: wrap; justify-content: center;
  margin-top: 1.8rem; color: var(--muted); font-size: 0.9rem; font-weight: 600;
}
.price-other { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; max-width: 760px; margin: 0 auto; }
@media (max-width: 620px) { .price-other { grid-template-columns: 1fr; } }
.price-other-card {
  display: block; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1.3rem 1.4rem; color: var(--ink); border-top: 4px solid var(--blue);
  transition: transform 0.12s ease, border-color 0.15s ease;
}
.price-other-card:hover { transform: translateY(-2px); border-color: var(--border-2); text-decoration: none; }
.price-other-card h4 { font-size: 1.05rem; color: var(--navy); margin: 0.4rem 0 0.3rem; }
.price-other-card p { color: var(--muted); font-size: 0.9rem; margin: 0 0 0.6rem; }
.price-other-card .path-cta { font-weight: 700; font-size: 0.86rem; color: var(--blue-ink); }

/* --- "What counts as a space" explainer. The billable unit is the ONE thing on the pricing
   page a reader must not have to guess at, so it gets its own block rather than a footnote. --- */
.unit-explainer {
  max-width: 900px; margin: 2rem auto 0; padding: 1.4rem 1.6rem;
  background: var(--bg-soft); border: 1px solid var(--border); border-left: 4px solid var(--teal);
  border-radius: var(--radius);
}
.unit-explainer h3 { font-size: 1.05rem; margin-bottom: 0.5rem; }
.unit-explainer p { color: var(--muted); font-size: 0.95rem; margin: 0.3rem 0; }
.unit-explainer strong { color: var(--ink); }
.unit-sum {
  display: flex; align-items: center; gap: 0.7rem; flex-wrap: wrap;
  margin: 0.9rem 0 0.2rem; font-size: 0.95rem; color: var(--ink);
}
.unit-sum b { color: #fff; }
.unit-op { color: var(--teal-ink); font-weight: 800; }
.unit-chip {
  display: inline-flex; align-items: center; gap: 0.4rem;
  background: var(--card); border: 1px solid var(--border-2); border-radius: 999px;
  padding: 0.3rem 0.8rem; font-size: 0.9rem; font-weight: 600;
}

/* --- Cookie notice (essential-cookies-only informational bar, JS-injected) --- */
.cookie-notice {
  position: fixed; left: 1rem; right: 1rem; bottom: 1rem; z-index: 200;
  max-width: 720px; margin: 0 auto;
  display: flex; align-items: center; gap: 1rem; flex-wrap: wrap;
  background: var(--card); color: var(--ink);
  border: 1px solid var(--border-2); border-radius: 12px;
  box-shadow: var(--elev-2);
  padding: 0.9rem 1.1rem;
}
.cookie-notice-text { margin: 0; font-size: 0.9rem; color: var(--muted); flex: 1; min-width: 220px; }
.cookie-notice-text a { color: var(--teal-ink); font-weight: 600; }
.cookie-notice-btn { flex-shrink: 0; cursor: pointer; }
@media (max-width: 480px) {
  .cookie-notice { flex-direction: column; align-items: stretch; }
  .cookie-notice-btn { width: 100%; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn:hover, .feature:hover, .path-card:hover, .also-card:hover,
  .price-other-card:hover { transform: none; }
}

/* Alternating band on the all-products pricing page, so three price groups on one page read
   as three groups rather than one long list. */
.price-page.alt-band { background: var(--bg-soft); border-block: 1px solid var(--border); max-width: none; }
.price-page.alt-band > * { max-width: 1220px; margin-inline: auto; }
/* ⚠️ Equal specificity to `.price-cards.three` and later in the file, so without this the
   banded (fleet) section's cards stretch to 1220px while the marina row above is 960. */
.price-page.alt-band > .price-cards.three { max-width: 960px; }

/* Jump links to the three product groups on the pricing page. */
.price-jump { display: flex; gap: 0.6rem; flex-wrap: wrap; justify-content: center; margin-top: 1.2rem; }
.price-jump a {
  border: 1px solid var(--border-2); border-radius: 999px; padding: 0.35rem 0.9rem;
  font-size: 0.88rem; font-weight: 700; color: var(--ink); background: var(--card);
}
.price-jump a:hover { border-color: var(--teal); color: #fff; text-decoration: none; }
/* Anchor targets sit under a sticky nav, so scroll them clear of it. */
.price-page[id] { scroll-margin-top: 5rem; }

/* --- Mobile app store badges ("coming soon") + legal footer row ---
 * Our own badge styling, not the stores' official artwork (only allowed once the app is live —
 * see PARTIALS in scripts/build-site.mjs). Not links, so not focusable: nothing to click yet. */
.store-badges { display: flex; gap: 0.6rem; flex-wrap: wrap; }
.store-badge {
  display: inline-flex; align-items: center; gap: 0.55rem;
  padding: 0.4rem 0.85rem 0.4rem 0.7rem; border-radius: 10px;
  background: #000; color: #f2f5f8; border: 1px solid var(--border-2);
  line-height: 1.1; cursor: default; user-select: none;
}
.store-badge svg { width: 20px; height: 20px; flex: none; }
.store-badge-text { display: flex; flex-direction: column; }
.store-badge-text small { font-size: 0.66rem; color: #b4c0cd; text-transform: uppercase; letter-spacing: 0.04em; }
.store-badge-text strong { font-size: 0.98rem; font-weight: 600; }

.hero-apps { display: flex; align-items: center; gap: 0.8rem; flex-wrap: wrap; margin-top: 1.2rem; }
.hero-apps-label { color: var(--muted); font-size: 0.88rem; }

.footer-bottom {
  flex-basis: 100%; display: flex; justify-content: space-between; align-items: center;
  gap: 1rem 2rem; flex-wrap: wrap; padding-top: 1.2rem; border-top: 1px solid var(--border);
}
.footer-apps { display: flex; align-items: center; gap: 0.8rem; flex-wrap: wrap; }
.footer-apps-label { font-size: 0.85rem; }
.footer-legal { margin: 0; font-size: 0.8rem; color: var(--muted); max-width: 46rem; }
