/* landing.css — styles for the Earshots.io landing page */

/* ── Body reset for landing ──────────────────────────────────────────────── */
.landing-body {
  padding: 0;
  overflow-x: hidden;
}

/* ── Nav ──────────────────────────────────────────────────────────────────── */
.landing-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 2rem;
  background: rgba(17, 24, 39, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.light-mode .landing-nav {
  background: rgba(248, 250, 252, 0.85);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}
.landing-nav .logo { height: 28px; }
.landing-nav-buttons {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}
.landing-nav-buttons a { text-decoration: none; }

/* ── Hero ─────────────────────────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: auto;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  margin: 0;
  padding: 0;
  background: #000;
  box-shadow: none;
}

.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.5;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.4) 0%,
    rgba(0, 0, 0, 0.2) 40%,
    rgba(0, 0, 0, 0.5) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 800px;
  padding: 2rem;
  padding-top: calc(60px + 3rem);  /* nav height + breathing room */
  padding-bottom: 3rem;
}

.hero-logo {
  height: 120px;
  margin-bottom: 1.5rem;
  opacity: 0.9;
}

.hero-tagline {
  font-size: 3.2rem;
  font-weight: 700;
  color: #fff;
  margin: 0 0 0.75rem;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: rgba(255, 255, 255, 0.75);
  margin: 0 0 2rem;
  font-weight: 400;
}

/* ── Hero drop zone (small, inviting) ─────────────────────────────────────── */
.hero-drop-zone {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 2.5rem;
  border: 2px dashed rgba(255, 255, 255, 0.3);
  border-radius: 12px;
  cursor: pointer;
  transition: border-color 0.3s, background 0.3s;
  margin-bottom: 1.25rem;
}
.hero-drop-zone:hover {
  border-color: var(--primary);
  background: rgba(96, 165, 250, 0.08);
}
.hero-drop-text {
  color: rgba(255, 255, 255, 0.7);
  font-size: 1rem;
  font-weight: 500;
  pointer-events: none;
}

/* ── Full-window drop overlay ─────────────────────────────────────────────── */
.full-drop-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(96, 165, 250, 0.12);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.2s;
}
.full-drop-overlay.hidden {
  display: none;
}
.full-drop-inner {
  text-align: center;
  pointer-events: none;
}
.full-drop-icon {
  font-size: 5rem;
  color: var(--primary);
  line-height: 1;
  margin-bottom: 1rem;
  font-weight: 300;
}
.full-drop-text {
  font-size: 1.5rem;
  color: #fff;
  font-weight: 500;
}
.full-drop-overlay.active {
  border: 4px solid var(--primary);
  background: rgba(96, 165, 250, 0.18);
}

/* ── Hero CTA ─────────────────────────────────────────────────────────────── */
.hero-cta {
  display: inline-block;
  padding: 0.85rem 2.25rem;
  background: var(--primary);
  color: #000;
  text-decoration: none;
  font-size: 1.05rem;
  font-weight: 600;
  border-radius: 0;
  transition: background 0.2s, transform 0.15s;
}
.hero-cta:hover {
  background: #3b82f6;
  transform: translateY(-1px);
}

/* ── Product sections (screenshot + text side-by-side) ────────────────────── */
.product-section {
  display: flex;
  align-items: flex-start;
  gap: 3rem;
  max-width: 1100px;
  margin: 0 auto;
  padding: 3.5rem 2rem;
  background: transparent;
  box-shadow: none;
}
.product-section-alt {
  flex-direction: row-reverse;
}

.product-text {
  flex: 1;
  min-width: 0;
}

.product-description {
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.65;
  margin: 0.75rem 0 1.5rem;
}

.product-bullets {
  list-style: none;
  padding: 0;
  margin: 0;
}
.product-bullets li {
  position: relative;
  padding: 0.45rem 0 0.45rem 1.6rem;
  color: var(--text);
  font-size: 0.95rem;
  line-height: 1.5;
}
.product-bullets li::before {
  content: "\2713";
  position: absolute;
  left: 0;
  color: var(--primary);
  font-weight: 700;
}

.product-screenshot {
  flex: 1;
  min-width: 0;
}

.product-section .screenshot-wrap {
  max-width: 100%;
  margin: 0;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}
.product-section .screenshot-img {
  display: block;
  width: 100%;
  height: auto;
}

.product-section .section-title {
  text-align: left;
}

/* ── Security ─────────────────────────────────────────────────────────────── */
.security-section {
  padding: 3.5rem 2rem;
  margin: 0;
  background: transparent;
  box-shadow: none;
}
.security-subtitle {
  text-align: center;
  color: var(--muted);
  font-size: 1.05rem;
  margin: 0.5rem 0 2.5rem;
}
.security-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  max-width: 1060px;
  margin: 0 auto;
}
.security-item {
  padding: 1.25rem;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 0.5rem;
}
.light-mode .security-item {
  background: rgba(0, 0, 0, 0.02);
  border-color: rgba(0, 0, 0, 0.06);
}
.security-icon {
  font-size: 1.5rem;
  display: block;
  margin-bottom: 0.6rem;
}
.security-item h3 {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
  margin: 0 0 0.4rem;
}
.security-item p {
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.5;
  margin: 0;
}

/* ── Pricing ──────────────────────────────────────────────────────────────── */
.pricing-section {
  padding: 5rem 2rem;
  background: var(--surface);
  margin: 0;
  box-shadow: none;
}

.section-title {
  text-align: center;
  font-size: 2rem;
  font-weight: 600;
  color: var(--text);
  margin: 0 0 0.75rem;
}

.pricing-subtitle {
  text-align: center;
  color: var(--muted);
  font-size: 1.05rem;
  margin: 0.5rem 0 3rem;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  max-width: 1060px;
  margin: 0 auto;
}

.pricing-card {
  position: relative;
  padding: 2rem 1.5rem;
  background: var(--background);
  border: 1px solid rgba(255, 255, 255, 0.06);
  text-align: center;
  display: flex;
  flex-direction: column;
}
.light-mode .pricing-card {
  border-color: rgba(0, 0, 0, 0.1);
}

.pricing-card-popular {
  border-color: var(--primary);
  box-shadow: 0 0 0 1px var(--primary);
}

.pricing-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary);
  color: #000;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.25rem 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  white-space: nowrap;
}

.pricing-tier {
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--text);
  margin: 0 0 0.75rem;
}

.pricing-price {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary);
  line-height: 1;
}
.pricing-mo {
  font-size: 1rem;
  font-weight: 400;
  color: var(--muted);
}

.pricing-period {
  font-size: 0.82rem;
  color: var(--muted);
  margin: 0.4rem 0 1.5rem;
  min-height: 1.2em;
}

.pricing-features {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem;
  text-align: left;
  flex: 1;
}
.pricing-features li {
  font-size: 0.88rem;
  color: var(--text);
  padding: 0.4rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}
.light-mode .pricing-features li {
  border-bottom-color: rgba(0, 0, 0, 0.04);
}
.pricing-features li::before {
  content: "\2713";
  color: var(--primary);
  font-weight: 700;
  margin-right: 0.6rem;
}

.feature-limited {
  color: var(--muted) !important;
}
.feature-highlight {
  color: var(--primary) !important;
  font-weight: 600;
}

.pricing-btn {
  width: 100%;
  padding: 0.65rem 1rem;
  font-size: 0.95rem;
}

/* ── Admin inline editing ─────────────────────────────────────────────────── */
[data-card-id].editable {
  position: relative;
  cursor: text;
  outline: 1px dashed transparent;
  transition: outline-color 0.2s;
}
[data-card-id].editable:hover {
  outline-color: var(--primary);
}
[data-card-id].editing {
  outline: 2px solid var(--primary);
  padding: 0.2rem 0.4rem;
  background: rgba(96, 165, 250, 0.06);
}
.admin-save-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 200;
  background: var(--surface);
  border-top: 2px solid var(--primary);
  padding: 0.6rem 2rem;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.75rem;
  box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.3);
}
.admin-save-bar.hidden { display: none; }
.admin-save-bar span {
  color: var(--muted);
  font-size: 0.85rem;
  margin-right: auto;
}

/* ── Footer adjustments for landing ──────────────────────────────────────── */
.landing-body .site-footer {
  margin-top: 0;
  padding: 2rem 1rem;
}

/* ── Responsive ───────────────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .product-section,
  .product-section-alt {
    flex-direction: column;
    padding: 3rem 1.5rem;
    gap: 2rem;
  }
  .product-section .section-title {
    text-align: center;
  }
  .product-description {
    text-align: center;
  }
  .pricing-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .security-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .landing-nav {
    padding: 0.5rem 1rem;
  }
  .hero-logo {
    height: 72px;
  }
  .hero-tagline {
    font-size: 2rem;
  }
  .hero-subtitle {
    font-size: 1rem;
  }
  .pricing-grid {
    grid-template-columns: 1fr;
    max-width: 360px;
  }
  .security-grid {
    grid-template-columns: 1fr;
    max-width: 400px;
    margin: 0 auto;
  }
  .section-title {
    font-size: 1.5rem;
  }
}
