/* Harbarr marketing site — no external fonts, no trackers. */
:root {
  --navy: #0b1f33;
  --navy-2: #13283f;
  --ink: #14202b;
  --muted: #4b5b6b;
  --foam: #f4f7fb;
  --mist: #e6edf5;
  --paper: #ffffff;
  --line: #d5deea;
  --accent: #e8942a;
  --accent-2: #c47a1e;
  --link: #1a5fb4;
  --ok: #1f7a45;
  --danger: #b42318;
  --shadow: 0 18px 40px rgba(11, 31, 51, 0.12);
  --radius: 16px;
  --max: 1120px;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: light;
  --bg: var(--foam);
  --fg: var(--ink);
  --card: var(--paper);
  --header-bg: rgba(244, 247, 251, 0.86);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #08141f;
    --fg: #eef3f8;
    --card: #122233;
    --muted: #9aabc0;
    --mist: #1a2d40;
    --line: #2a3f55;
    --link: #7eb4f5;
    --header-bg: rgba(8, 20, 31, 0.86);
    --shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #08141f;
  --fg: #eef3f8;
  --card: #122233;
  --muted: #9aabc0;
  --mist: #1a2d40;
  --line: #2a3f55;
  --link: #7eb4f5;
  --header-bg: rgba(8, 20, 31, 0.86);
  --shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
}
:root[data-theme="light"] { color-scheme: light; }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
body {
  margin: 0;
  font-family: var(--sans);
  background: var(--bg);
  color: var(--fg);
  line-height: 1.55;
  min-height: 100vh;
}
img { max-width: 100%; height: auto; }
a { color: var(--link); text-underline-offset: 0.15em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.skip {
  position: absolute; left: 1rem; top: -3rem; background: var(--card); color: var(--fg);
  padding: 0.5rem 0.8rem; border-radius: 8px; z-index: 20;
}
.skip:focus { top: 0.75rem; }

.wrap { width: min(var(--max), calc(100% - 2rem)); margin-inline: auto; }
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: var(--header-bg);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 1rem; min-height: 4rem; }
.brand { display: flex; align-items: center; gap: 0.65rem; color: inherit; text-decoration: none; font-weight: 700; font-size: 1.15rem; }
.brand img { width: 36px; height: 36px; border-radius: 9px; }
.site-nav { margin-left: auto; display: flex; align-items: center; gap: 0.15rem 0.9rem; flex-wrap: wrap; }
.site-nav a { color: inherit; text-decoration: none; font-size: 0.95rem; padding: 0.3rem 0; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--accent-2); }
:root[data-theme="dark"] .site-nav a:hover,
:root[data-theme="dark"] .site-nav a[aria-current="page"],
:root:not([data-theme="light"]) .site-nav a:hover,
:root:not([data-theme="light"]) .site-nav a[aria-current="page"] { color: var(--accent); }
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) .site-nav a:hover,
  :root:not([data-theme="dark"]) .site-nav a[aria-current="page"] { color: var(--accent-2); }
}
.icon-btn {
  appearance: none; border: 1px solid var(--line); background: var(--card); color: var(--fg);
  border-radius: 999px; width: 2.4rem; height: 2.4rem; display: inline-grid; place-items: center; cursor: pointer;
}
.nav-toggle { display: none; }
@media (max-width: 860px) {
  .nav-toggle { display: inline-grid; }
  .site-nav {
    display: none; position: absolute; inset: 4.1rem 1rem auto 1rem; background: var(--card);
    border: 1px solid var(--line); border-radius: var(--radius); padding: 0.8rem 1rem;
    flex-direction: column; align-items: stretch; box-shadow: var(--shadow);
  }
  .site-nav.is-open { display: flex; }
}

.hero { padding: 3.5rem 0 2.5rem; display: grid; grid-template-columns: 1fr min(340px, 38%); gap: 3rem; align-items: center; }
@media (max-width: 860px) { .hero { grid-template-columns: 1fr; padding-top: 2rem; } }
.hero h1 { font-size: clamp(2.4rem, 5vw, 3.6rem); line-height: 1.05; margin: 0.4rem 0 0.3rem; letter-spacing: -0.03em; }
.tagline { font-size: 1.35rem; color: var(--accent-2); font-weight: 600; margin: 0 0 1rem; }
:root[data-theme="dark"] .tagline, :root:not([data-theme="light"]) .tagline { color: var(--accent); }
.lede { font-size: 1.15rem; color: var(--muted); max-width: 38rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.8rem; align-items: center; margin-top: 1.5rem; }
.app-store { display: inline-block; line-height: 0; }
.app-store img { width: 168px; height: 56px; }
.app-store:focus-visible { border-radius: 10px; }

.phone {
  background: #111;
  border-radius: 36px;
  padding: 10px;
  box-shadow: var(--shadow), 0 0 0 1px rgba(255,255,255,0.08);
  position: relative;
}
.phone::before {
  content: "";
  position: absolute; top: 16px; left: 50%; transform: translateX(-50%);
  width: 90px; height: 18px; background: #111; border-radius: 12px; z-index: 1;
}
.phone img { display: block; width: 100%; border-radius: 26px; background: #eee; }

.section { padding: 3.5rem 0; }
.section h2 { font-size: clamp(1.7rem, 3vw, 2.2rem); letter-spacing: -0.02em; margin: 0 0 0.6rem; }
.section-lead { color: var(--muted); max-width: 42rem; margin: 0 0 1.6rem; }
.privacy { background: var(--navy); color: #eef3f8; }
.privacy h2, .privacy .section-lead { color: #eef3f8; }
.privacy .section-lead { color: #c9d4e0; }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
@media (max-width: 800px) { .cards { grid-template-columns: 1fr; } }
.card {
  background: var(--card); color: var(--fg); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1.25rem 1.3rem; box-shadow: var(--shadow);
}
.privacy .card { background: rgba(255,255,255,0.06); color: #eef3f8; border-color: rgba(255,255,255,0.1); box-shadow: none; }
.card h3 { margin: 0.4rem 0 0.4rem; font-size: 1.1rem; }
.card p { margin: 0; color: var(--muted); }
.privacy .card p { color: #c9d4e0; }
.card .icon { font-size: 1.4rem; }
.privacy .icon { color: #eef3f8; display: flex; align-items: center; }
.privacy .icon svg { display: block; width: 30px; height: 30px; }

.carousel { display: grid; grid-template-columns: 1fr; gap: 0.85rem; justify-items: stretch; }
.carousel-nav { display: flex; justify-content: center; gap: 0.75rem; }
.carousel-track { position: relative; min-height: 0; }
.carousel .slide { display: none; outline: none; }
.carousel .slide.is-active { display: block; }
.carousel .phone { max-width: 320px; margin: 0 auto; }
.carousel-btn {
  appearance: none; border: 1px solid var(--line); background: var(--card); color: var(--fg);
  width: 2.6rem; height: 2.6rem; border-radius: 999px; cursor: pointer; font-size: 1.2rem;
}
.carousel-caption { text-align: center; margin: 1rem 0 0.4rem; font-weight: 600; }
.dots { display: flex; justify-content: center; gap: 0.4rem; flex-wrap: wrap; }
.dots button {
  appearance: none; border: 0; width: 0.65rem; height: 0.65rem; border-radius: 999px;
  background: var(--line); cursor: pointer; padding: 0;
}
.dots button.is-active { background: var(--accent); }
.svc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(148px, 1fr)); gap: 0.75rem; }
.svc {
  display: flex; flex-direction: column; align-items: center; gap: 0.45rem;
  text-align: center; text-decoration: none; color: inherit;
  background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 0.9rem 0.5rem;
}
.svc img { width: 48px; height: 48px; }
.svc span { font-size: 0.88rem; font-weight: 600; }
.svc:hover { border-color: var(--accent); }

.feature-groups { display: grid; gap: 1.2rem; }
.feature-group { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.2rem 1.3rem 0.6rem; }
.feature-group h3 { margin: 0 0 0.6rem; }
.feature-group ul { margin: 0 0 0.8rem; padding-left: 1.15rem; }
.feature-group li { margin: 0.25rem 0; }

.compare { width: 100%; border-collapse: collapse; background: var(--card); border-radius: var(--radius); overflow: hidden; }
.compare th, .compare td { text-align: left; padding: 0.75rem 1rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.compare th { background: var(--mist); font-weight: 600; }
.compare caption { text-align: left; font-weight: 700; font-size: 1.1rem; margin-bottom: 0.6rem; }
.table-wrap { overflow-x: auto; }

.pricing-card {
  background: var(--card); border: 1px solid var(--line); border-radius: 20px;
  padding: 1.8rem; max-width: 32rem; box-shadow: var(--shadow); position: relative;
}
.badge {
  display: inline-block; background: var(--accent); color: #111; font-weight: 700;
  font-size: 0.78rem; letter-spacing: 0.04em; text-transform: uppercase;
  padding: 0.25rem 0.6rem; border-radius: 999px;
}
.price { font-size: 2.8rem; font-weight: 800; letter-spacing: -0.03em; margin: 0.4rem 0 0; }
.price span { font-size: 1rem; font-weight: 600; color: var(--muted); }
.pricing-card ul { padding-left: 1.15rem; }

.faq details { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 0.8rem 1rem; margin: 0.5rem 0; }
.faq summary { cursor: pointer; font-weight: 600; }
.faq details p { margin: 0.5rem 0 0.2rem; color: var(--muted); }

.site-footer { border-top: 1px solid var(--line); padding: 2rem 0 3rem; color: var(--muted); font-size: 0.95rem; }
.footer-grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 1.5rem; }
@media (max-width: 700px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer a { color: inherit; }
.site-footer nav { display: flex; flex-direction: column; gap: 0.3rem; align-items: flex-start; }
.tiny { font-size: 0.85rem; }

.page-hero { padding: 2.4rem 0 1rem; }
.page-hero h1 { margin: 0 0 0.4rem; letter-spacing: -0.02em; font-size: clamp(1.9rem, 4vw, 2.6rem); }
.prose { max-width: 46rem; }
.prose h2 { margin-top: 2rem; }
.prose h3 { margin-top: 1.4rem; }
.prose ul, .prose ol { padding-left: 1.2rem; }

.svc-list { display: grid; gap: 0.8rem; }
.svc-row {
  display: grid; grid-template-columns: 56px 1fr auto; gap: 1rem; align-items: center;
  background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 0.85rem 1rem;
}
@media (max-width: 640px) { .svc-row { grid-template-columns: 48px 1fr; } .svc-links { grid-column: 2; } }
.svc-row img { width: 48px; height: 48px; }
.svc-row h2 { font-size: 1.05rem; margin: 0; }
.svc-row p { margin: 0.15rem 0 0; color: var(--muted); font-size: 0.95rem; }
.svc-links { display: flex; gap: 0.8rem; flex-wrap: wrap; }
.group-label { margin: 2rem 0 0.7rem; font-size: 1.2rem; }

.form { display: grid; gap: 0.85rem; max-width: 36rem; }
label { font-weight: 600; display: grid; gap: 0.3rem; }
input, select, textarea {
  font: inherit; color: var(--fg); background: var(--card); border: 1px solid var(--line);
  border-radius: 10px; padding: 0.6rem 0.75rem; width: 100%;
}
textarea { min-height: 9rem; resize: vertical; }
.hp { position: absolute; left: -9999px; height: 0; overflow: hidden; }
button[type="submit"], .btn {
  appearance: none; border: 0; background: var(--navy); color: #fff; font: inherit; font-weight: 700;
  padding: 0.7rem 1.1rem; border-radius: 999px; cursor: pointer; display: inline-flex; align-items: center; justify-content: center;
  text-decoration: none;
}
:root[data-theme="dark"] button[type="submit"], :root[data-theme="dark"] .btn { background: var(--accent); color: #111; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) button[type="submit"],
  :root:not([data-theme="light"]) .btn { background: var(--accent); color: #111; }
}
button[type="submit"]:disabled { opacity: 0.6; cursor: not-allowed; }
.form-status { padding: 0.7rem 0.9rem; border-radius: 10px; background: var(--mist); }
.note { color: var(--muted); font-size: 0.95rem; }

.press-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 0.8rem; }
.press-grid a { display: block; }
.press-grid img { border-radius: 16px; border: 1px solid var(--line); }

.timeline { list-style: none; padding: 0; margin: 0; }
.timeline > li { padding: 0 0 1.4rem 1.2rem; border-left: 2px solid var(--line); }
.timeline > li:last-child { border-left-color: transparent; }
.when { display: block; font-size: 0.85rem; color: var(--muted); font-weight: 600; margin-bottom: 0.2rem; }

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

sup.tm {
  font-size: 0.55em;
  font-weight: 500;
  margin-left: 0.14em;
  opacity: 0.5;
  letter-spacing: 0;
  line-height: 0;
  vertical-align: super;
}
.hero-title { display: flex; align-items: center; gap: 0.9rem; }
.hero-logo { width: clamp(52px, 6vw, 72px); height: auto; border-radius: 22%; box-shadow: 0 6px 20px rgba(0,0,0,.35); }
