/* Making Invisible Symptoms Visible — Pieffer Products
   Mobile-first, accessible, dependency-free. System font stack (no web fonts). */

:root {
  --purple: #7d47b7;
  --purple-dark: #5f2f94;
  --purple-deep: #4a2575;
  --teal: #2f9e9c;
  --teal-dark: #237c7a;
  --ink: #1d1b26;
  --body: #33313d;
  --muted: #5c5a68;
  --bg: #ffffff;
  --bg-soft: #f6f4fb;
  --border: #ddd6ee;
  --radius: 14px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.125rem;
  line-height: 1.65;
  color: var(--body);
  background: var(--bg);
}

img { max-width: 100%; height: auto; }

/* Skip link */
.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--purple-deep); color: #fff;
  padding: 12px 20px; border-radius: 0 0 10px 0; z-index: 100;
}
.skip-link:focus { left: 0; }

/* Header */
.site-header {
  background: #fff;
  border-bottom: 2px solid var(--border);
  padding: 12px 20px;
}
.header-inner {
  max-width: 1080px; margin: 0 auto;
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand img { height: 52px; width: auto; }
.brand-name {
  font-size: 1.25rem; font-weight: 700; color: var(--purple-deep);
  line-height: 1.2;
}
.site-nav { margin-left: auto; }
.site-nav ul {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-wrap: wrap; gap: 6px;
}
.site-nav a {
  display: inline-block;
  padding: 12px 14px;
  min-height: 48px;
  color: var(--purple-deep);
  text-decoration: none; font-weight: 600; font-size: 1rem;
  border-radius: 10px;
}
.site-nav a:hover { background: var(--bg-soft); }
.site-nav a[aria-current="page"] {
  background: var(--purple-deep); color: #fff;
}

/* Layout */
.wrap { max-width: 960px; margin: 0 auto; padding: 0 20px; }
section.block { padding: 40px 0; }
section.block.alt { background: var(--bg-soft); }

/* Hero */
.hero {
  background: linear-gradient(125deg, #5f2f94 0%, #4a6fa5 55%, #237c7a 100%);
  color: #fff;
  padding: 56px 0;
}
.hero h1 {
  font-size: 2.4rem; line-height: 1.2; margin: 0 0 16px;
  color: #fff;
}
.hero p.lede { font-size: 1.25rem; max-width: 40em; margin: 0 0 28px; color: #fff; }
.hero .btn { margin: 6px 8px 6px 0; }

/* Type */
h1, h2, h3 { color: var(--ink); line-height: 1.3; }
h2 { font-size: 1.75rem; margin: 0 0 18px; }
h3 { font-size: 1.3rem; margin: 28px 0 10px; }
p { margin: 0 0 16px; }
.story p { margin-bottom: 18px; }
.closing-line {
  font-size: 1.35rem; font-weight: 700; color: var(--purple-deep);
  margin-top: 28px;
}

/* Buttons */
.btn {
  display: inline-block;
  min-height: 54px;
  padding: 15px 28px;
  font-size: 1.1rem; font-weight: 700;
  color: #fff; text-decoration: none;
  background: linear-gradient(120deg, var(--purple) 0%, #4a8fb5 60%, var(--teal) 100%);
  border: none; border-radius: 12px;
  cursor: pointer;
  text-align: center;
}
.btn:hover, .btn:focus-visible { filter: brightness(1.08); }
.btn:focus-visible { outline: 3px solid var(--purple-deep); outline-offset: 3px; }
.btn-secondary {
  background: #fff; color: var(--purple-deep);
  border: 2px solid var(--purple);
}
.btn-secondary:hover, .btn-secondary:focus-visible { background: var(--bg-soft); }
.btn-coming {
  background: #e9e4f3; color: var(--muted);
  cursor: default;
}

/* Product cards */
.product-grid {
  display: grid; gap: 20px;
  grid-template-columns: 1fr;
  margin: 24px 0;
}
@media (min-width: 700px) {
  .product-grid { grid-template-columns: 1fr 1fr; }
}
.card {
  border: 2px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  background: #fff;
  display: flex; flex-direction: column;
}
.card h3 { margin-top: 0; color: var(--purple-deep); }
.card .price {
  font-size: 1.5rem; font-weight: 800; color: var(--ink);
  margin: 4px 0 12px;
}
.card .price small { font-size: 1rem; font-weight: 600; color: var(--muted); }
.card p.desc { flex: 1; }
.card .btn { margin-top: 12px; align-self: flex-start; }
.tier-row {
  display: flex; flex-wrap: wrap; gap: 10px; align-items: center;
  margin-top: 12px;
}
.tier-row .btn { padding: 12px 18px; min-height: 50px; font-size: 1rem; }
.badge {
  display: inline-block;
  background: var(--purple-deep); color: #fff;
  font-size: 0.85rem; font-weight: 700;
  padding: 6px 14px; border-radius: 999px;
  margin-bottom: 10px;
}
.badge.soon { background: var(--muted); }
.note { color: var(--muted); font-size: 1rem; }

/* Highlight callout (free Paper Companion note) */
.callout {
  border: 2px solid var(--purple); border-radius: var(--radius);
  background: #fff; padding: 20px 22px; margin: 0 0 24px;
}
.callout p { margin: 0; }
.callout strong { color: var(--purple-deep); }

/* FAQ */
.faq dt {
  font-weight: 700; color: var(--ink); font-size: 1.2rem;
  margin: 22px 0 6px;
}
.faq dd { margin: 0 0 8px; }

/* Feature list (how it works) */
.steps { list-style: none; margin: 0; padding: 0; counter-reset: step; }
.steps li {
  counter-increment: step;
  border: 2px solid var(--border); border-radius: var(--radius);
  padding: 24px 24px 24px 84px;
  margin-bottom: 18px; position: relative; background: #fff;
}
.steps li::before {
  content: counter(step);
  position: absolute; left: 24px; top: 22px;
  width: 44px; height: 44px; border-radius: 50%;
  background: linear-gradient(135deg, var(--purple), var(--teal));
  color: #fff; font-weight: 800; font-size: 1.3rem;
  display: flex; align-items: center; justify-content: center;
}
.steps h3 { margin-top: 0; }

/* Footer */
.site-footer {
  background: var(--ink); color: #d9d6e4;
  padding: 36px 20px; margin-top: 20px;
  font-size: 1rem;
}
.site-footer .wrap { max-width: 960px; }
.site-footer p { margin: 0 0 8px; }
.site-footer .disclaimer { color: #b9b5c9; }

/* Larger screens */
@media (min-width: 700px) {
  .hero h1 { font-size: 3rem; }
  h2 { font-size: 2rem; }
}

/* Product mockup imagery */
.section-img { margin: 0 0 1.5rem; }
.section-img img {
  width: 100%;
  max-width: 640px;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 4px 24px rgba(0,0,0,.12);
  display: block;
  margin: 0 auto;
}
.hero-img { margin: 2rem 0 0; }
.hero-img img {
  width: 100%;
  max-width: 420px;
  height: auto;
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(0,0,0,.18);
  display: block;
  margin: 0 auto;
}
