/* =============================================================
   NudgeReviews — Shared stylesheet
   Imported by all pages. Page-specific styles stay in each
   file's own <style> block.
   ============================================================= */

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

/* VARIABLES */
:root {
  --ink: #0d0d0d;
  --ink-muted: #555;
  --ink-faint: #999;
  --surface: #fbf7ed;
  --white: #ffffff;
  --accent: #ff5c00;
  --accent-light: #fff3ee;
  --star: #f5a623;
  --border: rgba(0,0,0,0.1);
  --radius: 14px;
}

html { scroll-behavior: smooth; }

/* BODY BASE */
body {
  font-family: 'DM Sans', sans-serif;
  background: var(--surface);
  color: var(--ink);
  line-height: 1.6;
  font-size: 16px;
  overflow-x: hidden;
}

/* NAV */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.2rem 5%;
  background: rgba(251,247,237,0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav-logo {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 1.3rem;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: -0.02em;
}

.nav-logo span { color: var(--accent); }

.nav-help {
  font-size: 0.875rem;
  color: var(--ink-muted);
  text-decoration: none;
}
.nav-help:hover { color: var(--ink); }

.nav-back {
  font-size: 0.875rem;
  color: var(--ink-muted);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 5px;
}
.nav-back:hover { color: var(--ink); }

/* SECTION UTILITIES */
.section {
  padding: 6rem 5%;
  max-width: 1100px;
  margin: 0 auto;
}

.section-label {
  font-family: 'DM Sans', sans-serif;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 0.9rem;
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0.02em;
  text-transform: none;
  color: #ff8d2a;
  background: var(--white);
  margin-bottom: 0.75rem;
  padding: 0.38rem 0.95rem;
  border-radius: 100px;
  border: 1px solid rgba(21, 27, 38, 0.1);
  box-shadow: 0 10px 24px rgba(21,27,38,0.06);
}

.section-label .section-label-text {
  background-image: linear-gradient(90deg, #ffbf45 0%, #ff8d2a 45%, #ff5c00 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.section-label::before {
  content: '';
  width: 6px; height: 6px;
  background: var(--accent);
  border-radius: 50%;
  flex-shrink: 0;
  animation: pretitlePulse 1.3s ease-in-out infinite;
}

.section-title {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  letter-spacing: -0.02em;
  line-height: 1.15;
  max-width: 560px;
}

/* BUTTONS */
.btn-primary {
  background: var(--accent);
  color: var(--white);
  padding: 1rem 2.2rem;
  border-radius: 100px;
  font-size: 1rem;
  font-weight: 500;
  text-decoration: none;
  transition: transform 0.15s, box-shadow 0.15s;
  box-shadow: 0 4px 20px rgba(255,92,0,0.35);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 28px rgba(255,92,0,0.4); }

.btn-secondary {
  background: var(--white);
  color: var(--ink);
  padding: 1rem 2.2rem;
  border-radius: 100px;
  font-size: 1rem;
  font-weight: 500;
  text-decoration: none;
  border: 1.5px solid var(--border);
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
.btn-secondary:hover { border-color: var(--ink); background: var(--white); }

/* STARS */
.stars {
  display: flex;
  gap: 2px;
}
.star { color: var(--star); font-size: 1rem; }

/* TESTIMONIALS */
.testimonial {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
}

.testimonial .stars {
  margin-bottom: 1rem;
}

.testimonial blockquote {
  font-size: 0.95rem;
  line-height: 1.65;
  color: var(--ink);
  margin-bottom: 1.25rem;
  font-style: italic;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 10px;
}

.avatar {
  width: 38px; height: 38px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 0.8rem;
  color: var(--white);
  flex-shrink: 0;
}

.avatar.a1 { background: #2563eb; }
.avatar.a2 { background: #16a34a; }
.avatar.a3 { background: #9333ea; }

.author-info strong {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
}

.author-info span {
  font-size: 0.78rem;
  color: var(--ink-muted);
}

/* FOOTER */
footer {
  text-align: center;
  padding: 2rem 5%;
  border-top: 1px solid var(--border);
  font-size: 0.8rem;
  color: var(--ink-faint);
}

footer strong { color: var(--ink); font-weight: 600; }

/* ANIMATIONS */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes pretitlePulse {
  0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(255,92,0,0.52); }
  60% { transform: scale(1.18); box-shadow: 0 0 0 10px rgba(255,92,0,0); }
  100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(255,92,0,0); }
}

@keyframes ticker {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
  .section-label::before { animation: none; }
}
