/* Explorae's web pages, in the app's own palette: lib/app/theme.dart,
   MapPalette. Light matches the map; dark is the "city lights" theme. */

:root {
  --ground: #FFFFFF;
  --surface: #FFFFFF;
  --land: #E1E2E4;
  --hairline: rgba(11, 11, 11, 0.10);
  --ink: #0B0B0B;
  --ink-2: #52514E;
  --ink-3: #6B6963;
  --glow: #01AACA;
  --link: #006C81;
  --glow-soft: rgba(1, 170, 202, 0.20);
  --tint: rgba(1, 170, 202, 0.07);
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --ground: #090F14;
    --surface: #141A20;
    --land: #252B30;
    --hairline: rgba(255, 255, 255, 0.12);
    --ink: #EEF0F3;
    --ink-2: #B9BEC4;
    --ink-3: #93999E;
    --glow: #3DDAF5;
    --link: #8FE7FD;
    --glow-soft: rgba(61, 218, 245, 0.28);
    --tint: rgba(61, 218, 245, 0.08);
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  /* The phone's own face, as in the app: Roboto on Android, SF on iPhone. */
  font-family: Roboto, -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  font-size: 16.5px;
  line-height: 1.65;
  padding-inline: 20px;
  padding-block: 0 64px;
}

.page {
  max-width: 680px;
  margin: 0 auto;
}

/* ── Masthead: the icon glowing, like the welcome screen ─────────────── */

.masthead {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-block: 40px 28px;
}

.mark {
  position: relative;
  flex: none;
  width: 56px;
  height: 56px;
}

.mark::before {
  content: "";
  position: absolute;
  inset: -22px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--glow-soft) 0%, transparent 70%);
}

.mark img {
  position: relative;
  display: block;
  width: 56px;
  height: 56px;
  border-radius: 13px;
}

.brand {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.brand a {
  color: var(--ink);
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: -0.01em;
  text-decoration: none;
}

.brand span {
  color: var(--ink-3);
  font-size: 0.88rem;
}

h1 {
  margin: 0 0 6px;
  font-size: clamp(1.9rem, 5.5vw, 2.4rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.12;
  text-wrap: balance;
}

.updated {
  margin: 0 0 28px;
  color: var(--ink-3);
  font-size: 0.9rem;
}

h2 {
  margin: 40px 0 8px;
  font-size: 1.22rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.3;
  text-wrap: balance;
}

h3 {
  margin: 24px 0 4px;
  font-size: 1rem;
  font-weight: 600;
}

p { margin: 0 0 14px; }

ul, ol { margin: 0 0 14px; padding-inline-start: 1.25em; }

li { margin-bottom: 8px; }

li::marker { color: var(--glow); }

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

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

strong { font-weight: 600; }

/* ── The in-brief card, drawn like the app's MapCard ─────────────────── */

.brief {
  margin: 0 0 8px;
  padding: 18px 20px 6px;
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: 14px;
}

.brief h2 {
  margin: 0 0 10px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.brief ul { padding-inline-start: 0; list-style: none; }

.brief li {
  position: relative;
  padding-inline-start: 22px;
}

/* A small glowing city light for each point. */
.brief li::before {
  content: "";
  position: absolute;
  inset-inline-start: 2px;
  top: 0.62em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--glow);
  box-shadow: 0 0 0 3px var(--tint), 0 0 10px var(--glow-soft);
}

/* ── Steps, for deleting an account ──────────────────────────────────── */

.steps {
  counter-reset: step;
  list-style: none;
  padding-inline-start: 0;
}

.steps li {
  counter-increment: step;
  position: relative;
  padding-inline-start: 38px;
  min-height: 26px;
  margin-bottom: 12px;
}

.steps li::before {
  content: counter(step);
  position: absolute;
  inset-inline-start: 0;
  top: 0;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--link);
  background: var(--tint);
  border: 1px solid var(--glow-soft);
}

.path {
  font-weight: 600;
  white-space: nowrap;
}

.callout {
  margin: 20px 0;
  padding: 14px 18px;
  border-radius: 14px;
  background: var(--tint);
  border: 1px solid var(--glow-soft);
}

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

/* ── Footer ──────────────────────────────────────────────────────────── */

footer {
  margin-top: 56px;
  padding-top: 20px;
  border-top: 1px solid var(--hairline);
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  font-size: 0.9rem;
  color: var(--ink-3);
}

footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
}

footer a { color: var(--ink-2); text-decoration: none; }

footer a:hover { color: var(--link); text-decoration: underline; }

footer a[aria-current="page"] { color: var(--ink); font-weight: 600; }

footer .copyright { margin-inline-start: auto; }
