/* nerix.app: the app's ink-teal theme (lib/app/theme.dart). */
:root {
  --ink: #06191a;
  --surface: #0d2a2b;
  --surface-high: #15393a;
  --outline: #3a5f5d;
  --text: #eaf2f0;
  --text-2: #9db4b0;
  --accent: #f2b84b;
  --on-accent: #1c1405;
  --muscle: #ff6b57;
  --calm: #4fd1b0;
  --radius: 16px;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font: 17px/1.65 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
a { color: var(--calm); text-underline-offset: 3px; }
a:hover { color: var(--text); }
img { max-width: 100%; height: auto; }
h1, h2, h3 { line-height: 1.2; letter-spacing: -0.01em; }
h1 { font-size: clamp(2rem, 5vw, 2.9rem); margin: 0 0 0.5em; }
h2 { font-size: 1.5rem; margin: 2em 0 0.6em; }
h3 { font-size: 1.15rem; margin: 1.6em 0 0.4em; }
p, ul, ol { margin: 0 0 1em; }
li { margin-bottom: 0.4em; }
strong { color: #fff; }

.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 8px; background: var(--accent); color: var(--on-accent); padding: 8px 12px; border-radius: 8px; z-index: 10; }

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 720px; }

.site-header { border-bottom: 1px solid var(--surface-high); position: sticky; top: 0; background: rgba(6, 25, 26, 0.92); backdrop-filter: blur(8px); z-index: 5; }
.bar { display: flex; align-items: center; justify-content: space-between; min-height: 60px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 700; font-size: 1.15rem; }
.brand img { border-radius: 8px; }
nav a { color: var(--text-2); text-decoration: none; margin-left: 20px; font-weight: 500; padding: 10px 0; }
nav a:hover, nav a[aria-current] { color: var(--text); }

main { padding-bottom: 64px; }

.hero { padding: 72px 0 40px; display: grid; grid-template-columns: 1.3fr 1fr; gap: 48px; align-items: center; }
.hero h1 { font-size: clamp(2.2rem, 6vw, 3.4rem); }
.hero .lede { font-size: 1.2rem; }
.hero-art { display: flex; justify-content: center; }
.hero-art img { width: min(320px, 70vw); border-radius: 28%; box-shadow: 0 30px 80px rgba(79, 209, 176, 0.18); }
.lede { color: var(--text-2); font-size: 1.15rem; }
.soon { color: var(--accent); font-weight: 600; }
.badge-row { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 24px; }
.pill { display: inline-block; border: 1px solid var(--outline); border-radius: 999px; padding: 8px 16px; color: var(--text-2); font-size: 0.95rem; }

.btn { display: inline-block; background: var(--accent); color: var(--on-accent); font-weight: 700; text-decoration: none; padding: 14px 24px; border-radius: 999px; min-height: 48px; }
.btn:hover { color: var(--on-accent); filter: brightness(1.06); }

.section-title { margin-top: 56px; }
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.feature, .card { background: var(--surface); border: 1px solid var(--surface-high); border-radius: var(--radius); padding: 22px; }
.feature h3, .card h3 { margin-top: 0; }
.feature p, .card p { color: var(--text-2); margin: 0; }
.dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 8px; vertical-align: middle; }
.dot.muscle { background: var(--muscle); }
.dot.calm { background: var(--calm); }
.dot.accent { background: var(--accent); }

.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.card { color: var(--text); text-decoration: none; transition: border-color 0.15s; }
.card:hover { border-color: var(--calm); color: var(--text); }

.page-head { padding-top: 56px; }
.guide { padding-top: 32px; }
.crumbs { font-size: 0.9rem; color: var(--text-2); margin-bottom: 20px; }
.crumbs a { color: var(--text-2); }
.meta { color: var(--text-2); font-size: 0.9rem; border-bottom: 1px solid var(--surface-high); padding-bottom: 20px; margin-bottom: 28px; }

.note, .warn { border-radius: 12px; padding: 16px 20px; margin: 24px 0; background: var(--surface); border-left: 4px solid var(--calm); }
.warn { border-left-color: var(--muscle); }
.note p:last-child, .warn p:last-child { margin-bottom: 0; }

.steps { counter-reset: step; list-style: none; padding: 0; }
.steps > li { counter-increment: step; position: relative; padding-left: 52px; margin-bottom: 18px; }
.steps > li::before { content: counter(step); position: absolute; left: 0; top: 0; width: 34px; height: 34px; border-radius: 50%; background: var(--surface-high); color: var(--accent); font-weight: 700; display: flex; align-items: center; justify-content: center; }

table { width: 100%; border-collapse: collapse; margin: 0 0 1.2em; font-size: 0.97rem; display: block; overflow-x: auto; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--surface-high); vertical-align: top; }
th { color: var(--text-2); font-weight: 600; }

.sources { font-size: 0.93rem; color: var(--text-2); }
.sources li { margin-bottom: 0.6em; }

.faq details { background: var(--surface); border-radius: 12px; margin-bottom: 10px; padding: 0 20px; }
.faq summary { cursor: pointer; font-weight: 600; padding: 16px 0; min-height: 44px; }
.faq details > div { padding-bottom: 16px; color: var(--text-2); }
.faq details > div p:last-child { margin: 0; }

.cta { display: flex; gap: 18px; align-items: flex-start; background: linear-gradient(135deg, var(--surface), var(--surface-high)); border: 1px solid var(--outline); border-radius: var(--radius); padding: 24px; margin: 48px 0 0; }
.cta img { border-radius: 14px; flex: none; }
.cta p { margin: 0 0 0.5em; color: var(--text-2); }
.cta .cta-title { color: var(--text); font-weight: 700; font-size: 1.15rem; }
.cta .soon { margin: 0; color: var(--accent); }
.related { margin-top: 48px; }

.legal h2 { font-size: 1.25rem; }
.legal { padding-top: 40px; }

.site-footer { border-top: 1px solid var(--surface-high); padding: 32px 0 48px; color: var(--text-2); }
.footer-links { display: flex; gap: 24px; flex-wrap: wrap; margin-bottom: 16px; }
.footer-links a { color: var(--text); text-decoration: none; padding: 8px 0; }
.fine { font-size: 0.85rem; max-width: 720px; }

@media (max-width: 760px) {
  body { font-size: 16.5px; }
  .hero { grid-template-columns: 1fr; padding-top: 40px; gap: 24px; }
  .hero-art { order: -1; justify-content: flex-start; }
  .hero-art img { width: 120px; }
  .features { grid-template-columns: 1fr; }
  nav a { margin-left: 16px; }
  .cta { flex-direction: column; }
}
