/* ParkOff public site — shared styles. Plain CSS, no build step, no framework.
   Palette matches the mobile app's theme exactly (src/theme/index.ts) — including the WCAG AA
   contrast fixes already made there: inkMuted/accentSoft/coral were darkened until every text
   usage clears 4.5:1 against both canvas and surface. Same rule applies here.
   Note: --ink (#173B35) is the app's actual primary color — a dark teal-green, not a literal
   navy blue — pulled directly from the theme file rather than approximated. */

:root {
  --canvas: #F5F1E8;
  --surface: #FFFDF8;
  --ink: #173B35;
  --ink-muted: #627069;
  --border: #DCDDD2;
  --accent: #D7F26A;
  --accent-soft: #56773B;
  --coral: #B34F3A;

  --radius-sm: 7px;
  --radius-md: 16px;
  --radius-lg: 22px;
  --radius-pill: 999px;

  --space-xs: 6px;
  --space-sm: 12px;
  --space-md: 18px;
  --space-lg: 24px;
  --space-xl: 36px;

  --max-width: 720px;
}

* {
  box-sizing: border-box;
}

html {
  /* Respect the visitor's own zoom/text-size preference — never disable pinch-zoom. */
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
}

.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: var(--space-lg) var(--space-md) var(--space-xl);
}

/* Brand mark — a small CSS-only echo of the app icon (dark rounded square, light dot),
   no image asset required. */
.brand {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  text-decoration: none;
  color: var(--ink);
}

.brand-mark {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-md);
  background: var(--ink);
  position: relative;
  flex-shrink: 0;
}

.brand-mark::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
  transform: translate(-50%, -50%);
}

.brand-name {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.2px;
}

h1, h2, h3 {
  color: var(--ink);
  font-weight: 800;
  line-height: 1.25;
}

h1 {
  font-size: clamp(28px, 6vw, 40px);
  letter-spacing: -0.5px;
  margin: var(--space-lg) 0 var(--space-sm);
}

h2 {
  font-size: 22px;
  margin: var(--space-xl) 0 var(--space-sm);
}

h3 {
  font-size: 17px;
  margin: var(--space-lg) 0 var(--space-xs);
}

p {
  margin: 0 0 var(--space-md);
}

ul, ol {
  margin: 0 0 var(--space-md);
  padding-left: 1.3em;
}

li {
  margin-bottom: var(--space-xs);
}

a {
  color: var(--ink);
  text-decoration-color: var(--accent-soft);
  text-underline-offset: 3px;
}

a:hover, a:focus {
  text-decoration-color: var(--ink);
}

a:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
}

.kicker {
  color: var(--ink-muted);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.subtitle {
  color: var(--ink-muted);
  font-size: 17px;
  max-width: 44ch;
}

.meta {
  color: var(--ink-muted);
  font-size: 14px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-md);
}

.button {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  background: var(--ink);
  color: var(--canvas);
  border-radius: var(--radius-pill);
  padding: 14px 24px;
  font-weight: 800;
  font-size: 15px;
  text-decoration: none;
  min-height: 44px; /* touch target */
}

.button:hover, .button:focus {
  opacity: 0.9;
}

.button-secondary {
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--border);
}

.audience-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-md);
  margin: var(--space-lg) 0;
}

@media (min-width: 560px) {
  .audience-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.screenshots {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: var(--space-sm);
  margin: var(--space-lg) 0;
}

.screenshot-slot {
  aspect-ratio: 9 / 19.5;
  border: 2px dashed var(--border);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--space-sm);
  color: var(--ink-muted);
  font-size: 13px;
  background: var(--surface);
}

footer {
  margin-top: var(--space-xl);
  padding-top: var(--space-lg);
  border-top: 1px solid var(--border);
  color: var(--ink-muted);
  font-size: 13px;
}

footer a {
  color: var(--ink-muted);
}

footer .links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm) var(--space-md);
  margin-bottom: var(--space-sm);
}

/* Policy-page specific: these render inside the app's in-app WebView (see app/legal/[doc].tsx),
   so there is no outer site chrome here at all — just the document itself. */
.doc-header {
  margin-bottom: var(--space-lg);
}

.doc-updated {
  color: var(--ink-muted);
  font-size: 13px;
  margin-bottom: var(--space-xl);
}

.doc-updated strong {
  color: var(--ink);
}

section + section {
  margin-top: var(--space-lg);
}
