/* Pacemade site. Plain CSS, no build step. Colors come from the app icon. */

:root {
  --bg: #ffffff;
  --bg-soft: #f3f5fa;
  --text: #0a1020;
  --muted: #4b5675;
  --accent: #ff8a1f;
  --link: #1d4ed8;
  --border: #dde2ee;
  --card: #ffffff;
  --radius: 14px;
  --measure: 40rem;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0a1020;
    --bg-soft: #111a30;
    --text: #eef1f8;
    --muted: #a9b3cc;
    --link: #8fb0ff;
    --border: #25314f;
    --card: #111a30;
  }
}

* { box-sizing: border-box; }

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

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

a { color: var(--link); }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 4px; }

.wrap { max-width: 64rem; margin: 0 auto; padding: 0 1.25rem; }
/* Reading-width text that stays on the same left edge as the header and footer. */
.narrow > * { max-width: var(--measure); }

/* Header */
.site-header { border-bottom: 1px solid var(--border); }
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; padding-top: 0.9rem; padding-bottom: 0.9rem;
}
.brand { display: flex; align-items: center; gap: 0.6rem; color: var(--text); text-decoration: none; font-weight: 700; font-size: 1.15rem; }
.brand img { width: 36px; height: 36px; border-radius: 8px; }
.site-header nav { display: flex; gap: 1.25rem; }
.site-header nav a { color: var(--muted); text-decoration: none; font-weight: 500; }
.site-header nav a:hover, .site-header nav a[aria-current="page"] { color: var(--text); }

/* Hero */
.hero { padding: 4rem 0 3rem; }
.hero .wrap { display: grid; gap: 2.5rem; align-items: center; }
.hero h1 { font-size: clamp(2.2rem, 6vw, 3.4rem); line-height: 1.1; margin: 0 0 1rem; letter-spacing: -0.02em; }
.hero h1 em { font-style: normal; color: var(--accent); }
.lead { font-size: 1.2rem; color: var(--muted); margin: 0 0 1.5rem; max-width: 34rem; }
/* height:auto matters: the img's height attribute would otherwise override the square aspect ratio. */
.hero .icon { width: min(14rem, 60%); height: auto; aspect-ratio: 1; border-radius: 22.37%; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25); justify-self: center; }
@media (min-width: 52rem) {
  .hero .wrap { grid-template-columns: 1.4fr 1fr; }
}

.notice {
  display: inline-block; padding: 0.5rem 0.9rem; border-radius: 999px;
  background: var(--bg-soft); border: 1px solid var(--border); font-size: 0.95rem; color: var(--muted);
}

/* Sections */
section { padding: 2.5rem 0; }
section.soft { background: var(--bg-soft); }
h2 { font-size: 1.7rem; line-height: 1.2; margin: 0 0 1.25rem; letter-spacing: -0.01em; }
h3 { font-size: 1.15rem; margin: 1.75rem 0 0.5rem; }

.steps { list-style: none; counter-reset: step; padding: 0; margin: 0; display: grid; gap: 1rem; }
@media (min-width: 46rem) { .steps { grid-template-columns: repeat(3, 1fr); } }
.steps li {
  counter-increment: step; background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.25rem;
}
.steps li::before {
  content: counter(step); display: inline-grid; place-items: center; width: 2rem; height: 2rem;
  border-radius: 50%; background: var(--accent); color: #0a1020; font-weight: 700; margin-bottom: 0.6rem;
}
.steps strong { display: block; margin-bottom: 0.25rem; font-size: 1.1rem; }
.steps span { color: var(--muted); }

.features { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.9rem 2rem; }
@media (min-width: 46rem) { .features { grid-template-columns: repeat(2, 1fr); } }
.features li { padding-left: 1.6rem; position: relative; }
.features li::before { content: ""; position: absolute; left: 0; top: 0.6em; width: 0.7rem; height: 0.7rem; border-radius: 50%; background: var(--accent); }
.features strong { display: block; }
.features span { color: var(--muted); }

.screens { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr)); }
.screens figure { margin: 0; }
.screens img { width: 100%; height: auto; border-radius: 18px; border: 1px solid var(--border); display: block; }
.screens figcaption { margin-top: 0.6rem; color: var(--muted); font-size: 0.95rem; }

/* Text pages */
.page { padding: 2.5rem 0 4rem; }
.page h1 { font-size: clamp(2rem, 5vw, 2.6rem); line-height: 1.15; margin: 0 0 0.5rem; letter-spacing: -0.02em; }
.page p, .page li { max-width: var(--measure); }
.page .meta { color: var(--muted); margin: 0 0 2rem; }
.page h2 { margin-top: 2.5rem; font-size: 1.45rem; }
.page ul, .page ol { padding-left: 1.4rem; }
.page li { margin: 0.35rem 0; }
.faq dt { font-weight: 700; margin-top: 1.4rem; }
.faq dd { margin: 0.3rem 0 0; max-width: var(--measure); }

/* Footer */
.site-footer { border-top: 1px solid var(--border); padding: 2rem 0 3rem; color: var(--muted); font-size: 0.92rem; }
.site-footer .wrap { display: grid; gap: 0.6rem; }
.site-footer nav { display: flex; gap: 1.25rem; flex-wrap: wrap; }
.site-footer p { margin: 0; max-width: var(--measure); }

@media (prefers-reduced-motion: no-preference) {
  a { transition: color 0.15s; }
}
