/* Veto Marketing Site — Shared Styles */

@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700;800&family=Inter:wght@400;500;600&display=swap');

/* ── Tokens ── */
:root {
  --bg: #fffcf2;
  --surface: #ffffff;
  --text: #000000;
  --text-muted: #555555;
  --primary: #FFDE00;
  --accent: #FF90E8;
  --green: #B8FF9F;
  --cyan: #33C5FF;
  --red: #ff4d4d;
  --purple: #8b5cf6;
  --orange: #f97316;
  --border: 2px solid #000;
  --shadow: 4px 4px 0 #000;
  --shadow-lg: 6px 6px 0 #000;
  --phone-radius: 44px;
  --nav-h: 64px;
}

html.dark {
  --bg: #0c0a09;
  --surface: #1c1917;
  --text: #f5f5f4;
  --text-muted: #a8a29e;
  --border: 2px solid #f5f5f4;
  --shadow: 4px 4px 0 #f5f5f4;
  --shadow-lg: 6px 6px 0 #f5f5f4;
  --purple: #a78bfa;
  --orange: #fb923c;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
em { font-style: normal; color: var(--primary); }
:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 4px;
}

/* ── Typography ── */
h1, h2, h3, h4 {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
}
h1 { font-size: clamp(2.5rem, 6vw, 4.5rem); }
h2 { font-size: clamp(1.8rem, 4vw, 2.8rem); }
h3 { font-size: 1.2rem; }

/* ── Layout ── */
.container { max-width: 1100px; margin: 0 auto; padding: 0 24px; }
.section { padding: 80px 0; }

/* ── Nav ── */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-h);
  background: var(--bg);
  border-bottom: var(--border);
  display: flex;
  align-items: center;
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
}
.nav-logo svg { flex-shrink: 0; }
.nav-logo em { color: var(--primary); font-style: normal; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  font-weight: 500;
  font-size: 0.9rem;
}
.nav-links a {
  position: relative;
  padding-bottom: 2px;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: width 0.2s;
}
.nav-links a:hover::after,
.nav-links a.active::after { width: 100%; }
.nav-links a.active { font-weight: 700; }
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border: var(--border);
  cursor: pointer;
  transition: transform 0.1s, box-shadow 0.1s;
  text-decoration: none;
}
.btn:hover { transform: translate(-2px, -2px); box-shadow: var(--shadow); }
.btn:active { transform: translate(0, 0); box-shadow: none; }
.btn-primary { background: var(--primary); color: #000; box-shadow: var(--shadow); }
.btn-primary:hover { box-shadow: var(--shadow-lg); }
.btn-outline { background: transparent; color: var(--text); }

/* ── Hero ── */
.hero {
  padding: 72px 0 0;
  overflow: hidden;
}
.hero-content {
  max-width: 680px;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--primary);
  color: #000;
  border: var(--border);
  box-shadow: var(--shadow);
  padding: 6px 14px;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 24px;
}
.hero h1 { margin-bottom: 20px; }
.hero-sub {
  font-size: 1.15rem;
  color: var(--text-muted);
  margin-bottom: 36px;
  max-width: 520px;
  line-height: 1.7;
}
.appstore-btn {
  display: inline-block;
  border: var(--border);
  box-shadow: var(--shadow);
  transition: transform 0.1s, box-shadow 0.1s;
  line-height: 0;
  background: #000;
}
.appstore-btn:hover { transform: translate(-2px, -2px); box-shadow: var(--shadow-lg); }
.appstore-btn:active { transform: translate(0,0); box-shadow: none; }
.appstore-btn svg { display: block; }

/* ── Phone Row ── */
.phone-row {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 16px;
  padding-top: 56px;
  padding-bottom: 48px; /* absorbs translateY overflow */
  overflow: visible;
}
.phone {
  border-radius: var(--phone-radius);
  overflow: hidden;
  border: 2px solid rgba(0,0,0,0.12);
  box-shadow: 0 32px 80px rgba(0,0,0,0.18), var(--shadow);
  flex-shrink: 0;
  position: relative;
}
.phone::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--phone-radius);
  border: 1.5px solid rgba(255,255,255,0.12);
  pointer-events: none;
  z-index: 1;
}
.phone-side {
  width: 200px;
  transform: translateY(24px);
}
.phone-hero {
  width: 240px;
  transform: translateY(-24px);
}
.phone img { width: 100%; height: auto; display: block; }

/* ── Features ── */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
  margin-top: 48px;
}
.feature-card {
  background: var(--surface);
  border: var(--border);
  padding: 28px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}
.feature-card:hover { transform: translate(-4px, -4px); box-shadow: var(--shadow-lg); }
.feature-card:active { transform: translate(0, 0); box-shadow: none; }
.feature-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  border: var(--border);
  flex-shrink: 0;
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.feature-card:hover .feature-icon {
  transform: scale(1.15) rotate(6deg);
}
.feature-card h3 { font-size: 1.1rem; }
.feature-card p { font-size: 0.9rem; color: var(--text-muted); line-height: 1.6; flex: 1; }
.tag {
  display: inline-block;
  padding: 3px 10px;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border: 1.5px solid currentColor;
  align-self: flex-start;
}

/* ── Screenshot Row ── */
.screenshots-section { padding: 80px 0; }
.screenshots-label {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 24px;
  color: var(--text-muted);
}
.screenshot-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  align-items: flex-start;
}
.screenshot-frame {
  border-radius: 24px;
  overflow: hidden;
  border: var(--border);
  box-shadow: var(--shadow);
}
.screenshot-frame img {
  width: 100%;
  height: auto;
  display: block;
}

/* ── Privacy Strip ── */
.privacy-strip {
  background: var(--text);
  color: var(--bg);
  padding: 64px 0;
}
.privacy-strip h2 { color: var(--primary); margin-bottom: 20px; }
.privacy-strip p { color: rgba(255,252,242,0.7); margin-bottom: 32px; max-width: 560px; font-size: 1.05rem; }
.privacy-pillars {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}
.pillar {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 0.9rem;
}
.pillar-dot {
  width: 10px;
  height: 10px;
  background: var(--primary);
  flex-shrink: 0;
}
.privacy-strip a {
  color: var(--primary);
  font-weight: 700;
  border-bottom: 2px solid var(--primary);
}

/* ── CTA Section ── */
.cta-section {
  padding: 80px 0;
  text-align: center;
  border-top: var(--border);
}
.cta-section h2 { margin-bottom: 16px; }
.cta-section p { color: var(--text-muted); font-size: 1.05rem; margin-bottom: 36px; }

/* ── Footer ── */
.footer {
  border-top: var(--border);
  padding: 32px 0;
  background: var(--bg);
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}
.footer-links {
  display: flex;
  gap: 24px;
  font-size: 0.875rem;
  font-weight: 500;
}
.footer-links a:hover { text-decoration: underline; }
.footer-copy {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ── Page Hero (Support / Privacy) ── */
.page-hero {
  padding: 72px 0 64px;
  border-bottom: var(--border);
}
.section-chip {
  display: inline-flex;
  align-items: center;
  background: var(--primary);
  color: #000;
  border: var(--border);
  box-shadow: var(--shadow);
  padding: 5px 14px;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 20px;
}
.page-hero h1 { margin-bottom: 16px; }
.page-hero .subline {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 520px;
}

/* ── FAQ ── */
.faq-section { padding: 64px 0; }
.faq-list { margin-top: 40px; border-top: var(--border); }
details {
  border-bottom: var(--border);
}
details summary {
  list-style: none;
  cursor: pointer;
  padding: 20px 0;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  user-select: none;
}
details summary::-webkit-details-marker { display: none; }
details summary::after {
  content: '+';
  font-size: 1.6rem;
  font-weight: 400;
  flex-shrink: 0;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  line-height: 1;
  display: inline-block;
}
details[open] summary::after {
  transform: rotate(45deg);
}
.faq-answer {
  padding: 0 0 20px;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.7;
  max-width: 680px;
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity 0.25s ease-out, transform 0.25s ease-out;
}
details[open] .faq-answer {
  opacity: 1;
  transform: translateY(0);
}

/* ── Contact Box ── */
.contact-box {
  margin-top: 64px;
  background: var(--surface);
  border: var(--border);
  box-shadow: var(--shadow);
  padding: 40px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 640px;
}
.contact-box h3 { font-size: 1.3rem; }
.contact-box p { color: var(--text-muted); font-size: 0.95rem; margin-bottom: 8px; }

.form-row {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
.form-row input {
  flex: 1;
  min-width: 180px;
}
.contact-form input,
.contact-form textarea {
  padding: 12px 16px;
  background: var(--bg);
  border: var(--border);
  color: var(--text);
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 15px;
  width: 100%;
  transition: box-shadow 0.15s;
}
.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: var(--text-muted);
  opacity: 0.7;
}
.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  box-shadow: var(--shadow);
}
.form-success {
  padding: 24px;
  background: rgba(184, 255, 159, 0.15);
  border: var(--border);
  color: var(--text);
  text-align: center;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 16px;
}

/* ── Privacy Prose ── */
.privacy-prose { padding: 64px 0; max-width: 760px; }
.last-updated {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: var(--border);
  padding: 6px 16px;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 48px;
  background: var(--surface);
}
.privacy-prose h2 {
  font-size: 1.3rem;
  margin: 40px 0 14px;
  padding-bottom: 8px;
  border-bottom: var(--border);
}
.privacy-prose h2:first-of-type { margin-top: 0; }
.privacy-prose p, .privacy-prose li {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.8;
}
.privacy-prose ul {
  padding-left: 20px;
  margin-top: 8px;
}
.privacy-prose li { margin-bottom: 6px; }
.privacy-prose a { color: var(--text); font-weight: 600; border-bottom: 2px solid var(--primary); }

/* ── Divider ── */
.divider { border: none; border-top: var(--border); margin: 0; }

/* ── Responsive ── */
@media (max-width: 680px) {
  .nav-links { display: none; }
  .phone-side { display: none; }
  .phone-row { padding-top: 40px; }
  .phone-hero { width: 80vw; max-width: 300px; transform: none; }
  .screenshot-row { grid-template-columns: repeat(2, 1fr); }
  .features-grid { grid-template-columns: 1fr; }
  .privacy-pillars { flex-direction: column; gap: 16px; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
  .cta-section { text-align: left; }
  .contact-box { padding: 28px 24px; }
}

@media (max-width: 900px) {
  .phone-side { width: 160px; }
  .phone-hero { width: 200px; }
}

/* ── Theme Toggle Button ── */
.theme-toggle {
  background: var(--surface);
  border: var(--border);
  color: var(--text);
  padding: 8px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.1s, box-shadow 0.1s;
  box-shadow: 3px 3px 0 var(--text);
  margin-right: 16px;
}
.theme-toggle:hover {
  transform: translate(-1px, -1px);
  box-shadow: 4px 4px 0 var(--text);
}
.theme-toggle:active {
  transform: translate(0, 0);
  box-shadow: none;
}
.theme-toggle svg {
  display: block;
}
html.light .theme-toggle .moon-icon { display: block; }
html.light .theme-toggle .sun-icon { display: none; }
html.dark .theme-toggle .moon-icon { display: none; }
html.dark .theme-toggle .sun-icon { display: block; }

/* ── Scroll-Driven Entry/Exit Reveal Animations ── */
@media (prefers-reduced-motion: no-preference) {
  @supports ((animation-timeline: view()) and (animation-range: entry)) {
    @keyframes reveal-up {
      from {
        opacity: 0;
        transform: translateY(40px);
      }
      to {
        opacity: 1;
        transform: translateY(0);
      }
    }
    
    .scroll-reveal {
      animation: reveal-up auto linear forwards;
      animation-timeline: view();
      animation-range: entry 10% cover 30%;
    }
  }

  /* Fallback class for IntersectionObserver */
  .scroll-reveal-init {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  }
  .scroll-reveal-active {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ── Privacy Strip Dark Mode Overrides ── */
html.dark .privacy-strip h2 {
  color: #000;
}
html.dark .privacy-strip p {
  color: rgba(0, 0, 0, 0.7);
}
html.dark .privacy-strip a {
  color: #000;
  border-bottom-color: #000;
}
html.dark .privacy-strip .pillar-dot {
  background: #000;
}
html.dark .phone {
  border-color: rgba(255, 255, 255, 0.15);
}

