/* AssetVault marketing site — shared brand tokens.
   Tokens mirror src/theme/theme.ts so the site feels like the app. */

* { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #0A1628;
  --surface: #111D32;
  --surface-light: #1A2940;
  --text: #F1F5F9;
  --text-secondary: #94A3B8;
  --text-muted: #64748B;
  --accent: #D4B85A;
  --primary: #C9A84C;
  --success: #22C55E;
  --warning: #F59E0B;
  --danger: #EF4444;
  --border: #1A2940;
  --border-strong: #2A3A5A;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --radius-full: 9999px;
}

@media (prefers-color-scheme: light) {
  :root {
    --bg: #F8FAFC;
    --surface: #FFFFFF;
    --surface-light: #F1F5F9;
    --text: #0F172A;
    --text-secondary: #475569;
    --text-muted: #94A3B8;
    --accent: #8B7424;
    --primary: #B8972E;
    --border: #E2E8F0;
    --border-strong: #CBD5E1;
  }
}

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Inter", "Helvetica Neue", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

.container { max-width: 1100px; margin: 0 auto; padding: 0 24px; }
.container-narrow { max-width: 760px; margin: 0 auto; padding: 0 24px; }

/* ===== Top nav ===== */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(10, 22, 40, 0.85);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--border);
}
@media (prefers-color-scheme: light) {
  .nav { background: rgba(248, 250, 252, 0.85); }
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 24px; max-width: 1100px; margin: 0 auto;
}
.nav-brand {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 700; color: var(--text); font-size: 17px;
  line-height: 1.1;
}
.nav-brand:hover { text-decoration: none; }
/* Stack the brand text — primary on top, subtitle (App Store name) below. */
.nav-brand-text {
  display: inline-flex; flex-direction: column; gap: 0;
}
.nav-brand-tagline {
  display: block;
  font-weight: 500;
  color: var(--text-muted);
  font-size: 10px;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  margin-top: 1px;
}
@media (max-width: 540px) {
  /* On small phones the tagline gets squeezed; hide so the brand stays clean. */
  .nav-brand-tagline { display: none; }
}
.nav-shield {
  width: 32px; height: 32px; border-radius: 8px;
  background: url("/assets/logo.png") center/cover no-repeat;
  display: inline-block;
  /* Hide any text inside the span — the image IS the logo. */
  font-size: 0; color: transparent; line-height: 0;
  /* Subtle border to separate the icon from dark backgrounds. */
  border: 1px solid var(--border-strong);
  flex-shrink: 0;
}
.nav-links { display: flex; gap: 24px; align-items: center; }
.nav-links a { color: var(--text-secondary); font-size: 14px; font-weight: 500; }
.nav-links a:hover { color: var(--text); text-decoration: none; }
.nav-cta {
  padding: 8px 16px; background: var(--primary); color: #fff !important;
  border-radius: var(--radius-md); font-size: 14px; font-weight: 600;
}
.nav-cta:hover { text-decoration: none; opacity: 0.92; }
@media (max-width: 720px) {
  .nav-links a:not(.nav-cta) { display: none; }
}

/* ===== Hero ===== */
.hero {
  padding: 80px 24px 64px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at top, rgba(212, 184, 90, 0.08), transparent 70%);
  pointer-events: none;
}
.hero h1 {
  font-size: clamp(36px, 6vw, 56px);
  line-height: 1.05;
  letter-spacing: -0.025em;
  margin-bottom: 20px;
  font-weight: 700;
}
.hero h1 .accent { color: var(--accent); }
.hero p.lede {
  font-size: clamp(17px, 2.2vw, 20px);
  color: var(--text-secondary);
  max-width: 640px;
  margin: 0 auto 36px;
}
.hero p.lede .lede-halo {
  display: block;
  margin-top: 10px;
  color: var(--success);
  font-weight: 600;
  font-size: 0.95em;
  letter-spacing: 0.01em;
}
/* Accent variant — used when the hero leads with Collector+ value rather
   than the privacy halo. Pulls eye to the gold/yellow accent. */
.hero p.lede .lede-halo-accent { color: var(--accent); }
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 11px; font-weight: 700; letter-spacing: 1.4px;
  color: var(--success); text-transform: uppercase;
  background: rgba(34, 197, 94, 0.08);
  border: 1px solid rgba(34, 197, 94, 0.3);
  padding: 6px 14px; border-radius: 999px;
  margin-bottom: 18px;
}
.hero-eyebrow-accent {
  color: var(--accent);
  background: rgba(212, 184, 90, 0.08);
  border-color: rgba(212, 184, 90, 0.35);
}
.hero-eyebrow-accent .hero-eyebrow-dot {
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(212, 184, 90, 0.18);
}
.hero-eyebrow-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.18);
  animation: hero-eyebrow-pulse 2.4s ease-in-out infinite;
}
@keyframes hero-eyebrow-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.45; }
}
.hero-cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-bottom: 16px; }
.hero-meta { font-size: 13px; color: var(--text-muted); }

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 24px; border-radius: var(--radius-md); font-size: 16px; font-weight: 600;
  text-decoration: none;
  background: var(--primary); color: #fff;
  transition: transform .15s ease, opacity .15s ease;
  border: none; cursor: pointer; min-width: 180px;
}
.btn:hover { transform: translateY(-1px); text-decoration: none; }
.btn-secondary { background: var(--surface-light); color: var(--text); border: 1px solid var(--border-strong); }
.btn-ghost { background: transparent; color: var(--text); border: 1px solid var(--border-strong); }
.btn-store {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 12px 22px; min-width: 200px;
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  text-align: left;
  transition: all .15s ease;
}
.btn-store:hover { background: var(--surface-light); transform: translateY(-1px); text-decoration: none; }
.btn-store .store-mini { font-size: 11px; color: var(--text-muted); display: block; line-height: 1; margin-bottom: 3px; }
.btn-store .store-name { font-size: 17px; font-weight: 700; line-height: 1; }
.btn-store .store-icon { font-size: 28px; }
.btn[disabled], .btn-store[aria-disabled="true"] { opacity: 0.55; cursor: not-allowed; }

/* ===== Sections ===== */
.section { padding: 72px 0; }
.section-eyebrow {
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-size: 12px;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 12px;
}
.section h2 {
  font-size: clamp(28px, 4vw, 40px);
  line-height: 1.15;
  letter-spacing: -0.015em;
  margin-bottom: 16px;
  font-weight: 700;
}
.section .section-lede {
  font-size: 17px;
  color: var(--text-secondary);
  max-width: 640px;
  margin: 0 0 40px;
}
.section.center { text-align: center; }
.section.center .section-lede,
.section .center .section-lede { margin: 0 auto 40px; }

.section-divider { border-top: 1px solid var(--border); margin: 0; }

/* ===== Feature grid ===== */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
}
.feature {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
}
.feature-ico {
  width: 44px; height: 44px; border-radius: 12px;
  background: var(--surface-light); display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px; font-size: 22px; color: var(--accent);
}
.feature h3 { font-size: 18px; margin-bottom: 6px; font-weight: 700; }
.feature p { color: var(--text-secondary); font-size: 15px; line-height: 1.55; }

/* ===== Tier table ===== */
.tier-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
  align-items: stretch;
}
.tier {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  display: flex; flex-direction: column;
}
.tier.featured { border: 2px solid var(--accent); position: relative; }
.tier .tier-tag {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: var(--success); color: #fff;
  padding: 4px 12px; border-radius: 6px; font-size: 11px; font-weight: 800; letter-spacing: 0.5px;
}
.tier.collector .tier-tag { background: var(--warning); color: #000; }
.tier h3 { font-size: 22px; font-weight: 700; margin-bottom: 6px; }
.tier .price { font-size: 32px; font-weight: 800; color: var(--accent); margin-bottom: 4px; line-height: 1.1; }
.tier .price-sub { font-size: 13px; color: var(--text-muted); margin-bottom: 22px; }
.tier ul { list-style: none; flex: 1; }
.tier li { padding: 7px 0 7px 26px; position: relative; color: var(--text-secondary); font-size: 14px; }
.tier li::before {
  content: "✓"; position: absolute; left: 0; top: 7px;
  width: 18px; height: 18px; border-radius: 50%; background: var(--success); color: #fff;
  display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 700;
}
/* Halo line — the offline / privacy callout each tier carries. */
.tier li.tier-li-halo {
  font-weight: 700;
  color: var(--success);
  border-bottom: 1px solid rgba(34, 197, 94, 0.2);
  padding-bottom: 11px;
  margin-bottom: 4px;
}
.tier li.tier-li-halo::before {
  content: "🔒";
  background: transparent;
  font-size: 13px;
}
.tier-cta { margin-top: 22px; }

/* ===== Why-offline pillars ===== */
.pillars {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
  max-width: 1100px;
  margin: 32px auto 0;
}
.pillar {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  position: relative;
}
.pillar::before {
  content: "";
  position: absolute; left: 0; top: 0; bottom: 0;
  width: 3px; border-top-left-radius: var(--radius-lg); border-bottom-left-radius: var(--radius-lg);
  background: linear-gradient(180deg, var(--success), transparent);
  opacity: 0.85;
}
.pillar-icon {
  font-size: 30px;
  line-height: 1;
  margin-bottom: 14px;
}
.pillar h3 {
  font-size: 19px;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--text);
}
.pillar p {
  font-size: 14.5px;
  color: var(--text-secondary);
  line-height: 1.6;
}
.why-offline-tie {
  margin-top: 36px;
  display: flex;
  justify-content: center;
}
.why-offline-tie-card {
  max-width: 720px;
  background: rgba(34, 197, 94, 0.06);
  border: 1px solid rgba(34, 197, 94, 0.25);
  border-radius: var(--radius-lg);
  padding: 22px 28px;
  text-align: center;
}
.why-offline-tie-card strong {
  display: block;
  font-size: 16px;
  margin-bottom: 8px;
}
.why-offline-tie-card p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 0;
}

/* ===== Promise band ===== */
.promise-band {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 56px 0;
  text-align: center;
}
.promise-band h2 { font-size: clamp(24px, 3vw, 32px); margin-bottom: 14px; }
.promise-band p { font-size: 17px; color: var(--text-secondary); max-width: 640px; margin: 0 auto; }
.promise-list {
  list-style: none;
  counter-reset: promise;
  text-align: left;
  margin: 28px auto 0;
  padding: 0;
  max-width: 720px;
}
.promise-list li {
  counter-increment: promise;
  position: relative;
  padding: 12px 0 12px 56px;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border);
  line-height: 1.55;
}
.promise-list li:last-child { border-bottom: none; }
.promise-list li::before {
  content: counter(promise);
  position: absolute;
  left: 0; top: 14px;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--surface-light);
  color: var(--accent);
  font-weight: 800;
  font-size: 15px;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--border-strong);
}
.promise-list li:first-child::before {
  background: rgba(34, 197, 94, 0.12);
  color: var(--success);
  border-color: rgba(34, 197, 94, 0.35);
}
.promise-list strong { color: var(--text); }

/* ===== Guide screenshots ===== */
/*
 * Screenshot frames — styled placeholders that:
 *   1) Look polished even without an image (placeholder mode)
 *   2) Render a real screenshot with phone-style border when an <img>
 *      is provided (image mode)
 *
 * Drop screenshots into website/assets/screenshots/ and reference via:
 *   <figure class="screenshot">
 *     <img src="/assets/screenshots/ai-photo-id-result.png" alt="...">
 *     <figcaption>What you see after AI fills the fields.</figcaption>
 *   </figure>
 *
 * Or use the placeholder mode while waiting for real assets:
 *   <figure class="screenshot screenshot-placeholder">
 *     <div class="screenshot-placeholder-body">
 *       <span class="screenshot-placeholder-icon">📱</span>
 *       <span>Camera capture → AI auto-fills name, value, year</span>
 *     </div>
 *     <figcaption>What you see after AI fills the fields.</figcaption>
 *   </figure>
 */
.screenshot {
  margin: 28px auto;
  max-width: 360px;
  text-align: center;
}
.screenshot img {
  display: block;
  width: 100%;
  border-radius: 22px;
  border: 1px solid var(--border-strong);
  background: var(--surface);
  box-shadow: 0 24px 60px -20px rgba(0, 0, 0, 0.5),
              0 0 0 1px rgba(255, 255, 255, 0.03) inset;
}
.screenshot figcaption {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 12px;
  font-style: italic;
  line-height: 1.45;
}
.screenshot-placeholder .screenshot-placeholder-body {
  background: linear-gradient(180deg, var(--surface), var(--surface-light));
  border: 1px dashed var(--border-strong);
  border-radius: 22px;
  padding: 56px 24px;
  display: flex; flex-direction: column; align-items: center; gap: 14px;
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.45;
  min-height: 240px;
  justify-content: center;
}
.screenshot-placeholder .screenshot-placeholder-icon {
  font-size: 38px;
  opacity: 0.7;
}
/* Side-by-side layout: two screenshots in a row on wider viewports. */
.screenshot-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
  margin: 28px 0;
  max-width: 760px;
}
.screenshot-row .screenshot { margin: 0 auto; }

/* ===== Trust grid ===== */
.trust-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 14px;
}
.trust-item {
  padding: 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  font-size: 14px;
  color: var(--text-secondary);
}
.trust-item strong { color: var(--text); display: block; margin-bottom: 4px; font-size: 15px; }

/* ===== Quote ===== */
.quote {
  border-left: 4px solid var(--accent);
  padding: 14px 22px;
  color: var(--text-secondary);
  font-style: italic;
  margin: 22px 0;
  background: var(--surface);
  border-radius: var(--radius-md);
}
.quote cite { display: block; margin-top: 8px; font-size: 13px; color: var(--text-muted); font-style: normal; }

/* ===== FAQ ===== */
.faq details {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  margin-bottom: 12px;
  padding: 0;
  overflow: hidden;
}
.faq summary {
  padding: 18px 22px;
  font-weight: 600;
  font-size: 16px;
  cursor: pointer;
  list-style: none;
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; font-size: 22px; font-weight: 300; color: var(--text-muted);
  transition: transform .2s;
}
.faq details[open] summary::after { content: "−"; }
.faq details[open] summary { border-bottom: 1px solid var(--border); }
.faq .faq-body { padding: 16px 22px 20px; color: var(--text-secondary); font-size: 15px; line-height: 1.65; }
.faq .faq-body p { margin-bottom: 10px; }
.faq .faq-body p:last-child { margin-bottom: 0; }

/* ===== Long-form (privacy / terms / guides) ===== */
.prose { max-width: 760px; margin: 0 auto; padding: 56px 24px; }
.prose h1 { font-size: 38px; margin-bottom: 24px; line-height: 1.15; }
.prose h2 { font-size: 24px; margin: 36px 0 14px; line-height: 1.25; }
.prose h3 { font-size: 18px; margin: 24px 0 10px; }
.prose p { color: var(--text-secondary); margin-bottom: 14px; }
.prose ul, .prose ol { color: var(--text-secondary); margin: 0 0 16px 24px; }
.prose li { margin-bottom: 6px; }
.prose .updated { color: var(--text-muted); font-size: 13px; margin-bottom: 32px; }
.prose strong { color: var(--text); }
.prose code {
  background: var(--surface);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.92em;
  border: 1px solid var(--border);
}

/* ===== Guide cards ===== */
.guide-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}
.guide-card {
  display: block;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px;
  text-decoration: none !important;
  transition: transform .15s ease, border-color .15s ease;
}
.guide-card:hover { border-color: var(--accent); transform: translateY(-2px); }
.guide-card .guide-meta { font-size: 12px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 8px; font-weight: 700; }
.guide-card h3 { color: var(--text); font-size: 18px; margin-bottom: 6px; font-weight: 700; }
.guide-card p { color: var(--text-secondary); font-size: 14px; }

/* ===== Footer ===== */
.footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 48px 24px 32px;
  margin-top: 80px;
}
.footer-inner {
  max-width: 1100px; margin: 0 auto;
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px;
}
.footer-brand p { font-size: 14px; color: var(--text-muted); margin-top: 12px; max-width: 320px; }
.footer-col h4 { font-size: 12px; text-transform: uppercase; letter-spacing: 1.5px; color: var(--text-muted); margin-bottom: 14px; }
.footer-col a { display: block; color: var(--text-secondary); font-size: 14px; margin-bottom: 8px; }
.footer-col a:hover { color: var(--text); text-decoration: none; }
.footer-bottom {
  max-width: 1100px; margin: 32px auto 0; padding-top: 24px;
  border-top: 1px solid var(--border);
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  font-size: 13px; color: var(--text-muted);
}
@media (max-width: 720px) {
  .footer-inner { grid-template-columns: 1fr 1fr; }
}

/* ===== Mini utilities ===== */
.mt-md { margin-top: 24px; }
.mt-lg { margin-top: 40px; }
.center { text-align: center; }
.dim { color: var(--text-muted); }
