/* HitchBalance — hitchbalance.com — "Ember" design system (light only) */

@font-face {
  font-family: "Oswald";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/assets/fonts/oswald-500.woff2") format("woff2");
}
@font-face {
  font-family: "Oswald";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/assets/fonts/oswald-600.woff2") format("woff2");
}
@font-face {
  font-family: "Source Sans 3";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/source-sans-3-400.woff2") format("woff2");
}
@font-face {
  font-family: "Source Sans 3";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/assets/fonts/source-sans-3-600.woff2") format("woff2");
}

:root {
  color-scheme: light;
  --ground: #EEF0F2;
  --slate: #1F2A35;
  --orange: #C8551A;        /* large accents only: rules, marks, text 24px+ */
  --orange-text: #B84A14;   /* body-size text and buttons under 24px */
  --orange-deep: #9E3F11;   /* hover state for buttons */
  --text: #1F2A35;
  --text-2: #4A5561;
  --line: #D5DAE0;
  --white: #FFFFFF;
  --on-slate-2: #D5DAE0;    /* secondary text on slate */
  --focus: #B84A14;
  --heading: "Oswald", "Arial Narrow", Impact, sans-serif;
  --body: "Source Sans 3", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --radius: 8px;
  --container: 1120px;
  --gutter: 16px;
  --transition: color 150ms ease, background-color 150ms ease, border-color 150ms ease;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: 90px;
}

body {
  margin: 0;
  background: var(--ground);
  color: var(--text);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.55;
  min-width: 320px;
  overflow-x: hidden;
}
@media (min-width: 600px) {
  body { font-size: 18px; }
}

h1, h2, h3, h4 {
  font-family: var(--heading);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  line-height: 1.15;
  margin: 0 0 0.5em;
  font-weight: 600;
  overflow-wrap: anywhere;
}
h1 { font-size: clamp(2rem, 5vw, 3.25rem); }
h2 { font-size: clamp(1.5rem, 3.4vw, 2.125rem); }
h3 { font-size: 1.25rem; font-weight: 500; }
h4 { font-size: 1.1rem; font-weight: 500; }

p, ul, ol, table, details, figure { margin: 0 0 1em; }
p:last-child, ul:last-child, ol:last-child { margin-bottom: 0; }
strong { font-weight: 600; }
img, svg { max-width: 100%; height: auto; display: block; }
code { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 0.95em; }

a { color: var(--orange-text); text-decoration: underline; text-underline-offset: 0.15em; transition: var(--transition); }
a:hover { color: var(--orange-deep); }

:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
}
.on-slate :focus-visible, .on-slate:focus-visible { outline-color: var(--white); }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0; border: 0;
  overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%);
  white-space: nowrap;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

.prose { max-width: 68ch; }
.container.prose { max-width: var(--container); }
.container.prose > * { max-width: 68ch; }
.section { padding: 48px 0; }
@media (min-width: 900px) { .section { padding: 72px 0; } }
.section-title { margin-bottom: 0.75em; }
.section-title::after {
  content: "";
  display: block;
  width: 56px; height: 5px;
  background: var(--orange);
  margin-top: 12px;
}
.lead { font-size: 1.15em; color: var(--text-2); }

/* Skip link */
.skip-link {
  position: absolute;
  left: var(--gutter); top: -100px;
  z-index: 100;
  background: var(--slate);
  color: var(--white);
  padding: 10px 16px;
  border-radius: var(--radius);
  font-family: var(--heading);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  text-decoration: none;
}
.skip-link:focus { top: 12px; outline-color: var(--white); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 22px;
  border-radius: var(--radius);
  border: 2px solid transparent;
  font-family: var(--heading);
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: var(--transition);
  line-height: 1.2;
  text-align: center;
}
.btn-primary { background: var(--orange-text); border-color: var(--orange-text); color: var(--white); }
.btn-primary:hover { background: var(--orange-deep); border-color: var(--orange-deep); color: var(--white); }
.btn-secondary { background: transparent; border-color: var(--slate); color: var(--slate); }
.btn-secondary:hover { background: var(--slate); color: var(--white); }
.on-slate .btn-secondary { border-color: var(--white); color: var(--white); }
.on-slate .btn-secondary:hover { background: var(--white); color: var(--slate); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin: 24px 0 16px; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--ground);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 16px;
  min-height: 64px;
  padding-top: 8px;
  padding-bottom: 8px;
}
.brand { display: inline-flex; align-items: center; min-height: 44px; }
.brand img { width: 200px; height: 21px; }
@media (max-width: 359px) { .brand img { width: 170px; height: 18px; } }

.nav-toggle {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  min-width: 44px;
  padding: 8px 12px;
  background: transparent;
  border: 2px solid var(--slate);
  border-radius: var(--radius);
  color: var(--slate);
  font-family: var(--heading);
  font-size: 0.95rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
}
.nav-toggle[hidden] { display: none; }
.burger {
  width: 20px; height: 2px;
  background: currentColor;
  position: relative;
  display: block;
}
.burger::before, .burger::after {
  content: ""; position: absolute; left: 0; width: 20px; height: 2px; background: currentColor;
}
.burger::before { top: -6px; }
.burger::after { top: 6px; }
.nav-toggle[aria-expanded="true"] .burger { background: transparent; }
.nav-toggle[aria-expanded="true"] .burger::before { top: 0; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .burger::after { top: 0; transform: rotate(-45deg); }

.site-nav { width: 100%; }
.nav-list {
  list-style: none;
  margin: 0; padding: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.nav-list a {
  display: block;
  padding: 10px 8px;
  min-height: 44px;
  font-family: var(--heading);
  font-size: 1.05rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--slate);
  border-bottom: 2px solid transparent;
}
.nav-list a:hover { color: var(--orange-text); }
.nav-list a[aria-current="page"] { border-bottom-color: var(--orange); }
.nav-cta { margin: 10px 0 8px; }

/* With JavaScript, the nav collapses on phones behind the button. Without it the list stays visible. */
.site-header.js .site-nav { display: none; }
.site-header.js .site-nav.is-open { display: block; }

@media (min-width: 900px) {
  .header-inner { flex-wrap: nowrap; }
  .nav-toggle, .nav-toggle:not([hidden]) { display: none; }
  .site-nav, .site-header.js .site-nav {
    display: flex;
    align-items: center;
    gap: 20px;
    width: auto;
  }
  .nav-list { flex-direction: row; gap: 4px; }
  .nav-list a { padding: 10px 10px; }
  .nav-cta { margin: 0; }
}

/* Hero */
.hero {
  background: var(--slate);
  color: var(--white);
  padding: 56px 0 48px;
}
@media (min-width: 900px) { .hero { padding: 88px 0 72px; } }
.hero-inner { display: grid; gap: 32px; align-items: center; }
@media (min-width: 900px) { .hero-inner.has-figure { grid-template-columns: 3fr 2fr; } }
.hero h1 { color: var(--white); max-width: 16ch; }
.hero .subhead { font-size: 1.2em; color: var(--on-slate-2); max-width: 60ch; }
.hero a:not(.btn) { color: var(--white); }
.availability { color: var(--on-slate-2); font-weight: 600; }
.hero-mark { display: none; }
@media (min-width: 900px) {
  .hero-mark { display: flex; justify-content: center; }
  .hero-mark img { width: 100%; max-width: 420px; height: auto; }
}
.hero figure { margin: 0; }
.hero figcaption { color: var(--on-slate-2); font-size: 0.9em; margin-top: 8px; }

/* Badges */
.badges { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; margin: 16px 0 0; padding: 0; list-style: none; }
.badges li { margin: 0; }
.badges img { height: 48px; width: auto; }

/* Grids and cards */
.grid {
  display: grid;
  gap: 20px;
  grid-template-columns: 1fr;
}
@media (min-width: 620px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) {
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
}
.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
}
.card h3 { margin-bottom: 0.4em; }
.card p { color: var(--text-2); }
.card p:last-child { margin-bottom: 0; }

/* Control strip */
.band {
  background: var(--slate);
  color: var(--white);
  padding: 28px 0;
  text-align: center;
}
.band p {
  margin: 0;
  font-family: var(--heading);
  font-size: clamp(1rem, 2.3vw, 1.35rem);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  line-height: 1.7;
}

/* Pricing */
.tiers { align-items: stretch; }
.tier { display: flex; flex-direction: column; }
.tier h2, .tier h3 { font-size: 1.25rem; font-weight: 500; margin-bottom: 0.4em; }
.tier .price {
  font-family: var(--heading);
  font-size: 2.25rem;
  font-weight: 600;
  color: var(--slate);
  margin: 0 0 8px;
  line-height: 1;
}
.tier .price small { font-size: 0.5em; font-weight: 500; letter-spacing: 0.04em; }
.tier .terms { margin-top: auto; padding-top: 12px; color: var(--text); font-weight: 600; }
.tier.featured { border-color: var(--orange); border-width: 2px; }
.price-note { color: var(--text-2); font-size: 0.95em; margin-top: 16px; }

.partner-pass { border-left: 5px solid var(--orange); padding: 12px 20px; background: var(--white); border-radius: 0 var(--radius) var(--radius) 0; }

/* Comparison table */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; margin-bottom: 1em; }
table.compare {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-size: 0.95em;
}
table.compare caption { text-align: left; font-weight: 600; padding: 0 0 8px; caption-side: top; }
table.compare th, table.compare td {
  padding: 10px 12px;
  border-top: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}
table.compare thead th {
  border-top: 0;
  background: var(--slate);
  color: var(--white);
  font-family: var(--heading);
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
table.compare th[scope="row"] { font-weight: 400; }
table.compare td { text-align: center; font-weight: 600; width: 64px; }
table.compare thead th:not(:first-child) { text-align: center; }
table.compare td .no { color: var(--text-2); font-weight: 400; }
@media (max-width: 480px) {
  table.compare th, table.compare td { padding: 8px 6px; }
  table.compare td { width: 40px; }
}

/* FAQ */
.faq details {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0 20px;
  margin-bottom: 10px;
}
.faq summary {
  cursor: pointer;
  padding: 14px 0;
  min-height: 44px;
  font-family: var(--heading);
  font-size: 1.1rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.4em; color: var(--orange); line-height: 1; }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { padding-bottom: 16px; color: var(--text-2); }

/* Step lists (Help) */
.steps { padding-left: 1.3em; }
.steps li { margin-bottom: 0.3em; }

/* Forms */
.form-grid { display: grid; gap: 16px; max-width: 560px; }
.field label { display: block; font-weight: 600; margin-bottom: 6px; }
.field input[type="text"], .field input[type="email"], .field textarea {
  width: 100%;
  font: inherit;
  padding: 10px 12px;
  border: 1px solid #6B7682;
  border-radius: var(--radius);
  background: var(--white);
  color: var(--text);
  min-height: 44px;
}
.field textarea { min-height: 160px; resize: vertical; }
.field input:focus, .field textarea:focus { border-color: var(--slate); }
.field-check { display: flex; align-items: flex-start; gap: 10px; }
.field-check input { width: 22px; height: 22px; margin: 2px 0 0; accent-color: var(--orange-text); }
.form-status { min-height: 1.5em; color: var(--orange-text); font-weight: 600; margin: 0; }
.form-after { margin-top: 16px; }
.hp { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.contact-block { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 24px; max-width: 560px; }
.contact-block p { margin: 0 0 4px; }

/* Legal pages */
.legal { display: grid; gap: 32px; align-items: start; }
@media (min-width: 900px) {
  .legal { grid-template-columns: 260px minmax(0, 1fr); }
  .toc { position: sticky; top: 88px; max-height: calc(100vh - 100px); overflow-y: auto; }
}
.toc {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 18px;
  font-size: 0.95em;
}
.toc-title { font-family: var(--heading); text-transform: uppercase; letter-spacing: 0.04em; margin: 0 0 8px; }
.toc ul { margin: 0; padding: 0; list-style: none; }
.toc li { margin-bottom: 4px; }
.toc a { color: var(--slate); text-decoration: none; }
.toc a:hover { color: var(--orange-text); text-decoration: underline; }
.legal-body { max-width: 72ch; }
.legal-body h2 { font-size: 1.35rem; margin-top: 1.6em; scroll-margin-top: 90px; }
.legal-dates { color: var(--text-2); font-weight: 600; }
.legal-body ul, .legal-body ol { padding-left: 1.3em; }
.legal-body li { margin-bottom: 0.35em; }

/* Footnotes */
.footnote {
  font-size: 0.92em;
  color: var(--text-2);
  border-top: 1px solid var(--line);
  padding-top: 16px;
  margin-top: 32px;
}

/* Footer */
.site-footer {
  background: var(--slate);
  color: var(--white);
  padding: 40px 0 32px;
  margin-top: 48px;
}
.footer-brand { width: 200px; height: 21px; margin-bottom: 20px; }
.footer-links {
  list-style: none;
  margin: 0 0 20px; padding: 0;
  display: flex; flex-wrap: wrap; gap: 4px 24px;
}
.footer-links a {
  color: var(--white);
  display: inline-block;
  padding: 8px 0;
  min-height: 44px;
  line-height: 28px;
}
.footer-links a:hover { color: var(--on-slate-2); }
.legal-line { font-size: 0.85em; color: var(--on-slate-2); margin: 0 0 4px; }

/* 404 */
.simple-page { padding: 64px 0; text-align: center; }
.simple-page .links { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 24px; }

/* Utility */
.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 28px; }
.center { text-align: center; }
.inline-list { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 20px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}

@media print {
  .site-header, .site-footer, .skip-link, .toc, .btn { display: none !important; }
  body { background: #fff; color: #000; }
}
