:root {
  --bg: #0b0b0f;
  --bg-alt: #0f0f14;
  --surface: #15151c;
  --surface-2: #1c1c25;
  --border: #262631;
  --border-strong: #363644;
  --text: #ededf2;
  --muted: #9a9aab;
  --faint: #6b6b7c;
  --accent: #ff4d2e;
  --accent-2: #ff9a3d;
  --accent-ink: #fff;
  --good: #22c55e;
  --bad: #f43f5e;
  --warn: #f59e0b;
  --radius: 14px;
  --radius-sm: 9px;
  --shadow: 0 10px 40px -12px rgb(0 0 0 / 0.6);
  --font: ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  color-scheme: dark;
}

@media (prefers-color-scheme: light) {
  :root {
    --bg: #fbfbfd;
    --bg-alt: #f3f3f7;
    --surface: #ffffff;
    --surface-2: #f5f5f9;
    --border: #e4e4ec;
    --border-strong: #d0d0dc;
    --text: #15151c;
    --muted: #5d5d6e;
    --faint: #8a8a9a;
    --accent: #e8391a;
    --accent-2: #f07d1a;
    --shadow: 0 10px 40px -16px rgb(20 20 40 / 0.25);
    color-scheme: light;
  }
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.55 var(--font);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: inherit; }
code { font: 0.86em var(--mono); background: var(--surface-2); border: 1px solid var(--border); padding: 0.08em 0.38em; border-radius: 6px; }
h1, h2, h3 { line-height: 1.12; letter-spacing: -0.02em; margin: 0 0 0.5em; }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.2rem); }
h3 { font-size: 1.1rem; }
p { margin: 0 0 1em; }
.muted { color: var(--muted); }
.small { font-size: 0.88rem; }
.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 16px; z-index: 99; background: var(--surface); padding: 8px 12px; border-radius: 8px; }
:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 2px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 20px; border-radius: 999px; border: 1px solid transparent;
  font: 600 0.95rem var(--font); text-decoration: none; cursor: pointer;
  transition: transform 0.12s ease, background 0.15s ease, border-color 0.15s ease, opacity 0.15s;
}
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: 0.55; cursor: progress; }
.btn-primary { background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: var(--accent-ink); box-shadow: 0 6px 24px -8px color-mix(in srgb, var(--accent) 70%, transparent); }
.btn-primary:hover { filter: brightness(1.07); }
.btn-ghost { background: var(--surface); border-color: var(--border-strong); color: var(--text); }
.btn-ghost:hover { border-color: var(--muted); }
.btn-sm { padding: 8px 14px; font-size: 0.85rem; }
.link { background: none; border: 0; color: var(--muted); font: inherit; font-size: 0.85rem; cursor: pointer; padding: 0; text-decoration: underline; text-underline-offset: 3px; }
.link:hover { color: var(--text); }

/* Nav */
.nav { position: sticky; top: 0; z-index: 20; backdrop-filter: saturate(160%) blur(14px); background: color-mix(in srgb, var(--bg) 78%, transparent); border-bottom: 1px solid var(--border); }
.nav-inner { display: flex; align-items: center; gap: 24px; height: 60px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; letter-spacing: -0.01em; text-decoration: none; }
.brand-mark { position: relative; width: 22px; height: 22px; border-radius: 7px; background: var(--surface-2); border: 1px solid var(--border-strong); display: grid; place-items: center; }
.brand-mark span { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 0 var(--accent); animation: ping 2.4s infinite; }
.brand-mark.sm { width: 16px; height: 16px; border-radius: 5px; }
.brand-mark.sm span { width: 6px; height: 6px; }
.nav-links { display: flex; gap: 20px; margin-left: auto; }
.nav-links a { color: var(--muted); text-decoration: none; font-size: 0.92rem; }
.nav-links a:hover { color: var(--text); }
@keyframes ping { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 60%, transparent); } 70%, 100% { box-shadow: 0 0 0 8px transparent; } }

/* Hero */
.hero { padding: clamp(40px, 8vw, 96px) 0 48px; background: radial-gradient(900px 480px at 85% -10%, color-mix(in srgb, var(--accent) 16%, transparent), transparent 70%); }
.hero-grid { display: grid; grid-template-columns: 1.25fr 0.75fr; gap: 56px; align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; padding: 6px 12px; border-radius: 999px; background: var(--surface); border: 1px solid var(--border); color: var(--muted); font-size: 0.85rem; }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--faint); }
.live-dot.on { background: var(--good); animation: live 1.8s infinite; }
@keyframes live { 0% { box-shadow: 0 0 0 0 rgb(34 197 94 / 0.6); } 70%, 100% { box-shadow: 0 0 0 7px rgb(34 197 94 / 0); } }
h1 { font-size: clamp(2.4rem, 6vw, 4.2rem); margin: 20px 0 18px; letter-spacing: -0.035em; }
h1 em { font-style: normal; background: linear-gradient(90deg, var(--accent), var(--accent-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lede { font-size: 1.15rem; color: var(--muted); max-width: 36em; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 36px; }
.stats { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.stats li { background: var(--surface); padding: 14px 16px; display: flex; flex-direction: column; }
.stats strong { font-size: 1.3rem; font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }
.stats span { color: var(--muted); font-size: 0.8rem; }

/* Phone mockup */
.phone { justify-self: center; width: 290px; aspect-ratio: 9 / 19; border-radius: 46px; padding: 11px; background: linear-gradient(160deg, #3a3a46, #15151b); box-shadow: var(--shadow), inset 0 0 0 1px rgb(255 255 255 / 0.08); }
.phone-screen { position: relative; height: 100%; border-radius: 36px; overflow: hidden; padding: 64px 12px 12px; text-align: center; color: #fff;
  background: radial-gradient(120% 80% at 20% 0%, #5b2a86 0%, transparent 60%), radial-gradient(120% 90% at 100% 100%, #c2410c 0%, transparent 55%), #111018; }
.phone-screen::before { content: ''; position: absolute; top: 12px; left: 50%; translate: -50% 0; width: 92px; height: 26px; border-radius: 20px; background: #000; }
.phone-time { font-size: 4.2rem; font-weight: 600; letter-spacing: -0.04em; line-height: 1; }
.phone-date { font-size: 0.95rem; opacity: 0.85; margin-top: 6px; margin-bottom: 36px; }
.notif { text-align: left; padding: 12px 14px; border-radius: 20px; background: rgb(245 245 250 / 0.2); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); border: 1px solid rgb(255 255 255 / 0.12); animation: drop-in 0.7s cubic-bezier(0.2, 0.9, 0.3, 1.2) both 0.4s; }
.notif.again { animation: drop-in 0.7s cubic-bezier(0.2, 0.9, 0.3, 1.2) both; }
.notif-head { display: flex; justify-content: space-between; font-size: 0.7rem; opacity: 0.8; margin-bottom: 4px; letter-spacing: 0.02em; }
.notif-app { display: inline-flex; align-items: center; gap: 6px; }
.notif-title { font-weight: 650; font-size: 0.92rem; line-height: 1.3; }
.notif-body { font-size: 0.82rem; opacity: 0.9; line-height: 1.35; margin-top: 2px; }
@keyframes drop-in { from { opacity: 0; transform: translateY(-24px) scale(0.96); } to { opacity: 1; transform: none; } }

/* Sections */
.section { padding: clamp(56px, 8vw, 96px) 0; }
.section-alt { background: var(--bg-alt); border-block: 1px solid var(--border); }
.section-sub { max-width: 44em; margin-bottom: 32px; }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 24px; flex-wrap: wrap; }
.section-head p { margin: 0; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; }

/* Segmented control */
.seg { display: inline-flex; background: var(--surface); border: 1px solid var(--border); border-radius: 999px; padding: 3px; }
.seg-btn { border: 0; background: transparent; color: var(--muted); font: 600 0.85rem var(--font); padding: 7px 14px; border-radius: 999px; cursor: pointer; }
.seg-btn[aria-pressed='true'] { background: var(--surface-2); color: var(--text); box-shadow: inset 0 0 0 1px var(--border-strong); }

/* Feed */
.feed { list-style: none; margin: 0; padding: 0; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); overflow: hidden; }
.drop { display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: start; padding: 14px 18px; border-top: 1px solid var(--border); }
.drop:first-child { border-top: 0; }
.drop.fresh { animation: flash 2.4s ease-out; }
@keyframes flash { from { background: color-mix(in srgb, var(--accent) 22%, transparent); } to { background: transparent; } }
.drop-dot { width: 10px; height: 10px; margin-top: 7px; border-radius: 50%; background: var(--c, var(--faint)); box-shadow: 0 0 0 4px color-mix(in srgb, var(--c, var(--faint)) 22%, transparent); }
.drop-title { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; font-weight: 650; }
.drop-title a { text-decoration: none; }
.drop-title a:hover { text-decoration: underline; }
.drop-meta { color: var(--muted); font-size: 0.84rem; margin-top: 3px; display: flex; flex-wrap: wrap; gap: 4px 10px; }
.drop-meta code { font-size: 0.8rem; }
.drop time { color: var(--faint); font-size: 0.82rem; white-space: nowrap; font-variant-numeric: tabular-nums; }
.pill { font-size: 0.72rem; font-weight: 600; padding: 2px 8px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--border); color: var(--muted); }
.pill.hot { color: var(--accent); border-color: color-mix(in srgb, var(--accent) 45%, transparent); background: color-mix(in srgb, var(--accent) 10%, transparent); }
.pill.gone { color: var(--bad); }
.pill.good { color: var(--good); }
.feed-empty { padding: 36px 20px; text-align: center; color: var(--muted); }
.feed-empty b { color: var(--text); }

/* How */
.how-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.how-grid.two { grid-template-columns: repeat(2, 1fr); }
.how { position: relative; }
.how-step { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: color-mix(in srgb, var(--accent) 15%, transparent); color: var(--accent); font-weight: 700; font-size: 0.85rem; margin-bottom: 12px; }
.how p, .card p { color: var(--muted); margin: 0; }
.steps { margin: 0; padding-left: 20px; color: var(--muted); display: grid; gap: 8px; }
.steps b { color: var(--text); }
.card .small { margin-top: 12px; }
.copy { cursor: copy; word-break: break-all; }

/* News & what's coming */
.switch.small { font-size: 0.85rem; color: var(--muted); }
.odds-board { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; margin-bottom: 36px; }
.odds-card { display: flex; flex-direction: column; gap: 12px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; min-width: 0; }
.odds-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 0.78rem; color: var(--faint); }
.odds-title { font-weight: 650; line-height: 1.3; text-decoration: none; }
.odds-title:hover { text-decoration: underline; }
.odds-rows { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.odds-row { display: grid; grid-template-columns: minmax(0, 7.5em) 1fr auto 3.2em; align-items: center; gap: 10px; font-size: 0.86rem; }
.odds-row.solo { grid-template-columns: 1fr auto 3.2em; }
.odds-label { color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.odds-bar { height: 8px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--border); overflow: hidden; }
.odds-bar i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--accent), var(--accent-2)); }
.odds-row b { font-variant-numeric: tabular-nums; text-align: right; }
.chg { font-size: 0.76rem; font-weight: 700; font-variant-numeric: tabular-nums; text-align: right; color: var(--faint); }
.chg.up { color: var(--good); }
.chg.down { color: var(--bad); }
.spark { width: 100%; height: 34px; display: block; }
.spark path { fill: none; stroke: var(--accent-2); stroke-width: 1.6; vector-effect: non-scaling-stroke; }
.odds-foot { font-size: 0.78rem; color: var(--faint); margin-top: auto; }
.odds-empty { grid-column: 1 / -1; padding: 28px 20px; text-align: center; color: var(--muted); border: 1px dashed var(--border-strong); border-radius: var(--radius); }
.news-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 28px; align-items: start; }
.news-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 12px; min-height: 38px; }
.news-head h3 { margin: 0; }
.stories { list-style: none; margin: 0; padding: 0; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); overflow: hidden; }
.story { display: grid; grid-template-columns: auto 1fr; gap: 12px; padding: 12px 16px; border-top: 1px solid var(--border); align-items: start; }
.story:first-child { border-top: 0; }
.story.fresh { animation: flash 2.4s ease-out; }
.story a { font-weight: 600; text-decoration: none; line-height: 1.35; }
.story a:hover { text-decoration: underline; }
.story-meta { color: var(--faint); font-size: 0.8rem; margin-top: 2px; }
.topic { min-width: 4.6em; text-align: center; font-size: 0.68rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.03em; padding: 3px 7px; border-radius: 6px; margin-top: 2px; white-space: nowrap; background: var(--surface-2); color: var(--muted); border: 1px solid var(--border); }
.topic.leak { color: #c084fc; border-color: color-mix(in srgb, #c084fc 45%, transparent); }
.topic.upcoming { color: var(--accent-2); border-color: color-mix(in srgb, var(--accent-2) 45%, transparent); }
.topic.release { color: var(--good); border-color: color-mix(in srgb, var(--good) 45%, transparent); }
.topic.signal { color: #38bdf8; border-color: color-mix(in srgb, #38bdf8 45%, transparent); }
.topic.odds { color: var(--accent); border-color: color-mix(in srgb, var(--accent) 45%, transparent); }
.signals-note { margin-top: 10px; }

/* Setup */
.setup { display: grid; gap: 20px; }
.step { position: relative; margin: 0; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); padding: 22px; min-width: 0; }
.step legend { float: left; width: 100%; padding: 0; margin-bottom: 16px; font-weight: 700; font-size: 1.1rem; display: flex; align-items: center; gap: 10px; }
.step > :not(legend) { clear: both; }
.step-n { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #fff; font-size: 0.82rem; }
.step-tools { position: absolute; top: 24px; right: 22px; display: flex; gap: 14px; }
.companies { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 8px; }
.company { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: var(--radius-sm); border: 1px solid var(--border); background: var(--surface-2); color: var(--muted); font: 600 0.9rem var(--font); cursor: pointer; text-align: left; transition: border-color 0.15s, color 0.15s, background 0.15s; }
.company:hover { border-color: var(--border-strong); }
.company[aria-pressed='true'] { color: var(--text); border-color: color-mix(in srgb, var(--c) 70%, var(--border)); background: color-mix(in srgb, var(--c) 12%, var(--surface-2)); }
.company-mono { flex: none; width: 26px; height: 26px; border-radius: 7px; display: grid; place-items: center; font-size: 0.72rem; font-weight: 800; color: #fff; background: var(--c); opacity: 0.45; transition: opacity 0.15s; }
.company[aria-pressed='true'] .company-mono { opacity: 1; }
.modes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.mode { display: flex; gap: 10px; padding: 14px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface-2); cursor: pointer; }
.mode:has(input:checked) { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 8%, var(--surface-2)); }
.mode input { accent-color: var(--accent); margin-top: 4px; }
.mode span { display: grid; gap: 4px; }
.mode small { color: var(--muted); font-size: 0.82rem; line-height: 1.4; }
.field { display: grid; gap: 6px; margin-top: 14px; }
.field > span { font-size: 0.85rem; font-weight: 600; }
input[type='text'], input[type='tel'], input[type='email'], input[type='url'], input[type='password'] {
  width: 100%; padding: 10px 12px; border-radius: var(--radius-sm); border: 1px solid var(--border-strong); background: var(--bg); color: var(--text); font: 0.95rem var(--font);
}
input:focus { outline: none; border-color: var(--accent-2); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent-2) 25%, transparent); }
.toggles { display: flex; flex-wrap: wrap; gap: 10px 28px; margin-top: 16px; }
.switch { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; font-size: 0.92rem; }
.switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.switch span { position: relative; width: 38px; height: 22px; border-radius: 999px; background: var(--border-strong); transition: background 0.15s; flex: none; }
.switch span::after { content: ''; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: transform 0.15s; }
.switch input:checked + span { background: var(--accent); }
.switch input:checked + span::after { transform: translateX(16px); }
.switch input:focus-visible + span { outline: 2px solid var(--accent-2); outline-offset: 2px; }

.channels { display: grid; gap: 10px; }
.channel { border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface-2); }
.channel.on { border-color: color-mix(in srgb, var(--accent) 55%, var(--border)); }
.channel.off-server { opacity: 0.6; }
.channel-head { display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: center; padding: 14px; cursor: pointer; }
.channel-icon { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: var(--surface); border: 1px solid var(--border); font-size: 1.1rem; }
.channel-name { font-weight: 650; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.channel-blurb { color: var(--muted); font-size: 0.84rem; }
.channel-body { padding: 0 14px 16px 64px; display: grid; gap: 12px; }
.channel-body[hidden] { display: none; }
.channel-body .field { margin: 0; }
.channel-body ol { margin: 0; padding-left: 18px; color: var(--muted); font-size: 0.9rem; display: grid; gap: 6px; }
.channel-body ol b { color: var(--text); }
.channel-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.channel-note { font-size: 0.84rem; color: var(--muted); }
.channel-note.ok { color: var(--good); }
.channel-note.err { color: var(--bad); }
.qr { background: #fff; border-radius: 10px; padding: 8px; width: 132px; height: 132px; }
.qr svg { width: 100%; height: 100%; display: block; }
.ntfy-grid { display: grid; grid-template-columns: 1fr auto; gap: 16px; align-items: start; }
.badge { font-size: 0.7rem; font-weight: 700; letter-spacing: 0.02em; text-transform: uppercase; padding: 2px 7px; border-radius: 6px; background: var(--surface); border: 1px solid var(--border-strong); color: var(--muted); }
.badge.rec { color: var(--good); border-color: color-mix(in srgb, var(--good) 45%, transparent); }
.badge.paid { color: var(--accent-2); border-color: color-mix(in srgb, var(--accent-2) 45%, transparent); }

.save-bar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px; padding: 18px 22px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
.admin-field { margin: 0; min-width: 260px; flex: 1 1 260px; max-width: 360px; }
.save-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.form-msg { margin: 0; min-height: 1.5em; font-weight: 600; }
.auth { max-width: 440px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); padding: 24px; display: grid; gap: 14px; }
.auth h3 { margin: 0; font-size: 1.15rem; }
.auth-form { display: grid; gap: 4px; }
.auth-form .btn { margin-top: 14px; justify-content: center; }
.auth-links { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; margin: 10px 0 0; }
.btn-google { justify-content: center; gap: 10px; background: #fff; color: #1f1f1f; border: 1px solid #dadce0; }
.btn-google:hover { background: #f8f9fa; }
.auth-or { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 0.8rem; }
.auth-or::before, .auth-or::after { content: ''; flex: 1; border-top: 1px solid var(--border); }
.account-bar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px 16px; margin-bottom: 20px; padding: 12px 18px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); font-size: 0.92rem; overflow-wrap: anywhere; }
.account-actions { display: flex; gap: 16px; }
.form-msg.ok { color: var(--good); }
.form-msg.err { color: var(--bad); }

/* "Stay in the loop" block inside step 2 */
.loop { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--border); }
.loop h3 { font-size: 1rem; margin-bottom: 12px; }
.loop h3 small { font-weight: 500; font-size: 0.82rem; }
.loop-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; }
.loop-label { font-weight: 600; font-size: 0.92rem; }
label.seg-btn { display: inline-flex; align-items: center; cursor: pointer; }
label.seg-btn input { position: absolute; opacity: 0; width: 1px; height: 1px; }
label.seg-btn:has(input:checked) { background: var(--surface-2); color: var(--text); box-shadow: inset 0 0 0 1px var(--border-strong); }
label.seg-btn:has(input:focus-visible) { outline: 2px solid var(--accent-2); outline-offset: 2px; }
select { font: 600 0.9rem var(--font); color: var(--text); background: var(--bg); border: 1px solid var(--border-strong); border-radius: 8px; padding: 4px 8px; }

/* Plans */
.plans { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; align-items: stretch; }
.plan { position: relative; display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px 22px; }
.plan h3 { font-size: 1.05rem; margin-bottom: 10px; }
.plan ul { list-style: none; padding: 0; margin: 0 0 22px; display: grid; align-content: start; gap: 9px; color: var(--muted); font-size: 0.9rem; flex: 1; }
.plan li { padding-left: 22px; position: relative; }
.plan li::before { content: ''; position: absolute; left: 2px; top: 0.5em; width: 10px; height: 6px; border-left: 2px solid var(--good); border-bottom: 2px solid var(--good); transform: rotate(-45deg); }
.price { display: flex; align-items: baseline; gap: 6px; margin-bottom: 18px; }
.price b { font-size: 2.2rem; letter-spacing: -0.03em; }
.price span { color: var(--muted); font-size: 0.9rem; }
.plan-featured { border-color: color-mix(in srgb, var(--accent) 60%, var(--border)); box-shadow: 0 0 0 1px color-mix(in srgb, var(--accent) 35%, transparent), var(--shadow); background: linear-gradient(180deg, color-mix(in srgb, var(--accent) 8%, var(--surface)), var(--surface) 40%); }
.plan-flag { position: absolute; top: -11px; left: 22px; margin: 0; padding: 2px 10px; border-radius: 999px; font-size: 0.72rem; font-weight: 700; background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #fff; }
.plans-note { margin-top: 18px; }

/* Sources */
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
.sources { width: 100%; border-collapse: collapse; font-size: 0.88rem; }
.sources th, .sources td { text-align: left; padding: 10px 16px; border-top: 1px solid var(--border); white-space: nowrap; }
.sources thead th { border-top: 0; color: var(--muted); font-weight: 600; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.04em; }
.sources td:first-child { font-weight: 600; }
.sources .num { font-variant-numeric: tabular-nums; color: var(--muted); }
.status { display: inline-flex; align-items: center; gap: 7px; }
.status::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--faint); }
.status.ok::before { background: var(--good); }
.status.err::before { background: var(--bad); }
.status.wait::before { background: var(--warn); }
.status.err { color: var(--bad); }
.status small { color: var(--muted); max-width: 280px; overflow: hidden; text-overflow: ellipsis; display: inline-block; vertical-align: bottom; }

/* FAQ */
.faq { max-width: 780px; }
.faq details { border-top: 1px solid var(--border); padding: 18px 0; }
.faq details:last-child { border-bottom: 1px solid var(--border); }
.faq summary { cursor: pointer; font-weight: 650; font-size: 1.05rem; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::after { content: '+'; color: var(--muted); font-weight: 400; font-size: 1.3rem; line-height: 1; }
.faq details[open] summary::after { content: '−'; }
.faq details p { color: var(--muted); margin: 12px 0 0; }

.footer { border-top: 1px solid var(--border); padding: 28px 0 calc(28px + env(safe-area-inset-bottom)); }
.footer-inner { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; align-items: center; }

.toast { position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom)); translate: -50% 20px; opacity: 0; pointer-events: none; background: var(--text); color: var(--bg); padding: 10px 16px; border-radius: 999px; font-weight: 600; font-size: 0.9rem; transition: opacity 0.2s, translate 0.2s; z-index: 50; max-width: calc(100% - 32px); }
.toast.show { opacity: 1; translate: -50% 0; }

@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; }
  .phone { width: 240px; }
  .plans { grid-template-columns: repeat(2, 1fr); }
  .how-grid, .how-grid.two { grid-template-columns: 1fr; }
  .news-grid { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .nav-links { display: none; }
  .nav-inner .btn { margin-left: auto; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .modes { grid-template-columns: 1fr; }
  .companies { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .company { font-size: 0.84rem; padding: 9px 10px; }
  .plans { grid-template-columns: 1fr; }
  .step-tools { position: static; margin-bottom: 12px; }
  .channel-body { padding-left: 14px; }
  .ntfy-grid { grid-template-columns: 1fr; }
  .drop { grid-template-columns: auto 1fr; }
  .drop time { grid-column: 2; }
  .save-actions { width: 100%; }
  .save-actions .btn { flex: 1; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}

.prose { max-width: 42em; }
.prose h2 { margin-top: 28px; font-size: 1.15rem; }
.prose li, .prose p { color: var(--muted); }
.prose b { color: var(--text); }
