/* Shared styles for The Keyboard Coach info pages (About, Privacy). Tokens mirror index.html. */
:root {
  color-scheme: light;
  --bg: #f6f7fb;
  --bg-soft: #eef4f7;
  --surface: #ffffff;
  --surface-2: #f9fbfd;
  --ink: #17202a;
  --muted: #5d6a75;
  --line: #dce4eb;
  --line-strong: #b9c7d3;
  --shadow: 0 1px 1px rgba(23, 32, 42, 0.05), 0 10px 20px rgba(23, 32, 42, 0.10), 0 30px 60px rgba(23, 32, 42, 0.14);
  --shadow-soft: 0 1px 1px rgba(23, 32, 42, 0.04), 0 6px 14px rgba(23, 32, 42, 0.07), 0 16px 32px rgba(23, 32, 42, 0.06);
  --focus: #0b6f85;
  --brand: #0f6c81;
  --brand-soft: rgba(15, 108, 129, 0.09);
  --accent: #d94b4b;
  --green: #1b7e62;
  --orange: #d6611f;
  --key-bg: #f8fafc;
  --key-edge: #b8c5cf;
  --radius: 12px;
  --font: "Segoe UI", Aptos, system-ui, -apple-system, BlinkMacSystemFont, Arial, sans-serif;
}

html[data-theme="dark"] {
  color-scheme: dark;
  --bg: #111820;
  --bg-soft: #17212b;
  --surface: #1d2833;
  --surface-2: #14202a;
  --ink: #edf4f8;
  --muted: #a9b8c3;
  --line: #34424f;
  --line-strong: #516170;
  --shadow: 0 1px 1px rgba(0, 0, 0, 0.4), 0 10px 24px rgba(0, 0, 0, 0.28), 0 32px 64px rgba(0, 0, 0, 0.32);
  --shadow-soft: 0 1px 1px rgba(0, 0, 0, 0.35), 0 6px 16px rgba(0, 0, 0, 0.22), 0 16px 32px rgba(0, 0, 0, 0.18);
  --focus: #78d4e8;
  --brand: #78d4e8;
  --brand-soft: rgba(120, 212, 232, 0.1);
  --accent: #f07a7a;
  --green: #5fd3a8;
  --orange: #f0a066;
  --key-bg: #24313e;
  --key-edge: #596a78;
}

* { box-sizing: border-box; letter-spacing: 0; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  color: var(--ink);
  line-height: 1.65;
  background: linear-gradient(145deg, var(--bg) 0%, var(--bg-soft) 52%, var(--bg) 100%);
}
html[data-theme="dark"] body { background: linear-gradient(145deg, var(--bg) 0%, var(--bg-soft) 52%, #0d141b 100%); }

a { color: var(--brand); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 6px; }
button { font: inherit; cursor: pointer; }

.shell { width: min(1180px, calc(100% - 32px)); margin: 0 auto; }

/* ── Top bar ── */
.topbar {
  position: sticky; top: 0; z-index: 20;
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--surface) 78%, transparent);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
}
.topbar .shell { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 700; font-size: 1.02rem; }
.brand svg { width: 34px; height: 34px; filter: drop-shadow(0 2px 4px rgba(23, 32, 42, 0.15)); }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  padding: 8px 12px; border-radius: 10px; color: var(--muted); text-decoration: none; font-weight: 600; font-size: 0.92rem;
  transition: color .15s, background .15s;
}
.nav a:hover { color: var(--ink); background: var(--brand-soft); }
.nav a[aria-current="page"] { color: var(--brand); background: var(--brand-soft); }
.theme-btn {
  display: grid; place-items: center; width: 38px; height: 38px; margin-left: 6px;
  border: 1px solid var(--line); border-radius: 10px; background: var(--surface-2); color: var(--ink);
  transition: border-color .15s, transform .15s;
}
.theme-btn:hover { border-color: var(--brand); transform: translateY(-1px); }
.theme-btn svg { width: 18px; height: 18px; }
.theme-btn .moon { display: none; }
html[data-theme="dark"] .theme-btn .sun { display: none; }
html[data-theme="dark"] .theme-btn .moon { display: block; }
/* Reflow: let the top bar wrap instead of overflowing at 320px / 400% zoom (WCAG 1.4.10) */
@media (max-width: 720px) {
  .topbar .shell { flex-wrap: wrap; height: auto; min-height: 64px; padding: 8px 0; row-gap: 4px; }
  .nav { flex-wrap: wrap; justify-content: flex-end; }
}
@media (max-width: 560px) {
  .brand span { display: none; }
  .nav a { padding: 8px 9px; }
}

/* ── Hero band ── */
.page-hero {
  position: relative; overflow: hidden;
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.82), rgba(255, 255, 255, 0.28)),
    linear-gradient(90deg, rgba(27, 126, 98, 0.12), rgba(0, 112, 192, 0.1) 48%, rgba(214, 97, 31, 0.08));
}
html[data-theme="dark"] .page-hero {
  background:
    linear-gradient(135deg, rgba(29, 40, 51, 0.9), rgba(20, 32, 42, 0.7)),
    linear-gradient(90deg, rgba(35, 166, 124, 0.12), rgba(73, 149, 215, 0.12) 48%, rgba(221, 121, 61, 0.1));
}
.page-hero::before, .page-hero::after {
  content: ""; position: absolute; z-index: 0; border-radius: 50%; filter: blur(70px); opacity: .5; pointer-events: none;
  animation: hero-drift 16s ease-in-out infinite;
}
.page-hero::before { width: 420px; height: 420px; top: -180px; right: 6%; background: radial-gradient(circle, rgba(15, 108, 129, .35), transparent 70%); }
.page-hero::after { width: 340px; height: 340px; bottom: -160px; left: 4%; background: radial-gradient(circle, rgba(214, 97, 31, .22), transparent 70%); animation-direction: reverse; animation-duration: 19s; }
html[data-theme="dark"] .page-hero::before { background: radial-gradient(circle, rgba(120, 212, 232, .28), transparent 70%); }
html[data-theme="dark"] .page-hero::after { background: radial-gradient(circle, rgba(221, 121, 61, .22), transparent 70%); }
@keyframes hero-drift { 0%, 100% { transform: translate(0, 0) scale(1); } 50% { transform: translate(-18px, 22px) scale(1.08); } }

.page-hero .shell { position: relative; z-index: 1; padding: 64px 0 52px; animation: rise 700ms cubic-bezier(0.16, 1, 0.3, 1) both; }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: translateY(0); } }
@media (prefers-reduced-motion: reduce) { .page-hero::before, .page-hero::after, .page-hero .shell, .reveal { animation: none !important; } }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; margin: 0 0 18px; padding: 7px 12px;
  border: 1px solid var(--line); border-radius: 999px; background: rgba(255, 255, 255, .62);
  color: var(--muted); font-size: .8rem; font-weight: 650; text-transform: uppercase; letter-spacing: .06em;
}
html[data-theme="dark"] .eyebrow { background: rgba(20, 32, 42, .7); }
.eyebrow::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 0 4px var(--brand-soft); }
.page-hero h1 { margin: 0; font-size: clamp(2.1rem, 5vw, 3.4rem); line-height: 1.08; font-weight: 750; max-width: 16ch; }
.page-hero .lede { margin: 18px 0 0; max-width: 62ch; color: var(--muted); font-size: 1.1rem; }
.meta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.pill {
  display: inline-flex; align-items: center; gap: 8px; padding: 7px 12px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--surface); font-size: .86rem; color: var(--muted); box-shadow: var(--shadow-soft);
}
.pill b { color: var(--ink); font-weight: 650; }
.pill svg { width: 15px; height: 15px; color: var(--brand); }

/* ── Content layout ── */
main { padding: 44px 0 24px; }
.layout { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 36px; align-items: start; }
@media (max-width: 900px) { .layout { grid-template-columns: minmax(0, 1fr); } .toc { position: static !important; } }
.layout > * { overflow-wrap: anywhere; } /* long URLs/emails must not force sideways scrolling at 320px (WCAG 1.4.10) */

.toc {
  position: sticky; top: 88px; padding: 18px; border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--surface); box-shadow: var(--shadow-soft);
}
.toc h2 { margin: 0 0 10px; font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.toc ol { list-style: none; margin: 0; padding: 0; counter-reset: toc; display: grid; gap: 2px; }
.toc li { counter-increment: toc; }
.toc a {
  display: flex; gap: 10px; padding: 6px 8px; border-radius: 8px; color: var(--muted); text-decoration: none; font-size: .9rem; line-height: 1.35;
  transition: background .15s, color .15s;
}
.toc a::before { content: counter(toc, decimal-leading-zero); font-variant-numeric: tabular-nums; color: var(--line-strong); font-weight: 650; }
.toc a:hover, .toc a.active { color: var(--ink); background: var(--brand-soft); }
.toc a.active::before { color: var(--brand); }

.doc { display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; }
.section {
  scroll-margin-top: 88px; padding: 28px 30px; border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--surface); box-shadow: var(--shadow-soft);
}
@media (max-width: 560px) { .section { padding: 22px 18px; } }
.section h2 { display: flex; align-items: center; gap: 12px; margin: 0 0 12px; font-size: 1.28rem; line-height: 1.3; }
.section h2 .num {
  display: inline-grid; place-items: center; flex: 0 0 auto; width: 32px; height: 32px; border-radius: 9px;
  background: var(--brand-soft); color: var(--brand); font-size: .85rem; font-weight: 700; font-variant-numeric: tabular-nums;
}
.section h3 { margin: 20px 0 6px; font-size: 1rem; }
.section p { margin: 0 0 12px; color: var(--muted); }
.section p:last-child { margin-bottom: 0; }
.section strong { color: var(--ink); }
.section ul { margin: 0 0 12px; padding: 0; list-style: none; display: grid; gap: 8px; }
.section ul li { position: relative; padding-left: 22px; color: var(--muted); }
.section ul li::before { content: ""; position: absolute; left: 4px; top: .7em; width: 7px; height: 7px; border-radius: 2px; background: var(--brand); transform: rotate(45deg); }

.callout {
  display: flex; gap: 14px; margin: 16px 0 4px; padding: 16px 18px; border-radius: var(--radius);
  border: 1px solid color-mix(in srgb, var(--brand) 30%, var(--line)); background: var(--brand-soft);
}
.callout svg { flex: 0 0 auto; width: 22px; height: 22px; color: var(--brand); margin-top: 2px; }
.callout p { margin: 0; color: var(--ink); }

.table-wrap { overflow-x: auto; margin: 12px 0; border: 1px solid var(--line); border-radius: 10px; }
table { width: 100%; border-collapse: collapse; font-size: .92rem; min-width: 520px; }
th, td { padding: 11px 14px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
th { background: var(--surface-2); font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
td { color: var(--muted); }
td:first-child { color: var(--ink); font-weight: 600; }
tr:last-child td { border-bottom: 0; }

kbd {
  display: inline-block; padding: 1px 7px; border: 1px solid var(--key-edge); border-bottom-width: 3px; border-radius: 6px;
  background: var(--key-bg); color: var(--ink); font: 600 .82rem/1.5 var(--font);
}

/* ── About page ── */
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.feature {
  padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow-soft);
  transition: transform .2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow .2s, border-color .2s;
}
.feature:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--line-strong); }
.feature .icon {
  display: grid; place-items: center; width: 44px; height: 44px; margin-bottom: 14px; border-radius: 12px;
  background: var(--brand-soft); color: var(--brand);
}
.feature:nth-child(4n+2) .icon { color: var(--green); background: color-mix(in srgb, var(--green) 12%, transparent); }
.feature:nth-child(4n+3) .icon { color: var(--orange); background: color-mix(in srgb, var(--orange) 12%, transparent); }
.feature:nth-child(4n+4) .icon { color: var(--accent); background: color-mix(in srgb, var(--accent) 12%, transparent); }
.feature .icon svg { width: 22px; height: 22px; }
.feature h3 { margin: 0 0 6px; font-size: 1.05rem; }
.feature p { margin: 0; color: var(--muted); font-size: .95rem; }

.block { margin-top: 56px; }
.block-head { margin-bottom: 22px; }
.block-head h2 { margin: 0; font-size: clamp(1.5rem, 3vw, 2rem); line-height: 1.2; }
.block-head p { margin: 8px 0 0; color: var(--muted); max-width: 60ch; }

.split { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 28px; align-items: center; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } }
.split p { color: var(--muted); margin: 0 0 14px; font-size: 1.04rem; }

.keys-art {
  position: relative; padding: 28px; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); box-shadow: var(--shadow);
  display: grid; gap: 14px; justify-items: center;
}
.keys-row { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.key {
  min-width: 58px; padding: 12px 16px; border: 1px solid var(--key-edge); border-bottom-width: 4px; border-radius: 10px;
  background: var(--key-bg); font-weight: 650; text-align: center; box-shadow: 0 2px 6px rgba(23, 32, 42, .08);
  animation: keypress 4.8s ease-in-out infinite;
}
.key.wide { min-width: 96px; }
.keys-row .key:nth-child(2) { animation-delay: .15s; }
.keys-row .key:nth-child(3) { animation-delay: .3s; }
@keyframes keypress { 0%, 70%, 100% { transform: translateY(0); border-bottom-width: 4px; } 78%, 88% { transform: translateY(3px); border-bottom-width: 1px; } }
@media (prefers-reduced-motion: reduce) { .key { animation: none; } }
.keys-caption { color: var(--muted); font-size: .9rem; }
.plus { align-self: center; color: var(--muted); font-weight: 700; }

.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; counter-reset: step; }
.step { position: relative; padding: 24px 22px 22px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface-2); }
.step::before {
  counter-increment: step; content: counter(step);
  display: grid; place-items: center; width: 34px; height: 34px; margin-bottom: 12px; border-radius: 50%;
  background: var(--brand); color: var(--surface); font-weight: 700;
}
.step h3 { margin: 0 0 6px; font-size: 1rem; }
.step p { margin: 0; color: var(--muted); font-size: .94rem; }

.cta {
  position: relative; overflow: hidden; margin-top: 56px; padding: 40px; border-radius: 18px; text-align: center;
  border: 1px solid var(--line); box-shadow: var(--shadow);
  background:
    radial-gradient(circle at 12% 0%, color-mix(in srgb, var(--brand) 18%, transparent), transparent 55%),
    radial-gradient(circle at 90% 100%, color-mix(in srgb, var(--orange) 14%, transparent), transparent 55%),
    var(--surface);
}
.cta h2 { margin: 0; font-size: clamp(1.4rem, 3vw, 1.9rem); }
.cta p { margin: 10px auto 22px; color: var(--muted); max-width: 52ch; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.btn {
  display: inline-flex; align-items: center; gap: 8px; padding: 12px 20px; border-radius: 11px; font-weight: 650; text-decoration: none;
  border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink);
  transition: transform .15s, box-shadow .15s, border-color .15s;
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-soft); border-color: var(--brand); }
.btn.primary { background: var(--brand); border-color: var(--brand); color: var(--surface); }
.btn svg { width: 17px; height: 17px; }

/* ── Footer ── */
.site-footer { margin-top: 56px; padding: 28px 0 42px; border-top: 1px solid var(--line); color: var(--muted); font-size: .9rem; }
.site-footer .shell { display: flex; flex-wrap: wrap; gap: 14px; justify-content: space-between; align-items: center; }
.footer-links { display: flex; flex-wrap: wrap; gap: 18px; }
.footer-links a { color: var(--muted); text-decoration: none; }
.footer-links a:hover { color: var(--brand); text-decoration: underline; }

.reveal { animation: rise 700ms cubic-bezier(0.16, 1, 0.3, 1) both; animation-delay: 120ms; }

/* ════════ Generated content pages (app shortcut pages, guides, teams) ════════ */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.shell.narrow { width: min(860px, calc(100% - 32px)); }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; font-size: .88rem; color: var(--muted); }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--brand); text-decoration: underline; }

/* Accent-tinted hero */
.app-hero, .guide-hero { --c: var(--brand); }
.app-hero::before, .guide-hero::before { background: radial-gradient(circle, color-mix(in srgb, var(--c) 45%, transparent), transparent 70%); }
.app-hero-grid { display: flex; align-items: center; gap: 20px; }
.app-hero-grid .eyebrow { margin-bottom: 10px; }
.app-hero .page-hero h1, .app-hero h1 { max-width: none; }
.app-badge {
  display: grid; place-items: center; flex: 0 0 auto; width: 84px; height: 84px; border-radius: 22px; color: #fff;
  background: linear-gradient(145deg, color-mix(in srgb, var(--c) 82%, #fff), var(--c));
  box-shadow: 0 12px 28px color-mix(in srgb, var(--c) 40%, transparent), inset 0 1px 0 rgba(255,255,255,.35);
}
.app-badge svg { width: 44px; height: 44px; }
@media (max-width: 560px) { .app-badge { width: 60px; height: 60px; border-radius: 16px; } .app-badge svg { width: 32px; height: 32px; } }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
button.btn { font: inherit; }
.block.first { margin-top: 8px; }

/* Keys */
.keyline { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.combo { display: inline-flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.sep { color: var(--muted); font-size: .78rem; font-weight: 600; }
.or { color: var(--muted); font-size: .78rem; font-style: italic; margin: 0 2px; }
.keyline.big kbd { font-size: 1.25rem; padding: 6px 14px; border-radius: 10px; border-bottom-width: 4px; }
.keyline.big .sep { font-size: 1.1rem; }

/* Top essentials */
.top-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 12px; }
.top-card {
  padding: 16px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); box-shadow: var(--shadow-soft);
  border-top: 3px solid var(--c, var(--brand)); transition: transform .2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow .2s;
}
.top-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.top-card p { margin: 10px 0 0; color: var(--muted); font-size: .92rem; line-height: 1.45; }

/* Shortcut tables */
.sc-layout { margin-top: 48px; }
.toc-groups a::before { display: none; }
.toc-groups a { justify-content: space-between; }
.toc-groups a span { color: var(--muted); font-size: .8rem; font-variant-numeric: tabular-nums; }
.legend { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); }
.sc-group { scroll-margin-top: 88px; }
.sc-group + .sc-group { margin-top: 26px; }
.sc-group h2 { margin: 0 0 10px; font-size: 1.15rem; }
.sc-group .table-wrap { background: var(--surface); box-shadow: var(--shadow-soft); margin: 0; }
.sc-table { min-width: 560px; table-layout: fixed; }
.sc-table th:nth-child(1) { width: 34%; }
.sc-table th:nth-child(3) { width: 118px; }
.sc-table th:nth-child(4) { width: 52px; }
.sc-table td { vertical-align: middle; }
.sc-table td:first-child { font-weight: 400; }
.sc-table td:nth-child(2) { color: var(--ink); }
.sc-table td.a { width: 44px; text-align: right; }
.sc-table tbody tr { transition: background .15s; }
.sc-table tbody tr:hover { background: var(--brand-soft); }
.sc-table tr:target, .sc-table tr.flash { animation: row-flash 2.4s ease; scroll-margin-top: 100px; }
@keyframes row-flash { 0%, 40% { background: color-mix(in srgb, var(--brand) 22%, transparent); } 100% { background: transparent; } }
.row-link {
  display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 8px; border: 1px solid transparent;
  background: none; color: var(--muted); opacity: .45; transition: opacity .15s, border-color .15s, color .15s;
}
tr:hover .row-link, .row-link:focus-visible { opacity: 1; }
.row-link:hover { border-color: var(--line-strong); color: var(--brand); }
.row-link svg { width: 15px; height: 15px; }
.tier { display: inline-block; padding: 2px 9px; border-radius: 999px; font-size: .74rem; font-weight: 650; white-space: nowrap; }
.tier-essential { color: var(--green); background: color-mix(in srgb, var(--green) 13%, transparent); }
html:not([data-theme="dark"]) .tier-essential { color: #16694f; } /* 4.5:1 on its tinted pill (WCAG 1.4.3) */
.tier-timesaver { color: var(--brand); background: var(--brand-soft); }
.tier-poweruser { color: var(--orange); background: color-mix(in srgb, var(--orange) 13%, transparent); }
.callout.tip { margin-top: 26px; }

/* FAQ */
.faqs { display: grid; gap: 10px; }
.faq { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow-soft); }
.faq summary {
  list-style: none; cursor: pointer; padding: 16px 20px; font-weight: 650; display: flex; justify-content: space-between; gap: 12px; align-items: center;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.3rem; line-height: 1; color: var(--brand); transition: transform .2s; }
.faq[open] summary::after { transform: rotate(45deg); }
.faq p { margin: 0; padding: 0 20px 18px; color: var(--muted); }

/* Share row */
.share-row { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px; margin-top: 22px; font-size: .88rem; color: var(--muted); }
.share-row a, .share-row button {
  display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line);
  background: var(--surface); color: var(--ink); text-decoration: none; font: inherit; font-size: .85rem;
}
.share-row a:hover, .share-row button:hover { border-color: var(--brand); color: var(--brand); }
.share-row svg { width: 14px; height: 14px; }

/* App & guide link grids */
.app-links { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 12px; }
.app-link {
  display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: var(--radius); border: 1px solid var(--line);
  background: var(--surface); color: var(--ink); text-decoration: none; box-shadow: var(--shadow-soft); transition: transform .2s, border-color .2s;
}
.app-link:hover { transform: translateY(-2px); border-color: var(--c); }
.app-link i {
  display: grid; place-items: center; flex: 0 0 auto; width: 38px; height: 38px; border-radius: 10px; font-style: normal;
  font-size: .72rem; font-weight: 800; color: #fff; background: var(--c);
}
/* Light brand colours can't carry white text at 4.5:1 (WCAG 1.4.3) */
.app-link[href="/onedrive-sharepoint-shortcuts"] i, .app-link[href="/power-bi-shortcuts"] i { color: #17202a; }
.app-link span { display: grid; line-height: 1.3; }
.app-link small { color: var(--muted); }
.guide-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.guide-link {
  display: grid; gap: 10px; align-content: start; padding: 18px; border-radius: var(--radius); border: 1px solid var(--line);
  background: var(--surface); color: var(--ink); text-decoration: none; box-shadow: var(--shadow-soft); transition: transform .2s, box-shadow .2s, border-color .2s;
}
.guide-link:hover { transform: translateY(-2px); box-shadow: var(--shadow); border-color: var(--brand); }
.guide-link b { font-size: 1rem; line-height: 1.35; }
.guide-link small { color: var(--muted); line-height: 1.45; }

/* Guide pages */
.guide-hero h1 { max-width: 22ch; }
.answer {
  display: grid; gap: 14px; margin-top: 26px; padding: 22px 24px; max-width: 720px; border-radius: 16px;
  border: 1px solid var(--line); background: var(--surface); box-shadow: var(--shadow); border-left: 5px solid var(--c);
}
.answer p { margin: 0; color: var(--muted); }
.answer strong { color: var(--ink); }
.lead-p { font-size: 1.08rem; }
.section h2 + .steps-list { margin-top: 4px; }
.steps-list { margin: 0 0 4px; padding: 0; list-style: none; counter-reset: s; display: grid; gap: 12px; }
.steps-list li { counter-increment: s; position: relative; padding: 2px 0 0 44px; color: var(--muted); min-height: 30px; }
.steps-list li::before {
  content: counter(s); position: absolute; left: 0; top: 0; display: grid; place-items: center; width: 30px; height: 30px;
  border-radius: 50%; background: var(--brand); color: var(--surface); font-weight: 700; font-size: .88rem;
}
.guide-hero ~ main .doc { margin-top: 36px; }

/* Rich footer */
.site-footer .footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; align-items: start; }
@media (max-width: 760px) { .site-footer .footer-grid { grid-template-columns: 1fr; } }
.footer-brand p { margin: 10px 0 12px; max-width: 34ch; }
.footer-brand .brand span { display: inline; }
.site-footer h2 { margin: 4px 0 10px; font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; color: var(--ink); }
.footer-col { display: grid; gap: 6px; }
.footer-col a { color: var(--muted); text-decoration: none; }
.footer-col a:hover { color: var(--brand); text-decoration: underline; }

/* Toast */
.site-toast {
  position: fixed; left: 50%; bottom: 28px; z-index: 50; transform: translate(-50%, 20px); opacity: 0; pointer-events: none;
  padding: 10px 18px; border-radius: 999px; background: var(--ink); color: var(--surface); font-weight: 600; font-size: .9rem;
  box-shadow: var(--shadow); transition: opacity .2s, transform .2s;
}
.site-toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ── Printable cheat sheet ── */
.print-sheet { display: none; }
@media print {
  @page { size: A4; margin: 9mm; }
  html, body { background: #fff !important; color: #000; }
  body > *:not(.print-sheet) { display: none !important; }
  .print-sheet { display: block !important; font: 7.6pt/1.3 "Segoe UI", Arial, sans-serif; color: #17202a; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .print-sheet .ph { display: flex; justify-content: space-between; align-items: center; padding: 0 0 6pt; margin-bottom: 7pt; border-bottom: 2.5pt solid var(--c); }
  .print-sheet .ph b { display: block; font-size: 17pt; line-height: 1.1; }
  .print-sheet .ph span { color: #5d6a75; font-size: 8.5pt; }
  .print-sheet .pb { display: flex; align-items: center; gap: 6pt; text-align: right; font-weight: 700; font-size: 9pt; }
  .print-sheet .pb svg { width: 28pt; height: 28pt; }
  .print-sheet .pb small { font-weight: 400; color: #5d6a75; }
  .pcols { columns: 3; column-gap: 10pt; }
  .pg { break-inside: avoid; margin: 0 0 7pt; }
  .pg h3 { margin: 0 0 3pt; padding: 2pt 5pt; font-size: 8.4pt; color: #fff; background: var(--c); border-radius: 3pt; }
  .pg ul { list-style: none; margin: 0; padding: 0; }
  .pg li { display: grid; grid-template-columns: 44% 1fr; gap: 4pt; padding: 2.2pt 2pt; border-bottom: .5pt solid #dce4eb; }
  .pk kbd { display: inline-block; padding: 0 2.5pt; border: .7pt solid #9aa9b6; border-bottom-width: 1.4pt; border-radius: 2pt; background: #f4f7fa; font: 600 6.8pt/1.35 "Segoe UI", Arial, sans-serif; }
  .pk .sep, .pk .or { font-size: 6pt; color: #5d6a75; }
  .pk .combo { gap: 1.5pt; }
  .print-sheet .pf { margin-top: 6pt; padding-top: 4pt; border-top: .5pt solid #b9c7d3; color: #5d6a75; font-size: 7pt; text-align: center; }
}

/* Teams page: embed snippet */
code { font-family: Consolas, "Cascadia Mono", monospace; font-size: .88em; padding: 1px 6px; border-radius: 6px; background: var(--brand-soft); color: var(--ink); }
.code-box { display: grid; gap: 10px; justify-items: start; margin-top: 8px; padding: 14px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface-2); }
.code-box code { display: block; width: 100%; padding: 0; background: none; font-size: .8rem; line-height: 1.5; word-break: break-all; color: var(--muted); }
.embed-preview { display: grid; justify-items: center; gap: 10px; padding: 26px; border-radius: 18px; border: 1px dashed var(--line-strong); background: var(--surface-2); }
.embed-preview iframe { width: 340px; max-width: 100%; height: 170px; border: 0; }
.embed-preview span { font-size: .8rem; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }

/* Compact navigation on phones (About / For teams remain in the footer) */
.nav a { white-space: nowrap; }
@media (max-width: 640px) {
  .nav a[href="/teams"], .nav a[href="/about"] { display: none; }
  .nav a { padding: 8px 10px; }
}
@media (max-width: 420px) {
  /* 375px phones: nav + account + theme buttons must fit without horizontal scroll */
  .nav { gap: 0; }
  .nav a { padding: 8px 6px; font-size: 0.88rem; }
  .theme-btn { margin-left: 4px; }
}
@media (max-width: 640px) {
  .sc-table { min-width: 0; }
  .sc-table th:nth-child(3), .sc-table td:nth-child(3), .sc-table th:nth-child(4), .sc-table td:nth-child(4) { display: none; }
  .sc-table th:nth-child(1) { width: 48%; }
  .sc-table th, .sc-table td { padding: 10px 10px; }
}

/* ── Keycap demo on guide pages ── */
.kdemo { margin: 22px 0 8px; padding: 22px 16px 14px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); box-shadow: var(--shadow-soft); text-align: center; }
.kd-keys { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px; }
.kd-step { display: inline-flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 6px; }
.kd-keys .sep { color: var(--muted); font-weight: 700; font-size: .9rem; }
.kdemo .kd-key { min-width: 46px; padding: 8px 14px; font-size: 1.05rem; border-bottom-width: 4px; border-radius: 10px; box-shadow: 0 2px 6px rgba(23, 32, 42, .08); animation-duration: var(--kd-dur, 4s); animation-delay: var(--d, 0s); animation-iteration-count: infinite; animation-timing-function: ease-in-out; }
.kdemo .kd-key.hold { animation-name: kd-hold; }
.kdemo .kd-key.tap { animation-name: kd-tap; }
.kdemo figcaption { margin-top: 12px; color: var(--muted); font-size: .9rem; }
@keyframes kd-hold { 0%, 100% { transform: translateY(0); border-bottom-width: 4px; } 4%, 45% { transform: translateY(3px); border-bottom-width: 1px; border-color: var(--c, var(--brand)); background: color-mix(in srgb, var(--c, var(--brand)) 14%, var(--key-bg)); } 50% { transform: translateY(0); border-bottom-width: 4px; } }
@keyframes kd-tap { 0%, 14%, 100% { transform: translateY(0); border-bottom-width: 4px; } 3%, 10% { transform: translateY(3px); border-bottom-width: 1px; border-color: var(--c, var(--brand)); background: color-mix(in srgb, var(--c, var(--brand)) 14%, var(--key-bg)); } }
@media (prefers-reduced-motion: reduce) { .kdemo .kd-key { animation: none; } }

/* ── Role pages ── */
.role-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.role-item { display: grid; grid-template-columns: minmax(0, 200px) minmax(0, 1fr); gap: 16px; align-items: start; padding: 16px 18px; border: 1px solid var(--line); border-left: 4px solid var(--c, var(--brand)); border-radius: 12px; background: var(--surface); }
.role-item h3 { margin: 0 0 4px; font-size: 1rem; }
.role-item p { margin: 0; color: var(--muted); }
.role-app { margin-left: 6px; font-size: .75rem; font-weight: 700; color: var(--c, var(--brand)); text-decoration: none; white-space: nowrap; }
@media (max-width: 600px) { .role-item { grid-template-columns: 1fr; gap: 8px; } }
/* ── Growth: newsletter, feedback, testimonials ── */
.newsletter { margin-top: 56px; display: grid; grid-template-columns: 1.1fr 1fr; gap: 28px; align-items: center;
  padding: 28px 30px; border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow-soft);
  background: linear-gradient(135deg, var(--surface) 0%, var(--brand-soft) 100%), var(--surface); }
.newsletter h2 { margin: 8px 0 6px; font-size: clamp(1.3rem, 2.6vw, 1.6rem); }
.newsletter .nl-copy p:last-child { margin: 0; color: var(--muted); }
.nl-row { display: flex; gap: 10px; }
.nl-row input, .fb-form input:not([type=radio]):not([type=checkbox]), .fb-form textarea {
  flex: 1; min-width: 0; font: inherit; color: var(--ink); background: var(--surface); padding: 12px 14px;
  border: 1px solid var(--line-strong); border-radius: 10px; width: 100%; }
.nl-row input:focus, .fb-form input:focus, .fb-form textarea:focus { outline: 2px solid var(--focus); outline-offset: 1px; }
.nl-row .btn { flex: none; }
.nl-note { font-size: .82rem; color: var(--muted); margin: 10px 0 0; }
.nl-msg { margin: 8px 0 0; font-size: .92rem; font-weight: 600; min-height: 1.2em; }
.nl-msg.good { color: var(--green); } .nl-msg.bad { color: var(--accent); }
.nl-hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; opacity: 0; }
@media (max-width: 760px) { .newsletter { grid-template-columns: 1fr; padding: 22px 18px; gap: 16px; } }
@media (max-width: 420px) { .nl-row { flex-direction: column; } }
@media print { .newsletter, .testimonials { display: none !important; } }

.fb-form { display: grid; gap: 18px; margin-top: 28px; }
.fb-form label { display: block; font-weight: 600; }
.fb-form label > input, .fb-form label > textarea { display: block; margin-top: 6px; }
.fb-form .opt, .fb-form .req { font-weight: 400; color: var(--muted); font-size: .88rem; }
.fb-two { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 560px) { .fb-two { grid-template-columns: 1fr; } }
.fb-stars { border: 0; padding: 0; margin: 0; }
.fb-stars legend { font-weight: 600; padding: 0; margin-bottom: 6px; }
.stars { display: inline-flex; flex-direction: row-reverse; gap: 4px; }
.stars input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.stars label { font-size: 2rem; line-height: 1; color: var(--line-strong); cursor: pointer; display: inline-block; }
.stars label:hover, .stars label:hover ~ label, .stars input:checked ~ label { color: #e0a526; }
.stars input:focus-visible + label { outline: 2px solid var(--focus); border-radius: 4px; }
.fb-consent { display: flex !important; grid-template-columns: none; align-items: flex-start; gap: 10px !important; font-weight: 500 !important; }
.fb-consent input { margin-top: 4px; width: 18px; height: 18px; flex: none; }
.btn-row.start { justify-content: flex-start; }

.testimonials[hidden], .t-agg[hidden] { display: none; }
.t-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.t-card { margin: 0; padding: 20px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-soft); }
.t-stars { color: #e0a526; letter-spacing: 2px; }
.t-card blockquote { margin: 10px 0 12px; line-height: 1.55; overflow-wrap: anywhere; }
.t-card figcaption { color: var(--muted); font-size: .9rem; font-weight: 600; overflow-wrap: anywhere; }
.t-foot { margin: 14px 0 0; font-size: .92rem; }
