/* RV Link — Site Styles */
:root {
  --bg: #ffffff;
  --text: #1b1f23;
  --muted: #5a6372;
  --brand: #1e88e5;
  --brand-600: #1976d2;
  --brand-700: #1565c0;
  --accent: #00bcd4;
  --surface: #f6f8fa;
  --border: #e2e8f0;
  --radius: 12px;
  --shadow: 0 10px 30px rgba(0,0,0,0.08);
  --maxw: 1200px;
  --pad: 20px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0d1117;
    --text: #e6edf3;
    --muted: #9da7b3;
    --surface: #161b22;
    --border: #2d333b;
    --shadow: 0 10px 30px rgba(0,0,0,0.4);
  }
}
*,*::before,*::after{box-sizing:border-box}
html,body{
  padding:0;margin:0;
  background:var(--bg);
  color:var(--text);
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji","Segoe UI Emoji";
  line-height:1.6;
}
img{max-width:100%;height:auto;display:block}
a{color:var(--brand);text-decoration:none}
a:hover{color:var(--brand-700);text-decoration:underline}

/* Header */
.site-header{
  position:sticky;top:0;z-index:10;
  background:var(--bg);
  border-bottom:1px solid var(--border);
  backdrop-filter:saturate(180%) blur(10px);
}
.site-header .brand{
  display:flex;align-items:center;gap:10px;
  font-weight:700;font-size:1.1rem;color:var(--text);
}
.site-header .logo{
  display:inline-block;
  padding:8px 12px;
  border-radius:8px;
  background:linear-gradient(135deg,var(--brand),var(--accent));
  color:white;
}
.site-header .site-nav{
  display:flex;gap:14px;align-items:center;
}
.site-header nav a{
  padding:10px 12px;border-radius:8px;color:var(--text);
}
.site-header nav a:hover{
  background:var(--surface);
  text-decoration:none;
}
.site-header .cta{
  background:var(--brand);color:white;border-radius:10px;
  padding:10px 14px;
}
.site-header .cta:hover{background:var(--brand-700)}
.site-header>*, .site-footer>*{
  max-width:var(--maxw);margin:0 auto;padding:10px var(--pad);
  display:flex;align-items:center;justify-content:space-between;
}

/* Hero */
.hero{
  max-width:var(--maxw);margin:40px auto;padding:0 var(--pad);
  display:grid;grid-template-columns:1.2fr 1fr;gap:24px;align-items:center;
}
.hero__text h1{
  font-size:clamp(1.8rem,3.5vw,3rem);
  line-height:1.15;margin:0 0 12px 0;
}
.hero__text p{margin:0 0 16px 0;color:var(--muted)}
.badges{display:flex;flex-wrap:wrap;gap:8px;margin:12px 0}
.badge{
  font-size:.85rem;background:var(--surface);border:1px solid var(--border);
  padding:6px 10px;border-radius:999px;color:var(--text)
}
.actions{display:flex;gap:12px;margin-top:12px;flex-wrap:wrap}
.button{
  display:inline-block;padding:10px 16px;border-radius:10px;border:1px solid var(--border);
  background:var(--surface);color:var(--text);font-weight:600;
  transition:.15s ease-in-out box-shadow,.15s ease-in-out transform;
}
.button:hover{box-shadow:var(--shadow);text-decoration:none;transform:translateY(-1px)}
.button.primary{background:var(--brand);border-color:transparent;color:#fff}
.button.primary:hover{background:var(--brand-700)}
.hero__media{
  border-radius:16px;overflow:hidden;box-shadow:var(--shadow);border:1px solid var(--border)
}
.hero__media img{width:100%;height:auto;display:block}

/* Sections */
.section{
  max-width:var(--maxw);margin:40px auto;padding:32px var(--pad);
}
.section.alt{
  background:var(--surface);border-top:1px solid var(--border);border-bottom:1px solid var(--border)
}
.section h2{margin:0 0 12px 0;font-size:clamp(1.4rem,2.4vw,2rem)}
.section p{margin:0 0 12px 0}

/* Feature grid */
.feature-grid{
  display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));
  gap:12px;margin:16px 0 0 0;padding:0;list-style:none;
}
.feature-grid li{
  background:var(--surface);border:1px solid var(--border);border-radius:12px;
  padding:14px;
}

/* Steps */
.steps{
  counter-reset:step;list-style:none;margin:0;padding:0;display:grid;gap:10px
}
.steps li{
  position:relative;padding-left:42px;background:var(--surface);border:1px solid var(--border);border-radius:12px;padding-top:12px;padding-bottom:12px
}
.steps li::before{
  counter-increment:step;content:counter(step);
  position:absolute;left:12px;top:50%;transform:translateY(-50%);
  width:24px;height:24px;border-radius:999px;background:var(--brand);color:#fff;
  display:flex;align-items:center;justify-content:center;font-weight:700
}
.note{color:var(--muted);font-style:italic}

/* Hardware list */
.hardware ul{
  padding-left:18px;margin:0
}
.hardware li{margin:6px 0}

/* Gallery */
.gallery{
  display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:12px;
}
.gallery img{
  width:100%;height:200px;object-fit:cover;border-radius:12px;border:1px solid var(--border);box-shadow:var(--shadow)
}

/* CTA block */
.cta-block{
  text-align:center;background:linear-gradient(180deg, var(--surface), transparent);
  border-top:1px solid var(--border);border-bottom:1px solid var(--border)
}

/* Footer */
.site-footer{
  border-top:1px solid var(--border);margin-top:32px
}
.site-footer p{margin:12px 0}
.site-footer nav{display:flex;gap:12px;flex-wrap:wrap}

/* Responsive */
@media (max-width: 900px){
  .hero{grid-template-columns:1fr;gap:16px}
  .site-header>*, .site-footer>*{padding:8px var(--pad)}
}

/* Content helpers */
.container{max-width:var(--maxw);margin:0 auto;padding:24px var(--pad)}
.lead{color:var(--muted);font-size:1.1rem}
.card{
  background:var(--surface);border:1px solid var(--border);border-radius:12px;padding:16px;box-shadow:var(--shadow)
}
.grid{display:grid;gap:16px}
.grid.cols-2{grid-template-columns:repeat(auto-fit,minmax(260px,1fr))}
.grid.cols-3{grid-template-columns:repeat(auto-fit,minmax(220px,1fr))}

/* Tables */
table{
  width:100%;border-collapse:separate;border-spacing:0;border:1px solid var(--border);border-radius:12px;overflow:hidden;background:var(--bg)
}
th,td{padding:12px;border-bottom:1px solid var(--border);text-align:left}
th{background:var(--surface)}
tr:last-child td{border-bottom:none}

/* Callouts */
.callout{
  border-left:4px solid var(--brand);background:var(--surface);padding:12px;border-radius:8px
}

/* Forms */
input,textarea,select{
  width:100%;padding:10px;border-radius:8px;border:1px solid var(--border);
  background:var(--bg);color:var(--text)
}
label{font-weight:600}
.form-row{display:grid;gap:12px}
.form-actions{display:flex;gap:10px;margin-top:8px}

/* Media helpers */
figure{margin:0}
figure figcaption{color:var(--muted);font-size:.9rem;margin-top:6px}

/* Video */
.video{
  position:relative;padding-bottom:56.25%;height:0;overflow:hidden;border-radius:12px;border:1px solid var(--border);box-shadow:var(--shadow)
}
.video iframe,.video video{
  position:absolute;top:0;left:0;width:100%;height:100%
}

/* Code snippets */
pre,code{
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono","Courier New", monospace;
  background:var(--surface);border:1px solid var(--border);border-radius:8px
}
pre{padding:12px;overflow:auto}
code{padding:2px 6px}

/* Checklists */
ul.checklist{list-style:none;padding:0;margin:0}
ul.checklist li{padding-left:28px;position:relative;margin:8px 0}
ul.checklist li::before{
  content:"✓";position:absolute;left:0;top:0;color:var(--brand);font-weight:700
}

/* Spacing helpers */
.mt-0{margin-top:0}
.mt-1{margin-top:6px}
.mt-2{margin-top:12px}
.mt-3{margin-top:18px}
.mt-4{margin-top:24px}
.mb-0{margin-bottom:0}
.mb-1{margin-bottom:6px}
.mb-2{margin-bottom:12px}
.mb-3{margin-bottom:18px}
.mb-4{margin-bottom:24px}

/* Print */
@media print{
  .site-header,.site-footer,.hero__media,.actions{display:none !important}
  body{background:#fff;color:#000}
  a{color:#000}
}