/* 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;
  pointer-events: none;
}

.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%
  );
  pointer-events: none;
}

.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 {
  display: inline-block;
  height: 120px;
  aspect-ratio: 158.36 / 32.9;
  margin-bottom: 1.5rem;
  opacity: 0.9;
  -webkit-mask-image: url('earshots-logo.svg');
  mask-image: url('earshots-logo.svg');
  -webkit-mask-size: contain;
  mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  background-color: var(--logo-colour);
}

.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 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);
}

/* ── Early access form (beta gate) ────────────────────────────────────────── */
.early-access-form {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  margin-top: 1.5rem;
  max-width: 420px;
  margin-left: auto;
  margin-right: auto;
}
.early-access-input {
  flex: 1;
  padding: 0.7rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 0;
  background: rgba(0, 0, 0, 0.3);
  color: #fff;
  font-size: 0.95rem;
  font-family: inherit;
  outline: none;
}
.early-access-input:focus {
  border-color: var(--primary);
}
.early-access-input::placeholder {
  color: rgba(255, 255, 255, 0.4);
}
.early-access-btn {
  padding: 0.7rem 1.25rem;
  background: var(--primary);
  color: #000;
  border: none;
  font-size: 0.95rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s;
}
.early-access-btn:hover {
  background: #3b82f6;
}
.early-access-btn:disabled {
  opacity: 0.6;
  cursor: default;
}
.early-access-status {
  margin-top: 0.75rem;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.8);
}
.early-access-status.hidden { display: none; }
.hero-signin-link {
  display: inline-block;
  margin-top: 1rem;
  color: rgba(255, 255, 255, 0.5);
  text-decoration: none;
  font-size: 0.85rem;
}
.hero-signin-link:hover {
  color: rgba(255, 255, 255, 0.8);
}

@media (max-width: 480px) {
  .early-access-form {
    flex-direction: column;
  }
}

/* ── 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;
}
/* Stroked SVG icons fill their box; emoji had built-in padding. Scale
   the SVG down so the visual weight matches the previous emoji. */
.security-icon .ts-icon {
  width: 1.2rem;
  height: 1.2rem;
}
.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;
  }
}
