/* fieper.com — RASTER, the look of the Fieper app.
   Colours and families mirror pocket-pets/theme.ts; change them there first.
   Pure white paper, near-black ink, one signal red, hairline rules instead of
   cards or shadows, radius 0. No JavaScript, no cookies, no third-party
   request: fonts are served from this host, licences sit in assets/fonts/. */

@font-face {
  font-family: "Archivo";
  font-weight: 900;
  font-display: swap;
  src: url("/assets/fonts/archivo-900.woff2") format("woff2");
}
@font-face {
  font-family: "Archivo";
  font-weight: 800;
  font-display: swap;
  src: url("/assets/fonts/archivo-800.woff2") format("woff2");
}
@font-face {
  font-family: "Hanken Grotesk";
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/hanken-grotesk-400.woff2") format("woff2");
}
@font-face {
  font-family: "Hanken Grotesk";
  font-weight: 600;
  font-display: swap;
  src: url("/assets/fonts/hanken-grotesk-600.woff2") format("woff2");
}
/* Plex reserves its font name, so it ships unmodified (not subset). */
@font-face {
  font-family: "IBM Plex Mono";
  font-weight: 500;
  font-display: swap;
  src: url("/assets/fonts/IBMPlexMono_500Medium.ttf") format("truetype");
}

:root {
  --ink: #111111;
  --paper: #FFFFFF;
  --signal: #DC3120;
  --ash: #6B6B6B;
  --rule: #E2E2E2;
  --near-white: #F4F4F2;
  --body: #222222;
  --display: "Archivo", "Arial Black", "Helvetica Neue", Arial, sans-serif;
  --text: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, Consolas, monospace;
  --gutter: 20px;
  --wrap: 1120px;
  color-scheme: light;
}
@media (min-width: 720px) {
  :root {
    --gutter: 32px;
  }
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 16px;
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--body);
  font-family: var(--text);
  font-size: 17px;
  line-height: 1.55;
  overflow-wrap: break-word;
}

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

.wrap {
  max-width: calc(var(--wrap) + 2 * var(--gutter));
  margin: 0 auto;
  padding: 0 var(--gutter);
}

a {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 3px;
}
a:hover {
  color: var(--signal);
}
a:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--signal);
  outline-offset: 3px;
}

p {
  margin: 0 0 14px;
}
strong {
  font-weight: 600;
  color: var(--ink);
}
.mono {
  font-family: var(--mono);
  font-weight: 500;
  font-size: 0.875em;
}
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
.skip {
  position: absolute;
  left: -9999px;
}
.skip:focus {
  left: var(--gutter);
  top: 8px;
  z-index: 10;
  padding: 8px 12px;
  background: var(--ink);
  color: var(--paper);
}

/* ── Masthead: logo + name, section links, DE | EN; closed by a 2px ink rule.
   Phone: name and switch on one row, links below. Wider: all on one row. ── */
.masthead {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-areas: "brand lang" "nav nav";
  align-items: center;
  gap: 8px 24px;
  padding: 14px 0 10px;
  border-bottom: 2px solid var(--ink);
}
@media (min-width: 760px) {
  .masthead {
    grid-template-columns: auto 1fr auto;
    grid-template-areas: "brand nav lang";
  }
  .nav {
    justify-content: flex-end;
  }
}
.brand {
  grid-area: brand;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--display);
  font-weight: 900;
  font-size: 22px;
  letter-spacing: -0.03em;
  color: var(--ink);
  text-decoration: none;
}
.brand img {
  width: 38px;
  height: auto;
}
.brand:hover {
  color: var(--ink);
}
.nav {
  grid-area: nav;
  display: flex;
  flex-wrap: wrap;
  gap: 2px 20px;
}
.nav a {
  font-family: var(--display);
  font-weight: 800;
  font-size: 13.5px;
  color: var(--ink);
  text-decoration: none;
  padding: 4px 0;
}
.nav a:hover,
.nav a[aria-current="page"] {
  color: var(--signal);
}
/* Language switch — two square chips, the current one filled ink. */
.lang {
  grid-area: lang;
  display: flex;
}
.lang a,
.lang span {
  padding: 5px 10px;
  border: 1.5px solid var(--ink);
  font-family: var(--display);
  font-weight: 800;
  font-size: 12px;
  letter-spacing: 0.04em;
  line-height: 1.2;
  color: var(--ink);
  text-decoration: none;
}
.lang a:hover {
  color: var(--signal);
}
.lang a + span,
.lang span + a {
  border-left: 0;
}
.lang span {
  background: var(--ink);
  color: var(--paper);
}

/* ── Shared type ── */
.eyebrow,
.kicker {
  margin: 0 0 14px;
  font-family: var(--mono);
  font-weight: 500;
  font-size: 12px;
  line-height: 1.6;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ash);
}
.kicker .index,
.index {
  color: var(--signal);
}
.kicker .index {
  margin-right: 10px;
}
h1,
h2,
h3 {
  margin: 0;
  font-family: var(--display);
  font-weight: 900;
  color: var(--ink);
  /* Archivo Black's word space is narrow; open it a little. */
  word-spacing: 0.08em;
  hyphens: manual;
  text-wrap: balance;
}
h1 {
  font-size: clamp(42px, 8.4vw, 92px);
  /* 1.0, not tighter: the g of "Everything" must clear the l of the next line. */
  line-height: 1;
  letter-spacing: -0.038em;
}
h2 {
  font-size: clamp(32px, 5.2vw, 60px);
  line-height: 1.02;
  letter-spacing: -0.04em;
}
h3 {
  font-size: clamp(25px, 3.2vw, 36px);
  line-height: 1.04;
  letter-spacing: -0.03em;
}
.accent {
  width: 56px;
  height: 5px;
  margin: 26px 0 0;
  border: 0;
  background: var(--signal);
}
.lead {
  margin: 24px 0 0;
  max-width: 34em;
  font-weight: 600;
  font-size: clamp(18px, 2vw, 21px);
  line-height: 1.42;
  color: var(--ink);
}

/* ── Buttons: square, 1.5px ink; the primary one filled ── */
.btn {
  display: inline-block;
  padding: 13px 22px;
  border: 1.5px solid var(--ink);
  font-family: var(--display);
  font-weight: 800;
  font-size: 15px;
  letter-spacing: 0.01em;
  line-height: 1.2;
  color: var(--ink);
  text-decoration: none;
}
.btn:hover {
  border-color: var(--signal);
  color: var(--signal);
}
.btn-primary {
  background: var(--ink);
  color: var(--paper);
}
.btn-primary:hover {
  background: var(--signal);
  color: var(--paper);
}

/* ── Google Play button: a small line over the store's name. Filled ink once it
   links to the listing; greyed out while aria-disabled (no href yet). The
   site's own button, not Google's badge: that one may not be recoloured. ── */
.btn-play {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  padding: 9px 24px 11px 18px;
  background: var(--ink);
  color: var(--paper);
  font-size: 20px;
  line-height: 1.05;
  letter-spacing: -0.01em;
}
.btn-play small {
  font-family: var(--mono);
  font-weight: 500;
  font-size: 10.5px;
  line-height: 1.3;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.btn-play:hover {
  background: var(--signal);
  color: var(--paper);
}
.btn-play[aria-disabled="true"],
.btn-play[aria-disabled="true"]:hover {
  background: var(--near-white);
  border-color: var(--rule);
  color: var(--ash);
  cursor: default;
}

/* ── Phone screenshots: a plate with an ink hairline, no device mock-up ── */
.shot {
  margin: 0;
}
.shot img {
  width: 100%;
  border: 1.5px solid var(--ink);
  background: var(--paper);
}
.shot figcaption {
  margin-top: 10px;
  font-family: var(--mono);
  font-weight: 500;
  font-size: 11.5px;
  line-height: 1.5;
  letter-spacing: 0.04em;
  color: var(--ash);
}
.shot figcaption b {
  font-weight: 500;
  color: var(--signal);
  margin-right: 8px;
}

/* ── Hero ── */
.hero {
  display: grid;
  gap: 44px;
  padding-top: 44px;
  padding-bottom: 56px;
}
.hero-art {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  align-items: start;
  width: 100%;
  max-width: 440px;
  margin: 0 auto;
}
.hero-art .shot-back {
  grid-column: 6 / 13;
  grid-row: 1;
}
.hero-art .shot-front {
  grid-column: 1 / 9;
  grid-row: 1;
  margin-top: 22%;
  z-index: 1;
}
.hero-art .hero-logo {
  grid-column: 9 / 13;
  grid-row: 1;
  align-self: end;
  justify-self: end;
  width: 84%;
}
.availability {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 12px 14px;
  margin-top: 30px;
}
.availability .btn {
  display: inline-flex;
  align-items: center;
}
.availability .btn-play {
  align-items: flex-start;
}
@media (min-width: 900px) {
  .hero {
    grid-template-columns: 7fr 5fr;
    gap: 40px;
    align-items: center;
    padding-top: 64px;
    padding-bottom: 84px;
  }
  .hero-art {
    margin: 0 0 0 auto;
  }
}

/* ── Sections ── */
.section {
  padding-top: 84px;
}
/* The hero ends on a heavy rule, inside the gutters, instead of open space. */
.hero + .section {
  padding-top: 0;
}
.hero + .section::before {
  content: "";
  display: block;
  margin-bottom: 52px;
  border-top: 2px solid var(--ink);
}
.section-head {
  max-width: 820px;
}
.section-head p.intro {
  margin: 22px 0 0;
  max-width: 36em;
  font-size: 18px;
}

/* ── Features: copy and a screenshot plate, sides alternating ── */
.feature {
  display: grid;
  gap: 30px;
  padding: 44px 0;
  border-top: 1px solid var(--rule);
}
.features {
  margin-top: 44px;
  border-bottom: 1.5px solid var(--ink);
}
.features .feature:first-child {
  border-top: 1.5px solid var(--ink);
}
.feature-no {
  margin: 0 0 12px;
  font-family: var(--mono);
  font-weight: 500;
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--signal);
}
.feature-copy > p {
  max-width: 33em;
}
.feature-copy h3 + p {
  margin-top: 16px;
}
.feature .shot {
  width: 100%;
  max-width: 320px;
  margin: 0 auto;
}
/* Two plates: the second sits lower and overlaps the first. */
.plates {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  align-items: start;
  width: 100%;
  max-width: 460px;
  margin: 0 auto;
}
.plates .shot {
  max-width: none;
  margin: 0;
  grid-row: 1;
}
.plates .shot:first-child {
  grid-column: 1 / 8;
}
.plates .shot:last-child {
  grid-column: 6 / 13;
  margin-top: 26%;
  z-index: 1;
}
@media (min-width: 860px) {
  .feature {
    grid-template-columns: repeat(12, 1fr);
    gap: 0 24px;
    align-items: center;
    padding: 64px 0;
  }
  .feature-copy {
    grid-column: 1 / 7;
    grid-row: 1;
  }
  .feature-art {
    grid-column: 8 / 13;
    grid-row: 1;
  }
  .feature:nth-child(even) .feature-copy {
    grid-column: 7 / 13;
  }
  .feature:nth-child(even) .feature-art {
    grid-column: 1 / 6;
  }
}

/* Hairline rows — the app's list in place of bullets */
.rows {
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--rule);
  max-width: 33em;
}
.rows li {
  display: grid;
  grid-template-columns: 26px 1fr;
  padding: 10px 0;
  border-bottom: 1px solid var(--rule);
  font-size: 16px;
  line-height: 1.45;
}
.rows li::before {
  content: "";
  width: 8px;
  height: 8px;
  margin-top: 8px;
  background: var(--ink);
}

/* ── Safety note — the one block that must not be missable (as in the app) ── */
.notice {
  margin: 40px 0 0;
  padding: 18px 20px;
  border: 1.5px solid var(--ink);
  max-width: 820px;
}
.notice .label {
  display: block;
  margin-bottom: 6px;
  font-family: var(--display);
  font-weight: 800;
  font-size: 11.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--signal);
}
.notice p:last-child {
  margin-bottom: 0;
}

/* ── Species: six cells ruled like a table ── */
.species {
  display: grid;
  margin: 44px 0 0;
  padding: 0;
  list-style: none;
  border-top: 1.5px solid var(--ink);
}
.species li {
  padding: 22px 0 24px;
  border-bottom: 1px solid var(--rule);
}
.species .no {
  font-family: var(--mono);
  font-weight: 500;
  font-size: 12px;
  color: var(--signal);
}
.species h3 {
  margin-top: 6px;
  font-size: clamp(26px, 3vw, 32px);
}
.species p {
  margin: 10px 0 0;
  font-size: 15.5px;
  line-height: 1.5;
  color: var(--body);
}
.species .data {
  margin-top: 12px;
  font-family: var(--mono);
  font-weight: 500;
  font-size: 11.5px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ash);
}
@media (min-width: 640px) {
  .species {
    grid-template-columns: repeat(2, 1fr);
  }
  .species li {
    padding-right: 24px;
  }
  .species li:nth-child(even) {
    padding-left: 24px;
    border-left: 1px solid var(--rule);
  }
}
@media (min-width: 980px) {
  .species {
    grid-template-columns: repeat(3, 1fr);
  }
  .species li,
  .species li:nth-child(even) {
    padding-left: 24px;
    border-left: 1px solid var(--rule);
  }
  .species li:nth-child(3n + 1) {
    padding-left: 0;
    border-left: 0;
  }
}

/* ── Extras: small things worth a line ── */
.subhead {
  margin: 64px 0 0;
  font-weight: 800;
  font-size: 21px;
  letter-spacing: -0.02em;
}
.extras {
  display: grid;
  gap: 0 40px;
  margin: 14px 0 0;
  padding: 0;
  border-top: 1.5px solid var(--ink);
}
.extras div {
  padding: 16px 0 18px;
  border-bottom: 1px solid var(--rule);
}
.extras dt {
  font-family: var(--display);
  font-weight: 800;
  font-size: 17px;
  color: var(--ink);
}
.extras dd {
  margin: 4px 0 0;
  font-size: 16px;
  line-height: 1.5;
}
@media (min-width: 760px) {
  .extras {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ── The data band: the page's one inverted block ── */
.band {
  margin-top: 96px;
  padding: 84px 0 88px;
  background: var(--ink);
  color: #E9E9E6;
}
.band h2,
.band strong {
  color: var(--paper);
}
.band .kicker {
  color: #A9A9A6;
}
/* Signal red on ink falls short of 4.5:1 at 12px; the band uses a lighter red. */
.band .index {
  color: #FF6A58;
}
.band a {
  color: var(--paper);
}
.band a:hover {
  color: #FF6A58;
}
.band-grid {
  display: grid;
  gap: 40px;
  margin-top: 44px;
}
.zeros {
  margin: 0;
  border-top: 1.5px solid var(--paper);
}
.zeros div {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4px 24px;
  padding: 16px 0 18px;
  border-bottom: 1px solid #3A3A3A;
}
.zeros dt {
  font-family: var(--display);
  font-weight: 900;
  font-size: clamp(24px, 3vw, 32px);
  line-height: 1.05;
  letter-spacing: -0.03em;
  word-spacing: 0.08em;
  color: var(--paper);
}
.zeros dd {
  margin: 0;
  font-size: 16px;
  line-height: 1.5;
}
.band-side p {
  max-width: 30em;
}
.band-side h3 {
  margin: 0 0 8px;
  font-weight: 800;
  font-size: 18px;
  letter-spacing: -0.005em;
  color: var(--paper);
}
.band-side h3:not(:first-child) {
  margin-top: 28px;
}
@media (min-width: 620px) {
  .zeros div {
    grid-template-columns: 250px 1fr;
    align-items: baseline;
  }
}
@media (min-width: 980px) {
  .band-grid {
    grid-template-columns: 7fr 5fr;
    gap: 64px;
  }
}

/* ── Questions: native disclosure, no script ── */
.faq {
  margin-top: 40px;
  border-top: 1.5px solid var(--ink);
  max-width: 820px;
}
.faq details {
  border-bottom: 1px solid var(--rule);
}
.faq summary {
  display: grid;
  grid-template-columns: 1fr 20px;
  gap: 16px;
  align-items: center;
  padding: 17px 0;
  font-family: var(--display);
  font-weight: 800;
  font-size: 18px;
  line-height: 1.25;
  color: var(--ink);
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker {
  display: none;
}
/* A plus drawn from two bars; the upright one goes when the answer is open. */
.faq summary::after {
  content: "";
  width: 16px;
  height: 16px;
  background:
    linear-gradient(var(--ink), var(--ink)) center / 16px 2px no-repeat,
    linear-gradient(var(--ink), var(--ink)) center / 2px 16px no-repeat;
}
.faq details[open] summary::after {
  background: linear-gradient(var(--signal), var(--signal)) center / 16px 2px no-repeat;
}
.faq summary:hover {
  color: var(--signal);
}
.faq details p {
  margin: 0 0 18px;
  max-width: 36em;
}

/* ── Closing block ── */
.closing {
  display: grid;
  gap: 28px;
  align-items: center;
  margin-top: 96px;
  padding: 56px 0 8px;
  border-top: 2px solid var(--ink);
}
.closing img {
  width: min(220px, 56vw);
}
.closing h2 {
  font-size: clamp(54px, 13vw, 132px);
  line-height: 0.86;
}
.closing p {
  margin: 18px 0 0;
  max-width: 30em;
  font-size: 18px;
}
.closing .closing-play {
  margin-top: 26px;
}
@media (min-width: 760px) {
  .closing {
    grid-template-columns: 1fr auto;
    gap: 48px;
  }
  .closing img {
    width: 260px;
  }
}

/* ── Footer ── */
.footer {
  margin-top: 72px;
  padding: 14px 0 40px;
  border-top: 1.5px solid var(--ink);
  font-size: 13.5px;
  color: var(--ash);
}
.footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 18px;
  margin-top: 6px;
}
.footer a {
  color: var(--ash);
}
.footer a:hover {
  color: var(--signal);
}
.footer .fineprint {
  margin: 14px 0 0;
  font-size: 12px;
}

/* ── Legal pages: one narrow column, numbered sections ── */
.doc {
  max-width: 680px;
  padding-top: 44px;
}
.doc h1 {
  font-size: clamp(36px, 9vw, 56px);
  line-height: 1;
  letter-spacing: -0.035em;
}
.doc .accent {
  width: 38px;
  height: 3px;
  margin-top: 16px;
}
.doc .lead {
  font-size: 18px;
}
.doc .meta {
  margin: 14px 0 0;
  font-family: var(--mono);
  font-weight: 500;
  font-size: 12px;
  color: var(--ash);
}
.doc section {
  margin-top: 44px;
}
.doc h2 {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin: 0 0 14px;
  padding-bottom: 7px;
  border-bottom: 1.5px solid var(--ink);
  font-size: 21px;
  line-height: 1.15;
  letter-spacing: -0.02em;
  text-wrap: wrap;
}
.doc h2 .index {
  flex: none;
  font-family: var(--mono);
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0;
}
.doc address {
  font-style: normal;
  font-size: 18px;
  line-height: 1.5;
  color: var(--ink);
}
.doc .provider p {
  margin: 0 0 6px;
}
