/* Parking Floor Finder — one stylesheet for every page.
   The blue is the app's sign colour (Theme.sign, 11/79/216). */

:root {
  --sign: #0b4fd8;
  --sign-dark: #083ca6;
  --sign-soft: #e8efff;
  --ink: #0f1729;
  --ink-2: #4a5468;
  --line: #dde3ee;
  --page: #ffffff;
  --panel: #f5f7fb;
  --ok: #157f3b;
  --warn: #9a5b00;
  --radius: 14px;
  --max: 1080px;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --sign: #3b7bff;
    --sign-dark: #2a63e0;
    --sign-soft: #14213d;
    --ink: #eef2f8;
    --ink-2: #a4aec2;
    --line: #263046;
    --page: #0b1020;
    --panel: #121a2d;
    --ok: #4cc27a;
    --warn: #e0a24a;
  }
}

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

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

body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font: 17px/1.55 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--sign); }
a:hover { color: var(--sign-dark); }
img { max-width: 100%; display: block; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 760px; }

/* Header and footer */

.site-header { border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 700; letter-spacing: -0.01em; }
.brand img { width: 32px; height: 32px; border-radius: 8px; }
.site-nav { display: flex; gap: 20px; }
.site-nav a { color: var(--ink-2); text-decoration: none; font-size: 15px; font-weight: 500; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--ink); }

.site-footer { border-top: 1px solid var(--line); margin-top: 72px; padding: 28px 0 40px; color: var(--ink-2); font-size: 14px; }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }
.site-footer nav { display: flex; gap: 18px; }
.site-footer a { color: var(--ink-2); }

/* Type */

h1, h2, h3 { line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 0.5em; }
h1 { font-size: clamp(36px, 6vw, 60px); font-weight: 800; }
h2 { font-size: clamp(26px, 3.6vw, 36px); font-weight: 750; }
h3 { font-size: 20px; font-weight: 650; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }
.lede { font-size: clamp(18px, 2.2vw, 21px); color: var(--ink-2); max-width: 36em; }
.eyebrow { display: inline-block; font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--sign); margin-bottom: 14px; }

/* Hero */

.hero { padding: 64px 0 40px; }
.hero .wrap { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 48px; align-items: center; }
@media (max-width: 820px) {
  .hero { padding-top: 40px; }
  .hero .wrap { grid-template-columns: 1fr; }
}

/* The garage sign: the app's own home screen, as a picture */

.sign-card {
  background: var(--sign);
  color: #fff;
  border-radius: 28px;
  padding: 28px 28px 32px;
  box-shadow: 0 30px 60px -30px rgba(11, 79, 216, 0.55);
  max-width: 360px;
  margin: 0 auto;
  width: 100%;
}
.sign-card .where { font-size: 15px; font-weight: 600; opacity: 0.85; }
.sign-card .floor-label { font-size: 15px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.12em; margin-top: 18px; opacity: 0.9; }
.sign-card .floor { font-size: 168px; line-height: 0.9; font-weight: 800; letter-spacing: -0.04em; font-variant-numeric: tabular-nums; }
.sign-card .note { margin-top: 18px; font-size: 14px; opacity: 0.85; }

.notif {
  display: flex; gap: 12px; align-items: flex-start;
  background: rgba(255, 255, 255, 0.16);
  border-radius: 18px;
  padding: 12px 14px;
  margin-bottom: 22px;
  font-size: 14px;
  line-height: 1.35;
}
.notif img { width: 28px; height: 28px; border-radius: 7px; flex: none; }
.notif strong { display: block; font-size: 15px; }

/* Sign-up and feedback forms */

.form { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; max-width: 520px; }
.form input[type="email"], .form input[type="text"], .form textarea, .form select {
  flex: 1 1 240px;
  font: inherit;
  color: var(--ink);
  background: var(--page);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 13px 14px;
  min-width: 0;
}
.form input:focus, .form textarea:focus, .form select:focus { outline: 2px solid var(--sign); outline-offset: 1px; border-color: transparent; }
.stack { flex-direction: column; max-width: 620px; }
.stack label { font-size: 15px; font-weight: 600; margin-bottom: -4px; }
.form.stack input[type], .form.stack select, .form.stack textarea { flex: none; width: 100%; }
.stack textarea { min-height: 150px; resize: vertical; }
.hp { position: absolute; left: -9999px; }

.button {
  font: inherit; font-weight: 650;
  color: #fff; background: var(--sign);
  border: 0; border-radius: 12px;
  padding: 13px 20px;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
}
.button:hover { background: var(--sign-dark); color: #fff; }
.button[disabled] { opacity: 0.6; cursor: default; }
.stack .button { align-self: flex-start; }

.form-status { flex-basis: 100%; font-size: 15px; margin: 4px 0 0; min-height: 1.5em; }
.form-status.ok { color: var(--ok); }
.form-status.error { color: var(--warn); }
.fineprint { font-size: 14px; color: var(--ink-2); margin-top: 10px; }

/* Sections */

.section { padding: 56px 0; }
.section.alt { background: var(--panel); }
.section-head { max-width: 640px; margin-bottom: 32px; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: step; }
@media (max-width: 820px) { .steps { grid-template-columns: 1fr; } }
.step { background: var(--page); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.section:not(.alt) .step { background: var(--panel); border-color: transparent; }
.step::before {
  counter-increment: step;
  content: counter(step);
  display: inline-grid; place-items: center;
  width: 34px; height: 34px;
  border-radius: 9px;
  background: var(--sign); color: #fff;
  font-weight: 800;
  margin-bottom: 14px;
}
.step p { color: var(--ink-2); margin: 0; }

.answers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 820px) { .answers { grid-template-columns: 1fr; } }
.answer { border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.answer .big { font-size: 34px; font-weight: 800; letter-spacing: -0.02em; color: var(--sign); margin-bottom: 6px; }
.answer p { color: var(--ink-2); margin: 0; font-size: 16px; }

.points { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px 32px; padding: 0; margin: 0; list-style: none; }
@media (max-width: 680px) { .points { grid-template-columns: 1fr; } }
.points li { padding-left: 30px; position: relative; }
.points li::before { content: "✓"; position: absolute; left: 0; top: 0; color: var(--sign); font-weight: 800; }

/* Long-form pages: privacy, support */

.doc { padding: 48px 0 0; }
.doc h1 { font-size: clamp(32px, 5vw, 46px); }
.doc h2 { font-size: 24px; margin-top: 44px; }
.doc h3 { font-size: 18px; margin-top: 28px; }
.doc ul { padding-left: 1.2em; }
.doc li { margin-bottom: 0.4em; }
.doc .updated { color: var(--ink-2); font-size: 15px; }
.doc table { width: 100%; border-collapse: collapse; margin: 8px 0 20px; font-size: 15px; }
.doc th, .doc td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.doc th { font-weight: 650; background: var(--panel); }
.table-scroll { overflow-x: auto; }
.callout { background: var(--sign-soft); border-radius: var(--radius); padding: 18px 20px; margin: 20px 0; }
.callout p:last-child { margin-bottom: 0; }

.faq details { border-bottom: 1px solid var(--line); padding: 4px 0; }
.faq summary { cursor: pointer; font-weight: 650; padding: 14px 0; list-style: none; position: relative; padding-right: 32px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 10px; font-size: 24px; font-weight: 400; color: var(--ink-2); }
.faq details[open] summary::after { content: "−"; }
.faq details > div { padding: 0 0 16px; color: var(--ink-2); }
.faq details > div p:last-child { margin-bottom: 0; }

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