/* UptimeCast website: same broadcast-console identity as the panel. */
:root {
  --console: #DDE1DB; --panel: #F3F4F0; --ink: #1C2430; --steel: #5A6672; --rule: #C2C8C0;
  --tally: #D3263A; --amber: #B97A06; --signal: #2F7D4F; --night: #12171F; --night2: #1C2430;
  --glow: 0 0 0 1px rgba(211,38,58,.6), 0 0 16px rgba(211,38,58,.45);
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", "Noto Sans Arabic", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--console); color: var(--ink); font: 400 1.05rem/1.6 var(--sans); }
a { color: inherit; }
h1, h2, h3 { line-height: 1.15; margin: 0; letter-spacing: -.01em; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.mark { display: inline-flex; align-items: center; gap: .5rem; font-weight: 700; font-size: 1.25rem; text-decoration: none; }
.lamp { width: .45rem; height: 1.1rem; border-radius: 2px; background: var(--tally); box-shadow: var(--glow); }

.top { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; gap: 1.5rem; padding: .8rem clamp(1rem, 4vw, 3rem);
  background: rgba(18,23,31,.92); color: #E9ECE6; backdrop-filter: blur(6px); }
.top-nav { display: flex; gap: 1.25rem; margin-inline-start: auto; flex-wrap: wrap; }
.top-nav a { text-decoration: none; color: #B9C1BA; font-weight: 500; }
.top-nav a:hover { color: #fff; }
.lang { background: transparent; color: inherit; border: 1px solid #3A4554; border-radius: 4px; padding: .3rem .5rem; font: inherit; }
.lang option { color: var(--ink); }

.hero { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 3rem; align-items: center;
  padding: clamp(3rem, 8vw, 6rem) clamp(1rem, 4vw, 3rem); background: radial-gradient(ellipse at top, #1E2733, var(--night)); color: #EEF1EC; }
.kicker { color: #FF8C98; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; font-size: .85rem; margin: 0 0 1rem; }
.hero h1 { font-size: clamp(2.4rem, 5.5vw, 4.2rem); font-weight: 800; }
.sub { font-size: 1.2rem; color: #C3CAC4; max-width: 38rem; margin: 1.25rem 0 2rem; }
.ctas { display: flex; flex-wrap: wrap; gap: .75rem; }
.note { color: #98A29A; font-size: .95rem; margin-top: 1rem; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 2.9rem; padding: 0 1.4rem; border-radius: 6px;
  border: 1px solid currentColor; font-weight: 700; text-decoration: none; cursor: pointer; background: transparent; color: inherit; }
.btn-primary { background: var(--tally); border-color: var(--tally); color: #fff; box-shadow: 0 6px 20px rgba(211,38,58,.35); }
.btn-primary:hover { filter: brightness(1.08); }

.board { margin: 0; display: grid; gap: .6rem; padding: 1.25rem; border-radius: 12px; background: #0D1117; border: 1px solid #2A3441; }
.strip { display: grid; grid-template-columns: .5rem 4.5rem 3.5rem 1fr; align-items: center; gap: .9rem; padding: .8rem 1rem; border-radius: 8px; background: #19212C; }
.strip .tally { height: 1.4rem; border-radius: 2px; background: #3A4554; }
.strip b { font-weight: 700; } .strip i { color: #8C97A3; font-style: normal; font-size: .9rem; } .strip em { font-style: normal; font-size: .9rem; color: #C3CAC4; }
.strip.on .tally { background: var(--tally); box-shadow: var(--glow); }
.strip.down { opacity: .55; } .strip.down em { color: #FF8C98; }
.strip.backup .tally { background: #E0A11B; box-shadow: 0 0 14px rgba(224,161,27,.5); animation: blink 2.4s ease-in-out infinite; }
.board figcaption { color: #8C97A3; font-size: .85rem; margin-top: .4rem; }
@keyframes blink { 50% { opacity: .55; } }

.section { padding: clamp(3rem, 7vw, 5rem) clamp(1rem, 4vw, 3rem); max-width: 76rem; margin: 0 auto; }
.section.alt { max-width: none; background: var(--panel); }
.section.alt > * { max-width: 70rem; margin-left: auto; margin-right: auto; }
.section h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); font-weight: 800; }
.lead { color: var(--steel); font-size: 1.15rem; margin: .75rem 0 2.25rem; max-width: 46rem; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr)); gap: 1rem; }
.card { background: var(--panel); border: 1px solid var(--rule); border-radius: 10px; padding: 1.4rem; border-top: 3px solid var(--tally); }
.card h3 { font-size: 1.15rem; margin-bottom: .5rem; }
.card p { margin: 0; color: var(--steel); }

.table-wrap { overflow-x: auto; }
.cmp { width: 100%; border-collapse: collapse; background: #fff; border-radius: 10px; overflow: hidden; }
.cmp th, .cmp td { padding: .85rem 1rem; text-align: start; border-bottom: 1px solid var(--rule); }
.cmp th { background: var(--night2); color: #fff; }
.cmp td.y, .cmp td.n, .cmp th:not(:first-child) { text-align: center; }
.cmp td.y { color: var(--signal); font-weight: 800; font-size: 1.2rem; }
.cmp td.n { color: #A0A7A1; }
.fine { color: var(--steel); font-size: .85rem; margin-top: 1rem; }

.period { display: inline-flex; align-items: center; gap: .5rem; margin-bottom: 1.75rem; flex-wrap: wrap; }
.period button { font: inherit; font-weight: 600; padding: .5rem 1rem; border-radius: 999px; border: 1px solid var(--rule); background: var(--panel); cursor: pointer; }
.period button.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.save { color: var(--signal); font-weight: 700; font-size: .9rem; }
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(14.5rem, 1fr)); gap: 1rem; align-items: stretch; }
.plan { position: relative; display: flex; flex-direction: column; gap: 1rem; background: var(--panel); border: 1px solid var(--rule); border-radius: 12px; padding: 1.5rem; }
.plan.pop { border: 2px solid var(--tally); box-shadow: 0 10px 30px rgba(28,36,48,.12); }
.badge { position: absolute; top: -.8rem; inset-inline-start: 1.25rem; margin: 0; background: var(--tally); color: #fff; font-size: .8rem; font-weight: 700; padding: .15rem .6rem; border-radius: 999px; }
.plan h3 { font-size: 1.3rem; }
.price { margin: 0; color: var(--steel); }
.price b { font-size: 2.4rem; color: var(--ink); font-weight: 800; margin-inline-end: .25rem; }
.plan ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; flex: 1; }
.plan li { padding-inline-start: 1.5rem; position: relative; }
.plan li::before { content: "✓"; position: absolute; inset-inline-start: 0; color: var(--signal); font-weight: 800; }
.plan .btn { color: var(--ink); }
.plan .btn-primary { color: #fff; }
.lifetime { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 2rem; margin-top: 1rem; padding: 1.25rem 1.5rem; border-radius: 12px;
  background: var(--night2); color: #EEF1EC; }
.lifetime > div { flex: 1 1 18rem; } .lifetime p { margin: .25rem 0 0; color: #C3CAC4; }
.lifetime .price b { color: #fff; } .lifetime .price { color: #C3CAC4; }
.soon { background: #FFF3D6; border: 1px solid #E8C36B; padding: .8rem 1rem; border-radius: 8px; }

.steps { display: grid; gap: 1.25rem; padding-inline-start: 1.25rem; }
.steps li { font-weight: 600; }
pre { margin: .5rem 0 0; padding: 1rem; border-radius: 8px; background: var(--night); color: #E5E9E4; overflow-x: auto; direction: ltr; text-align: left; font-weight: 400; }
code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .92rem; }

details { border-bottom: 1px solid var(--rule); padding: 1rem 0; max-width: 52rem; }
summary { cursor: pointer; font-weight: 700; font-size: 1.1rem; }
details p { color: var(--steel); margin: .75rem 0 0; }

.foot { padding: 2.5rem clamp(1rem, 4vw, 3rem); background: var(--night); color: #B9C1BA; text-align: center; }
.foot a { color: #fff; }
.foot .fine { color: #8C97A3; }

@media (max-width: 52rem) {
  .hero { grid-template-columns: 1fr; }
  .top-nav { display: none; }
  .top .lang { margin-inline-start: auto; }
}
@media (prefers-reduced-motion: reduce) { * { animation: none !important; scroll-behavior: auto !important; } }

/* v3: pages per language and per use case */
.uses a { color: inherit; text-decoration: underline; text-decoration-color: var(--tally); text-underline-offset: .2em; }
.uses a:hover { color: var(--tally); }
.crumbs { max-width: 72rem; margin: 0 auto; padding: .75rem clamp(1rem, 4vw, 3rem); font-size: .9rem; color: var(--steel); }
.crumbs a { color: var(--steel); }
.hero-sm { grid-template-columns: 1fr; }
.hero-sm .hero-text { max-width: 52rem; }
.hero-sm .sub + .sub { margin-top: .75rem; }
.more .uses { margin-bottom: 1.5rem; }
.foot-uses, .foot-langs { font-size: .9rem; }
.foot-uses b { margin-inline-end: .35rem; }
.foot-langs a { white-space: nowrap; }
.nf { text-align: center; padding-block: 5rem; }
.nf .lead { margin-inline: auto; }
pre[dir="ltr"] { text-align: left; }
.section h2 + .grid, .section h2 + .steps { margin-top: 1.75rem; }
