/* ForeverCast site — colours taken from the app's theme.py */
:root {
  --bg: #10151d;
  --bg-2: #131e2a;
  --card: #1c2938;
  --raised: #253548;
  --field: #141c26;
  --line: #2a3847;
  --line-2: #344253;
  --azure: #19bce0;
  --azure-hi: #42d2ef;
  --azure-lo: #1198ba;
  --gold: #d9a64e;
  --gold-hi: #e8bd72;
  --text: #e8eff8;
  --text-2: #a5b6c9;
  --muted: #8295aa;
  --ok: #2bd3a1;
  --warn: #e4a548;
  --bad: #e35d6a;
  --discord: #5865f2;
  --r: 10px;
  --wrap: 1120px;
  --sans: "Barlow", system-ui, -apple-system, "Segoe UI", sans-serif;
  --cond: "Barlow Condensed", "Barlow", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Consolas, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 400 17px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--azure-hi); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: #fff; }
h1, h2, h3 { font-family: var(--cond); font-weight: 700; line-height: 1.08; margin: 0 0 .5em; letter-spacing: .005em; }
h1 { font-size: clamp(2.5rem, 5.4vw, 4.1rem); }
h2 { font-size: clamp(1.9rem, 3.4vw, 2.6rem); }
h3 { font-size: 1.35rem; }
p { margin: 0 0 1em; }
code, kbd { font-family: var(--mono); font-size: .86em; }
kbd {
  display: inline-block; min-width: 1.7em; text-align: center;
  padding: .05em .45em; border-radius: 5px;
  background: var(--field); border: 1px solid var(--line-2); border-bottom-width: 2px;
  color: var(--text); white-space: nowrap;
}
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.muted { color: var(--muted); }
.small { font-size: .88rem; }
.label {
  font: 600 .78rem/1 var(--mono); letter-spacing: .08em; text-transform: uppercase;
  color: var(--gold); margin: 0 0 14px;
}
:focus-visible { outline: 2px solid var(--azure-hi); outline-offset: 2px; }

/* buttons */
.btn {
  display: inline-flex; align-items: center; gap: .5em; justify-content: center;
  font: 600 1rem/1 var(--sans); text-decoration: none; cursor: pointer;
  padding: .85em 1.3em; border-radius: 8px; border: 1px solid transparent;
  background: var(--azure); color: #08202a; transition: background .15s, border-color .15s;
}
.btn:hover { background: var(--azure-hi); color: #08202a; }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--line-2); }
.btn-ghost:hover { background: var(--card); color: #fff; }
.btn-discord { background: var(--discord); color: #fff; }
.btn-discord:hover { background: #6d78f5; color: #fff; }
.btn-gold { background: var(--gold); color: #24180a; }
.btn-gold:hover { background: var(--gold-hi); color: #24180a; }
.btn-sm { padding: .55em .95em; font-size: .92rem; }
.btn-block { width: 100%; }
.btn[disabled], .btn.is-disabled { opacity: .5; pointer-events: none; }

/* top bar */
.topbar { position: sticky; top: 0; z-index: 20; background: rgba(16, 21, 29, .92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.topbar-in { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font: 700 1.25rem/1 var(--cond); letter-spacing: .02em; }
.brand:hover { color: #fff; }
.mainnav { display: flex; align-items: center; gap: 26px; }
.mainnav a:not(.btn) { color: var(--text-2); text-decoration: none; font-weight: 500; font-size: .97rem; }
.mainnav a:not(.btn):hover, .mainnav a[aria-current] { color: #fff; }
.menu-btn { display: none; background: none; border: 1px solid var(--line-2); color: var(--text); border-radius: 6px; padding: 6px 12px; font: 500 .9rem var(--sans); }

/* hero */
.hero { padding: 72px 0 40px; border-bottom: 1px solid var(--line); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; }
.hero h1 em { font-style: normal; color: var(--azure); }
.hero .lede { font-size: 1.2rem; color: var(--text-2); max-width: 34em; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 18px; }
.facts { display: flex; flex-wrap: wrap; gap: 8px 22px; list-style: none; padding: 0; margin: 0; color: var(--muted); font-size: .93rem; }
.facts li::before { content: "—"; color: var(--line-2); margin-right: 8px; }
.facts li:first-child::before { display: none; }
.hero-shots { position: relative; min-height: 470px; }
.shot { border-radius: 10px; box-shadow: 0 30px 60px -20px rgba(0,0,0,.7), 0 0 0 1px rgba(255,255,255,.04); }
.hero-shots .shot-main { position: absolute; right: 70px; top: 0; width: 360px; }
.hero-shots .shot-compact { position: absolute; right: 0; bottom: -10px; width: 250px; }
.hero-shots .note {
  position: absolute; left: 0; top: 96px; width: 150px;
  font: 500 .86rem/1.35 var(--sans); color: var(--gold-hi); text-align: right;
}
.hero-shots .note::after { content: ""; position: absolute; right: -54px; top: 10px; width: 46px; border-top: 1px dashed var(--gold); }

/* sections */
.sec { padding: 88px 0; border-bottom: 1px solid var(--line); }
.sec-head { max-width: 640px; margin-bottom: 44px; }
.sec-head p { color: var(--text-2); font-size: 1.08rem; }

/* how it works: waveform */
.wave-card { background: var(--bg-2); border: 1px solid var(--line); border-radius: 14px; padding: 28px 28px 8px; }
.wave { width: 100%; height: auto; display: block; }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; margin-top: 8px; border-top: 1px solid var(--line); }
.steps li { list-style: none; padding: 20px 20px 18px 0; }
.steps li + li { padding-left: 20px; border-left: 1px solid var(--line); }
.steps b { display: block; font: 700 1.15rem/1.2 var(--cond); margin-bottom: 6px; }
.steps b span { color: var(--gold); font-family: var(--mono); font-size: .8rem; margin-right: 8px; }
.steps p { color: var(--text-2); font-size: .95rem; margin: 0; }
ol.steps { padding: 0; margin-bottom: 0; }

/* features as a spec list */
.feat { display: grid; grid-template-columns: 1fr 1fr; gap: 0 56px; }
.feat-item { padding: 22px 0; border-top: 1px solid var(--line); }
.feat-item h3 { display: flex; align-items: baseline; gap: 10px; margin-bottom: 6px; }
.feat-item p { color: var(--text-2); margin: 0; font-size: .98rem; }
.tag { font: 600 .68rem/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--warn); border: 1px solid rgba(228,165,72,.4); padding: 4px 6px; border-radius: 4px; position: relative; top: -2px; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split-shot { justify-self: center; }
.split-shot img { width: 380px; }
.checks { list-style: none; padding: 0; margin: 18px 0 0; }
.checks li { padding: 8px 0 8px 28px; position: relative; color: var(--text-2); border-bottom: 1px dashed var(--line); }
.checks li::before { content: ""; position: absolute; left: 2px; top: 15px; width: 12px; height: 7px; border-left: 2px solid var(--ok); border-bottom: 2px solid var(--ok); transform: rotate(-45deg); }
.checks li b { color: var(--text); font-weight: 600; }

/* pricing */
.price-top { display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; margin-bottom: 28px; }
.price-top .sec-head { margin-bottom: 0; }
.cur { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: .92rem; }
select {
  background: var(--field); color: var(--text); border: 1px solid var(--line-2); border-radius: 7px;
  font: 500 .95rem var(--sans); padding: .5em 2em .5em .7em;
  appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 15px) 55%, calc(100% - 10px) 55%; background-size: 5px 5px; background-repeat: no-repeat;
}
.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; max-width: 860px; }
.plan { background: var(--card); border: 1px solid var(--line-2); border-radius: 14px; padding: 30px; display: flex; flex-direction: column; }
.plan.best { border-color: rgba(217,166,78,.55); background: linear-gradient(180deg, rgba(217,166,78,.07), transparent 40%), var(--card); }
.plan h3 { font-size: 1.6rem; margin-bottom: 4px; display: flex; justify-content: space-between; align-items: baseline; }
.plan .ribbon { font: 600 .72rem/1 var(--mono); text-transform: uppercase; letter-spacing: .07em; color: var(--gold); }
.plan .sub { color: var(--muted); margin-bottom: 18px; }
.amount { font: 700 3rem/1 var(--cond); }
.amount small { font: 500 1rem var(--sans); color: var(--muted); margin-left: 4px; }
.conv { min-height: 1.4em; color: var(--text-2); font-size: .92rem; margin: 6px 0 18px; }
.plan .checks { margin: 0 0 26px; flex: 1; }
.price-notes { margin-top: 22px; color: var(--muted); font-size: .92rem; max-width: 860px; }
.price-notes p { margin: 0 0 .4em; }

/* faq */
.faq { max-width: 820px; }
.faq details { border-top: 1px solid var(--line); padding: 4px 0; }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 16px 32px 16px 0; font-weight: 600; font-size: 1.07rem; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 12px; font: 400 1.5rem var(--sans); color: var(--muted); }
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--text-2); margin: 0 0 18px; max-width: 46em; }

.cta-band { padding: 64px 0; }
.cta-band .wrap { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.cta-band h2 { margin: 0; }

/* footer */
.foot { padding: 40px 0 30px; background: var(--bg-2); }
.foot-in { display: flex; justify-content: space-between; gap: 30px; flex-wrap: wrap; }
.foot-in p { margin: 10px 0 0; max-width: 30em; }
.foot-links { display: flex; gap: 22px; flex-wrap: wrap; align-items: start; }
.foot-links a { color: var(--text-2); text-decoration: none; }
.foot-links a:hover { color: #fff; }
.foot-note { margin-top: 26px; padding-top: 18px; border-top: 1px solid var(--line); }

/* generic content pages */
.page-head { padding: 56px 0 8px; }
.prose { max-width: 760px; }
.prose h2 { font-size: 1.85rem; margin-top: 1.7em; }
.prose h3 { margin-top: 1.5em; }
.prose p, .prose li { color: var(--text-2); }
.prose strong { color: var(--text); font-weight: 600; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin: .3em 0; }
.legal { padding-bottom: 80px; }

/* account */
.acct { padding: 56px 0 90px; min-height: 60vh; }
.acct-user { display: flex; align-items: center; gap: 14px; margin-bottom: 30px; }
.acct-user img { width: 52px; height: 52px; border-radius: 50%; background: var(--card); }
.acct-user b { display: block; font-size: 1.15rem; }
.acct-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 20px; align-items: start; }
.panel { background: var(--card); border: 1px solid var(--line-2); border-radius: 14px; padding: 26px; }
.panel h3 { margin-bottom: 14px; }
.kv { display: grid; grid-template-columns: 130px 1fr; gap: 10px 16px; margin: 0 0 20px; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; }
.status { display: inline-flex; align-items: center; gap: 7px; font-weight: 600; }
.status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.status.ok { color: var(--ok); } .status.warn { color: var(--warn); } .status.bad { color: var(--bad); }
.keybox { display: flex; gap: 8px; align-items: center; background: var(--field); border: 1px solid var(--line-2); border-radius: 8px; padding: 10px 12px; font: 600 1rem var(--mono); letter-spacing: .04em; }
.keybox span { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.keybox button { background: var(--raised); border: 0; color: var(--text); border-radius: 6px; padding: 6px 10px; font: 500 .85rem var(--sans); cursor: pointer; }
.keybox button:hover { background: #2f445b; }
.links-list { list-style: none; margin: 0; padding: 0; }
.links-list li { border-top: 1px solid var(--line); }
.links-list a { display: flex; justify-content: space-between; padding: 12px 0; color: var(--text); text-decoration: none; }
.links-list a:hover { color: var(--azure-hi); }
.links-list a::after { content: "→"; color: var(--muted); }
.upgrade { margin-top: 20px; padding: 18px; border-radius: 10px; border: 1px dashed rgba(217,166,78,.6); background: rgba(217,166,78,.06); }
.upgrade p { margin: 0 0 12px; color: var(--text-2); }
.upgrade b { color: var(--gold-hi); }
.login-box { max-width: 460px; margin: 40px auto; text-align: center; }
.login-box img { width: 220px; margin: 0 auto 18px; }
.login-box p { color: var(--text-2); }
.notice { border-left: 3px solid var(--warn); background: rgba(228,165,72,.08); padding: 12px 16px; border-radius: 0 8px 8px 0; color: var(--text-2); margin: 0 0 20px; }
.notice.ok { border-color: var(--ok); background: rgba(43,211,161,.08); }
.demo-bar { position: fixed; left: 12px; bottom: 12px; z-index: 50; background: #000c; border: 1px solid var(--line-2); border-radius: 8px; padding: 8px 10px; font-size: .8rem; color: var(--muted); display: flex; gap: 8px; align-items: center; flex-wrap: wrap; max-width: calc(100% - 24px); }
.demo-bar a { color: var(--text-2); }
[hidden] { display: none !important; }

/* wiki */
.wiki { display: grid; grid-template-columns: 240px 1fr; gap: 48px; padding-top: 40px; padding-bottom: 80px; }
.wiki-side-in { position: sticky; top: 88px; }
.side-h { font: 600 .74rem/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--gold); margin: 22px 0 8px; }
.side-h:first-child { margin-top: 4px; }
.wiki-side ul { list-style: none; margin: 0; padding: 0; }
.wiki-side a { display: block; padding: 6px 10px; margin-left: -10px; border-radius: 6px; color: var(--text-2); text-decoration: none; font-size: .96rem; }
.wiki-side a:hover { color: #fff; background: var(--bg-2); }
.wiki-side a[aria-current] { color: #fff; background: var(--card); box-shadow: inset 2px 0 0 var(--azure); }
.wiki-body { min-width: 0; }
.wiki-body > h1 { font-size: clamp(2.2rem, 4vw, 3rem); }
.wiki-body .intro { font-size: 1.12rem; color: var(--text-2); }
.fig { margin: 26px 0 10px; background: var(--bg-2); border: 1px solid var(--line); border-radius: 12px; padding: 18px; }
.fig img { margin: 0 auto; }
.fig figcaption { color: var(--muted); font-size: .86rem; text-align: center; margin-top: 10px; }
.callouts { list-style: none; padding: 0 !important; margin: 0 0 24px; counter-reset: c; }
.callouts li { counter-increment: c; position: relative; padding: 12px 0 12px 44px; border-bottom: 1px solid var(--line); margin: 0 !important; }
.callouts li::before {
  content: counter(c); position: absolute; left: 0; top: 11px;
  width: 26px; height: 26px; border-radius: 50%; background: #f5b942; color: #10141a;
  font: 700 .85rem/26px var(--sans); text-align: center;
}
.callouts li b { color: var(--text); display: block; margin-bottom: 2px; }
.tip, .warn-box { padding: 14px 16px 14px 18px; border-radius: 0 10px 10px 0; margin: 22px 0; }
.tip { border-left: 3px solid var(--azure); background: rgba(25,188,224,.07); }
.warn-box { border-left: 3px solid var(--warn); background: rgba(228,165,72,.08); }
.tip p:last-child, .warn-box p:last-child { margin: 0; }
.tip > b, .warn-box > b { display: block; color: var(--text); margin-bottom: 4px; }
.prose table { width: 100%; border-collapse: collapse; margin: 18px 0 26px; font-size: .95rem; }
.prose th, .prose td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose th { color: var(--muted); font-weight: 600; font-size: .82rem; text-transform: uppercase; letter-spacing: .04em; }
.prose td { color: var(--text-2); }
.prose td:first-child { color: var(--text); white-space: nowrap; }
.numbered { counter-reset: s; list-style: none; padding: 0 !important; }
.numbered > li { counter-increment: s; position: relative; padding-left: 46px; margin: 0 0 22px !important; }
.numbered > li::before { content: counter(s); position: absolute; left: 0; top: -2px; width: 30px; height: 30px; border-radius: 8px; background: var(--raised); color: var(--text); font: 700 1rem/30px var(--cond); text-align: center; }
.numbered > li > b:first-child { color: var(--text); display: block; }
.pager { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 56px; }
.pager a { border: 1px solid var(--line-2); border-radius: 10px; padding: 14px 18px; text-decoration: none; color: var(--text); font-weight: 600; }
.pager a:hover { border-color: var(--azure); }
.pager a span { display: block; font: 500 .8rem var(--sans); color: var(--muted); margin-bottom: 2px; }
.pager-next { text-align: right; grid-column: 2; }
.toc-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 26px 0; }
.toc-cards a { display: block; padding: 18px; border: 1px solid var(--line-2); border-radius: 10px; text-decoration: none; color: var(--text); background: var(--bg-2); }
.toc-cards a:hover { border-color: var(--azure); }
.toc-cards b { display: block; font-size: 1.05rem; margin-bottom: 4px; }
.toc-cards span { color: var(--muted); font-size: .92rem; }

/* responsive */
@media (max-width: 960px) {
  .hero-grid, .split, .acct-grid { grid-template-columns: 1fr; }
  .hero-shots { min-height: 0; display: flex; gap: 14px; align-items: flex-end; justify-content: center; }
  .hero-shots .shot-main, .hero-shots .shot-compact { position: static; }
  .hero-shots .shot-main { width: 58%; } .hero-shots .shot-compact { width: 40%; }
  .hero-shots .note { display: none; }
  .steps { grid-template-columns: 1fr 1fr; }
  .steps li:nth-child(3) { padding-left: 0; border-left: 0; }
  .wiki { grid-template-columns: 1fr; gap: 0; }
  .wiki-side-in { position: static; }
  .wiki-side { border-bottom: 1px solid var(--line); padding-bottom: 16px; margin-bottom: 24px; }
}
@media (max-width: 760px) {
  body { font-size: 16px; }
  .menu-btn { display: block; }
  .mainnav { display: none; position: absolute; left: 0; right: 0; top: 64px; background: var(--bg); border-bottom: 1px solid var(--line); flex-direction: column; align-items: stretch; padding: 12px 24px 20px; gap: 4px; }
  .mainnav.open { display: flex; }
  .mainnav a:not(.btn) { padding: 10px 0; }
  .feat, .plans, .toc-cards { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .steps li + li { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); }
  .sec { padding: 64px 0; }
  .kv { grid-template-columns: 1fr; gap: 2px; }
  .kv dd { margin-bottom: 10px; }
  .wave-card { padding: 16px 14px 4px; }
}
