/* ============================================================
   PhotosHere — styles.css
   Mobile-first. No external dependencies.
   ============================================================ */

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

:root {
  --bg:          #ffffff;
  --surface:     #f8fafc;
  --border:      #e2e8f0;
  --text:        #0f172a;
  --muted:       #64748b;
  --primary:     #2563eb;
  --primary-dk:  #1d4ed8;
  --badge-bg:    #dbeafe;
  --badge-text:  #1e40af;
  --warn-bg:     #fefce8;
  --warn-border: #fde68a;
  --warn-text:   #78350f;
  --radius:      12px;
  --font:        -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --max-w:       1040px;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 1rem;
  -webkit-font-smoothing: antialiased;
}

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

.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* ── Buttons ─────────────────────────────────────────────── */
.btn {
  display: inline-block;
  padding: 0.8rem 1.75rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1rem;
  line-height: 1;
  cursor: pointer;
  text-align: center;
  text-decoration: none !important;
  transition: background 0.15s ease, box-shadow 0.15s ease;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 1px 3px rgba(0,0,0,.12), 0 4px 12px rgba(37,99,235,.25);
}
.btn-primary:hover {
  background: var(--primary-dk);
  box-shadow: 0 1px 3px rgba(0,0,0,.12), 0 6px 18px rgba(37,99,235,.35);
}

.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}
.btn-outline:hover {
  background: var(--badge-bg);
}

.btn-sm {
  padding: 0.45rem 1rem;
  font-size: 0.875rem;
}

.btn-full { width: 100%; display: block; }

/* ── Site header ─────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.94);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  padding: 0.9rem 0;
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.logo {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.03em;
  text-decoration: none !important;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.site-nav a {
  font-size: 0.9375rem;
  color: var(--muted);
  font-weight: 500;
}
.site-nav a:hover {
  color: var(--text);
  text-decoration: none;
}

/* ── Hero ────────────────────────────────────────────────── */
.hero {
  padding: 4.5rem 0 4rem;
  background: linear-gradient(150deg, #eff6ff 0%, #f8fafc 55%, #f8fafc 100%);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  background: var(--badge-bg);
  color: var(--badge-text);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.3rem 0.8rem;
  border-radius: 99px;
  margin-bottom: 1.5rem;
}

.badge::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  background: var(--primary);
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.5; transform: scale(0.8); }
}

.hero h1 {
  font-size: clamp(2.25rem, 8vw, 3.75rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.04em;
  margin-bottom: 1.25rem;
  max-width: 620px;
}

.hero-sub {
  font-size: clamp(1rem, 2.5vw, 1.1875rem);
  color: var(--muted);
  max-width: 500px;
  margin-bottom: 2rem;
  line-height: 1.7;
}

.hero .btn { margin-bottom: 2rem; }

.hero-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-size: 0.8125rem;
  color: var(--muted);
}

.hero-pills span {
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.hero-pills span::before {
  content: "✓";
  color: var(--primary);
  font-weight: 700;
}

/* ── How it works ────────────────────────────────────────── */
.how-it-works {
  padding: 4rem 0;
  background: var(--bg);
}

.section-label {
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 0.75rem;
}

.section-title {
  font-size: clamp(1.5rem, 4vw, 2.125rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 2.5rem;
  max-width: 520px;
}

.steps {
  display: grid;
  gap: 2rem;
}

.step {
  display: flex;
  gap: 1.125rem;
  align-items: flex-start;
}

.step-num {
  flex-shrink: 0;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-weight: 800;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.step-body h3 {
  font-size: 1.0625rem;
  font-weight: 700;
  margin-bottom: 0.375rem;
}

.step-body p {
  color: var(--muted);
  font-size: 0.9375rem;
  line-height: 1.65;
}

/* ── Features ────────────────────────────────────────────── */
.features {
  padding: 4rem 0;
  background: var(--surface);
}

.feature-grid {
  display: grid;
  gap: 1.25rem;
}

.feature-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
}

.feature-icon {
  font-size: 1.625rem;
  margin-bottom: 0.875rem;
  line-height: 1;
}

.feature-card h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.375rem;
}

.feature-card p {
  color: var(--muted);
  font-size: 0.9375rem;
  line-height: 1.65;
}

.feature-card .planned {
  display: inline-block;
  margin-top: 0.5rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--primary);
  background: var(--badge-bg);
  padding: 0.15rem 0.6rem;
  border-radius: 99px;
}

/* ── Beta CTA ────────────────────────────────────────────── */
.beta-cta {
  padding: 4rem 0;
  background: var(--primary);
  color: #fff;
  text-align: center;
}

.beta-cta .section-label {
  color: rgba(255,255,255,0.7);
}

.beta-cta .section-title {
  color: #fff;
  margin: 0 auto 1.25rem;
}

.beta-cta p {
  font-size: 1.0625rem;
  color: rgba(255,255,255,0.8);
  max-width: 440px;
  margin: 0 auto 1.75rem;
  line-height: 1.7;
}

.beta-email-cta {
  font-size: 1.1875rem;
  font-weight: 700;
  margin-bottom: 0.75rem !important;
  color: #fff !important;
}

.beta-email-cta a {
  color: #bfdbfe;
  border-bottom: 2px solid rgba(191,219,254,0.5);
  padding-bottom: 1px;
}
.beta-email-cta a:hover {
  color: #fff;
  border-color: #fff;
  text-decoration: none;
}

.beta-note {
  font-size: 0.875rem !important;
  color: rgba(255,255,255,0.55) !important;
}

/* ── Footer ──────────────────────────────────────────────── */
.site-footer {
  padding: 2.5rem 0;
  border-top: 1px solid var(--border);
  background: var(--bg);
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
}

.footer-links a {
  font-size: 0.875rem;
  color: var(--muted);
  font-weight: 500;
}
.footer-links a:hover {
  color: var(--text);
  text-decoration: none;
}

.footer-copy {
  font-size: 0.8125rem;
  color: var(--muted);
}

/* ── Legal pages ─────────────────────────────────────────── */
.legal-hero {
  padding: 3rem 0 2rem;
  border-bottom: 1px solid var(--border);
}

.legal-hero h1 {
  font-size: clamp(1.75rem, 5vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 0.375rem;
}

.legal-hero .updated {
  font-size: 0.875rem;
  color: var(--muted);
}

.draft-banner {
  background: var(--warn-bg);
  border: 1px solid var(--warn-border);
  border-radius: 8px;
  padding: 1rem 1.25rem;
  margin: 2rem 0;
  color: var(--warn-text);
  font-size: 0.9375rem;
  line-height: 1.6;
}

.draft-banner strong {
  display: block;
  font-size: 0.9375rem;
  margin-bottom: 0.25rem;
}

.legal-body {
  padding: 0.5rem 0 4rem;
}

.legal-body h2 {
  font-size: 1.125rem;
  font-weight: 700;
  margin: 2.25rem 0 0.625rem;
  letter-spacing: -0.01em;
}

.legal-body h2:first-child { margin-top: 0; }

.legal-body p,
.legal-body ul,
.legal-body ol {
  color: var(--muted);
  font-size: 0.9375rem;
  line-height: 1.75;
  margin-bottom: 0.875rem;
}

.legal-body ul,
.legal-body ol {
  padding-left: 1.5rem;
}

.legal-body li { margin-bottom: 0.375rem; }

.legal-body a { color: var(--primary); }

/* ── Contact page ────────────────────────────────────────── */
.contact-grid {
  display: grid;
  gap: 1.5rem;
  margin-top: 2rem;
}

.contact-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
}

.contact-card h2 {
  font-size: 1.0625rem;
  font-weight: 700;
  margin-bottom: 0.375rem;
}

.contact-card p {
  color: var(--muted);
  font-size: 0.9375rem;
  line-height: 1.65;
}

.contact-card .email-link {
  display: inline-block;
  margin-top: 0.75rem;
  font-weight: 600;
  font-size: 1rem;
}

.contact-card .contact-status {
  display: inline-block;
  margin-top: 0.75rem;
  font-size: 0.9375rem;
  color: var(--muted);
  font-style: italic;
}

.contact-card a {
  display: inline-block;
  margin-top: 0.75rem;
  font-weight: 600;
  font-size: 0.9375rem;
}

/* ── Responsive ──────────────────────────────────────────── */
@media (min-width: 600px) {
  .feature-grid {
    grid-template-columns: 1fr 1fr;
  }

  .contact-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 860px) {
  .steps {
    grid-template-columns: 1fr 1fr 1fr;
  }

  .step {
    flex-direction: column;
  }

  .feature-grid {
    grid-template-columns: 1fr 1fr 1fr 1fr;
  }

  .footer-inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  .hero .btn {
    width: auto;
  }
}
