/* ============================================
   LeaveBy Landing Page — styles.css
   Brand: #FF6B00 orange, warm editorial aesthetic
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700;1,9..40,400&family=Fraunces:ital,opsz,wght@0,9..144,600;0,9..144,700;0,9..144,800;1,9..144,500&display=swap');

/* --- Reset & Variables --- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --orange: #FF6B00;
  --orange-light: #FF8A33;
  --orange-dark: #E05E00;
  --orange-glow: rgba(255, 107, 0, 0.15);
  --orange-subtle: #FFF4EB;
  --ink: #1A1A1A;
  --ink-secondary: #4A4A4A;
  --ink-muted: #7A7A7A;
  --surface: #FAFAF8;
  --surface-warm: #F5F3EF;
  --white: #FFFFFF;
  --border: #E8E5E0;
  --border-light: #F0EDE8;

  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--surface);
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  color: var(--orange);
  text-decoration: none;
  transition: color 0.2s;
}

a:hover {
  color: var(--orange-dark);
}

img {
  max-width: 100%;
  display: block;
}

/* --- Utility --- */
.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}

/* --- Grain overlay for texture --- */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 200px;
}

/* ============================================
   Navigation
   ============================================ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 16px 0;
  background: rgba(250, 250, 248, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s, background 0.3s;
}

.nav.scrolled {
  border-bottom-color: var(--border);
  background: rgba(250, 250, 248, 0.95);
}

.nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 20px;
  color: var(--ink);
  text-decoration: none;
}

.nav-brand img {
  width: 32px;
  height: 32px;
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: var(--ink);
  color: var(--white);
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.2s var(--ease-spring), box-shadow 0.2s;
}

.nav-cta:hover {
  color: var(--white);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.nav-cta svg {
  width: 16px;
  height: 16px;
}

/* ============================================
   Hero
   ============================================ */
.hero {
  padding: 160px 0 100px;
  position: relative;
}

/* Warm radial glow behind hero */
.hero::before {
  content: '';
  position: absolute;
  top: 60px;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 600px;
  background: radial-gradient(ellipse at center, var(--orange-glow) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.hero .container {
  position: relative;
  z-index: 1;
  text-align: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: var(--orange-subtle);
  border: 1px solid rgba(255, 107, 0, 0.2);
  border-radius: 100px;
  font-size: 13px;
  font-weight: 600;
  color: var(--orange-dark);
  margin-bottom: 28px;
  animation: fade-in-up 0.6s var(--ease-out) both;
}

.hero-badge svg {
  width: 14px;
  height: 14px;
}

.hero h1 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(40px, 6vw, 64px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-bottom: 20px;
  animation: fade-in-up 0.6s 0.1s var(--ease-out) both;
}

.hero h1 .accent {
  color: var(--orange);
  font-style: italic;
}

.hero-sub {
  font-size: clamp(17px, 2vw, 20px);
  color: var(--ink-secondary);
  max-width: 540px;
  margin: 0 auto 40px;
  line-height: 1.6;
  animation: fade-in-up 0.6s 0.2s var(--ease-out) both;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  animation: fade-in-up 0.6s 0.3s var(--ease-out) both;
}

.btn-chrome {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 32px;
  background: var(--orange);
  color: var(--white);
  border: none;
  border-radius: 12px;
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s var(--ease-spring), box-shadow 0.2s, background 0.2s;
  box-shadow: 0 2px 8px rgba(255, 107, 0, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.btn-chrome:hover {
  color: var(--white);
  background: var(--orange-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(255, 107, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.btn-chrome svg {
  width: 20px;
  height: 20px;
}

.hero-note {
  font-size: 13px;
  color: var(--ink-muted);
}

/* Hero screenshot area */
.hero-visual {
  margin-top: 64px;
  animation: fade-in-up 0.8s 0.45s var(--ease-out) both;
}

.screenshot-frame {
  max-width: 800px;
  margin: 0 auto;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  box-shadow:
    0 1px 2px rgba(0, 0, 0, 0.04),
    0 4px 16px rgba(0, 0, 0, 0.06),
    0 24px 64px rgba(0, 0, 0, 0.06);
}

.screenshot-topbar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 18px;
  background: var(--surface-warm);
  border-bottom: 1px solid var(--border-light);
}

.screenshot-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--border);
}

.screenshot-placeholder {
  aspect-ratio: 16 / 9;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    linear-gradient(135deg, var(--surface) 25%, var(--surface-warm) 100%);
  color: var(--ink-muted);
  font-size: 15px;
  font-weight: 500;
}

.screenshot-placeholder span {
  padding: 12px 24px;
  background: var(--white);
  border: 1px dashed var(--border);
  border-radius: 8px;
}

/* ============================================
   How It Works
   ============================================ */
.how-it-works {
  padding: 100px 0;
}

.section-label {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 12px;
}

.section-heading {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(28px, 4vw, 40px);
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin-bottom: 56px;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
  counter-reset: step;
}

.step-card {
  position: relative;
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.5s var(--ease-out), transform 0.5s var(--ease-out);
}

.step-card.visible {
  opacity: 1;
  transform: translateY(0);
}

.step-card::before {
  counter-increment: step;
  content: counter(step);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: var(--orange-subtle);
  color: var(--orange);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 20px;
  border-radius: 12px;
  margin-bottom: 20px;
}

.step-card h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
}

.step-card p {
  font-size: 15px;
  color: var(--ink-secondary);
  line-height: 1.65;
}

/* Connector line between steps */
.steps-grid .step-card:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 24px;
  left: calc(48px + 16px);
  right: -32px;
  height: 2px;
  background: repeating-linear-gradient(
    90deg,
    var(--border) 0,
    var(--border) 6px,
    transparent 6px,
    transparent 12px
  );
}

/* ============================================
   Features
   ============================================ */
.features {
  padding: 100px 0;
  background: var(--white);
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
}

.features .container {
  text-align: center;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 56px;
  text-align: left;
}

.feature-card {
  padding: 28px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 14px;
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out), border-color 0.3s;
  opacity: 0;
  transform: translateY(20px);
}

.feature-card.visible {
  opacity: 1;
  transform: translateY(0);
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.06);
  border-color: var(--orange);
}

.feature-icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--orange-subtle);
  border-radius: 10px;
  margin-bottom: 16px;
  font-size: 22px;
  line-height: 1;
}

.feature-card h3 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 6px;
}

.feature-card p {
  font-size: 14px;
  color: var(--ink-secondary);
  line-height: 1.6;
}

/* ============================================
   Pricing
   ============================================ */
.pricing {
  padding: 100px 0;
  background: var(--white);
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
}

.pricing .container {
  text-align: center;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  text-align: left;
}

.pricing-card {
  padding: 32px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 14px;
  display: flex;
  flex-direction: column;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s var(--ease-out), transform 0.5s var(--ease-out), box-shadow 0.3s var(--ease-out), border-color 0.3s;
}

.pricing-card.visible {
  opacity: 1;
  transform: translateY(0);
}

.pricing-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.06);
  border-color: var(--orange);
}

.pricing-card.featured {
  border-color: var(--orange);
  background: var(--orange-subtle);
}

.pricing-card.featured:hover {
  border-color: var(--orange-dark);
  box-shadow: 0 12px 32px rgba(255, 107, 0, 0.12);
}

.pricing-tier {
  display: block;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--ink-muted);
  margin-bottom: 8px;
}

.pricing-card.featured .pricing-tier {
  color: var(--orange);
}

.pricing-price {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 48px;
  color: var(--ink);
  line-height: 1;
}

.pricing-period {
  font-size: 14px;
  color: var(--ink-muted);
  margin-top: 4px;
  margin-bottom: 4px;
}

.pricing-features {
  list-style: none;
  padding: 0;
  margin: 24px 0;
  flex-grow: 1;
}

.pricing-features li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 6px 0;
  font-size: 15px;
  color: var(--ink-secondary);
  line-height: 1.5;
}

.pricing-features svg {
  flex-shrink: 0;
  color: var(--orange);
  margin-top: 3px;
}

.pricing-note {
  font-size: 13px;
  color: var(--ink-muted);
  margin-top: 16px;
  text-align: center;
}

/* Outline button variant */
.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 14px 28px;
  background: transparent;
  color: var(--orange);
  border: 2px solid var(--orange);
  border-radius: 12px;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, transform 0.2s var(--ease-spring);
}

.btn-outline:hover {
  background: var(--orange);
  color: var(--white);
  transform: translateY(-2px);
}

/* Pricing card CTA — full width */
.pricing-card .btn-chrome {
  width: 100%;
  justify-content: center;
}

/* ============================================
   CTA Section
   ============================================ */
.cta-section {
  padding: 100px 0;
  background: var(--ink);
  position: relative;
  overflow: hidden;
}

/* Subtle orange glow */
.cta-section::before {
  content: '';
  position: absolute;
  bottom: -120px;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 400px;
  background: radial-gradient(ellipse at center, rgba(255, 107, 0, 0.12) 0%, transparent 70%);
  pointer-events: none;
}

.cta-section .container {
  text-align: center;
  position: relative;
  z-index: 1;
}

.cta-section h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(28px, 4vw, 44px);
  color: var(--white);
  line-height: 1.2;
  margin-bottom: 16px;
}

.cta-section h2 .accent {
  color: var(--orange-light);
  font-style: italic;
}

.cta-section p {
  font-size: 17px;
  color: rgba(255, 255, 255, 0.6);
  max-width: 460px;
  margin: 0 auto 36px;
}

.btn-chrome-light {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 32px;
  background: var(--orange);
  color: var(--white);
  border: none;
  border-radius: 12px;
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s var(--ease-spring), box-shadow 0.2s, background 0.2s;
  box-shadow: 0 4px 16px rgba(255, 107, 0, 0.35);
}

.btn-chrome-light:hover {
  color: var(--white);
  background: var(--orange-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(255, 107, 0, 0.4);
}

.btn-chrome-light svg {
  width: 20px;
  height: 20px;
}

/* ============================================
   Footer
   ============================================ */
.footer {
  padding: 32px 0;
  background: var(--ink);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.footer .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-left {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.35);
}

.footer-links {
  display: flex;
  gap: 24px;
}

.footer-links a {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.45);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: rgba(255, 255, 255, 0.8);
}

/* ============================================
   Animations
   ============================================ */
@keyframes fade-in-up {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 768px) {
  .hero {
    padding: 130px 0 64px;
  }

  .hero::before {
    width: 500px;
    height: 400px;
  }

  .steps-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .steps-grid .step-card::after {
    display: none;
  }

  .features-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .hero-visual {
    margin-top: 40px;
  }

  .how-it-works,
  .features,
  .pricing,
  .cta-section {
    padding: 64px 0;
  }

  .pricing-grid {
    grid-template-columns: 1fr;
    max-width: 480px;
    margin: 0 auto;
  }

  .section-heading {
    margin-bottom: 36px;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 16px;
  }

  .btn-chrome,
  .btn-chrome-light,
  .btn-outline {
    padding: 14px 24px;
    font-size: 15px;
    width: 100%;
    justify-content: center;
  }

  .hero-actions {
    flex-direction: column;
  }

  .footer .container {
    flex-direction: column;
    text-align: center;
  }
}

/* ============================================
   Privacy Page Specific
   ============================================ */
.privacy-page {
  padding: 130px 0 80px;
}

.privacy-page h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(28px, 4vw, 40px);
  margin-bottom: 8px;
}

.privacy-page .updated {
  font-size: 14px;
  color: var(--ink-muted);
  margin-bottom: 48px;
}

.privacy-page h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 22px;
  margin-top: 40px;
  margin-bottom: 12px;
}

.privacy-page p,
.privacy-page ul {
  font-size: 15px;
  color: var(--ink-secondary);
  line-height: 1.75;
  margin-bottom: 16px;
}

.privacy-page ul {
  padding-left: 24px;
}

.privacy-page li {
  margin-bottom: 6px;
}

.privacy-page a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.privacy-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 32px;
  font-size: 14px;
  font-weight: 600;
  color: var(--orange);
}

.privacy-back:hover {
  color: var(--orange-dark);
}

/* ============================================
   Release Notes Page
   ============================================ */
.release-entry {
  padding: 32px 0;
  border-bottom: 1px solid var(--border);
}

.release-entry:last-child {
  border-bottom: none;
}

.release-header {
  display: flex;
  align-items: baseline;
  gap: 16px;
  margin-bottom: 16px;
}

.release-header h2 {
  margin-top: 0;
  margin-bottom: 0;
}

.release-date {
  font-size: 14px;
  color: var(--ink-muted);
  font-weight: 500;
}

.release-entry h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--ink);
}

.release-entry p {
  font-size: 15px;
  color: var(--ink-secondary);
  line-height: 1.75;
  margin-bottom: 16px;
}

.release-entry ul {
  padding-left: 24px;
  margin-bottom: 16px;
}

.release-entry li {
  font-size: 15px;
  color: var(--ink-secondary);
  line-height: 1.75;
  margin-bottom: 6px;
}
