/* SpareRoom Scout landing page. Plain CSS, no dependencies, one accent colour. */

:root {
  --accent: #2f5bd7;
  --accent-ink: #ffffff;
  --ink: #1d2230;
  --muted: #5b6270;
  --line: #e2e5ec;
  --card: #f6f7fa;
  --bg: #ffffff;
  --code-bg: #eef1f7;
  --max: 720px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --accent: #7c9cff;
    --accent-ink: #0f1424;
    --ink: #e8eaf0;
    --muted: #a3a9b8;
    --line: #2b3040;
    --card: #1a1e2a;
    --bg: #11141c;
    --code-bg: #232838;
  }
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  padding: 0 1rem 3rem;
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.55;
}

header, main, footer {
  max-width: var(--max);
  margin: 0 auto;
}

h1, h2, h3 { line-height: 1.2; margin: 0; }
h1 { font-size: 2.25rem; letter-spacing: -0.01em; }
h2 { font-size: 1.5rem; margin-top: 3rem; margin-bottom: 0.75rem; }
h3 { font-size: 1.0625rem; margin-bottom: 0.25rem; }
p  { margin: 0 0 1rem; }

a { color: var(--accent); }

code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.95em;
  background: var(--code-bg);
  padding: 0.1em 0.4em;
  border-radius: 4px;
  white-space: nowrap;
}

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

.hero { padding-top: 3rem; }

.eyebrow {
  margin: 0 0 0.5rem;
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.pitch {
  font-size: 1.1875rem;
  margin: 1rem 0 1.75rem;
  max-width: 40em;
}

.download { margin-bottom: 1rem; }

.button {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.4rem;
  background: var(--accent);
  color: var(--accent-ink);
  border-radius: 8px;
  font-weight: 600;
  font-size: 1.0625rem;
  text-decoration: none;
  vertical-align: middle;
}
.button:hover, .button:focus-visible { filter: brightness(1.08); }
.button .icon { width: 1.25em; height: 1.25em; }

.version {
  display: inline-block;
  margin-left: 0.75rem;
  color: var(--muted);
  vertical-align: middle;
}

.note {
  margin-top: 0.75rem;
  color: var(--muted);
  font-size: 0.9375rem;
}

/* Sections ---------------------------------------------------------- */

.lead { color: var(--muted); }

ol.steps, ol.plain, ol.flow {
  list-style: none;
  padding: 0;
  margin: 0;
}

.step, .then {
  position: relative;
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 1rem 1.25rem;
  align-items: start;
  padding: 1.25rem 1.25rem 1.25rem 1.5rem;
  margin-bottom: 0.75rem;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 10px;
}

.num {
  position: absolute;
  top: -0.6rem;
  left: -0.6rem;
  width: 1.9rem;
  height: 1.9rem;
  border-radius: 50%;
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 700;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.illus {
  width: 120px;
  height: 80px;
  color: var(--accent);
  flex-shrink: 0;
}

.step .text p, .then .text p { margin-bottom: 0; }

.then { margin-top: 1.25rem; background: transparent; }

ol.plain { counter-reset: n; }
ol.plain li {
  counter-increment: n;
  position: relative;
  padding-left: 2.25rem;
  margin-bottom: 0.9rem;
}
ol.plain li::before {
  content: counter(n);
  position: absolute;
  left: 0;
  top: 0.15rem;
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 50%;
  border: 2px solid var(--accent);
  color: var(--accent);
  font-size: 0.8125rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

ol.flow {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}
ol.flow li {
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  border-top: 3px solid var(--accent);
}
ol.flow h3 { color: var(--accent); }
ol.flow p { margin: 0; font-size: 0.9375rem; }

.aside {
  padding: 1rem 1.25rem;
  background: var(--card);
  border-left: 3px solid var(--accent);
  border-radius: 0 8px 8px 0;
}

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

footer {
  margin-top: 3.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.9375rem;
}

/* Small screens ----------------------------------------------------- */

@media (max-width: 480px) {
  h1 { font-size: 1.9rem; }
  .hero { padding-top: 2rem; }
  .step, .then { grid-template-columns: 1fr; }
  .illus { width: 100px; height: 66px; }
  .version { display: block; margin: 0.6rem 0 0; }
}

.hint {
  font-size: 0.92em;
  opacity: 0.8;
  margin-top: 0.5em;
}
