/* ==================================================================
   CarCamsOnline - one stylesheet for the whole site.
   Change the colours in :root and the whole site follows.
   ================================================================== */
@font-face { font-family: "Outfit"; src: url("fonts/outfit.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }

:root {
  --ink: #05080f;        /* page background */
  --panel: #0b1322;      /* cards */
  --panel-2: #0f1a2e;    /* raised cards, table header */
  --line: #1b2a44;       /* borders */
  --text: #dfe7f1;
  --muted: #93a4bb;
  --white: #ffffff;
  --blue: #1e9bff;       /* logo blue */
  --cyan: #22d3ee;
  --chrome: #c9d3df;
  --red: #ff3d3d;
  --radius: 18px;
  --head: "Outfit", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; color: var(--text); font: 17px/1.65 var(--body);
  background: var(--ink) radial-gradient(1100px 620px at 50% -160px, #10305a 0%, rgba(5,8,15,0) 70%) no-repeat;
}
img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); }
a:hover { color: var(--cyan); }
h1, h2, h3 { font-family: var(--head); color: var(--white); line-height: 1.15; letter-spacing: -.01em; text-wrap: balance; }
h1 { font-size: clamp(2.1rem, 5.2vw, 3.6rem); font-weight: 800; margin: 0 0 .4em; }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); font-weight: 700; margin: 0 0 .6em; }
h3 { font-size: 1.45rem; font-weight: 700; margin: 0; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--cyan); outline-offset: 3px; border-radius: 6px; }
.wrap { width: min(1160px, 100% - 32px); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--white); color: #000; padding: 8px 14px; border-radius: 8px; z-index: 99; }
.skip:focus { left: 8px; }
.eyebrow { font: 700 .78rem/1.2 var(--head); letter-spacing: .14em; text-transform: uppercase; color: var(--cyan); margin: 0 0 .7em; }
.lead { font-size: 1.15rem; color: #c3cfdf; max-width: 62ch; }
.muted { color: var(--muted); }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 40; background: rgba(5,8,15,.86); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 66px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font: 800 1.35rem/1 var(--head); color: var(--white); letter-spacing: -.02em; }
.brand b { color: var(--blue); font-weight: 800; }
.brand img { filter: drop-shadow(0 0 10px rgba(30,155,255,.5)); }
#nav { display: flex; align-items: center; gap: 4px; }
#nav a { color: var(--text); text-decoration: none; font-size: .95rem; padding: 8px 12px; border-radius: 10px; }
#nav a:hover, #nav a[aria-current="page"] { background: var(--panel-2); color: var(--white); }
#nav .nav-yt { color: var(--white); background: #c4161c; font-weight: 600; margin-left: 6px; }
#nav .nav-yt:hover { background: var(--red); }
.nav-toggle { display: none; background: none; border: 1px solid var(--line); border-radius: 10px; width: 44px; height: 44px; padding: 11px 10px; cursor: pointer; }
.nav-toggle span { display: block; height: 2px; background: var(--white); margin-bottom: 6px; border-radius: 2px; }
.nav-toggle span:last-child { margin: 0; }
.disclosure { font-size: .8rem; color: var(--muted); padding-top: 10px; margin-bottom: 0; }
.disclosure a { color: var(--muted); }

/* ---------- Hero ---------- */
.hero { display: grid; grid-template-columns: 1.25fr .75fr; gap: 40px; align-items: center; padding: 48px 0 30px; }
.hero-logo { position: relative; justify-self: center; }
.hero-logo::before { content: ""; position: absolute; inset: -12%; border-radius: 50%; background: radial-gradient(closest-side, rgba(30,155,255,.42), rgba(30,155,255,0)); }
.hero-logo img { position: relative; width: min(360px, 70vw); }
.hero .buy { max-width: 520px; }
.trust { display: flex; flex-wrap: wrap; gap: 8px 22px; padding: 0; margin: 22px 0 0; list-style: none; font-size: .92rem; color: var(--muted); }
.trust li::before { content: "\2713"; color: var(--cyan); margin-right: 7px; font-weight: 700; }
.page-head { padding: 44px 0 8px; max-width: 880px; }
.updated { font-size: .88rem; color: var(--muted); }

/* ---------- Sections ---------- */
.section { padding: 46px 0; }
.section + .section { border-top: 1px solid var(--line); }
.prose { max-width: 74ch; }
.prose h2 { margin-top: 1.6em; }
.prose h2:first-child { margin-top: 0; }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: .4em; }

/* ---------- Product cards ---------- */
.grid { display: grid; gap: 22px; grid-template-columns: repeat(3, 1fr); align-items: stretch; padding-top: 18px; }
.grid.two { grid-template-columns: repeat(2, 1fr); }
.card { position: relative; display: flex; flex-direction: column; background: linear-gradient(180deg, var(--panel-2), var(--panel)); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.card-top { border-color: var(--blue); box-shadow: 0 0 0 1px var(--blue), 0 26px 70px -28px rgba(30,155,255,.75); }
.ribbon { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); background: linear-gradient(180deg, #45bcff, #1a7fe6); color: #fff; font: 700 .74rem/1 var(--head); letter-spacing: .1em; text-transform: uppercase; padding: 7px 16px; border-radius: 99px; white-space: nowrap; }
.art { margin: 16px 0; background: radial-gradient(closest-side, rgba(30,155,255,.16), rgba(0,0,0,0)); border-radius: 14px; }
.p-art { width: 100%; }
.p-photo { width: 100%; height: 200px; object-fit: contain; }
.why { color: #c3cfdf; font-size: .98rem; }
.pros { list-style: none; padding: 0; margin: 0 0 20px; font-size: .95rem; flex: 1; }
.pros li { padding-left: 26px; position: relative; margin-bottom: 8px; }
.pros li::before { content: "\2713"; position: absolute; left: 0; color: var(--cyan); font-weight: 700; }
.pros li.con { color: var(--muted); }
.pros li.con::before { content: "\2212"; color: var(--muted); }

/* ---------- Buttons ---------- */
.buy { display: flex; flex-direction: column; gap: 10px; }
.buy.row { flex-direction: row; flex-wrap: wrap; }
.btn { display: inline-block; text-align: center; text-decoration: none; font: 700 1rem/1.2 var(--head); padding: 15px 20px; border-radius: 13px; border: 1px solid transparent; transition: transform .12s ease, filter .12s ease; }
.btn:hover { transform: translateY(-1px); filter: brightness(1.1); }
.btn-main { background: linear-gradient(180deg, #ffb83d, #ff9500); color: #1a1000; box-shadow: 0 10px 26px -12px rgba(255,160,20,.9); }
.btn-main:hover { color: #1a1000; }
.btn-lg { font-size: 1.1rem; padding: 18px 22px; }
.btn-ghost { background: transparent; border-color: var(--line); color: var(--text); }
.btn-ghost:hover { border-color: var(--blue); color: var(--white); }
.btn-yt { background: #c4161c; color: #fff; }
.btn-yt:hover { color: #fff; background: var(--red); }
.link-cta { font-weight: 700; white-space: nowrap; }
.link-cta::after { content: " \2192"; }

/* ---------- Spec table ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); }
.specs { width: 100%; border-collapse: collapse; font-size: .93rem; min-width: 640px; }
.specs th, .specs td { text-align: left; padding: 14px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
.specs thead th { background: var(--panel-2); color: var(--white); font-family: var(--head); font-size: 1rem; position: sticky; top: 0; }
.specs tbody th { color: var(--muted); font-weight: 600; white-space: nowrap; }
.specs tr:last-child th, .specs tr:last-child td { border-bottom: 0; }

/* ---------- Guide tiles, verdict, FAQ, YouTube ---------- */
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.tile { display: block; text-decoration: none; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; color: var(--text); }
.tile:hover { border-color: var(--blue); color: var(--text); }
.tile strong { display: block; font: 700 1.15rem/1.25 var(--head); color: var(--white); margin-bottom: 6px; }
.tile span { font-size: .93rem; color: var(--muted); }
.verdict { background: linear-gradient(180deg, rgba(30,155,255,.14), rgba(30,155,255,.04)); border: 1px solid var(--blue); border-radius: var(--radius); padding: 24px; }
.verdict ul { margin: 0; padding-left: 1.2em; }
.note { border-left: 3px solid var(--cyan); background: var(--panel); padding: 16px 20px; border-radius: 0 12px 12px 0; }
.faq details { border: 1px solid var(--line); border-radius: 14px; background: var(--panel); margin-bottom: 10px; }
.faq summary { cursor: pointer; padding: 16px 20px; font: 600 1.05rem/1.3 var(--head); color: var(--white); }
.faq p { padding: 0 20px 18px; margin: 0; color: #c3cfdf; }
.yt-cta { margin: 46px 0; padding: 34px; border-radius: var(--radius); border: 1px solid var(--line); background: linear-gradient(100deg, rgba(5,8,15,.96) 30%, rgba(5,8,15,.55)), url("banner.webp") right center / cover no-repeat; }
.yt-cta > div { max-width: 620px; }
.yt-cta .buy { flex-direction: row; flex-wrap: wrap; }
.videos { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.video { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: #000; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.banner-img { border-radius: var(--radius); border: 1px solid var(--line); width: 100%; }

/* ---------- Footer ---------- */
.site-footer { margin-top: 60px; border-top: 1px solid var(--line); background: #03050a; padding: 44px 0 110px; font-size: .92rem; color: var(--muted); }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 30px; }
.site-footer h2 { font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: var(--chrome); margin-bottom: 12px; }
.site-footer nav a { display: block; color: var(--muted); text-decoration: none; padding: 4px 0; }
.site-footer nav a:hover { color: var(--white); }
.site-footer .brand { margin-bottom: 12px; }
.legal { margin-top: 30px; padding-top: 20px; border-top: 1px solid var(--line); font-size: .8rem; }

/* ---------- Sticky phone button ---------- */
.sticky-cta { position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; padding: 10px 14px calc(10px + env(safe-area-inset-bottom)); background: rgba(5,8,15,.95); border-top: 1px solid var(--line); transform: translateY(110%); transition: transform .25s ease; display: none; }
.sticky-cta.show { transform: none; }
.sticky-cta .btn { display: block; }

/* ---------- Phones and tablets ---------- */
@media (max-width: 900px) {
  .grid, .grid.two, .tiles { grid-template-columns: 1fr; }
  .card-top { order: -1; }
  .hero { grid-template-columns: 1fr; padding-top: 26px; gap: 10px; }
  .hero-logo { order: -1; }
  .hero-logo img { width: 190px; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .videos { grid-template-columns: 1fr; }
  .nav-toggle { display: block; }
  #nav { display: none; position: absolute; left: 0; right: 0; top: 66px; flex-direction: column; align-items: stretch; background: var(--ink); border-bottom: 1px solid var(--line); padding: 10px 16px 16px; }
  #nav.open { display: flex; }
  #nav a { padding: 13px 12px; font-size: 1.05rem; }
  #nav .nav-yt { margin: 8px 0 0; text-align: center; }
  .sticky-cta { display: block; }
  .yt-cta { padding: 24px; background: var(--panel); }
}
@media (max-width: 520px) { .foot-grid { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
