/* Shared styles for podiumfitapp.com. Colors match the app's dark theme. */
:root {
  color-scheme: dark;
  --bg: #04070C;
  --panel: #0A1017;
  --card: #0C131B;
  --border: #1E2730;
  --text: #C3C3C3;
  --muted: #8E97A3;
  --white: #FFFFFF;
  --accent: #2ED573;
  --grad: linear-gradient(90deg, #C94BFF 0%, #4F6BFF 45%, #1FD3FF 70%, #2ED573 100%);
  --nav-w: 248px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
  font-size: 15px;
  line-height: 1.65;
}
a { color: var(--accent); }
strong { color: var(--white); }

/* ---------- Side nav ---------- */
.sidenav {
  position: fixed;
  inset: 0 auto 0 0;
  width: var(--nav-w);
  background: var(--panel);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  padding: 28px 16px 20px;
  z-index: 20;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  padding: 0 10px 28px;
}
.brand img { width: 44px; height: auto; }
.brand span {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 0.22em;
  color: var(--white);
}
.nav-links { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.nav-links a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 10px;
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
}
.nav-links a svg { width: 18px; height: 18px; flex: none; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.nav-links a:hover { background: var(--card); color: var(--white); }
.nav-links a[aria-current="page"] {
  background: var(--card);
  color: var(--white);
  box-shadow: inset 3px 0 0 var(--accent);
}
.nav-section {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 20px 12px 6px;
}
.nav-footer { margin-top: auto; padding: 16px 12px 0; font-size: 12px; color: var(--muted); }
.nav-footer a { color: var(--muted); }

/* Mobile top bar (hidden on desktop) */
.topbar { display: none; }
.scrim { display: none; }

/* ---------- Content ---------- */
.content { margin-left: var(--nav-w); min-height: 100vh; }
main { max-width: 760px; margin: 0 auto; padding: 56px 32px 72px; }
h1 { font-size: 30px; font-weight: 800; line-height: 1.2; margin: 0 0 8px; color: var(--white); }
.lead { font-size: 17px; color: var(--text); margin: 0 0 28px; }
.updated { color: var(--muted); font-size: 13px; margin: 0 0 32px; }
h2 { font-size: 19px; font-weight: 800; color: var(--white); margin: 40px 0 10px; padding-top: 24px; border-top: 1px solid var(--border); }
h3 { font-size: 15px; font-weight: 700; color: var(--white); margin: 22px 0 6px; }
p, li { margin: 0 0 12px; }
ul, ol { padding-left: 22px; margin: 0 0 12px; }

.callout {
  background: var(--card);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: 12px;
  padding: 16px 18px;
  margin: 0 0 12px;
}
.callout.warn { border-left-color: #FF6B6B; }
.callout p:last-child, .callout ul:last-child, .callout ol:last-child { margin-bottom: 0; }

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 20px;
}
.card h3 { margin-top: 0; }
.card p:last-child { margin-bottom: 0; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: 12px;
  border: 1px solid transparent;
  background: var(--accent);
  color: #03130A;
  font-weight: 800;
  font-size: 15px;
  text-decoration: none;
  cursor: pointer;
  font-family: inherit;
}
.btn:hover { filter: brightness(1.08); }
.btn.secondary { background: transparent; color: var(--white); border-color: var(--border); }
.btn.secondary:hover { background: var(--card); }
.btn.danger { background: #FF6B6B; color: #1A0505; }

/* ---------- Home ---------- */
.hero { text-align: center; padding: 24px 0 8px; }
.hero img { width: min(360px, 80%); height: auto; margin: 0 auto 28px; display: block; }
.hero h1 { font-size: 38px; }
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .lead { max-width: 560px; margin: 0 auto 28px; }
.hero .actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin: 16px 0 0; }
.feature .icon {
  width: 36px; height: 36px; border-radius: 10px; margin-bottom: 12px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(46, 213, 115, 0.12); color: var(--accent);
}
.feature .icon svg { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 0; padding: 0; list-style: none; }
.chips li { margin: 0; padding: 6px 12px; border: 1px solid var(--border); border-radius: 999px; background: var(--card); color: var(--white); font-size: 13px; font-weight: 600; }
.steps { counter-reset: step; list-style: none; padding: 0; }
.steps li { counter-increment: step; position: relative; padding-left: 44px; margin-bottom: 16px; }
.steps li::before {
  content: counter(step);
  position: absolute; left: 0; top: 0;
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--card); border: 1px solid var(--border);
  color: var(--accent); font-weight: 800; font-size: 14px;
  display: flex; align-items: center; justify-content: center;
}

/* ---------- FAQ ---------- */
details { border: 1px solid var(--border); border-radius: 12px; background: var(--card); margin: 0 0 10px; }
summary { cursor: pointer; padding: 14px 18px; font-weight: 700; color: var(--white); list-style: none; display: flex; justify-content: space-between; gap: 12px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: '+'; color: var(--accent); font-weight: 800; }
details[open] summary::after { content: '\2212'; }
details > div { padding: 0 18px 14px; }
details > div p:last-child { margin-bottom: 0; }

/* ---------- Forms ---------- */
form .field { margin: 0 0 16px; }
label { display: block; font-weight: 700; color: var(--white); font-size: 14px; margin: 0 0 6px; }
.hint { font-weight: 400; color: var(--muted); font-size: 13px; }
input[type="text"], input[type="email"], input[type="password"], textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--white);
  font: inherit;
}
input:focus, textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: transparent; }
textarea { min-height: 96px; resize: vertical; }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; color: var(--text); }
.check input { margin-top: 5px; accent-color: var(--accent); }
.form-note { font-size: 13px; color: var(--muted); margin-top: 12px; }

.page-footer { border-top: 1px solid var(--border); margin-top: 56px; padding-top: 20px; font-size: 13px; color: var(--muted); }
.page-footer a { color: var(--muted); }

/* ---------- Mobile ---------- */
@media (max-width: 860px) {
  .topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 10;
    padding: 12px 16px;
    background: rgba(4, 7, 12, 0.92);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--border);
  }
  .topbar .brand { padding: 0; }
  .topbar .brand img { width: 36px; }
  .menu-btn {
    background: none; border: 1px solid var(--border); border-radius: 10px;
    color: var(--white); width: 40px; height: 40px; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
  }
  .menu-btn svg { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; }
  .sidenav { transform: translateX(-100%); transition: transform 0.2s ease; width: min(280px, 82vw); }
  body.nav-open .sidenav { transform: none; }
  body.nav-open .scrim { display: block; position: fixed; inset: 0; background: rgba(0, 0, 0, 0.6); z-index: 15; }
  .content { margin-left: 0; }
  main { padding: 32px 16px 56px; }
  .hero h1 { font-size: 30px; }
  .grid { grid-template-columns: 1fr; }
}

.form-error { color: #FF6B6B; font-size: 14px; margin: 12px 0 0; }
.form-error:empty, .form-note:empty { display: none; }
[hidden] { display: none !important; }
