/* ─────────────────────────────────────────────────────────────
   budgetwheels.ca — Phase 0
   Built on Claude design-system tokens (warm-neutral spine + clay accent).
   Source of tokens: claude-cowork manager/claude-design-system/tokens.css
   ──────────────────────────────────────────────────────────── */

:root {
  /* base swatches */
  --swatch--slate-dark:   #141413;
  --swatch--slate-medium: #3d3d3a;
  --swatch--slate-light:  #5e5d59;
  --swatch--ivory-light:  #faf9f5;
  --swatch--ivory-medium: #f0eee6;
  --swatch--ivory-dark:   #e8e6dc;
  --swatch--cloud-light:  #d1cfc5;
  --swatch--cloud-medium: #b0aea5;
  --swatch--cloud-dark:   #87867f;
  --swatch--oat:          #e3dacc;
  --swatch--clay:         #d97757;
  --swatch--accent:       #c6613f;

  /* surfaces */
  --bg-page:    #faf9f5;
  --bg-card:    #ffffff;
  --bg-raised:  #f0eee6;
  --bg-inset:   #e8e6dc;

  /* text */
  --text-strong: #141413;
  --text-body:   #3d3d3a;
  --text-muted:  #5e5d59;
  --text-on-clay:#ffffff;

  /* border */
  --border-soft:   #e8e6dc;
  --border-medium: #d1cfc5;
  --border-strong: #b0aea5;

  /* brand */
  --accent-brand:  #d97757;
  --accent-hover:  #c6613f;

  /* type */
  --font-sans:    "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-display: "Source Serif 4", Georgia, "Times New Roman", Times, serif;
  --font-mono:    "JetBrains Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  /* radii */
  --radius-sm:    0.25rem;
  --radius-md:    0.5rem;
  --radius-lg:    1rem;
  --radius-round: 100vw;

  /* shadow */
  --shadow-sm: 0 1px 2px 0 rgba(0,0,0,0.06), 0 2px 8px 0 rgba(0,0,0,0.08);
  --shadow-md: 0 2px 4px 0 rgba(0,0,0,0.07), 0 6px 16px 0 rgba(0,0,0,0.08);

  /* motion */
  --ease: cubic-bezier(0, 0, 0.2, 1);
}

/* reset */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.55;
  color: var(--text-body);
  background: var(--bg-page);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, svg { display: block; max-width: 100%; height: auto; }
button, input, textarea, select { font: inherit; color: inherit; }
a { color: var(--accent-brand); text-decoration: none; }
a:hover { color: var(--accent-hover); text-decoration: underline; }

/* skip link */
.skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--text-strong); color: #fff; padding: 0.5rem 0.75rem;
  border-radius: var(--radius-sm); z-index: 100;
}
.skip:focus { left: 0.5rem; top: 0.5rem; }

/* layout */
.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1.25rem;
}
@media (min-width: 768px) {
  .container { padding: 0 2rem; }
}

/* ── disclosure chip ─────────────────────────── */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.78rem;
  line-height: 1.1;
  font-weight: 500;
  color: var(--text-strong);
  background: var(--bg-raised);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-round);
  padding: 0.35rem 0.7rem;
  white-space: nowrap;
  letter-spacing: 0.005em;
}
.chip-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent-brand);
  flex-shrink: 0;
}

/* ── header ──────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 249, 245, 0.92);
  backdrop-filter: saturate(180%) blur(8px);
  -webkit-backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid var(--border-soft);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 0;
  min-height: 64px;
}
.brand {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-strong);
  letter-spacing: -0.01em;
  text-decoration: none;
}
.brand:hover { color: var(--text-strong); text-decoration: none; }
.brand-dot { color: var(--accent-brand); }

.header-chip-wrap {
  display: none;
}
@media (min-width: 900px) {
  .header-chip-wrap { display: flex; flex: 1; justify-content: center; }
}

.nav {
  display: none;
  align-items: center;
  gap: 1.5rem;
}
.nav a {
  color: var(--text-body);
  font-size: 0.95rem;
  font-weight: 500;
}
.nav a:hover { color: var(--text-strong); text-decoration: none; }
.nav a.is-active { color: var(--text-strong); }
@media (min-width: 768px) {
  .nav { display: flex; }
}

.menu-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px; height: 40px;
  border: 1px solid var(--border-medium);
  background: var(--bg-card);
  border-radius: var(--radius-sm);
  cursor: pointer;
}
@media (min-width: 768px) { .menu-toggle { display: none; } }

.menu-toggle svg { width: 18px; height: 18px; stroke: var(--text-strong); }

#mobile-menu {
  display: none;
  border-top: 1px solid var(--border-soft);
  padding: 0.5rem 0 1rem;
}
#mobile-menu.is-open { display: block; }
#mobile-menu a {
  display: block;
  padding: 0.65rem 0;
  color: var(--text-body);
  font-weight: 500;
  border-bottom: 1px solid var(--border-soft);
}

/* mobile chip — show below header on small screens */
.mobile-chip-row {
  display: flex;
  justify-content: center;
  padding: 0.5rem 1rem;
  background: var(--bg-raised);
  border-bottom: 1px solid var(--border-soft);
}
@media (min-width: 900px) { .mobile-chip-row { display: none; } }

/* ── hero ────────────────────────────────────── */
.hero {
  padding: 3rem 0 3.5rem;
}
@media (min-width: 768px) {
  .hero { padding: 5rem 0 5.5rem; }
}
.hero h1 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2.25rem, 1.6rem + 3.2vw, 4rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--text-strong);
  margin: 0 0 1.25rem;
  max-width: 18ch;
}
.hero .sub {
  font-size: clamp(1.05rem, 0.95rem + 0.4vw, 1.25rem);
  color: var(--text-body);
  max-width: 36rem;
  margin: 0 0 2rem;
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 1.25rem;
}
.hero-eyebrow::before {
  content: "";
  width: 22px; height: 1px; background: var(--text-muted);
}

/* buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.4rem;
  border-radius: var(--radius-round);
  font-weight: 600;
  font-size: 0.97rem;
  line-height: 1.1;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color 200ms var(--ease), color 200ms var(--ease), border-color 200ms var(--ease);
  text-decoration: none;
}
.btn:hover { text-decoration: none; }
.btn-primary {
  background: var(--accent-brand);
  color: var(--text-on-clay);
}
.btn-primary:hover { background: var(--accent-hover); color: var(--text-on-clay); }
.btn-secondary {
  background: transparent;
  color: var(--text-strong);
  border-color: var(--border-strong);
}
.btn-secondary:hover { background: var(--bg-raised); color: var(--text-strong); }

.cta-row { display: flex; flex-wrap: wrap; gap: 0.75rem; }

/* ── sections ────────────────────────────────── */
.section {
  padding: 3.5rem 0;
  border-top: 1px solid var(--border-soft);
}
@media (min-width: 768px) {
  .section { padding: 5rem 0; }
}
.section-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--accent-brand);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin: 0 0 0.5rem;
}
.section h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.75rem, 1.5rem + 1vw, 2.5rem);
  line-height: 1.1;
  letter-spacing: -0.015em;
  color: var(--text-strong);
  margin: 0 0 2rem;
  max-width: 22ch;
}
.section h2.center { margin-inline: auto; text-align: center; }
.section-lede {
  font-size: 1.05rem;
  color: var(--text-body);
  max-width: 42rem;
  margin: 0 0 2.5rem;
}

/* value props grid */
.props {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}
@media (min-width: 720px) { .props { grid-template-columns: repeat(3, 1fr); gap: 1.5rem; } }
.prop-card {
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
}
.prop-card h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.15rem;
  margin: 0 0 0.5rem;
  color: var(--text-strong);
}
.prop-card p { margin: 0; font-size: 0.97rem; color: var(--text-body); }
.prop-num {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--accent-brand);
  letter-spacing: 0.08em;
  margin: 0 0 0.75rem;
}

/* how-it-works */
.steps {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr;
  counter-reset: stp;
}
@media (min-width: 768px) { .steps { grid-template-columns: repeat(3, 1fr); gap: 2rem; } }
.step {
  counter-increment: stp;
  position: relative;
  padding: 1.5rem 1.25rem;
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
}
.step::before {
  content: counter(stp, decimal-leading-zero);
  display: block;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent-brand);
  letter-spacing: 0.06em;
  margin-bottom: 0.6rem;
}
.step h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.2rem;
  margin: 0 0 0.4rem;
  color: var(--text-strong);
}
.step p { margin: 0; color: var(--text-body); font-size: 0.97rem; }

/* trust strip */
.trust {
  background: var(--bg-raised);
  border-top: 1px solid var(--border-soft);
  border-bottom: 1px solid var(--border-soft);
  padding: 2rem 0;
  text-align: center;
}
.trust p {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.trust strong { color: var(--text-strong); font-weight: 600; }

/* pricing teaser + pricing page */
.tiers {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr;
}
@media (min-width: 768px) { .tiers { grid-template-columns: repeat(3, 1fr); gap: 1.5rem; } }
.tier {
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  padding: 1.75rem 1.5rem 2rem;
  display: flex; flex-direction: column;
}
.tier.is-featured {
  border-color: var(--accent-brand);
  box-shadow: var(--shadow-md);
  position: relative;
}
.tier.is-featured::before {
  content: "Most popular";
  position: absolute;
  top: -0.7rem; left: 1.5rem;
  background: var(--accent-brand);
  color: var(--text-on-clay);
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.3rem 0.6rem;
  border-radius: var(--radius-round);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.tier-name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.3rem;
  margin: 0 0 0.25rem;
  color: var(--text-strong);
}
.tier-tag {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin: 0 0 1.25rem;
}
.tier-price {
  font-family: var(--font-mono);
  font-size: 2.2rem;
  font-weight: 600;
  color: var(--text-strong);
  letter-spacing: -0.02em;
  line-height: 1;
}
.tier-price-unit {
  font-family: var(--font-sans);
  font-size: 0.85rem;
  color: var(--text-muted);
  margin: 0.35rem 0 1.25rem;
}
.tier-features {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  flex-grow: 1;
}
.tier-features li {
  padding-left: 1.5rem;
  position: relative;
  font-size: 0.95rem;
  color: var(--text-body);
}
.tier-features li::before {
  content: "✓";
  position: absolute; left: 0; top: 0;
  color: var(--accent-brand);
  font-weight: 700;
}
.tier-features li.dim { color: var(--text-muted); }
.tier-features li.dim::before { content: "—"; color: var(--text-muted); }

/* form */
.form-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr;
  max-width: 640px;
}
@media (min-width: 720px) { .form-grid.two-col { grid-template-columns: 1fr 1fr; } }
.field { display: flex; flex-direction: column; }
.field label {
  font-weight: 500;
  font-size: 0.9rem;
  color: var(--text-strong);
  margin-bottom: 0.4rem;
}
.field .help {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-top: 0.3rem;
}
.field input[type="text"],
.field input[type="email"],
.field input[type="tel"],
.field input[type="number"],
.field select,
.field textarea {
  padding: 0.7rem 0.85rem;
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-md);
  background: var(--bg-card);
  font-size: 1rem;
  color: var(--text-strong);
  width: 100%;
  transition: border-color 200ms var(--ease), box-shadow 200ms var(--ease);
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent-brand);
  box-shadow: 0 0 0 3px rgba(217,119,87,0.18);
}
.field textarea { min-height: 110px; resize: vertical; }
.checks {
  display: grid;
  gap: 0.5rem;
  grid-template-columns: 1fr 1fr;
  margin-top: 0.3rem;
}
.checks label {
  display: flex; align-items: center; gap: 0.5rem;
  font-weight: 400;
  font-size: 0.95rem;
  color: var(--text-body);
  cursor: pointer;
}
.checks input { accent-color: var(--accent-brand); width: 18px; height: 18px; }
.form-actions {
  margin-top: 0.5rem;
  display: flex; gap: 0.75rem; flex-wrap: wrap; align-items: center;
}
.form-note {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-top: 0.6rem;
}

/* generic prose */
.prose { max-width: 38rem; }
.prose h2 { margin-top: 2.5rem; }
.prose h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.25rem;
  margin: 2rem 0 0.5rem;
  color: var(--text-strong);
}
.prose p { margin: 0 0 1rem; }
.prose ul { padding-left: 1.25rem; margin: 0 0 1rem; }
.prose ul li { margin-bottom: 0.4rem; }

/* legal callout */
.legal-callout {
  border: 1px solid var(--border-medium);
  background: var(--bg-raised);
  padding: 1.5rem;
  border-radius: var(--radius-lg);
  margin: 1.5rem 0 2rem;
  font-size: 0.97rem;
  color: var(--text-strong);
}
.legal-callout strong { display: block; margin-bottom: 0.5rem; font-family: var(--font-display); font-size: 1.05rem; }

/* listing-card placeholder component (for Phase 1) */
.listing-card {
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.listing-card-footer {
  padding: 0.5rem 0.75rem;
  background: var(--bg-raised);
  border-top: 1px solid var(--border-soft);
  font-size: 0.75rem;
  color: var(--text-muted);
  text-align: center;
  line-height: 1.3;
}

/* ── footer ──────────────────────────────────── */
.site-footer {
  background: var(--swatch--slate-dark);
  color: var(--swatch--ivory-light);
  padding: 3rem 0 2rem;
  margin-top: 4rem;
}
.site-footer a { color: var(--swatch--ivory-dark); }
.site-footer a:hover { color: var(--swatch--ivory-light); }
.footer-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: 1fr;
}
@media (min-width: 768px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr; gap: 3rem; } }
.footer-brand {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--swatch--ivory-light);
  margin-bottom: 0.5rem;
}
.footer-brand-dot { color: var(--accent-brand); }
.footer-col h4 {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 600;
  color: var(--swatch--cloud-light);
  margin: 0 0 0.75rem;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: 0.5rem; font-size: 0.95rem; }
.legal-block {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-md);
  padding: 1rem 1.1rem;
  font-size: 0.85rem;
  color: var(--swatch--ivory-dark);
  line-height: 1.55;
  margin-bottom: 1rem;
}
.legal-block strong { color: var(--swatch--ivory-light); }
.footer-meta {
  display: flex; flex-wrap: wrap; gap: 1rem 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 1.25rem;
  margin-top: 2rem;
  font-size: 0.85rem;
  color: var(--swatch--cloud-medium);
}

/* thank-you state (form) */
.thanks {
  display: none;
  background: var(--bg-card);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-lg);
  padding: 2rem;
  margin-top: 1rem;
}
.thanks h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.5rem;
  margin: 0 0 0.5rem;
  color: var(--text-strong);
}
.thanks.is-visible { display: block; }
.form-shell.is-hidden { display: none; }

/* 404 page */
.not-found {
  text-align: center;
  padding: 5rem 0 6rem;
}
.not-found .big {
  font-family: var(--font-mono);
  font-size: clamp(4rem, 3rem + 4vw, 7rem);
  font-weight: 700;
  color: var(--accent-brand);
  line-height: 1;
  letter-spacing: -0.03em;
  margin: 0 0 1rem;
}
.not-found h1 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.75rem;
  margin: 0 0 0.5rem;
  color: var(--text-strong);
}
.not-found p { margin: 0 0 1.5rem; color: var(--text-body); }

/* responsive helpers */
.muted { color: var(--text-muted); }
.mono { font-family: var(--font-mono); }
.serif { font-family: var(--font-display); }
.center { text-align: center; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
