/* VesselBoss website. Same colours as the app, so the site and the app feel like one product. */

/* Barlow (SIL Open Font License), served from this site: no outside font service */
@font-face { font-family: 'Barlow'; font-weight: 400; font-display: swap; src: url('fonts/barlow-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'Barlow'; font-weight: 500; font-display: swap; src: url('fonts/barlow-latin-500-normal.woff2') format('woff2'); }
@font-face { font-family: 'Barlow'; font-weight: 600; font-display: swap; src: url('fonts/barlow-latin-600-normal.woff2') format('woff2'); }
@font-face { font-family: 'Barlow Condensed'; font-weight: 600; font-display: swap; src: url('fonts/barlow-condensed-latin-600-normal.woff2') format('woff2'); }

:root {
  --bg: #161F28;
  --deep: #101820;
  --panel: #1E2A37;
  --card: #253444;
  --line: #34475C;
  --text: #FFFFFF;
  --soft: #C9D2DB;
  --muted: #9AA7B5;
  --blue: #0E9CEC;
  --blue-dark: #0B82C6;
  --green: #22A93B;
  --yellow: #E3CD00;
  --orange: #FF762D;
  --red: #E84C4F;
  --display: 'Barlow Condensed', 'Arial Narrow', sans-serif;
  --body: 'Barlow', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --wrap: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 18px/1.55 var(--body); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); }
a:focus-visible, summary:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 2px; }
h1, h2, h3 { font-family: var(--display); font-weight: 600; line-height: 1.05; margin: 0; letter-spacing: .005em; }
h1 { font-size: clamp(44px, 6.4vw, 76px); }
h2 { font-size: clamp(34px, 4vw, 46px); }
h3 { font-size: 26px; line-height: 1.15; }
p { margin: 0; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.lead { font-size: 21px; color: var(--soft); max-width: 34em; }
.muted { color: var(--muted); }
.small { font-size: 15px; }
section { padding: 84px 0; }
.intro { max-width: 40em; margin-bottom: 40px; }
.intro p { margin-top: 14px; color: var(--soft); }

/* ---------- top bar ---------- */
.top { position: sticky; top: 0; z-index: 10; background: rgba(22, 31, 40, .94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; gap: 28px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font: 600 26px/1 var(--display); margin-right: auto; }
.brand img { width: 34px; height: 34px; }
.top nav { display: flex; gap: 24px; }
.top nav a, .lang { color: var(--soft); text-decoration: none; font-size: 16px; font-weight: 500; }
.top nav a:hover, .lang:hover { color: var(--text); }
.lang { border: 1px solid var(--line); border-radius: 4px; padding: 5px 10px; }

.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 10px 26px; border-radius: 4px;
  background: var(--blue); color: #fff; font: 600 18px/1 var(--body); text-decoration: none; border: 0; }
.btn:hover { background: var(--blue-dark); }
.btn.small { min-height: 38px; padding: 6px 16px; font-size: 16px; }
.btn.ghost { background: none; border: 1px solid var(--line); color: var(--text); }
.btn.ghost:hover { border-color: var(--muted); background: none; }

/* ---------- opening ---------- */
.hero { padding: 72px 0 64px; }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: 56px; align-items: center; }
.hero .lead { margin-top: 22px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero .note { margin-top: 14px; color: var(--muted); font-size: 16px; }

/* The app on a phone: real screenshots */
.phone { width: 100%; max-width: 300px; border: 9px solid #0A0F14; border-radius: 34px; overflow: hidden; background: var(--bg);
  box-shadow: 0 0 0 1px var(--line), 0 30px 60px rgba(0, 0, 0, .45); }
.hero .phone { justify-self: center; max-width: 320px; }

/* ---------- boat status: the app's own coloured bar ---------- */
.status { background: var(--deep); }
.status .wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.status p { margin-top: 14px; color: var(--soft); }
.bars { display: grid; gap: 10px; }
.bar { padding: 11px 16px; border-radius: 3px; text-align: center; font-weight: 600; }
.bar.green { background: var(--green); }
.bar.yellow { background: var(--yellow); color: #111; }
.bar.orange { background: var(--orange); }
.bar.red { background: var(--red); }

/* ---------- what it does ---------- */
.features { display: grid; grid-template-columns: 1fr 1fr; gap: 40px 56px; }
.feature { display: flex; gap: 18px; align-items: flex-start; }
.feature img { width: 52px; height: 52px; flex-shrink: 0; }
.feature p { color: var(--soft); margin-top: 6px; }
.shots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; margin-top: 64px; justify-items: center; }
.shots figure { margin: 0; display: grid; gap: 14px; justify-items: center; }
.shots figcaption { color: var(--muted); font-size: 16px; text-align: center; }

/* ---------- made for boats ---------- */
.also { background: var(--deep); }
.also dl { display: grid; grid-template-columns: 1fr 1fr; gap: 34px 56px; margin: 0; }
.also dt { font: 600 24px/1.15 var(--display); }
.also dd { margin: 8px 0 0; color: var(--soft); }

/* ---------- who it is for ---------- */
.who .wrap > div { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; }
.who article { border-top: 3px solid var(--blue); padding-top: 22px; }
.who article p { margin-top: 12px; color: var(--soft); }

/* ---------- how to start ---------- */
.start { background: var(--deep); }
.steps { list-style: none; counter-reset: step; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.steps li { counter-increment: step; }
.steps li::before { content: counter(step); display: block; font: 600 54px/1 var(--display); color: var(--blue); margin-bottom: 10px; }
.steps p { margin-top: 8px; color: var(--soft); }
.start .after { margin-top: 44px; display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; }
.start .after p { color: var(--muted); max-width: 34em; font-size: 16px; }

/* ---------- plans: the same four colours as in the app ---------- */
.plans { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.plan { --plan: 91, 104, 117; border-left: 4px solid rgb(var(--plan)); border-radius: 4px; padding: 22px 20px 24px;
  background: linear-gradient(160deg, rgba(var(--plan), .36), rgba(var(--plan), .10)), var(--card); }
.plan.solo { --plan: 14, 156, 236; }
.plan.team { --plan: 34, 169, 59; }
.plan.elite { --plan: 201, 162, 39; }
.plan.enterprise { --plan: 142, 107, 232; }
.plan .price { font: 600 46px/1 var(--display); margin-top: 14px; }
.plan .price span { font: 500 17px/1 var(--body); color: var(--soft); }
.plan ul { list-style: none; margin: 16px 0 0; padding: 0; color: var(--soft); display: grid; gap: 4px; }
.plan-notes { margin-top: 28px; display: grid; gap: 6px; color: var(--muted); font-size: 16px; max-width: 46em; }
.plans-cta { margin-top: 32px; }

/* ---------- questions ---------- */
.faq { background: var(--deep); }
.faq details { border-bottom: 1px solid var(--line); max-width: 46em; }
.faq summary { cursor: pointer; padding: 18px 28px 18px 0; font-weight: 600; font-size: 19px; list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; position: absolute; right: 2px; top: 14px; font: 400 28px/1 var(--body); color: var(--muted); }
.faq details[open] summary::after { content: '–'; }
.faq details p { padding: 0 0 20px; color: var(--soft); max-width: 40em; }

/* ---------- bottom ---------- */
footer { padding: 48px 0 56px; border-top: 1px solid var(--line); color: var(--muted); font-size: 16px; }
footer .wrap { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 32px; }
footer .brand { font-size: 24px; margin-bottom: 12px; }
footer p + p { margin-top: 4px; }
footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
footer a { color: var(--soft); }
footer a:hover { color: var(--text); }
footer strong { color: var(--text); font-weight: 600; display: block; margin-bottom: 8px; }

/* ---------- policy pages ---------- */
.doc { padding: 56px 0 84px; }
.doc .wrap { max-width: 780px; }
.doc h1 { font-size: clamp(38px, 5vw, 54px); }
.doc .date { color: var(--muted); margin-top: 10px; }
.doc h2 { font-size: 28px; margin-top: 40px; }
.doc p, .doc li { color: var(--soft); }
.doc p { margin-top: 12px; }
.doc ul { margin: 12px 0 0; padding-left: 22px; display: grid; gap: 6px; }
.doc address { font-style: normal; margin-top: 22px; padding: 16px 18px; background: var(--panel); border-radius: 4px; color: var(--soft); }

/* ---------- small screens ---------- */
@media (max-width: 900px) {
  body { font-size: 17px; }
  section { padding: 60px 0; }
  .top nav { display: none; }
  .top .wrap { gap: 12px; }
  .hero { padding: 44px 0 52px; }
  .hero .wrap, .status .wrap, .features, .also dl, .who .wrap > div, footer .wrap { grid-template-columns: 1fr; }
  .hero .wrap { gap: 44px; }
  .steps { grid-template-columns: 1fr; gap: 26px; }
  .plans { grid-template-columns: 1fr 1fr; }
  .shots { grid-template-columns: 1fr; gap: 40px; margin-top: 48px; }
}
@media (max-width: 520px) {
  .wrap { padding: 0 18px; }
  .plans { grid-template-columns: 1fr; }
  .brand span { font-size: 23px; }
  .lang { padding: 5px 8px; font-size: 15px; }
  .btn.small { padding: 6px 12px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
