@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@300..700&family=Space+Mono:wght@400;700&display=swap');

/* ============================================================
   Ora — content pages (workout-tracker, privacy, support, etc.)
   Matches the homepage (aura.css) design language: flat premium
   dark, hairline rules, monospace metadata, one blue accent.
   Class names are kept stable so page HTML needs no changes.
   ============================================================ */

:root {
  color-scheme: dark;
  --bg: #080d16;
  --bg-deep: #05080f;
  --bg-raise: #0e141f;
  --panel: #10161f;
  --panel-2: #131b26;
  --ink: #f3f2ef;
  --ink-dim: rgba(243, 242, 239, 0.70);
  --ink-faint: rgba(243, 242, 239, 0.46);
  --blue: #7bb7ff;
  --blue-bright: #9ccaff;
  --amber: #f0b15a;
  --green: #5fe3c0;
  --line: rgba(231, 233, 240, 0.10);
  --line-strong: rgba(231, 233, 240, 0.20);
  --radius: 14px;
  --radius-sm: 10px;
  --maxw: 1140px;
  --pad: clamp(20px, 5vw, 64px);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --font-sans: "Space Grotesk", system-ui, -apple-system, sans-serif;
  --font-mono: "Space Mono", ui-monospace, "SF Mono", Menlo, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 1.02rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  background-image: radial-gradient(130% 90% at 50% -15%, #0d1828 0%, var(--bg) 48%, var(--bg-deep) 100%);
  background-attachment: fixed;
}

img { display: block; max-width: 100%; }
a { color: inherit; }
::selection { background: rgba(123, 183, 255, 0.30); }

h1, h2, h3 { margin: 0; font-weight: 600; letter-spacing: -0.02em; text-wrap: balance; }
h1 { font-size: clamp(2.1rem, 5vw, 3.3rem); line-height: 1.04; }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); line-height: 1.1; }
h3 { font-size: 1.1rem; letter-spacing: -0.01em; }
/* accent: upright + blue, matching the homepage (no italics) */
h1 em, h2 em { font-style: normal; color: var(--blue); }
p { margin: 0; }

/* ---------- shared metadata label ---------- */
.label, .badge {
  font-family: var(--font-mono); font-size: 0.7rem; font-weight: 400;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-faint);
}

.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 100;
  background: var(--blue); color: #06101f; padding: 10px 16px;
  border-radius: 0 0 8px 0; font-weight: 700; text-decoration: none;
}
.skip-link:focus { left: 0; }

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

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: sticky; top: 0; z-index: 70;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 14px var(--pad);
  max-width: none;
  background: rgba(8, 13, 22, 0.72);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.brand {
  display: inline-flex; align-items: center; gap: 9px;
  font-weight: 600; font-size: 1.05rem; letter-spacing: -0.01em; text-decoration: none; color: var(--ink);
}
.brand img { border-radius: 7px; }
.navlinks { display: flex; align-items: center; gap: 22px; }
.navlinks a {
  font-size: 0.9rem; color: var(--ink-dim); text-decoration: none; letter-spacing: 0.01em;
  transition: color 0.2s;
}
.navlinks a:hover { color: var(--ink); }
.navlinks a.primary {
  background: var(--blue); color: #06101f; font-weight: 600;
  padding: 9px 18px; border-radius: 999px;
}
.navlinks a.primary:hover { background: var(--blue-bright); color: #06101f; }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 11px 22px;
  border: 1px solid var(--line-strong); border-radius: 999px;
  font: 500 0.92rem/1 var(--font-sans); letter-spacing: 0.01em;
  text-decoration: none; color: var(--ink); background: transparent; cursor: pointer;
  transition: border-color 0.25s var(--ease), background 0.25s var(--ease), color 0.25s var(--ease), box-shadow 0.25s var(--ease), transform 0.2s var(--ease);
}
.btn:hover { border-color: rgba(231, 233, 240, 0.4); background: rgba(231, 233, 240, 0.03); transform: translateY(-1px); }
.btn.primary {
  background: var(--blue); border-color: var(--blue); color: #06101f; font-weight: 600;
}
.btn.primary:hover { background: var(--blue-bright); border-color: var(--blue-bright); box-shadow: 0 8px 30px -10px rgba(123, 183, 255, 0.6); }

/* ============================================================
   CONTENT PAGE LAYOUT
   ============================================================ */
.content-page { padding-top: clamp(40px, 6vw, 72px); padding-bottom: clamp(64px, 10vw, 120px); }
.breadcrumb {
  font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--ink-faint); margin-bottom: 28px;
}
.breadcrumb a { color: var(--ink-dim); text-decoration: none; }
.breadcrumb a:hover { color: var(--blue); }

.content-hero {
  display: grid; grid-template-columns: 1.55fr 0.85fr; gap: clamp(28px, 5vw, 56px);
  align-items: start;
}
.content-card { min-width: 0; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--ink-dim); margin-bottom: 18px;
}
.eyebrow .dot {
  width: 7px; height: 7px; border-radius: 50%; background: var(--green);
  box-shadow: 0 0 0 0 rgba(95, 227, 192, 0.5); animation: pulse 2.6s var(--ease) infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(95, 227, 192, 0.45); }
  70% { box-shadow: 0 0 0 8px rgba(95, 227, 192, 0); }
  100% { box-shadow: 0 0 0 0 rgba(95, 227, 192, 0); }
}
.content-card h1 { margin-bottom: 18px; }
.content-card h2 { margin: 40px 0 14px; padding-top: 4px; }
.content-card .lede {
  font-size: clamp(1.1rem, 1.8vw, 1.3rem); color: var(--ink-dim); line-height: 1.5; max-width: 60ch;
  margin-bottom: 8px;
}
.content-card p { color: var(--ink-dim); margin: 0 0 14px; max-width: 68ch; }
.content-card ul, .content-card ol { margin: 0 0 16px; padding: 0; list-style: none; display: grid; gap: 10px; max-width: 68ch; }
.content-card li { position: relative; padding-left: 24px; color: var(--ink-dim); line-height: 1.5; }
.content-card li::before {
  content: ""; position: absolute; left: 0; top: 9px; width: 9px; height: 9px;
  border-left: 1.5px solid var(--blue); border-bottom: 1.5px solid var(--blue); transform: rotate(-45deg);
}
.content-card ol { counter-reset: step; }
.content-card ol li::before {
  border: none; counter-increment: step; content: counter(step); transform: none;
  top: 0; left: 0; width: 16px; height: 16px; color: var(--blue);
  font-family: var(--font-mono); font-size: 0.72rem; line-height: 16px;
}
.content-card a { color: var(--blue); }
.content-card strong { color: var(--ink); }
.content-card small { color: var(--ink-faint); font-size: 0.85rem; }

.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.content-card .eyebrow + h1 { margin-top: 0; }
.updated, .meta-line { color: var(--ink-faint); font-size: 0.85rem; font-family: var(--font-mono); }

/* ============================================================
   SIDEBAR PROOF PANEL (was a fake "app window")
   ============================================================ */
.sidebar-proof { position: sticky; top: 84px; display: grid; gap: 16px; }
.app-window {
  background: linear-gradient(180deg, var(--panel-2), var(--panel));
  border: 1px solid var(--line-strong); border-radius: var(--radius); overflow: hidden;
}
.window-top {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 16px 18px; border-bottom: 1px solid var(--line); background: rgba(255,255,255,0.015);
}
.window-top b { font-size: 0.95rem; font-weight: 600; }
.window-top span { display: block; color: var(--ink-faint); font-size: 0.78rem; font-family: var(--font-mono); letter-spacing: 0.04em; }
.window-top img { border-radius: 7px; opacity: 0.9; }
.meal-list { display: grid; }
.meal { display: flex; align-items: center; gap: 12px; padding: 14px 18px; border-top: 1px solid var(--line); }
.meal:first-child { border-top: none; }
.meal > div { flex: 1; min-width: 0; }
.meal b { display: block; font-size: 0.92rem; font-weight: 600; }
.meal span { color: var(--ink-faint); font-size: 0.78rem; }
.meal strong { color: var(--blue); font-size: 0.82rem; font-weight: 600; font-family: var(--font-mono); }
.badge {
  display: inline-flex; align-items: center; justify-content: center; min-width: 44px; height: 28px;
  padding: 0 10px; border-radius: 8px; color: var(--blue);
  background: rgba(123, 183, 255, 0.10); border: 1px solid rgba(123, 183, 255, 0.30);
  font-size: 0.7rem; letter-spacing: 0.06em;
}

/* coach-console one-off */
.coach-panel {
  display: flex; align-items: center; gap: 10px; margin-top: 16px; padding: 14px 16px;
  border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--bg-raise);
  color: var(--ink-dim); font-size: 0.9rem;
}
.coach-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--amber); flex: none; }

/* mobile-check one-off */
.mobile-check-card {
  max-width: 640px; margin: 0 auto; padding: clamp(24px, 4vw, 40px);
  border: 1px solid var(--line-strong); border-radius: var(--radius); background: var(--panel); text-align: center;
}

/* ============================================================
   SECTIONS / FAQ
   ============================================================ */
.section { margin-top: clamp(48px, 7vw, 80px); padding-top: clamp(40px, 6vw, 64px); border-top: 1px solid var(--line); }
.section.faq h2, .faq > h2 { margin-bottom: 24px; }
.faq-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.faq-grid article {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 20px 22px;
}
.faq-grid h3 { margin-bottom: 8px; }
.faq-grid p { color: var(--ink-dim); font-size: 0.95rem; line-height: 1.5; margin: 0; }
.faq-grid a { color: var(--blue); }

/* ============================================================
   FOOTER
   ============================================================ */
footer.wrap {
  margin-top: clamp(56px, 9vw, 100px); padding-top: 32px; padding-bottom: 36px;
  border-top: 1px solid var(--line); text-align: center; display: grid; gap: 18px;
}
footer.wrap p { color: var(--ink-faint); font-size: 0.9rem; max-width: 60ch; margin: 0 auto; }
footer.wrap nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 20px; }
footer.wrap nav a { color: var(--ink-dim); text-decoration: none; font-size: 0.85rem; transition: color 0.2s; }
footer.wrap nav a:hover { color: var(--ink); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 860px) {
  .navlinks { gap: 14px; }
  .navlinks a:not(.primary) { display: none; }
  .content-hero { grid-template-columns: 1fr; }
  .sidebar-proof { position: static; }
  .faq-grid { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .navlinks { gap: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
}
