/* MadePure Media Corp — shared styles. Light, editorial, no JavaScript anywhere on the site.
   Served from 'self' so the CSP can keep style-src free of 'unsafe-inline'. */

:root {
  --bg: #fbfaf6;
  --bg-alt: #f2efe7;
  --ink: #14211d;
  --ink-soft: #3c4a45;
  --ink-muted: #6b7772;
  --line: #e2ddd0;
  --accent: #0e7a63;
  --accent-deep: #0a5a49;
  --accent-tint: #dcefe9;

  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: ui-serif, "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .001ms !important; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent-deep); }
img { max-width: 100%; display: block; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 28px; }

/* ---------- Nav ---------- */
.nav { position: sticky; top: 0; z-index: 20; background: rgba(251,250,246,.9); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand img { width: 30px; height: 30px; }
.brand span { font-family: var(--font-display); font-weight: 700; font-size: 20px; letter-spacing: -.01em; }
.nav-links { display: flex; align-items: center; gap: 26px; font-size: 14.5px; font-weight: 600; }
.nav-links a { text-decoration: none; color: var(--ink-soft); transition: color .15s ease; }
.nav-links a:hover, .nav-links a.active { color: var(--accent-deep); }
.brand span { white-space: nowrap; }
@media (max-width: 560px) { .nav .wrap { padding: 0 18px; } .nav-links { gap: 14px; font-size: 13px; } .brand { gap: 8px; } .brand img { width: 26px; height: 26px; } .brand span { font-size: 15px; } }

/* ---------- Buttons ---------- */
.btn { display: inline-block; text-decoration: none; font-weight: 600; font-size: 15px; padding: 13px 24px; border-radius: 999px; transition: background .15s ease, color .15s ease; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-deep); }
.btn-ghost { color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--bg); }

/* ---------- Home ---------- */
.hero { padding: 104px 0 96px; }
.kicker { font-size: 12.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); margin: 0 0 18px; }
.hero h1 { font-family: var(--font-display); font-weight: 700; font-size: clamp(38px, 6.4vw, 68px); line-height: 1.06; letter-spacing: -.02em; margin: 0 0 24px; max-width: 14em; text-wrap: balance; }
.hero p.lede { font-size: clamp(17px, 2vw, 20px); color: var(--ink-soft); max-width: 36em; margin: 0 0 36px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }

section.block { padding: 88px 0; }
section.alt { background: var(--bg-alt); }
.block h2 { font-family: var(--font-display); font-weight: 700; font-size: clamp(28px, 4vw, 40px); line-height: 1.15; letter-spacing: -.015em; margin: 0 0 18px; text-wrap: balance; }
.block .intro { color: var(--ink-soft); font-size: 17px; max-width: 38em; margin: 0 0 44px; }

.pillars { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 22px; }
.pillar { background: var(--bg); border: 1px solid var(--line); border-radius: 18px; padding: 28px 26px; }
.pillar .num { font-family: var(--font-display); font-size: 15px; font-weight: 700; color: var(--accent); margin-bottom: 14px; }
.pillar h3 { font-size: 18px; margin: 0 0 8px; }
.pillar p { margin: 0; color: var(--ink-soft); font-size: 15px; }

.product { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; background: var(--ink); color: #fff; border-radius: 22px; padding: 38px 40px; }
.product h3 { font-family: var(--font-display); font-size: 30px; margin: 0 0 8px; letter-spacing: -.01em; }
.product p { margin: 0; color: #c5d1cc; max-width: 34em; }
.product .tag { display: inline-block; font-size: 11.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--accent-tint); margin-bottom: 12px; }
.product .btn { background: #fff; color: var(--ink); }
.product .btn:hover { background: var(--accent-tint); }

.cta { text-align: center; }
.cta h2 { margin-left: auto; margin-right: auto; max-width: 16em; }
.cta p { color: var(--ink-soft); margin: 0 auto 30px; max-width: 32em; font-size: 17px; }

/* ---------- Document pages (privacy, terms, contact, 404) ---------- */
.doc-shell { padding: 72px 0 110px; }
.doc-header { max-width: 700px; margin: 0 auto 38px; }
.doc-header h1 { font-family: var(--font-display); font-weight: 700; font-size: clamp(32px, 5vw, 46px); letter-spacing: -.02em; line-height: 1.1; margin: 0 0 10px; text-wrap: balance; }
.doc-updated { font-size: 13px; color: var(--ink-muted); font-weight: 600; }
article { max-width: 700px; margin: 0 auto; font-size: 16px; color: var(--ink-soft); }
article h2 { font-size: 20px; color: var(--ink); margin: 44px 0 12px; }
article h2:first-of-type { margin-top: 0; }
article p { margin: 0 0 16px; }
article ul { margin: 0 0 16px; padding-left: 22px; }
article li { margin-bottom: 8px; }
article strong { color: var(--ink); }
.callout { background: var(--accent-tint); border-radius: 14px; padding: 20px 24px; margin: 0 0 26px; font-size: 14.5px; color: var(--accent-deep); }
.contact-card { background: var(--bg-alt); border: 1px solid var(--line); border-radius: 18px; padding: 30px 30px; margin: 0 0 20px; }
.contact-card .label { font-size: 12.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-muted); margin-bottom: 6px; }
.contact-card a { font-family: var(--font-display); font-size: clamp(18px, 5.4vw, 24px); font-weight: 700; overflow-wrap: anywhere; }
.center { text-align: center; padding: 60px 0; }

/* ---------- Footer ---------- */
footer { border-top: 1px solid var(--line); background: var(--bg-alt); padding: 38px 0; }
.footer-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 14px; align-items: center; }
.footer-links { display: flex; flex-wrap: wrap; gap: 22px; font-size: 13.5px; font-weight: 600; }
.footer-links a { text-decoration: none; color: var(--ink-soft); }
.footer-links a:hover { color: var(--accent-deep); }
.copyright { font-size: 12.5px; color: var(--ink-muted); }
