/* SimuCraft website — one stylesheet for every page.
   Colours live here as tokens; change a token and every page follows. */
:root {
  --bg: #181c24;          /* page background (same as solidcraft.io) */
  --bg-2: #1e232d;        /* raised sections */
  --card: #222834;        /* cards */
  --line: #2e3542;        /* hairlines and borders */
  --text: #e8ebf1;
  --muted: #9aa3b2;
  --faint: #6b7484;
  --blue: #006dfd;        /* SimuCraft blue (from the wordmark) */
  --blue-hi: #3d8dff;
  --pink: #f0136e;        /* DeskMate / radio accent */
  --purple: #9b3fe3;
  --radius: 14px;
  --max: 1180px;          /* content width; wide margins either side */
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Consolas, monospace;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 16px/1.6 var(--font); -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue-hi); text-decoration: none; }
a:hover { text-decoration: underline; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 32px; }

/* ---------- header ---------- */
.site-head {
  position: sticky; top: 0; z-index: 10;
  background: rgba(24, 28, 36, .86); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-head > .wrap { display: flex; align-items: center; gap: 28px; height: 68px; }
/* the apps strip above the header: small and quiet, SimuCraft stays the page's own */
.family { background: #12151c; border-bottom: 1px solid var(--line); }
.family .wrap { display: flex; align-items: center; justify-content: flex-end; gap: 18px; height: 30px; }
.fam-label { color: var(--faint); font-size: 11.5px; letter-spacing: .04em; margin-right: 2px; }
.family a { display: inline-flex; align-items: center; gap: 7px; color: var(--faint); font-size: 12px; opacity: .72; transition: opacity .15s; }
.family a img { height: 13px; width: auto; display: block; }
.family a:hover, .family a.on { opacity: 1; text-decoration: none; color: var(--muted); }
.family a.on span { color: var(--muted); }
@media (max-width: 560px) { .fam-label, .family a span { display: none; } .family .wrap { justify-content: center; gap: 26px; } }
.logo img { height: 26px; width: auto; }
.nav { display: flex; gap: 26px; margin-right: auto; }
.nav a { color: var(--muted); font-size: 15px; font-weight: 500; }
.nav a:hover, .nav a.on { color: var(--text); text-decoration: none; }
.soon { font-size: 10.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--faint);
  border: 1px solid var(--line); border-radius: 99px; padding: 1px 7px; margin-left: 6px; vertical-align: 2px; }
.head-btns { display: flex; gap: 10px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px; justify-content: center;
  padding: 10px 18px; border-radius: 10px; font-weight: 600; font-size: 15px;
  border: 1px solid transparent; cursor: pointer; font-family: inherit; transition: .15s;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-hi); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--muted); }
.btn-lg { padding: 14px 24px; font-size: 16px; border-radius: 12px; }
.btn[disabled] { opacity: .5; cursor: default; transform: none; }

/* ---------- hero ---------- */
.hero { padding-top: 96px; padding-bottom: 40px; text-align: center; }
.eyebrow { font-size: 12.5px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--blue-hi); }
.hero h1 { font-size: clamp(40px, 6.4vw, 76px); line-height: 1.04; letter-spacing: -.03em; margin: 18px 0 0; font-weight: 800; }
.hero h1 .grad { background: linear-gradient(90deg, var(--pink), #c82aa8, var(--purple));
  -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .sub { font-size: 19px; color: var(--muted); max-width: 640px; margin: 22px auto 0; }
.hero .ctas { display: flex; gap: 12px; justify-content: center; margin-top: 34px; flex-wrap: wrap; }
.hero .meta { margin-top: 20px; color: var(--faint); font-size: 14px; display: flex; gap: 12px; justify-content: center; align-items: center; flex-wrap: wrap; }
.pill { border: 1px solid var(--line); border-radius: 99px; padding: 3px 12px; color: var(--muted); font-size: 13px; }
.pill b { color: var(--text); font-weight: 600; }
.shot {
  margin: 56px auto 0; border-radius: 16px; overflow: hidden; border: 1px solid var(--line);
  box-shadow: 0 30px 80px rgba(0,0,0,.45), 0 0 0 1px rgba(255,255,255,.02);
  background: #11141a;
}
.hero .shot { max-width: 1100px; }
.caption { color: var(--faint); font-size: 14px; margin-top: 14px; text-align: center; }

/* ---------- sections ---------- */
section { padding: 96px 0; }
section.alt { background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.sec-head { text-align: center; max-width: 720px; margin: 0 auto 56px; }
.sec-head h2, .split h2 { font-size: clamp(30px, 4vw, 44px); line-height: 1.12; letter-spacing: -.02em; margin: 12px 0 0; font-weight: 750; }
.sec-head p, .split p.lead { color: var(--muted); font-size: 18px; margin-top: 16px; }

/* numbered step cards: 01 / DESIGN */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.card .num { font: 600 13px var(--mono); color: var(--blue-hi); letter-spacing: .08em; }
.card h3 { margin: 14px 0 8px; font-size: 21px; }
.card p { color: var(--muted); margin: 0; }

/* image + text split */
.split { display: grid; grid-template-columns: 1.25fr 1fr; gap: 64px; align-items: center; }
.split.flip { grid-template-columns: 1fr 1.25fr; }
.split.flip .media { order: 2; }
.split .shot { margin: 0; }
.ticks { list-style: none; padding: 0; margin: 24px 0 0; }
.ticks li { padding-left: 28px; position: relative; margin: 10px 0; color: var(--muted); }
.ticks li::before { content: ""; position: absolute; left: 4px; top: 9px; width: 10px; height: 10px; border-radius: 3px; background: var(--blue); }
.ticks li b { color: var(--text); font-weight: 600; }
.accent-pink .eyebrow { color: var(--pink); }
.accent-pink .ticks li::before { background: linear-gradient(135deg, var(--pink), var(--purple)); }

/* feature grid */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feat { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.feat img { aspect-ratio: 16/10; object-fit: cover; object-position: center; border-bottom: 1px solid var(--line); }
.feat div { padding: 22px 24px 26px; }
.feat h3 { margin: 0 0 6px; font-size: 18px; }
.feat p { margin: 0; color: var(--muted); font-size: 15px; }

/* release card + call to action */
.release { display: flex; gap: 32px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.release h3 { margin: 6px 0 4px; font-size: 24px; }
.release p { margin: 0; color: var(--muted); }
.cta { text-align: center; }
.cta h2 { font-size: clamp(34px, 5vw, 56px); letter-spacing: -.03em; margin: 0; }
.cta p { color: var(--muted); font-size: 18px; }
.cta .ctas { display: flex; gap: 12px; justify-content: center; margin-top: 28px; flex-wrap: wrap; }

/* a showcase: the app running it, full width, then its steps */
.show-strip { margin: 0 auto 40px; padding: 0 32px; max-width: 1600px; }
.show-strip img { display: block; width: 100%; height: auto; border-radius: 16px; border: 1px solid var(--line); background: #181c24; }
.show-strip video { display: block; width: 100%; height: auto; aspect-ratio: 16/9; border-radius: 16px; border: 1px solid var(--line); background: #181c24; }
.feat .num { font: 600 13px var(--mono); color: var(--blue-hi); letter-spacing: .08em; margin-bottom: 8px; padding: 0; }
.show-steps .feat img { object-position: left top; }

/* the bench: all four instruments in a row, then one at a time */
.bench-strip { overflow-x: auto; margin: 0 auto 48px; padding: 0 32px; max-width: 1600px; }
.bench-strip img { width: 100%; min-width: 900px; border-radius: 16px; border: 1px solid var(--line); }
.inst { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 10px 28px 26px; }
.inst-tabs { display: flex; gap: 6px; border-bottom: 1px solid var(--line); overflow-x: auto; }
.inst-tabs button { background: none; border: 0; border-bottom: 2px solid transparent; color: var(--muted); font: 600 15px var(--font); padding: 14px 14px 12px; cursor: pointer; white-space: nowrap; }
.inst-tabs button[aria-selected="true"] { color: var(--text); border-bottom-color: var(--blue); }
.inst-tabs button:focus-visible { outline: 2px solid var(--blue-hi); outline-offset: -2px; }
.inst-panel { display: grid; grid-template-columns: 1.3fr 1fr; gap: 40px; align-items: center; padding-top: 28px; min-height: 360px; }
.inst-panel[hidden] { display: none; }
.inst-pic { display: flex; justify-content: center; background: #1a2028; border-radius: 14px; padding: 18px; }
.inst-pic img { max-height: 340px; width: auto; }
.inst-text h3 { margin: 0 0 8px; font-size: 24px; }
.inst-text p { color: var(--muted); margin: 0; }
.inst-more { margin-top: 14px !important; font-size: 14.5px; }
.more-note { text-align: center; color: var(--muted); margin: 36px auto 0; max-width: 680px; }
.inst-nav { display: flex; gap: 8px; justify-content: flex-end; margin-top: 14px; }
.inst-nav .btn { padding: 8px 14px; }

/* ---------- simple pages (docs, lessons, download) ---------- */
.page { padding: 72px 0 96px; }
.page h1 { font-size: clamp(34px, 5vw, 52px); letter-spacing: -.025em; margin: 10px 0 12px; line-height: 1.1; }
.page .lead { color: var(--muted); font-size: 19px; max-width: 720px; }
.doc { display: grid; grid-template-columns: 220px 1fr; gap: 56px; margin-top: 48px; }
.toc { position: sticky; top: 96px; align-self: start; display: flex; flex-direction: column; gap: 8px; font-size: 15px; }
.toc a { color: var(--muted); }
.toc a:hover { color: var(--text); }
.doc h2 { font-size: 26px; margin: 48px 0 10px; letter-spacing: -.01em; scroll-margin-top: 90px; }
.doc h2:first-child { margin-top: 0; }
.doc p, .doc li { color: #c6ccd7; }
.doc ol, .doc ul { padding-left: 22px; }
.doc li { margin: 6px 0; }
.lesson-now { display: grid; grid-template-columns: 1.2fr 1fr; align-items: center; margin: 40px 0 0; color: inherit; text-decoration: none; }
.lesson-now img { aspect-ratio: 16/9; border-bottom: 0; border-right: 1px solid var(--line); }
.lesson-now:hover { border-color: var(--blue); }
.lesson-now h3 { font-size: 24px; }
.soon-head { font-size: 22px; margin: 56px 0 18px; color: var(--muted); }
.doc figure { margin: 22px 0 26px; }
.doc figure img { width: 100%; height: auto; border-radius: 12px; border: 1px solid var(--line); }
.doc figcaption { color: var(--faint); font-size: 14px; margin-top: 8px; }
.doc > * { min-width: 0; }   /* long code and links wrap or scroll inside, never widen the page */
.doc pre { background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 14px 16px; overflow-x: auto; }
.doc pre code { background: none; border: 0; padding: 0; font-size: 14px; }
.doc p code, .doc li code { overflow-wrap: anywhere; }   /* a long path or name breaks rather than widen the page */
kbd, code { font: 13.5px var(--mono); background: var(--card); border: 1px solid var(--line); border-radius: 6px; padding: 1px 6px; color: var(--text); }
.doc h3 { font-size: 19px; margin: 26px 0 6px; }
.doc table { width: 100%; border-collapse: collapse; margin: 18px 0 24px; font-size: 15px; }
.doc th, .doc td { text-align: left; vertical-align: top; padding: 9px 12px; border-bottom: 1px solid var(--line); color: #c6ccd7; }
.doc th { color: var(--text); font-weight: 600; font-size: 14px; }
.doc figure.small img { max-width: 440px; }
.doc figure.medium img { max-width: 560px; }
.doc .note { margin: 22px 0; }
.pdf-link { margin-top: 18px; }
.note { background: var(--card); border: 1px solid var(--line); border-left: 3px solid var(--blue); border-radius: 10px; padding: 14px 18px; color: var(--muted); }

/* lessons: coming soon */
.lessons { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 48px; }
.lessons .card { opacity: .8; }
.lessons .card .num { color: var(--faint); }

/* download: donate step */
.donate { max-width: 640px; margin: 48px auto 0; background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 36px; }
.donate h2 { margin: 0 0 6px; font-size: 24px; }
.donate p { color: var(--muted); margin: 0 0 22px; }
.amounts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.amounts.two { grid-template-columns: repeat(2, 1fr); }
.kofi-panel { border-radius: 14px; overflow: hidden; background: #f9f9f9; margin: 0 0 18px; }
.kofi-btn { display: inline-block; }
.kofi-btn img { display: block; }
p:has(> .kofi-btn) { text-align: center; }
.kofi-badge { display: block; width: 168px; margin: 0 auto 22px; }
.kofi-badge img { display: block; width: 100%; height: auto; }
.kofi-panel iframe { display: block; border: 0; width: 100%; height: 640px; }
.paypal { text-align: center; border-top: 1px solid var(--line); padding-top: 22px; margin: 4px 0 22px; }
.paypal p { margin: 0 0 12px; }
.pp-btn { display: inline-block; background: #ffc439; color: #111; border-radius: 22px; padding: 10px 28px; font-weight: 600; font-size: 15px; }
.pp-btn b { color: #003087; font-weight: 800; }
.pp-btn:hover { text-decoration: none; filter: brightness(.96); }
.snapscan { text-align: center; border-top: 1px solid var(--line); padding-top: 22px; margin: 4px 0 22px; }
.snapscan p { margin: 0 0 12px; }
.snap-btn { display: inline-block; background: #3978bd; border-radius: 10px; padding: 4px 14px; }
.snap-btn img { display: block; }
/* (Yoco) card payments in rands: amount buttons, an other-amount box and the pay button */
.yoco { text-align: center; border-top: 1px solid var(--line); padding-top: 22px; margin: 4px 0 22px; }
.yoco p { margin: 0 0 12px; }
.yoco-amts { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin: 0 0 14px; }
.yoco-amt { min-width: 64px; padding: 9px 14px; border-radius: 10px; border: 1px solid var(--line); background: transparent; color: inherit; font: inherit; font-weight: 600; cursor: pointer; }
.yoco-amt.on { border-color: #00a9e0; background: rgba(0,169,224,.14); }
.yoco-other { display: inline-flex; align-items: center; gap: 4px; padding: 0 10px; border-radius: 10px; border: 1px solid var(--line); font-weight: 600; }
.yoco-other input { width: 72px; background: transparent; border: 0; color: inherit; font: inherit; padding: 9px 0; outline: none; }
.yoco-btn { display: inline-block; background: #00a9e0; color: #fff; border: 0; border-radius: 22px; padding: 11px 28px; font: inherit; font-weight: 700; font-size: 15px; cursor: pointer; }
.yoco-btn:hover { filter: brightness(1.06); }
.yoco-btn:disabled { opacity: .55; cursor: default; }
.yoco-msg { margin-top: 10px !important; min-height: 1.2em; }
.snap-qr { display: block; margin: 0 auto 12px; background: #fff; padding: 8px; border-radius: 10px; }
@media (max-width: 600px) { .snap-qr { display: none; } }
.amount { background: var(--bg); border: 1.5px solid var(--line); border-radius: 12px; padding: 18px 10px; text-align: center;
  cursor: pointer; color: var(--text); font: inherit; transition: .15s; }
.amount b { display: block; font-size: 26px; }
.amount span { font-size: 13px; color: var(--muted); }
.amount:hover { border-color: var(--muted); }
.amount[aria-pressed="true"] { border-color: var(--blue); background: rgba(0,109,253,.10); }
.donate .go { margin-top: 24px; width: 100%; }
.donate .small { font-size: 13.5px; color: var(--faint); margin: 14px 0 0; text-align: center; }
.after { display: none; text-align: center; }
.after.show { display: block; }
.platforms { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; max-width: 760px; margin: 40px auto 0; }
.platforms .card { text-align: center; }
.platforms .card .btn { margin-top: 18px; }

/* ---------- footer ---------- */
.site-foot { border-top: 1px solid var(--line); padding: 64px 0 40px; color: var(--muted); font-size: 15px; }
.foot-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr 1fr; gap: 40px; }
.foot-grid h4 { color: var(--text); font-size: 13px; letter-spacing: .1em; text-transform: uppercase; margin: 4px 0 14px; }
.foot-grid a { display: block; color: var(--muted); margin: 8px 0; }
.foot-grid a:hover { color: var(--text); }
.foot-grid .tag { margin-top: 14px; max-width: 300px; }
.foot-base { border-top: 1px solid var(--line); margin-top: 48px; padding-top: 24px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; color: var(--faint); font-size: 14px; }

/* ---------- phones and tablets ---------- */
@media (max-width: 960px) {
  .steps, .grid, .lessons { grid-template-columns: 1fr 1fr; }
  .split, .split.flip { grid-template-columns: 1fr; gap: 36px; }
  .split.flip .media { order: 0; }
  .inst-panel { grid-template-columns: 1fr; gap: 20px; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .doc { grid-template-columns: 1fr; }
  .lesson-now { grid-template-columns: 1fr; } .lesson-now img { border-right: 0; border-bottom: 1px solid var(--line); }
  .toc { position: static; flex-direction: row; flex-wrap: wrap; gap: 14px; }
}
@media (max-width: 720px) {
  .wrap { padding: 0 16px; }
  .nav { display: none; }
  .site-head > .wrap { justify-content: space-between; }
  .head-btns .btn-ghost { display: none; }
  .menu { display: inline-flex !important; }
  .site-head.open .nav { display: flex; position: absolute; top: 98px; left: 0; right: 0; flex-direction: column;
    background: var(--bg); border-bottom: 1px solid var(--line); padding: 16px; gap: 14px; }
  .hero { padding-top: 56px; padding-bottom: 24px; }
  .bench-strip { padding: 0 16px; }
  .show-strip { padding: 0 16px; }
  .inst { padding: 6px 16px 20px; }
  .hero .sub { font-size: 17px; }
  section { padding: 64px 0; }
  .steps, .grid, .lessons, .platforms { grid-template-columns: 1fr; }
  .amounts { gap: 8px; }
  .donate { padding: 24px 18px; }
  .foot-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
  .foot-grid > div:first-child { grid-column: 1 / -1; }
  .doc table { display: block; overflow-x: auto; }   /* a wide table scrolls within itself, never the page */
}
.menu { display: none; background: none; border: 1px solid var(--line); color: var(--text); border-radius: 8px; padding: 7px 10px; cursor: pointer; }

/* ---------- printing (and the lessons' PDFs): black on white, no header, footer or contents ---------- */
@media print {
  @page { size: A4; margin: 16mm 15mm; }
  :root, html { color-scheme: light !important; }
  html, body { background: #fff !important; color: #111 !important; }
  .doc figure img { width: auto !important; max-width: 100% !important; max-height: 105mm; }
  .doc figure.small img { max-height: 70mm; }
  .doc pre { white-space: pre-wrap; word-break: break-word; }
  .site-head, .site-foot, .toc, .pdf-link { display: none !important; }
  .page, .wrap { padding: 0 !important; margin: 0 !important; max-width: none !important; }
  .doc { display: block; margin-top: 18px; }
  h1, h2, h3, .lead, .eyebrow, .doc p, .doc li, .doc td, .doc th, .note, .note b, figcaption { color: #111 !important; }
  .eyebrow { color: #555 !important; }
  .doc h2 { break-after: avoid; margin-top: 26px; }
  .doc figure, .doc pre, .doc table, .note { break-inside: avoid; }
  .revisions, .doc h2, .doc h3 { break-inside: avoid; break-after: avoid; }   /* a heading stays with what follows it */
  .doc figure img { border-color: #ccc; }
  .doc pre, kbd, code { background: #f4f5f7 !important; border-color: #ddd !important; color: #111 !important; }
  .note { background: #f4f6fa !important; border-color: #ccd !important; }
  .doc th, .doc td { border-color: #ddd; }
  a { color: #111 !important; text-decoration: none; }
  /* print sizes: 11 pt body text */
  .lead, .doc p, .doc li, .doc td, .doc th, .note, figcaption { font-size: 11pt !important; line-height: 1.5 !important; }
  figcaption { font-size: 9.5pt !important; }
  .doc pre, .doc pre code { font-size: 9pt !important; line-height: 1.45 !important; }
  .doc code, kbd { font-size: 9.5pt !important; }
  h1 { font-size: 24pt !important; line-height: 1.15 !important; }
  .doc h2, .revisions h2 { font-size: 15pt !important; }
  .doc h3 { font-size: 12.5pt !important; }
  .eyebrow, .rev { font-size: 9pt !important; }
}

/* lessons: the revision under the title, and the history at the end */
.rev { font: 600 13px/1.4 'JetBrains Mono', monospace; color: var(--muted, #8a93a3); margin: -6px 0 18px; letter-spacing: .02em; }
.revisions { margin-top: 56px; }
.revisions td:first-child, .revisions td:nth-child(2) { white-space: nowrap; }

/* a section's row of example tiles under its split */
.grid.sub { margin-top: 48px; }
.grid.sub .feat div { padding: 16px 20px 20px; }
.grid.sub .feat h3 { font-size: 16px; }
.grid.sub .feat p { font-size: 14px; }
/* coming next */
.soon { display: inline-block; font: 600 12px var(--mono); letter-spacing: .08em; color: #1b1f27; background: #f5c542; border-radius: 6px; padding: 3px 8px; margin-left: 8px; vertical-align: middle; }
.grid.sub.four { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1100px) { .grid.sub.four { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .grid.sub.four { grid-template-columns: 1fr; } }

/* why donate: the reasons and plans, under the donation panel */
.apps3 { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin: 28px auto 0; max-width: 640px; }
.apps3 a { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 16px 20px; min-width: 160px; flex: 1 1 160px; background: var(--card); border: 1px solid var(--line); border-radius: 14px; color: var(--faint); font-size: 13px; }
.apps3 a:hover { text-decoration: none; border-color: var(--muted); }
.apps3 img { height: 20px; width: auto; display: block; }
.why { max-width: 640px; margin: 40px auto 0; text-align: left; }
.why h2 { font-size: 26px; margin: 0 0 10px; text-align: center; }
.why h3 { font-size: 18px; margin: 22px 0 0; }
.why p { color: var(--muted); }

/* known issues and future plans (site.js plansHTML) */
.plans { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; margin-top: 32px; }
.plans-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; min-width: 0; }
.plans-card h3 { margin: 6px 0 4px; font-size: 22px; }
.plans-card .ticks li { line-height: 1.5; }
.plans-card .known li::before { background: #e8a33d; }
.plans-note { margin: 18px 0 0; color: var(--faint); font-size: 14px; }
@media (max-width: 820px) { .plans { grid-template-columns: minmax(0, 1fr); } .plans-card { padding: 22px; } }

/* CalcCraft pages: the Download button in CalcCraft orange */
.btn-calc { background: #ff6a00; border-color: #ff6a00; color: #fff; }
.btn-calc:hover { background: #ff8a3d; border-color: #ff8a3d; }
/* CalcCraft's web app button (John, 23 Nov 2026: magenta/purple so it isn't lost beside the downloads) */
.btn-webapp { background: linear-gradient(135deg, #d21bf0, #8b3dff); border-color: transparent; color: #fff; }
.btn-webapp:hover { background: linear-gradient(135deg, #e04cf5, #a066ff); border-color: transparent; color: #fff; }
/* the download page's Web or desktop? table */
.webdesk { max-width: 900px; margin: 48px auto 0; text-align: left; }
.webdesk table { width: 100%; border-collapse: collapse; margin: 18px 0 8px; font-size: 15px; }
.webdesk th, .webdesk td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--line); color: #c6ccd7; }
.webdesk td b { color: var(--text); }
.webdesk th { font-weight: 700; }
.webdesk td:first-child { width: 26%; }
@media (max-width: 760px) { .webdesk table { display: block; overflow-x: auto; } .webdesk td:first-child { width: auto; min-width: 140px; } .webdesk td { min-width: 180px; } }

/* (John, 23 Nov 2026) the ways to give, as dark tiles in the site's own colours */
.give { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 0 0 4px; text-align: left; }
.give-tile { background: var(--bg); border: 1px solid var(--line); border-radius: 14px; padding: 18px; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.give-wide { grid-column: 1 / -1; }
.give-name { font-weight: 700; font-size: 17px; color: var(--text); }
.give-note { font-weight: 500; font-size: 13.5px; color: var(--muted); margin-left: 6px; }
.donate .give .small { text-align: left; margin: 0; }
.give-btn { align-self: flex-start; margin-top: auto; text-decoration: none; }
.give-btn:hover { text-decoration: none; }
.give-btn.kofi { display: inline-block; background: #ff5e5b; color: #fff; border-radius: 22px; padding: 10px 24px; font-weight: 700; font-size: 15px; }
.give-btn.kofi:hover { filter: brightness(1.06); }
.give .pp-btn { padding: 10px 24px; }
.give .yoco { border-top: 1px solid var(--line); }
.give-tile.yoco { text-align: left; margin: 0; padding: 18px; border-top: 1px solid var(--line); }
.give-tile.yoco .yoco-amts { justify-content: flex-start; margin: 2px 0 4px; }
.give-tile.yoco .yoco-msg { margin: 0 !important; }
.give-tile.snapscan { flex-direction: row; align-items: center; gap: 18px; text-align: left; margin: 0; padding: 18px; border-top: 1px solid var(--line); }
.give-tile.snapscan > div:last-child { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.give-tile.snapscan .snap-btn { align-self: flex-start; }
.give-qr { background: #fff; border-radius: 10px; padding: 8px; flex: none; }
.give-qr img { display: block; width: 116px; height: 116px; }
@media (max-width: 560px) { .give { grid-template-columns: minmax(0, 1fr); } .give-tile.snapscan { flex-direction: column; align-items: flex-start; } }
.give-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.yoco-logo { display: block; flex: none; width: 86px; height: auto; border-radius: 8px; }

/* card donation: the thank-you banner across the top once Yoco confirms the payment */
.yoco-thanks{position:fixed;top:calc(112px + env(safe-area-inset-top,0px));left:50%;transform:translateX(-50%);z-index:1000;background:#1f7a3f;color:#fff;
  padding:14px 18px 14px 22px;border-radius:12px;box-shadow:0 10px 30px rgba(0,0,0,.35);font-size:17px;display:flex;gap:14px;align-items:center;max-width:calc(100% - 32px)}
.yoco-thanks button{background:none;border:0;color:#fff;font-size:22px;line-height:1;cursor:pointer;opacity:.8}
.yoco-thanks button:hover{opacity:1}
