/* Snipit website. Same colours and type as the app (app/src/theme/tokens.ts), light and dark. */
:root {
  --paper: #F4F6F2; --surface: #FFFFFF; --sunk: #EBF0EA; --green-tint: #E2F0E8;
  --ink: #17201C; --ink-2: #3B4741; --muted: #5F6A64; --line: #E4EAE4;
  --accent: #0B7458; --accent-ink: #FFFFFF; --blue: #3553A3;
  --lift: 0 1px 2px rgba(23,32,28,.04), 0 6px 18px rgba(23,32,28,.06);
  --f-display: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
  --f-body: "Figtree", "Segoe UI", system-ui, sans-serif;
}
/* Always Snipit's light brand look, whatever the device's dark mode. */
:root { color-scheme: light; --brand: #0B7458; --brand-dark: #085A44; }
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--f-body); font-size: 17px; line-height: 1.55; }
a { color: var(--accent); font-weight: 600; }
img { max-width: 100%; display: block; }
.wrap { max-width: 760px; margin: 0 auto; padding: 0 16px; }

/* header */
.top { position: sticky; top: 0; z-index: 5; background: rgba(255,255,255,.94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; gap: 12px; min-height: 60px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-family: var(--f-display); font-weight: 800; font-size: 20px; letter-spacing: -.02em; }
.brand img { width: 32px; height: 32px; border-radius: 9px; }
nav { display: flex; gap: 2px; margin-left: auto; flex-wrap: wrap; }
nav a { color: var(--ink-2); text-decoration: none; font-weight: 600; font-size: 15px; padding: 10px 10px; border-radius: 10px; min-height: 44px; display: inline-flex; align-items: center; }
nav a:hover { background: var(--sunk); }
nav a[aria-current="page"] { color: var(--ink); background: var(--sunk); }

/* content */
main { padding: 28px 0 40px; }
h1, h2, h3 { font-family: var(--f-display); letter-spacing: -.02em; line-height: 1.15; margin: 0; }
h1 { font-size: clamp(30px, 7vw, 44px); font-weight: 800; }
h2 { font-size: 24px; font-weight: 700; margin-top: 36px; }
h3 { font-size: 18px; font-weight: 700; }
p { margin: 10px 0 0; }
.lede { font-size: 19px; color: var(--ink-2); max-width: 36em; }
.muted { color: var(--muted); }
.small { font-size: 14px; }

.hero { display: grid; grid-template-columns: 1fr auto; gap: 20px; align-items: center; background: linear-gradient(135deg, #DDEFE5 0%, #EEF6F0 60%, #F4F6F2 100%); border-radius: 28px; padding: 28px; }
.hero img { width: 140px; height: 140px; }
@media (max-width: 560px) { .hero { grid-template-columns: 1fr; } .hero img { width: 104px; height: 104px; order: -1; } }

.card { background: var(--surface); border-radius: 22px; box-shadow: var(--lift); padding: 18px; margin-top: 14px; }
.card.green { background: var(--green-tint); box-shadow: none; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 12px; margin-top: 14px; }
.grid .card { margin-top: 0; }

.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 20px; border-radius: 14px; background: var(--accent); color: var(--accent-ink); text-decoration: none; font-weight: 700; }
.btn.quiet { background: var(--sunk); color: var(--ink); }
.btns { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; }

.badge { display: inline-block; font-size: 13px; font-weight: 700; border-radius: 8px; padding: 2px 8px; background: var(--sunk); color: var(--ink-2); }
.badge.new { background: var(--accent); color: var(--accent-ink); }

.post { border-top: 1px solid var(--line); padding: 16px 0; }
.post:first-of-type { border-top: 0; }
.post time { font-size: 14px; color: var(--muted); }

ul.clean { list-style: none; padding: 0; margin: 10px 0 0; }
ul.clean li { padding: 8px 0; border-top: 1px solid var(--line); }
ul.clean li:first-child { border-top: 0; }

/* placeholders the owner still has to fill in */
.todo { background: #FFF3CD; color: #5C4300; border-radius: 6px; padding: 0 6px; font-weight: 600; }

footer { background: var(--brand); padding: 26px 0 40px; color: #E8F5EE; font-size: 14px; margin-top: 20px; }
footer .wrap { display: flex; gap: 10px 20px; flex-wrap: wrap; align-items: center; }
footer a { color: #fff; }

/* Help: questions open in place */
details.faq { border-top: 1px solid var(--line); padding: 4px 0; }
details.faq:first-of-type { border-top: 0; }
details.faq summary { cursor: pointer; font-weight: 700; min-height: 44px; display: flex; align-items: center; list-style: none; }
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after { content: "+"; margin-left: auto; padding-left: 12px; color: var(--muted); font-size: 20px; }
details.faq[open] summary::after { content: "−"; }
details.faq p { margin: 0 0 12px; color: var(--ink-2); }

/* Support: the wallet number */
.wallet { font-size: 22px; font-weight: 700; letter-spacing: .02em; margin: 4px 0 10px; font-variant-numeric: tabular-nums; }
button.btn { border: 0; font: inherit; font-weight: 700; cursor: pointer; }

/* Support: QR codes */
.card.qr { display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; }
.card.qr img { width: 100%; max-width: 260px; border-radius: 14px; }

/* Support: one wallet at a time (radio switch, no script). Wallet colours only on the band. */
.tip { margin-top: 14px; }
.tip > input { position: absolute; opacity: 0; pointer-events: none; }
.tip > label { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; min-width: 110px; padding: 0 18px; margin: 0 4px 12px 0; border-radius: 12px; background: var(--sunk); color: var(--ink-2); font-weight: 700; cursor: pointer; }
.tip > input:focus-visible + label { outline: 3px solid var(--accent); outline-offset: 2px; }
#w-gcash:checked + label { background: #0059D6; color: #fff; }
#w-maya:checked + label { background: #007A43; color: #fff; }
.tip-panel { display: none; background: var(--surface); border-radius: 24px; box-shadow: var(--lift); overflow: hidden; }
#w-gcash:checked ~ #p-gcash, #w-maya:checked ~ #p-maya { display: block; }
.tip-band { padding: 12px 18px; color: #fff; font-family: var(--f-display); font-weight: 800; font-size: 20px; letter-spacing: -.01em; }
#p-gcash .tip-band { background: #0059D6; }
#p-maya .tip-band { background: #007A43; }
.tip-body { display: grid; grid-template-columns: auto 1fr; gap: 20px; align-items: center; padding: 18px; }
.tip-qr { background: #fff; border-radius: 18px; padding: 12px; border: 1px solid var(--line); }
.tip-qr img { width: 240px; height: 240px; }
.tip-steps { margin: 0; padding-left: 20px; color: var(--ink-2); }
.tip-steps li { margin: 6px 0; }
.tip-save { margin: 0 18px 18px; }
@media (max-width: 560px) {
  .tip-body { grid-template-columns: 1fr; justify-items: center; }
  .tip-qr img { width: min(240px, 70vw); height: auto; }
  .tip-save { display: flex; }
}

/* Download page: numbered install steps (#34) */
ol.steps { padding-left: 22px; margin: 10px 0 0; }
ol.steps li { padding: 8px 0 8px 4px; }
/* Sponsors page: one card per sponsor (#47) */
a.card.sponsor { display: flex; gap: 14px; align-items: center; text-decoration: none; color: var(--ink); font-weight: 400; }
a.card.sponsor img { width: 80px; height: 80px; object-fit: cover; flex: none; border-radius: 16px; }
a.card.sponsor b { font-size: 17px; }
#sponsors-list { grid-template-columns: 1fr; }
@media (min-width: 720px) { #sponsors-list { grid-template-columns: 1fr 1fr; } }

/* Phones (Oct 2026): the menu stays on one line (swipe it sideways), so pages start higher */
@media (max-width: 560px) {
  .top .wrap { flex-wrap: nowrap; gap: 8px; }
  nav { flex-wrap: nowrap; overflow-x: auto; margin-left: 0; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  nav::-webkit-scrollbar { display: none; }
  nav a { padding: 10px 8px; white-space: nowrap; font-size: 14.5px; }
  .brand { flex: none; }
  /* a compact hero (Support): the mascot beside the title, so the QR code shows without scrolling */
  .hero.compact { grid-template-columns: auto 1fr; gap: 14px; padding: 16px; border-radius: 22px; }
  .hero.compact img { width: 64px; height: 64px; order: -1; }
  .hero.compact h1 { font-size: 26px; margin: 0; }
  .hero.compact .lede { font-size: 15px; margin: 6px 0 0; }
}
/* a link to #tip (the app's Support card) lands below the sticky menu */
[id] { scroll-margin-top: 72px; }

/* User guide: contents box and sections */
nav.toc { display: grid; margin-left: 0; grid-template-columns: 1fr 1fr; gap: 2px 14px; margin: 18px 0 8px; flex-wrap: initial; overflow: visible; }
nav.toc a { color: var(--accent); font-weight: 600; padding: 6px 0; min-height: 36px; border-radius: 0; white-space: normal; font-size: 15px; }
nav.toc a:hover { background: none; text-decoration: underline; }
section.guide { margin-top: 26px; }
section.guide h2 { margin-bottom: 8px; }
@media (max-width: 560px) { nav.toc { grid-template-columns: 1fr; } }

/* ---------- Sponsor showcase (#50) ---------- */
:root { --gold: #9A6A12; --gold-tint: #F7EFDD; }
nav a.nav-sp { color: var(--gold); }
nav a.nav-sp[aria-current="page"] { background: var(--gold-tint); color: var(--gold); }
.sp-eyebrow { font-size: 12px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--gold); }
.sp-tag { display: inline-block; font-size: 12.5px; font-weight: 700; border-radius: 8px; padding: 2px 8px; background: var(--sunk); color: var(--ink-2); margin: 6px 4px 0 0; }
.sp-tag.gold { background: var(--gold-tint); color: var(--gold); }
/* the spotlight: one big card per visit (without JavaScript, the first) */
.sp-spot { margin-top: 22px; }
.sp-spot > .sp-feat + .sp-feat { display: none; }
.sp-spot.js > .sp-feat { display: none; }
.sp-spot.js > .sp-feat.on { display: block; }
.sp-feat { background: var(--surface); border: 2px solid var(--gold); border-radius: 24px; overflow: hidden; box-shadow: var(--lift); text-align: center; }
.sp-cover { height: 110px; display: flex; justify-content: center; align-items: flex-end; }
.sp-cover img { width: 104px; height: 104px; border-radius: 24px; border: 4px solid #fff; box-shadow: 0 6px 16px rgba(0,0,0,.25); transform: translateY(46px); object-fit: cover; }
.sp-body { padding: 54px 18px 18px; }
.sp-body h3 { font-family: var(--f-display); font-weight: 800; font-size: 22px; letter-spacing: -.01em; margin: 4px 0 2px; }
.sp-body p { margin: 4px 0; }
.sp-feat[data-big] .sp-cover { height: 140px; }
.sp-feat[data-big] .sp-body h3 { font-size: 26px; }
.sp-visit { margin-top: 12px; background: #1877F2; }
/* a strip of logos: Home, Download, every footer */
.sp-strip { background: var(--gold-tint); border-radius: 20px; padding: 14px 16px; margin-top: 22px; }
.sp-logos { display: flex; flex-wrap: wrap; gap: 10px; margin: 10px 0 6px; }
.sp-logos a { display: block; border-radius: 14px; }
.sp-logos img { width: 56px; height: 56px; border-radius: 14px; object-fit: cover; box-shadow: 0 2px 6px rgba(0,0,0,.14); display: block; }
.sp-all { color: var(--gold); }
.sp-strip.foot { background: transparent; border-top: 1px solid var(--line); border-radius: 0; padding: 18px 0 0; margin-top: 36px; }
.sp-strip.foot .sp-eyebrow { color: var(--muted); }
.sp-strip.foot .sp-logos img { width: 44px; height: 44px; border-radius: 11px; }
/* the Sponsors page cards */
.sp-cards { display: grid; grid-template-columns: 1fr; gap: 10px; }
@media (min-width: 720px) { .sp-cards { grid-template-columns: 1fr 1fr; } }
.sp-card { display: flex; align-items: center; gap: 14px; background: var(--surface); border-radius: 20px; padding: 14px; box-shadow: var(--lift); text-decoration: none; color: var(--ink); font-weight: 400; min-height: 100px; }
.sp-card img { width: 72px; height: 72px; border-radius: 16px; object-fit: cover; flex: none; }
.sp-card.small img { width: 52px; height: 52px; }
.sp-text { display: flex; flex-direction: column; align-items: flex-start; flex: 1; }
.sp-text b { font-size: 17px; }
.sp-go { color: var(--accent); font-weight: 800; font-size: 22px; }
.sp-join { margin-top: 28px; }
