/*
  Ko-fi template for src/t/kofi/index.html.
  Tokens follow helper/themes/Ko-fi: cream canvas, oat panels, near-black ink,
  2–3px black sticker borders with no shadows, 40px card / 24px feature
  radius, fully rounded pills, sky-blue primary CTA. The chunky display face
  is Rubik 900 (the theme's own face has no Cyrillic); Onest carries the body
  text in place of DM Sans.
*/

@font-face {
  font-family: "Rubik";
  font-weight: 900;
  font-display: swap;
  src: url("/assets/fonts/rubik-cyrillic-900.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Rubik";
  font-weight: 900;
  font-display: swap;
  src: url("/assets/fonts/rubik-latin-900.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Onest";
  font-weight: 100 900;
  font-display: swap;
  src: url("/assets/fonts/onest-cyrillic-var.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Onest";
  font-weight: 100 900;
  font-display: swap;
  src: url("/assets/fonts/onest-latin-var.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --canvas: #f7f2ea;
  --oat: #e9dfd2;
  --ink: #202020;
  --black: #000;
  --blue: #aac9f7;
  --blue-hover: #72a4f2;
  --muted: #5b5750;
  --display: "Rubik", "Onest", system-ui, sans-serif;
  --body: "Onest", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 100px; }
body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font: 400 17px/1.6 var(--body);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration-thickness: 2px; text-underline-offset: 3px; }
code {
  font: 500 0.85em/1.4 ui-monospace, "SFMono-Regular", monospace;
  background: #fff;
  border: 1.5px solid var(--black);
  padding: 0 5px;
  border-radius: 6px;
  overflow-wrap: anywhere;
}
h1, h2, h3 { font-family: var(--display); font-weight: 900; margin: 0; color: var(--ink); }
h1 { font-size: clamp(40px, 5.6vw, 76px); line-height: 1.04; letter-spacing: -0.01em; }
h2 { font-size: clamp(30px, 3.6vw, 48px); line-height: 1.1; margin-bottom: 20px; }
h3 { font-size: 24px; line-height: 1.2; margin-bottom: 12px; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

.logo-mark {
  width: 28px;
  height: 28px;
  flex: none;
  background: currentColor;
  -webkit-mask: url("/assets/logo/logo-ink.svg") center / contain no-repeat;
  mask: url("/assets/logo/logo-ink.svg") center / contain no-repeat;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font: 900 18px/1 var(--display);
  text-decoration: none;
  color: var(--ink);
}

.pill {
  display: inline-block;
  padding: 11px 22px;
  border-radius: 9999px;
  border: 2px solid var(--black);
  font: 700 16px/1.2 var(--body);
  text-decoration: none;
  color: var(--ink);
  transition: background-color 0.15s, transform 0.15s;
}
.pill:hover { transform: translateY(-2px); }
.pill-blue { background: var(--blue); }
.pill-blue:hover { background: var(--blue-hover); }
.pill-white { background: #fff; }
.pill-white:hover { background: var(--oat); }
.pill-lg { padding: 15px 30px; font-size: 18px; }

.nav-wrap { position: sticky; top: 0; z-index: 10; padding: 14px 16px 0; }
.nav {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 10px 10px 22px;
  background: #fff;
  border: 2px solid var(--black);
  border-radius: 9999px;
}
.nav-links { display: flex; gap: 22px; font-weight: 600; font-size: 15px; }
.nav-links a { text-decoration: none; }
.brand, .nav-links a, .nav .pill { white-space: nowrap; }
.nav-links a:hover { text-decoration: underline; }
.nav .pill { padding: 8px 18px; font-size: 15px; }

.hero { padding: 80px 0 40px; text-align: center; }
.hero h1 { max-width: 900px; margin: 0 auto; }
.lead { font-size: 20px; max-width: 700px; margin: 24px auto 34px; color: var(--muted); }
.actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 14px; }
.hero-art { margin: 56px auto 0; width: min(900px, 100%); }

.section { padding: 48px 0; }
.stickers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.sticker {
  background: #fff;
  border: 3px solid var(--black);
  border-radius: 40px;
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.sticker p { margin: 0 0 24px; flex: 1; }
.sticker-oat { background: var(--oat); }
.sticker-blue { background: var(--blue); }
.sticker-icon { width: 72px; height: 72px; margin-bottom: 20px; }

.cats-section { text-align: center; }
.cats {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}
.cats li {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px 10px 12px;
  background: #fff;
  border: 2px solid var(--black);
  border-radius: 9999px;
  font-weight: 600;
  font-size: 16px;
}
.cats i { width: 22px; height: 22px; border-radius: 50%; background: var(--c); border: 2px solid var(--black); flex: none; }

.oat-panel {
  background: var(--oat);
  border: 3px solid var(--black);
  border-radius: 40px;
  padding: 56px;
}
.oat-panel h2 { text-align: center; margin-bottom: 40px; }
.steps { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.step {
  position: relative;
  background: #fff;
  border: 2px solid var(--black);
  border-radius: 24px;
  padding: 32px 28px 28px;
}
.step p { margin: 0 0 22px; }
.num {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--blue);
  border: 2px solid var(--black);
  font: 900 22px/1 var(--display);
  margin-bottom: 16px;
}
.step:nth-child(2) .num { background: #ffd36e; }
.step:nth-child(3) .num { background: #b8e3b0; }
.step:nth-child(4) .num { background: #ffb3c7; }
.stores { list-style: none; padding: 0; margin: 0 0 22px; display: grid; gap: 8px; }
.stores li {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 14px;
  padding: 10px 16px;
  border: 2px solid var(--black);
  border-radius: 16px;
}
.stores b { flex: 1 1 190px; }
.stores a { font-weight: 700; font-size: 15px; }

.big-card {
  background: #fff;
  border: 3px solid var(--black);
  border-radius: 40px;
  padding: 56px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
}
.big-card article + article { border-left: 2px dashed var(--black); padding-left: 56px; }
.big-card h2 { font-size: clamp(28px, 2.8vw, 38px); }
.big-card p { margin: 0 0 26px; }

.faq { background: var(--blue); border-top: 3px solid var(--black); border-bottom: 3px solid var(--black); padding: 88px 0; margin-top: 48px; }
.faq-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.faq-grid > div > p { margin: 0 0 26px; }
.faq-list { display: grid; gap: 14px; }
.faq-list details { background: #fff; border: 2px solid var(--black); border-radius: 24px; padding: 0 24px; }
.faq-list summary {
  list-style: none;
  cursor: pointer;
  padding: 20px 40px 20px 0;
  position: relative;
  font-weight: 700;
  font-size: 18px;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 16px;
  width: 30px;
  height: 30px;
  border: 2px solid var(--black);
  border-radius: 50%;
  text-align: center;
  font: 900 18px/26px var(--display);
  background: var(--blue);
}
.faq-list details[open] summary::after { content: "−"; }
.faq-list details p { margin: -4px 0 20px; }

.finale { padding: 96px 0 104px; text-align: center; }
.finale img { margin: 0 auto 24px; width: 240px; }
.finale h2 { font-size: clamp(34px, 5vw, 68px); margin-bottom: 34px; }

footer { background: var(--ink); color: #fff; padding: 48px 0 32px; }
.footer-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 32px; flex-wrap: wrap; }
footer .brand { color: #fff; }
.footer-links { display: flex; flex-wrap: wrap; gap: 10px 24px; max-width: 640px; }
.footer-links a { color: #e9dfd2; text-decoration: none; font-weight: 600; }
.footer-links a:hover { color: #fff; text-decoration: underline; }
.footer-bottom { margin-top: 36px; color: #a8a29a; font-size: 15px; }

/* Below the full nav width the six links move to a second, swipeable row, so
   the menu stays reachable without JavaScript. */
@media (max-width: 1100px) {
  html { scroll-padding-top: 136px; }
  .nav { flex-wrap: wrap; row-gap: 0; border-radius: 28px; }
  .nav-links { order: 3; flex: 0 0 100%; overflow-x: auto; padding: 12px 0 6px; scrollbar-width: none; }
}
@media (max-width: 1060px) {
  .stickers { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .steps, .big-card, .faq-grid { grid-template-columns: minmax(0, 1fr); }
  .big-card article + article { border-left: 0; padding-left: 0; border-top: 2px dashed var(--black); padding-top: 40px; }
  .oat-panel, .big-card { padding: 36px 24px; border-radius: 32px; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .wrap { padding: 0 16px; }
  .brand { font-size: 15px; }
  .nav { padding: 8px 8px 8px 16px; }
  .nav .pill { padding: 7px 12px; font-size: 13px; }
  .hero { padding: 56px 0 24px; }
  .lead { font-size: 18px; }
  .sticker { padding: 28px 22px; border-radius: 32px; }
  .oat-panel { padding: 28px 14px; }
  .step { padding: 24px 18px 22px; }
  .cats li { font-size: 14px; }
  .faq { padding: 64px 0; }
  .finale { padding: 72px 0; }
}
/* The brand and the header CTA no longer fit side by side; the hero repeats
   the CTA right below. */
@media (max-width: 480px) {
  .nav .pill { display: none; }
  .nav { padding-top: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .pill:hover { transform: none; }
}
