/* Shared styles for PhyziqAi content pages (privacy, terms, support) */
:root {
  --accent: #00B2E0;
  --accent-bright: #16C4EE;
  --accent-deep: #007CA1;
  --bg: #F5F8FC;
  --bg-2: #EDF3FA;
  --surface: #FFFFFF;
  --surface-2: #EBF2FA;
  --border: rgba(15, 22, 31, 0.08);
  --border-strong: rgba(15, 22, 31, 0.14);
  --text: #0F161F;
  --muted: #556476;
  --muted-2: #8C9BAC;
  --success: #22AE75;
  --radius: 18px;
  --max: 860px;
  --shadow-sm: 0 4px 14px -8px rgba(15, 22, 31, 0.18);
  --shadow: 0 16px 40px -22px rgba(15, 22, 31, 0.28), 0 2px 8px -4px rgba(0, 178, 224, 0.06);
  --font-head: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font-family: var(--font-body); background: var(--bg); color: var(--text);
  line-height: 1.7; -webkit-font-smoothing: antialiased; position: relative; overflow-x: hidden;
}
body::before {
  content: ""; position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(0,178,224,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,178,224,0.05) 1px, transparent 1px);
  background-size: 30px 30px;
}
a { color: var(--accent-deep); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }
h1, h2, h3 { font-family: var(--font-head); font-weight: 800; line-height: 1.15; letter-spacing: -0.02em; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 24px; position: relative; z-index: 1; }

/* Nav */
header { border-bottom: 1px solid var(--border); background: rgba(245,248,252,0.85); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); position: sticky; top: 0; z-index: 50; }
.nav { display: flex; align-items: center; justify-content: space-between; height: 68px; max-width: 1100px; margin: 0 auto; padding: 0 24px; }
.logo { display: flex; align-items: center; gap: 10px; font-family: var(--font-head); font-weight: 800; font-size: 1.25rem; color: var(--text); }
.logo:hover { text-decoration: none; }
.logo img { width: 32px; height: 32px; border-radius: 8px; background: #0a0e1a; box-shadow: 0 4px 14px -4px rgba(0,178,224,0.5), inset 0 0 0 1px rgba(255,255,255,0.06); }
.logo span { color: var(--accent-deep); }
.nav-back { font-size: 0.95rem; font-weight: 600; color: var(--muted); display: inline-flex; align-items: center; gap: 6px; }
.nav-back:hover { color: var(--accent-deep); text-decoration: none; }

/* Page header */
.page-hero { padding: 64px 0 34px; position: relative; }
.page-hero .eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent-deep); margin-bottom: 16px; }
.page-hero .eyebrow::before { content: ""; width: 22px; height: 2px; background: var(--accent); border-radius: 2px; }
.page-hero h1 { font-size: clamp(2.1rem, 5vw, 3rem); font-weight: 900; margin-bottom: 12px; }
.page-hero .updated { color: var(--muted-2); font-size: 0.92rem; }

/* Prose */
.prose { padding-bottom: 80px; }
.prose section { margin-bottom: 34px; }
.prose h2 { font-size: 1.4rem; margin: 8px 0 12px; }
.prose h3 { font-size: 1.08rem; margin: 20px 0 8px; }
.prose p { color: var(--muted); margin-bottom: 14px; }
.prose ul { color: var(--muted); margin: 0 0 14px 0; padding-left: 22px; }
.prose li { margin-bottom: 8px; }
.prose strong { color: var(--text); font-weight: 700; }
.prose .lead { font-size: 1.12rem; color: var(--text); }

.toc { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px 24px; margin-bottom: 40px; box-shadow: var(--shadow-sm); }
.toc h2 { font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--muted-2); margin-bottom: 12px; }
.toc ol { columns: 2; column-gap: 30px; padding-left: 18px; color: var(--muted); font-size: 0.94rem; }
.toc li { margin-bottom: 7px; }
@media (max-width: 560px) { .toc ol { columns: 1; } }

.callout { background: rgba(0,178,224,0.07); border: 1px solid rgba(0,178,224,0.25); border-radius: 14px; padding: 18px 22px; margin: 6px 0 20px; }
.callout p { color: var(--text); margin: 0; font-size: 0.96rem; }
.callout.warn { background: rgba(232,145,42,0.08); border-color: rgba(232,145,42,0.3); }

/* Support cards */
.cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin: 8px 0 34px; }
.hcard { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow-sm); }
.hcard h3 { font-size: 1.05rem; margin-bottom: 8px; }
.hcard p { color: var(--muted); font-size: 0.95rem; margin: 0; }
.hcard a.btn { margin-top: 14px; }
.btn { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 0.95rem; padding: 12px 22px; border-radius: 14px; background: var(--accent); color: #fff; box-shadow: 0 14px 34px -12px rgba(0,178,224,0.55); transition: transform .2s, background .2s; }
.btn:hover { transform: translateY(-2px); background: var(--accent-bright); text-decoration: none; }
.btn-ghost { background: var(--surface); color: var(--text); border: 1px solid var(--border-strong); box-shadow: var(--shadow-sm); }
.btn-ghost:hover { color: var(--accent-deep); background: var(--surface); }
@media (max-width: 620px) { .cards { grid-template-columns: 1fr; } }

/* Footer */
footer { border-top: 1px solid var(--border); background: var(--surface-2); padding: 44px 0; }
.foot { display: flex; flex-wrap: wrap; gap: 18px; align-items: center; justify-content: space-between; }
.foot .links { display: flex; flex-wrap: wrap; gap: 20px; }
.foot .links a { color: var(--muted); font-size: 0.92rem; font-weight: 600; }
.foot .links a:hover { color: var(--accent-deep); }
.foot .copy { color: var(--muted-2); font-size: 0.85rem; }
.foot-note { color: var(--muted-2); font-size: 0.8rem; margin-top: 18px; line-height: 1.6; }
.badge-18 { display: inline-grid; place-items: center; min-width: 28px; height: 28px; border-radius: 7px; border: 1px solid var(--border-strong); font-size: 0.7rem; font-weight: 800; color: var(--muted); background: var(--surface); vertical-align: middle; margin-right: 6px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

/* Blog */
.post-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; padding-bottom: 70px; }
.post-card { display: block; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow-sm); transition: transform .25s, border-color .25s, box-shadow .25s; }
.post-card:hover { transform: translateY(-4px); border-color: rgba(0,178,224,0.35); box-shadow: var(--shadow); text-decoration: none; }
.post-card .cat { font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--accent-deep); }
.post-card h2 { font-size: 1.28rem; margin: 10px 0 8px; color: var(--text); }
.post-card p { color: var(--muted); font-size: .95rem; margin-bottom: 14px; }
.post-card .meta { color: var(--muted-2); font-size: .82rem; }
@media (max-width: 620px) { .post-grid { grid-template-columns: 1fr; } }

.article-meta { color: var(--muted-2); font-size: .92rem; margin-top: 8px; }
.cta-inline { margin: 44px 0 12px; background: linear-gradient(150deg, rgba(0,178,224,0.10), var(--surface) 75%); border: 1px solid rgba(0,178,224,0.28); border-radius: var(--radius); padding: 30px; text-align: center; }
.cta-inline h3 { font-size: 1.3rem; margin-bottom: 8px; }
.cta-inline p { color: var(--muted); margin-bottom: 18px; }
