/* sheetset.app: the public website. Plain CSS, no framework, light and dark.
   Pages are mostly plain HTML inside <main> (h1, p, section, ul, table); the classes
   below are the few they use. Header and footer come from _partials at build time. */
:root {
  --bg: #ffffff; --bg-2: #f4f6fa; --surface: #ffffff; --text: #14171c; --muted: #576071; --border: #dfe3ea;
  --accent: #1f4fd1; --accent-ink: #ffffff; --accent-soft: #e8eefc; --ok: #157a3f; --ok-soft: #e5f5eb;
  --warn: #8a5a00; --warn-soft: #fff4dc; --danger: #b42318;
  --shadow: 0 1px 2px rgba(16, 24, 40, .06), 0 8px 24px rgba(16, 24, 40, .06);
  --radius: 12px; --max: 1080px; --read: 46rem;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0f1115; --bg-2: #161a20; --surface: #1a1e25; --text: #e8eaee; --muted: #9ba4b3; --border: #2b313b;
    --accent: #7097ff; --accent-ink: #0b1020; --accent-soft: #1b2540; --ok: #4ade80; --ok-soft: #12291b;
    --warn: #fbbf24; --warn-soft: #2d2410; --danger: #f87171; --shadow: 0 1px 2px rgba(0, 0, 0, .4);
    color-scheme: dark;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 17px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; }
a { color: var(--accent); }
img { max-width: 100%; height: auto; }
code { font: .9em ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; overflow-wrap: anywhere; }
h1 { font-size: clamp(1.9rem, 4.5vw, 2.9rem); line-height: 1.12; letter-spacing: -.02em; margin: 0 0 1rem; }
h2 { font-size: clamp(1.3rem, 3vw, 1.75rem); line-height: 1.2; letter-spacing: -.01em; margin: 0 0 .75rem; }
h3 { font-size: 1.1rem; margin: 0 0 .4rem; }
p { margin: 0 0 1rem; }
ul, ol { padding-left: 1.3rem; margin: 0 0 1rem; }
li { margin: .35rem 0; }
.muted, .meta { color: var(--muted); }
.small, .meta, .footnote { font-size: .9rem; }
.footnote { color: var(--muted); margin-top: 2rem; }
.hidden { display: none !important; }

.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 8px; background: var(--surface); padding: .5rem 1rem; z-index: 50; }

/* Layout: <main> is the page column; text stays at a readable width. */
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 16px; }
main { display: block; max-width: var(--max); margin: 0 auto; padding: 0 16px 2rem; }
main .wrap { max-width: none; padding: 0; }
main > h1:first-child { margin-top: clamp(2rem, 6vw, 3.5rem); }
main p, main li, main dd, main dt { max-width: var(--read); }
main > section, main > .section { padding: clamp(1.25rem, 4vw, 2.25rem) 0; }
.narrow { max-width: 760px; }
.hero { padding-top: clamp(2.25rem, 7vw, 4.5rem) !important; }
.hero h1 { max-width: 20em; }
.lead, .lede { font-size: clamp(1.05rem, 2.2vw, 1.25rem); color: var(--muted); max-width: 44rem; }

/* Header and footer */
.site-header { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid var(--border); }
.site-header .wrap { display: flex; align-items: center; gap: .5rem 1rem; min-height: 60px; flex-wrap: wrap; }
.brand { display: inline-flex; align-items: center; gap: .55rem; font-weight: 700; font-size: 1.1rem; color: var(--text); text-decoration: none; }
.brand img { width: 28px; height: 28px; }
.nav { display: flex; gap: .25rem 1.1rem; flex-wrap: wrap; margin-left: auto; align-items: center; }
.nav a { color: var(--text); text-decoration: none; font-size: .95rem; }
.nav a:not(.button):hover, .nav a[aria-current="page"] { color: var(--accent); }
.site-footer { border-top: 1px solid var(--border); padding: 2rem 0 3rem; margin-top: 2rem; font-size: .92rem; color: var(--muted); }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 1rem 2rem; justify-content: space-between; }
.site-footer .facts { max-width: 40rem; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: .5rem 1.1rem; align-content: flex-start; }
.site-footer a { color: var(--muted); }
@media (max-width: 720px) {
  .site-header { position: static; }
  .nav { margin-left: 0; width: 100%; padding-bottom: .5rem; }
}

/* Buttons */
.button, .btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: 44px; padding: .6rem 1.15rem; border-radius: 10px; border: 1px solid var(--border); background: var(--surface); color: var(--text); font: inherit; font-weight: 600; text-decoration: none; cursor: pointer; }
.button:hover, .btn:hover { border-color: var(--accent); }
.button.primary, .btn.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.button.primary:hover, .btn.primary:hover { filter: brightness(1.08); }
.button.small, .btn.small { min-height: 36px; padding: .3rem .85rem; font-size: .92rem; }
.cta, .actions { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; margin: 1.25rem 0; max-width: none !important; }
.cta .meta { margin-left: .25rem; }

/* Home: quick facts and feature lists */
.stats { list-style: none; padding: 0; margin: 2rem 0 0; display: grid; gap: .75rem; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.stats li { margin: 0; max-width: none; padding: 1rem; border: 1px solid var(--border); border-radius: var(--radius); background: var(--bg-2); color: var(--muted); font-size: .95rem; }
.stats strong { font-size: 1.15rem; color: var(--text); letter-spacing: -.01em; }
.features { list-style: none; padding: 0; display: grid; gap: .75rem; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.features li { margin: 0; max-width: none; padding: 1rem 1.1rem; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); }
.guides { padding-left: 1.2rem; }
.guides li { margin: .6rem 0; }

/* Tables (comparisons, pricing) */
.table-wrap { overflow-x: auto; margin: 1rem 0 1.5rem; border: 1px solid var(--border); border-radius: var(--radius); }
table { border-collapse: collapse; width: 100%; font-size: .95rem; }
th, td { text-align: left; vertical-align: top; padding: .65rem .85rem; border-bottom: 1px solid var(--border); }
thead th { background: var(--bg-2); font-size: .9rem; }
tbody tr:last-child th, tbody tr:last-child td { border-bottom: 0; }
tbody th { font-weight: 600; width: 34%; }
.table-wrap table { min-width: 560px; }

/* Cards and plans (license, thanks, support pages) */
.section.alt { background: var(--bg-2); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.5rem; margin: 1rem 0; }
.grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.25rem; box-shadow: var(--shadow); }
.tag { display: inline-block; font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--accent); background: var(--accent-soft); border-radius: 999px; padding: .15rem .6rem; }
.notice { border-radius: 10px; padding: .85rem 1rem; margin: 1rem 0; background: var(--accent-soft); }
.notice.ok { background: var(--ok-soft); }
.notice.warn { background: var(--warn-soft); }
.key { font: 600 clamp(1rem, 3.6vw, 1.35rem)/1.4 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; letter-spacing: .04em; padding: .9rem 1rem; border: 1px dashed var(--accent); border-radius: 10px; background: var(--surface); overflow-wrap: anywhere; }
.faq dt { font-weight: 700; margin-top: 1.25rem; }
.faq dd { margin: .3rem 0 0; color: var(--muted); }

form.inline { display: flex; flex-wrap: wrap; gap: .6rem; margin: 1rem 0; }
input[type="email"], input[type="text"] { flex: 1 1 240px; min-height: 44px; padding: .55rem .8rem; font: inherit; color: var(--text); background: var(--surface); border: 1px solid var(--border); border-radius: 10px; }
input:focus-visible, .button:focus-visible, .btn:focus-visible, a:focus-visible { outline: 3px solid color-mix(in srgb, var(--accent) 45%, transparent); outline-offset: 2px; }
