/* ════════════════════════════════════════════════════════════════
   LiftZone Workouts — shared light "warm glass" theme for static
   sub-pages (blog, articles, privacy, feedback). Mirrors the React
   home page design system: warm cream canvas · brand blue · frosted
   liquid glass · editorial type.
   ════════════════════════════════════════════════════════════════ */

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

:root {
  --canvas: #faf7f2;
  --surface: #ffffff;
  --ink: #16181d;
  --ink-soft: #3a3f47;
  --muted: #6b7177;
  --faint: #9aa0a6;
  --line: rgba(22, 24, 32, 0.08);
  --accent: #2e86f0;
  --accent-bright: #64abfa;
  --font-display: "Bricolage Grotesque", "Figtree", system-ui, sans-serif;
  --font-sans: "Figtree", system-ui, -apple-system, sans-serif;
  --font-serif: "Instrument Serif", "Times New Roman", serif;
}

html { font-size: 16px; line-height: 1.5; -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  background-color: var(--canvas);
  color: var(--ink);
  font-family: var(--font-sans);
  font-weight: 400;
  letter-spacing: -0.011em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* warm ambient wash + faint grain — same recipe as the home page */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(60rem 40rem at 80% -10%, rgba(255, 227, 209, 0.5), transparent 60%),
    radial-gradient(50rem 40rem at -10% 8%, rgba(220, 235, 255, 0.55), transparent 55%),
    radial-gradient(40rem 35rem at 50% 116%, rgba(218, 243, 234, 0.45), transparent 60%),
    var(--canvas);
}
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: 0.022;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; letter-spacing: -0.03em; font-optical-sizing: auto; }

.serif { font-family: var(--font-serif); font-weight: 400; font-style: italic; letter-spacing: 0; }
.text-grad {
  background: linear-gradient(115deg, #2e86f0 0%, #4fb6e8 48%, #59cdbf 100%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}

a { color: inherit; text-decoration: none; }
::selection { background-color: rgba(46, 134, 240, 0.18); color: var(--ink); }
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(22, 24, 29, 0.14); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: rgba(22, 24, 29, 0.24); }

.container { max-width: 80rem; margin: 0 auto; padding: 0 1.25rem; }
.container.narrow { max-width: 48rem; }
@media (min-width: 768px) { .container { padding: 0 2.5rem; } }

/* ── Nav ────────────────────────────────────────────────────────── */
/* Scope to the top-level header nav only, so a nested <nav> (e.g. breadcrumbs)
   does NOT inherit fixed positioning and overlap the header. */
body > nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50; padding: 1rem 0;
  background: rgba(255, 255, 255, 0.6);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--line);
}
body > nav .inner { display: flex; align-items: center; justify-content: space-between; max-width: 80rem; margin: 0 auto; padding: 0 1.25rem; }
@media (min-width: 768px) { body > nav .inner { padding: 0 2.5rem; } }
.nav-logo { display: flex; align-items: center; gap: 0.625rem; font-family: var(--font-display); font-size: 1.05rem; font-weight: 600; letter-spacing: -0.03em; color: var(--ink); }
.nav-logo img { width: 2.25rem; height: 2.25rem; border-radius: 0.7rem; box-shadow: 0 4px 14px rgba(46, 134, 240, 0.25); }
.nav-back { font-size: 0.875rem; font-weight: 500; color: var(--muted); transition: color 0.2s; display: flex; align-items: center; gap: 0.375rem; }
.nav-back:hover { color: var(--ink); }

/* ── Hero ───────────────────────────────────────────────────────── */
.hero { padding: 8rem 0 2rem; }
@media (min-width: 768px) { .hero { padding: 9.5rem 0 3rem; } }
.hero-label { font-size: 0.8rem; font-weight: 700; letter-spacing: 0.12em; color: var(--accent); text-transform: uppercase; }
.hero-title { margin-top: 1rem; font-size: clamp(2rem, 5vw, 3.1rem); font-weight: 600; letter-spacing: -0.035em; line-height: 1.05; color: var(--ink); }
.hero-title span { font-family: var(--font-serif); font-style: italic; font-weight: 400; letter-spacing: 0;
  background: linear-gradient(115deg, #2e86f0 0%, #4fb6e8 48%, #59cdbf 100%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.hero-sub { margin-top: 1.1rem; max-width: 30rem; font-size: 1.05rem; line-height: 1.6; color: var(--muted); }
.hero-date { margin-top: 0.85rem; font-size: 0.875rem; color: var(--faint); }

/* ── Blog index: post cards ─────────────────────────────────────── */
.posts { display: flex; flex-direction: column; gap: 1.5rem; margin-top: 3rem; }
.post {
  display: flex; flex-direction: column; border-radius: 1.5rem; overflow: hidden;
  background: var(--surface); border: 1px solid var(--line);
  box-shadow: 0 1px 2px rgba(20, 30, 60, 0.04), 0 14px 44px rgba(20, 30, 60, 0.06);
  transition: transform 0.5s cubic-bezier(0.16,1,0.3,1), box-shadow 0.5s cubic-bezier(0.16,1,0.3,1);
}
@media (min-width: 640px) { .post { flex-direction: row; } }
.post:hover { transform: translateY(-4px); box-shadow: 0 1px 2px rgba(20,30,60,0.04), 0 28px 60px rgba(30,40,70,0.12); }
.post-img { width: 100%; height: 12rem; object-fit: cover; display: block; }
@media (min-width: 640px) { .post-img { width: 20rem; height: auto; min-height: 14rem; flex-shrink: 0; } }
.post-body { padding: 1.6rem 1.85rem; display: flex; flex-direction: column; justify-content: center; flex: 1; }
.post-label { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); margin-bottom: 0.55rem; }
.post h2 { font-size: 1.2rem; font-weight: 600; line-height: 1.25; margin-bottom: 0.6rem; letter-spacing: -0.025em; }
.post h2 a { color: var(--ink); transition: color 0.2s; }
.post h2 a:hover { color: var(--accent); }
.post p { font-size: 0.9rem; line-height: 1.6; color: var(--muted); }
.post-link { margin-top: 1.1rem; font-size: 0.875rem; font-weight: 600; color: var(--accent); display: inline-flex; align-items: center; gap: 0.375rem; }
.post:hover .post-link { gap: 0.55rem; }

/* ── Article body ───────────────────────────────────────────────── */
.article { margin-top: 2.5rem; padding-bottom: 3rem; }
.article h2 { font-size: 1.4rem; font-weight: 600; color: var(--ink); margin-top: 2.75rem; margin-bottom: 0.85rem; letter-spacing: -0.025em; }
.article p { font-size: 1.0rem; line-height: 1.8; color: var(--ink-soft); margin-bottom: 1.1rem; }
.article strong { color: var(--ink); font-weight: 600; }
.article a { color: var(--accent); }
.article a:hover { text-decoration: underline; }
.article ul { margin-left: 1.25rem; list-style: disc; margin-bottom: 1.1rem; }
.article li { font-size: 1.0rem; line-height: 1.8; color: var(--ink-soft); margin-bottom: 0.4rem; }
.article li::marker { color: var(--accent-bright); }

/* article hero image */
.article-img { width: 100%; border-radius: 1.5rem; margin-top: 1.5rem; display: block;
  box-shadow: 0 1px 2px rgba(20,30,60,0.04), 0 20px 50px rgba(20,30,60,0.1); }

/* ── CTA box ────────────────────────────────────────────────────── */
.cta-box {
  margin-top: 3rem; border-radius: 1.75rem; padding: 2.5rem; text-align: center; position: relative; overflow: hidden;
  background: linear-gradient(160deg, #1a2230 0%, #0f131b 55%, #0c1c39 100%);
}
.cta-box::before { content: ""; position: absolute; left: 50%; top: -20%; width: 28rem; max-width: 90%; height: 16rem; transform: translateX(-50%); border-radius: 9999px; background: rgba(46,134,240,0.28); filter: blur(80px); pointer-events: none; }
.cta-box p { position: relative; color: rgba(255,255,255,0.62); font-size: 1.0rem; margin-bottom: 1.4rem; }
.cta-btn {
  position: relative; display: inline-flex; align-items: center; gap: 0.55rem; padding: 0.85rem 2.1rem; border-radius: 9999px;
  color: #fff; font-weight: 600; font-size: 0.95rem;
  background: linear-gradient(135deg, #4a9bff 0%, #2e86f0 52%, #5cb6ff 100%);
  border: 1px solid rgba(255,255,255,0.45);
  box-shadow: inset 0 1px 1px rgba(255,255,255,0.6), inset 0 -3px 8px rgba(15,55,130,0.32), 0 8px 22px rgba(46,134,240,0.34);
  transition: transform 0.4s cubic-bezier(0.16,1,0.3,1), box-shadow 0.4s cubic-bezier(0.16,1,0.3,1);
}
.cta-btn:hover { transform: translateY(-2px); box-shadow: inset 0 1px 1px rgba(255,255,255,0.7), inset 0 -3px 8px rgba(15,55,130,0.32), 0 14px 34px rgba(46,134,240,0.44); }
/* keep the dark-CTA button text white even inside .article, where `.article a` would otherwise tint it blue (blue-on-blue) */
.article a.cta-btn { color: #fff; text-decoration: none; }

/* ── Related links ──────────────────────────────────────────────── */
.related { margin-top: 3rem; }
.related h3 { font-size: 0.8rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--faint); margin-bottom: 0.75rem; }
.related a { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.1rem 0; border-top: 1px solid var(--line); color: var(--ink); font-size: 1.0rem; font-weight: 500; transition: color 0.2s; }
.related a::after { content: "→"; color: var(--accent); opacity: 0; transition: opacity 0.2s, transform 0.2s; }
.related a:hover { color: var(--accent); }
.related a:hover::after { opacity: 1; }

/* ── Privacy / feature cards ────────────────────────────────────── */
.cards { display: grid; gap: 1rem; margin-top: 3.5rem; }
@media (min-width: 640px) { .cards { grid-template-columns: repeat(2, 1fr); } }
.card {
  display: flex; flex-direction: column; border-radius: 1.5rem; padding: 2rem;
  background: var(--surface); border: 1px solid var(--line);
  box-shadow: 0 1px 2px rgba(20,30,60,0.04), 0 14px 44px rgba(20,30,60,0.06);
  transition: transform 0.5s cubic-bezier(0.16,1,0.3,1), box-shadow 0.5s cubic-bezier(0.16,1,0.3,1);
}
.card:hover { transform: translateY(-4px); box-shadow: 0 1px 2px rgba(20,30,60,0.04), 0 28px 60px rgba(30,40,70,0.12); }
.card-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 2.75rem; height: 2.75rem; border-radius: 0.85rem;
  background: rgba(46,134,240,0.1); color: var(--accent); margin-bottom: 1.25rem;
}
.card h3 { font-size: 1.05rem; font-weight: 600; color: var(--ink); letter-spacing: -0.02em; }
.card p { margin-top: 0.55rem; font-size: 0.9rem; line-height: 1.65; color: var(--muted); }

/* ── Policy block ───────────────────────────────────────────────── */
.policy { margin-top: 3.5rem; border-radius: 1.75rem; border: 1px solid var(--line); background: var(--surface); padding: 2rem;
  box-shadow: 0 1px 2px rgba(20,30,60,0.04), 0 14px 44px rgba(20,30,60,0.05); }
@media (min-width: 768px) { .policy { padding: 3rem; } }
.policy h2 { font-size: 1.6rem; font-weight: 600; letter-spacing: -0.03em; color: var(--ink); }
.policy-updated { margin-top: 0.5rem; font-size: 0.875rem; color: var(--faint); }
.policy-body { margin-top: 2rem; display: flex; flex-direction: column; gap: 2rem; }
.policy-body h3 { font-size: 1.05rem; font-weight: 600; color: var(--ink); margin-bottom: 0.75rem; letter-spacing: -0.02em; }
.policy-body p, .policy-body li { font-size: 0.92rem; line-height: 1.7; color: var(--ink-soft); }
.policy-body p + p { margin-top: 0.75rem; }
.policy-body ul { margin-left: 1.25rem; list-style: disc; display: flex; flex-direction: column; gap: 0.5rem; }
.policy-body li::marker { color: var(--accent-bright); }
.policy-body strong { color: var(--ink); font-weight: 600; }
.policy-body a { color: var(--accent); }
.policy-body a:hover { text-decoration: underline; }
.policy-body code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.85em; background: rgba(22,24,32,0.05); padding: 0.1em 0.4em; border-radius: 0.35rem; color: var(--ink-soft); }

/* ── Feedback page ──────────────────────────────────────────────── */
.content { margin-top: 3rem; }
.content .card { text-align: center; padding: 2.75rem; }
.content .card h2 { font-size: 1.4rem; font-weight: 600; margin-bottom: 1rem; color: var(--ink); letter-spacing: -0.025em; }
.content .card p { font-size: 0.98rem; line-height: 1.75; color: var(--muted); margin-bottom: 0.75rem; margin-top: 0; }
.email-btn {
  display: inline-flex; align-items: center; gap: 0.6rem; margin-top: 1.6rem; padding: 0.9rem 2.4rem; border-radius: 9999px;
  color: #fff; font-weight: 600; font-size: 1rem;
  background: linear-gradient(135deg, #4a9bff 0%, #2e86f0 52%, #5cb6ff 100%);
  border: 1px solid rgba(255,255,255,0.45);
  box-shadow: inset 0 1px 1px rgba(255,255,255,0.6), inset 0 -3px 8px rgba(15,55,130,0.32), 0 8px 22px rgba(46,134,240,0.34);
  transition: transform 0.4s cubic-bezier(0.16,1,0.3,1), box-shadow 0.4s cubic-bezier(0.16,1,0.3,1);
}
.email-btn:hover { transform: translateY(-2px); box-shadow: inset 0 1px 1px rgba(255,255,255,0.7), inset 0 -3px 8px rgba(15,55,130,0.32), 0 14px 34px rgba(46,134,240,0.44); }
.tips { margin-top: 2.5rem; border-radius: 1.5rem; border: 1px solid var(--line); background: rgba(255,255,255,0.5); padding: 2rem;
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); }
.tips h3 { font-size: 0.8rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--faint); margin-bottom: 1rem; }
.tips ul { margin-left: 1.25rem; list-style: disc; }
.tips li { font-size: 0.92rem; line-height: 1.75; color: var(--ink-soft); margin-bottom: 0.5rem; }
.tips li::marker { color: var(--accent-bright); }
.tips strong { color: var(--ink); font-weight: 600; }

/* ── Footer ─────────────────────────────────────────────────────── */
footer { margin-top: 5rem; padding: 2.5rem 0 3rem; border-top: 1px solid var(--line); text-align: center; }
footer p { font-size: 0.78rem; color: var(--faint); }
footer a { color: var(--muted); transition: color 0.2s; }
footer a:hover { color: var(--ink); }

/* soft pastel orb (was dark-theme .glow) */
.glow { pointer-events: none; position: absolute; border-radius: 9999px; background: rgba(145, 199, 255, 0.18); filter: blur(110px); z-index: -1; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.001ms !important; }
}
