/* ============================================================
   75 Hard – Workout Challenge · seventyfivehard.app
   Shared design system — dark theme, red accent (app brand)
   ============================================================ */
:root {
  --bg: #0a0a0b;
  --surface: #131316;
  --card: #1a1a1f;
  --card-hover: #202027;
  --border: rgba(255, 255, 255, 0.09);
  --red: #e8352e;
  --red-hot: #ff4b3e;
  --red-soft: rgba(232, 53, 46, 0.12);
  --green: #2ecc71;
  --green-soft: rgba(46, 204, 113, 0.12);
  --text: #f5f5f7;
  --muted: #a1a1aa;
  --dim: #71717a;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  font-size: 17px;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--red-hot); text-decoration: none; }
a:hover { text-decoration: underline; }
::selection { background: var(--red); color: #fff; }

.container { max-width: 1140px; margin: 0 auto; padding: 0 24px; }
.skip-link {
  position: absolute; left: -9999px; top: 0; background: var(--red); color: #fff;
  padding: 10px 18px; z-index: 200; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-weight: 700; font-size: 16px; line-height: 1;
  padding: 16px 28px; border-radius: 999px; border: 1px solid transparent;
  cursor: pointer; transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
  text-decoration: none !important;
}
.btn-primary {
  background: linear-gradient(135deg, var(--red-hot), var(--red));
  color: #fff;
  box-shadow: 0 8px 30px rgba(232, 53, 46, 0.35);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 40px rgba(232, 53, 46, 0.5); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--border); }
.btn-ghost:hover { background: var(--card); }
.btn-appstore {
  background: #000; color: #fff; border: 1px solid rgba(255, 255, 255, 0.25);
  padding: 12px 24px; border-radius: 14px; gap: 12px; text-align: left;
}
.btn-appstore:hover { transform: translateY(-2px); border-color: rgba(255, 255, 255, 0.5); }
.btn-appstore .as-small { display: block; font-size: 11px; font-weight: 500; color: #d4d4d8; }
.btn-appstore .as-big { display: block; font-size: 19px; font-weight: 700; letter-spacing: -0.01em; }
.btn-appstore svg { width: 28px; height: 28px; flex: none; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(10, 10, 11, 0.82);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: flex; align-items: center; gap: 11px; font-weight: 800; font-size: 17px; color: var(--text); text-decoration: none !important; letter-spacing: -0.02em; }
.brand img { width: 34px; height: 34px; border-radius: 8px; }
.brand .brand-75 { color: var(--red-hot); }
.site-nav { display: flex; align-items: center; gap: 26px; }
.site-nav a { color: var(--muted); font-weight: 600; font-size: 14.5px; }
.site-nav a:hover { color: var(--text); text-decoration: none; }
.site-nav .btn { padding: 10px 20px; font-size: 14px; }
@media (max-width: 820px) { .site-nav a:not(.btn) { display: none; } }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 84px 0 60px; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; top: -220px; right: -160px; width: 640px; height: 640px;
  background: radial-gradient(circle, rgba(232, 53, 46, 0.22), transparent 65%);
  pointer-events: none;
}
.hero .container { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 56px; align-items: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--red-soft); color: var(--red-hot);
  font-size: 13px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
  padding: 7px 14px; border-radius: 999px; margin-bottom: 22px;
}
.hero h1 { font-size: clamp(38px, 5.2vw, 58px); font-weight: 900; line-height: 1.06; letter-spacing: -0.03em; }
.hero h1 .accent { color: var(--red-hot); }
.hero .lede { font-size: 19px; color: var(--muted); margin: 22px 0 30px; max-width: 54ch; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; margin-bottom: 26px; }
.trust-chips { display: flex; flex-wrap: wrap; gap: 10px 18px; list-style: none; }
.trust-chips li { display: flex; align-items: center; gap: 7px; color: var(--muted); font-size: 14px; font-weight: 600; }
.trust-chips .tick { color: var(--green); font-weight: 900; }
.hero-shot { position: relative; display: flex; justify-content: center; }
.hero-shot img {
  width: min(340px, 80%); border-radius: 28px; border: 1px solid var(--border);
  box-shadow: var(--shadow);
  transform: rotate(2.5deg);
}
@media (max-width: 900px) {
  .hero .container { grid-template-columns: 1fr; gap: 40px; }
  .hero-shot img { transform: none; }
}

/* ---------- Sections ---------- */
section { padding: 76px 0; }
.section-head { max-width: 720px; margin: 0 auto 48px; text-align: center; }
.section-head h2 { font-size: clamp(28px, 3.6vw, 40px); font-weight: 900; letter-spacing: -0.02em; line-height: 1.15; }
.section-head p { color: var(--muted); margin-top: 14px; font-size: 17.5px; }
.section-alt { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

/* ---------- Stat strip ---------- */
.stat-strip { padding: 0; }
.stat-strip .container {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px;
  background: var(--border); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden;
}
.stat { background: var(--surface); padding: 26px 18px; text-align: center; }
.stat b { display: block; font-size: 30px; font-weight: 900; color: var(--red-hot); letter-spacing: -0.02em; }
.stat span { font-size: 13.5px; color: var(--muted); font-weight: 600; }
@media (max-width: 720px) { .stat-strip .container { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Screenshot rail ---------- */
.rail {
  display: flex; gap: 22px; overflow-x: auto; padding: 8px 4px 22px;
  scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch;
}
.rail::-webkit-scrollbar { height: 8px; }
.rail::-webkit-scrollbar-thumb { background: var(--card-hover); border-radius: 99px; }
.shot { flex: 0 0 auto; width: min(270px, 72vw); scroll-snap-align: center; }
.shot img {
  border-radius: 22px; border: 1px solid var(--border);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.45);
  transition: transform .25s ease;
}
.shot:hover img { transform: translateY(-6px); }
.shot figcaption { text-align: center; color: var(--muted); font-size: 14px; font-weight: 600; margin-top: 12px; }

/* ---------- Feature grid ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 940px) { .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .grid-3 { grid-template-columns: 1fr; } }
.feature {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 26px; transition: transform .2s ease, border-color .2s ease;
}
.feature:hover { transform: translateY(-4px); border-color: rgba(232, 53, 46, 0.45); }
.feature .icon {
  width: 44px; height: 44px; border-radius: 12px; background: var(--red-soft);
  display: flex; align-items: center; justify-content: center; margin-bottom: 16px;
  color: var(--red-hot); font-size: 20px; font-weight: 900;
}
.feature .icon svg { width: 22px; height: 22px; }
.feature h3 { font-size: 18px; font-weight: 800; margin-bottom: 8px; letter-spacing: -0.01em; }
.feature p { color: var(--muted); font-size: 15px; }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: step; }
@media (max-width: 940px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .steps { grid-template-columns: 1fr; } }
.step { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px; position: relative; }
.step .num {
  font-size: 42px; font-weight: 900; color: transparent;
  -webkit-text-stroke: 1.5px var(--red-hot);
  line-height: 1; margin-bottom: 14px; display: block;
}
.step h3 { font-size: 17px; font-weight: 800; margin-bottom: 8px; }
.step p { color: var(--muted); font-size: 14.5px; }

/* ---------- Guide cards ---------- */
.guide-card {
  display: flex; flex-direction: column; gap: 10px;
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 26px; color: var(--text); text-decoration: none !important;
  transition: transform .2s ease, border-color .2s ease, background .2s ease;
}
.guide-card:hover { transform: translateY(-4px); border-color: rgba(232, 53, 46, 0.5); background: var(--card-hover); }
.guide-card .tag { font-size: 12px; font-weight: 700; letter-spacing: 0.07em; text-transform: uppercase; color: var(--red-hot); }
.guide-card h3 { font-size: 18.5px; font-weight: 800; letter-spacing: -0.01em; line-height: 1.3; }
.guide-card p { color: var(--muted); font-size: 14.5px; flex: 1; }
.guide-card .more { color: var(--red-hot); font-weight: 700; font-size: 14.5px; }

/* ---------- FAQ ---------- */
.faq-list { max-width: 780px; margin: 0 auto; }
.faq-item { border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--card); margin-bottom: 12px; overflow: hidden; }
.faq-item summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 19px 22px; font-weight: 700; font-size: 16.5px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+"; font-size: 24px; font-weight: 400; color: var(--red-hot); flex: none;
  transition: transform .2s ease; line-height: 1;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item .faq-body { padding: 0 22px 20px; color: var(--muted); font-size: 15.5px; }
.faq-item .faq-body a { font-weight: 700; }

/* ---------- CTA banner ---------- */
.cta-banner {
  background: linear-gradient(135deg, #1c0d0c, #2a0f0d 55%, #131316);
  border: 1px solid rgba(232, 53, 46, 0.35);
  border-radius: 24px; padding: 56px 40px; text-align: center; position: relative; overflow: hidden;
}
.cta-banner::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(600px 200px at 50% -40px, rgba(232, 53, 46, 0.28), transparent);
  pointer-events: none;
}
.cta-banner h2 { font-size: clamp(26px, 3.4vw, 38px); font-weight: 900; letter-spacing: -0.02em; }
.cta-banner p { color: var(--muted); margin: 14px auto 28px; max-width: 56ch; }
.cta-banner .hero-ctas { justify-content: center; }

/* ---------- Footer ---------- */
.site-footer { background: #060607; border-top: 1px solid var(--border); padding: 56px 0 34px; font-size: 14.5px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 36px; margin-bottom: 40px; }
@media (max-width: 820px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer h4 { font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--dim); margin-bottom: 16px; }
.site-footer ul { list-style: none; }
.site-footer li { margin-bottom: 10px; }
.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--text); }
.footer-about p { color: var(--muted); margin-top: 14px; max-width: 34ch; }
.footer-legal { border-top: 1px solid var(--border); padding-top: 26px; color: var(--dim); font-size: 13px; }
.footer-legal p { margin-bottom: 8px; }

/* ---------- Mobile sticky download bar ---------- */
.mobile-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
  display: none; align-items: center; justify-content: space-between; gap: 14px;
  background: rgba(10, 10, 11, 0.92); backdrop-filter: blur(12px);
  border-top: 1px solid var(--border); padding: 12px 18px calc(12px + env(safe-area-inset-bottom));
}
.mobile-cta .m-title { font-size: 14px; font-weight: 800; }
.mobile-cta .m-sub { font-size: 12px; color: var(--muted); }
.mobile-cta .btn { padding: 11px 20px; font-size: 14px; flex: none; }
@media (max-width: 640px) { .mobile-cta { display: flex; } body { padding-bottom: 74px; } }

/* ---------- Article / guide pages ---------- */
.article-hero { padding: 56px 0 20px; }
.breadcrumb { font-size: 13.5px; color: var(--dim); margin-bottom: 20px; }
.breadcrumb a { color: var(--dim); }
.breadcrumb a:hover { color: var(--text); }
.article-hero h1 { font-size: clamp(30px, 4.4vw, 46px); font-weight: 900; letter-spacing: -0.025em; line-height: 1.12; max-width: 22ch; }
.article-meta { color: var(--dim); font-size: 14px; margin-top: 16px; }
.article { max-width: 780px; margin: 0 auto; padding: 26px 0 60px; }
.article h2 { font-size: 27px; font-weight: 900; letter-spacing: -0.02em; margin: 44px 0 16px; line-height: 1.2; }
.article h3 { font-size: 20px; font-weight: 800; margin: 30px 0 12px; }
.article p { color: #d0d0d6; margin-bottom: 18px; }
.article ul, .article ol { margin: 0 0 20px 24px; color: #d0d0d6; }
.article li { margin-bottom: 10px; }
.article li::marker { color: var(--red-hot); font-weight: 800; }
.article strong { color: var(--text); }
.article table { width: 100%; border-collapse: collapse; margin: 22px 0 26px; font-size: 15px; }
.article th { text-align: left; background: var(--card); color: var(--text); font-weight: 800; }
.article th, .article td { border: 1px solid var(--border); padding: 12px 14px; vertical-align: top; }
.article td { color: var(--muted); }
.article .tick { color: var(--green); font-weight: 800; }
.article .cross { color: var(--red-hot); font-weight: 800; }
.callout {
  border-left: 4px solid var(--red); background: var(--red-soft);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0; padding: 18px 20px; margin: 26px 0;
}
.callout.green { border-left-color: var(--green); background: var(--green-soft); }
.callout p { margin: 0; color: var(--text); font-size: 15.5px; }
.callout p + p { margin-top: 10px; }

/* In-app steps box */
.app-steps {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 26px 28px; margin: 28px 0;
}
.app-steps h3 { display: flex; align-items: center; gap: 10px; margin: 0 0 16px; }
.app-steps h3 img { width: 26px; height: 26px; border-radius: 6px; }
.app-steps ol { margin-bottom: 0; }

/* CTA box inside articles */
.cta-box {
  background: linear-gradient(135deg, #21100e, #170d0c);
  border: 1px solid rgba(232, 53, 46, 0.4); border-radius: var(--radius);
  padding: 30px; margin: 40px 0; text-align: center;
}
.cta-box h3 { font-size: 22px; font-weight: 900; margin-bottom: 8px; }
.cta-box p { color: var(--muted); margin-bottom: 20px; font-size: 15.5px; }

/* Related guides */
.related { border-top: 1px solid var(--border); padding: 40px 0 70px; }
.related h2 { font-size: 24px; font-weight: 900; margin-bottom: 24px; }
.related .grid-3 { gap: 16px; }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- Focus ---------- */
:focus-visible { outline: 3px solid var(--red-hot); outline-offset: 2px; border-radius: 4px; }
