/* Paperlight website — shared stylesheet.
   Palette and type match the app: porcelain, ink, and a green accent. */

:root {
  --bg: #f3f4f8;
  --surface: #ffffff;
  --ink: #14161f;
  --muted: #5c6070;
  --line: #e0e3ec;
  --accent: #0e8a5b;
  --accent-dark: #095e3e;
  --accent-soft: #e6f7ef;
  --amber: #f2a516;
  --radius: 18px;
  --page: 760px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f1117;
    --surface: #1c1f2a;
    --ink: #f3f4f8;
    --muted: #a6acbd;
    --line: #2b3040;
    --accent: #56c595;
    --accent-dark: #97debe;
    --accent-soft: #102b20;
  }
}

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .brand-name {
  font-family: "Bricolage Grotesque", "Manrope", Georgia, serif;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

h1 { font-size: 2.1rem; margin: 0 0 0.3rem; }
h2 { font-size: 1.3rem; margin: 2.4rem 0 0.6rem; }
h3 { font-size: 1.05rem; margin: 1.6rem 0 0.4rem; }
p, ul, ol { margin: 0 0 1rem; }
ul, ol { padding-left: 1.25rem; }
li { margin-bottom: 0.4rem; }

a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--accent-dark); }

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

/* ── Header ─────────────────────────────────────────────── */

.site-header {
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: inherit;
}

.brand img { width: 34px; height: 34px; display: block; }
.brand-name { font-size: 1.25rem; }

.site-nav { margin-left: auto; display: flex; gap: 18px; font-size: 0.95rem; }
.site-nav a { color: var(--muted); text-decoration: none; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--accent); }

/* ── Page ───────────────────────────────────────────────── */

main { padding: 48px 0 64px; }

.lede { color: var(--muted); font-size: 1.02rem; }

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 22px;
  margin: 1.4rem 0;
}

.card-accent { background: var(--accent-soft); border-color: transparent; }

.summary li { margin-bottom: 0.55rem; }

table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0 1.6rem;
  font-size: 0.95rem;
}

th, td {
  text-align: left;
  vertical-align: top;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
}

th { font-weight: 700; }
td:first-child { width: 34%; }

.meta { color: var(--muted); font-size: 0.9rem; }

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

.site-footer {
  border-top: 1px solid var(--line);
  background: var(--surface);
  padding: 28px 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; }
.site-footer nav { margin-left: auto; display: flex; gap: 18px; }
.site-footer a { color: var(--muted); text-decoration: none; }
.site-footer a:hover { color: var(--accent); }

@media (max-width: 560px) {
  body { font-size: 16px; }
  h1 { font-size: 1.7rem; }
  td:first-child { width: auto; }
  table, tbody, tr, td, th { display: block; }
  th { display: none; }
  td { border: none; padding: 2px 0; }
  tr { border-bottom: 1px solid var(--line); padding: 10px 0; display: block; }
  td:first-child { font-weight: 700; }
  .site-footer nav { margin-left: 0; }
}

/* ── Home page ──────────────────────────────────────────── */

.hero { padding: 56px 0 8px; text-align: center; }
.hero img { width: 92px; height: 92px; margin-bottom: 18px; }
.hero h1 { font-size: 2.6rem; margin-bottom: 0.4rem; }
.hero .tagline { color: var(--accent); font-weight: 700; font-size: 1.1rem; margin-bottom: 0.8rem; }
.hero p { color: var(--muted); max-width: 40rem; margin: 0 auto 1.4rem; font-size: 1.05rem; }

.actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-bottom: 8px; }

.btn {
  display: inline-block;
  padding: 12px 22px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  border: 2px solid var(--accent);
}
.btn:hover { background: var(--accent-dark); border-color: var(--accent-dark); color: #fff; }
.btn-ghost { background: transparent; color: var(--accent); }
.btn-ghost:hover { background: var(--accent-soft); color: var(--accent-dark); }
.btn[aria-disabled="true"] { opacity: 0.55; pointer-events: none; }

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  margin: 1.4rem 0 0;
}

.feature { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.feature h3 { margin: 0 0 0.3rem; }
.feature p { margin: 0; color: var(--muted); font-size: 0.97rem; }
.feature .dot {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--accent-soft); color: var(--accent);
  display: grid; place-items: center; font-weight: 700; margin-bottom: 12px;
}

.section { padding: 40px 0 8px; }
.section > h2 { margin-top: 0; }
.section-lede { color: var(--muted); max-width: 44rem; }

.steps { counter-reset: step; list-style: none; padding: 0; }
.steps li { counter-increment: step; position: relative; padding-left: 44px; margin-bottom: 14px; }
.steps li::before {
  content: counter(step);
  position: absolute; left: 0; top: 0;
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--accent); color: #fff;
  display: grid; place-items: center; font-weight: 700; font-size: 0.9rem;
}

.note { color: var(--muted); font-size: 0.92rem; }
