/* Strength Planner website: shared styles for the homepage, support and privacy pages (based on RunTracker's). */

:root {
  --accent: #c9431a;
  --accent-deep: #a8370f;
  --accent-bright: #e8692e;
  --bg: #ffffff;
  --bg-soft: #f5f5f7;
  --card: #ffffff;
  --text: #1d1d1f;
  --text-soft: #6e6e73;
  --line: #e5e5ea;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  --radius: 20px;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #000000;
    --bg-soft: #111113;
    --card: #1c1c1e;
    --text: #f5f5f7;
    --text-soft: #a1a1a6;
    --line: #2c2c2e;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  }
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.55 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

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

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

.container { width: min(1080px, 100% - 40px); margin: 0 auto; }
.narrow { width: min(720px, 100% - 40px); margin: 0 auto; }

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--line);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 56px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 18px;
  color: var(--text);
  flex-shrink: 0;
}
.brand:hover { text-decoration: none; }
.brand img { width: 30px; height: 30px; border-radius: 7px; }

.nav { display: flex; gap: 22px; font-size: 15px; }
.nav a { color: var(--text-soft); }
.nav a:hover, .nav a[aria-current="page"] { color: var(--text); text-decoration: none; }

/* Hero */

.hero {
  background: radial-gradient(120% 90% at 50% 0%, var(--accent-bright) 0%, var(--accent) 45%, var(--accent-deep) 100%);
  color: #fff;
  text-align: center;
  padding: 72px 0 0;
  overflow: hidden;
}

.hero .app-icon {
  width: 112px;
  height: 112px;
  margin: 0 auto 24px;
  border-radius: 26px;
  box-shadow: 0 16px 40px rgba(120, 20, 0, 0.35);
}

.hero h1 {
  margin: 0;
  font-size: clamp(40px, 7vw, 64px);
  line-height: 1.05;
  letter-spacing: -0.02em;
}

.hero .tagline {
  margin: 16px auto 0;
  max-width: 620px;
  font-size: clamp(18px, 2.4vw, 22px);
  opacity: 0.95;
}

.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 30px;
  padding: 12px 22px;
  border-radius: 14px;
  background: #000;
  color: #fff;
  font-weight: 600;
  font-size: 16px;
}
.store-badge:hover { text-decoration: none; opacity: 0.9; }
.store-badge svg { width: 22px; height: 22px; fill: currentColor; }
.store-badge small { display: block; font-weight: 400; font-size: 11px; opacity: 0.8; text-align: left; }
.store-badge span { text-align: left; line-height: 1.2; }

.hero .free-note { margin: 14px 0 0; font-size: 14px; opacity: 0.85; }

.hero-phones {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: 24px;
  margin-top: 52px;
  padding: 0 20px;
}
.hero-phones img {
  width: min(260px, 40vw);
  border-radius: 32px 32px 0 0;
  box-shadow: 0 -10px 40px rgba(80, 10, 0, 0.35);
}
.hero-phones img.side { width: min(220px, 32vw); opacity: 0.96; }

/* Sections */

section { padding: 80px 0; }
section.soft { background: var(--bg-soft); }

.section-title {
  text-align: center;
  margin: 0 0 12px;
  font-size: clamp(30px, 4.5vw, 44px);
  letter-spacing: -0.02em;
  line-height: 1.1;
}
.section-lead {
  text-align: center;
  color: var(--text-soft);
  max-width: 640px;
  margin: 0 auto 48px;
  font-size: 19px;
}

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

.feature {
  background: var(--card);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
}
.feature .icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-size: 24px;
  background: linear-gradient(135deg, var(--accent-bright), var(--accent-deep));
  margin-bottom: 16px;
}
.feature h3 { margin: 0 0 8px; font-size: 20px; }
.feature p { margin: 0; color: var(--text-soft); font-size: 16px; }

.gallery {
  display: flex;
  gap: 22px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 10px 20px 24px;
  margin: 0 -20px;
}
.gallery figure { margin: 0; flex: 0 0 auto; scroll-snap-align: center; text-align: center; }
.gallery img { width: 240px; border-radius: 28px; box-shadow: var(--shadow); }
.gallery figcaption { margin-top: 12px; font-size: 14px; color: var(--text-soft); }

.promise {
  text-align: center;
}
.promise .pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 28px;
}
.promise .pills span {
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--card);
  box-shadow: var(--shadow);
  font-weight: 600;
  font-size: 15px;
}

/* Document pages (support, privacy) */

.page-head { padding: 56px 0 8px; }
.page-head h1 { margin: 0; font-size: clamp(32px, 5vw, 44px); letter-spacing: -0.02em; }
.page-head p { margin: 8px 0 0; color: var(--text-soft); }

.doc { padding: 24px 0 72px; }
.doc h2 { font-size: 24px; line-height: 1.25; margin: 40px 0 12px; }
.doc h3 { font-size: 19px; margin: 28px 0 8px; }
.doc p, .doc li { color: var(--text); }
.doc ul { padding-left: 22px; }
.doc li { margin: 6px 0; }

.contact-card {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--bg-soft);
  border-radius: var(--radius);
  padding: 22px 24px;
  margin-top: 20px;
}
.contact-card .icon { font-size: 30px; }
.contact-card strong { display: block; font-size: 18px; }
.contact-card a { font-size: 17px; overflow-wrap: anywhere; }

details {
  border-bottom: 1px solid var(--line);
  padding: 16px 0;
}
details summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 18px;
  list-style: none;
  position: relative;
  padding-right: 32px;
}
details summary::-webkit-details-marker { display: none; }
details summary::after { content: "+"; position: absolute; top: 0; right: 0; color: var(--text-soft); font-weight: 400; }
details[open] summary::after { content: "−"; }
details p { margin: 10px 0 0; color: var(--text-soft); }

/* Footer */

.site-footer {
  border-top: 1px solid var(--line);
  padding: 28px 0 40px;
  color: var(--text-soft);
  font-size: 14px;
}
.site-footer .container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
}
.site-footer nav { display: flex; gap: 20px; }
.site-footer a { color: var(--text-soft); }

@media (max-width: 600px) {
  .nav { gap: 16px; font-size: 14px; }
  .hero { padding-top: 56px; }
  .hero-phones img.side { display: none; }
  .hero-phones img { width: min(260px, 70vw); }
  section { padding: 60px 0; }
  .feature { padding: 24px; }
  .contact-card { padding: 18px 20px; }
  .contact-card .icon { display: none; }
}

@media (max-width: 400px) {
  .nav a[href$="#features"] { display: none; }
}
