/* The CineGlow website: home, lights, privacy. Dark like the extension. */
:root {
  --bg: #0d0d11;
  --panel: rgba(255, 255, 255, .04);
  --hair: rgba(255, 255, 255, .09);
  --text: #f1f1f5;
  --muted: #a3a4b2;
  --accent: #ff7a45;
  --good: #3ecf8e;
  --brand: linear-gradient(100deg, #ffa04d, #ff7a45 25%, #e14fa0 62%, #8b5cf6);
  color-scheme: dark;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background:
    radial-gradient(900px 420px at 15% -10%, rgba(255, 122, 69, .14), transparent),
    radial-gradient(900px 420px at 95% 0%, rgba(139, 92, 246, .16), transparent),
    var(--bg);
  color: var(--text);
  font: 16px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: #ffb28f; }
img { max-width: 100%; }
main { max-width: 960px; margin: 0 auto; padding: 0 16px 64px; }
.narrow { max-width: 720px; }

/* nav */
.nav { display: flex; align-items: center; justify-content: space-between; gap: 12px; max-width: 960px; margin: 0 auto; padding: 16px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); font-weight: 750; font-size: 18px; text-decoration: none; }
.brand img { border-radius: 8px; box-shadow: 0 0 18px rgba(255, 122, 69, .45); }
.nav nav { display: flex; align-items: center; gap: 18px; }
.nav nav a:not(.btn) { color: var(--muted); text-decoration: none; }
.nav nav a:not(.btn):hover, .nav nav a[aria-current] { color: var(--text); }
@media (max-width: 440px) { .nav .wide-only { display: none; } .nav nav { gap: 12px; } }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 10px 20px;
  border: 1px solid rgba(255, 255, 255, .2); border-radius: 999px; color: var(--text); font-weight: 650; text-decoration: none; }
.btn:hover { border-color: rgba(255, 255, 255, .4); }
.btn.primary { border: 0; background: var(--brand); color: #fff; box-shadow: 0 8px 30px rgba(225, 79, 160, .25); }
.btn.small { min-height: 36px; padding: 6px 14px; font-size: 14px; }
.btn:focus-visible, a:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }

/* type */
h1 { margin: 0 0 12px; font-size: clamp(34px, 8vw, 60px); line-height: 1.05; letter-spacing: -.03em; }
h2 { margin: 0 0 10px; font-size: clamp(24px, 4.5vw, 32px); line-height: 1.15; letter-spacing: -.02em; }
h3 { margin: 0 0 6px; font-size: 18px; letter-spacing: -.01em; }
.grad { background: var(--brand); -webkit-background-clip: text; background-clip: text; color: transparent; }
.eyebrow { margin: 0 0 10px; color: var(--accent); font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.lead { margin: 0 0 18px; color: var(--muted); font-size: 18px; }
.fine { color: var(--muted); font-size: 13.5px; }
section { margin-top: 72px; }

/* cards */
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; }
.card { padding: 20px; border: 1px solid var(--hair); border-radius: 16px; background: var(--panel); }
.card p { margin: 0; color: var(--muted); }
.card.best { border-color: rgba(255, 122, 69, .5); background: rgba(255, 122, 69, .07); }

footer { max-width: 960px; margin: 0 auto; padding: 28px 16px 40px; border-top: 1px solid var(--hair); color: var(--muted); font-size: 13.5px; }
footer nav { display: flex; flex-wrap: wrap; gap: 16px; margin-bottom: 10px; }
footer p { margin: 4px 0; }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

/* guides (/ambient-mode, /ambilight-for-pc, /led-strip-sync, /watch-together) */
.guide { padding-top: 24px; }
.guide h1 { font-size: clamp(30px, 6.5vw, 46px); }
.guide h2 { margin-top: 44px; font-size: clamp(22px, 4vw, 27px); }
.guide p, .guide li { color: #d3d4de; }
.guide ol, .guide ul { padding-left: 22px; }
.guide li { margin-bottom: 10px; }
.guide li b, .guide p b { color: var(--text); }
.guide .cta { display: flex; flex-wrap: wrap; gap: 10px; margin: 6px 0 4px; }
.guide .short { margin-top: 28px; padding: 18px 20px; border: 1px solid rgba(255, 122, 69, .45); border-radius: 16px; background: rgba(255, 122, 69, .07); }
.guide .short p { margin: 0; color: var(--text); }
.guide table { width: 100%; border-collapse: collapse; margin: 6px 0 4px; font-size: 15px; }
.guide th, .guide td { padding: 10px 8px; border-bottom: 1px solid var(--hair); text-align: left; vertical-align: top; }
.guide th { color: var(--muted); font-size: 13px; font-weight: 600; }
.guide details { border-bottom: 1px solid var(--hair); }
.guide summary { padding: 16px 0; cursor: pointer; font-weight: 650; }
.guide details p { margin: 0 0 16px; }
.more { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; }
.more a { display: block; padding: 16px 18px; border: 1px solid var(--hair); border-radius: 14px; background: var(--panel); color: var(--text); text-decoration: none; }
.more a:hover { border-color: rgba(255, 255, 255, .3); }
.more a span { display: block; margin-top: 4px; color: var(--muted); font-size: 14px; }
footer .guides a { color: var(--muted); }

/* on a phone: "send it to my laptop" (site.js) */
dialog.send { width: min(440px, calc(100% - 32px)); padding: 24px 20px 20px; border: 1px solid var(--hair); border-radius: 20px;
  background: #16161d; color: var(--text); box-shadow: 0 30px 80px rgba(0, 0, 0, .7); }
dialog.send::backdrop { background: rgba(0, 0, 0, .6); }
dialog.send h2 { margin: 0 0 8px; font-size: 22px; }
dialog.send p { margin: 0 0 16px; color: var(--muted); }
dialog.send .ways { display: grid; gap: 10px; }
dialog.send .btn { width: 100%; font: inherit; font-weight: 650; background: transparent; cursor: pointer; }
dialog.send .btn.primary { background: var(--brand); }
dialog.send .link { margin: 14px 0 0; overflow-wrap: anywhere; font-size: 13.5px; text-align: center; }
dialog.send .close { position: absolute; top: 10px; right: 12px; width: 36px; height: 36px; border: 0; border-radius: 50%;
  background: transparent; color: var(--muted); font-size: 22px; line-height: 1; cursor: pointer; }
