/* ParkZen — the privacy pages.
   Colours and proportions are the app's own (ios/ParkZen/DesignSystem).
   No web fonts, no scripts, no third-party requests: a privacy page that
   phones home would be a poor argument for an app that never does. */

:root {
  color-scheme: light dark;

  --surface: #faf9f6;
  --card: #ffffff;
  --ink: #16181a;
  --ink-secondary: #33383a;
  --ink-faint: #6b6f6c;
  --accent: #c8452f;
  --accent-ink: #5c4c48;
  --accent-wash: #fdf4f1;
  --hairline: rgba(22, 24, 26, 0.1);
  --hairline-soft: rgba(22, 24, 26, 0.07);

  --radius: 18px;
  --gutter: 16px;
  --measure: 44rem;

  --sans: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas,
    "Liberation Mono", monospace;
}

@media (prefers-color-scheme: dark) {
  :root {
    --surface: #121312;
    --card: #1b1d1c;
    --ink: #f1efe9;
    --ink-secondary: #d6d3cc;
    --ink-faint: #a3a7a2;
    --accent: #e8836c;
    --accent-ink: #e0d6d1;
    --accent-wash: rgba(232, 131, 108, 0.1);
    --hairline: rgba(250, 249, 246, 0.14);
    --hairline-soft: rgba(250, 249, 246, 0.09);
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  padding: 0 var(--gutter) 4rem;
  background: var(--surface);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-text-size-adjust: 100%;
}

.page { max-width: var(--measure); margin: 0 auto; }

/* Masthead */

.masthead {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 2.5rem 0 1.75rem;
  border-bottom: 1px solid var(--hairline);
  flex-wrap: wrap;
}

.mark {
  width: 46px;
  height: 46px;
  flex: 0 0 auto;
  border-radius: 13px;
  background: var(--accent);
  color: #faf9f6;
  font-weight: 600;
  font-size: 24px;
  line-height: 46px;
  text-align: center;
}

.masthead h1 {
  margin: 0;
  font-size: clamp(1.7rem, 1.2rem + 2vw, 2.3rem);
  line-height: 1.15;
  letter-spacing: -0.015em;
}

.eyebrow {
  margin: 0 0 2px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

/* On the policy pages the eyebrow is the way back to the landing page; it
   should read as the label it already is, not as a link in running text. */
.eyebrow a { color: inherit; text-decoration: none; }
.eyebrow a:hover { color: var(--accent); }

.lang { margin-left: auto; }

.lang a {
  display: inline-block;
  padding: 7px 13px;
  border: 1px solid var(--hairline);
  border-radius: 999px;
  color: var(--ink-secondary);
  font-size: 0.9rem;
  text-decoration: none;
}

.lang a:hover { border-color: var(--accent); color: var(--accent); }

.updated {
  margin: 1.25rem 0 0;
  font-family: var(--mono);
  font-size: 0.82rem;
  color: var(--ink-faint);
}

/* Text */

main { padding-top: 0.5rem; }

h2 {
  margin: 2.75rem 0 0.75rem;
  font-size: 1.28rem;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

h3 {
  margin: 1.75rem 0 0.4rem;
  font-size: 1rem;
  letter-spacing: -0.005em;
}

p { margin: 0.75rem 0; color: var(--ink-secondary); }

.lede {
  margin-top: 1.5rem;
  font-size: 1.1rem;
  color: var(--ink);
}

ul { margin: 0.75rem 0; padding-left: 1.2rem; color: var(--ink-secondary); }
li { margin: 0.45rem 0; }
li::marker { color: var(--accent); }

strong { color: var(--ink); font-weight: 600; }

a { color: var(--accent); text-underline-offset: 2px; }

code {
  font-family: var(--mono);
  font-size: 0.88em;
  color: var(--ink);
  background: var(--hairline-soft);
  padding: 1px 5px;
  border-radius: 5px;
}

/* Blocks */

.callout {
  margin: 1.75rem 0 0;
  padding: 1.25rem 1.35rem;
  background: var(--accent-wash);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
}

.callout p { color: var(--accent-ink); }
.callout p:first-child { margin-top: 0; }
.callout p:last-child { margin-bottom: 0; }

.card {
  margin: 1rem 0;
  padding: 1.1rem 1.35rem;
  background: var(--card);
  border: 1px solid var(--hairline-soft);
  border-radius: var(--radius);
}

.card h3 { margin-top: 0.6rem; }
.card h3:first-child { margin-top: 0; }
.card p:last-child { margin-bottom: 0; }

/* A signal and what becomes of it: a table on a desk, a list on a phone. */

.rows { display: grid; gap: 1rem; margin: 1rem 0; }

.row {
  display: grid;
  gap: 0.35rem 1.5rem;
  padding: 1.1rem 1.35rem;
  background: var(--card);
  border: 1px solid var(--hairline-soft);
  border-radius: var(--radius);
}

.row dt {
  font-weight: 600;
  color: var(--ink);
}

.row dd {
  margin: 0;
  color: var(--ink-secondary);
}

.row .label {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

@media (min-width: 40rem) {
  .row { grid-template-columns: 11rem 1fr; align-items: baseline; }
  .row dt { grid-column: 1 / -1; }
}

footer {
  margin-top: 3.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--hairline);
  color: var(--ink-faint);
  font-size: 0.9rem;
}

footer p { color: inherit; }

/* Landing page */

/* The masthead tile is the app icon itself here, not the lettered stand-in. */
.mark img { display: block; width: 100%; height: 100%; border-radius: inherit; }

.masthead--home { border-bottom: 0; padding-bottom: 0.5rem; }

.price {
  margin: 0.5rem 0 0;
  font-family: var(--mono);
  font-size: 0.82rem;
  color: var(--ink-faint);
}

.cta { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; margin: 1.5rem 0 0; }

/* Apple's own badge artwork, self-hosted like everything else here. Its
   intrinsic box is 119.66 × 40, so the height alone fixes the proportions. */
.cta img { display: block; height: 52px; width: auto; }

.cta a { display: inline-block; border-radius: 9px; }
.cta a:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* Screenshots: three phones on a desk, one scrollable strip on a narrow
   screen. No lightbox, no script — they are illustrations, not a gallery. */
.shots {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(13rem, 1fr);
  gap: 1rem;
  margin: 2rem 0 0;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  padding-bottom: 0.5rem;
}

.shots figure { margin: 0; scroll-snap-align: start; }

.shots img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  background: var(--card);
}

.shots figcaption {
  margin-top: 0.6rem;
  font-size: 0.85rem;
  line-height: 1.45;
  color: var(--ink-faint);
}

.support { margin-top: 2rem; }
