/* Harbor's site: the app's colours, system fonts only (nothing loaded from elsewhere), no scripts. */
:root {
  --bg: #111b20;
  --bg-deep: #0c1417;
  --card: #172328;
  --card-2: #1c2a30;
  --line: rgba(255, 255, 255, 0.08);
  --text: #eaf0f1;
  --muted: #93a8ad;
  --accent: #ed9659;
  --accent-strong: #f3a56c;
  --accent-ink: #1d1206;
  --mint: #99c9b3;
  --kofi: #72a4f2;
  --radius: 14px;
  --serif: ui-serif, "New York", "Iowan Old Style", Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
[id] { scroll-margin-top: 84px; }
body { margin: 0; background: var(--bg); color: var(--text); font: 17px/1.65 var(--sans); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent-strong); text-underline-offset: 3px; }
a:hover { color: #fff; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.15; letter-spacing: -0.01em; margin: 0 0 0.5em; }
h1 { font-size: clamp(2.3rem, 5.5vw, 3.9rem); letter-spacing: -0.025em; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; }
code, kbd { font-family: var(--mono); font-size: 0.88em; background: var(--card-2); border: 1px solid var(--line); border-radius: 6px; padding: 0.1em 0.4em; overflow-wrap: anywhere; }
.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 780px; }
.muted { color: var(--muted); }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--accent); color: var(--accent-ink); padding: 8px 12px; border-radius: 8px; z-index: 10; }
.skip:focus { left: 8px; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 5; background: rgba(17, 27, 32, 0.92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.nav { display: flex; align-items: center; gap: 16px; min-height: 64px; flex-wrap: wrap; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font: 600 1.2rem/1 var(--sans); letter-spacing: -0.01em; }
.brand img { width: 30px; height: 30px; border-radius: 7px; }
.nav-links { display: flex; align-items: center; gap: 6px 22px; list-style: none; margin: 0 0 0 auto; padding: 0; flex-wrap: wrap; }
.nav-links a { display: inline-block; padding: 10px 0; color: var(--muted); text-decoration: none; font-size: 0.95rem; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--text); }

/* Buttons */
.button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 13px 22px; border-radius: 11px; font: 600 1rem/1 var(--sans); text-decoration: none; border: 1px solid transparent; transition: transform 0.15s, background 0.15s; }
.button:hover { transform: translateY(-1px); }
.button.primary { background: var(--accent); color: var(--accent-ink); }
.button.primary:hover { background: var(--accent-strong); color: var(--accent-ink); }
.button.secondary { background: rgba(255, 255, 255, 0.05); color: var(--text); border-color: var(--line); }
.button.secondary:hover { background: rgba(255, 255, 255, 0.09); color: #fff; }
.button.kofi { background: var(--kofi); color: #0b1830; }
.button.kofi:hover { background: #8bb6f6; color: #0b1830; }
.nav-links .button { padding: 9px 15px; color: var(--accent-ink); font-size: 0.92rem; }
.nav-links .button:hover { color: var(--accent-ink); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.center .actions { justify-content: center; }

/* Sections */
section { padding: 84px 0; }
section.tight { padding: 56px 0; }
.alt { background: var(--bg-deep); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.center { text-align: center; }
.eyebrow { display: inline-block; color: var(--accent); font: 700 0.78rem/1 var(--sans); letter-spacing: 0.16em; text-transform: uppercase; margin-bottom: 18px; }
.lead { font-size: 1.2rem; color: var(--muted); max-width: 680px; }
.center .lead { margin-left: auto; margin-right: auto; }
.tested { color: var(--muted); font-size: 0.9rem; margin-top: 14px; }
.section-head { max-width: 720px; margin: 0 auto 48px; text-align: center; }
.section-head .lead { margin: 0 auto; }

/* Hero */
.hero { padding: 72px 0 0; text-align: center; overflow: hidden; }
.hero .lead { margin: 0 auto 30px; }
.hero .actions { justify-content: center; }
.hero .facts { margin: 18px 0 0; color: var(--muted); font-size: 0.92rem; }
.shot { border-radius: var(--radius); }
.hero-shot { margin: 54px auto 0; max-width: 1040px; position: relative; }
.hero-shot::before { content: ""; position: absolute; inset: 12% 8% -4%; background: radial-gradient(closest-side, rgba(237, 150, 89, 0.28), transparent); filter: blur(30px); z-index: -1; }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: step; list-style: none; padding: 0; margin: 0; }
.steps li { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; counter-increment: step; }
.steps li::before { content: counter(step); display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: rgba(237, 150, 89, 0.14); color: var(--accent); font-weight: 700; margin-bottom: 14px; }
.steps h3 { margin-bottom: 0.35em; }
.steps p { color: var(--muted); margin: 0; }

/* Feature rows */
.feature { display: grid; grid-template-columns: 1fr 1.35fr; gap: 56px; align-items: center; padding: 44px 0; }
.feature.flip { grid-template-columns: 1.35fr 1fr; }
.feature.flip .feature-text { order: 2; }
.feature-text p { color: var(--muted); }
.feature-text ul { color: var(--muted); padding-left: 1.2em; margin: 0; }
.feature-text li { margin-bottom: 0.4em; }

/* Cards */
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.card h3 { font-family: var(--sans); font-size: 1.05rem; font-weight: 650; letter-spacing: 0; margin-bottom: 0.4em; }
.card p { color: var(--muted); margin: 0; font-size: 0.97rem; }
.card .tag { display: inline-block; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--mint); background: rgba(153, 201, 179, 0.1); border-radius: 5px; padding: 3px 7px; margin-bottom: 12px; }
a.card { display: block; text-decoration: none; color: inherit; transition: border-color 0.15s, transform 0.15s; }
a.card:hover { border-color: rgba(237, 150, 89, 0.5); transform: translateY(-2px); color: inherit; }
a.card .more { display: inline-block; margin-top: 14px; color: var(--accent-strong); font-weight: 600; font-size: 0.95rem; }

/* Tables, lists, notes */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
th, td { text-align: left; padding: 14px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { color: var(--muted); font-weight: 600; font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase; background: var(--card); }
tr:last-child td { border-bottom: 0; }
.note { background: var(--card); border: 1px solid var(--line); border-left: 3px solid var(--accent); border-radius: 10px; padding: 18px 20px; margin: 24px 0; }
.note p:last-child { margin-bottom: 0; }
.checks { list-style: none; padding: 0; margin: 0 0 1em; }
.checks li { position: relative; padding-left: 30px; margin-bottom: 0.55em; }
.checks li::before { content: ""; position: absolute; left: 4px; top: 0.55em; width: 12px; height: 7px; border-left: 2px solid var(--mint); border-bottom: 2px solid var(--mint); transform: rotate(-45deg); }

/* Articles: download, guides, FAQ, privacy */
.page-head { padding: 56px 0 8px; }
.breadcrumbs { font-size: 0.9rem; color: var(--muted); margin-bottom: 22px; }
.breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 0; }
.breadcrumbs li + li::before { content: "›"; margin-right: 6px; color: var(--muted); }
.breadcrumbs a { color: var(--muted); }
.prose { padding: 24px 0 80px; }
.prose h2 { margin-top: 1.6em; font-size: clamp(1.5rem, 3vw, 1.95rem); }
.prose h3 { margin-top: 1.4em; font-family: var(--sans); font-size: 1.1rem; font-weight: 650; letter-spacing: 0; }
.prose ol, .prose ul { padding-left: 1.3em; }
.prose li { margin-bottom: 0.5em; }
.prose figure { margin: 28px 0; }
.prose figcaption { color: var(--muted); font-size: 0.9rem; margin-top: 10px; text-align: center; }
.download-card { display: flex; flex-wrap: wrap; gap: 20px 32px; align-items: center; justify-content: space-between; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 28px; margin: 18px 0 8px; }
.download-card .version { font-family: var(--serif); font-size: 1.6rem; }
.download-card p { margin: 0; color: var(--muted); }
.checksum { display: block; margin-top: 8px; padding: 12px 14px; font-size: 0.82rem; }
details { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 0 20px; margin-bottom: 12px; }
details[open] { padding-bottom: 6px; }
summary { cursor: pointer; padding: 18px 0; font-weight: 600; font-size: 1.04rem; list-style: none; position: relative; padding-right: 28px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; position: absolute; right: 2px; top: 14px; color: var(--accent); font-size: 1.4rem; font-weight: 400; }
details[open] summary::after { content: "–"; }
details p, details ul { color: var(--muted); }

/* Support band and footer */
.support-band { display: grid; grid-template-columns: 1.4fr 1fr; gap: 32px; align-items: center; background: linear-gradient(135deg, rgba(237, 150, 89, 0.12), rgba(114, 164, 242, 0.08)); border: 1px solid var(--line); border-radius: 20px; padding: 40px; }
.support-band p { color: var(--muted); margin: 0; }
.support-band .actions { justify-content: flex-end; }
.site-footer { border-top: 1px solid var(--line); padding: 56px 0 28px; background: var(--bg-deep); font-size: 0.94rem; }
.footer-grid { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 32px; }
.footer-title { font: 700 0.78rem/1 var(--sans); letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin: 6px 0 16px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 3px; }
.site-footer a { display: inline-block; padding: 4px 0; color: var(--text); text-decoration: none; }
.footer-grid .brand { padding: 0; }
.site-footer a:hover { color: var(--accent-strong); }
.site-footer p { color: var(--muted); margin-top: 14px; }
.legal { color: var(--muted); font-size: 0.8rem; border-top: 1px solid var(--line); margin-top: 40px; padding-top: 22px; }

@media (max-width: 900px) {
  section { padding: 64px 0; }
  .feature, .feature.flip { grid-template-columns: 1fr; gap: 26px; padding: 30px 0; }
  .feature.flip .feature-text { order: 0; }
  .steps { grid-template-columns: 1fr; }
  .support-band { grid-template-columns: 1fr; padding: 28px; }
  .support-band .actions { justify-content: flex-start; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .nav { gap: 8px; padding-top: 10px; padding-bottom: 10px; }
  .nav-links { margin-left: 0; width: 100%; justify-content: space-between; gap: 6px 14px; }
  .hero { padding-top: 48px; }
  .hero .actions .button, .center .actions .button { flex: 1 1 100%; }
  .footer-grid { grid-template-columns: 1fr; }
  th, td { padding: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .button, a.card { transition: none; }
  .button:hover, a.card:hover { transform: none; }
}
