/* Puchku: the site's colours come from Puchku's own art. */
:root {
  /* The tuxedo palette, design/ui-system/tokens.json (master spec DIR-5). */
  --wall: #ebe6dc;      /* warm oat, the room */
  --paper: #f7f4ee;     /* milk white, Puchku's chest */
  --ink: #1c1b1a;       /* Puchku's black fur */
  --soft: #66615a;
  --line: #e2dccf;
  --collar: #2e6a4f;    /* the collar's green, the one action color */
  --on-collar: #ffffff;
  --gold: #e9b63b;      /* the bell */
  --card: #ffffff;
  --rounded: ui-rounded, "SF Pro Rounded", "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;
  --text: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --wall: #24221f;
    --paper: #161513;
    --ink: #f3efe7;
    --soft: #b5aea3;
    --line: #34312d;
    --collar: #7cc4a0;
    --on-collar: #10261c;
    --card: #1f1d1b;
  }
}

* { box-sizing: border-box; }
html { background: var(--paper); }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font: 400 18px/1.6 var(--text);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--collar); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--collar); outline-offset: 3px; border-radius: 6px; }

.wrap { width: min(1120px, 100% - 12vw); margin-inline: auto; }

/* Header */
.top {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px;
  padding: 28px 0;
}
.mark {
  font: 800 28px/1 var(--rounded);
  letter-spacing: -0.02em;
  color: var(--ink);
  text-decoration: none;
}
.top nav { display: flex; flex-wrap: wrap; gap: 8px 28px; font-size: 16px; }
.top nav a { color: var(--ink); text-decoration: none; }
.top nav a:hover, .top nav a[aria-current] { text-decoration: underline; }

/* Hero: Puchku sits on the bottom edge, the way the app sits on your screen */
.hero { background: var(--wall); }
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  align-items: end;
  gap: 32px;
  min-height: min(640px, 78svh);
}
.hero-copy { align-self: center; padding: 24px 0 56px; }
h1 {
  font: 750 clamp(42px, 6.2vw, 76px)/1.02 var(--rounded);
  letter-spacing: -0.035em;
  margin: 0 0 24px;
  max-width: 12ch;
  text-wrap: balance;
}
.lede { font-size: clamp(19px, 1.7vw, 22px); line-height: 1.55; max-width: 34ch; margin: 0; }
.hero-private { font-weight: 650; max-width: 34ch; margin: 18px 0 0; }
.soon { margin: 36px 0 0; display: grid; gap: 14px; justify-items: start; }
.soon p { margin: 0; }
.soon .when { font: 650 19px/1.4 var(--rounded); }
.soon .small { font-size: 15px; color: var(--soft); }
.button {
  display: inline-block;
  font: 650 17px/1 var(--rounded);
  color: var(--on-collar);
  background: var(--collar);
  padding: 15px 22px;
  border-radius: 999px;
  text-decoration: none;
}
.button:hover { filter: brightness(1.08); }
.hero-pet { justify-self: center; width: clamp(220px, 30vw, 380px); margin-bottom: -6px; }

/* Sections below the "floor" */
section.band { padding: 88px 0; }
section.band + section.band { border-top: 1px solid var(--line); }
h2 {
  font: 720 clamp(28px, 3.2vw, 38px)/1.15 var(--rounded);
  letter-spacing: -0.02em;
  margin: 0 0 16px;
  text-wrap: balance;
}
h3 { font: 700 21px/1.3 var(--rounded); margin: 0 0 8px; }
.intro { color: var(--soft); max-width: 52ch; margin: 0 0 48px; }

.split {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; align-items: center;
}
.split p { margin: 0 0 16px; max-width: 46ch; }
.split p:last-child { margin-bottom: 0; }
.nap { width: min(440px, 100%); justify-self: center; }
.real { width: min(340px, 100%); justify-self: center; border: 1px solid var(--line); border-radius: 16px; }
.split.top-aligned { align-items: start; }

/* Home: the feature tour. Each feature is a band: real screenshots beside a few plain lines, alternating sides. */
.tour { padding: 28px 0; border-bottom: 1px solid var(--line); }
.tour ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.tour a {
  display: inline-block; padding: 8px 16px; border: 1px solid var(--line); border-radius: 999px;
  background: var(--card); color: var(--ink); text-decoration: none; font: 650 16px/1.3 var(--rounded);
}
.tour a:hover { border-color: var(--collar); color: var(--collar); }
.tour .pet-link { border-color: var(--collar); color: var(--collar); }

.feature-grid {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; align-items: center;
}
.feature-grid > .shots { order: 1; }
.feature-grid > .feature-copy { order: 2; }
.flip .feature-grid > .shots { order: 2; }
.flip .feature-grid > .feature-copy { order: 1; }
.feature-copy > p { margin: 0 0 16px; max-width: 48ch; }
.feature-copy .lead { font-size: clamp(19px, 1.6vw, 21px); }
.feature-copy h3 { margin-top: 28px; }
.points { list-style: none; margin: 0 0 16px; padding: 0; max-width: 48ch; }
.points li { position: relative; padding-left: 22px; margin-bottom: 10px; color: var(--soft); }
.points li::before {
  content: ""; position: absolute; left: 2px; top: 0.62em;
  width: 8px; height: 8px; border-radius: 50%; border: 2px solid var(--collar);
}
.points strong { color: var(--ink); font-weight: 650; }

/* Screenshots: the iPhone's screen with its rounded corners, a border and no shadow */
.shots { display: flex; justify-content: center; align-items: flex-start; gap: 24px; }
.shot {
  width: min(300px, 100%); border: 1px solid var(--line); border-radius: 32px; background: var(--card);
}
.shots .shot + .shot { margin-top: 56px; }
.shot.tablet { width: min(420px, 100%); border-radius: 22px; }
.shots.two .shot { width: min(260px, calc(50% - 12px)); }
.shots.three .shot { width: min(220px, calc(33.333% - 16px)); border-radius: 26px; }
.shots.three .shot:nth-child(2) { margin-top: 40px; }
.shots.three .shot:nth-child(3) { margin-top: 0; }

/* Make him your pet: the one feature on the room's wall, with the app icons and stickers it makes */
.feature.pet { background: var(--wall); }
.feature.pet h2 { font-size: clamp(32px, 4vw, 46px); }
.feature.pet .feature-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 56px; }
.pet-extras { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px 64px; margin-top: 56px; }
.pet-extras h3 { margin-bottom: 6px; }
.pet-extras p { margin: 0 0 18px; color: var(--soft); max-width: 46ch; }
/* On every Apple device: four cards, two by two */
.cards.devices { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 56px; }
.cards.devices h3 { margin: 0 0 8px; }
.cards.devices p { color: var(--soft); }
.cards.devices p:last-child { margin-bottom: 0; }
.icons, .stickers { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 14px; }
.icons img { width: 72px; height: 72px; border-radius: 22%; border: 1px solid var(--line); }
.stickers { gap: 6px; }
.stickers img { width: 104px; height: 104px; }

/* Footer */
footer { background: var(--wall); padding: 56px 0 40px; font-size: 15px; }
.care { max-width: 62ch; margin: 0 0 28px; }
.foot {
  display: flex; flex-wrap: wrap; gap: 12px 28px; justify-content: space-between; align-items: baseline;
  border-top: 1px solid var(--line); padding-top: 24px; color: var(--soft);
}
.foot ul { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 24px; margin: 0; padding: 0; }
.foot p { margin: 0; }

/* Text pages: support, privacy */
.page { padding: 56px 0 96px; }
.page h1 { font-size: clamp(38px, 5vw, 56px); max-width: none; }
.page .lede { max-width: 56ch; }
.page h2 { margin-top: 56px; }
.qa > * { max-width: 64ch; }
.qa h3 { margin-top: 28px; }
.qa p, .qa li { color: var(--ink); }
.qa ul { padding-left: 22px; }
.qa li { margin-bottom: 8px; }

@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; min-height: 0; gap: 0; }
  .hero-copy { padding-bottom: 24px; }
  .hero-pet { justify-self: end; width: min(240px, 62vw); }
  .split { grid-template-columns: 1fr; gap: 32px; }
  section.band { padding: 64px 0; }
  /* The tour stacks: the words first, then the screens under them */
  .feature-grid, .feature.pet .feature-grid, .pet-extras { grid-template-columns: 1fr; gap: 36px; }
  .feature-grid > .feature-copy, .flip .feature-grid > .feature-copy { order: 1; }
  .feature-grid > .shots, .flip .feature-grid > .shots { order: 2; }
  .pet-extras { margin-top: 40px; }
  .cards.devices { grid-template-columns: 1fr; margin-top: 40px; }
}
@media (max-width: 520px) {
  body { font-size: 17px; }
  .wrap { width: calc(100% - 32px); }
  .top nav { gap: 18px; }
  .tour a { padding: 7px 13px; font-size: 15px; }
  .shots { gap: 12px; }
  .shot { border-radius: 24px; }
  .shot.tablet { border-radius: 16px; }
  .shots .shot + .shot { margin-top: 36px; }
  .shots.two .shot { width: calc(50% - 6px); }
  .shots.three .shot { width: calc(33.333% - 8px); border-radius: 16px; }
  .shots.three .shot:nth-child(2) { margin-top: 28px; }
  .icons { gap: 10px; }
  .icons img { width: 60px; height: 60px; }
  .stickers img { width: 84px; height: 84px; }
}
@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto; transition: none !important; animation: none !important; }
}
.soft-note { color: var(--soft); font-size: 15px; margin-top: 40px; }

/* Skip link: hidden until focused */
.skip {
  position: absolute; left: 12px; top: -60px; z-index: 10;
  background: var(--collar); color: var(--on-collar); padding: 10px 16px; border-radius: 999px;
  font: 650 16px/1 var(--rounded); text-decoration: none;
}
.skip:focus { top: 12px; }

/* Home: the download button before there's an App Store link (not a link) */
.button-soon {
  display: inline-block;
  font: 650 17px/1.2 var(--rounded);
  color: var(--ink);
  border: 2px solid var(--ink);
  padding: 13px 20px;
  border-radius: 999px;
}

/* For Therapists: is / isn't, technique cards, sources */
.is-isnt { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px 48px; }
.is-isnt ul { padding-left: 22px; margin: 0; }
.is-isnt li { margin-bottom: 10px; }
.cards {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 20px;
}
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 22px 22px 18px;
}
.card p { margin: 0 0 10px; }
.card .strength span { color: var(--soft); }
.card .strength { font-weight: 650; }
.card .source { color: var(--soft); font-size: 16px; }
sup { line-height: 0; }
sup a { text-decoration: none; padding: 0 2px; font-weight: 650; }
.sources { padding-left: 26px; font-size: 16px; }
.sources li { margin-bottom: 6px; overflow-wrap: anywhere; }
.sample { display: grid; grid-template-columns: minmax(0, 300px) minmax(0, 1fr); gap: 32px; align-items: start; }
.sample-page img, .files img { border: 1px solid var(--line); border-radius: 8px; background: #ffffff; }

/* Press: facts and files */
table { border-collapse: collapse; width: 100%; font-size: 17px; }
th, td { text-align: left; vertical-align: top; padding: 10px 14px 10px 0; border-bottom: 1px solid var(--line); }
thead th { color: var(--soft); font-weight: 650; }
.facts th { width: 34%; color: var(--soft); font-weight: 650; }
.table-scroll { overflow-x: auto; max-width: 64ch; }
.files {
  list-style: none; margin: 0 0 32px; padding: 0;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); gap: 24px;
}
.files img { width: 100%; aspect-ratio: 1; object-fit: contain; background: var(--wall); padding: 12px; }
.files p { margin: 10px 0 0; font-size: 16px; }
.files span { color: var(--soft); font-size: 15px; }
.facts-line { font: 650 18px/1.4 var(--rounded); color: var(--soft); }

/* Privacy: contents */
.toc { border: 1px solid var(--line); border-radius: 14px; padding: 16px 20px; margin-top: 32px; }
.toc ol { margin: 0; padding-left: 22px; }
.toc li { margin: 4px 0; }
.policy .updated { margin-top: 0; }

@media (max-width: 860px) {
  .is-isnt, .sample { grid-template-columns: 1fr; }
  .sample-page { max-width: 300px; }
}
