/* Wordmunity website: the app's look (sky blue tiles, white cards, gold pills, Fredoka). */

@font-face { font-family: "Fredoka"; font-weight: 500; font-display: swap; src: url("fonts/Fredoka-Medium.ttf") format("truetype"); }
@font-face { font-family: "Fredoka"; font-weight: 600; font-display: swap; src: url("fonts/Fredoka-SemiBold.ttf") format("truetype"); }
@font-face { font-family: "Fredoka"; font-weight: 700; font-display: swap; src: url("fonts/Fredoka-Bold.ttf") format("truetype"); }

:root {
  --sky: #EAF3FD;
  --tile: #DCE9F8;
  --card: #FFFFFF;
  --card-edge: #CFDFF2;
  --ink: #2F2A44;
  --ink-soft: #6E6880;
  --gold: #FFC93C;
  --gold-glow: rgba(255, 185, 40, 0.45);
  --orange: #F08C2E;
  --highlight: #FFE45C;
  --pink: #FF8FC7;
  --green: #7CE38B;
  --blue: #7CC6FF;
  --urgent: #C42B45;
}

* { box-sizing: border-box; }

html { color-scheme: light; }

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Fredoka", ui-rounded, "Segoe UI", system-ui, sans-serif;
  font-weight: 500;
  font-size: 18px;
  line-height: 1.5;
  color: var(--ink);
  background-color: var(--sky);
  background-image:
    linear-gradient(var(--tile) 1px, transparent 1px),
    linear-gradient(90deg, var(--tile) 1px, transparent 1px);
  background-size: 65px 65px;
}

a { color: #1E5FA8; }
img { max-width: 100%; height: auto; }

.wrap {
  width: 100%;
  max-width: 980px;
  margin: 0 auto;
  padding-inline: 20px;
}

/* Header and footer */
.site-head { padding-block: 18px; }
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-weight: 700; font-size: 22px; }
.brand svg { width: 54px; height: auto; }
.site-head nav a { color: var(--ink-soft); text-decoration: none; font-weight: 600; margin-left: 18px; }
.site-head nav a:hover { color: var(--ink); }

.site-foot { padding-block: 40px 32px; color: var(--ink-soft); font-size: 15px; }
.site-foot .wrap { display: flex; flex-wrap: wrap; gap: 8px 22px; justify-content: space-between; }
.site-foot a { color: var(--ink-soft); }

/* The logo: WORD with Inky's highlighter stroke behind it, MUNITY in orange. */
.logo { display: inline-block; margin: 0; font-weight: 700; line-height: 1.02; text-align: center; font-size: clamp(54px, 11vw, 96px); letter-spacing: 0.01em; }
.logo .word { position: relative; display: inline-block; z-index: 0; }
.logo .word::before {
  content: "";
  position: absolute;
  z-index: -1;
  left: -0.18em; right: -0.42em; top: 0.22em; bottom: 0.08em;
  background: var(--highlight);
  border-radius: 999px;
  transform-origin: left center;
  animation: highlight 1.1s cubic-bezier(.65, 0, .35, 1) 0.2s both;
}
.logo .munity { display: block; color: var(--orange); }
@keyframes highlight { from { transform: scaleX(0.08); } to { transform: scaleX(1); } }
@media (prefers-reduced-motion: reduce) { .logo .word::before { animation: none; } }

/* Cards and buttons */
.card {
  background: var(--card);
  border-radius: 22px;
  box-shadow: 0 3px 0 var(--card-edge);
  padding: 22px;
}

.pill {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 58px; padding: 0 28px;
  border: 0; border-radius: 999px;
  font: inherit; font-size: 21px; font-weight: 700;
  color: var(--ink); background: var(--gold);
  box-shadow: 0 8px 22px var(--gold-glow);
  text-decoration: none; cursor: pointer;
  transition: transform .12s ease;
}
.pill:hover { transform: translateY(-1px); }
.pill:active { transform: translateY(1px); }
.pill.secondary { background: var(--card); color: #1E3A5F; font-size: 18px; box-shadow: 0 4px 0 var(--card-edge), 0 8px 22px rgba(124, 182, 255, .35); }
.pill[aria-disabled="true"] { background: #D5E2F2; color: var(--ink-soft); box-shadow: none; cursor: default; transform: none; }
.pill small { font-size: 14px; font-weight: 600; opacity: .8; }

.stores { display: flex; flex-wrap: wrap; gap: 12px; }
.stores .pill { flex: 1 1 160px; white-space: nowrap; }
.soon { margin: 10px 0 0; }
.pill { white-space: nowrap; }

/* Home page */
.hero { padding-block: 24px 56px; display: grid; gap: 28px; align-items: center; grid-template-columns: 1.2fr 1fr; }
.hero p.lede { font-size: 22px; color: var(--ink-soft); margin: 18px 0 28px; max-width: 30ch; }
.hero .inky { width: 100%; max-width: 380px; justify-self: center; }
@media (max-width: 760px) {
  .hero { grid-template-columns: 1fr; text-align: center; padding-top: 0; gap: 8px; }
  .hero p.lede { margin-inline: auto; font-size: 20px; }
  .hero .inky { max-width: 200px; order: -1; }
  .site-head nav { display: none; }
}

h2 { font-size: 34px; line-height: 1.15; margin: 0 0 18px; }
h3 { font-size: 22px; margin: 0 0 6px; }
section { padding-block: 28px; }

.steps { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); counter-reset: step; }
.steps .card { position: relative; padding-top: 56px; }
.steps .card::before {
  counter-increment: step; content: counter(step);
  position: absolute; top: 16px; left: 22px;
  width: 30px; height: 30px; border-radius: 50%;
  display: grid; place-items: center;
  font-weight: 700; font-size: 17px; background: var(--highlight);
}
.steps p, .modes p { margin: 0; color: var(--ink-soft); }

.modes { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.tag { display: inline-block; font-size: 14px; font-weight: 600; padding: 2px 10px; border-radius: 999px; background: var(--sky); color: #1E5FA8; margin-bottom: 8px; }

.stamp {
  display: inline-block; margin: 8px 0 0;
  font-weight: 700; letter-spacing: .06em; color: var(--urgent);
  border: 3px solid var(--urgent); border-radius: 8px; padding: 2px 10px;
  transform: rotate(-4deg);
}

/* Join page */
.join { max-width: 560px; margin: 0 auto; padding-block: 8px 24px; text-align: center; }
.join h1 { font-size: 34px; line-height: 1.15; margin: 8px 0 6px; }
.join .inky { width: 180px; margin: 0 auto; display: block; }
.code-card { margin: 22px 0; }
.code-card .label { font-size: 15px; font-weight: 600; color: var(--ink-soft); }
.code { font-size: clamp(48px, 15vw, 72px); font-weight: 700; letter-spacing: .18em; line-height: 1.1; margin: 4px 0 12px; padding-left: .18em; }
.join .actions { display: grid; gap: 12px; margin: 20px 0; }
.join ol { text-align: left; color: var(--ink-soft); padding-left: 1.3em; margin: 0; }
.join ol li { margin: 6px 0; }
.join ol strong { color: var(--ink); }
.note { font-size: 15px; color: var(--ink-soft); }

/* Plain pages (privacy) */
.prose { max-width: 760px; margin: 0 auto; }
.prose h1 { font-size: 40px; line-height: 1.15; margin: 8px 0 6px; }
.prose h2 { font-size: 26px; margin: 34px 0 8px; }
.prose p, .prose li { color: #45405A; }
.prose .updated { color: var(--ink-soft); font-size: 15px; }

.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
