/* ============================================================
   TooManyHarts — shared stylesheet
   Palette mirrors the LANYX apps (Material 3 dark):
     bg #141218 · surface #1D1B20 · raised #26242B
     accent #D0BCFF · accent-deep #9A7BFF · text #E6E0E9
   ============================================================ */

:root {
  --bg: #141218;
  --surface: #1d1b20;
  --raised: #26242b;
  --line: #322f38;
  --accent: #d0bcff;
  --accent-deep: #9a7bff;
  --text: #e6e0e9;
  --muted: #a49daf;
  --radius: 14px;
  --maxw: 1080px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

img { max-width: 100%; display: block; }

.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- header ---------- */

header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(20, 18, 24, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 0.02em;
  color: var(--text);
}
.brand:hover { text-decoration: none; }
.brand .heart { color: var(--accent-deep); }

.nav-links {
  display: flex;
  gap: 26px;
  font-size: 0.95rem;
}
.nav-links a { color: var(--muted); }
.nav-links a:hover { color: var(--accent); text-decoration: none; }

/* ---------- buttons ---------- */

.btn {
  display: inline-block;
  padding: 12px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.98rem;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }

.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-deep));
  color: #1a1424;
  box-shadow: 0 4px 22px rgba(154, 123, 255, 0.35);
}
.btn-primary:hover { box-shadow: 0 6px 28px rgba(154, 123, 255, 0.5); }

.btn-ghost {
  border: 1px solid var(--line);
  color: var(--text);
}
.btn-ghost:hover { border-color: var(--accent-deep); }

/* ---------- hero ---------- */

.hero {
  padding: 92px 0 72px;
  text-align: center;
  background:
    radial-gradient(ellipse 70% 55% at 50% -10%,
      rgba(154, 123, 255, 0.16), transparent);
}

.hero .kicker {
  color: var(--accent);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.82rem;
}

.hero h1 {
  font-size: clamp(2.1rem, 5.2vw, 3.4rem);
  line-height: 1.15;
  margin: 14px auto 18px;
  max-width: 720px;
  letter-spacing: -0.01em;
}

.hero p.lede {
  color: var(--muted);
  font-size: 1.15rem;
  max-width: 560px;
  margin: 0 auto 34px;
}

.hero .cta-row {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-art {
  margin: 56px auto 0;
  max-width: 620px;
  border-radius: var(--radius);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.55),
              0 0 0 1px var(--line);
}

/* ---------- sections ---------- */

section { padding: 72px 0; }

.section-title {
  font-size: 1.7rem;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}
.section-sub {
  color: var(--muted);
  margin-bottom: 40px;
  max-width: 560px;
}

/* ---------- app cards ---------- */

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 22px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: transform 0.15s ease, border-color 0.15s ease;
}
.card:hover { transform: translateY(-3px); border-color: var(--accent-deep); }

.card .app-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
}

.card h3 { font-size: 1.25rem; }

.card p { color: var(--muted); font-size: 0.97rem; flex: 1; }

.card .card-link { font-weight: 600; font-size: 0.95rem; }

.card.coming {
  border-style: dashed;
  opacity: 0.75;
}
.card.coming .app-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--raised);
  color: var(--accent-deep);
  font-size: 1.6rem;
}

/* ---------- feature rows (product pages) ---------- */

.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 22px;
}

.feature {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
}
.feature .glyph { font-size: 1.6rem; margin-bottom: 10px; }
.feature h3 { font-size: 1.08rem; margin-bottom: 6px; }
.feature p { color: var(--muted); font-size: 0.95rem; }

/* ---------- platform badges ---------- */

.badges {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.badge {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--raised);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 22px;
  color: var(--text);
  min-width: 200px;
  transition: border-color 0.15s ease;
}
.badge:hover { border-color: var(--accent-deep); text-decoration: none; }
.badge .os { font-size: 1.5rem; }
.badge small { display: block; color: var(--muted); font-size: 0.78rem; }
.badge strong { font-size: 0.98rem; }

/* ---------- FAQ ---------- */

.faq details {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 18px 22px;
  margin-bottom: 12px;
}
.faq summary {
  cursor: pointer;
  font-weight: 600;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; float: right; color: var(--accent-deep); }
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--muted); margin-top: 10px; font-size: 0.96rem; }

/* ---------- footer ---------- */

footer {
  border-top: 1px solid var(--line);
  padding: 42px 0;
  color: var(--muted);
  font-size: 0.9rem;
}
.foot {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  align-items: center;
}

/* ---------- small screens ---------- */

@media (max-width: 640px) {
  .nav-links { gap: 16px; font-size: 0.88rem; }
  .hero { padding: 64px 0 48px; }
  section { padding: 52px 0; }
}
