/* ============================================
   FotoFinish Landing Pages - Shared Styles
   Modern Glassy Design System
   ============================================ */

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

:root {
  /* Brand Colors */
  --brand-blue: #84b9ef;
  --brand-blue-dark: #3a7bd5;
  --brand-blue-deeper: #1a5bb5;
  --brand-navy: #0f2b4a;
  --brand-green: #06cc2e;
  --brand-green-dark: #05a825;

  /* Neutrals */
  --white: #ffffff;
  --off-white: #f9f8f8;
  --warm-bg: #f4f1ee;
  --warm-light: #f4e6da;
  --text-dark: #1a1615;
  --text-medium: #4a4543;
  --text-light: #7a7675;
  --text-on-dark: #e8e6e4;

  /* Glass Effects */
  --glass-bg: rgba(255, 255, 255, 0.65);
  --glass-bg-strong: rgba(255, 255, 255, 0.85);
  --glass-border: rgba(255, 255, 255, 0.3);
  --glass-shadow: 0 8px 32px rgba(15, 43, 74, 0.08);
  --glass-shadow-lg: 0 16px 48px rgba(15, 43, 74, 0.12);

  /* Spacing */
  --section-padding: 100px 24px;
  --container-max: 1100px;
  --radius-sm: 12px;
  --radius-md: 20px;
  --radius-lg: 28px;
  --radius-xl: 40px;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--text-dark);
  background: var(--off-white);
  line-height: 1.6;
  overflow-x: hidden;
}

.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
}

img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }

/* --- Typography --- */
h1, h2, h3, h4 {
  font-family: 'DM Sans', 'Inter', sans-serif;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

h1 {
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  line-height: 1.1;
}

h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
}

h3 {
  font-size: clamp(1.2rem, 2vw, 1.5rem);
  font-weight: 600;
}

p {
  font-size: 1.05rem;
  color: var(--text-medium);
}

.text-gradient {
  background: linear-gradient(135deg, var(--brand-blue-dark), var(--brand-blue));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* --- Page Background --- */
.page-bg {
  min-height: 100vh;
  background:
    radial-gradient(ellipse at 20% 0%, rgba(132, 185, 239, 0.15) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 20%, rgba(132, 185, 239, 0.1) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 100%, rgba(244, 230, 218, 0.3) 0%, transparent 60%),
    linear-gradient(180deg, #fafafa 0%, #f4f1ee 50%, #eae6e2 100%);
}

/* --- Navbar --- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 16px 24px;
  transition: all 0.3s ease;
}

.navbar.scrolled {
  background: var(--glass-bg-strong);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--glass-border);
  box-shadow: 0 2px 20px rgba(0,0,0,0.04);
}

.navbar-inner {
  max-width: var(--container-max);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.navbar-logo {
  height: 36px;
  width: auto;
}

.navbar-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 24px;
  background: var(--brand-blue-dark);
  color: var(--white);
  border-radius: 100px;
  font-size: 0.9rem;
  font-weight: 600;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
}

.navbar-cta:hover {
  background: var(--brand-blue-deeper);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(58, 123, 213, 0.3);
}

/* --- Hero Section --- */
.hero {
  padding: 140px 24px 80px;
  text-align: center;
  position: relative;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 20px;
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  border-radius: 100px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--brand-blue-dark);
  margin-bottom: 28px;
}

.hero-badge .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--brand-green);
  animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(1.3); }
}

.hero h1 {
  max-width: 800px;
  margin: 0 auto 20px;
}

.hero-sub {
  font-size: clamp(1.05rem, 1.8vw, 1.25rem);
  color: var(--text-medium);
  max-width: 600px;
  margin: 0 auto 40px;
  line-height: 1.6;
}

.hero-cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
  margin-bottom: 48px;
}

.hero-image-wrapper {
  max-width: 900px;
  margin: 0 auto;
  position: relative;
}

.hero-image-wrapper img {
  border-radius: var(--radius-lg);
  box-shadow: var(--glass-shadow-lg);
}

/* Floating glass elements */
.hero-float {
  position: absolute;
  background: var(--glass-bg-strong);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  box-shadow: var(--glass-shadow);
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.9rem;
  font-weight: 600;
  animation: float 6s ease-in-out infinite;
}

.hero-float--left {
  left: -40px;
  bottom: 30%;
  animation-delay: 0s;
}

.hero-float--right {
  right: -40px;
  top: 20%;
  animation-delay: 3s;
}

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-12px); }
}

.hero-float .icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

.icon-green { background: rgba(6, 204, 46, 0.12); color: var(--brand-green); }
.icon-blue { background: rgba(58, 123, 213, 0.12); color: var(--brand-blue-dark); }

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 36px;
  border-radius: 100px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  text-align: center;
}

.btn-primary {
  background: linear-gradient(135deg, var(--brand-blue-dark), var(--brand-blue-deeper));
  color: var(--white);
  box-shadow: 0 4px 20px rgba(58, 123, 213, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(58, 123, 213, 0.4);
}

.btn-secondary {
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(0,0,0,0.08);
  color: var(--text-dark);
}

.btn-secondary:hover {
  background: var(--glass-bg-strong);
  transform: translateY(-2px);
  box-shadow: var(--glass-shadow);
}

.btn-large {
  padding: 20px 48px;
  font-size: 1.1rem;
}

.btn-icon {
  font-size: 1.2rem;
}

/* --- Pain Section --- */
.pain-section {
  padding: var(--section-padding);
}

.pain-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
  margin-top: 48px;
}

.pain-card {
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  padding: 32px;
  transition: all 0.3s ease;
}

.pain-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--glass-shadow-lg);
}

.pain-card .pain-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 20px;
  background: rgba(239, 68, 68, 0.08);
}

.pain-card h3 {
  margin-bottom: 10px;
}

.pain-card p {
  font-size: 0.95rem;
  color: var(--text-light);
}

/* --- Stats Bar --- */
.stats-bar {
  padding: 60px 24px;
}

.stats-inner {
  max-width: var(--container-max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 32px;
  background: var(--glass-bg-strong);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 48px 40px;
  box-shadow: var(--glass-shadow);
}

.stat-item {
  text-align: center;
}

.stat-number {
  font-family: 'DM Sans', sans-serif;
  font-size: 2.8rem;
  font-weight: 700;
  color: var(--brand-blue-dark);
  line-height: 1;
  margin-bottom: 8px;
}

.stat-label {
  font-size: 0.9rem;
  color: var(--text-light);
  font-weight: 500;
}

/* --- Benefits Section --- */
.benefits-section {
  padding: var(--section-padding);
}

.benefits-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 60px;
}

.benefits-header p {
  margin-top: 16px;
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 28px;
}

.benefit-card {
  background: var(--glass-bg-strong);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  padding: 40px 32px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.benefit-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--brand-blue-dark), var(--brand-blue));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.benefit-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--glass-shadow-lg);
}

.benefit-card:hover::before {
  opacity: 1;
}

.benefit-icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin-bottom: 24px;
  background: linear-gradient(135deg, rgba(58, 123, 213, 0.1), rgba(132, 185, 239, 0.15));
}

.benefit-card h3 {
  margin-bottom: 12px;
}

.benefit-card p {
  font-size: 0.95rem;
  color: var(--text-light);
  line-height: 1.6;
}

/* --- How It Works --- */
.how-section {
  padding: var(--section-padding);
  position: relative;
}

.how-header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 64px;
}

.how-header p {
  margin-top: 16px;
}

.how-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  position: relative;
}

.how-steps::before {
  content: '';
  position: absolute;
  top: 50px;
  left: 15%;
  right: 15%;
  height: 2px;
  background: linear-gradient(90deg, var(--brand-blue) 0%, var(--brand-blue-dark) 50%, var(--brand-blue) 100%);
  opacity: 0.2;
}

.step-card {
  text-align: center;
  position: relative;
  z-index: 1;
}

.step-number {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand-blue-dark), var(--brand-blue));
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'DM Sans', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0 auto 24px;
  box-shadow: 0 4px 20px rgba(58, 123, 213, 0.25);
}

.step-card h3 {
  margin-bottom: 12px;
}

.step-card p {
  font-size: 0.95rem;
  color: var(--text-light);
  max-width: 280px;
  margin: 0 auto;
}

/* --- Testimonial / Social Proof --- */
.testimonial-section {
  padding: var(--section-padding);
}

.testimonial-card {
  max-width: 750px;
  margin: 0 auto;
  background: var(--glass-bg-strong);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 56px 48px;
  text-align: center;
  box-shadow: var(--glass-shadow);
  position: relative;
}

.testimonial-card::before {
  content: '\201C';
  position: absolute;
  top: 24px;
  left: 40px;
  font-size: 5rem;
  font-family: Georgia, serif;
  color: var(--brand-blue);
  opacity: 0.2;
  line-height: 1;
}

.testimonial-quote {
  font-size: 1.2rem;
  line-height: 1.7;
  color: var(--text-dark);
  font-style: italic;
  margin-bottom: 28px;
}

.testimonial-author {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

.testimonial-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand-blue), var(--brand-blue-dark));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-weight: 700;
  font-size: 1.1rem;
}

.testimonial-info strong {
  display: block;
  font-size: 1rem;
}

.testimonial-info span {
  font-size: 0.85rem;
  color: var(--text-light);
}

/* --- Product Visual Section --- */
.visual-section {
  padding: 60px 24px 100px;
}

.visual-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  max-width: var(--container-max);
  margin: 0 auto;
}

.visual-content h2 {
  margin-bottom: 20px;
}

.visual-content p {
  margin-bottom: 24px;
}

.visual-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 32px;
}

.visual-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.95rem;
  color: var(--text-medium);
}

.visual-list .check {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(6, 204, 46, 0.1);
  color: var(--brand-green);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
  font-size: 0.85rem;
}

.visual-image {
  border-radius: var(--radius-lg);
  box-shadow: var(--glass-shadow-lg);
  overflow: hidden;
}

.visual-image img {
  width: 100%;
}

/* --- CTA Section --- */
.cta-section {
  padding: var(--section-padding);
}

.cta-card {
  max-width: 900px;
  margin: 0 auto;
  background: linear-gradient(135deg, var(--brand-navy) 0%, #1a3a5c 50%, var(--brand-blue-dark) 100%);
  border-radius: var(--radius-xl);
  padding: 80px 60px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-card::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: rgba(132, 185, 239, 0.08);
}

.cta-card::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: rgba(132, 185, 239, 0.06);
}

.cta-card h2 {
  color: var(--white);
  margin-bottom: 16px;
  position: relative;
  z-index: 1;
}

.cta-card p {
  color: rgba(255,255,255,0.7);
  max-width: 550px;
  margin: 0 auto 36px;
  font-size: 1.1rem;
  position: relative;
  z-index: 1;
}

.cta-card .btn-primary {
  background: var(--white);
  color: var(--brand-navy);
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
  position: relative;
  z-index: 1;
}

.cta-card .btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.2);
}

.cta-no-risk {
  margin-top: 20px;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.5);
  position: relative;
  z-index: 1;
}

/* --- Calendar Embed Section --- */
.calendar-section {
  padding: var(--section-padding);
}

.calendar-header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 40px;
}

.calendar-header p {
  margin-top: 12px;
}

.calendar-wrapper {
  max-width: 700px;
  margin: 0 auto;
  background: var(--glass-bg-strong);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--glass-shadow);
}

/* --- Footer --- */
.footer {
  padding: 40px 24px;
  text-align: center;
  border-top: 1px solid rgba(0,0,0,0.05);
}

.footer p {
  font-size: 0.85rem;
  color: var(--text-light);
}

.footer a {
  color: var(--brand-blue-dark);
  font-weight: 500;
}

/* --- Responsive --- */
@media (max-width: 768px) {
  .hero {
    padding: 120px 20px 60px;
  }

  .how-steps {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .how-steps::before {
    display: none;
  }

  .visual-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .visual-image {
    order: -1;
  }

  .hero-float {
    display: none;
  }

  .stats-inner {
    grid-template-columns: repeat(2, 1fr);
    padding: 32px 24px;
  }

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

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

  .cta-card {
    padding: 48px 28px;
  }

  .testimonial-card {
    padding: 40px 28px;
  }

  .calendar-wrapper {
    padding: 20px;
  }
}

@media (max-width: 480px) {
  .stats-inner {
    grid-template-columns: 1fr;
  }

  .hero-cta-group {
    flex-direction: column;
    align-items: center;
  }

  .btn {
    width: 100%;
    max-width: 320px;
  }
}

/* --- Utility --- */
.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 16px;
  background: rgba(58, 123, 213, 0.08);
  color: var(--brand-blue-dark);
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 16px;
}

.highlight {
  color: var(--brand-blue-dark);
  font-weight: 600;
}

.text-center { text-align: center; }
.mb-0 { margin-bottom: 0; }
