/*
 * Yo Bro — yo-bro.savage-software.nl
 * Colours from the app's brand kit. Unbounded (SIL OFL 1.1, see fonts/OFL.txt) is
 * self-hosted from yo-bro/brand/fonts with the GPOS table and glyph names removed
 * to save 500 KB; glyphs, outlines and the weight axis are untouched.
 */

@font-face {
  font-family: "Unbounded";
  src: url("fonts/unbounded-wght.ttf?v=20260917") format("truetype");
  font-weight: 200 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --violet: #5b3df5;
  --violet-deep: #3a24aa;
  --violet-soft: #ebe7ff;
  --yellow: #ffd23f;
  --ink: #1c1633;
  --bg: #f4f2ff;
  --surface: #ffffff;
  --text: #1c1633;
  --muted: #544d6e;
  --line: #e2ddfb;
  --link: #5b3df5;
  --chip-bg: #ebe7ff;
  --chip-text: #3a24aa;
  --max: 1080px;
  --narrow: 720px;
  --radius: 20px;
  --display: "Unbounded", "Arial Black", "Helvetica Neue", system-ui, sans-serif;
  --font: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #141026;
    --surface: #1f1a38;
    --text: #f4f2ff;
    --muted: #bdb6da;
    --line: #342d58;
    --link: #b3a8ff;
    --chip-bg: #2d2560;
    --chip-text: #ddd8ff;
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  color: var(--text);
  background: var(--bg);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: var(--link);
  text-underline-offset: 0.15em;
}

a:hover {
  text-decoration-thickness: 2px;
}

:focus-visible {
  outline: 3px solid var(--yellow);
  outline-offset: 2px;
  border-radius: 4px;
}

h1,
h2,
h3 {
  font-family: var(--display);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin: 0 0 0.5em;
  overflow-wrap: break-word;
  hyphens: auto;
}

/* Unbounded is wide: "Privacyverklaring" must still fit a 375px screen. */
h1 {
  font-size: clamp(1.75rem, 7vw, 2.75rem);
}

h2 {
  font-size: clamp(1.375rem, 4.5vw, 1.75rem);
}

h3 {
  font-size: 1.125rem;
}

p,
ul,
ol,
pre {
  margin: 0 0 1em;
}

code {
  font-family: var(--mono);
  font-size: 0.9em;
  background: var(--chip-bg);
  color: var(--chip-text);
  padding: 0.1em 0.35em;
  border-radius: 6px;
}

pre {
  overflow-x: auto;
  padding: 1rem 1.125rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  line-height: 1.5;
}

pre code {
  background: none;
  color: var(--text);
  padding: 0;
}

.wrap {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 16px;
}

.narrow {
  max-width: var(--narrow);
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -100px;
  z-index: 10;
  padding: 0.75rem 1rem;
  background: var(--ink);
  color: #fff;
  border-radius: 10px;
}

.skip-link:focus {
  top: 12px;
}

/* Header */

.site-header {
  border-bottom: 1px solid var(--line);
  background: var(--bg);
}

.header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 64px;
  padding-top: 8px;
  padding-bottom: 8px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.125rem;
  white-space: nowrap;
}

.brand img {
  width: 36px;
  height: 36px;
  border-radius: 9px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 2px;
}

.site-nav a {
  padding: 0.4rem 0.6rem;
  border-radius: 999px;
  color: var(--text);
  font-weight: 600;
  font-size: 0.9375rem;
  text-decoration: none;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  background: var(--chip-bg);
  color: var(--chip-text);
}

.site-nav .lang-switch {
  margin-left: 4px;
  border: 2px solid var(--line);
  font-family: var(--display);
  font-size: 0.8125rem;
}

/* Hero */

.hero {
  background: var(--violet);
  color: #fff;
  padding: 40px 0 48px;
}

.hero-inner {
  display: grid;
  gap: 24px;
  align-items: center;
}

.hero-icon {
  width: 112px;
  border-radius: 26px;
  transform: rotate(-4deg);
  box-shadow: 0 12px 32px rgba(28, 22, 51, 0.35);
}

.hero h1 {
  font-size: clamp(2.75rem, 12vw, 4.5rem);
  font-weight: 900;
  margin-bottom: 0.15em;
}

.tagline {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(1.25rem, 4.6vw, 1.75rem);
  line-height: 1.3;
  color: var(--yellow);
  margin-bottom: 0.75em;
}

.lede {
  font-size: 1.125rem;
  max-width: 34em;
}

.stores {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 24px 0 8px;
}

.store {
  display: inline-flex;
  flex-direction: column;
  min-width: 150px;
  padding: 0.55rem 1.1rem 0.6rem;
  border-radius: 14px;
  background: var(--ink);
  color: #fff;
  font-weight: 700;
  font-size: 1.125rem;
  line-height: 1.2;
  text-decoration: none;
}

.store small {
  font-weight: 500;
  font-size: 0.75rem;
  opacity: 0.85;
}

.store.is-soon {
  background: transparent;
  border: 2px solid rgba(255, 255, 255, 0.55);
}

.store.is-soon small {
  color: var(--yellow);
  opacity: 1;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 700;
}

.stores-note {
  font-size: 0.9375rem;
  opacity: 0.9;
}

.promise {
  display: inline-block;
  margin: 8px 0 0;
  padding: 0.3rem 0.8rem;
  border-radius: 999px;
  background: var(--yellow);
  color: var(--ink);
  font-weight: 700;
  font-size: 0.9375rem;
}

/* Sections and cards */

.section {
  padding: 48px 0 8px;
}

.cards {
  display: grid;
  gap: 16px;
  margin-top: 24px;
}

.card {
  position: relative;
  padding: 28px 20px 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.card p:last-child,
.card ul:last-child,
.card ol:last-child {
  margin-bottom: 0;
}

.card p {
  color: var(--muted);
}

.tag {
  position: absolute;
  top: -12px;
  left: 16px;
  padding: 0.2rem 0.65rem;
  border-radius: 8px;
  background: var(--yellow);
  color: var(--ink);
  font-family: var(--display);
  font-weight: 700;
  font-size: 0.75rem;
  transform: rotate(-3deg);
}

.chips,
.steps {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0;
  list-style: none;
}

.chips li,
.steps li {
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  background: var(--chip-bg);
  color: var(--chip-text);
  font-weight: 600;
  font-size: 0.9375rem;
}

.steps li {
  position: relative;
}

.steps li + li {
  margin-left: 18px;
}

.steps li + li::before {
  content: "→";
  position: absolute;
  left: -20px;
  color: var(--muted);
  font-weight: 400;
}

.animals {
  font-size: 1.75rem;
  letter-spacing: 0.15em;
}

.price {
  padding: 28px 20px;
  border-radius: var(--radius);
  background: var(--yellow);
  color: var(--ink);
  margin-bottom: 40px;
}

.price p {
  max-width: 40em;
  font-size: 1.125rem;
}

.price a {
  color: var(--ink);
  font-weight: 700;
}

.price .price-help {
  font-size: 1rem;
  margin-bottom: 0;
}

/* Support and privacy */

.page {
  padding: 40px 0 48px;
}

.intro {
  font-size: 1.125rem;
}

.updated {
  color: var(--muted);
  font-weight: 600;
}

.button {
  display: inline-block;
  padding: 0.7rem 1.25rem;
  border-radius: 999px;
  background: var(--violet);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  overflow-wrap: anywhere;
}

.button:hover {
  background: var(--violet-deep);
}

.contact {
  margin-bottom: 40px;
}

.page h2 {
  margin-top: 1.75em;
}

.faq section {
  padding: 20px 0 4px;
  border-top: 1px solid var(--line);
}

.faq h3 {
  font-size: 1.0625rem;
}

.faq ul {
  padding-left: 1.25em;
}

.summary {
  margin: 24px 0 8px;
  padding: 20px 20px 4px;
  border-radius: var(--radius);
  background: var(--chip-bg);
}

.summary h2 {
  margin-top: 0;
  font-size: 1.125rem;
}

.summary ul {
  padding-left: 1.25em;
}

.legal-page h2 {
  font-size: 1.25rem;
}

.aside {
  margin-top: 32px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

/* Footer */

.site-footer {
  background: var(--ink);
  color: #d8d3f0;
  padding: 32px 0 40px;
  font-size: 0.9375rem;
}

.site-footer a {
  color: #fff;
}

.footer-inner {
  display: grid;
  gap: 16px;
}

.made-by {
  display: inline-flex;
  flex-direction: column;
  text-decoration: none;
  line-height: 1.3;
}

.made-by span {
  color: #d8d3f0;
  font-size: 0.8125rem;
}

.made-by strong {
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.125rem;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
}

.legal {
  margin: 0;
  color: #b9b2d8;
  overflow-wrap: anywhere;
}

/* Wider screens */

@media (min-width: 640px) {
  .wrap {
    padding: 0 24px;
  }

  .header-inner {
    padding-top: 0;
    padding-bottom: 0;
  }

  .site-nav {
    gap: 6px;
  }

  .site-nav a {
    padding: 0.45rem 0.85rem;
  }

  .cards {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px 20px;
  }

  .price {
    padding: 36px 40px;
  }

  .footer-inner {
    grid-template-columns: auto 1fr;
    align-items: center;
  }

  .footer-nav {
    justify-content: flex-end;
  }

  .legal {
    grid-column: 1 / -1;
  }
}

@media (min-width: 880px) {
  .hero {
    padding: 72px 0 80px;
  }

  .hero-inner {
    grid-template-columns: 1fr auto;
    gap: 48px;
  }

  .hero-icon {
    order: 2;
    width: 280px;
    border-radius: 64px;
    transform: rotate(-6deg);
  }

  .cards {
    grid-template-columns: repeat(3, 1fr);
  }

  .card-wide {
    grid-column: span 2;
  }
}
