/* karhub.app
 *
 * One stylesheet for the landing page and the two legal documents. No framework and no build
 * step — the site is four files on a static host, and a dependency would outweigh the page.
 *
 * The palette comes from the app icon: the night sky behind the car. */

:root {
  --bg: #070b14;
  --bg-raised: #0e1524;
  --bg-card: #121a2c;
  --border: #1e2942;
  --text: #e8edf7;
  --text-dim: #96a3bd;
  --accent: #4d9fff;
  --accent-warm: #ffb648;
  --max: 1080px;
  --radius: 14px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.65 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }

/* ---- Site header ---- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  /* Translucent so the hero image shows through as it scrolls under. */
  background: rgba(7, 11, 20, 0.82);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 650;
  font-size: 18px;
  letter-spacing: -0.01em;
}
.brand:hover { text-decoration: none; }
.brand img { width: 30px; height: 30px; border-radius: 7px; display: block; }

.site-header nav { display: flex; gap: 22px; font-size: 15px; }
.site-header nav a { color: var(--text-dim); }
.site-header nav a:hover { color: var(--text); text-decoration: none; }

/* ---- Hero ---- */

.hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: url("hero.jpg") center 62% / cover no-repeat;
  opacity: 0.55;
}

/* Fades the photograph into the page background so the text never sits on busy pixels. */
.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(7,11,20,0.55) 0%, rgba(7,11,20,0.8) 55%, var(--bg) 100%);
}

.hero .wrap {
  position: relative;
  padding: 92px 24px 88px;
  text-align: center;
}

.hero h1 {
  margin: 0 0 18px;
  font-size: clamp(38px, 7vw, 62px);
  line-height: 1.05;
  letter-spacing: -0.03em;
  font-weight: 700;
}

.hero .tagline {
  margin: 0 auto 12px;
  max-width: 620px;
  font-size: clamp(17px, 2.4vw, 21px);
  color: var(--text);
}

.hero .sub {
  margin: 0 auto 32px;
  max-width: 560px;
  color: var(--text-dim);
}

.hero-links {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  padding: 11px 22px;
  border-radius: 10px;
  background: var(--accent);
  color: #04101f;
  font-weight: 620;
  font-size: 15px;
  border: 1px solid transparent;
}
.btn:hover { text-decoration: none; filter: brightness(1.08); }

.btn.ghost {
  background: rgba(18, 26, 44, 0.75);
  border-color: var(--border);
  color: var(--text);
}
.btn.ghost:hover { border-color: var(--accent); }

.badge {
  display: inline-block;
  margin-bottom: 22px;
  padding: 5px 13px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(18, 26, 44, 0.7);
  color: var(--text-dim);
  font-size: 13px;
  letter-spacing: 0.02em;
}

/* ---- Sections ---- */

section { padding: 76px 0; }
section.alt { background: var(--bg-raised); border-block: 1px solid var(--border); }

h2 {
  margin: 0 0 12px;
  font-size: clamp(26px, 4vw, 34px);
  letter-spacing: -0.02em;
  font-weight: 680;
}

.section-intro {
  margin: 0 0 42px;
  max-width: 620px;
  color: var(--text-dim);
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(272px, 1fr));
  gap: 18px;
}

.card {
  padding: 26px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.card h3 {
  margin: 0 0 8px;
  font-size: 17px;
  font-weight: 640;
  letter-spacing: -0.01em;
}

.card p { margin: 0; color: var(--text-dim); font-size: 15px; }

.card .tag {
  display: inline-block;
  margin-bottom: 12px;
  padding: 3px 9px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 620;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.tag.free { background: rgba(77, 159, 255, 0.14); color: var(--accent); }
.tag.plus { background: rgba(255, 182, 72, 0.14); color: var(--accent-warm); }

/* ---- Steps ---- */

.steps { counter-reset: step; display: grid; gap: 14px; max-width: 760px; }

.step {
  display: flex;
  gap: 18px;
  padding: 20px 22px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.step::before {
  counter-increment: step;
  content: counter(step);
  flex: 0 0 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(77, 159, 255, 0.14);
  color: var(--accent);
  font-size: 14px;
  font-weight: 660;
}

.step h3 { margin: 3px 0 5px; font-size: 16px; font-weight: 640; }
.step p { margin: 0; color: var(--text-dim); font-size: 15px; }

/* ---- Pricing ---- */

.pricing { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; max-width: 720px; }

.plan {
  padding: 30px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.plan.featured { border-color: rgba(255, 182, 72, 0.42); }

.plan .name { font-size: 14px; color: var(--text-dim); text-transform: uppercase; letter-spacing: 0.06em; }
.plan .price { margin: 10px 0 4px; font-size: 34px; font-weight: 700; letter-spacing: -0.02em; }
.plan .price span { font-size: 15px; font-weight: 400; color: var(--text-dim); }
.plan ul { margin: 18px 0 0; padding-left: 18px; color: var(--text-dim); font-size: 15px; }
.plan li { margin-bottom: 7px; }

.note { margin-top: 26px; max-width: 720px; color: var(--text-dim); font-size: 14px; }

/* ---- Footer ---- */

.site-footer {
  padding: 42px 0;
  border-top: 1px solid var(--border);
  color: var(--text-dim);
  font-size: 14px;
}
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; }
.site-footer nav { display: flex; gap: 20px; flex-wrap: wrap; }

/* ---- Legal documents ---- */

.doc { background: var(--bg); }

.doc-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  max-width: 800px;
  margin: 0 auto;
  padding: 22px 24px;
  border-bottom: 1px solid var(--border);
}
.doc-header nav { display: flex; gap: 20px; font-size: 15px; }
.doc-header nav a { color: var(--text-dim); }

.prose {
  max-width: 800px;
  margin: 0 auto;
  padding: 40px 24px 72px;
}

.prose h1 { font-size: clamp(28px, 5vw, 38px); letter-spacing: -0.02em; margin: 0 0 6px; }
.prose h2 { font-size: 23px; margin: 46px 0 12px; padding-top: 12px; border-top: 1px solid var(--border); }
.prose h3 { font-size: 18px; margin: 30px 0 8px; }
.prose p { color: #cfd8e8; }
.prose li { color: #cfd8e8; margin-bottom: 7px; }
.prose strong { color: var(--text); }
.prose hr { border: 0; border-top: 1px solid var(--border); margin: 36px 0; }
.prose code {
  padding: 2px 6px;
  background: var(--bg-card);
  border-radius: 5px;
  font-size: 0.9em;
}

/* Wide tables scroll inside their own box rather than pushing the page sideways. */
.table-wrap { overflow-x: auto; margin: 18px 0; -webkit-overflow-scrolling: touch; }

.prose table { border-collapse: collapse; width: 100%; font-size: 14.5px; }
.prose th, .prose td {
  padding: 10px 14px;
  border: 1px solid var(--border);
  text-align: left;
  vertical-align: top;
}
.prose th { background: var(--bg-card); font-weight: 620; }
.prose td { color: #cfd8e8; }

.doc-footer {
  max-width: 800px;
  margin: 0 auto;
  padding: 26px 24px 48px;
  border-top: 1px solid var(--border);
  color: var(--text-dim);
  font-size: 14px;
}

@media (max-width: 640px) {
  .hero .wrap { padding: 68px 24px 76px; }
  section { padding: 56px 0; }
  .site-header nav { gap: 16px; font-size: 14px; }
}
