/* PageMarks — marketing site.
   One stylesheet, no framework, no build step. The whole site is static HTML so
   it deploys to Cloudflare Pages in seconds and cannot break. */

:root {
  --bg: #ffffff;
  --bg-soft: #f7f8fb;
  --text: #121926;
  --muted: #4b5565;
  --subtle: #98a2b3;
  --border: #e3e8ef;
  --accent: #6366f1;
  --accent-2: #8b5cf6;
  --radius: 14px;
  --max: 1080px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b0f19;
    --bg-soft: #121926;
    --text: #eef0f4;
    --muted: #98a2b3;
    --subtle: #697586;
    --border: #202939;
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 740px; }

/* — header — */
header {
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(12px);
  z-index: 10;
}
header .wrap {
  display: flex;
  align-items: center;
  gap: 16px;
  height: 64px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 650;
  font-size: 16px;
  color: var(--text);
  text-decoration: none;
}
.brand img { width: 30px; height: 30px; }
nav { margin-left: auto; display: flex; gap: 22px; align-items: center; }
nav a { color: var(--muted); text-decoration: none; font-size: 14px; font-weight: 500; }
nav a:hover { color: var(--text); }

/* — buttons — */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 20px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 120ms ease, box-shadow 120ms ease;
}
.btn:active { transform: scale(0.98); }
.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff;
  box-shadow: 0 6px 20px -6px rgba(99, 102, 241, 0.6);
}
.btn-primary:hover { box-shadow: 0 10px 28px -8px rgba(99, 102, 241, 0.7); }
.btn-ghost { border-color: var(--border); color: var(--text); background: transparent; }

/* — hero — */
.hero { padding: 88px 0 64px; text-align: center; }
.hero h1 {
  font-size: clamp(34px, 5.2vw, 54px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0 0 18px;
}
.hero p.lead {
  font-size: 19px;
  color: var(--muted);
  max-width: 620px;
  margin: 0 auto 28px;
}
.hero .cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.hero .fineprint { margin-top: 14px; font-size: 13px; color: var(--subtle); }

.shot {
  margin: 56px auto 0;
  max-width: 940px;
  border: 1px solid var(--border);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 30px 80px -30px rgba(16, 24, 40, 0.35);
}
.shot img { display: block; width: 100%; }

/* — sections — */
section { padding: 72px 0; }
section.soft { background: var(--bg-soft); border-block: 1px solid var(--border); }
h2 {
  font-size: clamp(26px, 3.4vw, 34px);
  letter-spacing: -0.02em;
  margin: 0 0 12px;
  text-align: center;
}
.sub { text-align: center; color: var(--muted); max-width: 560px; margin: 0 auto 44px; }

.grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
}
.card h3 { margin: 12px 0 6px; font-size: 16px; }
.card p { margin: 0; color: var(--muted); font-size: 14.5px; }
.ico {
  width: 36px; height: 36px;
  border-radius: 10px;
  display: grid; place-items: center;
  background: color-mix(in srgb, var(--accent) 12%, transparent);
  color: var(--accent);
  font-size: 18px;
}

/* — pricing — */
.plans {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  max-width: 720px;
  margin: 0 auto;
}
.plan {
  position: relative;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 26px;
  background: var(--bg);
}
.plan.featured {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent), 0 20px 50px -25px rgba(99, 102, 241, 0.5);
}
.badge {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff; font-size: 11px; font-weight: 700; letter-spacing: 0.04em;
  text-transform: uppercase; padding: 5px 12px; border-radius: 999px;
  white-space: nowrap;
}
.price { display: flex; align-items: baseline; gap: 6px; margin: 10px 0 4px; }
.price .amt { font-size: 40px; font-weight: 650; letter-spacing: -0.02em; }
.price .per { color: var(--muted); font-size: 15px; }
.save { color: #059669; font-weight: 600; font-size: 13px; }
.plan ul { list-style: none; padding: 0; margin: 18px 0 22px; }
.plan li { padding: 5px 0 5px 24px; position: relative; color: var(--muted); font-size: 14.5px; }
.plan li::before {
  content: '✓'; position: absolute; left: 0; color: var(--accent); font-weight: 700;
}

/* — faq — */
.faq { max-width: 720px; margin: 0 auto; }
details {
  border-bottom: 1px solid var(--border);
  padding: 16px 0;
}
summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 16px;
  list-style: none;
}
summary::-webkit-details-marker { display: none; }
summary::after { content: '+'; float: right; color: var(--subtle); font-weight: 400; }
details[open] summary::after { content: '−'; }
details p { color: var(--muted); margin: 10px 0 0; font-size: 15px; }

/* — legal pages — */
.legal { padding: 56px 0 80px; }
.legal h1 { font-size: 32px; letter-spacing: -0.02em; margin: 0 0 6px; }
.legal .updated { color: var(--subtle); font-size: 14px; margin: 0 0 36px; }
.legal h2 { text-align: left; font-size: 20px; margin: 34px 0 10px; }
.legal p, .legal li { color: var(--muted); font-size: 15.5px; }
.legal strong { color: var(--text); }

/* — footer — */
footer {
  border-top: 1px solid var(--border);
  padding: 40px 0;
  color: var(--subtle);
  font-size: 14px;
}
footer .wrap { display: flex; gap: 20px; flex-wrap: wrap; align-items: center; }
footer nav { margin-left: auto; gap: 18px; }
footer a { color: var(--muted); text-decoration: none; }
footer a:hover { color: var(--text); }
