/* Shared style of the two site pages. Colours match the app loading screen (index.html). */
:root {
    --page: #f3f3f3;
    --card: #ffffff;
    --text: #505050;
    --strong: #363833;
    --muted: #868686;
    --line: #e0e0e0;
    --accent: #5794d4;
    --todo: #fff3c4;
}
@media (prefers-color-scheme: dark) {
    :root {
        --page: #202020;
        --card: #2a2a2a;
        --text: #cecece;
        --strong: #f0f0f0;
        --muted: #ababab;
        --line: #414141;
        --accent: #80ade0;
        --todo: #5a4a00;
    }
}
* { box-sizing: border-box; }
html { background: var(--page); }
body {
    margin: 0;
    background: var(--page);
    color: var(--text);
    font: 16px/1.6 Arimo, Arial, "Helvetica Neue", sans-serif;
}
.wrap { max-width: 760px; margin: 0 auto; padding: 0 16px; }
header.top { display: flex; align-items: center; justify-content: space-between; padding: 20px 0; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--strong); font-size: 20px; font-weight: bold; text-decoration: none; }
.brand img { width: 28px; height: 28px; }

h1 { color: var(--strong); font-size: 34px; line-height: 1.2; margin: 32px 0 16px; text-wrap: balance; }
h2 { color: var(--strong); font-size: 20px; margin: 40px 0 8px; }
p, ul { margin: 0 0 12px; }
ul { padding-left: 22px; }
a { color: var(--accent); }
.lead { font-size: 18px; }
.muted { color: var(--muted); font-size: 14px; }

.button { display: inline-block; background: var(--accent); color: #fff; text-decoration: none; border-radius: 6px; padding: 12px 28px; font-weight: bold; margin: 12px 0 8px; }
.button:hover { filter: brightness(1.08); }
.actions { display: flex; flex-wrap: wrap; gap: 0 12px; }
.button.secondary { background: transparent; color: var(--accent); box-shadow: inset 0 0 0 2px var(--accent); }

.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; margin: 24px 0; padding: 0; list-style: none; }
.features li { background: var(--card); border: 1px solid var(--line); border-radius: 8px; padding: 16px; }
.features b { display: block; color: var(--strong); margin-bottom: 4px; }

table { width: 100%; border-collapse: collapse; margin: 0 0 12px; }
.scroll { overflow-x: auto; }
th, td { text-align: left; vertical-align: top; padding: 8px 12px 8px 0; border-bottom: 1px solid var(--line); }
th { color: var(--strong); }

/* Three columns do not fit on a phone: a table row becomes a stack, its first cell the heading. */
@media (max-width: 560px) {
    tr:first-child { display: none; }
    tr { display: block; padding: 10px 0; border-bottom: 1px solid var(--line); }
    td { display: block; padding: 0 0 4px; border: 0; }
    td:first-child { color: var(--strong); font-weight: bold; }
    h1 { font-size: 28px; }
}

/* Placeholders the owner must fill in before publishing. */
.todo { background: var(--todo); border-radius: 3px; padding: 0 4px; }

footer { border-top: 1px solid var(--line); margin-top: 56px; padding: 20px 0 40px; color: var(--muted); font-size: 14px; }
footer a { color: var(--muted); margin-right: 16px; }
