/* Reset */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  font-family: 'Lato', sans-serif;
  background-color: #f5f5f7;
  color: #111827;
}

/* Typography */
h1,
h2,
h3,
.hc-btn-label,
.hc-lifespan-label {
  font-family: 'Montserrat', sans-serif;
}

.hc-title {
  font-family: 'Montserrat', sans-serif;
}

.hc-small-note {
  font-size: 0.85rem;
}

/* Layout */
.app-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Header */
.hc-header {
  padding: 1rem 1.25rem;
  background: #ffffff;
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
  position: sticky;
  top: 0;
  z-index: 10;
}

.hc-header-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.hc-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.hc-logo-circle {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  background: #111827;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.95rem;
}

.hc-brand-text {
  display: flex;
  flex-direction: column;
}

.hc-title {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 700;
}

.hc-subtitle {
  margin: 0.1rem 0 0;
  font-size: 0.85rem;
  color: #6b7280;
}

/* Back button */
.hc-back-btn {
  border: none;
  background: #f3f4f6;
  border-radius: 999px;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  cursor: pointer;
}

/* Main */
.hc-main {
  flex: 1;
  padding: 1.25rem;
  max-width: 700px;
  width: 100%;
  margin: 0 auto;
}

.hc-hero-title {
  margin: 0 0 0.5rem;
  font-size: 1.5rem;
  font-weight: 700;
}

.hc-hero-text {
  margin: 0;
  color: #4b5563;
  font-size: 1rem;
  line-height: 1.45;
}

/* Section */
.hc-section-block {
  margin-bottom: 1.5rem;
}

/* Primary actions */
.hc-primary-actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin: 1.5rem 0;
}

/* Buttons */
.hc-btn {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  padding: 0.9rem 1.1rem;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  text-align: left;
  font-family: 'Montserrat', sans-serif;
  transition: transform 0.06s ease, box-shadow 0.06s ease, background-color 0.15s ease;
}

.hc-btn:active {
  transform: translateY(1px);
  box-shadow: none;
}

.hc-btn-icon {
  font-size: 1.4rem;
}

.hc-btn-label {
  font-weight: 600;
  font-size: 1rem;
}

.hc-btn-helper {
  font-family: 'Lato', sans-serif;
  font-size: 0.8rem;
  color: #6b7280;
}

.hc-btn-primary {
  background: #111827;
  color: #fff;
  box-shadow: 0 10px 20px rgba(15, 23, 42, 0.25);
}

.hc-btn-secondary {
  background: #fff;
  color: #111827;
  box-shadow: 0 6px 14px rgba(15, 23, 42, 0.08);
}

/* Pills (walkthrough sections) */
.hc-pill {
  border-radius: 999px;
  border: 1px solid #e5e7eb;
  background: #ffffff;
  padding: 0.5rem 0.8rem;
  font-size: 0.9rem;
  text-align: left;
  cursor: pointer;
}

/* Links grid */
.hc-link-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
}

.hc-link-card {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.8rem 0.95rem;
  border-radius: 0.9rem;
  text-decoration: none;
  background: #ffffff;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.04);
  color: inherit;
}

.hc-link-icon {
  font-size: 1.3rem;
}

.hc-link-title {
  font-size: 0.95rem;
  font-weight: 600;
}

.hc-link-text {
  font-size: 0.8rem;
  color: #6b7280;
}

/* Lists */
.hc-list {
  list-style: disc;
  padding-left: 1.2rem;
  margin: 0.5rem 0;
  font-size: 0.95rem;
  color: #4b5563;
}

/* Textarea */
.hc-textarea {
  width: 100%;
  min-height: 120px;
  border-radius: 0.9rem;
  border: 1px solid #e5e7eb;
  padding: 0.75rem;
  font-family: 'Lato', sans-serif;
  font-size: 0.95rem;
  resize: vertical;
}

/* Lifespan grid */
.hc-lifespan-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
}

.hc-lifespan-item {
  padding: 0.8rem 0.95rem;
  background: #ffffff;
  border-radius: 0.9rem;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.04);
}

.hc-lifespan-range {
  font-size: 0.85rem;
  color: #4b5563;
}

/* Footer */
.hc-footer {
  padding: 0.9rem 1.25rem 1.1rem;
  font-size: 0.75rem;
  color: #9ca3af;
  text-align: center;
}

.hc-footer-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.hc-secondary-link {
  border: none;
  background: transparent;
  font-size: 0.85rem;
  color: #4b5563;
  text-decoration: underline;
  cursor: pointer;
}

.hc-btn-footer-primary {
  border: none;
  border-radius: 999px;
  padding: 0.6rem 1.2rem;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.9rem;
  background: #111827;
  color: #ffffff;
  opacity: 0.6;
}

/* Desktop tweaks */
@media (min-width: 768px) {
  .hc-main {
    padding: 1.75rem 1.25rem 2rem;
  }

  .hc-hero-title {
    font-size: 1.6rem;
  }

  .hc-primary-actions {
    flex-direction: row;
  }

  .hc-link-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hc-lifespan-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
/* Install section styles */
.hc-install-btn {
  margin-bottom: 0.5rem;
}

.hc-install-btn[disabled] {
  opacity: 0.6;
}

.hc-install-hint {
  font-size: 0.8rem;
  color: #6b7280;
  line-height: 1.4;
}

.hc-install-hint em {
  font-style: normal;
  font-weight: 600;
}
