/* --------------------------------------------------
   Peak Website - Components Stylesheet
   Simulator, Steps Grid, Bento Features, CTA & Footer
   -------------------------------------------------- */

/* Hero Interactive Preview (Summit Simulator) */
.hero-preview-wrapper {
  width: 100%;
  max-width: 36rem;
}

.simulator-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 1.25rem;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
  transition: border-color 0.25s ease;
}

.simulator-card:hover {
  border-color: var(--card-border-hover);
}

.simulator-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1.125rem;
  border-bottom: 1px solid var(--border);
  font-size: 0.78125rem;
}

.simulator-island {
  display: flex;
  align-items: center;
  gap: 0.4375rem;
  background: var(--secondary-bg);
  padding: 0.25rem 0.625rem;
  border-radius: 9999px;
  font-weight: 500;
  color: var(--foreground);
}

.island-dot {
  width: 0.375rem;
  height: 0.375rem;
  border-radius: 9999px;
  background-color: var(--foreground);
}

.simulator-badge {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--foreground-muted);
}

/* Mountain Graphic Stage */
.mountain-stage {
  padding: 1.75rem 1.25rem 0.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  background: radial-gradient(circle at 50% 100%, var(--mountain-ground) 0%, transparent 70%);
}

.altitude-stats {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.125rem;
  z-index: 2;
  margin-bottom: 0.5rem;
}

.altitude-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--foreground-subtle);
  font-weight: 500;
}

.altitude-value-group {
  display: flex;
  align-items: baseline;
  gap: 0.25rem;
}

.altitude-number {
  font-size: 2.375rem;
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  color: var(--foreground);
}

.altitude-unit {
  font-size: 1rem;
  font-weight: 500;
  color: var(--foreground-muted);
}

.gain-pill {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--foreground-muted);
  background: var(--secondary-bg);
  padding: 0.1875rem 0.5625rem;
  border-radius: 9999px;
  margin-top: 0.25rem;
  font-family: var(--font-mono);
  transition: all 0.2s ease;
}

.mountain-vector-container {
  width: 100%;
  max-width: 22rem;
  height: auto;
  position: relative;
}

.mountain-svg {
  width: 100%;
  height: auto;
  display: block;
}

.mountain-fill {
  color: var(--mountain-color);
  opacity: 0.06;
  transition: opacity 0.3s ease;
}

.mountain-ridge {
  color: var(--mountain-color);
}

.snow-cap {
  color: var(--mountain-color);
  opacity: 0.85;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.elevation-line {
  color: var(--foreground-subtle);
  transition: y1 0.4s ease, y2 0.4s ease;
}

.summit-marker {
  color: var(--foreground);
  opacity: 0.9;
}

/* Simulator Controls */
.simulator-controls {
  padding: 1.125rem;
  border-top: 1px solid var(--border);
  background: var(--card-bg);
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
}

.duration-tabs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.375rem;
  background: var(--secondary-bg);
  padding: 0.25rem;
  border-radius: 0.625rem;
}

.tab-btn {
  border: none;
  background: transparent;
  padding: 0.4375rem 0;
  font-size: 0.8125rem;
  font-weight: 500;
  border-radius: 0.4375rem;
  color: var(--foreground-muted);
  cursor: pointer;
  transition: all 0.15s ease;
  font-family: inherit;
}

.tab-btn:hover {
  color: var(--foreground);
}

.tab-btn.active {
  background: var(--card-bg);
  color: var(--foreground);
  box-shadow: var(--shadow-sm);
}

.simulator-action-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.climb-btn {
  padding: 0.4375rem 1rem;
  font-size: 0.8125rem;
}

.simulator-hint {
  font-size: 0.75rem;
  color: var(--foreground-subtle);
}

/* Steps (01, 02, 03 Grid) */
.steps-section {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  border-top: 1px solid var(--border);
  padding: 2.5rem 0;
}

@media (min-width: 640px) {
  .steps-section {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.75rem;
    padding: 3rem 0;
  }
}

.step-card {
  display: flex;
  gap: 1rem;
}

@media (min-width: 640px) {
  .step-card {
    flex-direction: column;
    gap: 0.625rem;
  }
}

.step-num {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--foreground-subtle);
  font-variant-numeric: tabular-nums;
  line-height: 1.4;
  width: 1.5rem;
  flex-shrink: 0;
}

.step-body {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.step-heading {
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--foreground);
}

.step-desc {
  font-size: 0.8125rem;
  line-height: 1.45;
  color: var(--foreground-muted);
}

/* Features Section (Bento Grid) */
.features-section {
  border-top: 1px solid var(--border);
  padding: 3rem 0 3.5rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.section-header {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}

.section-title {
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -0.03em;
  color: var(--foreground);
}

@media (min-width: 640px) {
  .section-title {
    font-size: 1.875rem;
  }
}

.section-subtitle {
  font-size: 0.875rem;
  color: var(--foreground-muted);
}

.features-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

@media (min-width: 640px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.feature-tile {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 1rem;
  padding: 1.375rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.feature-tile:hover {
  border-color: var(--card-border-hover);
  transform: translateY(-1px);
}

.feature-icon {
  color: var(--foreground);
  margin-bottom: 0.25rem;
}

.feature-title {
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--foreground);
}

.feature-desc {
  font-size: 0.8125rem;
  line-height: 1.5;
  color: var(--foreground-muted);
}

/* Download CTA Section */
.download-section {
  border-top: 1px solid var(--border);
  padding: 3.5rem 0;
  display: flex;
  justify-content: center;
}

.download-card {
  width: 100%;
  max-width: 34rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.875rem;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 1.25rem;
  padding: 2.5rem 1.5rem;
  box-shadow: var(--shadow-sm);
}

.download-badge {
  margin-bottom: 0.25rem;
}

.app-icon-img {
  border-radius: 0.875rem;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
  display: block;
}

.download-title {
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -0.03em;
  color: var(--foreground);
}

.download-subtitle {
  font-size: 0.84375rem;
  color: var(--foreground-muted);
  max-width: 22rem;
}

.download-btn-wrapper {
  margin-top: 0.5rem;
}

.appstore-btn {
  padding: 0.625rem 1.375rem;
  border-radius: 0.75rem;
  gap: 0.625rem;
}

.appstore-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.1;
}

.appstore-small {
  font-size: 0.625rem;
  letter-spacing: 0.02em;
  opacity: 0.8;
}

.appstore-main {
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

/* Footer */
.footer {
  border-top: 1px solid var(--border);
  padding: 1.5rem 0 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  font-size: 0.8125rem;
  color: var(--foreground-muted);
}

@media (min-width: 640px) {
  .footer {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.footer-left {
  display: flex;
  align-items: center;
  gap: 0.875rem;
}

.footer-brand {
  font-weight: 600;
  color: var(--foreground);
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.footer-link {
  color: var(--foreground-muted);
  text-decoration: none;
  transition: color 0.15s ease;
}

.footer-link:hover {
  color: var(--foreground);
}
