/* Parkie landing page. Colours and type follow the app (design/tokens.css). */

/* Self-hosted (Latin subset of the app's fonts, SIL OFL), so no visitor data goes to a font CDN. */
@font-face { font-family: "Newsreader"; src: url("/assets/fonts/Newsreader-VF.woff2") format("woff2"); font-weight: 200 800; font-style: normal; font-display: swap; }
@font-face { font-family: "Newsreader"; src: url("/assets/fonts/Newsreader-Italic-VF.woff2") format("woff2"); font-weight: 200 800; font-style: italic; font-display: swap; }
@font-face { font-family: "IBM Plex Sans"; src: url("/assets/fonts/IBMPlexSans-VF.woff2") format("woff2"); font-weight: 100 700; font-style: normal; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url("/assets/fonts/IBMPlexMono-Medium.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
:root {
  --paper: #ffffff;
  --paper-raised: #fbf8f9;
  --ink: #192127;
  --ink-muted: #525e67;
  --ink-faint: #7b868e;
  --rule: #e3dde0;
  --hairline: #ece7ea;
  --beck: #1b6a86;
  --beck-tint: #d3e5ec;
  --ochre-tint: #f1e1cc;
  --pink: #fde4ec;
  --pink-strong: #f8bbd0;
  --pink-ink: #7b4a62;
  --badge: #111;
  --badge-ink: #fff;
  --font-serif: "Newsreader", "Iowan Old Style", Georgia, serif;
  --font-sans: "IBM Plex Sans", -apple-system, system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --wrap: 1120px;
  --gutter: 16px;
  color-scheme: light;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 17px/1.55 var(--font-sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--beck); }
h1, h2, h3 { font-family: var(--font-serif); font-weight: 400; margin: 0; }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--beck); outline-offset: 3px; border-radius: 6px; }

.skip { position: absolute; left: -999px; top: 8px; background: var(--paper-raised); padding: 8px 12px; z-index: 10; }
.skip:focus { left: 8px; }

.label {
  font: 600 13px/1.3 var(--font-sans);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-muted);
}
.eyebrow { font: italic 400 19px/1.4 var(--font-serif); color: var(--ink-muted); }

section, .top, .foot { width: min(var(--wrap), 100% - 2 * var(--gutter)); margin-inline: auto; }
section { padding-block: 72px; }
section + section { border-top: 2px solid var(--rule); }

/* Header */
.top { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 18px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font: 600 24px/1 var(--font-serif); color: var(--ink); text-decoration: none; }
.brand img { border-radius: 8px; }
.top nav { display: flex; gap: 20px; }
.top nav a { color: var(--ink-muted); text-decoration: none; font-size: 15px; }
.top nav a:hover { color: var(--ink); }

/* Hero */
.hero { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center; padding-top: 40px; border-top: 0; }
.hero h1 { font-size: clamp(36px, 5.2vw, 60px); line-height: 1.06; letter-spacing: -0.015em; margin: 12px 0 20px; }
.hero h1 .name { font-weight: 600; color: var(--pink-ink); }
.lede { font: italic 400 21px/1.5 var(--font-serif); color: var(--ink-muted); max-width: 34em; }
.fineprint { margin-top: 14px; font-size: 14px; color: var(--ink-faint); }

.stores { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.store {
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 52px; padding: 8px 18px 8px 14px;
  background: var(--badge); color: var(--badge-ink);
  border-radius: 12px; text-decoration: none;
  font: 600 19px/1.1 var(--font-sans);
  transition: transform .15s ease;
}
.store:hover { transform: translateY(-2px); }
.store svg { width: 26px; height: 26px; fill: currentColor; flex: none; }
.store small { display: block; font-size: 11px; font-weight: 400; letter-spacing: 0.02em; }

.hero-parkie { position: relative; display: grid; justify-items: center; }
.hero-parkie::before {
  content: ""; position: absolute; inset: 8% 4% 18%; z-index: -1;
  border-radius: 50%;
  background: radial-gradient(closest-side, var(--pink) 30%, transparent 100%);
  filter: blur(24px);
}
.thought {
  min-height: 2.6em; text-align: center;
  font: italic 400 22px/1.3 var(--font-serif); color: var(--ink-muted);
  transition: opacity .4s ease;
}
.thought::after { content: "• • •"; display: block; font-size: 10px; letter-spacing: 4px; color: var(--ink-faint); opacity: .6; }
.thought.fading { opacity: 0; }
.caption { margin-top: 8px; font-size: 14px; color: var(--ink-faint); text-align: center; }

.parkie { border: 0; padding: 0; background: none; cursor: pointer; width: min(380px, 80vw); aspect-ratio: 1; border-radius: 50%; }
.parkie-body { position: relative; display: block; width: 100%; height: 100%; transform-origin: 50% 100%; animation: bob 4.8s ease-in-out infinite; }
.frame { position: absolute; inset: 0; width: 100%; height: 100%; }
.frame.blink { opacity: 0; animation: blink 5.2s steps(1) infinite; }
.frame.happy { opacity: 0; transition: opacity .12s ease; }
.parkie.is-happy .frame.happy { opacity: 1; }
.parkie.is-happy .frame.open, .parkie.is-happy .frame.blink { opacity: 0; animation: none; }
.parkie.is-happy .parkie-body { animation: hop .6s ease-out; }

/* Same rhythm as the app: a slow bob with a little tilt and squash. */
@keyframes bob {
  0%, 100% { transform: translateY(0) rotate(0deg) scale(1, 1); }
  25% { transform: translateY(-2%) rotate(2.5deg) scale(.985, 1.015); }
  50% { transform: translateY(0) rotate(0deg) scale(1.015, .985); }
  75% { transform: translateY(-2%) rotate(-2.5deg) scale(.985, 1.015); }
}
@keyframes blink { 0%, 93% { opacity: 0; } 94%, 96% { opacity: 1; } 97%, 100% { opacity: 0; } }
@keyframes hop { 0% { transform: translateY(0); } 40% { transform: translateY(-8%) scale(1.03, .97); } 100% { transform: translateY(0); } }

/* Highlighted feature words: ink, semibold, with a soft pink marker. */
.hl {
  font-weight: 600;
  color: var(--ink);
  background: linear-gradient(transparent 58%, var(--pink-strong) 58%, var(--pink-strong) 92%, transparent 92%);
  padding: 0 1px;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

/* What it does */
.what .steps { list-style: none; margin: 24px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.steps h3 { font-size: 26px; margin: 12px 0 8px; }
.steps p { color: var(--ink-muted); }
.step-num {
  display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
  background: var(--pink); color: var(--pink-ink); font: 500 18px/1 var(--font-mono);
  border: 2px solid var(--pink-strong);
}

/* Patient & Partner */
.together h2 { font-size: clamp(30px, 4vw, 44px); margin: 6px 0 32px; }
.cards { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.card { background: var(--paper-raised); border: 1px solid var(--hairline); border-radius: 20px; padding: 32px; position: relative; overflow: hidden; }
.card::before { content: ""; position: absolute; inset: 0 0 auto; height: 6px; }
.card.patient::before { background: var(--pink-strong); }
.card.partner::before { background: var(--beck); }
.card h3 { font-size: 38px; margin: 6px 0 10px; }
.card > p:not(.label) { font: italic 400 19px/1.45 var(--font-serif); color: var(--ink-muted); }
.card ul { margin: 20px 0 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.card li { padding-left: 28px; position: relative; }
.card li::before { content: ""; position: absolute; left: 4px; top: .55em; width: 10px; height: 10px; border-radius: 50%; background: var(--pink-strong); }
.card.partner li::before { background: var(--beck); }

/* Screenshots */
.shots {
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(220px, 1fr); gap: 24px;
  margin-top: 24px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 12px;
}
.shots figure { margin: 0; scroll-snap-align: start; }
.phone { border-radius: 34px; padding: 10px; background: #0d1114; box-shadow: 0 18px 40px rgba(25, 33, 39, .18); }
.phone img { border-radius: 26px; width: 100%; }
.shots figcaption { margin-top: 12px; text-align: center; font-size: 15px; color: var(--ink-muted); }

/* Features */
.features h2 { font-size: clamp(30px, 4vw, 44px); }
.grid { list-style: none; margin: 32px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--hairline); border: 1px solid var(--hairline); border-radius: 16px; overflow: hidden; }
.grid li { background: var(--paper-raised); padding: 24px; }
.grid h3 { font-size: 22px; margin-bottom: 6px; }
.grid p { font-size: 15px; color: var(--ink-muted); }

/* Call to action */
.cta { display: grid; justify-items: center; text-align: center; }
.cta img { width: 160px; }
.cta h2 { font-size: clamp(30px, 4vw, 44px); margin-top: 8px; }
.cta .stores { justify-content: center; }

/* Legal pages (privacy, terms) */
.top nav a[aria-current="page"] { color: var(--ink); text-decoration: underline; text-underline-offset: 4px; }
.legal { width: min(760px, 100% - 2 * var(--gutter)); margin-inline: auto; padding-block: 32px 72px; }
.legal h1 { font-size: clamp(36px, 6vw, 52px); line-height: 1.08; margin-top: 8px; }
.legal .updated { margin-top: 8px; color: var(--ink-faint); font-size: 15px; }
.legal section { width: auto; padding-block: 28px 0; border-top: 0; }
.legal h2 { font-size: 28px; line-height: 1.2; margin-bottom: 12px; }
.legal h3 { font: 600 17px/1.4 var(--font-sans); margin: 20px 0 6px; }
.legal p + p, .legal ul + p, .legal p + ul, .legal address + p { margin-top: 12px; }
.legal ul { padding-left: 1.2em; margin: 8px 0 0; }
.legal li + li { margin-top: 6px; }
.legal address { font-style: normal; margin-top: 10px; padding: 14px 18px; background: var(--paper-raised); border: 1px solid var(--hairline); border-radius: 12px; }
.legal .summary { margin-top: 28px; padding: 22px 24px; border-radius: 16px; background: var(--pink); border: 1px solid var(--pink-strong); }
.legal .summary.warning { background: var(--ochre-tint); border-color: var(--rule); }
.legal .summary h2 { font-size: 24px; margin-bottom: 8px; }
.legal .note { margin-top: 40px; padding-top: 20px; border-top: 2px solid var(--rule); color: var(--ink-muted); font-size: 15px; }
mark.todo { background: #ffe58a; color: #3b2f00; padding: 0 4px; border-radius: 4px; }

/* 404 */
.notfound { min-height: 80vh; align-content: center; }
.notfound img { width: 200px; }
.notfound h1 { font-size: 40px; margin-top: 8px; }
.notfound .lede { margin-top: 12px; }
.notfound .home { margin-top: 24px; }

/* Disclaimer */
.disclaimer { padding-block: 40px; }
.disclaimer p { margin-top: 10px; max-width: 60em; background: var(--ochre-tint); padding: 20px 24px; border-radius: 14px; font-size: 16px; }

/* Footer */
.foot { display: flex; justify-content: space-between; gap: 16px; padding-block: 28px 40px; border-top: 2px solid var(--rule); color: var(--ink-faint); font-size: 14px; }
.foot nav { display: flex; gap: 18px; }
.foot a { color: var(--ink-muted); }

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; gap: 24px; }
  .hero-parkie { order: -1; }
  .what .steps, .cards { grid-template-columns: 1fr; }
  .grid { grid-template-columns: 1fr 1fr; }
  .shots { grid-auto-columns: 62%; }
}
@media (max-width: 560px) {
  section { padding-block: 48px; }
  .top nav { display: none; }
  .grid { grid-template-columns: 1fr; }
  .card { padding: 24px; }
  .shots { grid-auto-columns: 78%; }
  .foot { flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .parkie-body, .frame.blink, .parkie.is-happy .parkie-body { animation: none; }
  .thought { transition: none; }
}
