/* livegospel.net (issue 13). */
:root {
  --bg: #fbfaf8; --panel: #ffffff; --text: #1b1b1f; --muted: #5f6068; --line: #e6e4df;
  --accent: #3b4fd8; --accent-2: #e2507a; --on-accent: #ffffff;
  --max: 1040px; --bar: #3b4fd8;
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #141418; --panel: #1d1d23; --text: #eeeef2; --muted: #a3a4ad; --line: #2e2e36; --accent: #8a99ff; --accent-2: #ff7fa4; --on-accent: #111; --bar: #7080f0; }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 17px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", "Apple SD Gothic Neo", sans-serif; }
a { color: var(--accent); }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 16px; }

header.top { border-bottom: 1px solid var(--line); background: var(--panel); }
header.top .wrap { display: flex; align-items: center; gap: 12px; height: 60px; }
header.top img { width: 32px; height: 32px; }
header.top .name { font-weight: 700; font-size: 18px; color: var(--text); text-decoration: none; }
header.top nav { margin-left: auto; display: flex; gap: 18px; font-size: 15px; }
header.top nav a { color: var(--muted); text-decoration: none; }
header.top nav a:hover { color: var(--text); }
/* The icon file has square white corners; round them off like the Dock does. */
header.top img, .hero img { border-radius: 22%; }
@media (max-width: 560px) {
  header.top .wrap { flex-wrap: wrap; height: auto; padding-top: 10px; padding-bottom: 10px; row-gap: 6px; }
  header.top nav { margin-left: 0; width: 100%; gap: 16px; font-size: 14px; }
}

.hero { padding: 72px 0 56px; text-align: center; }
.hero img { width: 112px; height: 112px; }
.hero h1 { font-size: clamp(32px, 6vw, 52px); line-height: 1.1; margin: 20px auto 16px; max-width: 16ch; letter-spacing: -0.02em; }
.hero p.lead { font-size: clamp(18px, 2.4vw, 21px); color: var(--muted); max-width: 40ch; margin: 0 auto 32px; }
.button { display: inline-block; background: var(--accent); color: var(--on-accent); text-decoration: none; font-weight: 600;
          padding: 14px 24px; border-radius: 12px; font-size: 18px; }
.button:hover { filter: brightness(1.08); }
.fine { color: var(--muted); font-size: 14px; margin-top: 12px; }

section { padding: 48px 0; border-top: 1px solid var(--line); }
section h2 { font-size: 28px; margin: 0 0 24px; letter-spacing: -0.01em; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.grid.pairs { grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 20px; }
.card h3 { margin: 0 0 8px; font-size: 18px; }
.card p { margin: 0; color: var(--muted); font-size: 16px; }

section h2.sub { margin-top: 48px; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; margin-bottom: 24px; }
.stat { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 20px; }
.stat .num { font-size: clamp(30px, 5vw, 40px); font-weight: 700; letter-spacing: -0.02em; color: var(--accent); line-height: 1.1; }
.stat p { margin: 8px 0 0; color: var(--muted); font-size: 16px; }
.chart { margin: 0; background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 20px 20px 16px; }
.chart figcaption b { display: block; font-size: 18px; }
.chart figcaption span { color: var(--muted); font-size: 14px; }
.chart .callout { margin: 12px 0 8px; color: var(--muted); font-size: 16px; }
.chart .callout b { color: var(--text); font-size: 22px; }
.bars { display: flex; align-items: flex-end; gap: 2px; height: 220px; padding-top: 28px; border-bottom: 1px solid var(--line); }
.bars .col { flex: 1; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; position: relative; }
.bars .bar { width: min(64px, 70%); background: var(--bar); opacity: 0.45; border-radius: 4px 4px 0 0; position: relative; outline: none; }
.bars .bar.fast { opacity: 1; }
.bars .pct { font-size: 14px; font-weight: 600; color: var(--text); margin-bottom: 4px; font-variant-numeric: tabular-nums; }
.bars .lab { position: absolute; bottom: -26px; font-size: 13px; color: var(--muted); white-space: nowrap; }
.chart .bars { margin-bottom: 30px; }
.bars .bar:hover::after, .bars .bar:focus::after { content: attr(data-tip); position: absolute; bottom: calc(100% + 30px); left: 50%; transform: translateX(-50%);
  background: var(--text); color: var(--bg); font-size: 13px; padding: 6px 10px; border-radius: 8px; white-space: nowrap; z-index: 1; }
.chart.accuracy { margin-top: 24px; }
.stack { display: flex; gap: 2px; height: 28px; margin: 8px 0 12px; }
.stack .seg { position: relative; outline: none; min-width: 4px; }
.stack .seg:first-child { border-radius: 4px 0 0 4px; }
.stack .seg:last-child { border-radius: 0 4px 4px 0; }
.seg.ok, .sw.ok { background: var(--bar); }
.seg.minor, .sw.minor { background: var(--bar); opacity: 0.45; }
.seg.wrong, .sw.wrong { background: var(--muted); }
.seg.unclear, .sw.unclear { background: var(--line); }
.stack .seg:hover::after, .stack .seg:focus::after { content: attr(data-tip); position: absolute; bottom: calc(100% + 8px); left: 50%; transform: translateX(-50%);
  background: var(--text); color: var(--bg); font-size: 13px; padding: 6px 10px; border-radius: 8px; white-space: nowrap; z-index: 1; }
.stack .seg:last-child:hover::after, .stack .seg:last-child:focus::after { left: auto; right: 0; transform: none; }
.legend { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px 20px; font-size: 14px; color: var(--muted); }
.legend b { color: var(--text); font-weight: 600; }
.sw { display: inline-block; width: 12px; height: 12px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.langs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 24px; }
.langs-title { color: var(--muted); font-size: 15px; margin-right: 4px; }
.chip { border: 1px solid var(--line); background: var(--panel); border-radius: 999px; padding: 4px 14px; font-size: 15px; font-weight: 600; }
.chip.more { font-weight: 400; color: var(--muted); border-style: dashed; }
.uses { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; margin-bottom: 16px; }
.use { border-left: 3px solid var(--accent-2); padding: 4px 0 4px 16px; }
.use h3 { margin: 0 0 6px; font-size: 18px; }
.use p { margin: 0; color: var(--muted); font-size: 16px; }

.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.plan .price { font-size: 32px; font-weight: 700; margin: 4px 0; }
.plan .per { color: var(--muted); font-size: 15px; }

ul.plain { padding-left: 20px; margin: 0; }
ul.plain li { margin: 6px 0; }

.doc { max-width: 720px; padding: 48px 16px 72px; margin: 0 auto; }
.doc h1 { font-size: 36px; margin: 0 0 8px; }
.doc h2 { font-size: 22px; margin: 36px 0 8px; }
.doc table { border-collapse: collapse; width: 100%; font-size: 15px; margin: 8px 0; }
.doc th, .doc td { text-align: left; vertical-align: top; padding: 8px; border-bottom: 1px solid var(--line); }
.doc th { color: var(--muted); font-weight: 500; }

footer { border-top: 1px solid var(--line); padding: 28px 0 40px; color: var(--muted); font-size: 14px; }
footer .wrap { display: flex; gap: 20px; flex-wrap: wrap; }
footer a { color: var(--muted); }
