/* Spintuition MRI — lightweight site styles */
:root {
  --bg: #0d1117;
  --panel: #161b22;
  --border: #30363d;
  --text: #e6edf3;
  --muted: #9da7b3;
  --accent: #4ea1ff;
  --accent2: #ff6b6b;
  --code-bg: #1f2630;
  --max: 960px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

/* Header / nav */
.site-header {
  border-bottom: 1px solid var(--border);
  background: var(--panel);
  position: sticky;
  top: 0;
  z-index: 10;
}
.site-header .inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0.6rem 1rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1.25rem;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  color: var(--text);
  font-size: 1.1rem;
}
.brand img { width: 28px; height: 28px; }
nav { display: flex; flex-wrap: wrap; gap: 0.25rem 1rem; font-size: 0.95rem; }
nav a { color: var(--muted); }
nav a.active, nav a:hover { color: var(--text); text-decoration: none; }

/* Layout */
main {
  max-width: var(--max);
  margin: 0 auto;
  padding: 1.5rem 1rem 3rem;
}
h1 { font-size: 2rem; margin: 0.5rem 0 0.75rem; }
h1.page-title { display: flex; align-items: center; gap: 0.6rem; }
h1.page-title img { width: 48px; height: 48px; border-radius: 22%; flex-shrink: 0; }
h1.page-title sup { font-size: 0.4em; font-weight: 600; margin-left: 0.1em; }
h2 { font-size: 1.4rem; margin-top: 2.25rem; border-bottom: 1px solid var(--border); padding-bottom: 0.3rem; }
h3 { font-size: 1.1rem; margin-top: 1.5rem; }
.lead { font-size: 1.15rem; color: var(--muted); }

/* Three hero videos at equal height: columns sized by aspect ratio
   (portrait 444x960, spiral 640x480, portrait 444x960) */
.hero-videos {
  display: grid;
  grid-template-columns: 0.4625fr 1.3333fr 0.4625fr;
  gap: 0.75rem;
  margin: 1rem 0;
}
.hero-videos video {
  display: block;
  width: 100%;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: #000;
}
.hero-img { width: 100%; border-radius: 10px; border: 1px solid var(--border); margin: 1rem 0; }

/* Cards */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem;
  margin: 1.5rem 0;
}
.card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1rem 1.1rem;
}
.card h3 { margin-top: 0; }
.card p { margin: 0.4rem 0 0; color: var(--muted); }

/* Text + phone screenshot side by side */
.split {
  display: grid;
  grid-template-columns: 1fr 260px;
  gap: 1.5rem;
  align-items: start;
}
.split figure { margin: 0; }
.shot {
  width: 100%;
  border-radius: 14px;
  border: 1px solid var(--border);
}
figcaption { font-size: 0.85rem; color: var(--muted); text-align: center; margin-top: 0.3rem; }
@media (max-width: 720px) {
  .split { grid-template-columns: 1fr; }
  .split figure { max-width: 260px; margin: 0 auto; }
}

/* Tables */
table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0;
  font-size: 0.93rem;
}
th, td {
  border: 1px solid var(--border);
  padding: 0.45rem 0.6rem;
  text-align: left;
  vertical-align: top;
}
th { background: var(--panel); }
td:first-child { white-space: nowrap; }

/* Code */
code {
  background: var(--code-bg);
  padding: 0.1rem 0.35rem;
  border-radius: 4px;
  font-size: 0.9em;
}
pre {
  background: var(--code-bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.9rem 1rem;
  overflow-x: auto;
  font-size: 0.88rem;
}
pre code { background: none; padding: 0; }

.note {
  border-left: 3px solid var(--accent);
  background: var(--panel);
  padding: 0.6rem 1rem;
  border-radius: 0 6px 6px 0;
  color: var(--muted);
}

footer {
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.85rem;
  text-align: center;
  padding: 1.5rem 1rem;
}

.card-head {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
}
.card-head h3 { margin: 0; }
.card-img {
  flex: 0 0 50%;
  width: 50%;
  aspect-ratio: 1;
  border-radius: 8px;
  background: #000;
}

.app-store {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.05rem;
}
.app-store img { display: block; }
