/* ========================================
   Slate Landing Page - Warm Amber Logbook Theme
   Warm dark surfaces with amber accent
   ======================================== */

/* --- Override CSS variables for Slate page --- */

.slate-page {
  --color-bg: #1A150D;
  --color-bg-secondary: #252018;
  --color-bg-tertiary: #302B23;
  --color-text: #F5F0E6;
  --color-text-secondary: #C2B8A6;
  --color-text-tertiary: #8C8578;
  --color-accent: #D4A84B;
  --color-accent-hover: #DBAF55;
  --color-border: #3D3529;
  --color-danger: #FF6600;

  --slate-glow: rgba(212, 168, 75, 0.10);
  --slate-glow-strong: rgba(212, 168, 75, 0.22);
}

/* Force dark regardless of system preference */
@media (prefers-color-scheme: light) {
  .slate-page {
    --color-bg: #1A150D;
    --color-bg-secondary: #252018;
    --color-bg-tertiary: #302B23;
    --color-text: #F5F0E6;
    --color-text-secondary: #C2B8A6;
    --color-text-tertiary: #8C8578;
    --color-accent: #D4A84B;
    --color-accent-hover: #DBAF55;
    --color-border: #3D3529;
    --color-danger: #FF6600;
  }
}

/* --- Header adaptation --- */

.slate-page .site-header {
  background: #1A150D;
  border-bottom-color: #3D3529;
}

.slate-page .site-logo {
  color: #F5F0E6;
}

.slate-page .site-nav a {
  color: #8C8578;
}

.slate-page .site-nav a:hover,
.slate-page .site-nav a.active {
  color: #D4A84B;
}

/* --- Footer adaptation --- */

.slate-page .site-footer {
  background: #1A150D;
  border-top-color: #3D3529;
}

.slate-page .footer-col h4 {
  color: #8C8578;
}

.slate-page .footer-col a {
  color: #C2B8A6;
}

.slate-page .footer-col a:hover {
  color: #D4A84B;
}

.slate-page .footer-bottom {
  border-top-color: #3D3529;
}

.slate-page .footer-bottom p {
  color: #8C8578;
}

/* --- Hero --- */

.slate-hero {
  padding: 56px 0 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.slate-hero-icon {
  display: block;
  width: 72px;
  height: 72px;
  border-radius: 16px;
  margin: 0 auto 16px;
  box-shadow: 0 0 40px var(--slate-glow), 0 4px 16px rgba(0, 0, 0, 0.3);
}

.slate-hero::before {
  content: "";
  position: absolute;
  top: -120px;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, var(--slate-glow) 0%, transparent 70%);
  pointer-events: none;
}

.slate-hero h1 {
  font-size: 2.75rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: #F5F0E6;
  margin-bottom: 16px;
  position: relative;
  max-width: 15em;
  margin-left: auto;
  margin-right: auto;
  text-wrap: balance;
}

.slate-hero h1 span {
  color: #D4A84B;
}

.slate-hero .subtitle {
  font-size: 1.125rem;
  color: #C2B8A6;
  max-width: 680px;
  margin: 0 auto 20px;
  line-height: 1.6;
}

.slate-hero .btn-primary {
  background: #D4A84B;
  color: #1A150D;
  font-weight: 700;
  padding: 14px 32px;
  font-size: 1rem;
  letter-spacing: 0.01em;
}

.slate-hero .btn-primary:hover {
  background: #DBAF55;
  box-shadow: 0 0 24px var(--slate-glow-strong);
}

.slate-hero-availability {
  font-size: 0.875rem;
  color: #8C8578;
  letter-spacing: 0.02em;
  margin: 0 0 12px;
}

/* --- Store badges --- */

.slate-hero-badges,
.slate-cta-badges {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.slate-badge {
  width: auto;
  opacity: 0.5;
  transition: opacity 0.2s;
}

.slate-badge--appstore {
  height: 40px;
}

.slate-badge:hover {
  opacity: 0.7;
}

/* --- Hero product screenshot --- */

.slate-hero-product {
  margin-top: 32px;
  position: relative;
  max-height: 360px;
  overflow: hidden;
}

.slate-hero-product img {
  max-width: 320px;
  width: 100%;
  height: auto;
  border-radius: 16px 16px 0 0;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.5), 0 0 64px var(--slate-glow);
}

.slate-hero-product::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 160px;
  background: linear-gradient(to bottom, transparent, #1A150D);
  pointer-events: none;
}

/* --- Section styling --- */

.slate-section {
  padding: 64px 0;
  border-top: 1px solid #3D3529;
}

.slate-section-header {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: #D4A84B;
  margin-bottom: 12px;
}

.slate-section h2 {
  font-size: 1.75rem;
  font-weight: 700;
  color: #F5F0E6;
  margin-bottom: 40px;
  letter-spacing: -0.01em;
  border: none;
  padding: 0;
}

/* --- Features grid --- */

.slate-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}

.slate-features-label {
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #D4A84B;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid #3D3529;
}

.slate-features-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.slate-features-item h3 {
  font-size: 1rem;
  font-weight: 600;
  color: #F5F0E6;
  margin: 0 0 4px;
}

.slate-features-item p {
  font-size: 0.9375rem;
  color: #C2B8A6;
  line-height: 1.55;
  margin: 0;
}

/* --- Feature showcase (image + text side by side) --- */

.slate-showcase {
  display: flex;
  align-items: flex-start;
  gap: 48px;
  margin: 48px 0;
}

.slate-showcase--reverse {
  flex-direction: row-reverse;
}

.slate-showcase-img {
  flex-shrink: 0;
  width: 280px;
  max-height: 500px;
  overflow: hidden;
  position: relative;
}

.slate-showcase-img img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4), 0 0 48px rgba(212, 168, 75, 0.06);
}

.slate-showcase-text {
  flex: 1;
  min-width: 0;
  padding-top: 24px;
}

.slate-showcase-text h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: #F5F0E6;
  margin-bottom: 16px;
}

.slate-showcase-text p {
  font-size: 1.0625rem;
  color: #C2B8A6;
  line-height: 1.7;
  margin-bottom: 16px;
}

.slate-showcase-text p:last-child {
  margin-bottom: 0;
}

/* --- Phone pair (two screenshots side by side) --- */

.slate-phone-pair {
  display: flex;
  gap: 24px;
  justify-content: center;
  margin: 48px 0;
}

.slate-phone-pair img {
  width: calc(50% - 12px);
  max-width: 280px;
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4), 0 0 48px rgba(212, 168, 75, 0.06);
}

/* --- Insights section --- */

.slate-insights {
  background: #252018;
  border-top: 1px solid #3D3529;
  border-bottom: 1px solid #3D3529;
}

.slate-insights-showcase {
  text-align: center;
  margin-bottom: 40px;
  max-height: 360px;
  overflow: hidden;
  position: relative;
}

.slate-insights-showcase img {
  max-width: 320px;
  width: 100%;
  height: auto;
  border-radius: 12px 12px 0 0;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4), 0 0 48px rgba(212, 168, 75, 0.06);
}

.slate-insights-showcase::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 80px;
  background: linear-gradient(to bottom, transparent, #252018);
  pointer-events: none;
}

.slate-insights-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.slate-insights-item h3 {
  font-size: 1rem;
  font-weight: 600;
  color: #F5F0E6;
  margin-bottom: 8px;
}

.slate-insights-item p {
  font-size: 0.9375rem;
  color: #C2B8A6;
  line-height: 1.55;
}

/* --- Specs list --- */

.slate-specs {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px 32px;
  margin-top: 32px;
}

.slate-spec {
  font-size: 0.9375rem;
  color: #C2B8A6;
  padding-left: 20px;
  position: relative;
  line-height: 1.5;
}

.slate-spec::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: #D4A84B;
  opacity: 0.6;
}

/* --- CTA section --- */

.slate-cta {
  text-align: center;
  padding: 80px 0;
  border-top: 1px solid #3D3529;
}

.slate-cta h2 {
  font-size: 2rem;
  font-weight: 700;
  color: #F5F0E6;
  margin-bottom: 12px;
  border: none;
  padding: 0;
}

.slate-cta p {
  font-size: 1rem;
  color: #C2B8A6;
  margin-bottom: 24px;
}

.slate-cta-changelog {
  margin-top: 24px;
  margin-bottom: 0;
}

.slate-cta-changelog a {
  font-size: 0.875rem;
  color: #8C8578;
  text-decoration: none;
  letter-spacing: 0.02em;
}

.slate-cta-changelog a:hover {
  color: #D4A84B;
}

/* --- Disclaimer --- */

.slate-disclaimer {
  text-align: center;
  padding: 0 0 64px;
  font-size: 0.8125rem;
  color: #8C8578;
  font-style: italic;
}

/* --- Changelog --- */

.slate-page .changelog-hero {
  padding: 64px 0 32px;
  text-align: center;
  border-bottom: 1px solid #3D3529;
}

.slate-page .changelog-back-link {
  display: inline-block;
  font-size: 0.8125rem;
  color: #D4A84B;
  text-decoration: none;
  margin-bottom: 24px;
  letter-spacing: 0.02em;
}

.slate-page .changelog-back-link:hover {
  color: #DBAF55;
}

.slate-page .changelog-hero h1 {
  font-size: 2rem;
  font-weight: 700;
  color: #F5F0E6;
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}

.slate-page .changelog-subtitle {
  font-size: 1rem;
  color: #C2B8A6;
  margin-bottom: 16px;
}

.slate-page .changelog-rss {
  font-size: 0.875rem;
  color: #8C8578;
}

.slate-page .changelog-rss a {
  color: #D4A84B;
  text-decoration: none;
}

.slate-page .changelog-rss a:hover {
  color: #DBAF55;
}

.slate-page .changelog-content {
  padding: 48px 0 64px;
}

.slate-page .changelog-version {
  margin-bottom: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid #3D3529;
}

.slate-page .changelog-version:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.slate-page .changelog-version-header {
  display: flex;
  align-items: baseline;
  gap: 16px;
  margin-bottom: 24px;
}

.slate-page .changelog-version-number {
  font-size: 1.5rem;
  font-weight: 700;
  color: #F5F0E6;
  margin: 0;
  border: none;
  padding: 0;
}

.slate-page .changelog-version-date {
  font-size: 0.875rem;
  color: #8C8578;
}

.slate-page .changelog-notes {
  font-size: 0.9375rem;
  color: #C2B8A6;
  line-height: 1.7;
}

.slate-page .changelog-notes p {
  margin: 0 0 16px;
}

.slate-page .changelog-notes p:last-child {
  margin-bottom: 0;
}

.slate-page .changelog-notes ul {
  list-style: none;
  padding: 0;
  margin: 0 0 16px;
}

.slate-page .changelog-notes ul:last-child {
  margin-bottom: 0;
}

.slate-page .changelog-notes li {
  padding: 4px 0 4px 20px;
  position: relative;
}

.slate-page .changelog-notes li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 12px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #3D3529;
}

/* --- Responsive --- */

@media (max-width: 768px) {
  .slate-hero {
    padding: 56px 0 0;
  }

  .slate-hero h1 {
    font-size: 1.875rem;
  }

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

  .slate-hero-product {
    max-height: 280px;
  }

  .slate-hero-product img {
    max-width: 260px;
  }

  .slate-showcase {
    flex-direction: column;
    align-items: center;
    gap: 24px;
  }

  .slate-showcase--reverse {
    flex-direction: column;
  }

  .slate-showcase-img {
    width: 220px;
  }

  .slate-showcase-text {
    padding-top: 0;
    text-align: center;
  }

  .slate-phone-pair {
    flex-direction: column;
    align-items: center;
    gap: 16px;
  }

  .slate-phone-pair img {
    width: 220px;
    max-width: none;
  }

  .slate-features {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .slate-insights-showcase {
    max-height: 280px;
  }

  .slate-insights-showcase img {
    max-width: 240px;
  }

  .slate-insights-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .slate-specs {
    grid-template-columns: 1fr;
  }

  .slate-section {
    padding: 48px 0;
  }

  .slate-cta {
    padding: 56px 0;
  }

  .slate-cta h2 {
    font-size: 1.5rem;
  }
}
