/*
 * TownEye marketing site.
 *
 * Same design system as the app: Base's greys and type scale, Figtree, the six
 * category colours. A visitor who lands here and then installs the app should
 * recognise it immediately.
 *
 * Plain CSS on purpose — no build step, no dependencies, one person maintains it.
 */

:root {
  --ground: #ffffff;
  --panel: #f6f6f6;
  --panel-deep: #eeeeee;
  --ink: #000000;
  --ink-muted: #545454;
  --ink-faint: #6b6b6b;
  --rule: #e2e2e2;
  --paper: #ffffff;

  --fly-tipping: #0e8345;
  --theft: #de1135;
  --antisocial: #d79900;
  --pet: #276ef1;
  --infrastructure: #944de7;
  --other: #5e5e5e;

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;

  --measure: 62ch;
  --page: 1120px;
}

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

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

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: Figtree, system-ui, -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--ink); color: var(--paper); }

a { color: inherit; }

img { max-width: 100%; display: block; }

.wrap {
  width: 100%;
  max-width: var(--page);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--rule);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 68px;
}

.wordmark {
  font-weight: 700;
  font-size: 20px;
  letter-spacing: -0.02em;
  text-decoration: none;
  margin-right: auto;
}

.site-nav {
  display: flex;
  gap: 24px;
  font-weight: 500;
}

.site-nav a { text-decoration: none; color: var(--ink-muted); }
.site-nav a:hover { color: var(--ink); }

/* ---------- Type ---------- */

h1, h2, h3 { letter-spacing: -0.03em; line-height: 1.1; margin: 0; }

h1 { font-size: clamp(40px, 7vw, 68px); font-weight: 700; }
h2 { font-size: clamp(28px, 4vw, 40px); font-weight: 700; }
h3 { font-size: 20px; font-weight: 700; letter-spacing: -0.01em; }

.lede {
  font-size: clamp(18px, 2.2vw, 21px);
  color: var(--ink-muted);
  max-width: var(--measure);
  margin: 20px 0 0;
}

p { margin: 16px 0 0; max-width: var(--measure); }

section { padding: 88px 0; border-top: 1px solid var(--rule); }
section:first-of-type { border-top: 0; }

.section-intro { max-width: var(--measure); }
.section-intro p { color: var(--ink-muted); }

/* ---------- Hero ---------- */

.hero { padding: 56px 0 80px; }

.hero .wrap {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 64px;
  align-items: center;
}

.place {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--panel);
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-muted);
  margin-bottom: 24px;
}

.place::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--fly-tipping);
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 24px;
  border-radius: var(--radius-sm);
  font-weight: 500;
  font-size: 16px;
  text-decoration: none;
  border: 0;
  cursor: pointer;
}

.button--primary { background: var(--ink); color: var(--paper); }
.button--primary:hover { opacity: 0.85; }
.button--secondary { background: var(--panel); color: var(--ink); }
.button--secondary:hover { background: var(--panel-deep); }

.note { font-size: 14px; color: var(--ink-faint); margin-top: 16px; }

.shot {
  border-radius: 28px;
  border: 1px solid var(--rule);
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.16);
  max-width: 320px;
  margin-inline: auto;
}

/* A whole phone screen is 1688px tall; shown at full height it dwarfs the
   copy beside it, so the hero shows the top of the screen and crops the rest. */
.hero .shot { max-width: 300px; }
.hero .shot img { height: 560px; object-fit: cover; object-position: top; }

/* ---------- Steps ---------- */

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
}

.step {
  background: var(--panel);
  border-radius: var(--radius-md);
  padding: 28px;
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper);
  font-weight: 700;
  font-size: 15px;
  margin-bottom: 20px;
}

.step p { color: var(--ink-muted); margin-top: 12px; }

/* ---------- Categories ---------- */

.chips { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 40px; }

.chip {
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  color: var(--paper);
  font-weight: 500;
  font-size: 15px;
}

.chip--fly-tipping { background: var(--fly-tipping); }
.chip--theft { background: var(--theft); }
.chip--antisocial { background: var(--antisocial); color: var(--ink); }
.chip--pet { background: var(--pet); }
.chip--infrastructure { background: var(--infrastructure); }
.chip--other { background: var(--other); }

/* ---------- Split ---------- */

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.split--reverse .split-media { order: -1; }

/* ---------- Promises ---------- */

.promises { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-top: 40px; }

.promise {
  display: flex;
  gap: 14px;
  padding: 24px;
  background: var(--panel);
  border-radius: var(--radius-md);
}

.promise svg { flex: none; margin-top: 2px; }
.promise p { margin: 6px 0 0; color: var(--ink-muted); font-size: 15px; }
.promise strong { font-weight: 700; }

/* ---------- Closing ---------- */

.closing {
  background: var(--ink);
  color: var(--paper);
  border-radius: var(--radius-lg);
  padding: 64px 48px;
  margin: 88px 0;
  text-align: center;
}

.closing h2 { color: var(--paper); }
.closing p { color: #cbcbcb; margin-inline: auto; }
.closing .button--primary { background: var(--paper); color: var(--ink); margin-top: 32px; }

/* ---------- Footer ---------- */

.site-footer {
  border-top: 1px solid var(--rule);
  padding: 48px 0 64px;
  font-size: 15px;
  color: var(--ink-muted);
}

.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 24px; align-items: baseline; }
.site-footer nav { display: flex; gap: 24px; margin-left: auto; }
.site-footer a { color: var(--ink-muted); }

/* ---------- Policy pages ---------- */

.policy { padding: 64px 0 96px; }
.policy .wrap { max-width: 760px; }
.policy h2 { font-size: 24px; margin-top: 48px; }
.policy p, .policy li { color: var(--ink-muted); max-width: none; }
.policy ul { margin: 16px 0 0; padding-left: 22px; }
.policy li { margin-top: 8px; }
.policy .updated { font-size: 14px; color: var(--ink-faint); margin-top: 8px; }

.callout {
  background: var(--panel);
  border-radius: var(--radius-md);
  padding: 24px;
  margin-top: 32px;
}

.callout p { color: var(--ink); margin: 0; }

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
  .hero .wrap, .split { grid-template-columns: 1fr; gap: 40px; }
  .split--reverse .split-media { order: 0; }
  .steps, .promises { grid-template-columns: 1fr; }
  section { padding: 64px 0; }
  .closing { padding: 48px 24px; margin: 64px 0; }
  .site-nav { gap: 16px; font-size: 15px; }
}

@media (max-width: 520px) {
  .wrap { padding: 0 20px; }
  .site-nav a[data-optional] { display: none; }
}
