/* ============================================================
   RestoScope Pro Landing Page — Stylesheet
   ============================================================ */

/* ----- Custom Properties ----- */
:root {
  --color-primary: #0B558A;
  --color-primary-rgb: 11, 85, 138;
  --color-primary-light: #138DC4;
  --color-primary-dark: #083D64;

  --color-white: #FFFFFF;
  --color-bg: #FFFFFF;
  --color-bg-alt: #F5F7FA;
  --color-bg-hero: #F0F6FB;

  --color-text: #1A1A2E;
  --color-text-secondary: #4A5568;
  --color-text-muted: #718096;
  --color-border: #E2E8F0;

  --color-cta: #138DC4;
  --color-cta-hover: #0B558A;

  --color-testimonial-bg: #F0F6FB;

  --section-padding: 5rem 0;
  --section-padding-sm: 3rem 0;
}

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

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 1.125rem;
  line-height: 1.7;
  color: var(--color-text);
  background-color: var(--color-bg);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

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

h1, h2, h3 {
  line-height: 1.2;
  color: var(--color-text);
}

h1 {
  font-size: 3rem;
  font-weight: 700;
  line-height: 1.15;
}

h2 {
  font-size: 2.25rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
}

h3 {
  font-size: 1.5rem;
  font-weight: 600;
  line-height: 1.3;
}

p + p {
  margin-top: 1rem;
}

/* ----- Utilities ----- */
.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ----- Skip Link (Accessibility) ----- */
.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  padding: 0.5rem 1rem;
  background: var(--color-primary);
  color: #fff;
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: 4px;
  z-index: 200;
}

.skip-link:focus {
  top: 0.5rem;
}

/* ----- Focus States ----- */
a:focus-visible,
.btn:focus-visible {
  outline: 3px solid var(--color-primary-light);
  outline-offset: 2px;
}

/* ----- Header ----- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.95);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--color-border);
  padding: 0.75rem 0;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo-link {
  display: flex;
  align-items: center;
}

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

.nav-login {
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--color-primary);
  padding: 0.5rem 1.25rem;
  border: 2px solid var(--color-primary);
  border-radius: 6px;
  transition: background 0.2s, color 0.2s;
}

.nav-login:hover {
  background: var(--color-primary);
  color: #fff;
}

/* ----- Buttons ----- */
.btn {
  display: inline-block;
  font-family: inherit;
  font-weight: 600;
  font-size: 1rem;
  line-height: 1;
  text-align: center;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
}

.btn-primary {
  background: var(--color-cta);
  color: #fff;
  padding: 1rem 2rem;
  box-shadow: 0 2px 8px rgba(19, 141, 196, 0.3);
}

.btn-primary:hover {
  background: var(--color-cta-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(11, 85, 138, 0.3);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-lg {
  font-size: 1.125rem;
  padding: 1.125rem 2.5rem;
}

/* ----- Hero ----- */
.hero {
  background: var(--color-bg-hero);
  padding: 5rem 0 4rem;
  text-align: center;
}

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

.hero-kicker {
  font-size: 1.0625rem;
  font-weight: 500;
  color: var(--color-primary);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 1rem;
}

.hero-subtitle {
  max-width: 680px;
  margin: 0 auto 1rem;
  color: var(--color-text-secondary);
  font-size: 1.125rem;
}

.hero-brands {
  max-width: 640px;
  margin: 0 auto 1rem;
  color: var(--color-text-secondary);
  font-size: 1rem;
}

.hero-trust {
  display: inline-block;
  font-weight: 600;
  color: var(--color-primary);
  margin-bottom: 2rem;
  font-size: 0.9375rem;
  background: rgba(var(--color-primary-rgb, 30, 90, 200), 0.07);
  border: 1px solid rgba(var(--color-primary-rgb, 30, 90, 200), 0.2);
  border-radius: 999px;
  padding: 0.375rem 1rem;
  letter-spacing: 0.01em;
}

.hero-supporting {
  margin-top: 1rem;
  font-size: 0.9375rem;
  color: var(--color-text-muted);
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

.hero-supporting a {
  color: var(--color-cta);
  text-decoration: underline;
}

.hero-supporting a:hover {
  color: var(--color-cta-hover);
}

/* ----- Built for You ----- */
.built-for-you {
  padding: var(--section-padding);
}

.built-for-you .container {
  text-align: center;
}

.built-for-you-intro {
  max-width: 720px;
  margin: 0 auto 2.5rem;
  color: var(--color-text-secondary);
}

.audience-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.audience-card {
  padding: 1.75rem 1.25rem;
  background: var(--color-bg-alt);
  border-radius: 12px;
  border: 1px solid var(--color-border);
  text-align: center;
}

.audience-card-icon {
  font-size: 2rem;
  margin-bottom: 0.75rem;
  display: block;
}

.audience-card h3 {
  font-size: 1.125rem;
  margin-bottom: 0.5rem;
}

.audience-card p {
  font-size: 0.9375rem;
  color: var(--color-text-secondary);
  line-height: 1.5;
}

/* ----- Feature Sections ----- */
.feature {
  padding: var(--section-padding);
}

.feature.bg-alt {
  background: var(--color-bg-alt);
}

.feature-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.feature-text h2 {
  margin-bottom: 1.25rem;
}

.feature-text p {
  color: var(--color-text-secondary);
}

.feature-media img {
  width: 100%;
  border-radius: 12px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
  border: 1px solid var(--color-border);
}

.feature-media--natural img {
  max-width: 600px;
  margin: 0 auto;
}

/* Text-only feature sections */
.feature--text-only .container {
  max-width: 720px;
  text-align: center;
}

.feature--text-only p {
  color: var(--color-text-secondary);
}

/* ----- Testimonial ----- */
.feature-testimonial {
  display: flex;
  align-items: center;
}

.feature-testimonial .testimonial {
  margin-top: 0;
}

.testimonial {
  margin-top: 2rem;
  padding: 2rem;
  background: var(--color-testimonial-bg);
  border-left: 4px solid var(--color-primary-light);
  border-radius: 0 12px 12px 0;
  text-align: left;
}

.testimonial p {
  font-style: italic;
  font-size: 1.0625rem;
  color: var(--color-text);
  margin-bottom: 0.75rem;
  line-height: 1.6;
}

.testimonial cite {
  display: block;
  font-style: normal;
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--color-text-secondary);
}

/* ----- Final CTA ----- */
.cta-final {
  background: var(--color-primary);
  color: #fff;
  padding: 5rem 0;
  text-align: center;
}

.cta-final h2 {
  color: #fff;
}

.cta-final p {
  color: rgba(255, 255, 255, 0.85);
  max-width: 560px;
  margin: 1rem auto 2rem;
  font-size: 1.125rem;
}

.cta-final .btn-primary {
  background: #fff;
  color: var(--color-primary);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.cta-final .btn-primary:hover {
  background: var(--color-bg-alt);
  color: var(--color-primary-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.cta-final .cta-email-alt {
  margin: 1.25rem auto 0;
  font-size: 0.9375rem;
}

.cta-final .cta-email-alt a {
  color: #fff;
  text-decoration: underline;
}

.cta-final .cta-email-alt a:hover {
  color: #fff;
}

/* ----- FAQ ----- */
.faq {
  padding: var(--section-padding);
  text-align: center;
}

.faq h2 {
  margin-bottom: 1.5rem;
}

.faq-list {
  max-width: 760px;
  margin: 0 auto;
  text-align: left;
}

.faq-item {
  border-bottom: 1px solid var(--color-border);
  padding: 1.25rem 0;
}

.faq-question {
  font-weight: 600;
  font-size: 1.125rem;
  cursor: pointer;
  color: var(--color-text);
  list-style: none;
}

.faq-question::-webkit-details-marker {
  display: none;
}

.faq-question::before {
  content: "+";
  display: inline-block;
  width: 1.5rem;
  font-weight: 700;
  color: var(--color-primary);
}

details[open] .faq-question::before {
  content: "\2212";
}

.faq-answer {
  padding-top: 0.75rem;
}

.faq-answer p {
  color: var(--color-text-secondary);
  font-size: 1rem;
  line-height: 1.7;
}

/* ----- Legal Pages ----- */
.legal-page {
  padding: 4rem 0 5rem;
}

.legal-container {
  max-width: 780px;
}

.legal-page h1 {
  margin-bottom: 0.5rem;
}

.legal-updated {
  font-size: 0.9375rem;
  color: var(--color-text-muted);
  margin-bottom: 2.5rem;
}

.legal-page h2 {
  margin-top: 2.5rem;
  margin-bottom: 0.75rem;
  font-size: 1.5rem;
}

.legal-page h3 {
  margin-top: 1.75rem;
  margin-bottom: 0.5rem;
  font-size: 1.1875rem;
}

.legal-page h4 {
  margin-top: 1.25rem;
  margin-bottom: 0.5rem;
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--color-text);
}

.legal-page p {
  color: var(--color-text-secondary);
  font-size: 1rem;
  line-height: 1.7;
}

.legal-page ul {
  margin: 0.75rem 0 1rem 1.5rem;
  color: var(--color-text-secondary);
  font-size: 1rem;
  line-height: 1.7;
}

.legal-page li {
  margin-bottom: 0.35rem;
}

.legal-page a {
  color: var(--color-primary);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.legal-page a:hover {
  color: var(--color-primary-dark);
}

.legal-table-wrap {
  overflow-x: auto;
  margin: 1rem 0;
}

.legal-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9375rem;
  line-height: 1.6;
}

.legal-table th,
.legal-table td {
  text-align: left;
  padding: 0.75rem 1rem;
  border: 1px solid var(--color-border);
  color: var(--color-text-secondary);
}

.legal-table th {
  background: var(--color-bg-alt);
  font-weight: 600;
  color: var(--color-text);
}

@media (max-width: 767px) {
  .legal-page {
    padding: 2.5rem 0 3rem;
  }

  .legal-page h2 {
    font-size: 1.3125rem;
  }

  .legal-page h3 {
    font-size: 1.0625rem;
  }
}

/* ----- Footer ----- */
.site-footer {
  padding: 2rem 0;
  border-top: 1px solid var(--color-border);
  font-size: 0.875rem;
  color: var(--color-text-muted);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-links {
  display: flex;
  gap: 1.5rem;
  list-style: none;
}

.footer-links a {
  color: var(--color-text-muted);
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--color-primary);
}

.footer-disclaimer {
  width: 100%;
  font-size: 0.75rem;
  line-height: 1.5;
  opacity: 0.7;
}

/* ============================================================
   Responsive
   ============================================================ */

/* Tablet */
@media (max-width: 1023px) {
  h1 {
    font-size: 2.5rem;
  }

  h2 {
    font-size: 1.875rem;
  }

  .audience-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .feature-inner {
    gap: 2rem;
  }
}

/* Mobile */
@media (max-width: 767px) {
  h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 1.625rem;
  }

  body {
    font-size: 1rem;
  }

  .hero {
    padding: 3rem 0 2.5rem;
  }

  .hero-subtitle {
    font-size: 1rem;
  }

  .feature {
    padding: var(--section-padding-sm);
  }

  .feature-inner {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  /* On mobile, always show text above image */
  .feature--img-left .feature-text {
    order: -1;
  }

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

  .built-for-you {
    padding: var(--section-padding-sm);
  }

  .cta-final {
    padding: 3.5rem 0;
  }

  .faq {
    padding: var(--section-padding-sm);
  }

  .footer-inner {
    flex-direction: column;
    text-align: center;
  }

  .footer-links {
    justify-content: center;
  }

  .logo {
    height: 30px;
  }

  .btn-lg {
    font-size: 1rem;
    padding: 1rem 2rem;
  }
}

/* ----- Reduced Motion ----- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
