/* SnapSweep — website styles
   Brand tokens mirror the iOS design system:
   BrandPrimary  #5B54E8  (indigo)
   BrandSecondary #EE5CAD (pink)
   Gradient runs top-leading indigo -> bottom-trailing pink. */

:root {
  color-scheme: light dark;

  --brand-primary: #5b54e8;
  --brand-secondary: #ee5cad;
  --brand-gradient: linear-gradient(135deg, #5b54e8 0%, #8a5be8 45%, #ee5cad 100%);

  --bg: #f2f2f7;
  --surface: #ffffff;
  --surface-elevated: #ffffff;
  --border: rgba(60, 60, 67, 0.12);

  --text: #1c1c1e;
  --text-secondary: #3c3c43b3;
  --text-tertiary: #3c3c4366;

  --success: #34c759;

  --shadow-card: 0 1px 2px rgba(17, 12, 46, 0.04), 0 12px 32px rgba(17, 12, 46, 0.08);
  --radius-sm: 12px;
  --radius-md: 18px;
  --radius-lg: 26px;

  --maxw: 1120px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Rounded", "SF Pro Text",
    "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --brand-primary: #847bff;
    --brand-secondary: #f97abaff;

    --bg: #000000;
    --surface: #1c1c1e;
    --surface-elevated: #2c2c2e;
    --border: rgba(255, 255, 255, 0.1);

    --text: #f5f5f7;
    --text-secondary: #ebebf599;
    --text-tertiary: #ebebf54d;

    --shadow-card: 0 1px 2px rgba(0, 0, 0, 0.4), 0 12px 32px rgba(0, 0, 0, 0.5);
  }
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a { color: var(--brand-primary); text-decoration: none; }
a:hover { text-decoration: underline; }

.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

.gradient-text {
  background: var(--brand-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  border-bottom: 1px solid var(--border);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 66px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  font-size: 19px;
  color: var(--text);
}
.brand:hover { text-decoration: none; }
.brand img { width: 34px; height: 34px; border-radius: 9px; box-shadow: var(--shadow-card); }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a { color: var(--text-secondary); font-size: 15px; font-weight: 500; }
.nav-links a:hover { color: var(--text); text-decoration: none; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: inherit;
  font-weight: 600;
  font-size: 15px;
  padding: 11px 20px;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
}
.btn:hover { text-decoration: none; }
.btn-primary {
  background: var(--brand-gradient);
  color: #fff;
  box-shadow: 0 8px 20px rgba(91, 84, 232, 0.35);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 12px 26px rgba(91, 84, 232, 0.42); }
.btn-ghost {
  background: var(--surface);
  color: var(--text);
  border-color: var(--border);
}
.btn-ghost:hover { transform: translateY(-1px); }
.nav .btn { padding: 9px 18px; }

@media (max-width: 720px) {
  .nav-links a:not(.btn) { display: none; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: 96px 0 80px;
  text-align: center;
}
.hero::before {
  content: "";
  position: absolute;
  inset: -30% 0 auto 0;
  height: 620px;
  background: radial-gradient(60% 60% at 50% 0%, rgba(138, 91, 232, 0.22), transparent 70%);
  pointer-events: none;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--brand-primary);
  background: color-mix(in srgb, var(--brand-primary) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--brand-primary) 22%, transparent);
  padding: 7px 14px;
  border-radius: 999px;
  margin-bottom: 26px;
}
.hero h1 {
  font-size: clamp(38px, 6vw, 66px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  font-weight: 800;
  margin: 0 auto 20px;
  max-width: 14ch;
}
.hero p.lede {
  font-size: clamp(17px, 2.3vw, 21px);
  color: var(--text-secondary);
  max-width: 34rem;
  margin: 0 auto 34px;
}
.hero-cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.hero-note { margin-top: 18px; font-size: 13px; color: var(--text-tertiary); }

.hero-app-icon {
  width: 108px;
  height: 108px;
  border-radius: 26px;
  margin: 0 auto 30px;
  box-shadow: 0 20px 50px rgba(91, 84, 232, 0.35);
}

/* ---------- Pipeline ---------- */
.pipeline {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 56px;
}
.pipeline .step {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 15px;
  padding: 10px 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  box-shadow: var(--shadow-card);
}
.pipeline .step .dot {
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--brand-gradient);
}
.pipeline .arrow { color: var(--text-tertiary); font-size: 18px; }

/* ---------- Sections ---------- */
section { padding: 84px 0; }
.section-head { text-align: center; max-width: 40rem; margin: 0 auto 52px; }
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 13px;
  font-weight: 700;
  color: var(--brand-primary);
  margin: 0 0 12px;
}
.section-head h2 {
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin: 0 0 14px;
  font-weight: 800;
}
.section-head p { font-size: 18px; color: var(--text-secondary); margin: 0; }

/* ---------- Feature / category grid ---------- */
.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
@media (max-width: 900px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .grid { grid-template-columns: 1fr; } }

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 26px;
  box-shadow: var(--shadow-card);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: 0 18px 40px rgba(17, 12, 46, 0.12); }
.card .ico {
  width: 46px; height: 46px;
  display: grid; place-items: center;
  border-radius: 13px;
  background: color-mix(in srgb, var(--brand-primary) 14%, transparent);
  color: var(--brand-primary);
  margin-bottom: 16px;
}
.card .ico svg { width: 24px; height: 24px; }
.card h3 { margin: 0 0 6px; font-size: 18px; font-weight: 700; }
.card p { margin: 0; color: var(--text-secondary); font-size: 15px; }

/* ---------- Privacy band ---------- */
.privacy {
  background: var(--brand-gradient);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 60px 44px;
  text-align: center;
  box-shadow: 0 24px 60px rgba(91, 84, 232, 0.35);
}
.privacy .ico-lg {
  width: 72px; height: 72px;
  display: grid; place-items: center;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.16);
  margin: 0 auto 22px;
}
.privacy .ico-lg svg { width: 36px; height: 36px; color: #fff; }
.privacy h2 { font-size: clamp(26px, 3.6vw, 38px); margin: 0 0 14px; font-weight: 800; letter-spacing: -0.01em; }
.privacy p { font-size: 18px; max-width: 40rem; margin: 0 auto; opacity: 0.95; }
.privacy .pills { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 28px; }
.privacy .pill {
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.28);
  padding: 8px 16px; border-radius: 999px;
  font-size: 14px; font-weight: 600;
}

/* ---------- Steps (how it works) ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
@media (max-width: 860px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .steps { grid-template-columns: 1fr; } }
.step-card { text-align: left; }
.step-num {
  font-size: 15px; font-weight: 800; color: #fff;
  width: 34px; height: 34px; border-radius: 10px;
  display: grid; place-items: center;
  background: var(--brand-gradient);
  margin-bottom: 16px;
}
.step-card h3 { margin: 0 0 6px; font-size: 17px; }
.step-card p { margin: 0; color: var(--text-secondary); font-size: 15px; }

/* ---------- Premium ---------- */
.premium-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 46px;
  box-shadow: var(--shadow-card);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}
@media (max-width: 780px) { .premium-card { grid-template-columns: 1fr; padding: 32px; } }
.premium-card h2 { font-size: clamp(26px, 3.4vw, 36px); margin: 0 0 10px; font-weight: 800; letter-spacing: -0.01em; }
.premium-card > div > p { color: var(--text-secondary); font-size: 17px; margin: 0 0 22px; }
.feature-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.feature-list li { display: flex; align-items: center; gap: 12px; font-size: 16px; font-weight: 500; }
.feature-list .check {
  flex: 0 0 auto;
  width: 24px; height: 24px; border-radius: 50%;
  display: grid; place-items: center;
  background: color-mix(in srgb, var(--success) 16%, transparent);
  color: var(--success);
}
.feature-list .check svg { width: 14px; height: 14px; }

/* ---------- CTA ---------- */
.cta { text-align: center; }
.cta-inner {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 60px 40px;
  box-shadow: var(--shadow-card);
}
.cta h2 { font-size: clamp(28px, 4vw, 40px); margin: 0 0 14px; font-weight: 800; letter-spacing: -0.01em; }
.cta p { color: var(--text-secondary); font-size: 18px; margin: 0 auto 30px; max-width: 32rem; }

/* App Store style badge button */
.appstore-btn {
  display: inline-flex; align-items: center; gap: 12px;
  background: #000; color: #fff;
  padding: 12px 22px; border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.14);
}
.appstore-btn:hover { text-decoration: none; transform: translateY(-1px); }
.appstore-btn svg { width: 26px; height: 26px; }
.appstore-btn .small { font-size: 11px; line-height: 1; opacity: 0.85; }
.appstore-btn .big { font-size: 19px; font-weight: 600; line-height: 1.1; }
@media (prefers-color-scheme: dark) {
  .appstore-btn { background: #fff; color: #000; border-color: transparent; }
}

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 48px 0 40px;
  color: var(--text-secondary);
  font-size: 14px;
}
.footer-top {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 32px; flex-wrap: wrap; margin-bottom: 32px;
}
.footer-brand { max-width: 22rem; }
.footer-brand .brand { margin-bottom: 12px; }
.footer-brand p { margin: 0; font-size: 14px; color: var(--text-secondary); }
.footer-cols { display: flex; gap: 64px; flex-wrap: wrap; }
.footer-col h4 { margin: 0 0 14px; font-size: 13px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-tertiary); }
.footer-col a { display: block; color: var(--text-secondary); margin-bottom: 10px; font-weight: 500; }
.footer-col a:hover { color: var(--text); text-decoration: none; }
.footer-bottom {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; flex-wrap: wrap;
  border-top: 1px solid var(--border); padding-top: 24px;
  font-size: 13px; color: var(--text-tertiary);
}

/* ---------- Legal / document pages ---------- */
.doc { padding: 60px 0 80px; }
.doc-inner { max-width: 760px; margin: 0 auto; }
.doc h1 { font-size: clamp(30px, 5vw, 44px); letter-spacing: -0.02em; margin: 0 0 8px; font-weight: 800; }
.doc .updated { color: var(--text-tertiary); font-size: 14px; margin: 0 0 40px; }
.doc h2 { font-size: 22px; margin: 40px 0 12px; font-weight: 700; letter-spacing: -0.01em; }
.doc h3 { font-size: 17px; margin: 26px 0 8px; font-weight: 700; }
.doc p, .doc li { color: var(--text-secondary); font-size: 16px; }
.doc ul { padding-left: 22px; }
.doc li { margin-bottom: 8px; }
.doc a { font-weight: 500; }
.doc .callout {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--brand-primary);
  border-radius: var(--radius-sm);
  padding: 18px 20px;
  margin: 24px 0;
}
.doc .callout p { margin: 0; color: var(--text); }
.back-link { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: 14px; margin-bottom: 28px; }
