/* BeamOS site. Colours from the app (Design/BeamTheme.swift) and its icon. */
:root {
  --bg: #07080d;
  --bg-2: #0d1020;
  --navy: #121735;
  --card: #12141c;
  --card-border: #242733;
  --text: #f2f3f5;
  --text-2: #a3a7b2;
  --text-3: #767a85;
  --blue: #5e8bff;
  --blue-deep: #3b5fd9;
  --amber: #ffc46b;
  --amber-soft: #ffe7c2;
  --green: #8fd6b1;
  --radius: 18px;
  --max: 1160px;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.6 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 3px; border-radius: 6px; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.eyebrow {
  font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--amber); margin: 0 0 12px;
}
h1, h2, h3 { line-height: 1.12; margin: 0; letter-spacing: -0.02em; }
h1 { font-size: clamp(40px, 6.4vw, 76px); font-weight: 800; }
h2 { font-size: clamp(30px, 4vw, 48px); font-weight: 800; }
h3 { font-size: 20px; font-weight: 700; letter-spacing: -0.01em; }
.lede { font-size: clamp(18px, 2vw, 21px); color: var(--text-2); max-width: 680px; }
.muted { color: var(--text-2); }
.small { font-size: 14px; color: var(--text-3); }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: rgba(7, 8, 13, .78);
  backdrop-filter: saturate(160%) blur(18px);
  -webkit-backdrop-filter: saturate(160%) blur(18px);
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.site-header .wrap { display: flex; align-items: center; gap: 28px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); font-weight: 800; font-size: 19px; letter-spacing: -0.01em; }
.brand:hover { text-decoration: none; }
.brand img { width: 40px; height: 24px; object-fit: cover; border-radius: 6px; }
.nav { display: flex; gap: 22px; margin-left: auto; font-size: 15px; }
.nav a { color: var(--text-2); white-space: nowrap; }
.nav a:hover { color: var(--text); text-decoration: none; }
.menu-toggle { display: none; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px; border-radius: 999px; font-weight: 700; font-size: 16px;
  border: 1px solid transparent; cursor: pointer; white-space: nowrap;
}
.btn:hover { text-decoration: none; filter: brightness(1.08); }
.btn-primary { background: var(--blue); color: #fff; }
.btn-amber { background: var(--amber); color: #1b1407; }
.btn-ghost { background: rgba(255,255,255,.06); color: var(--text); border-color: rgba(255,255,255,.12); }
.btn-small { padding: 8px 16px; font-size: 14px; }

/* Hero */
.hero {
  position: relative; overflow: hidden;
  padding: 88px 0 40px; text-align: center;
  background:
    radial-gradient(1100px 560px at 50% -10%, rgba(94,139,255,.22), transparent 60%),
    radial-gradient(700px 420px at 85% 40%, rgba(255,196,107,.10), transparent 70%),
    linear-gradient(180deg, var(--bg-2), var(--bg));
}
.hero .lede { margin: 22px auto 30px; }
.hero-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.hero-note { margin-top: 14px; }
.screen {
  margin: 56px auto 0; max-width: 1040px; position: relative;
  border-radius: 22px; padding: 10px;
  background: linear-gradient(180deg, #1b1e2b, #0c0d13);
  border: 1px solid #2a2e3c;
  box-shadow: 0 40px 120px rgba(0,0,0,.6), 0 0 160px rgba(255,196,107,.10);
}
.screen img { border-radius: 14px; width: 100%; }
.screen::after { /* the projector's light falling on the picture */
  content: ""; position: absolute; inset: -40% -10% auto; height: 70%;
  background: radial-gradient(closest-side, rgba(255,214,150,.10), transparent);
  pointer-events: none;
}

/* Logos strip */
.servers { padding: 34px 0 10px; text-align: center; }
.servers ul { list-style: none; display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; padding: 0; margin: 14px 0 0; }
.chip {
  display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border-radius: 999px;
  background: var(--card); border: 1px solid var(--card-border); font-weight: 600; font-size: 15px;
}
.dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }

/* Story sections */
section { padding: 96px 0; }
.story { display: grid; grid-template-columns: 1fr 1.15fr; gap: 64px; align-items: center; }
.story.flip .story-text { order: 2; }
.story-text p { color: var(--text-2); }
.story-text ul { padding-left: 0; list-style: none; margin: 22px 0 0; }
.story-text li { padding-left: 30px; position: relative; margin-bottom: 12px; color: var(--text); }
.story-text li::before {
  content: ""; position: absolute; left: 0; top: 9px; width: 14px; height: 8px;
  border-left: 2.5px solid var(--amber); border-bottom: 2.5px solid var(--amber); transform: rotate(-45deg);
}
.shot {
  border-radius: 16px; overflow: hidden; border: 1px solid var(--card-border);
  box-shadow: 0 30px 80px rgba(0,0,0,.5);
}
.story.solo { grid-template-columns: 1fr; max-width: 760px; }
.band { background: linear-gradient(180deg, var(--bg), #0b0d18 30%, #0b0d18 70%, var(--bg)); }

/* Quote */
.quote { text-align: center; padding: 40px 0 0; }
.quote blockquote { margin: 0 auto; max-width: 820px; font-size: clamp(22px, 3vw, 32px); font-weight: 700; line-height: 1.3; }
.quote cite { display: block; margin-top: 14px; font-style: normal; color: var(--text-3); font-size: 15px; letter-spacing: .08em; text-transform: uppercase; }

/* Live TV guide mock (fictional channels, drawn in HTML) */
.guide {
  border-radius: 18px; overflow: hidden; border: 1px solid var(--card-border);
  background: #0c0e17; box-shadow: 0 30px 80px rgba(0,0,0,.5); font-size: 14px;
}
.guide-head { display: grid; grid-template-columns: 110px repeat(4, 1fr); color: var(--text-3); font-weight: 600; padding: 12px 12px 6px; }
.guide-row { display: grid; grid-template-columns: 110px 1fr; gap: 6px; padding: 4px 12px; }
.guide-row .ch {
  background: #e9ecf3; color: #12131a; border-radius: 9px; display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 13px; text-align: center; padding: 6px; min-height: 52px;
}
.guide-row .progs { display: grid; gap: 5px; }
.prog { border-radius: 9px; padding: 7px 10px; color: #fff; min-height: 52px; overflow: hidden; }
.prog small { display: block; opacity: .75; font-size: 12px; }
.prog b { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.prog.focus { outline: 3px solid #fff; outline-offset: -1px; }
.p1 { background: #2f5d8a; } .p2 { background: #7a3b6e; } .p3 { background: #2f7466; }
.p4 { background: #8a5a2b; } .p5 { background: #4b4f9c; } .p6 { background: #8b3a3a; }
.guide-foot { padding: 10px 12px 14px; color: var(--text-3); font-size: 13px; }

/* Multiview illustration: the player shot plus drawn live tiles (fictional channels) */
.mv { position: relative; border-radius: 16px; overflow: hidden; border: 1px solid var(--card-border); box-shadow: 0 30px 80px rgba(0,0,0,.5); }
.mv > img { width: 100%; filter: brightness(.9); }
.mv-stack { position: absolute; right: 3%; bottom: 5%; width: 30%; display: grid; gap: 8px; }
.mv-tile { aspect-ratio: 16 / 9; border-radius: 10px; padding: 8px 10px; color: #fff; display: flex; flex-direction: column; justify-content: flex-end;
  border: 2px solid rgba(255,255,255,.85); box-shadow: 0 8px 24px rgba(0,0,0,.5); font-size: 13px; line-height: 1.25; position: relative; }
.mv-tile b { font-size: 13px; } .mv-tile small { opacity: .8; font-size: 11px; }
.mv-live { position: absolute; top: 7px; left: 8px; background: #ff5a5a; color: #fff; font-size: 10px; font-weight: 800; letter-spacing: .06em; padding: 1px 6px; border-radius: 4px; }
.mv-audio { position: absolute; left: 3%; top: 5%; background: rgba(0,0,0,.6); color: #fff; font-size: 13px; font-weight: 600; padding: 4px 10px; border-radius: 999px; }
@media (max-width: 600px) { .mv-tile small { display: none; } .mv-tile { padding: 6px 8px; } .mv-tile b { font-size: 11px; } }

/* Listen on iPhone illustration (drawn; wording matches the app) */
.phone-wrap { display: flex; justify-content: center; }
.phone { width: 300px; max-width: 100%; aspect-ratio: 9 / 18.5; border-radius: 44px; background: #0b0c12; border: 10px solid #23262f;
  box-shadow: 0 30px 80px rgba(0,0,0,.55), 0 0 120px rgba(94,139,255,.15); padding: 52px 18px 18px; position: relative; display: flex; flex-direction: column; gap: 14px; }
.phone-notch { position: absolute; top: 12px; left: 50%; transform: translateX(-50%); width: 96px; height: 26px; border-radius: 14px; background: #000; }
.phone-kicker { margin: 0; color: var(--text-3); font-size: 13px; font-weight: 600; }
.phone-title { margin: -8px 0 0; font-size: 24px; font-weight: 800; }
.chip-row { display: flex; flex-wrap: wrap; gap: 8px; }
.pchip { font-size: 13px; font-weight: 600; padding: 7px 12px; border-radius: 999px; background: #1a1d28; border: 1px solid #2c3040; }
.pchip em { font-style: normal; color: var(--text-3); font-weight: 500; }
.pchip.on { background: var(--blue); border-color: var(--blue); color: #fff; }
.now { margin-top: auto; background: linear-gradient(160deg, #8b3a3a, #4a1f2c); border-radius: 18px; padding: 16px; position: relative; display: flex; flex-direction: column; gap: 2px; }
.now .mv-live { position: static; align-self: flex-start; margin-bottom: 6px; }
.now small { color: rgba(255,255,255,.75); font-size: 12px; }
.bars { display: flex; gap: 4px; align-items: flex-end; height: 22px; margin-top: 10px; }
.bars i { width: 5px; border-radius: 3px; background: #fff; opacity: .9; }
.bars i:nth-child(1){height:40%} .bars i:nth-child(2){height:90%} .bars i:nth-child(3){height:60%} .bars i:nth-child(4){height:100%} .bars i:nth-child(5){height:50%}
.sync { display: flex; align-items: center; gap: 10px; color: var(--text-2); font-size: 14px; font-weight: 600; }
.sync span:first-child { margin-right: auto; }
.pm { width: 34px; height: 34px; border-radius: 50%; background: #1a1d28; display: grid; place-items: center; color: var(--text); font-size: 18px; }

/* Feature grid */
.grid-head { text-align: center; max-width: 760px; margin: 0 auto 48px; }
.grid-head .lede { margin: 16px auto 0; }
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.feature {
  background: var(--card); border: 1px solid var(--card-border); border-radius: var(--radius);
  padding: 26px;
}
.feature .icon {
  width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; margin-bottom: 16px;
  background: rgba(94,139,255,.14); color: var(--blue);
}
.feature .icon svg { width: 24px; height: 24px; }
.feature p { color: var(--text-2); margin: 8px 0 0; font-size: 16px; }
.tag { display: inline-block; font-size: 11px; font-weight: 800; letter-spacing: .08em; color: #1b1407; background: var(--amber); border-radius: 6px; padding: 2px 6px; margin-left: 6px; vertical-align: 3px; }

/* Pricing */
.pricing { background:
    radial-gradient(900px 500px at 50% 0%, rgba(94,139,255,.16), transparent 65%), var(--bg); }
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 48px; align-items: stretch; }
.plan {
  background: var(--card); border: 1px solid var(--card-border); border-radius: 22px; padding: 30px;
  display: flex; flex-direction: column;
}
.plan.best { border: 2px solid var(--blue); background: linear-gradient(180deg, #161b33, var(--card)); position: relative; }
.plan .badge {
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  background: var(--blue); color: #fff; font-size: 12px; font-weight: 800; letter-spacing: .1em;
  padding: 5px 12px; border-radius: 999px;
}
.plan .price { font-size: 48px; font-weight: 800; letter-spacing: -0.03em; margin: 12px 0 0; }
.plan .per { color: var(--text-2); font-size: 16px; font-weight: 500; }
.plan .note { color: var(--text-2); margin: 10px 0 24px; flex: 1; }
.plan .btn { width: 100%; }
.included { margin-top: 48px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px 28px; color: var(--text-2); list-style: none; padding: 0; }
.included li { padding-left: 26px; position: relative; }
.included li::before { content: "✓"; position: absolute; left: 0; color: var(--green); font-weight: 800; }
.fine { margin-top: 28px; text-align: center; }

/* Specs */
.specs { width: 100%; border-collapse: collapse; margin-top: 40px; }
.specs th, .specs td { text-align: left; vertical-align: top; padding: 18px 0; border-bottom: 1px solid var(--card-border); }
.specs th { width: 220px; font-weight: 700; padding-right: 24px; }
.specs td { color: var(--text-2); }

/* Community */
.community-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: start; margin-top: 40px; }
.cats { display: grid; gap: 12px; }
.cat {
  display: flex; gap: 16px; align-items: flex-start; background: var(--card); border: 1px solid var(--card-border);
  border-radius: 16px; padding: 18px 20px; color: var(--text);
}
.cat:hover { text-decoration: none; border-color: #3a4054; }
.cat .swatch { width: 12px; height: 40px; border-radius: 4px; flex: none; }
.cat p { margin: 4px 0 0; color: var(--text-2); font-size: 15px; }
.notify {
  background: linear-gradient(180deg, #171c35, var(--card)); border: 1px solid #2d3557; border-radius: 22px; padding: 30px;
}
.notify h3 { font-size: 24px; }
.notify ol { color: var(--text-2); padding-left: 20px; }
.notify ol li { margin-bottom: 8px; }

/* FAQ */
.faq { max-width: 820px; margin: 40px auto 0; }
.faq details { border-bottom: 1px solid var(--card-border); padding: 18px 0; }
.faq summary { cursor: pointer; font-weight: 700; font-size: 18px; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--text-3); font-size: 22px; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--text-2); margin: 12px 0 0; }

/* Final call */
.cta { text-align: center; padding: 110px 0; background:
  radial-gradient(700px 360px at 50% 100%, rgba(255,196,107,.16), transparent 70%), var(--bg); }
.cta .lede { margin: 16px auto 28px; }

/* Footer */
.site-footer { border-top: 1px solid var(--card-border); padding: 36px 0 48px; color: var(--text-3); font-size: 14px; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 18px 28px; align-items: center; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 20px; margin-left: auto; }
.site-footer a { color: var(--text-2); }

/* Plain pages (support) */
.page { max-width: 780px; margin: 0 auto; padding: 64px 24px 80px; }
.page h1 { font-size: clamp(36px, 5vw, 52px); }
.page h2 { font-size: 26px; margin-top: 44px; }
.page p, .page li { color: var(--text-2); }
.page li { margin-bottom: 8px; }
.card-link { display: block; background: var(--card); border: 1px solid var(--card-border); border-radius: 16px; padding: 20px 22px; margin-top: 14px; color: var(--text); }
.card-link:hover { text-decoration: none; border-color: #3a4054; }
.card-link span { display: block; color: var(--text-2); font-size: 15px; margin-top: 4px; }

/* Layout below tablet width */
@media (max-width: 900px) {
  .story, .community-grid { grid-template-columns: 1fr; gap: 36px; }
  .story.flip .story-text { order: 0; }
  .features { grid-template-columns: 1fr 1fr; }
  .plans { gap: 14px; }
  .plan { padding: 24px 20px; }
  .plan .price { font-size: 38px; }
  .included { grid-template-columns: 1fr 1fr; }
  section { padding: 72px 0; }
}
@media (max-width: 700px) {
  .plans { grid-template-columns: 1fr; max-width: 440px; margin-left: auto; margin-right: auto; }
}
@media (max-width: 880px) {
  .nav { display: none; position: absolute; top: 64px; left: 0; right: 0; flex-direction: column; gap: 0; background: rgba(7,8,13,.97); border-bottom: 1px solid var(--card-border); padding: 8px 24px 16px; }
  .nav.open { display: flex; }
  .nav a { padding: 12px 0; font-size: 17px; }
  .menu-toggle { display: inline-flex; margin-left: auto; background: none; border: 1px solid var(--card-border); color: var(--text); border-radius: 10px; padding: 8px 12px; font: inherit; font-size: 15px; }
  .site-header .btn { display: none; }
}
@media (max-width: 600px) {
  .wrap { padding: 0 16px; }
  .features, .plans, .included { grid-template-columns: 1fr; }
  .hero { padding-top: 56px; }
  .specs th { width: 120px; }
  .guide { font-size: 12px; }
  .guide-head { grid-template-columns: 76px repeat(2, 1fr); }
  .guide-row { grid-template-columns: 76px 1fr; }
  .guide-head span:nth-child(n+2) { display: none; }
}

/* Links whose destination isn't live yet (see config.js). */
a.soon { opacity: .55; cursor: default; pointer-events: none; }
a.cat.soon { opacity: .8; }
