/* ============================================================
   stuck — website styles
   Neubrutalist to match the app: sun-yellow, thick ink borders,
   hard offset shadows, rounded chunky headings.
   ============================================================ */

:root {
  --bg: #ffe8a3;
  --bg-deep: #ffd166;
  --ink: #221533;
  --coral: #ff6b4a;
  --purple: #6c4fff;
  --pink: #ff4fa3;
  --green: #00c08b;
  --white: #fffdf9;
  --kernel: #e8b04b;
  --shadow: 6px 6px 0 var(--ink);
  --muted: rgba(34, 21, 51, 0.62);
  --rule: rgba(34, 21, 51, 0.12);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: "Work Sans", -apple-system, "Segoe UI", system-ui, sans-serif;
  color: var(--ink);
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg-deep) 60%, #ffc96b 100%);
  background-attachment: fixed;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .display {
  font-family: "Baloo 2", "Work Sans", system-ui, sans-serif;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.5px;
}

.wrap { max-width: 960px; margin: 0 auto; padding: 0 20px; }
.mono { font-family: "IBM Plex Mono", ui-monospace, monospace; letter-spacing: 1px; text-transform: uppercase; font-size: 12px; }

/* header */
header.site {
  position: sticky; top: 0; z-index: 10;
  background: var(--bg);
  border-bottom: 3px solid var(--ink);
}
header.site .wrap { display: flex; align-items: center; justify-content: space-between; height: 66px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand span { font-family: "Baloo 2", system-ui, sans-serif; font-weight: 800; font-size: 28px; letter-spacing: -0.5px; }
.nut { width: 30px; height: 40px; }  /* bulb proportions */
nav.top a { color: var(--ink); text-decoration: none; font-weight: 700; margin-left: 20px; font-size: 15px; }
nav.top a:hover { color: var(--purple); }

/* hero */
.hero { text-align: center; padding: 64px 0 40px; }
.hero .nut-big { width: 128px; height: 178px; margin: 0 auto 22px; display: block; }
.kicker { display: inline-block; background: var(--purple); color: #fff; border-radius: 999px; padding: 6px 14px; }
.hero h1 { font-size: clamp(38px, 7vw, 64px); margin: 18px 0 14px; }
.hero p.lead { font-size: clamp(17px, 2.5vw, 21px); max-width: 620px; margin: 0 auto 28px; color: var(--muted); }

/* buttons */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--purple); color: #fff; text-decoration: none;
  font-family: "Baloo 2", system-ui, sans-serif; font-weight: 700; font-size: 18px;
  padding: 14px 26px; border: 3px solid var(--ink); border-radius: 18px;
  box-shadow: var(--shadow); transition: transform .05s ease, box-shadow .05s ease;
}
.btn:active { transform: translate(3px, 3px); box-shadow: 3px 3px 0 var(--ink); }
.btn.green { background: var(--green); }
.btn.coral { background: var(--coral); }

/* sections + cards */
section.block { padding: 46px 0; }
section.block > .wrap > h2 { padding-top: 26px; border-top: 2px solid var(--rule); }
section.block h2 { font-size: clamp(28px, 4vw, 40px); margin-bottom: 8px; }
section.block > .wrap > p.sub { color: var(--muted); font-size: 17px; margin-bottom: 26px; max-width: 640px; }

.grid { display: grid; gap: 16px; }
.grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 720px) { .grid.cols-3, .grid.cols-2 { grid-template-columns: 1fr; } }

.card {
  background: var(--white); border: 3px solid var(--ink); border-radius: 20px;
  box-shadow: var(--shadow); padding: 20px;
}
.card h3 { font-size: 20px; margin-bottom: 6px; }
.card p { font-size: 15px; color: var(--muted); }
.card .tag {
  display: inline-block; font-family: "IBM Plex Mono", monospace; font-size: 11px;
  text-transform: uppercase; letter-spacing: .5px; color: #fff; background: var(--pink);
  border: 2px solid var(--ink); border-radius: 999px; padding: 2px 8px; margin-bottom: 10px;
}

.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
  background: var(--white); border: 3px solid var(--ink); border-radius: 999px;
  padding: 8px 15px; font-weight: 700; font-size: 15px; box-shadow: 4px 4px 0 var(--ink);
}

/* steps */
.step { display: flex; gap: 16px; align-items: flex-start; margin-bottom: 18px; }
.step .num {
  flex: none; width: 42px; height: 42px; border: 3px solid var(--ink); border-radius: 999px;
  background: var(--bg-deep); display: flex; align-items: center; justify-content: center;
  font-family: "Baloo 2", system-ui, sans-serif; font-weight: 800; font-size: 20px;
}

/* prose (privacy / support) */
.prose { background: var(--white); border: 3px solid var(--ink); border-radius: 22px; box-shadow: var(--shadow); padding: 28px; margin: 30px 0; }
.prose h1 { font-size: 34px; margin-bottom: 6px; }
.prose h2 { font-size: 22px; margin: 24px 0 8px; }
.prose p, .prose li { font-size: 15.5px; color: var(--ink); margin-bottom: 10px; }
.prose ul { padding-left: 22px; }
.prose a { color: var(--purple); font-weight: 700; }
.prose .updated { font-family: "IBM Plex Mono", monospace; font-size: 12px; color: var(--muted); }
.note { background: #fff4d6; border: 2px dashed var(--ink); border-radius: 14px; padding: 12px 14px; font-size: 14px; margin: 14px 0; }

/* footer */
footer.site { border-top: 3px solid var(--ink); background: var(--bg); margin-top: 20px; }
footer.site .wrap { padding: 26px 20px; display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; justify-content: space-between; }
footer.site a { color: var(--ink); font-weight: 700; text-decoration: none; }
footer.site a:hover { color: var(--purple); }
footer.site .meta { font-family: "IBM Plex Mono", monospace; font-size: 12px; color: var(--muted); }

/* ---- row card: mirrors the app's home/library cards ----
   coloured icon tile · title + subtitle · chevron */
.rowcard {
  display: flex; align-items: center; gap: 14px;
  background: var(--white); border: 3px solid var(--ink); border-radius: 20px;
  box-shadow: var(--shadow); padding: 16px; margin-bottom: 16px;
  text-decoration: none; color: var(--ink);
}
.rowcard.filled { background: var(--purple); color: #fff; }
.rowcard.filled .rowcard-sub { color: #fff; opacity: .92; }
.rowcard.filled .chev { color: #fff; }

.tile {
  flex: none; width: 46px; height: 46px; border: 3px solid var(--ink);
  border-radius: 14px; display: flex; align-items: center; justify-content: center;
}
.tile svg { width: 24px; height: 24px; stroke: #fff; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.rowcard.filled .tile { background: var(--white) !important; }
.rowcard.filled .tile svg { stroke: var(--purple); }

.rowcard-body { flex: 1; min-width: 0; }
.rowcard h3 { font-size: 18px; margin-bottom: 2px; }
.rowcard-sub { font-size: 14.5px; color: var(--muted); line-height: 1.45; }
.chev { font-family: "Baloo 2", system-ui, sans-serif; font-weight: 800; font-size: 24px; color: var(--purple); }

/* compact grid of the same tiles, for the nine categories */
.tilegrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
@media (max-width: 720px) { .tilegrid { grid-template-columns: 1fr; } }
.tilecard {
  background: var(--white); border: 3px solid var(--ink); border-radius: 20px;
  box-shadow: 4px 4px 0 var(--ink); padding: 16px;
}
.tilecard .tile { margin-bottom: 10px; }
.tilecard h3 { font-size: 17px; margin-bottom: 2px; }
.tilecard p { font-size: 14px; color: var(--muted); line-height: 1.45; }
