/* Level my RV — public site styles. Hand-written, no framework. */

:root {
  --blue: #007aff;
  --blue-strong: #0060df;
  --green: #34c759;
  --red: #ff3b30;
  --text: #1c1c1e;
  --text-2: #55555b;
  --text-3: #6e6e73;
  --bg: #ffffff;
  --bg-2: #f2f2f7;
  --card: #ffffff;
  --card-2: #f2f2f7;
  --line: rgba(60, 60, 67, 0.16);
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.04), 0 8px 24px rgba(0, 30, 80, 0.08);
  --sky: linear-gradient(180deg, #ffffff 0%, #eef6ff 40%, #b9dcff 78%, #5aa9ff 100%);
  --sky-soft: linear-gradient(180deg, #ffffff 0%, #eef6ff 100%);
  --radius: 22px;
  --radius-sm: 14px;
  --bezel: #1c1c1e;
  --diagram-bg: #ffffff;
  --max: 1120px;
  --gutter: 16px;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --blue: #0a84ff;
    --blue-strong: #409cff;
    --green: #30d158;
    --text: #f5f5f7;
    --text-2: #c7c7cc;
    --text-3: #a1a1a6;
    --bg: #000000;
    --bg-2: #111113;
    --card: #1c1c1e;
    --card-2: #2c2c2e;
    --line: rgba(84, 84, 88, 0.6);
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.5), 0 10px 30px rgba(0, 0, 0, 0.45);
    --sky: linear-gradient(180deg, #000000 0%, #020c1c 40%, #06306a 78%, #0a6fe0 100%);
    --sky-soft: linear-gradient(180deg, #000000 0%, #061428 100%);
    --bezel: #3a3a3c;
    --diagram-bg: #f2f2f7;
  }
}

@media (min-width: 720px) {
  :root { --gutter: 32px; }
}

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

html { -webkit-text-size-adjust: 100%; scroll-padding-top: 80px; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", system-ui, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--blue-strong); }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 6px; }

h1, h2, h3, h4 { line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 0.5em; }
h1 { font-size: clamp(2.2rem, 6vw, 3.6rem); font-weight: 800; }
h2 { font-size: clamp(1.7rem, 4vw, 2.4rem); font-weight: 750; }
h3 { font-size: 1.25rem; font-weight: 650; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 760px; }

.skip-link {
  position: absolute; left: -9999px; top: 8px; z-index: 100;
  background: var(--card); color: var(--text); padding: 8px 14px; border-radius: 10px;
}
.skip-link:focus { left: 8px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  backdrop-filter: saturate(180%) blur(18px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; gap: 12px; height: 60px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 700; font-size: 1.05rem; white-space: nowrap; }
.brand img { width: 34px; height: 34px; border-radius: 8px; }
.brand:hover { color: var(--text); }
.site-nav { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.site-nav a {
  color: var(--text-2); text-decoration: none; font-size: 0.95rem; font-weight: 500;
  padding: 8px 10px; border-radius: 10px;
}
.site-nav a:hover { color: var(--text); background: var(--card-2); }
.site-nav a[aria-current="page"] { color: var(--blue); }
.site-nav .nav-cta {
  background: var(--blue); color: #fff; padding: 7px 14px; border-radius: 999px; margin-left: 6px; font-weight: 600;
}
.site-nav .nav-cta:hover { background: var(--blue-strong); color: #fff; }
@media (max-width: 520px) {
  .site-nav .nav-cta { display: none; }
  .site-nav a { padding: 8px 8px; }
}

/* ---------- Buttons / badge ---------- */
.badge-link { display: inline-block; border-radius: 10px; }
.badge-link img { height: 52px; width: auto; }
.btn-text { font-weight: 600; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
.btn-text::after { content: "›"; font-size: 1.3em; line-height: 1; transform: translateY(-1px); }
.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; }

/* ---------- Hero ---------- */
.hero { background: var(--sky); padding: 56px 0 0; overflow: hidden; }
.hero .wrap { display: grid; gap: 40px; align-items: center; }
.eyebrow {
  display: inline-block; font-size: 0.85rem; font-weight: 600; color: var(--blue);
  background: color-mix(in srgb, var(--blue) 12%, transparent);
  padding: 5px 12px; border-radius: 999px; margin-bottom: 18px;
}
.hero h1 { max-width: 14ch; }
.lede { font-size: clamp(1.08rem, 2.2vw, 1.25rem); color: var(--text-2); max-width: 36em; }
.hero-art { position: relative; display: flex; justify-content: center; align-items: flex-end; min-height: 380px; padding-bottom: 0; }
.hero-art .device { width: min(64vw, 280px); margin-bottom: -60px; }
.hero-art .device.back { position: absolute; width: min(52vw, 230px); transform: translateX(46%) rotate(4deg); bottom: 40px; opacity: 0.98; }
.hero-art .watch { position: absolute; left: calc(50% - min(64vw, 280px) / 2 - 40px); bottom: 70px; width: min(30vw, 150px); }
@media (max-width: 559px) {
  .hero-art .device.back { display: none; }
  .hero-art .watch { left: 4px; bottom: 80px; width: 34vw; }
  .hero-art .device { margin-left: 22vw; }
}
@media (min-width: 900px) {
  .hero { padding-top: 72px; }
  .hero .wrap { grid-template-columns: 1.05fr 1fr; }
  .hero-copy { padding-bottom: 96px; }
  .hero-art { min-height: 560px; }
  .hero-art .device { width: 290px; margin-bottom: -80px; transform: translateX(-30px); }
  .hero-art .device.back { width: 250px; transform: translateX(120px) rotate(4deg); bottom: 70px; }
  .hero-art .watch { left: 0; bottom: 110px; width: 160px; }
}

/* ---------- Device frames ---------- */
.device {
  background: var(--bezel);
  padding: 3.4%;
  border-radius: 13% / 6%;
  box-shadow: 0 30px 60px rgba(0, 40, 100, 0.22), 0 6px 14px rgba(0, 0, 0, 0.12), inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}
.device img { border-radius: 10.5% / 4.9%; width: 100%; background: #fff; }
.watch {
  background: #121214;
  padding: 7%;
  border-radius: 30%;
  box-shadow: 0 24px 48px rgba(0, 40, 100, 0.25), inset 0 0 0 2px #2c2c2e, inset 0 0 0 5px #0b0b0c;
}
.watch img { border-radius: 22%; width: 100%; background: #000; }

/* ---------- Sections ---------- */
section { padding: 72px 0; }
@media (min-width: 900px) { section { padding: 96px 0; } }
.section-alt { background: var(--bg-2); }
.section-head { max-width: 700px; margin-bottom: 40px; }
.section-head p { color: var(--text-2); font-size: 1.1rem; }
.center { text-align: center; margin-left: auto; margin-right: auto; }

.split { display: grid; gap: 40px; align-items: center; }
@media (min-width: 860px) {
  .split { grid-template-columns: 1fr 1fr; gap: 64px; }
  .split.reverse > :first-child { order: 2; }
}
.split .device { width: min(70vw, 300px); margin: 0 auto; }

.checklist { list-style: none; padding: 0; margin: 0 0 1em; }
.checklist li { position: relative; padding-left: 32px; margin-bottom: 12px; color: var(--text-2); }
.checklist li strong { color: var(--text); }
.checklist li::before {
  content: ""; position: absolute; left: 0; top: 4px; width: 20px; height: 20px; border-radius: 6px;
  background: var(--green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 10.5l3.2 3L15 7' fill='none' stroke='white' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/100% no-repeat;
}

/* Steps */
.steps { display: grid; gap: 20px; counter-reset: step; list-style: none; padding: 0; margin: 0; }
@media (min-width: 860px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.step {
  background: var(--card); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow);
  display: flex; flex-direction: column; gap: 18px;
}
.step-num {
  counter-increment: step; width: 36px; height: 36px; border-radius: 50%;
  background: var(--blue); color: #fff; font-weight: 700; display: grid; place-items: center;
}
.step-num::before { content: counter(step); }
.step h3 { margin-bottom: 6px; }
.step p { color: var(--text-2); margin: 0; }
.step .device { width: 64%; margin: auto auto 0; }
.step .watch { width: 66%; max-width: 230px; margin: auto; }

/* Feature cards */
.features { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 620px) { .features { grid-template-columns: 1fr 1fr; } }
@media (min-width: 960px) { .features { grid-template-columns: repeat(3, 1fr); } }
.feature { background: var(--card); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.feature h3 { font-size: 1.1rem; margin: 14px 0 6px; }
.feature p { color: var(--text-2); margin: 0; font-size: 0.98rem; }
.icon {
  width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center;
  background: color-mix(in srgb, var(--blue) 14%, transparent); color: var(--blue);
}
.icon svg { width: 24px; height: 24px; }
.icon.green { background: color-mix(in srgb, var(--green) 16%, transparent); color: var(--green); }
.icon.orange { background: rgba(255, 149, 0, 0.15); color: #ff9500; }
.icon.red { background: rgba(255, 59, 48, 0.13); color: var(--red); }

/* Gallery */
.gallery {
  display: grid; grid-auto-flow: column; grid-auto-columns: min(62vw, 240px); gap: 22px;
  overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain;
  /* full-bleed: the strip runs edge to edge but starts aligned with the content column */
  --inset: max(var(--gutter), calc((100vw - var(--max)) / 2 + var(--gutter)));
  padding: 10px var(--inset) 30px; margin: 0 calc(50% - 50vw);
  scroll-padding-inline: var(--inset);
  scrollbar-width: thin;
}
.gallery figure { margin: 0; scroll-snap-align: start; display: flex; flex-direction: column; gap: 14px; }
.gallery figcaption { font-size: 0.92rem; color: var(--text-2); text-align: center; }
.gallery figcaption strong { display: block; color: var(--text); font-size: 0.98rem; }
.gallery .watch { width: 82%; margin: auto; }
.gallery-hint { font-size: 0.85rem; color: var(--text-3); text-align: center; margin-top: -8px; }
@media (min-width: 1180px) { .gallery-hint { display: none; } }

/* Watch showcase */
.watch-row { display: flex; gap: 20px; justify-content: center; align-items: center; flex-wrap: wrap; }
.watch-row .watch { width: min(40vw, 190px); }

/* FAQ */
.faq { display: grid; gap: 12px; }
.faq details { background: var(--card); border-radius: var(--radius-sm); box-shadow: var(--shadow); padding: 0 20px; }
.section-alt .faq details, .faq.plain details { box-shadow: none; }
.faq summary {
  cursor: pointer; list-style: none; padding: 18px 28px 18px 0; font-weight: 600; position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 2px; top: 50%; width: 9px; height: 9px; margin-top: -7px;
  border-right: 2px solid var(--text-3); border-bottom: 2px solid var(--text-3); transform: rotate(45deg);
  transition: transform 0.2s;
}
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.faq details > div { padding: 0 0 18px; color: var(--text-2); }
.faq details > div p:last-child { margin: 0; }

/* CTA band */
.cta-band { background: var(--sky); text-align: center; padding: 80px 0 88px; }
.cta-band h2 { margin-bottom: 12px; }
.cta-band p { color: var(--text-2); font-size: 1.1rem; margin-bottom: 26px; }
.cta-band .cta-row { justify-content: center; }

/* ---------- Article pages (guide, privacy, support) ---------- */
.page-hero { background: var(--sky-soft); padding: 56px 0 36px; border-bottom: 1px solid var(--line); }
.page-hero p { color: var(--text-2); font-size: 1.12rem; max-width: 40em; margin: 0; }
.page-hero h1 { font-size: clamp(2rem, 5vw, 3rem); }

.doc { padding: 48px 0 80px; }
.doc-layout { display: grid; gap: 40px; }
@media (min-width: 980px) {
  .doc-layout { grid-template-columns: 240px minmax(0, 1fr); gap: 56px; }
  .toc { position: sticky; top: 84px; align-self: start; max-height: calc(100vh - 100px); overflow: auto; }
}
.toc { background: var(--bg-2); border-radius: var(--radius-sm); padding: 18px 20px; font-size: 0.95rem; }
.toc h2 { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-3); margin: 0 0 10px; }
.toc ol { margin: 0; padding-left: 20px; }
.toc li { margin: 6px 0; }
.toc a { color: var(--text-2); text-decoration: none; }
.toc a:hover { color: var(--blue); }

.prose { max-width: 720px; min-width: 0; }
.prose h2 { font-size: clamp(1.5rem, 3.4vw, 1.9rem); margin-top: 2.2em; padding-top: 0.2em; }
.prose > h2:first-child, .prose > section:first-child > h2:first-child { margin-top: 0; }
.prose h3 { margin-top: 1.8em; }
.prose p, .prose li { color: var(--text-2); }
.prose strong { color: var(--text); }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1em; }
.prose li { margin-bottom: 0.45em; }
.prose section { padding: 0; }
.prose .ui { font-weight: 600; color: var(--text); white-space: nowrap; }

.note {
  background: color-mix(in srgb, var(--blue) 9%, var(--bg)); border-radius: var(--radius-sm);
  padding: 16px 18px; margin: 1.2em 0; color: var(--text-2);
  border: 1px solid color-mix(in srgb, var(--blue) 22%, transparent);
}
.note strong { color: var(--text); }
.note.warn { background: rgba(255, 149, 0, 0.1); border-color: rgba(255, 149, 0, 0.35); }

.shots { display: flex; flex-wrap: wrap; gap: 24px; justify-content: center; margin: 1.6em 0 2em; }
.shots figure { margin: 0; width: min(44%, 220px); display: flex; flex-direction: column; gap: 10px; }
.shots figure.wide { width: min(100%, 260px); }
.shots figcaption { font-size: 0.86rem; color: var(--text-3); text-align: center; }
.shots .watch { width: 82%; margin: auto; }

.diagram { background: var(--diagram-bg); border-radius: var(--radius-sm); padding: 14px; margin: 1em 0 1.4em; display: inline-block; max-width: 100%; }
.diagram img { max-height: 180px; width: auto; }
.diagram-row { display: flex; flex-wrap: wrap; gap: 14px; align-items: flex-end; }

.status-table { width: 100%; border-collapse: collapse; margin: 1em 0 1.6em; font-size: 0.96rem; }
.status-table th, .status-table td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.status-table th { color: var(--text-3); font-weight: 600; font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.04em; }
.status-table td:first-child { color: var(--text); font-weight: 600; width: 42%; }
.status-table td { color: var(--text-2); }
@media (max-width: 560px) {
  .status-table, .status-table tbody, .status-table tr, .status-table td { display: block; width: 100%; }
  .status-table thead { display: none; }
  .status-table tr { padding: 10px 0; border-bottom: 1px solid var(--line); }
  .status-table td { border: 0; padding: 2px 0; width: 100% !important; }
}

/* Privacy policy */
.policy .in-short { background: var(--bg-2); border-radius: 12px; padding: 12px 16px; font-size: 0.97rem; }
.policy .in-short strong { font-style: normal; }
.policy dl { margin: 0 0 1em; }
.policy dt { font-weight: 650; color: var(--text); margin-top: 1em; }
.policy dd { margin: 0.2em 0 0; color: var(--text-2); }
.policy .updated { color: var(--text-3); font-size: 0.95rem; margin-top: 8px; }

/* Support cards */
.cards-2 { display: grid; gap: 16px; margin: 0 0 2em; }
@media (min-width: 700px) { .cards-2 { grid-template-columns: 1fr 1fr; } }
.card { background: var(--card); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.card h3 { margin-top: 12px; }
.card p { color: var(--text-2); margin: 0 0 0.6em; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 36px 0 44px; font-size: 0.92rem; color: var(--text-3); background: var(--bg); }
.site-footer .wrap { display: grid; gap: 18px; }
@media (min-width: 760px) { .site-footer .wrap { grid-template-columns: 1fr auto; align-items: center; } }
.footer-nav { display: flex; flex-wrap: wrap; gap: 6px 20px; }
.footer-nav a { color: var(--text-2); text-decoration: none; }
.footer-nav a:hover { color: var(--blue); }
.site-footer p { margin: 0; }
.legal { font-size: 0.8rem; grid-column: 1 / -1; }

/* 404 */
.not-found { min-height: 60vh; display: grid; place-items: center; text-align: center; background: var(--sky); padding: 80px 0; }
.not-found .bubble { font-size: 4rem; font-weight: 800; letter-spacing: -0.04em; color: var(--blue); margin-bottom: 8px; }
