/* ===========================================================
   ProofPop — shared styles
   Geist · mint/foil palette · generous whitespace
   =========================================================== */

@import url('https://fonts.googleapis.com/css2?family=Geist:wght@300;400;500;600;700&family=Geist+Mono:wght@400;500&display=swap');

:root {
  /* neutrals — warm-cool, low saturation */
  --paper:    oklch(0.992 0.004 165);
  --mist:     oklch(0.972 0.008 172);
  --line:     oklch(0.905 0.007 180);
  --line-soft:oklch(0.945 0.006 180);

  /* ink */
  --ink:      oklch(0.255 0.014 178);
  --ink-2:    oklch(0.435 0.012 178);
  --ink-3:    oklch(0.585 0.010 180);

  /* foil */
  --foil:     oklch(0.835 0.006 200);
  --foil-2:   oklch(0.760 0.009 205);
  --foil-3:   oklch(0.690 0.010 208);

  /* mint — primary */
  --mint:     oklch(0.730 0.118 168);
  --mint-deep:oklch(0.560 0.110 168);
  --mint-ink: oklch(0.430 0.090 170);
  --mint-tint:oklch(0.955 0.038 168);
  --mint-tint-2:oklch(0.915 0.060 168);

  /* demo store (MERIDIAN) — warm, intentionally off-brand */
  --md-char:  oklch(0.300 0.012 65);
  --md-sand:  oklch(0.905 0.026 78);
  --md-sand-2:oklch(0.845 0.034 76);
  --md-terra: oklch(0.620 0.098 48);

  --maxw: 1120px;
  --pad: clamp(20px, 5vw, 64px);

  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 22px;
  --r-xl: 30px;

  --shadow-sm: 0 1px 2px oklch(0.4 0.02 180 / 0.05), 0 2px 6px oklch(0.4 0.02 180 / 0.04);
  --shadow-md: 0 2px 4px oklch(0.4 0.02 180 / 0.05), 0 12px 30px oklch(0.4 0.02 180 / 0.07);
  --shadow-lg: 0 4px 8px oklch(0.4 0.02 180 / 0.06), 0 30px 70px oklch(0.35 0.02 180 / 0.12);

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: 'Geist', system-ui, -apple-system, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

h1, h2, h3, h4 { font-weight: 600; line-height: 1.08; letter-spacing: -0.02em; margin: 0; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
a { color: inherit; }

.mono {
  font-family: 'Geist Mono', ui-monospace, monospace;
  font-size: 0.74em;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.wrap { max-width: var(--maxw); margin-inline: auto; padding-inline: var(--pad); }

section { padding-block: clamp(72px, 11vw, 140px); }

.eyebrow {
  font-family: 'Geist Mono', ui-monospace, monospace;
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--mint-deep);
  margin: 0 0 18px;
}
.eyebrow--ink { color: var(--ink-3); }

.section-title {
  font-size: clamp(30px, 4.4vw, 46px);
  letter-spacing: -0.03em;
}
.section-lead {
  font-size: clamp(18px, 2.2vw, 21px);
  color: var(--ink-2);
  max-width: 56ch;
  margin-top: 18px;
}

/* ---------- buttons ---------- */
.btn {
  appearance: none;
  border: none;
  font-family: inherit;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: -0.01em;
  border-radius: 999px;
  padding: 14px 26px;
  cursor: pointer;
  transition: transform .18s var(--ease), background .18s var(--ease), box-shadow .18s var(--ease), color .18s var(--ease);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  white-space: nowrap;
}
.btn--primary {
  background: var(--mint);
  color: oklch(0.20 0.04 170);
  box-shadow: 0 1px 0 oklch(0.55 0.11 168 / 0.5) inset, var(--shadow-sm);
}
.btn--primary:hover { background: var(--mint-deep); color: var(--paper); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn--ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line);
}
.btn--ghost:hover { border-color: var(--ink-3); transform: translateY(-1px); }

/* ---------- logo ---------- */
.logo {
  display: inline-flex; align-items: center; gap: 11px;
  text-decoration: none; color: var(--ink);
  font-weight: 600; font-size: 19px; letter-spacing: -0.025em;
}
.logo-mark { width: 34px; height: 34px; display: block; border-radius: 9px; }
.logo--lg .logo-mark { width: 64px; height: 64px; border-radius: 16px; }
.logo--lg { font-size: 30px; gap: 16px; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: saturate(1.2) blur(10px);
  background: oklch(0.992 0.004 165 / 0.78);
  border-bottom: 1px solid transparent;
  transition: border-color .2s var(--ease), background .2s var(--ease);
}
.site-header.is-stuck { border-bottom-color: var(--line); }
.site-header__inner {
  max-width: var(--maxw); margin-inline: auto; padding: 14px var(--pad);
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}

/* ---------- status pill ---------- */
.pill {
  display: inline-flex; align-items: center; gap: 9px;
  background: var(--mint-tint);
  color: var(--mint-ink);
  border: 1px solid var(--mint-tint-2);
  border-radius: 999px;
  padding: 7px 15px 7px 13px;
  font-size: 13px; font-weight: 500;
}
.pill__dot { width: 7px; height: 7px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 0 0 var(--mint); }
@media (prefers-reduced-motion: no-preference) {
  .pill__dot { animation: pulse 2.4s var(--ease) infinite; }
}
@keyframes pulse {
  0%,100% { box-shadow: 0 0 0 0 oklch(0.73 0.118 168 / 0.5); }
  50%     { box-shadow: 0 0 0 6px oklch(0.73 0.118 168 / 0); }
}

/* ---------- scratch-swipe divider ---------- */
.swipe {
  position: relative; height: 2px; max-width: var(--maxw);
  margin: 0 auto; background: var(--line-soft);
  overflow: visible;
}
.swipe::before {
  content: ""; position: absolute; inset: -1px 0;
  height: 4px; top: -1px;
  background: linear-gradient(90deg, var(--mint), var(--mint-deep));
  transform: scaleX(0); transform-origin: left;
  border-radius: 4px;
  transition: transform 1.1s var(--ease);
}
.swipe.in-view::before { transform: scaleX(1); }

/* ---------- scroll reveal ---------- */
.reveal-on-scroll {
  opacity: 0; transform: translateY(22px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}
.reveal-on-scroll.in-view { opacity: 1; transform: none; }
.reveal-on-scroll[data-delay="1"] { transition-delay: .08s; }
.reveal-on-scroll[data-delay="2"] { transition-delay: .16s; }
.reveal-on-scroll[data-delay="3"] { transition-delay: .24s; }
@media (prefers-reduced-motion: reduce) {
  .reveal-on-scroll { opacity: 1; transform: none; transition: none; }
}

/* ---------- footer ---------- */
.site-footer {
  background: var(--ink);
  color: oklch(0.86 0.008 180);
  padding-block: clamp(56px, 8vw, 88px);
}
.site-footer a { color: oklch(0.86 0.008 180); text-decoration: none; }
.site-footer a:hover { color: var(--mint); }
.footer-grid {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 40px;
}
.footer-mark .logo { color: var(--paper); }

/* Built for Shopify badge */
.builtfor {
  display: inline-flex; align-items: center; gap: 10px; white-space: nowrap;
  margin-top: 20px;
  color: oklch(0.66 0.008 180); font-size: 13px;
}
.builtfor__chip {
  background: var(--paper); border-radius: 8px;
  padding: 7px 12px; display: inline-flex; align-items: center;
  box-shadow: var(--shadow-sm);
}
.builtfor__chip img { height: 20px; display: block; }
.footer-links { display: flex; flex-wrap: wrap; gap: 28px; font-size: 15px; align-items: flex-start; }
.footer-meta {
  margin-top: 44px; padding-top: 26px; border-top: 1px solid oklch(0.4 0.01 180 / 0.4);
  display: flex; flex-wrap: wrap; gap: 14px 28px; justify-content: space-between;
  color: var(--ink-3); font-size: 14px;
}

/* ---------- legal pages ---------- */
.legal {
  max-width: 760px; margin-inline: auto; padding: clamp(40px,7vw,80px) var(--pad) 120px;
}
.legal__back { display: inline-flex; align-items: center; gap: 8px; color: var(--ink-2); text-decoration: none; font-size: 15px; margin-bottom: 40px; }
.legal__back:hover { color: var(--mint-deep); }
.legal h1 { font-size: clamp(32px, 5vw, 44px); margin-bottom: 14px; }
.legal__meta { color: var(--ink-3); font-size: 15px; margin-bottom: 14px; }
.legal__notice {
  background: var(--mint-tint); border: 1px solid var(--mint-tint-2);
  color: var(--mint-ink); border-radius: var(--r-md);
  padding: 16px 20px; font-size: 15px; margin: 28px 0 48px;
}
.legal h2 { font-size: 22px; margin: 48px 0 14px; letter-spacing: -0.02em; }
.legal h3 { font-size: 17px; margin: 28px 0 8px; color: var(--ink); }
.legal p, .legal li { color: var(--ink-2); font-size: 16px; line-height: 1.7; }
.legal p + p { margin-top: 14px; }
.legal ul { padding-left: 22px; margin: 12px 0; }
.legal li { margin-bottom: 9px; }
.legal strong { color: var(--ink); font-weight: 600; }
.legal__placeholder { background: var(--mist); border-radius: 4px; padding: 1px 7px; font-family: 'Geist Mono', monospace; font-size: 0.85em; }

.visually-hidden { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap; border:0; }
