/* Shop Solo — shared design tokens and page shell.
   Palette mirrors mobile/src/theme.ts so web and app stay in sync. */
:root {
  --accent: #FF4B4D;
  --accent-dark: #E21F31;
  --navy: #101020;
  --navy-deep: #0B1A4A;
  --navy-text: #2C2D51;
  --navy-soft: #545872;

  --text: var(--navy-text);
  --text-muted: var(--navy-soft);
  --white: #ffffff;
  --page-bg: #f6f7fb;
  --card-bg: #ffffff;
  --surface-alt: #eef0f7;
  --border: #e4e6f0;

  --radius: 16px;
  --radius-pill: 30px;
  --shadow: 0 10px 30px rgba(16, 16, 32, 0.08);
  --shadow-red: 0 8px 24px rgba(255, 75, 77, 0.35);
}

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

html { scroll-behavior: smooth; }

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

a { color: inherit; text-decoration: none; }

.container {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}
/* Narrower measure for long-form pages (privacy, account deletion). */
.container-narrow { max-width: 820px; }

/* Header */
header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(246, 247, 251, 0.82);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--navy-text);
}
.brand img { width: 38px; height: 38px; border-radius: 11px; }
/* Two-tone wordmark: "Shop" in navy, "Solo" in red — same as the app. */
.wordmark .solo { color: var(--accent); }
.nav-links { display: flex; gap: 28px; align-items: center; }
.nav-links a { color: var(--text-muted); font-size: 0.95rem; font-weight: 500; }
.nav-links a:hover { color: var(--accent-dark); }
.nav-cta {
  background: var(--accent);
  color: var(--white) !important;
  padding: 9px 22px;
  border-radius: var(--radius-pill);
  font-weight: 600;
  box-shadow: var(--shadow-red);
}
.nav-cta:hover { background: var(--accent-dark); text-decoration: none; }

/* Buttons */
.btn {
  display: inline-block;
  padding: 14px 30px;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 1rem;
  transition: transform 0.12s ease, background 0.2s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: var(--accent);
  color: var(--white);
  box-shadow: var(--shadow-red);
}
.btn-primary:hover { background: var(--accent-dark); }
.btn-outline {
  border: 1.5px solid rgba(255, 255, 255, 0.45);
  color: var(--white);
}
.btn-outline:hover { background: rgba(255, 255, 255, 0.12); }

/* Dark hero — matches the app splash screen */
.page-hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(165deg, #16183c 0%, var(--navy-deep) 55%, var(--navy) 100%);
  color: var(--white);
  padding: 56px 0;
}
/* Soft red glow, echoing the blurred circles in the app headers. */
.page-hero::after {
  content: "";
  position: absolute;
  top: -140px;
  right: -120px;
  width: 380px;
  height: 380px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 75, 77, 0.28) 0%, rgba(255, 75, 77, 0) 70%);
  pointer-events: none;
}
.page-hero > * { position: relative; z-index: 1; }
.page-hero h1 { font-size: 2.2rem; font-weight: 800; margin-bottom: 8px; }
.page-hero p { opacity: 0.85; }

/* Article/legal content card */
.content {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 48px;
  margin: -40px auto 64px;
  line-height: 1.7;
}
.content h2 { font-size: 1.3rem; margin: 32px 0 10px; color: var(--navy-text); }
.content h2:first-of-type { margin-top: 0; }
.content p { color: var(--text-muted); margin-bottom: 14px; }
.content ul, .content ol { color: var(--text-muted); margin: 0 0 14px 22px; }
.content li { margin-bottom: 6px; }
.content a { color: var(--accent-dark); }
.content a:hover { text-decoration: underline; }
.content strong { color: var(--navy-text); }
.updated { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 28px; }

/* Footer */
footer {
  background: var(--navy);
  color: rgba(255, 255, 255, 0.82);
  padding: 40px 0;
}
.footer-grid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}
.footer-grid .brand { color: var(--white); }
.footer-links { display: flex; gap: 24px; font-size: 0.95rem; flex-wrap: wrap; }
.footer-links a { color: rgba(255, 255, 255, 0.82); }
.footer-links a:hover { color: var(--white); text-decoration: underline; }
.copyright {
  width: 100%;
  text-align: center;
  margin-top: 24px;
  font-size: 0.85rem;
  opacity: 0.6;
}

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
  transition-delay: var(--reveal-delay, 0s);
  will-change: opacity, transform;
}
.reveal.in-view { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

@media (max-width: 640px) {
  .content { padding: 28px; }
  .page-hero h1 { font-size: 1.8rem; }
}
