/* RADIOJOTE: Scandinavian, calm, one red accent. Same tokens as the app (docs/UI_DESIGN.md). */
:root {
  --bg: #F6F5F2; --surface: #FFFFFF; --ink: #18191B; --muted: #5C6066; --line: #E2E0DA;
  --accent: #C8102E; --accent-ink: #FFFFFF; --chip: #ECEAE5; --al: #C8102E; --xk: #1F4FA8; --ds: #1B7F6B;
  --radius: 18px; --max: 1080px;
  --font: Inter, "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;
  --display: Manrope, Inter, "Segoe UI", system-ui, -apple-system, sans-serif;
}
/* Theme: follows the device until the visitor picks one with the sun/moon button (theme.js sets data-theme). */
:root { color-scheme: light; }
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #111214; --surface: #1B1D20; --ink: #F1F0EC; --muted: #A2A6AC; --line: #2A2D31;
  --accent: #FF6670; --accent-ink: #111214; --chip: #25282C; --al: #FF6670; --xk: #7C9BF2; --ds: #5CC8AE;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #111214; --surface: #1B1D20; --ink: #F1F0EC; --muted: #A2A6AC; --line: #2A2D31;
    --accent: #FF6670; --accent-ink: #111214; --chip: #25282C; --al: #FF6670; --xk: #7C9BF2; --ds: #5CC8AE;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 17px/1.6 var(--font); }
a { color: var(--accent); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
img { max-width: 100%; height: auto; display: block; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; background: var(--surface); padding: 8px 12px; z-index: 10; }

/* Header */
.site-header { border-bottom: 1px solid var(--line); background: var(--bg); }
.site-header .wrap { display: flex; align-items: center; gap: 16px; min-height: 72px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font: 800 20px/1 var(--display); letter-spacing: .5px; }
.brand img { width: 36px; height: 36px; }
.nav { margin-left: auto; display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.nav a { color: var(--ink); text-decoration: none; padding: 10px 12px; border-radius: 10px; font-weight: 500; }
.nav a:hover { background: var(--chip); }
.nav a[aria-current="page"] { background: var(--chip); font-weight: 700; }
.lang { border: 1px solid var(--line); }
.theme-toggle { width: 42px; height: 42px; display: inline-grid; place-items: center; border: 1px solid var(--line); border-radius: 10px; background: none; color: var(--ink); cursor: pointer; padding: 0; }
.theme-toggle[hidden] { display: none; }
.theme-toggle:hover { background: var(--chip); }
.theme-toggle svg { width: 20px; height: 20px; }
.theme-toggle .sun { display: none; }
:root[data-theme="dark"] .theme-toggle .sun { display: block; }
:root[data-theme="dark"] .theme-toggle .moon { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle .sun { display: block; }
  :root:not([data-theme="light"]) .theme-toggle .moon { display: none; }
}

/* Hero */
.hero { padding: 72px 0 48px; }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 48px; align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--muted); }
.eyebrow::before { content: ""; width: 8px; height: 8px; border-radius: 4px; background: var(--accent); }
h1, h2, h3 { font-family: var(--display); line-height: 1.15; margin: 0; }
h1 { font-size: clamp(36px, 6vw, 60px); font-weight: 800; letter-spacing: -1px; margin: 14px 0 18px; }
.lead { font-size: 20px; color: var(--muted); max-width: 34em; margin: 0 0 28px; }
.cta { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.badge-soon { display: inline-flex; align-items: center; gap: 10px; padding: 14px 20px; border-radius: 14px; background: var(--ink); color: var(--bg); font-weight: 700; }
.badge-soon small { font-weight: 500; opacity: .8; white-space: nowrap; }
.button-ghost { display: inline-flex; padding: 14px 20px; border-radius: 14px; border: 1px solid var(--line); color: var(--ink); text-decoration: none; font-weight: 600; background: var(--surface); }
.phones { display: flex; gap: 18px; justify-content: center; }
/* Hero: the Android and iPhone apps side by side, each in a simple phone frame with its name underneath. */
.devices { display: flex; gap: 22px; justify-content: center; align-items: flex-start; }
.device { margin: 0; width: min(46%, 250px); display: flex; flex-direction: column; align-items: center; gap: 12px; }
.device img { width: 100%; height: auto; display: block; background: #111; border: 7px solid #111; box-shadow: 0 24px 60px rgba(0,0,0,.18); }
.device.android img { border-radius: 30px; }
.device.iphone img { border-radius: 44px; border-width: 8px; }
.device.iphone { margin-top: 48px; }
.device figcaption { font-weight: 700; font-size: 15px; color: var(--muted); display: flex; align-items: center; gap: 8px; }
.device figcaption::before { content: ""; width: 8px; height: 8px; border-radius: 4px; background: var(--accent); }
.device.iphone figcaption::before { background: var(--ink); }
.phones img { width: min(46%, 240px); border-radius: 28px; border: 1px solid var(--line); box-shadow: 0 24px 60px rgba(0,0,0,.14); }
.phones img:nth-child(2) { margin-top: 48px; }

/* Stats */
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 0 0 8px; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; }
.stat b { display: block; font: 800 34px/1 var(--display); }
.stat span { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 15px; margin-top: 6px; }
.dot { width: 8px; height: 8px; border-radius: 4px; display: inline-block; }
.dot.al { background: var(--al); } .dot.xk { background: var(--xk); } .dot.ds { background: var(--ds); } .dot.all { background: var(--ink); }

/* Sections */
section { padding: 56px 0; }
.section-head { max-width: 40em; margin-bottom: 28px; }
.section-head h2 { font-size: clamp(28px, 4vw, 38px); font-weight: 800; letter-spacing: -.5px; margin-bottom: 10px; }
.section-head p { color: var(--muted); margin: 0; }
.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.card h3 { font-size: 19px; font-weight: 700; margin-bottom: 8px; }
.card p { margin: 0; color: var(--muted); font-size: 16px; }
.icon { width: 44px; height: 44px; border-radius: 12px; background: var(--chip); display: grid; place-items: center; margin-bottom: 16px; color: var(--ink); }
.icon svg { width: 22px; height: 22px; }

.intl-grid h3 { display: flex; align-items: baseline; gap: 8px; font-size: 18px; margin-bottom: 8px; }
.intl-grid h3 small { color: var(--muted); font-weight: 500; font-size: 14px; }
.intl-grid ul { margin: 0; padding: 0; list-style: none; columns: 2; column-gap: 16px; font-size: 15px; }
.intl-grid li { padding: 3px 0; break-inside: avoid; }
.stations { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.stations ol { margin: 0; padding-left: 22px; }
.stations li { padding: 4px 0; }
.stations h3 { display: flex; align-items: center; gap: 8px; font-size: 18px; margin-bottom: 10px; }

.auto { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; align-items: center; }
.auto ul { padding-left: 20px; margin: 0; }
.auto li { padding: 4px 0; }
.car { background: #0E0F11; color: #F1F0EC; border-radius: 22px; padding: 18px; font-family: var(--display); border: 1px solid #22252A; }
.car .tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.car .tabs span { padding: 8px 14px; border-radius: 999px; font-size: 15px; color: #A2A6AC; }
.car .tabs span.on { background: #2A2D32; color: #fff; font-weight: 700; }
.car .row { display: flex; justify-content: space-between; padding: 12px 6px; border-top: 1px solid #22252A; }
.car .row small { color: #A2A6AC; font-family: var(--font); }

.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 16px 20px; margin-bottom: 10px; }
.faq summary { cursor: pointer; font-weight: 700; }
.faq details p { color: var(--muted); margin: 10px 0 0; }

/* Policy pages */
.prose { max-width: 46em; padding: 56px 0 72px; }
.prose h1 { font-size: clamp(32px, 5vw, 46px); }
.prose h2 { font-size: 22px; margin: 36px 0 10px; }
.prose p, .prose li { color: var(--ink); }
.prose .meta { color: var(--muted); }
.summary { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 24px; }
.summary ul { margin: 0; padding-left: 20px; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 32px 0 48px; color: var(--muted); font-size: 15px; }
.site-footer .wrap { display: flex; gap: 16px 28px; flex-wrap: wrap; justify-content: space-between; }
.site-footer a { color: var(--muted); }
.site-footer nav { display: flex; gap: 18px; flex-wrap: wrap; }

/* Live-listen page (degjo.html / en/listen.html) */
.listen-tools { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; margin-bottom: 20px; }
.filter { display: inline-flex; max-width: 100%; overflow-x: auto; scrollbar-width: none; background: var(--chip); border-radius: 999px; padding: 4px; gap: 2px; }
.filter::-webkit-scrollbar { display: none; }
.filter.countries { display: flex; flex-wrap: wrap; overflow: visible; background: none; padding: 0; gap: 6px; flex-basis: 100%; }
.filter.countries[hidden] { display: none; }
.filter.countries button { background: var(--chip); font-size: 14px; padding: 6px 12px; }
.filter.countries button[aria-pressed="true"] { background: var(--ink); color: var(--bg); box-shadow: none; }
.filter.countries button[aria-pressed="true"] small { color: inherit; }
.filter button { font: inherit; font-weight: 600; font-size: 15px; border: 0; background: none; color: var(--ink); padding: 8px 14px; border-radius: 999px; cursor: pointer; display: inline-flex; gap: 6px; align-items: center; flex: none; white-space: nowrap; }
.filter button small { color: var(--muted); font-weight: 500; }
.filter button[aria-pressed="true"] { background: var(--surface); box-shadow: 0 1px 3px rgba(0,0,0,.12); }
.search { flex: 1 1 220px; max-width: 360px; font: inherit; color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 10px 18px; }
.station-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 16px; }
.st { display: flex; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; }
.st-play { flex: 1; min-width: 0; display: flex; align-items: center; gap: 14px; padding: 10px 12px; font: inherit; color: var(--ink); background: none; border: 0; text-align: left; cursor: pointer; border-radius: 14px; }
.st-play:hover { background: var(--chip); }
.st-play:disabled { cursor: default; background: none; }
.st-art, .np-art { flex: none; width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; font: 800 16px/1 var(--display); color: #fff; overflow: hidden; }
.st-art.has-logo, .np-art.has-logo { background: #fff; border: 1px solid var(--line); }
.st-art img, .np-art img { width: 100%; height: 100%; object-fit: contain; }
[data-tint="0"] { background: #C8102E; } [data-tint="1"] { background: #1F4FA8; } [data-tint="2"] { background: #2E7D5B; }
[data-tint="3"] { background: #8A5A2B; } [data-tint="4"] { background: #6B4FA0; } [data-tint="5"] { background: #3D5560; }
.st-text { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.st-name { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.st-meta { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: 14px; }
.st-icon { flex: none; width: 36px; height: 36px; border-radius: 18px; background: var(--chip); position: relative; }
.st-icon::before { content: ""; position: absolute; left: 14px; top: 11px; border-left: 11px solid var(--ink); border-top: 7px solid transparent; border-bottom: 7px solid transparent; }
.st.is-playing { border-color: var(--accent); }
.st.is-playing .st-name { color: var(--accent); }
.st.is-playing .st-icon { background: var(--accent); }
.st.is-playing .st-icon::before { left: 12px; top: 11px; width: 4px; height: 14px; border: 0; background: var(--accent-ink); box-shadow: 8px 0 0 var(--accent-ink); }
.st.is-offline .st-art, .st.is-offline .st-name { opacity: .45; }
.st.is-offline .st-icon { opacity: .35; }
.st-site { flex: none; width: 44px; align-self: stretch; display: grid; place-items: center; color: var(--muted); text-decoration: none; border-left: 1px solid var(--line); }
.st-site:hover { color: var(--accent); }
.listen-note { color: var(--muted); font-size: 15px; margin-top: 28px; max-width: 46em; }
.now-playing { position: fixed; left: 0; right: 0; bottom: 0; z-index: 5; background: var(--surface); border-top: 1px solid var(--line); box-shadow: 0 -8px 30px rgba(0,0,0,.08); }
.now-playing .wrap { display: flex; align-items: center; gap: 14px; min-height: 76px; }
.np-text { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.np-name { font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.np-status { color: var(--muted); font-size: 14px; }
.now-playing[data-state="live"] .np-status { color: var(--accent); font-weight: 700; }
.now-playing[data-state="live"] .np-status::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 4px; background: var(--accent); margin-right: 6px; vertical-align: 1px; }
.np-toggle { flex: none; width: 52px; height: 52px; border-radius: 26px; border: 0; background: var(--ink); cursor: pointer; position: relative; }
.np-toggle::before { content: ""; position: absolute; left: 19px; top: 17px; width: 5px; height: 18px; background: var(--bg); box-shadow: 10px 0 0 var(--bg); }
.now-playing.is-paused .np-toggle::before { left: 21px; top: 16px; width: 0; height: 0; background: none; box-shadow: none; border-left: 16px solid var(--bg); border-top: 10px solid transparent; border-bottom: 10px solid transparent; }
body.has-player .site-footer { padding-bottom: 120px; }
@media (max-width: 820px) { .station-list { grid-template-columns: minmax(0, 1fr); } .search { max-width: none; } }
@media (max-width: 480px) { .filter:not(.countries) { display: grid; grid-template-columns: 1fr 1fr; width: 100%; border-radius: 20px; } .filter button { justify-content: center; border-radius: 16px; } .filter:not(.countries) button:last-child { grid-column: 1 / -1; } }

/* Premium: plans on the home page and premium.html */
.plans { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; align-items: stretch; }
.plan { background: var(--surface); border: 1px solid var(--line); border-radius: 24px; padding: 28px; display: flex; flex-direction: column; gap: 18px; }
.plan h3 { font-size: 24px; font-weight: 800; }
.plan .price { font: 800 34px/1 var(--display); letter-spacing: -.5px; }
.plan .price small { display: block; font: 500 15px/1.4 var(--font); color: var(--muted); letter-spacing: 0; margin-top: 8px; }
.plan.premium { border: 2px solid var(--accent); box-shadow: 0 24px 60px rgba(200, 16, 46, .12); position: relative; }
.plan.premium .ribbon { position: absolute; top: -14px; left: 24px; background: var(--accent); color: var(--accent-ink); font-size: 13px; font-weight: 700; letter-spacing: .5px; padding: 5px 12px; border-radius: 999px; }
.checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.checks li { display: flex; gap: 10px; align-items: flex-start; }
.checks li::before { content: ""; flex: none; width: 20px; height: 20px; margin-top: 3px; border-radius: 10px; background: var(--chip) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 10.5l3 3 6-7' fill='none' stroke='%23C8102E' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 20px no-repeat; }
.checks li.limit::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M6 10h8' fill='none' stroke='%235C6066' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E"); }
.checks small { color: var(--muted); }
.plan .more { margin-top: auto; }
.tag { display: inline-block; vertical-align: 2px; margin-left: 6px; font-size: 12px; font-weight: 700; letter-spacing: .3px; padding: 2px 8px; border-radius: 999px; background: var(--chip); color: var(--muted); white-space: nowrap; }
.tag.now { background: var(--accent); color: var(--accent-ink); }
.promises { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-top: 16px; }
.promise { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.promise b { display: block; font: 800 17px/1.3 var(--display); margin-bottom: 4px; }
.promise span { color: var(--muted); font-size: 15px; }
.compare { width: 100%; border-collapse: separate; border-spacing: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; font-size: 16px; }
.compare th, .compare td { padding: 14px 18px; text-align: left; border-bottom: 1px solid var(--line); }
.compare tr:last-child td { border-bottom: 0; }
.compare thead th { font-family: var(--display); font-size: 15px; background: var(--chip); }
.compare td:not(:first-child), .compare th:not(:first-child) { text-align: center; width: 22%; }
.compare .yes { color: var(--accent); font-weight: 800; }
.compare .no { color: var(--muted); }
.premium-hero { padding: 72px 0 24px; }
.premium-hero .lead { max-width: 38em; }
.feature-grid .card { position: relative; }
.feature-grid .card .tag { position: absolute; top: 30px; right: 24px; margin: 0; }

@media (max-width: 820px) {
  .hero { padding: 40px 0 24px; }
  .hero .wrap, .auto, .stations { grid-template-columns: 1fr; }
  .grid { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr; }
  .plans, .promises { grid-template-columns: 1fr; }
  .compare th, .compare td { padding: 12px 10px; }
  .phones img:nth-child(2) { margin-top: 24px; }
  .device.iphone { margin-top: 24px; }
  .nav { margin-left: 0; }
}
