/* PurchaseGuard website — one shared stylesheet. System fonts only; no external assets. */

:root {
  --bg: #ffffff;
  --surface: #f4f6f5;
  --surface-2: #eaf1ee;
  --ink: #152028;
  --muted: #56646c;
  --subtle: #8a969c;
  --line: #dce2df;
  --accent: #1b6a54;
  --accent-ink: #14523f;
  --accent-soft: #e3efea;
  --on-accent: #ffffff;
  --urgent: #b42318;
  --soon: #a36a06;
  --soon-bg: #fbf0da;
  --radius: 14px;
  --radius-lg: 22px;
  --shadow: 0 1px 2px rgba(21, 32, 40, 0.06), 0 8px 24px rgba(21, 32, 40, 0.08);
  --max: 1080px;
  --read: 720px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0e1418;
    --surface: #172026;
    --surface-2: #1b2a27;
    --ink: #eef2f1;
    --muted: #a7b3b8;
    --subtle: #7d8a90;
    --line: #26323a;
    --accent: #4fb795;
    --accent-ink: #6fcaa9;
    --accent-soft: #183a31;
    --on-accent: #08241b;
    --urgent: #f0857a;
    --soon: #e7b25c;
    --soon-bg: #3a2c12;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 8px 24px rgba(0, 0, 0, 0.35);
  }
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: var(--accent);
  text-underline-offset: 3px;
}

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

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 10;
  padding: 10px 14px;
  background: var(--accent);
  color: var(--on-accent);
  border-radius: 10px;
  text-decoration: none;
  font-weight: 600;
}

.skip-link:focus {
  top: 12px;
  color: var(--on-accent);
}

.container {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 20px;
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 5;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 20px;
  padding-top: 12px;
  padding-bottom: 12px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.01em;
}

.brand:hover {
  color: var(--ink);
}

.brand-mark {
  width: 34px;
  height: 34px;
  flex: none;
}

.site-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-nav a {
  display: inline-block;
  padding: 8px 12px;
  border-radius: 999px;
  color: var(--muted);
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
}

.site-nav a:hover {
  color: var(--ink);
  background: var(--surface);
}

.site-nav a[aria-current="page"] {
  color: var(--accent);
  background: var(--accent-soft);
}

/* ---------- Hero ---------- */

.hero {
  padding: 56px 0 40px;
}

.hero-grid {
  display: grid;
  gap: 40px;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 16px;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 14px;
  font-weight: 600;
}

h1,
h2,
h3 {
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin: 0 0 12px;
}

h1 {
  font-size: clamp(34px, 7vw, 54px);
  letter-spacing: -0.03em;
}

h2 {
  font-size: clamp(26px, 4.5vw, 36px);
}

h3 {
  font-size: 19px;
}

.lead {
  margin: 0 0 28px;
  font-size: clamp(18px, 2.4vw, 20px);
  color: var(--muted);
  max-width: 34em;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 16px;
}

.badge-soon {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  border-radius: 14px;
  background: var(--ink);
  color: var(--bg);
  font-weight: 600;
  font-size: 16px;
}

.badge-soon svg {
  width: 20px;
  height: 20px;
}

.cta-note {
  color: var(--muted);
  font-size: 15px;
}

/* ---------- Phone illustration (pure CSS/HTML, decorative) ---------- */

.phone {
  width: min(320px, 86vw);
  margin: 0 auto;
  padding: 12px;
  border-radius: 46px;
  background: #11181d;
  box-shadow: var(--shadow), 0 30px 60px rgba(21, 32, 40, 0.18);
}

.phone-screen {
  position: relative;
  overflow: hidden;
  border-radius: 36px;
  background: #ffffff;
  color: #152028;
  padding: 44px 16px 20px;
  min-height: 560px;
}

.phone-screen::before {
  content: "";
  position: absolute;
  top: 12px;
  left: 50%;
  width: 96px;
  height: 26px;
  transform: translateX(-50%);
  border-radius: 20px;
  background: #11181d;
}

.ui-title {
  margin: 0 0 4px;
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.ui-sub {
  margin: 0 0 16px;
  color: #56646c;
  font-size: 13px;
}

.ui-label {
  margin: 18px 0 8px;
  color: #56646c;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.ui-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  margin-bottom: 8px;
  border-radius: 14px;
  background: #f4f6f5;
}

.ui-icon {
  flex: none;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: #e3efea;
  color: #1b6a54;
}

.ui-icon svg {
  width: 20px;
  height: 20px;
}

.ui-text {
  flex: 1;
  min-width: 0;
}

.ui-text b {
  display: block;
  font-size: 14px;
}

.ui-text span {
  display: block;
  color: #56646c;
  font-size: 12px;
}

.ui-chip {
  flex: none;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
}

.chip-urgent {
  background: #fbe6e3;
  color: #b42318;
}

.chip-soon {
  background: #fbf0da;
  color: #a36a06;
}

.chip-safe {
  background: #e4f2ea;
  color: #1f7a4d;
}

.ui-notif {
  margin-top: 18px;
  padding: 12px;
  border-radius: 16px;
  background: rgba(244, 246, 245, 0.95);
  box-shadow: 0 6px 18px rgba(21, 32, 40, 0.12);
  font-size: 12px;
}

.ui-notif b {
  display: block;
  font-size: 13px;
}

.ui-caption {
  margin: 14px 0 0;
  text-align: center;
  font-size: 13px;
  color: var(--subtle);
}

/* ---------- Sections ---------- */

.section {
  padding: 56px 0;
}

.section-alt {
  background: var(--surface);
}

.section-head {
  max-width: 640px;
  margin-bottom: 32px;
}

.section-head p {
  margin: 0;
  color: var(--muted);
}

.grid {
  display: grid;
  gap: 16px;
}

.card {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--bg);
}

.section-alt .card {
  border-color: transparent;
  box-shadow: var(--shadow);
}

.card p {
  margin: 0;
  color: var(--muted);
}

.card .tag {
  display: inline-block;
  margin-bottom: 10px;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.feature-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: 14px;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent);
}

.feature-icon svg {
  width: 24px;
  height: 24px;
}

.steps {
  counter-reset: step;
  display: grid;
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.steps li {
  position: relative;
  padding: 22px 22px 22px 70px;
  border-radius: var(--radius-lg);
  background: var(--bg);
  box-shadow: var(--shadow);
}

.steps li::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 22px;
  top: 22px;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--on-accent);
  font-weight: 700;
  font-size: 15px;
}

.steps h3 {
  margin-bottom: 4px;
}

.steps p {
  margin: 0;
  color: var(--muted);
}

.privacy-band {
  display: grid;
  gap: 24px;
  padding: 32px;
  border-radius: var(--radius-lg);
  background: var(--accent-soft);
}

.privacy-band ul {
  margin: 0;
  padding-left: 1.2em;
}

.privacy-band li {
  margin-bottom: 6px;
}

.notice {
  margin: 24px 0;
  padding: 16px 18px;
  border-left: 4px solid var(--accent);
  border-radius: 10px;
  background: var(--accent-soft);
}

.notice p {
  margin: 0;
}

.notice-warn {
  border-left-color: var(--soon);
  background: var(--soon-bg);
}

/* ---------- Long-form (legal / help) ---------- */

.page-head {
  padding: 48px 0 8px;
}

.page-head p {
  color: var(--muted);
  margin: 0 0 6px;
}

.prose {
  max-width: var(--read);
  padding-bottom: 64px;
}

.prose h2 {
  margin-top: 44px;
  padding-top: 8px;
  font-size: clamp(22px, 3.4vw, 26px);
}

.prose h3 {
  margin-top: 28px;
}

.prose p,
.prose ul,
.prose ol {
  margin: 0 0 16px;
}

.prose li {
  margin-bottom: 8px;
}

.prose code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.9em;
  padding: 1px 5px;
  border-radius: 6px;
  background: var(--surface);
}

.meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 15px;
}

.placeholder {
  padding: 1px 6px;
  border-radius: 6px;
  background: var(--soon-bg);
  color: var(--ink);
  font-weight: 600;
}

.toc {
  margin: 24px 0 8px;
  padding: 18px 20px;
  border-radius: var(--radius);
  background: var(--surface);
}

.toc p {
  margin: 0 0 8px;
  font-weight: 700;
}

.toc ol {
  margin: 0;
  padding-left: 1.3em;
  columns: 1;
}

.toc li {
  margin-bottom: 4px;
}

.path {
  display: inline-block;
  padding: 1px 8px;
  border-radius: 8px;
  background: var(--surface);
  font-weight: 600;
  white-space: nowrap;
}

.flow {
  display: grid;
  gap: 10px;
  margin: 0 0 20px;
  padding: 0;
  list-style: none;
  counter-reset: flow;
}

.flow li {
  position: relative;
  margin: 0;
  padding: 14px 16px 14px 56px;
  border-radius: var(--radius);
  background: var(--surface);
}

.flow li::before {
  counter-increment: flow;
  content: counter(flow);
  position: absolute;
  left: 16px;
  top: 14px;
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--on-accent);
  font-size: 13px;
  font-weight: 700;
}

.help-grid {
  display: grid;
  gap: 12px;
  margin: 24px 0 8px;
  padding: 0;
  list-style: none;
}

.help-grid a {
  display: block;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
}

.help-grid a:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* ---------- Forms ---------- */

.form-card {
  max-width: var(--read);
  margin: 8px 0 64px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--bg);
  box-shadow: var(--shadow);
}

.field {
  display: grid;
  gap: 6px;
  margin-bottom: 18px;
}

.field label {
  font-weight: 600;
  font-size: 15px;
}

.field .req {
  color: var(--muted);
  font-weight: 400;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  font-size: 16px; /* prevents iOS zoom on focus */
}

.field textarea {
  min-height: 160px;
  resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.field-hint {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 24px;
  border: 0;
  border-radius: 12px;
  background: var(--accent);
  color: var(--on-accent);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

.btn:hover {
  background: var(--accent-ink);
}

.btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.btn:disabled:hover {
  background: var(--accent);
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 16px;
}

@media (max-width: 479px) {
  .form-card {
    padding: 18px;
  }

  .form-actions .btn {
    width: 100%;
  }
}

/* ---------- Footer ---------- */

.site-footer {
  border-top: 1px solid var(--line);
  padding: 32px 0 40px;
  color: var(--muted);
  font-size: 15px;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-links a {
  color: var(--muted);
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--accent);
  text-decoration: underline;
}

.footer-note {
  width: 100%;
  margin: 0;
  font-size: 14px;
  color: var(--subtle);
}

/* ---------- Larger screens ---------- */

@media (min-width: 640px) {
  .grid-2,
  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }

  .steps {
    grid-template-columns: repeat(2, 1fr);
  }

  .help-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .toc ol {
    columns: 2;
    column-gap: 32px;
  }
}

@media (min-width: 900px) {
  .hero {
    padding: 80px 0 64px;
  }

  .hero-grid {
    grid-template-columns: 1.1fr 0.9fr;
    gap: 56px;
  }

  .grid-3 {
    grid-template-columns: repeat(3, 1fr);
  }

  .steps {
    grid-template-columns: repeat(4, 1fr);
  }

  .steps li {
    padding: 70px 22px 22px;
  }

  .section {
    padding: 80px 0;
  }

  .privacy-band {
    grid-template-columns: 1fr 1fr;
    padding: 44px;
  }
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

@media print {
  .site-header,
  .site-footer,
  .skip-link {
    display: none;
  }

  body {
    color: #000;
    background: #fff;
  }
}
