/* Lost Dog Alerts website. Colors match the iPhone app. */

:root {
  color-scheme: light dark;
  --bg: #ffffff;
  --text: #1c1c1e;
  --text-2: #5b5c63;
  --accent: #1d63d8;
  --on-accent: #ffffff;
  --card: #f0f0f3;
  --border: #e0e1e6;
  --warn-text: #7a4300;
  --warn-bg: #fff1d6;
  --radius: 16px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #000000;
    --text: #f5f5f7;
    --text-2: #a3a4ab;
    --accent: #6ea8ff;
    --on-accent: #0b1220;
    --card: #212225;
    --border: #2e3135;
    --warn-text: #ffc970;
    --warn-bg: #33260a;
  }
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.55 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--accent);
  text-underline-offset: 0.15em;
}

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}

h1,
h2,
h3 {
  line-height: 1.2;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

p,
li {
  text-wrap: pretty;
}

.wrap {
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 20px;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -100px;
  z-index: 10;
  padding: 10px 16px;
  border-radius: 10px;
  background: var(--accent);
  color: var(--on-accent);
  font-weight: 600;
  text-decoration: none;
}

.skip-link:focus {
  top: 12px;
}

/* Header and footer */

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 72px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 700;
  font-size: 1.0625rem;
  text-decoration: none;
}

.brand img {
  width: 36px;
  height: 36px;
  border-radius: 8px;
}

.site-nav {
  display: flex;
  gap: 20px;
}

.site-nav a {
  color: var(--text-2);
  font-size: 0.9375rem;
  text-decoration: none;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--accent);
}

.site-footer {
  margin-top: 72px;
  border-top: 1px solid var(--border);
  color: var(--text-2);
  font-size: 0.9375rem;
}

.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  padding-top: 28px;
  padding-bottom: 40px;
}

.site-footer nav {
  display: flex;
  gap: 20px;
}

.site-footer a {
  color: var(--text-2);
}

.site-footer a:hover {
  color: var(--accent);
}

.site-footer p {
  margin: 0;
}

/* Home: top of the page */

.hero {
  display: grid;
  gap: 40px;
  align-items: center;
  padding: 24px 0 56px;
}

.hero h1 {
  margin: 0 0 18px;
  font-size: clamp(2.125rem, 4.5vw + 1rem, 3.5rem);
  line-height: 1.08;
  letter-spacing: -0.025em;
}

.lede {
  max-width: 34em;
  margin: 0 0 28px;
  color: var(--text-2);
  font-size: 1.1875rem;
}

.install {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 16px;
}

.install-soon {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  margin: 0;
  padding: 10px 18px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--card);
  font-weight: 600;
}

.install-soon svg {
  width: 20px;
  height: 20px;
  flex: none;
  color: var(--accent);
}

.install-note {
  margin: 0;
  color: var(--text-2);
  font-size: 0.9375rem;
}

/* An example alert on a lock screen. Decorative; described by its aria-label. */

.lock-screen {
  position: relative;
  margin: 0;
  padding: 36px 20px 24px;
  border-radius: 32px;
  background: linear-gradient(170deg, #3b8ef7 0%, #1d63d8 55%, #1449ad 100%);
  color: #ffffff;
  overflow: hidden;
  box-shadow: 0 1px 2px rgb(0 0 0 / 0.08), 0 20px 48px rgb(29 99 216 / 0.28);
}

.lock-screen::before {
  /* A big faint paw print, like the app icon. */
  content: "";
  position: absolute;
  right: -70px;
  bottom: -60px;
  width: 260px;
  height: 260px;
  background: url("/paw.svg") center / contain no-repeat;
  opacity: 0.1;
}

.lock-date {
  margin: 0;
  text-align: center;
  font-size: 1rem;
  font-weight: 600;
  opacity: 0.9;
}

.lock-time {
  margin: 0 0 28px;
  text-align: center;
  font-size: 4.5rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.02em;
}

.alert-card {
  position: relative;
  display: grid;
  grid-template-columns: 38px 1fr;
  gap: 12px;
  padding: 14px;
  border-radius: 22px;
  background: rgb(255 255 255 / 0.88);
  color: #1c1c1e;
  box-shadow: 0 8px 24px rgb(0 0 0 / 0.18);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
}

.alert-card img {
  width: 38px;
  height: 38px;
  border-radius: 9px;
}

.alert-meta {
  display: flex;
  justify-content: space-between;
  margin: 0 0 2px;
  color: #5b5c63;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.alert-title {
  margin: 0;
  font-size: 0.9375rem;
  font-weight: 700;
}

.alert-body {
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.35;
}

.alert-card.behind {
  /* The edge of an older alert, stacked under the new one. */
  height: 14px;
  margin: -6px 14px 0;
  padding: 0;
  border-radius: 0 0 18px 18px;
  background: rgb(255 255 255 / 0.45);
  box-shadow: none;
}

@media (min-width: 820px) {
  .hero {
    grid-template-columns: 1.1fr 1fr;
    gap: 56px;
    padding: 56px 0 96px;
  }

  .lock-screen {
    padding: 48px 28px 32px;
  }
}

/* Home: sections */

.section {
  padding: 24px 0;
}

.section > h2,
.section-title {
  margin: 0 0 20px;
  font-size: clamp(1.5rem, 2vw + 1rem, 2rem);
  letter-spacing: -0.02em;
}

.steps {
  display: grid;
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.steps li {
  padding: 22px;
  border-radius: var(--radius);
  background: var(--card);
}

.steps h3 {
  margin: 14px 0 6px;
  font-size: 1.125rem;
}

.steps p {
  margin: 0;
  color: var(--text-2);
}

.step-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--accent);
  color: var(--on-accent);
}

.step-icon svg {
  width: 24px;
  height: 24px;
}

@media (min-width: 720px) {
  .steps {
    grid-template-columns: repeat(3, 1fr);
  }
}

.notice {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 4px 16px;
  padding: 22px;
  border-radius: var(--radius);
  background: var(--warn-bg);
  color: var(--warn-text);
}

.notice svg {
  grid-row: span 2;
  width: 28px;
  height: 28px;
  margin-top: 2px;
}

.notice h2 {
  margin: 0;
  font-size: 1.25rem;
}

.notice p {
  margin: 0;
}

.columns {
  display: grid;
  gap: 40px;
}

.columns h2 {
  margin: 0 0 10px;
  font-size: 1.375rem;
}

.columns p {
  margin: 0 0 14px;
  color: var(--text-2);
}

@media (min-width: 720px) {
  .columns {
    grid-template-columns: 1fr 1fr;
    gap: 56px;
  }
}

.arrow-link {
  font-weight: 600;
  text-decoration: none;
}

.arrow-link:hover {
  text-decoration: underline;
}

/* Privacy, support, and not-found pages */

.prose {
  max-width: 720px;
  padding: 16px 0 24px;
}

.prose h1 {
  margin: 0 0 8px;
  font-size: clamp(2rem, 3vw + 1rem, 2.75rem);
  letter-spacing: -0.02em;
}

.prose h2 {
  margin: 2.2em 0 0.5em;
  font-size: 1.375rem;
}

.prose h3 {
  margin: 1.8em 0 0.35em;
  font-size: 1.0625rem;
}

.prose p,
.prose ul,
.prose ol {
  margin: 0 0 1em;
}

.prose ul,
.prose ol {
  padding-left: 1.3em;
}

.prose li + li {
  margin-top: 0.35em;
}

.prose .subtitle {
  margin-bottom: 1.6em;
  color: var(--text-2);
  font-size: 1.125rem;
}

.summary {
  margin: 0 0 8px;
  padding: 20px 22px;
  border-radius: var(--radius);
  background: var(--card);
}

.summary h2,
.contact-card h2 {
  margin-top: 0;
}

.summary ul {
  margin-bottom: 0;
}

.contact-card {
  margin: 0 0 8px;
  padding: 20px 22px;
  border-radius: var(--radius);
  background: var(--card);
}

.contact-card p:last-child {
  margin-bottom: 0;
}

.email {
  font-size: 1.25rem;
  font-weight: 700;
}

.button {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 12px 22px;
  border-radius: 14px;
  background: var(--accent);
  color: var(--on-accent);
  font-weight: 600;
  text-decoration: none;
}

.button:hover {
  filter: brightness(1.08);
}

/* Not-found page (missing.html) */

.not-found {
  padding-top: 40px;
}

.not-found-paw {
  width: 56px;
  height: 56px;
  margin-bottom: 20px;
  color: var(--accent);
  transform: rotate(-12deg);
}

.not-found-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 24px;
}
