/* ===================================================================
   Protect Me — Revamp Stylesheet
   Aesthetic: "Warm Editorial" — premium, story-driven, family-friendly
   =================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,300;0,9..144,400;0,9..144,500;0,9..144,600;0,9..144,700;0,9..144,800;1,9..144,400;1,9..144,500&family=Plus+Jakarta+Sans:ital,wght@0,300;0,400;0,500;0,600;0,700;1,400&display=swap');

/* === Tokens === */
:root {
  --font-display: 'Fraunces', Georgia, 'Times New Roman', serif;
  --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --brand: #d4411e;
  --brand-light: #f0654a;
  --brand-dark: #b8351a;
  --brand-bg: rgba(212, 65, 30, 0.06);
  --brand-glow: rgba(212, 65, 30, 0.18);

  --dark: #0f172a;
  --dark-soft: #1e293b;

  --text: #1e293b;
  --text-secondary: #475569;
  --text-muted: #94a3b8;

  --bg: #faf8f5;
  --bg-white: #ffffff;
  --bg-soft: #f1eeea;

  --border: #e7e1d9;
  --border-light: #f0ece6;

  --danger: #dc2626;
  --danger-bg: #fef2f2;
  --danger-border: #fecaca;
  --warning: #d97706;
  --warning-bg: #fffbeb;
  --warning-border: #fed7aa;
  --safe: #16a34a;
  --safe-bg: #f0fdf4;
  --safe-border: #bbf7d0;

  --radius: 16px;
  --radius-sm: 10px;
  --radius-lg: 24px;

  --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.04), 0 1px 2px rgba(15, 23, 42, 0.02);
  --shadow-md: 0 4px 16px rgba(15, 23, 42, 0.06), 0 2px 4px rgba(15, 23, 42, 0.03);
  --shadow-lg: 0 12px 40px rgba(15, 23, 42, 0.08), 0 4px 12px rgba(15, 23, 42, 0.04);
  --shadow-xl: 0 24px 60px rgba(15, 23, 42, 0.10);

  --container: 1120px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 100px;
}

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

a { color: var(--brand); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--brand-dark); }

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

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  line-height: 1.2;
  color: var(--dark);
}

::selection {
  background: rgba(212, 65, 30, 0.15);
  color: var(--dark);
}

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

/* === Navigation === */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(15, 23, 42, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.nav .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 160px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  color: #fff;
  text-decoration: none;
}

.nav-logo:hover { color: #fff; }

.nav-logo-img {
  height: 144px;
  width: auto;
}

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

.nav-links {
  display: flex;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.25s;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--brand-light);
  transition: width 0.3s ease;
}

.nav-links a:hover {
  color: #fff;
}

.nav-links a:hover::after {
  width: 100%;
}

/* Store buttons (shared) */
.store-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.25s ease;
  white-space: nowrap;
}

.store-btn:hover {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(212, 65, 30, 0.3);
}

.store-btn svg {
  flex-shrink: 0;
}

/* Hamburger */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* Mobile nav open state */
.nav-open .nav-hamburger span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.nav-open .nav-hamburger span:nth-child(2) {
  opacity: 0;
}
.nav-open .nav-hamburger span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

.nav-spacer {
  height: 160px;
}

/* === Hero === */
.hero {
  padding: 80px 0 100px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -200px;
  right: -200px;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, var(--brand-glow) 0%, transparent 70%);
  pointer-events: none;
}

.hero-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.hero-text {
  position: relative;
  z-index: 2;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: var(--brand-bg);
  border: 1px solid rgba(212, 65, 30, 0.12);
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--brand);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 28px;
}

.hero h1 {
  font-size: clamp(2.8rem, 5vw, 4rem);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 24px;
  letter-spacing: -0.02em;
}

.hero h1 .accent {
  color: var(--brand);
  font-style: italic;
}

.hero-text > p {
  font-size: 1.2rem;
  color: var(--text-secondary);
  max-width: 480px;
  margin-bottom: 40px;
  line-height: 1.7;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-image {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-image-glow {
  position: absolute;
  width: 380px;
  height: 380px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--brand-glow) 0%, rgba(212, 65, 30, 0.05) 60%, transparent 80%);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation: glow-pulse 6s ease-in-out infinite;
}

@keyframes glow-pulse {
  0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 1; }
  50% { transform: translate(-50%, -50%) scale(1.08); opacity: 0.7; }
}

.hero-image img {
  position: relative;
  z-index: 2;
  max-width: 400px;
  filter: drop-shadow(0 20px 40px rgba(212, 65, 30, 0.12));
}

/* === Buttons === */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 16px 32px;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  text-decoration: none;
}

.btn-primary {
  background: var(--brand);
  color: #fff;
  box-shadow: 0 4px 16px rgba(212, 65, 30, 0.25);
}

.btn-primary:hover {
  background: var(--brand-dark);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(212, 65, 30, 0.3);
}

.btn-secondary {
  background: var(--bg-white);
  color: var(--dark);
  border: 1.5px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
  color: var(--dark);
  background: var(--bg-white);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--border);
}

.btn-arrow::after {
  content: '\2192';
  transition: transform 0.2s;
}

.btn-arrow:hover::after {
  transform: translateX(3px);
}

/* === Section Titles === */
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--brand);
  margin-bottom: 16px;
}

.section-label::before,
.section-label::after {
  content: '';
  width: 32px;
  height: 1.5px;
  background: var(--brand);
  opacity: 0.4;
}

.section-title {
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 16px;
  letter-spacing: -0.01em;
  text-align: center;
}

.section-sub {
  font-size: 1.15rem;
  color: var(--text-secondary);
  max-width: 560px;
  margin: 0 auto 60px;
  text-align: center;
  line-height: 1.7;
}

/* === Features === */
.features {
  padding: 100px 0;
  background: var(--bg-white);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.feature-card {
  position: relative;
  background: var(--bg);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 36px 28px;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  cursor: default;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--border);
}

.feature-icon {
  font-size: 2.2rem;
  margin-bottom: 20px;
  display: inline-block;
}

.feature-card h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 10px;
}

.feature-card > p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.65;
}

.feature-hover {
  position: absolute;
  inset: 0;
  background: var(--dark);
  padding: 36px 28px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  opacity: 0;
  transform: translateY(8px);
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.feature-card:hover .feature-hover {
  opacity: 1;
  transform: translateY(0);
}

.feature-hover .step-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 16px;
}

.feature-hover h3 {
  color: #fff;
  font-size: 1.2rem;
  margin-bottom: 10px;
}

.feature-hover p {
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.95rem;
  line-height: 1.65;
}

/* === Story === */
.story {
  padding: 100px 0;
  background: var(--bg);
}

.story-timeline {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  padding-left: 60px;
}

.story-timeline::before {
  content: '';
  position: absolute;
  left: 23px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--brand), var(--brand-light), var(--safe));
}

.story-card {
  position: relative;
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 36px;
  margin-bottom: 36px;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
}

.story-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateX(4px);
}

.story-card:last-child {
  margin-bottom: 0;
}

.story-number {
  position: absolute;
  left: -60px;
  top: 36px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  box-shadow: 0 4px 12px rgba(212, 65, 30, 0.3);
  z-index: 2;
}

.story-card:nth-child(2) .story-number {
  background: var(--warning);
  box-shadow: 0 4px 12px rgba(217, 119, 6, 0.3);
}

.story-card:nth-child(3) .story-number {
  background: var(--safe);
  box-shadow: 0 4px 12px rgba(22, 163, 74, 0.3);
}

.story-content h3 {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.story-content > p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: 16px;
  line-height: 1.7;
}

.story-result {
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  font-size: 0.92rem;
  margin-bottom: 16px;
  line-height: 1.6;
}

.story-result-danger {
  background: var(--danger-bg);
  border: 1px solid var(--danger-border);
  color: var(--danger);
}

.story-result-warning {
  background: var(--warning-bg);
  border: 1px solid var(--warning-border);
  color: var(--warning);
}

.story-result-safe {
  background: var(--safe-bg);
  border: 1px solid var(--safe-border);
  color: var(--safe);
}

.story-quote {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1rem;
  color: var(--text-secondary);
  border-left: 3px solid var(--brand);
  padding: 12px 20px;
  background: var(--brand-bg);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin-bottom: 0;
  line-height: 1.7;
}

.story-quote span {
  display: block;
  font-family: var(--font-body);
  font-style: normal;
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-top: 8px;
}

/* === CTA === */
.cta {
  padding: 100px 0;
  background: var(--dark);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(212, 65, 30, 0.12) 0%, transparent 70%);
  pointer-events: none;
}

.cta-slogan {
  max-width: 180px;
  margin: 0 auto 28px;
  opacity: 0.85;
}

.cta h2 {
  font-size: clamp(2rem, 3.5vw, 2.6rem);
  color: #fff;
  margin-bottom: 16px;
}

.cta > .container > p {
  color: var(--text-muted);
  font-size: 1.15rem;
  margin-bottom: 36px;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

.cta-store-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.cta-store-buttons .store-btn {
  font-size: 1rem;
  padding: 14px 28px;
}

/* === Footer === */
.footer {
  padding: 40px 0;
  background: var(--dark-soft);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.footer .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

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

.footer-links {
  display: flex;
  gap: 28px;
  list-style: none;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.45);
  font-size: 0.88rem;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: #fff;
}

.footer-store-buttons {
  display: flex;
  gap: 10px;
}

.footer-store-buttons .store-btn {
  font-size: 0.82rem;
  padding: 8px 14px;
}

/* === Page Content (FAQ, Terms, Privacy) === */
.page {
  padding: 60px 0 100px;
  min-height: 60vh;
}

.page h1 {
  font-size: clamp(2rem, 3.5vw, 2.6rem);
  font-weight: 700;
  margin-bottom: 8px;
}

.page-content {
  margin-top: 36px;
  max-width: 800px;
}

.page-content .page-intro {
  font-size: 1.15rem;
  color: var(--text-secondary);
  margin-bottom: 40px;
  line-height: 1.7;
}

.page-content h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--dark);
  margin: 48px 0 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--border);
}

.page-content h2:first-of-type {
  margin-top: 0;
}

.page-content h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--dark);
  margin: 28px 0 8px;
}

.page-content p,
.page-content li {
  color: var(--text);
  font-size: 0.95rem;
  line-height: 1.75;
  margin-bottom: 12px;
}

.page-content ul,
.page-content ol {
  padding-left: 24px;
  margin-bottom: 16px;
}

.page-content li {
  margin-bottom: 6px;
}

.page-content strong {
  color: var(--dark);
}

.page-content blockquote {
  border-left: 3px solid var(--brand);
  padding: 14px 20px;
  margin: 16px 0;
  background: var(--brand-bg);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  color: var(--text);
  font-size: 0.95rem;
  font-style: italic;
}

.page-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  font-size: 0.9rem;
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.page-content th,
.page-content td {
  padding: 12px 16px;
  text-align: left;
  border: 1px solid var(--border);
}

.page-content th {
  background: var(--bg-soft);
  font-weight: 600;
  color: var(--dark);
}

.page-content td {
  color: var(--text);
}

.page-content .last-updated {
  color: var(--text-muted);
  font-size: 0.85rem;
  font-style: italic;
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--border-light);
}

/* About page */
.about-block {
  margin-bottom: 40px;
}

.about-block h2 {
  margin-top: 0;
}

.about-block p {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--text-secondary);
}

.about-mission {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-style: italic;
  text-align: center;
  color: var(--brand);
  border-left: none;
  border: none;
  background: var(--brand-bg);
  padding: 32px 40px;
  border-radius: var(--radius);
  margin: 48px 0 0;
  line-height: 1.6;
}

.page .coming-soon {
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 80px 40px;
  text-align: center;
  margin-top: 32px;
  box-shadow: var(--shadow-sm);
}

.page .coming-soon .icon {
  font-size: 3.5rem;
  margin-bottom: 20px;
}

.page .coming-soon h2 {
  font-size: 1.5rem;
  color: var(--dark);
  margin: 0 0 12px;
  padding: 0;
  border: none;
}

.page .coming-soon p {
  color: var(--text-secondary);
  max-width: 420px;
  margin: 0 auto;
  font-size: 1.05rem;
}

/* === Scroll Reveal Animations === */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

/* === Responsive === */
@media (max-width: 900px) {
  .features-grid {
    grid-template-columns: 1fr 1fr;
  }

  .hero-layout {
    grid-template-columns: 1fr;
    gap: 48px;
    text-align: center;
  }

  .hero-text > p {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-buttons {
    justify-content: center;
  }

  .hero-image {
    order: -1;
  }

  .hero-image img {
    max-width: 300px;
  }

  .hero-image-glow {
    width: 280px;
    height: 280px;
  }
}

@media (max-width: 768px) {
  .nav .container {
    height: 70px;
  }

  .nav-logo-img {
    height: 56px;
  }

  .nav-spacer {
    height: 70px;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 70px;
    right: 16px;
    left: auto;
    bottom: auto;
    z-index: 999;
    background: var(--dark);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 0;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
  }

  .nav-open .nav-links {
    display: flex;
  }

  .nav-links a {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.85);
    padding: 12px 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  }

  .nav-links li:last-child a {
    border-bottom: none;
  }

  .nav-links a::after {
    display: none;
  }

  .nav-links a:hover {
    background: rgba(255, 255, 255, 0.05);
  }

  .footer .container {
    flex-direction: column;
    text-align: center;
    gap: 12px;
  }

  .footer-store-buttons {
    justify-content: center;
  }

  .nav-hamburger {
    display: flex;
  }

  .features-grid {
    grid-template-columns: 1fr;
    max-width: 420px;
    margin: 0 auto;
  }

  .feature-hover {
    display: none;
  }

  .story-timeline {
    padding-left: 48px;
  }

  .story-timeline::before {
    left: 17px;
  }

  .story-number {
    left: -48px;
    width: 36px;
    height: 36px;
    font-size: 0.95rem;
  }

  .story-card {
    padding: 24px;
  }

  .hero {
    padding: 60px 0 60px;
  }

  .cta-slogan {
    max-width: 140px;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 2.2rem;
  }

  .hero-image img {
    max-width: 240px;
  }

  .btn {
    padding: 14px 24px;
    font-size: 0.95rem;
  }

  .story-content h3 {
    font-size: 1.2rem;
  }
}
