:root {
  --bg-canvas: #f3e9d8;
  --bg-surface: #fff8ee;
  --bg-surface-hover: #f7eedf;
  --text-primary: #262626;
  --text-muted: #59524c;
  --accent-primary: #98532b;
  --accent-secondary: #753c1b;
  --border-subtle: #d6c7b2;
  --border-strong: #262626;
  --copper-bg: #98532b;
  --copper-text: #fff8ee;
  --font-body: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: ui-monospace, Consolas, "Liberation Mono", Menlo, monospace;
  --radius-panel: 20px;
  --ease-kinetic: cubic-bezier(0.16, 1, 0.3, 1);
}

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

html, body {
  margin: 0;
  padding: 0;
  background-color: var(--bg-canvas);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  overflow-wrap: anywhere;
  hyphens: auto;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius-panel);
  object-fit: cover;
  filter: contrast(1.08) brightness(0.95);
}

.img-banner { aspect-ratio: 16 / 9; width: 100%; }
.img-grid { aspect-ratio: 4 / 3; width: 100%; }
.img-thumb { aspect-ratio: 1 / 1; width: 100%; }

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

a:hover, a:focus-visible {
  color: var(--accent-secondary);
}

h1, h2, h3, h4 {
  line-height: 1.25;
  margin-top: 0;
  font-weight: 700;
}

h1 { font-size: clamp(2.1rem, 4vw, 3.2rem); margin-bottom: 1rem; }
h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); margin-bottom: 1rem; }
h3 { font-size: 1.35rem; margin-bottom: 0.75rem; }

.mono-label, .spec-label, th, .tag {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.tag {
  display: inline-block;
  padding: 0.25rem 0.65rem;
  border: 1px solid var(--accent-primary);
  color: var(--accent-primary);
  margin-bottom: 0.75rem;
  background: var(--bg-surface);
}

.copper-block .tag {
  border-color: var(--copper-text);
  color: var(--copper-text);
  background: transparent;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

.reading-col {
  max-width: 70ch;
  margin: 0 auto;
}

/* Slim, simple, non-sticky header that scrolls naturally with the page */
.header-wrap {
  padding: 0.6rem 1.25rem 0.4rem;
  position: relative;
  z-index: 100;
}

.site-header {
  max-width: 1200px;
  margin: 0 auto;
  background-color: var(--bg-surface);
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  padding: 0.35rem 1rem;
  min-height: 42px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  position: relative;
}

.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  text-decoration: none;
  color: var(--text-primary);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: -0.01em;
  flex-shrink: 0;
  line-height: 1;
}

.brand-mark {
  width: 22px;
  height: 22px;
  background-color: var(--accent-primary);
  color: var(--copper-text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  border-radius: 4px;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.desktop-nav a {
  text-decoration: none;
  color: var(--text-primary);
  font-family: var(--font-mono);
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 0.2rem 0.15rem;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
}

.desktop-nav a:hover, .desktop-nav a[aria-current="page"] {
  border-bottom-color: var(--accent-primary);
  color: var(--accent-primary);
}

.mobile-menu-btn {
  display: none;
  background: transparent;
  border: 1px solid var(--border-strong);
  color: var(--text-primary);
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1;
  width: 28px;
  height: 28px;
  padding: 0;
  cursor: pointer;
  border-radius: 999px;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.mobile-menu-btn:hover, .mobile-menu-btn:focus-visible {
  background-color: var(--accent-primary);
  border-color: var(--accent-primary);
  color: var(--copper-text);
}

.mobile-nav-drawer {
  display: none;
  position: absolute;
  top: calc(100% + 0.25rem);
  right: 1.25rem;
  width: 230px;
  background: var(--bg-surface);
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  padding: 0.5rem 0.75rem;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
  z-index: 200;
}

.mobile-nav-drawer.is-open {
  display: block;
}

.mobile-nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.15rem;
}

.mobile-nav-list a {
  text-decoration: none;
  color: var(--text-primary);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  display: block;
  padding: 0.45rem 0.5rem;
  border-radius: 6px;
}

.mobile-nav-list a:hover, .mobile-nav-list a[aria-current="page"] {
  background-color: var(--bg-surface-hover);
  color: var(--accent-primary);
}

/* Full-Viewport Cockpit Hero */
.hero-cockpit {
  min-height: calc(92vh - 90px);
  margin: 0.75rem 1.25rem 2rem;
  border-radius: var(--radius-panel);
  border: 1px solid var(--border-strong);
  background-color: #16120e;
  background-image: linear-gradient(180deg, rgba(18, 14, 10, 0.72) 0%, rgba(22, 16, 12, 0.88) 100%), url('images/hero-motorcycle-cockpit-console.jpg');
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 3rem 1.5rem;
  color: #fff8ee;
}

.hero-inner {
  max-width: 780px;
}

.hero-cockpit h1 {
  color: #fff8ee;
  margin-bottom: 1.25rem;
}

.hero-cockpit p {
  font-size: 1.15rem;
  color: #e8dccb;
  margin-bottom: 2rem;
}

/* Outlined Square-Ended Buttons (Simple & Small Text) */
.btn {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  padding: 0.55rem 1rem;
  border-radius: 0;
  border: 1px solid var(--border-strong);
  background-color: transparent;
  color: var(--text-primary);
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.btn:hover, .btn:focus-visible {
  background-color: var(--accent-primary);
  border-color: var(--accent-primary);
  color: var(--copper-text);
}

.btn-light {
  border-color: #fff8ee;
  color: #fff8ee;
}

.btn-light:hover, .btn-light:focus-visible {
  background-color: #fff8ee;
  color: #262626;
  border-color: #fff8ee;
}

/* Sections & Copper Dividers */
.section-sand {
  padding: 4rem 0;
}

.copper-block {
  background-color: var(--copper-bg);
  color: var(--copper-text);
  padding: 4rem 0;
  border-top: 1px solid var(--border-strong);
  border-bottom: 1px solid var(--border-strong);
}

.copper-block a:not(.btn) {
  color: #fff8ee;
}

/* Flat Device Panels (1px border, no shadows, 20px radius) */
.panel, .card {
  background-color: var(--bg-surface);
  color: var(--text-primary);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-panel);
  padding: 1.75rem;
  box-shadow: none;
}

.copper-block .panel, .copper-block .card {
  background-color: #824420;
  color: #fff8ee;
  border-color: #f3e9d8;
}

/* Alternating Split Grid */
.alt-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2.5rem;
  align-items: center;
  margin-bottom: 3rem;
}

.alt-row:last-child {
  margin-bottom: 0;
}

.grid-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

.checklist {
  list-style: none;
  padding: 0;
  margin: 1rem 0;
}

.checklist li {
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.95rem;
}

.copper-block .checklist li {
  border-bottom-color: rgba(255, 248, 238, 0.25);
}

/* Wrapped Tables */
.table-wrap {
  overflow-x: auto;
  margin: 1.5rem 0;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-panel);
  background: var(--bg-surface);
}

table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  color: var(--text-primary);
}

th, td {
  padding: 0.9rem 1.1rem;
  border-bottom: 1px solid var(--border-subtle);
}

th {
  background-color: #ebe0ce;
  border-bottom: 1px solid var(--border-strong);
}

tr:last-child td {
  border-bottom: none;
}

/* Expandable Installation Considerations */
details.install-note {
  background-color: var(--bg-surface);
  color: var(--text-primary);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-panel);
  padding: 1rem 1.25rem;
  margin-bottom: 1rem;
}

details.install-note summary {
  font-family: var(--font-mono);
  font-weight: 700;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

details.install-note summary::after {
  content: "[+]";
  font-family: var(--font-mono);
  color: var(--accent-primary);
}

details.install-note[open] summary::after {
  content: "[-]";
}

details.install-note .note-body {
  margin-top: 0.85rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--border-subtle);
}

/* Forms */
.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  text-transform: uppercase;
  margin-bottom: 0.4rem;
}

.form-control {
  width: 100%;
  padding: 0.75rem 1rem;
  font-family: var(--font-body);
  font-size: 1rem;
  background-color: var(--bg-canvas);
  border: 1px solid var(--border-strong);
  border-radius: 0;
  color: var(--text-primary);
}

.output-box {
  background-color: #ebe0ce;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-panel);
  padding: 1.25rem;
  font-family: var(--font-mono);
  font-size: 0.88rem;
  white-space: pre-wrap;
  margin-top: 1rem;
}

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.6s var(--ease-kinetic), transform 0.6s var(--ease-kinetic);
}

.reveal.reveal-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Footer */
.site-footer {
  background-color: #1f1b18;
  color: #f3e9d8;
  padding: 3.5rem 0 2.5rem;
  border-top: 1px solid var(--border-strong);
  margin-top: 3rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 2rem;
  margin-bottom: 2.5rem;
}

.site-footer a {
  color: #f3e9d8;
}

.footer-nav {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.5rem;
}

.footer-bottom {
  padding-top: 1.5rem;
  border-top: 1px solid rgba(243, 233, 216, 0.2);
  font-size: 0.88rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
}

/* Cookie Consent Pop-Up (#cc-panel) */
#cc-panel {
  position: fixed;
  bottom: 1.25rem;
  right: 1.25rem;
  left: auto;
  max-width: 430px;
  width: calc(100% - 2.5rem);
  background-color: var(--bg-surface);
  color: var(--text-primary);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-panel);
  padding: 1.25rem 1.4rem;
  box-shadow: 0 12px 32px rgba(22, 18, 14, 0.22);
  z-index: 9999;
}

#cc-panel[hidden] {
  display: none !important;
}

#cc-panel p {
  margin: 0 0 1rem 0;
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--text-primary);
}

#cc-panel p b {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-primary);
  margin-bottom: 0.35rem;
}

.cc-panel__row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  justify-content: flex-end;
}

.cc-panel__row button {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  padding: 0.5rem 0.95rem;
  border-radius: 0;
  border: 1px solid var(--border-strong);
  background-color: transparent;
  color: var(--text-primary);
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.cc-panel__row button[data-opt="all"] {
  background-color: var(--accent-primary);
  border-color: var(--accent-primary);
  color: var(--copper-text);
}

.cc-panel__row button:hover,
.cc-panel__row button:focus-visible {
  background-color: var(--accent-secondary);
  border-color: var(--accent-secondary);
  color: var(--copper-text);
}

/* Breakpoints */
@media (max-width: 900px) {
  .desktop-nav {
    display: none;
  }
  .mobile-menu-btn {
    display: inline-flex;
  }
  .hero-cockpit {
    min-height: 68vh;
    margin: 0.5rem 1rem 1.5rem;
  }
}

@media (max-width: 480px) {
  .header-wrap {
    padding: 0.45rem 0.75rem 0.25rem;
  }
  .site-header {
    padding: 0.3rem 0.75rem;
    min-height: 38px;
  }
  .brand-link {
    font-size: 0.78rem;
  }
  .mobile-nav-drawer {
    right: 0.75rem;
    width: 210px;
  }
  .section-sand, .copper-block {
    padding: 2.75rem 0;
  }
  #cc-panel {
    bottom: 0.75rem;
    right: 0.75rem;
    left: 0.75rem;
    width: auto;
    max-width: none;
    padding: 1.1rem;
  }
  .cc-panel__row {
    justify-content: stretch;
  }
  .cc-panel__row button {
    flex: 1 1 auto;
    text-align: center;
  }
}

@media (prefers-reduced-motion: reduce){*,*::before,*::after{animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important;scroll-behavior:auto!important}}