/* Shared styles for the Faraday Soft app pages (/myhealth/, /klaxon/, /forge/, /recon/).
   Same tokens, fonts, nav and footer as the home page. Each page sets --accent and --accent-glow. */
:root {
    --bg: #05070a;
    --surface: #0d1118;
    --surface-2: #131924;
    --border: #1e2733;
    --text: #eef2f6;
    --muted: #8a97a6;
    --dim: #5a6675;
    --cyan: #22d3ee;
    --green: #34d399;
    --indigo: #7c8cff;
    --glow: rgba(34, 211, 238, 0.5);
    --accent: var(--cyan);
    --accent-glow: rgba(34, 211, 238, 0.4);
    --accent-ink: #04121a;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg); color: var(--text); line-height: 1.6;
    -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
a { color: inherit; }
img, video { max-width: 100%; }
.mono { font-family: ui-monospace, 'SF Mono', SFMono-Regular, Menlo, Consolas, monospace; }
.wrap { max-width: 1000px; margin: 0 auto; padding: 0 1.5rem; }

/* Nav (matches home) */
nav {
    position: fixed; top: 0; width: 100%; z-index: 100;
    display: flex; justify-content: space-between; align-items: center;
    padding: 1rem 1.5rem; background: rgba(5, 7, 10, 0.7);
    backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
}
.brand { display: flex; align-items: center; gap: 0.6rem; font-weight: 800; letter-spacing: -0.02em; text-decoration: none; font-size: 1.05rem; }
.brand-mark { width: 26px; height: 26px; border-radius: 7px; position: relative; flex: none; background: radial-gradient(circle at 50% 40%, #1b2740, #0a0f18); border: 1px solid #26344d; overflow: hidden; }
.brand-mark::before { content: ""; position: absolute; inset: 0; border-radius: 6px; box-shadow: inset 0 0 0 1px rgba(124, 140, 255, 0.25); }
.brand-mark i { position: absolute; left: 50%; top: 50%; width: 3px; height: 42%; transform: translate(-50%, -50%); border-radius: 2px; background: linear-gradient(var(--cyan), var(--green)); box-shadow: 0 0 6px var(--glow); }
.nav-links { display: flex; align-items: center; gap: 1.6rem; font-size: 0.9rem; }
.nav-links a { color: var(--muted); text-decoration: none; transition: color 0.2s; }
.nav-links a:hover { color: var(--text); }
.nav-cta { color: var(--text) !important; border: 1px solid var(--border); padding: 0.4rem 0.9rem; border-radius: 8px; }
.nav-cta:hover { border-color: var(--accent); }

/* Hero */
.hero { padding: 9rem 1.5rem 4rem; text-align: center; position: relative; overflow: hidden; }
.hero::before { content: ""; position: absolute; top: -220px; left: 50%; transform: translateX(-50%); width: 760px; height: 760px; max-width: 160vw; background: radial-gradient(circle, var(--accent-glow), transparent 62%); opacity: 0.45; pointer-events: none; }
.hero-inner { position: relative; max-width: 780px; margin: 0 auto; }
.hero-icon { width: 120px; height: 120px; border-radius: 27px; box-shadow: 0 20px 60px -20px var(--accent-glow); margin-bottom: 1.6rem; }
.kicker { font-family: ui-monospace, 'SF Mono', SFMono-Regular, Menlo, Consolas, monospace; font-size: 0.72rem; letter-spacing: 0.24em; text-transform: uppercase; color: var(--accent); margin-bottom: 1.2rem; font-weight: 700; }
h1 { font-size: clamp(2.3rem, 6.5vw, 4.2rem); line-height: 1.04; font-weight: 900; letter-spacing: -0.035em; margin-bottom: 1.3rem; }
.sub { font-size: clamp(1.05rem, 2.2vw, 1.22rem); color: var(--muted); max-width: 620px; margin: 0 auto 2.2rem; }
.sub strong { color: var(--text); font-weight: 600; }
.btn-row { display: flex; gap: 0.9rem; justify-content: center; flex-wrap: wrap; }
.btn { display: inline-flex; align-items: center; gap: 0.55rem; padding: 0.85rem 1.5rem; border-radius: 11px; font-weight: 600; font-size: 0.98rem; text-decoration: none; border: 1px solid transparent; transition: all 0.2s; }
.btn-primary { background: var(--accent); color: var(--accent-ink); box-shadow: 0 6px 30px -8px var(--accent-glow); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 40px -8px var(--accent-glow); }
.btn-ghost { border-color: var(--border); color: var(--text); background: rgba(255, 255, 255, 0.02); }
.btn-ghost:hover { border-color: var(--accent); }
.note { margin-top: 1.2rem; font-size: 0.82rem; color: var(--dim); }
.note b { color: var(--muted); font-weight: 600; }

/* Sections */
section { padding: 4.5rem 0; border-top: 1px solid var(--border); }
.eyebrow { font-family: ui-monospace, 'SF Mono', SFMono-Regular, Menlo, Consolas, monospace; font-size: 0.72rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--accent); margin-bottom: 0.9rem; }
h2 { font-size: clamp(1.7rem, 4vw, 2.5rem); font-weight: 800; letter-spacing: -0.03em; line-height: 1.1; margin-bottom: 1rem; }
h3 { letter-spacing: -0.01em; }
.lead { color: var(--muted); font-size: 1.05rem; max-width: 640px; }
.lead a, .faq a, .privacy a { color: var(--text); text-decoration-color: var(--accent); text-underline-offset: 3px; }

/* Screenshot rail: scrolls inside itself, never the page */
.shots { display: flex; gap: 1rem; overflow-x: auto; scroll-snap-type: x mandatory; padding: 0.4rem 0 1rem; margin-top: 2rem; -webkit-overflow-scrolling: touch; scrollbar-width: thin; scrollbar-color: var(--border) transparent; }
.shots figure { flex: 0 0 auto; width: 240px; scroll-snap-align: start; }
.shots img { display: block; width: 100%; height: auto; border-radius: 16px; border: 1px solid var(--border); background: var(--surface); }
.shots.wide figure { width: 330px; }
.rail-hint { font-family: ui-monospace, 'SF Mono', SFMono-Regular, Menlo, Consolas, monospace; font-size: 0.7rem; color: var(--dim); letter-spacing: 0.1em; text-transform: uppercase; }

/* Feature groups */
.fgrid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.2rem; margin-top: 2.2rem; }
.fcard { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 1.5rem; }
.fcard h3 { font-size: 1.05rem; margin-bottom: 0.7rem; display: flex; align-items: center; gap: 0.6rem; }
.fcard h3::before { content: ""; width: 8px; height: 8px; border-radius: 2px; background: var(--accent); box-shadow: 0 0 10px var(--accent-glow); flex: none; }
.fcard ul { list-style: none; }
.fcard li { color: var(--muted); font-size: 0.93rem; padding: 0.28rem 0 0.28rem 1.1rem; position: relative; }
.fcard li::before { content: "·"; position: absolute; left: 0.2rem; color: var(--accent); font-weight: 900; }
.fcard li strong { color: var(--text); font-weight: 600; }

/* Video */
.demo { display: grid; grid-template-columns: 1fr 300px; gap: 3rem; align-items: center; }
.demo video { display: block; width: 100%; aspect-ratio: 480 / 1044; border-radius: 26px; border: 1px solid var(--border); background: #000; box-shadow: 0 30px 80px -30px var(--accent-glow); }
.demo figcaption { margin-top: 0.7rem; font-size: 0.75rem; color: var(--dim); text-align: center; font-family: ui-monospace, 'SF Mono', SFMono-Regular, Menlo, Consolas, monospace; }
.demo.landscape { display: block; margin-top: 2rem; }
.demo.landscape video { aspect-ratio: 16 / 9; border-radius: 18px; }

/* Privacy */
.privacy-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; margin-top: 2rem; }
.pbox { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 1.5rem; }
.pbox h3 { font-family: ui-monospace, 'SF Mono', SFMono-Regular, Menlo, Consolas, monospace; font-size: 0.75rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); margin-bottom: 0.8rem; font-weight: 700; }
.pbox.stays { border-color: color-mix(in srgb, var(--green) 40%, var(--border)); }
.pbox.stays h3 { color: var(--green); }
.pbox ul { list-style: none; }
.pbox li { color: var(--muted); font-size: 0.93rem; padding: 0.3rem 0 0.3rem 1.3rem; position: relative; }
.pbox.stays li::before { content: "✓"; position: absolute; left: 0; color: var(--green); }
.pbox.net li::before { content: "↗"; position: absolute; left: 0; color: var(--dim); }
.pbox li strong { color: var(--text); font-weight: 600; }
.policy-link { margin-top: 1.4rem; font-size: 0.92rem; color: var(--muted); }

/* FAQ */
.faq details { border: 1px solid var(--border); border-radius: 12px; padding: 1rem 1.2rem; margin-top: 0.8rem; background: var(--surface); }
.faq summary { cursor: pointer; font-weight: 600; }
.faq details[open] summary { color: var(--text); }
.faq p { color: var(--muted); margin-top: 0.7rem; font-size: 0.95rem; }

/* Closing CTA */
.cta { text-align: center; }
.cta .lead { margin: 0 auto 2rem; }

/* Footer (matches home) */
footer { border-top: 1px solid var(--border); padding: 3rem 1.5rem; }
.foot-inner { max-width: 1000px; margin: 0 auto; display: flex; justify-content: space-between; align-items: center; gap: 1.5rem; flex-wrap: wrap; color: var(--dim); font-size: 0.82rem; }
.foot-inner a { color: var(--muted); text-decoration: none; transition: color 0.2s; }
.foot-inner a:hover { color: var(--text); }
.foot-links { display: flex; gap: 1.4rem; flex-wrap: wrap; }
.disclaimer { max-width: 1000px; margin: 1rem auto 0; font-size: 0.78rem; color: var(--dim); }

@media (max-width: 820px) {
    .fgrid, .privacy-grid { grid-template-columns: 1fr; }
    .demo { grid-template-columns: 1fr; gap: 2rem; }
    .demo figure { max-width: 280px; margin: 0 auto; width: 100%; }
    .nav-links a:not(.nav-cta) { display: none; }
    .shots figure { width: 200px; }
    .shots.wide figure { width: 260px; }
}
@media (max-width: 420px) {
    .btn-row .btn { width: 100%; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) {
    * { scroll-behavior: auto; }
}

/* Screenshots as captioned feature panels, shown after the video */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; margin-top: 2rem; }
.gallery figure { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 1.1rem; display: flex; flex-direction: column; }
.gallery .frame { display: flex; align-items: center; justify-content: center; height: 280px; }
.gallery .frame img { display: block; max-width: 100%; max-height: 100%; width: auto; height: auto; border-radius: 10px; }
.gallery .lead-shot { grid-column: 1 / -1; }
.gallery .lead-shot .frame { height: auto; }
.gallery .lead-shot .frame img { width: 100%; max-height: none; }
.gallery figcaption { margin-top: 1rem; font-size: 0.93rem; color: var(--muted); }
.gallery figcaption b { color: var(--text); font-weight: 600; }
@media (max-width: 820px) {
    .gallery { grid-template-columns: 1fr; }
    .gallery .frame { height: auto; }
}
