/* ============================================
   RAILTOTE — Brand tokens
   ink/paper base + sky blue & gunmetal accents
   Courier New wordmark, per approved logo spec
============================================ */
:root{
  --ink: #161616;
  --ink-soft: #4A4A4A;
  --paper: #F2F1EC;
  --paper-dim: #E4E2DA;
  --sky: #87CEEB;
  --sky-deep: #5FB6D9;
  --gray: #9CA3A8;
  --line: rgba(22,22,22,0.12);
  --line-on-dark: rgba(242,241,236,0.16);
  --radius: 10px;
  --max-w: 1120px;
}

*{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
body{
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: 'IBM Plex Mono', 'Courier New', Courier, monospace;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3{
  font-family: Georgia, 'Times New Roman', serif;
  font-weight: 700;
  line-height: 1.15;
  margin: 0 0 0.4em;
}
h1{ font-size: clamp(32px, 5.5vw, 56px); }
h2{ font-size: clamp(24px, 3.6vw, 34px); }
h3{ font-size: 18px; }
p{ margin: 0 0 1em; color: var(--ink-soft); }
a{ color: var(--ink); }

section{ padding: 88px 0; }
section.tight{ padding: 56px 0; }

.eyebrow{
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--sky-deep);
  font-weight: 700;
  margin-bottom: 12px;
  display: block;
}

/* ---------- Buttons ---------- */
.btn{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 999px;
  font-family: 'IBM Plex Mono', monospace;
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  border: 2px solid var(--ink);
  transition: transform 0.15s ease, background 0.15s ease, color 0.15s ease;
  cursor: pointer;
}
.btn-primary{ background: var(--ink); color: var(--paper); }
.btn-primary:hover{ transform: translateY(-2px); background: var(--sky-deep); border-color: var(--sky-deep); color: var(--ink); }
.btn-ghost{ background: transparent; color: var(--ink); }
.btn-ghost:hover{ transform: translateY(-2px); background: var(--ink); color: var(--paper); }

/* ---------- Header ---------- */
header.site{
  position: sticky; top: 0; z-index: 50;
  background: rgba(242,241,236,0.92);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
}
header.site .wrap{
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 8px; padding-bottom: 8px;
}
header.site img.logo{ height: 84px; width: auto; display: block; }
nav.main{ display: flex; align-items: center; gap: 28px; }
nav.main a{
  font-size: 13px; text-decoration: none; color: var(--ink-soft);
  letter-spacing: 0.03em;
}
nav.main a:hover{ color: var(--ink); }
nav.main a.btn-primary{ color: var(--paper); }
nav.main a.btn-primary:hover{ color: var(--ink); }
nav.main .btn{ padding: 10px 20px; font-size: 13px; }
.nav-links{ display: flex; gap: 24px; align-items: center; }
.menu-toggle{ display: none; background: none; border: none; font-size: 22px; cursor: pointer; }

@media (max-width: 760px){
  .nav-links{
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--paper); border-bottom: 1px solid var(--line);
    flex-direction: column; padding: 20px 24px; gap: 16px;
    display: none;
  }
  .nav-links.open{ display: flex; }
  .menu-toggle{ display: block; }
}

/* ---------- Hero ---------- */
.hero{
  padding-top: 64px;
}
.hero-grid{
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 48px; align-items: center;
}
.hero p.lead{ font-size: 18px; color: var(--ink-soft); max-width: 46ch; }
.hero-cta-row{ display: flex; gap: 16px; margin-top: 28px; flex-wrap: wrap; }
.hero-media{
  position: relative; border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--line); background: #fff;
}
.hero-media video, .hero-media img{ width: 100%; display: block; }
.hero-badge{
  position: absolute; bottom: 14px; left: 14px;
  background: var(--ink); color: var(--paper);
  font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase;
  padding: 6px 12px; border-radius: 999px;
}
@media (max-width: 860px){
  .hero{ padding-top: 32px; }
  .hero-grid{ grid-template-columns: 1fr; }
}

/* ---------- Problem / How it works ---------- */
.split{
  display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center;
}
@media (max-width: 860px){ .split{ grid-template-columns: 1fr; } }

.steps{ display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin-top: 40px; }
@media (max-width: 760px){ .steps{ grid-template-columns: 1fr; } }
.step{ border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; background: #fff; }
.step .num{
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--sky); color: var(--ink);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; margin-bottom: 14px;
}

/* ---------- Attach/Remove demo ---------- */
.demo-grid{ display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 32px; }
@media (max-width: 760px){ .demo-grid{ grid-template-columns: 1fr; } }
.demo-card{ border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #fff; }
.demo-card video{ width: 100%; display: block; background: var(--ink); }
.demo-card .demo-body{ padding: 18px 20px; }
.demo-card h3{ font-family: Georgia, serif; }

.instructions-grid{ display: grid; grid-template-columns: 1fr 1fr; gap: 40px; margin-top: 48px; }
@media (max-width: 760px){ .instructions-grid{ grid-template-columns: 1fr; gap: 32px; } }
.instructions-grid ol{ list-style: none; margin: 0; padding: 0; counter-reset: step; }
.instructions-grid li{
  counter-increment: step;
  position: relative;
  padding-left: 44px;
  margin-bottom: 18px;
  color: var(--ink-soft);
}
.instructions-grid li:last-child{ margin-bottom: 0; }
.instructions-grid li::before{
  content: counter(step);
  position: absolute; left: 0; top: -2px;
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--sky); color: var(--ink);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 13px; font-family: 'IBM Plex Mono', monospace;
}

/* ---------- Gallery ---------- */
.gallery-grid{
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 32px;
}
.gallery-grid figure{ margin: 0; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background:#fff; }
.gallery-grid img{ width: 100%; height: 210px; object-fit: cover; display: block; }
.gallery-grid figcaption{ font-size: 11px; padding: 8px 10px; color: var(--ink-soft); text-align: center; }
@media (max-width: 860px){ .gallery-grid{ grid-template-columns: repeat(2, 1fr); } }

/* ---------- Section: dark ---------- */
section.dark{ background: var(--ink); color: var(--paper); }
section.dark p{ color: #C9C7C0; }
section.dark a{ color: var(--sky); }
section.dark a:hover{ color: #fff; }
section.dark .btn-primary{ background: var(--sky); color: var(--ink); border-color: var(--sky); }
section.dark .btn-primary:hover{ background: #fff; color: var(--ink); border-color: #fff; }
section.dark .eyebrow{ color: var(--sky); }
section.dark .step{ background: #1E1E1E; border-color: var(--line-on-dark); }

/* ---------- Spec / disclaimer callout ---------- */
.spec-grid{ display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin: 32px 0; }
@media (max-width: 760px){ .spec-grid{ grid-template-columns: 1fr; } }
.spec{ border: 1px solid var(--line-on-dark); border-radius: var(--radius); padding: 20px; }
.spec.spec-main{ border-left: 4px solid var(--sky); }
.spec.spec-accessory{ border-left: 4px solid var(--gray); }
.spec-legend{ display:flex; gap:20px; font-size:12px; color:#C9C7C0; margin: 10px 0 24px; }
.spec-legend span{ display:inline-flex; align-items:center; gap:8px; }
.spec-legend i{ width:14px; height:14px; border-radius:3px; display:inline-block; }
.spec .val{ font-family: Georgia, serif; font-size: 28px; font-weight: 700; color: var(--sky); }
.spec .lbl{ font-size: 12px; text-transform: uppercase; letter-spacing: 0.08em; color: #C9C7C0; }

.disclaimer-box{
  border: 1px solid var(--line-on-dark); border-left: 4px solid var(--sky);
  padding: 20px 24px; border-radius: var(--radius); margin-top: 28px; font-size: 14px;
}

/* ---------- Coming soon ---------- */
.coming-grid{ display: grid; grid-template-columns: 1fr 1fr; gap: 32px; margin-top: 36px; }
@media (max-width: 860px){ .coming-grid{ grid-template-columns: 1fr; } }
.coming-card{ border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #fff; }
.coming-card img{ width: 100%; height: 260px; object-fit: cover; display: block; }
.coming-card .body{ padding: 20px 22px; }
.coming-tag{
  display: inline-block; font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em;
  background: var(--sky); color: var(--ink); padding: 4px 10px; border-radius: 999px; margin-bottom: 10px;
}

/* ---------- FAQ ---------- */
.faq-item{ border-bottom: 1px solid var(--line); padding: 20px 0; }
.faq-item summary{
  cursor: pointer; font-weight: 700; font-family: Georgia, serif; font-size: 17px;
  list-style: none; display: flex; justify-content: space-between; align-items: center;
}
.faq-item summary::-webkit-details-marker{ display: none; }
.faq-item summary::after{ content: "+"; font-size: 22px; color: var(--sky-deep); }
.faq-item[open] summary::after{ content: "–"; }
.faq-item p{ margin-top: 12px; }

/* ---------- Final CTA ---------- */
.cta-band{
  background: var(--sky); color: var(--ink);
  border-radius: 20px; padding: 56px 40px; text-align: center;
}
.cta-band h2{ margin-bottom: 14px; }
.cta-band .btn-primary{ background: var(--ink); color: var(--paper); border-color: var(--ink); }
.cta-band .btn-primary:hover{ background: #fff; color: var(--ink); border-color: #fff; }

/* ---------- Footer ---------- */
footer.site{ border-top: 1px solid var(--line); padding: 40px 0; }
footer.site .wrap{ display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; }
footer.site img.logo{ height: 44px; }
footer.site .foot-links{ display: flex; gap: 20px; font-size: 13px; }
footer.site .foot-links a{ text-decoration: none; color: var(--ink-soft); }
footer.site .fine{ font-size: 11px; color: var(--ink-soft); margin-top: 10px; }
