/*
styles.css

This file contains shared styling for all pages of the Body Battery body energy
dashboard (Body Battery) app website.
website. The goal is to keep the design:
- Clean and modern.
- Easy to read on both mobile and desktop.
- Reusable, with a small set of utility classes instead of one-off rules.
*/

/* Base layout */

*,
*::before,
*::after {
  box-sizing: border-box;
}

body.page {
  margin: 0;
  min-height: 100vh;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  color: #0f172a;
  background: radial-gradient(circle at top, #1f2937 0%, #020617 55%, #020617 100%);
}

a {
  color: #f9739b;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* Header and navigation */

.page-header {
  background: rgba(15, 23, 42, 0.9);
  color: #e5e7eb;
  position: sticky;
  top: 0;
  z-index: 10;
}

.page-header-inner {
  max-width: 960px;
  margin: 0 auto;
  padding: 0.75rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: #e5e7eb;
}

.brand-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
}

.brand-title {
  font-weight: 600;
  letter-spacing: 0.02em;
}

.nav {
  display: flex;
  gap: 0.75rem;
  font-size: 0.95rem;
}

.nav-link {
  color: #e5e7eb;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
}

.nav-link:hover {
  background-color: rgba(148, 163, 184, 0.2);
  text-decoration: none;
}

.nav-link-active {
  background-color: #ec4899;
  color: #ffffff;
}

/* Main layout */

.page-main {
  padding: 1.5rem 1rem 2.5rem;
}

.page-container {
  max-width: 960px;
  margin: 0 auto;
}

/* Cards */

.card {
  background: #ffffff;
  border-radius: 1rem;
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.25);
  padding: 1.75rem 1.5rem;
  margin-bottom: 1.5rem;
}

.card-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.5fr);
  gap: 1.5rem;
  align-items: center;
}

.card-section + .card-section {
  margin-top: 1.5rem;
  border-top: 1px solid #e5e7eb;
  padding-top: 1.25rem;
}

@media (max-width: 720px) {
  .card-hero {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Typography helpers */

.page-title {
  margin: 0 0 0.5rem;
  font-size: 1.75rem;
  letter-spacing: 0.03em;
}

.page-subtitle {
  margin: 0 0 1rem;
  color: #64748b;
}

.section-title {
  margin: 0 0 0.5rem;
  font-size: 1.2rem;
}

.muted-text {
  color: #94a3b8;
  font-size: 0.9rem;
}

.bullet-list,
.feature-list {
  padding-left: 1.2rem;
  margin: 0.75rem 0 0;
}

.bullet-list li,
.feature-list li {
  margin-bottom: 0.35rem;
}

.contact-block {
  font-weight: 500;
}

/* Hero section */

.card-hero-media {
  display: flex;
  justify-content: center;
}

.hero-icon {
  width: 96px;
  height: 96px;
  border-radius: 24px;
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.35);
}

.hero-actions {
  margin-top: 1rem;
}

.app-store-link {
  display: inline-flex;
}

.app-store-badge {
  height: 50px;
  width: auto;
  border-radius: 0.75rem;
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.35);
}

.hero-secondary-links {
  margin-top: 0.75rem;
  color: #64748b;
  font-size: 0.95rem;
}

.text-link {
  color: #f9739b;
}

.separator-dot {
  margin: 0 0.4rem;
}

/* Forms */

.support-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.form-row {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.form-label {
  font-weight: 500;
  font-size: 0.95rem;
}

.required {
  color: #dc2626;
  font-size: 0.8rem;
}

.optional {
  color: #9ca3af;
  font-size: 0.8rem;
}

.form-input,
.form-textarea {
  border-radius: 0.5rem;
  border: 1px solid #cbd5e1;
  padding: 0.6rem 0.7rem;
  font-size: 0.95rem;
  font-family: inherit;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.form-input:focus,
.form-textarea:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 1px #2563eb33;
}

.form-input-error {
  border-color: #dc2626;
}

.form-error {
  color: #b91c1c;
  font-size: 0.85rem;
  margin: 0;
}

.form-actions {
  margin-top: 0.5rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: none;
  padding: 0.6rem 1.3rem;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: background-color 0.15s ease, box-shadow 0.15s ease,
    transform 0.05s ease;
}

.btn-primary {
  background-color: #22c55e;
  color: #ffffff;
  box-shadow: 0 10px 25px rgba(37, 99, 235, 0.5);
}

.btn-primary:hover {
  background-color: #16a34a;
}

.btn-primary:active {
  transform: translateY(1px);
  box-shadow: 0 6px 16px rgba(37, 99, 235, 0.5);
}

/* Alerts */

.alert {
  border-radius: 0.75rem;
  padding: 0.75rem 1rem;
  margin: 0 1.5rem 1rem;
  font-size: 0.93rem;
}

.alert-success {
  background-color: #ecfdf3;
  border: 1px solid #22c55e;
  color: #14532d;
}

.alert-error {
  background-color: #fef2f2;
  border: 1px solid #f97373;
  color: #7f1d1d;
}

/* Footer */

.page-footer {
  padding: 0.75rem 1rem 1.5rem;
  color: #e5e7eb;
}

.page-footer-inner {
  max-width: 960px;
  margin: 0 auto;
  font-size: 0.9rem;
}

.footer-text {
  margin: 0;
}


