/* Mugwheel public site — a marketing/legal shell separate from the
   private app bundle. Palette and type carry the same near-black,
   restrained-amber editorial identity as the product itself, scaled
   up for a homepage rather than a dense workspace. Self-hosted variable
   fonts (Fraunces + Nunito Sans, both OFL) — no third-party font
   requests, matching the product's offline-first philosophy. */

@font-face {
  font-family: "Fraunces";
  src: url("/assets/fonts/fraunces-var.woff2") format("woff2-variations"), url("/assets/fonts/fraunces-var.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Nunito Sans";
  src: url("/assets/fonts/nunitosans-var.woff2") format("woff2-variations"), url("/assets/fonts/nunitosans-var.woff2") format("woff2");
  font-weight: 400 800;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: dark;

  --bg: #0d0f13;
  --bg-elevated: #12151a;
  --surface: #171b21;
  --surface-2: #1d2229;
  --surface-hover: #232932;
  --border: #2a303a;
  --border-soft: #1c2129;

  --text-primary: #eef1f5;
  --text-secondary: #a6adb8;
  --text-muted: #757c88;
  --text-faint: #565d68;

  --accent: #c9975a;
  --accent-hover: #d6a468;
  --accent-contrast: #1a1206;
  --accent-soft: #26211a;
  --accent-soft-border: #3a3021;

  --sage: #7fa383;
  --sage-soft: #1c231d;
  --sage-soft-border: #2c3a2c;

  --gold: #cbab68;
  --gold-soft: #262015;
  --gold-soft-border: #3a301c;

  --rose: #c97676;

  --font-display: "Fraunces", "Iowan Old Style", "Palatino Linotype", Georgia, "Times New Roman", serif;
  --font-body: "Nunito Sans", "Segoe UI", system-ui, -apple-system, sans-serif;

  --max: 1120px;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-pill: 999px;

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.35);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.15;
  margin: 0 0 14px;
  color: var(--text-primary);
  text-wrap: balance;
}

p {
  margin: 0 0 16px;
  color: var(--text-secondary);
}

a {
  color: var(--accent);
  text-underline-offset: 3px;
}

a:hover {
  color: var(--accent-hover);
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 3px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--accent);
  color: var(--accent-contrast);
  padding: 10px 16px;
  border-radius: 0 0 8px 0;
  font-weight: 700;
  z-index: 100;
  text-decoration: none;
}

.skip-link:focus {
  left: 0;
}

img, svg {
  max-width: 100%;
  display: block;
}

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

/* ===================== Header ===================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(13, 15, 19, 0.86);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-soft);
}

.site-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text-primary);
}

.brand-mark {
  width: 30px;
  height: 30px;
  flex-shrink: 0;
  object-fit: contain;
  display: block;
}

.brand-word {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 19px;
  letter-spacing: -0.01em;
  color: var(--text-primary);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 26px;
}

.site-nav a {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
}

.site-nav a:hover {
  color: var(--text-primary);
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--accent);
  color: var(--accent-contrast) !important;
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  font-weight: 700 !important;
  font-size: 13.5px !important;
  transition: background 120ms ease;
}

.nav-cta:hover {
  background: var(--accent-hover);
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border);
  color: var(--text-primary);
  border-radius: var(--radius-sm);
  width: 38px;
  height: 38px;
  font-size: 16px;
  cursor: pointer;
}

@media (max-width: 760px) {
  .site-nav {
    position: fixed;
    inset: 60px 0 auto 0;
    background: var(--bg-elevated);
    border-bottom: 1px solid var(--border-soft);
    flex-direction: column;
    align-items: flex-start;
    padding: 16px 24px 24px;
    gap: 16px;
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: transform 160ms ease, opacity 160ms ease;
  }
  .site-nav.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
}

/* ===================== Hero ===================== */

.hero {
  padding: 88px 0 64px;
  position: relative;
}

.eyebrow-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent-soft);
  border: 1px solid var(--accent-soft-border);
  color: var(--accent);
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.02em;
  margin-bottom: 22px;
}

.eyebrow-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

.hero h1 {
  font-size: clamp(34px, 5.4vw, 58px);
  max-width: 18ch;
  margin-bottom: 20px;
}

.hero-sub {
  font-size: clamp(16px, 1.9vw, 19px);
  color: var(--text-secondary);
  max-width: 62ch;
  margin-bottom: 32px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 40px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-size: 14.5px;
  cursor: pointer;
  border: 1px solid transparent;
  text-decoration: none;
  transition: background 120ms ease, border-color 120ms ease, transform 80ms ease;
}

.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  background: var(--accent);
  color: var(--accent-contrast);
}

.btn-primary:hover {
  background: var(--accent-hover);
  color: var(--accent-contrast);
}

.btn-secondary {
  background: transparent;
  border-color: var(--border);
  color: var(--text-primary);
}

.btn-secondary:hover {
  background: var(--surface);
  color: var(--text-primary);
}

.hero-mark-field {
  position: absolute;
  right: 10px;
  top: 30px;
  width: 340px;
  opacity: 0.55;
  pointer-events: none;
}

.hero-mark-field img {
  width: 100%;
  height: auto;
  display: block;
}

@media (max-width: 980px) {
  .hero-mark-field {
    display: none;
  }
}

/* ===================== Sections ===================== */

section {
  padding: 64px 0;
  border-top: 1px solid var(--border-soft);
}

.section-eyebrow {
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
}

.section-head {
  max-width: 66ch;
  margin-bottom: 40px;
}

.section-head h2 {
  font-size: clamp(26px, 3.4vw, 34px);
  margin-bottom: 12px;
}

.section-head p {
  font-size: 16.5px;
}

/* ===================== Capability grid ===================== */

.cap-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

@media (max-width: 900px) {
  .cap-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 620px) {
  .cap-grid {
    grid-template-columns: 1fr;
  }
}

.cap-card {
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.cap-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.cap-icon {
  width: 34px;
  height: 34px;
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  border: 1px solid var(--border-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  color: var(--accent);
  flex-shrink: 0;
}

.cap-card h3 {
  font-family: var(--font-body);
  font-size: 15.5px;
  font-weight: 700;
  margin: 0;
}

.cap-card p {
  font-size: 13.8px;
  margin: 0;
  color: var(--text-secondary);
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border-radius: var(--radius-pill);
  padding: 3px 10px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.03em;
  white-space: nowrap;
  border: 1px solid transparent;
}

.status-pill--available {
  background: var(--sage-soft);
  color: var(--sage);
  border-color: var(--sage-soft-border);
}

.status-pill--dev {
  background: var(--gold-soft);
  color: var(--gold);
  border-color: var(--gold-soft-border);
}

.status-pill--planned {
  background: var(--surface-2);
  color: var(--text-muted);
  border-color: var(--border);
}

/* ===================== Local-first trust section ===================== */

.trust-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 48px;
  align-items: start;
}

@media (max-width: 860px) {
  .trust-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}

.trust-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.trust-item {
  display: flex;
  gap: 14px;
  padding: 16px 0;
  border-bottom: 1px solid var(--border-soft);
}

.trust-item:last-child {
  border-bottom: none;
}

.trust-item-icon {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--sage-soft);
  border: 1px solid var(--sage-soft-border);
  color: var(--sage);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 13px;
  font-weight: 700;
}

.trust-item h4 {
  font-family: var(--font-body);
  font-size: 14.5px;
  font-weight: 700;
  margin: 0 0 4px;
  color: var(--text-primary);
}

.trust-item p {
  font-size: 13.6px;
  margin: 0;
}

.trust-callout {
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  padding: 24px;
}

.trust-callout .section-eyebrow {
  margin-bottom: 12px;
}

.trust-callout p {
  font-size: 14.5px;
}

.trust-callout p:last-child {
  margin-bottom: 0;
}

/* ===================== Footer ===================== */

.site-footer {
  border-top: 1px solid var(--border-soft);
  padding: 40px 0 48px;
}

.footer-grid {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.footer-brand .brand-mark {
  width: 22px;
  height: 22px;
}

.footer-brand .brand-word {
  font-size: 15px;
}

.footer-tagline {
  font-size: 13px;
  color: var(--text-muted);
  max-width: 40ch;
  margin: 0;
}

.footer-links {
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-col-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 4px;
}

.footer-col a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 13.5px;
}

.footer-col a:hover {
  color: var(--text-primary);
}

.footer-bottom {
  margin-top: 32px;
  padding-top: 20px;
  border-top: 1px solid var(--border-soft);
  font-size: 12px;
  color: var(--text-faint);
}

/* ===================== Legal pages ===================== */

.legal-page {
  padding: 64px 0 96px;
}

.legal-header {
  max-width: 72ch;
  margin-bottom: 40px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--border-soft);
}

.legal-header h1 {
  font-size: clamp(28px, 4vw, 38px);
}

.legal-meta {
  font-size: 13px;
  color: var(--text-muted);
}

.legal-body {
  max-width: 72ch;
}

.legal-body h2 {
  font-size: 20px;
  margin-top: 40px;
  margin-bottom: 12px;
  scroll-margin-top: 90px;
}

.legal-body h2:first-child {
  margin-top: 0;
}

.legal-body p, .legal-body li {
  font-size: 15.5px;
  color: var(--text-secondary);
}

.legal-body ul {
  padding-left: 22px;
  margin: 0 0 16px;
}

.legal-body li {
  margin-bottom: 8px;
}

.legal-body strong {
  color: var(--text-primary);
}

.legal-toc {
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  padding: 18px 22px;
  margin-bottom: 40px;
}

.legal-toc-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 10px;
}

.legal-toc ol {
  margin: 0;
  padding-left: 18px;
  columns: 2;
  gap: 24px;
}

@media (max-width: 620px) {
  .legal-toc ol {
    columns: 1;
  }
}

.legal-toc li {
  font-size: 13.5px;
  margin-bottom: 6px;
  break-inside: avoid;
}

.legal-toc a {
  text-decoration: none;
  color: var(--text-secondary);
}

.legal-toc a:hover {
  color: var(--accent);
}

.placeholder-note {
  background: var(--gold-soft);
  border: 1px solid var(--gold-soft-border);
  color: var(--gold);
  border-radius: var(--radius-sm);
  padding: 2px 8px;
  font-size: 12px;
  font-weight: 700;
  display: inline;
}

.callout-box {
  background: var(--sage-soft);
  border: 1px solid var(--sage-soft-border);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  margin: 20px 0;
}

.callout-box p {
  font-size: 14px;
  margin: 0;
  color: var(--text-secondary);
}

.callout-box p strong {
  color: var(--sage);
}
