/* Pupoku site — palette taken from the app (cream paper, teal pieces, golden pup). */
:root {
  color-scheme: light dark;
  --bg: #f7f3e8;
  --surface: #fffdf6;
  --ink: #38241f;
  --muted: #6b5a52;
  --accent: #1f7066;
  --accent-strong: #339e8f;
  --on-accent: #ffffff;
  --gold: #f2b84b;
  --line: rgba(56, 36, 31, 0.14);
  --cell: #e0ebe3;
  --cell-alt: #d1e0d9;
  --shadow: 0 10px 30px rgba(56, 36, 31, 0.12);
  --radius: 20px;
  /* The app sets its text in Georgia on a paper background; headings follow it. */
  --rounded: Georgia, "Iowan Old Style", "Times New Roman", serif;
  --body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #10201d;
    --surface: #172b27;
    --ink: #f3eedf;
    --muted: #b5c2bc;
    --accent: #6fd0c1;
    --accent-strong: #339e8f;
    --on-accent: #0b1614;
    --line: rgba(243, 238, 223, 0.16);
    --cell: #20403a;
    --cell-alt: #1a3530;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  }
}

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

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

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

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

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

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

a:focus-visible,
.button:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
  border-radius: 6px;
}

h1,
h2,
h3 {
  font-family: var(--rounded);
  line-height: 1.2;
  margin: 0 0 0.5em;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.2rem, 6vw, 3.4rem);
  letter-spacing: -0.01em;
}

h2 {
  font-size: clamp(1.45rem, 3.5vw, 1.9rem);
}

h3 {
  font-size: 1.15rem;
}

p {
  margin: 0 0 1em;
}

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

.narrow {
  max-width: 720px;
}

.skip {
  position: absolute;
  left: -9999px;
}

.skip:focus {
  left: 12px;
  top: 12px;
  background: var(--surface);
  padding: 8px 12px;
  border-radius: 8px;
  z-index: 10;
}

/* Header */
.site-header {
  padding: 16px 0;
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

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

.brand img {
  width: 40px;
  height: 40px;
  border-radius: 10px;
}

.nav {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
}

.nav a {
  padding: 8px 12px;
  border-radius: 999px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.98rem;
}

.nav a:hover,
.nav a[aria-current="page"] {
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line);
}

/* Hero */
.hero {
  padding: 24px 0 8px;
}

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

@media (min-width: 860px) {
  .hero-grid {
    grid-template-columns: 5fr 6fr;
    gap: 44px;
  }
}

.lede {
  font-size: 1.2rem;
  color: var(--muted);
  max-width: 34em;
}

.hero-art {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  width: 100%;
}

.cta {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 8px;
}

.badge-soon {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  border-radius: 14px;
  background: var(--ink);
  color: var(--bg);
  font-family: var(--rounded);
  font-weight: 700;
  line-height: 1.15;
}

.badge-soon small {
  display: block;
  font-weight: 500;
  font-size: 0.72rem;
  opacity: 0.8;
}

.cta-note {
  color: var(--muted);
  font-size: 0.95rem;
  margin: 0;
}

/* Sections */
section {
  padding: 44px 0;
}

.section-intro {
  color: var(--muted);
  max-width: 40em;
}

.cards {
  display: grid;
  gap: 16px;
  margin-top: 22px;
  padding: 0;
  list-style: none;
}

@media (min-width: 720px) {
  .cards {
    grid-template-columns: repeat(3, 1fr);
  }

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

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
}

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

.step {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--accent-strong);
  color: #fff;
  font-family: var(--rounded);
  font-weight: 800;
  margin-bottom: 12px;
}

.split {
  display: grid;
  gap: 28px;
  align-items: center;
}

@media (min-width: 860px) {
  .split {
    grid-template-columns: 1fr 1fr;
    gap: 48px;
  }
}

.board {
  width: 100%;
  max-width: 360px;
  margin: 0 auto;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  background: var(--surface);
}

.board .c {
  fill: var(--cell);
}

.board .c.alt {
  fill: var(--cell-alt);
}

.board .p {
  fill: var(--accent-strong);
}

.board .g {
  fill: var(--gold);
}

.modes {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0;
  margin: 16px 0 0;
  list-style: none;
}

.modes li {
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--line);
  font-weight: 600;
  font-size: 0.95rem;
}

.callout {
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 6px solid var(--gold);
  border-radius: var(--radius);
  padding: 22px;
}

.callout p:last-child {
  margin-bottom: 0;
}

/* Document pages (privacy, support) */
.doc {
  padding: 28px 0 56px;
}

.doc h1 {
  font-size: clamp(2rem, 5vw, 2.7rem);
}

.doc h2 {
  margin-top: 1.8em;
  font-size: 1.4rem;
}

.doc h3 {
  margin-top: 1.4em;
}

.doc ul {
  padding-left: 1.2em;
}

.doc li {
  margin-bottom: 0.5em;
}

.meta {
  color: var(--muted);
  font-size: 0.95rem;
}

.contact-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  margin: 22px 0;
}

.contact-card .email {
  font-family: var(--rounded);
  font-weight: 700;
  font-size: 1.25rem;
  overflow-wrap: anywhere;
}

.button {
  display: inline-block;
  padding: 12px 20px;
  border-radius: 14px;
  background: var(--accent);
  color: var(--on-accent);
  font-family: var(--rounded);
  font-weight: 700;
  text-decoration: none;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 28px 0 40px;
  color: var(--muted);
  font-size: 0.95rem;
}

.site-footer .wrap {
  display: grid;
  gap: 10px;
}

.site-footer nav {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}

.site-footer p {
  margin: 0;
}
