:root {
  color-scheme: light dark;
  --bg: #fbfbfd;
  --surface: #ffffff;
  --text: #1d1d1f;
  --muted: #5c5c63;
  --line: #e3e3e8;
  --accent: #2a4a7f;
  --accent-text: #ffffff;
  --mark: #1b2a41;
  --focus: #0a64d8;
  --radius: 18px;
  --max: 68rem;
  --measure: 40rem;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", system-ui, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0e1116;
    --surface: #171b22;
    --text: #f2f3f5;
    --muted: #a6abb5;
    --line: #272c35;
    --accent: #8fb2f0;
    --accent-text: #0e1116;
    --mark: #e8eef7;
    --focus: #7db3ff;
  }
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh;
}
main { flex: 1 0 auto; }
img, svg { max-width: 100%; }
a { color: var(--accent); text-underline-offset: 0.2em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 6px; }
.skip-link {
  position: absolute; left: 1rem; top: -4rem; z-index: 10;
  background: var(--surface); color: var(--text); padding: 0.6rem 1rem;
  border-radius: 10px; border: 1px solid var(--line);
}
.skip-link:focus { top: 1rem; }
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 1.25rem; }
.narrow { max-width: calc(var(--measure) + 2.5rem); }

/* Header */
.site-header { padding: 1.1rem 0; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.brand { display: inline-flex; align-items: center; gap: 0.6rem; color: var(--text); text-decoration: none; font-weight: 650; font-size: 1.2rem; letter-spacing: -0.01em; }
.brand svg { width: 2rem; height: 2rem; color: var(--mark); flex: none; }
.site-nav { display: flex; gap: 1.25rem; }
.site-nav a { color: var(--muted); text-decoration: none; font-size: 0.98rem; padding: 0.35rem 0.1rem; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--text); }

/* Type */
h1, h2, h3 { line-height: 1.12; letter-spacing: -0.02em; margin: 0 0 0.6em; font-weight: 700; }
h1 { font-size: clamp(2.4rem, 8vw, 4.25rem); }
h2 { font-size: clamp(1.6rem, 4.5vw, 2.25rem); }
h3 { font-size: 1.2rem; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }
.lead { font-size: clamp(1.15rem, 3vw, 1.4rem); color: var(--muted); max-width: 34rem; line-height: 1.45; }
.eyebrow { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); font-weight: 600; margin-bottom: 0.75rem; }

/* Sections */
.hero { padding: clamp(3rem, 12vw, 7rem) 0 clamp(2.5rem, 8vw, 4.5rem); }
.hero .lead { margin-bottom: 0; }
.hero-mark { width: clamp(3.5rem, 12vw, 5rem); height: auto; color: var(--mark); margin-bottom: 1.5rem; display: block; }
.section { padding: clamp(2.5rem, 7vw, 4.5rem) 0; border-top: 1px solid var(--line); }
.section > .wrap > h2 { margin-bottom: 1.25rem; }
.prose { max-width: var(--measure); }
.wrap.prose { max-width: var(--max); }
.wrap.prose > * { max-width: var(--measure); }
.prose h2 { margin-top: 1.8em; }
.prose h2:first-child { margin-top: 0; }

/* Cards */
.cards { display: grid; gap: 1rem; grid-template-columns: 1fr; }
.card {
  display: flex; gap: 1.1rem; align-items: center;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.25rem; text-decoration: none; color: var(--text);
  transition: transform 0.2s ease, border-color 0.2s ease;
}
a.card:hover { border-color: var(--accent); transform: translateY(-2px); }
.card img { width: 4.5rem; height: 4.5rem; border-radius: 22.5%; flex: none; }
.card h3 { margin: 0 0 0.2rem; }
.card p { margin: 0; color: var(--muted); font-size: 0.98rem; line-height: 1.45; }
.card .more { color: var(--accent); font-weight: 600; display: inline-block; margin-top: 0.4rem; font-size: 0.95rem; }

.features { display: grid; gap: 1rem; grid-template-columns: 1fr; }
.feature { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.4rem; }
.feature p { margin: 0; color: var(--muted); }
.feature h3 { margin-bottom: 0.4rem; }

.steps-grid { display: grid; gap: 2rem; grid-template-columns: 1fr; }
.steps { list-style: none; counter-reset: step; padding: 0; margin: 0; }
.steps li { counter-increment: step; position: relative; padding: 0 0 1rem 2.6rem; }
.steps li::before {
  content: counter(step); position: absolute; left: 0; top: 0.1rem;
  width: 1.8rem; height: 1.8rem; border-radius: 50%;
  background: var(--accent); color: var(--accent-text);
  font-size: 0.9rem; font-weight: 700; display: grid; place-items: center;
}

/* Harbor hero */
.app-hero { padding: clamp(2.5rem, 9vw, 5.5rem) 0 clamp(2rem, 6vw, 3.5rem); }
.app-hero-inner { display: grid; gap: 2rem; align-items: center; grid-template-columns: 1fr; }
.app-icon { width: clamp(6.5rem, 26vw, 11rem); height: auto; aspect-ratio: 1; border-radius: 22.5%; box-shadow: 0 10px 40px rgba(20, 20, 50, 0.25); justify-self: start; }
.app-hero h1 { font-size: clamp(2.2rem, 7vw, 3.75rem); max-width: 16ch; }
.app-name { font-size: 1.1rem; font-weight: 650; color: var(--muted); margin-bottom: 0.5rem; }

.button {
  display: inline-block; padding: 0.8rem 1.5rem; border-radius: 999px;
  background: var(--accent); color: var(--accent-text); font-weight: 650;
  text-decoration: none; font-size: 1.05rem; margin-top: 1.5rem;
}
.button.is-disabled { background: transparent; color: var(--muted); border: 1.5px dashed var(--muted); cursor: default; }
.fineprint { font-size: 0.85rem; color: var(--muted); }

.placeholder {
  display: inline-block; padding: 0.15rem 0.6rem; border: 1.5px dashed var(--muted);
  border-radius: 8px; color: var(--muted); font-weight: 600; font-size: 0.95em;
}

/* Footer */
.site-footer { margin-top: 3rem; border-top: 1px solid var(--line); padding: 1.75rem 0 2.5rem; color: var(--muted); font-size: 0.9rem; }
.site-footer .wrap { display: grid; gap: 0.75rem; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 0.4rem 1.25rem; }
.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--text); }
.site-footer p { margin: 0; }

@media (min-width: 40rem) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .features { grid-template-columns: repeat(3, 1fr); }
  .steps-grid { grid-template-columns: repeat(2, 1fr); gap: 3rem; }
  .app-hero-inner { grid-template-columns: 1fr auto; gap: 3rem; }
  .app-icon { justify-self: end; grid-column: 2; grid-row: 1; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}
