/* Twirlway site. Plain CSS, no build step, no external requests. */
:root {
  --bg: #EEF0FF; --bg2: #FFF0F7; --surface: #FFFFFF; --ink: #1E1B3A; --muted: #5B5880; --line: #D9D6F2;
  --accent: #6C4DFF; --accent-ink: #4B2FD6; --on-accent: #FFFFFF;
  --c1: #FF8A3D; --c2: #23C4E8; --c3: #2FBF71; --c4: #FF5C93;
  --r: 20px; --shadow: 0 2px 0 rgba(60,40,160,.10), 0 14px 34px rgba(60,40,160,.12);
  --font-display: "Fredoka", ui-rounded, "Arial Rounded MT Bold", "Nunito", "Segoe UI", system-ui, sans-serif;
  --font-body: "Nunito", ui-rounded, "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #12102A; --bg2: #1B1238; --surface: #1D1A3D; --ink: #F1EFFF; --muted: #B3AEDB; --line: #37326A;
    --accent: #9B85FF; --accent-ink: #C3B6FF; --on-accent: #12102A;
    --shadow: 0 0 0 1px #2C2858, 0 14px 34px rgba(0,0,0,.4);
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
body {
  margin: 0; min-height: 100vh; display: flex; flex-direction: column;
  background: linear-gradient(160deg, var(--bg) 0%, var(--bg2) 100%) fixed; color: var(--ink);
  font: 400 17px/1.6 var(--font-body);
}
a { color: var(--accent-ink); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--surface); padding: 8px 14px; border-radius: 10px; z-index: 5; }
.skip:focus { left: 8px; }
.wrap { width: 100%; max-width: 780px; margin: 0 auto; padding: 0 20px; }

header.site { padding: 16px 0; }
header.site .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font: 700 22px var(--font-display); }
.brand svg { width: 38px; height: 38px; flex: none; }
nav.top ul { list-style: none; display: flex; flex-wrap: wrap; gap: 4px; margin: 0; padding: 0; }
nav.top a { display: inline-block; padding: 8px 12px; border-radius: 999px; text-decoration: none; color: var(--muted); font-weight: 700; font-size: 15px; }
nav.top a:hover, nav.top a[aria-current="page"] { background: var(--surface); color: var(--accent-ink); }

main { flex: 1; padding: 8px 0 40px; }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.2; margin: 1.6em 0 .5em; }
h1 { font-size: clamp(30px, 6vw, 44px); margin-top: .4em; }
h2 { font-size: 24px; }
h3 { font-size: 19px; }
p, ul, ol, table { margin: 0 0 1em; }
li { margin-bottom: .35em; }
.lead { font-size: 19px; color: var(--muted); }
.meta { color: var(--muted); font-size: 15px; }
code { font-family: ui-monospace, Consolas, monospace; font-size: .92em; background: rgba(108,77,255,.12); padding: 1px 6px; border-radius: 6px; }

.card { background: var(--surface); border-radius: var(--r); box-shadow: var(--shadow); padding: 22px; margin: 0 0 18px; }
.card > :first-child { margin-top: 0; }
.card > :last-child { margin-bottom: 0; }
.doc { background: var(--surface); border-radius: var(--r); box-shadow: var(--shadow); padding: clamp(18px, 4vw, 36px); }
.doc > :first-child { margin-top: 0; }
.note { border-left: 6px solid var(--c1); background: rgba(255,138,61,.12); border-radius: 12px; padding: 12px 16px; margin: 0 0 1em; }

.table-scroll { overflow-x: auto; margin: 0 0 1em; }
table { border-collapse: collapse; width: 100%; font-size: 15.5px; margin: 0; }
th, td { text-align: left; vertical-align: top; padding: 9px 10px; border-bottom: 1px solid var(--line); }
th { font-family: var(--font-display); font-weight: 600; white-space: nowrap; }

/* Landing */
.hero { display: grid; gap: 22px; align-items: center; grid-template-columns: 1fr; padding: 10px 0 6px; }
@media (min-width: 720px) { .hero { grid-template-columns: 1.15fr .85fr; } }
.hero h1 { margin: 0 0 .3em; }
.hero .board { width: 100%; max-width: 300px; height: auto; justify-self: center; filter: drop-shadow(0 16px 26px rgba(60,40,160,.22)); }
.badges { display: flex; flex-wrap: wrap; gap: 12px; margin: 18px 0 6px; padding: 0; list-style: none; }
.badge { display: inline-flex; flex-direction: column; justify-content: center; min-width: 168px; padding: 10px 18px; border-radius: 16px; background: var(--ink); color: var(--bg); line-height: 1.2; }
.badge small { font-size: 12px; opacity: .8; letter-spacing: .04em; text-transform: uppercase; }
.badge b { font: 600 18px var(--font-display); }
.features { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
.features li { background: var(--surface); border-radius: 16px; padding: 14px 16px; box-shadow: var(--shadow); margin: 0; }
.features b { display: block; font-family: var(--font-display); }
.btn { display: inline-block; background: var(--accent); color: var(--on-accent); font: 600 17px var(--font-display); text-decoration: none; padding: 12px 22px; border-radius: 999px; box-shadow: 0 4px 0 rgba(0,0,0,.18); }
.btn:hover { transform: translateY(-1px); }

footer.site { padding: 22px 0 30px; color: var(--muted); font-size: 15px; }
footer.site ul { list-style: none; display: flex; flex-wrap: wrap; gap: 6px 18px; padding: 0; margin: 0 0 8px; }
footer.site a { color: var(--muted); }

@media print { body { background: #fff; } header.site nav, .badges, footer.site ul { display: none; } .doc, .card { box-shadow: none; padding: 0; } }
