/* Lifescan — Shared Styles */
/* Dark theme: bg #0e1a24, primary #1abc9c (teal) */
/* Fonts: Nunito (sans), Cinzel (serif), JetBrains Mono (mono) */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #0e1a24;
  --bg-card: #142030;
  --bg-card-light: #1e3040;
  --text: #e0eaf0;
  --text-soft: #a0b4c4;
  --text-muted: #5a7a90;
  --text-dim: #3d5a70;
  --primary: #1abc9c;
  --primary-soft: rgba(26,188,156,0.15);
  --primary-border: rgba(26,188,156,0.3);
  --border: #1e3040;
  --vessel: #34d399;
  --stack: #fbbf24;
  --aura: #f472b6;
  --roots: #c084fc;
  --heart: #fb7185;
  --signal: #60a5fa;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Nunito', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { font-family: 'Cinzel', serif; line-height: 1.3; }
h1 { font-size: clamp(1.8rem, 4vw, 2.8rem); }
h2 { font-size: clamp(1.4rem, 3vw, 2rem); margin-bottom: 1rem; }
h3 { font-size: clamp(1.1rem, 2vw, 1.4rem); margin-bottom: 0.5rem; }

code, .mono { font-family: 'JetBrains Mono', monospace; }

a { color: var(--primary); text-decoration: none; transition: opacity 0.2s; }
a:hover { opacity: 0.8; }

img { max-width: 100%; height: auto; display: block; }

/* Layout */
.container { max-width: 900px; margin: 0 auto; padding: 0 1.5rem; }
.wide-container { max-width: 1100px; margin: 0 auto; padding: 0 1.5rem; }

/* Nav */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(14, 26, 36, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 0.8rem 0;
}
.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  font-family: 'Cinzel', serif;
  font-size: 1.3rem;
  color: var(--primary);
  font-weight: 700;
  letter-spacing: 0.03em;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
.nav-logo svg { flex-shrink: 0; }
.nav-links { display: flex; gap: 1.5rem; align-items: center; }
.nav-links a { color: var(--text-soft); font-size: 0.9rem; }
.nav-links a:hover { color: var(--text); }
.nav-cta {
  background: var(--primary);
  color: var(--bg) !important;
  padding: 0.4rem 1rem;
  border-radius: 6px;
  font-weight: 700;
  font-size: 0.85rem;
}
.nav-cta:hover { opacity: 0.9; }
.nav-toggle { display: none; background: none; border: none; color: var(--text); font-size: 1.4rem; cursor: pointer; }

@media (max-width: 768px) {
  .nav-links { display: none; flex-direction: column; position: absolute; top: 100%; left: 0; right: 0; background: var(--bg-card); border-bottom: 1px solid var(--border); padding: 1rem 1.5rem; gap: 0.8rem; }
  .nav-links.open { display: flex; }
  .nav-toggle { display: block; }
}

/* Hero */
.hero {
  padding: 5rem 0 2rem;
  overflow: visible;
}
.hero h1 { margin-bottom: 1.2rem; }
.hero-sub {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--text-soft);
  max-width: 600px;
  margin-bottom: 2rem;
}
.hero-num {
  color: var(--primary);
  font-weight: 700;
}

/* Hero split layout */
.hero-inner {
  display: flex;
  align-items: center;
  gap: 3rem;
}
.hero-text {
  flex: 1 1 55%;
  min-width: 0;
}
.hero-text .dim-badges {
  justify-content: start;
}
.hero-phone {
  flex: 0 0 auto;
  display: flex;
  justify-content: center;
  align-self: flex-start;
  max-width: 320px;
}
.phone-bezel {
  background: #000;
  border-radius: 40px;
  padding: 10px;
  box-shadow: 0 25px 60px rgba(0,0,0,0.5), 0 0 0 1px rgba(255,255,255,0.08);
  mask-image: linear-gradient(to bottom, black 75%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, black 75%, transparent 100%);
}
.hero-phone-img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 30px;
}

.phone-content {
  position: relative;
  z-index: 1;
}
.phone-brand {
  font-family: 'Cinzel', serif;
  color: var(--primary);
  font-size: 10px;
  text-align: center;
  letter-spacing: 0.15em;
  margin-bottom: 10px;
  font-weight: 700;
}

/* Tarot frame card */
.phone-card {
  border: 1px solid var(--primary-border);
  border-radius: 10px;
  padding: 5px;
  position: relative;
}
.phone-card-inner {
  border: 1px solid rgba(26,188,156,0.15);
  border-radius: 7px;
  padding: 10px 8px;
  text-align: center;
  position: relative;
}
.corner-diamond {
  position: absolute;
  width: 5px;
  height: 5px;
  background: var(--primary);
  transform: rotate(45deg);
  opacity: 0.4;
}
.corner-diamond.tl { top: 2px; left: 2px; }
.corner-diamond.tr { top: 2px; right: 2px; }
.corner-diamond.bl { bottom: 2px; left: 2px; }
.corner-diamond.br { bottom: 2px; right: 2px; }
.phone-arch-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 6px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 4px;
}
.phone-plumbob {
  display: block;
  margin: 2px auto 6px;
}
.phone-emblem {
  display: block;
  margin: 0 auto 4px;
}

/* Archetype rotation */
.phone-arch-slides {
  position: relative;
  height: 170px;
}
.phone-arch-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  animation: archRotate 17.5s infinite;
}
.phone-arch-slide:nth-child(1) { animation-delay: 0s; }
.phone-arch-slide:nth-child(2) { animation-delay: 3.5s; }
.phone-arch-slide:nth-child(3) { animation-delay: 7s; }
.phone-arch-slide:nth-child(4) { animation-delay: 10.5s; }
.phone-arch-slide:nth-child(5) { animation-delay: 14s; }
@keyframes archRotate {
  0% { opacity: 0; }
  3% { opacity: 1; }
  17% { opacity: 1; }
  20% { opacity: 0; }
  100% { opacity: 0; }
}
.phone-arch-name {
  font-family: 'Cinzel', serif;
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 2px;
}
.phone-arch-tagline {
  font-size: 8px;
  color: var(--text-soft);
  font-style: italic;
  margin-bottom: 8px;
}

/* Phone dimension bars */
.phone-bars {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 0 4px;
}
.phone-bar-row {
  display: flex;
  align-items: center;
  gap: 4px;
}
.phone-bar-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 7px;
  width: 14px;
  text-align: right;
  flex-shrink: 0;
}
.phone-bar-score {
  font-family: 'JetBrains Mono', monospace;
  font-size: 7px;
  width: 16px;
  text-align: left;
  flex-shrink: 0;
  color: var(--text-soft);
}
.phone-bar-track {
  flex: 1;
  height: 6px;
  background: var(--bg-card-light);
  border-radius: 3px;
  position: relative;
  overflow: hidden;
}
.phone-bar-fill {
  height: 100%;
  border-radius: 3px;
}
.phone-bar-avg {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 1px;
  background: rgba(255,255,255,0.25);
}

/* Ornate divider & footer */
.phone-divider {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 8px 0 6px;
}
.phone-divider-line {
  flex: 1;
  height: 1px;
  background: var(--primary-border);
}
.phone-divider-diamond {
  width: 4px;
  height: 4px;
  background: var(--primary);
  transform: rotate(45deg);
  opacity: 0.4;
  flex-shrink: 0;
}
.phone-score-footer {
  font-family: 'JetBrains Mono', monospace;
  font-size: 6px;
  color: var(--text-muted);
  text-align: center;
  letter-spacing: 0.1em;
}

/* Dot indicators */
.phone-dots {
  display: flex;
  justify-content: center;
  gap: 5px;
  margin-top: 10px;
}
.phone-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--text-dim);
  animation: dotRotate 17.5s infinite;
}
.phone-dot:nth-child(1) { animation-delay: 0s; }
.phone-dot:nth-child(2) { animation-delay: 3.5s; }
.phone-dot:nth-child(3) { animation-delay: 7s; }
.phone-dot:nth-child(4) { animation-delay: 10.5s; }
.phone-dot:nth-child(5) { animation-delay: 14s; }
@keyframes dotRotate {
  0% { background: var(--text-dim); }
  3% { background: var(--primary); }
  17% { background: var(--primary); }
  20% { background: var(--text-dim); }
  100% { background: var(--text-dim); }
}

/* Dimension badges */
.dim-badges {
  display: grid;
  grid-template-columns: repeat(3, auto);
  gap: 0.6rem;
  justify-content: center;
  margin: 2rem 0;
}
.dim-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.35rem 0.9rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 700;
  border: 1px solid;
  min-width: 100px;
  text-align: center;
}
.dim-badge-vessel { color: var(--vessel); border-color: rgba(52,211,153,0.3); background: rgba(52,211,153,0.08); }
.dim-badge-stack { color: var(--stack); border-color: rgba(251,191,36,0.3); background: rgba(251,191,36,0.08); }
.dim-badge-aura { color: var(--aura); border-color: rgba(244,114,182,0.3); background: rgba(244,114,182,0.08); }
.dim-badge-roots { color: var(--roots); border-color: rgba(192,132,252,0.3); background: rgba(192,132,252,0.08); }
.dim-badge-heart { color: var(--heart); border-color: rgba(251,113,133,0.3); background: rgba(251,113,133,0.08); }
.dim-badge-signal { color: var(--signal); border-color: rgba(96,165,250,0.3); background: rgba(96,165,250,0.08); }

/* CTA button */
.cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--primary);
  color: var(--bg);
  padding: 0.85rem 2rem;
  border-radius: 8px;
  font-weight: 700;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  transition: transform 0.15s, opacity 0.2s;
}
.cta-btn:hover { transform: translateY(-1px); opacity: 0.92; color: var(--bg); }
.cta-btn-outline {
  background: transparent;
  color: var(--primary);
  border: 1.5px solid var(--primary-border);
}
.cta-btn-outline:hover { background: var(--primary-soft); color: var(--primary); }

/* Sections */
section { padding: 4rem 0; }
.section-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

/* Cards */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.5rem;
}
.card-grid {
  display: grid;
  gap: 1.2rem;
}
.card-grid-2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.card-grid-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 900px) { .card-grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .card-grid-3, .card-grid-2 { grid-template-columns: 1fr; } }

/* Archetype emblem */
.archetype-emblem { display: block; margin: 0.5rem auto 1rem; opacity: 0.9; }
.archetype-card .archetype-emblem { margin: 0 auto 0.5rem; }

/* Dimension hub enhancements */
.dim-hub-card .dim-sys-name {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 0.2rem;
}
.dim-hub-card .dim-desc {
  color: var(--text-soft);
  font-size: 0.9rem;
  margin: 0.5rem 0;
}
.dim-hub-card .dim-avg-info {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 0.8rem;
  padding-top: 0.6rem;
  border-top: 1px solid var(--border);
}

/* Dimension cards */
.dim-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.5rem;
  border-top: 3px solid;
}
.dim-card h3 { font-family: 'Nunito', sans-serif; font-weight: 700; }
.dim-card .dim-label { font-size: 0.78rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.08em; }
.dim-card .dim-avg { font-family: 'JetBrains Mono', monospace; font-size: 0.85rem; color: var(--text-soft); margin-top: 0.5rem; }
.dim-card p { color: var(--text-soft); font-size: 0.92rem; margin-top: 0.5rem; }

/* Score bars */
.score-bar-wrap { margin: 0.5rem 0; }
.score-bar-label {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  color: var(--text-soft);
  margin-bottom: 0.3rem;
}
.score-bar {
  height: 6px;
  background: var(--bg-card-light);
  border-radius: 3px;
  overflow: hidden;
}
.score-bar-fill {
  height: 100%;
  border-radius: 3px;
  transition: width 0.6s ease;
}

/* Archetype card */
.archetype-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.8rem;
  text-align: center;
}
.archetype-card .rarity {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.8rem;
  color: var(--text-muted);
}
.archetype-card h3 { margin: 0.3rem 0; }
.archetype-card .tagline { color: var(--text-soft); font-style: italic; margin-bottom: 1rem; }
.archetype-card p { color: var(--text-soft); font-size: 0.92rem; text-align: left; }

/* Steps */
.steps { display: grid; gap: 1.5rem; counter-reset: step; }
.step {
  display: flex;
  gap: 1.2rem;
  align-items: flex-start;
}
.step-num {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  background: var(--primary-soft);
  color: var(--primary);
  border: 1px solid var(--primary-border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700;
  font-size: 0.9rem;
}
.step-content h3 { font-family: 'Nunito', sans-serif; font-size: 1.05rem; }
.step-content p { color: var(--text-soft); font-size: 0.92rem; }

/* Stats row */
.stats-row {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: center;
  margin: 2rem 0;
}
.stat { text-align: center; }
.stat-num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary);
}
.stat-label { font-size: 0.85rem; color: var(--text-muted); }

/* Tables */
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}
.data-table th, .data-table td {
  padding: 0.7rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
}
.data-table th {
  color: var(--text-muted);
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.data-table tr:hover { background: var(--bg-card); }

/* FAQ */
.faq-list { display: grid; gap: 0.8rem; }
.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
}
.faq-q {
  width: 100%;
  background: none;
  border: none;
  color: var(--text);
  padding: 1rem 1.2rem;
  font-size: 0.95rem;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: 'Nunito', sans-serif;
}
.faq-q::after { content: '+'; font-size: 1.2rem; color: var(--text-muted); transition: transform 0.2s; }
.faq-item.open .faq-q::after { content: '\2212'; }
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  padding: 0 1.2rem;
  color: var(--text-soft);
  font-size: 0.92rem;
}
.faq-item.open .faq-a { max-height: 500px; padding-bottom: 1rem; }

/* Footer */
.footer {
  border-top: 1px solid var(--border);
  padding: 3rem 0;
  margin-top: 3rem;
}
.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: space-between;
  align-items: flex-start;
}
.footer-brand { max-width: 300px; }
.footer-brand .nav-logo { margin-bottom: 0.5rem; display: inline-block; }
.footer-brand p { font-size: 0.85rem; color: var(--text-muted); }
.footer-links { display: flex; gap: 3rem; }
.footer-col h4 {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 0.6rem;
}
.footer-col a { display: block; color: var(--text-soft); font-size: 0.88rem; margin-bottom: 0.3rem; }
.footer-col a:hover { color: var(--text); }
.footer-bottom {
  max-width: 1100px;
  margin: 2rem auto 0;
  padding: 1rem 1.5rem 0;
  border-top: 1px solid var(--border);
  font-size: 0.78rem;
  color: var(--text-dim);
  text-align: center;
}

/* Prose (for content pages) */
.prose { max-width: 720px; margin: 0 auto; }
.prose p { margin-bottom: 1rem; color: var(--text-soft); }
.prose h2 { margin-top: 2.5rem; }
.prose h3 { margin-top: 1.5rem; }
.prose ul, .prose ol { margin-bottom: 1rem; padding-left: 1.5rem; color: var(--text-soft); }
.prose li { margin-bottom: 0.4rem; }
.prose blockquote {
  border-left: 3px solid var(--primary);
  padding: 0.8rem 1.2rem;
  margin: 1.5rem 0;
  background: var(--primary-soft);
  border-radius: 0 8px 8px 0;
  color: var(--text);
}
.prose strong { color: var(--text); }

/* Page header */
.page-header {
  padding: 3rem 0 2rem;
  text-align: center;
  border-bottom: 1px solid var(--border);
  margin-bottom: 3rem;
}
.page-header p { color: var(--text-soft); max-width: 600px; margin: 0.5rem auto 0; }

/* Breadcrumb */
.breadcrumb {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}
.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--primary); }

/* Utility */
.text-center { text-align: center; }
.text-muted { color: var(--text-muted); }
.text-soft { color: var(--text-soft); }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.gap-2 { gap: 1rem; }
.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-wrap { flex-wrap: wrap; }
.inline-block { display: inline-block; }

/* Dimension tab bar */
.dim-tabs {
  display: flex;
  overflow-x: auto;
  border-bottom: 1px solid var(--border);
  background: rgba(14,26,36,0.95);
  backdrop-filter: blur(8px);
  position: sticky;
  top: 52px;
  z-index: 90;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.dim-tabs::-webkit-scrollbar { display: none; }
.dim-tab {
  flex: 1;
  min-width: max-content;
  text-align: center;
  padding: 0.75rem 0.5rem;
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--text-muted);
  border-bottom: 2px solid transparent;
  text-decoration: none;
  white-space: nowrap;
}
.dim-tab:hover { color: var(--text-soft); }
.dim-tab.active-vessel { color: var(--vessel); border-bottom-color: var(--vessel); }
.dim-tab.active-stack { color: var(--stack); border-bottom-color: var(--stack); }
.dim-tab.active-aura { color: var(--aura); border-bottom-color: var(--aura); }
.dim-tab.active-roots { color: var(--roots); border-bottom-color: var(--roots); }
.dim-tab.active-heart { color: var(--heart); border-bottom-color: var(--heart); }
.dim-tab.active-signal { color: var(--signal); border-bottom-color: var(--signal); }

/* Teaser card grid */
.teaser-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 0.8rem;
}
.teaser-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1rem;
}
.teaser-card h4 { font-family: 'Nunito', sans-serif; font-size: 0.95rem; margin-bottom: 0.3rem; }
.teaser-card p { color: var(--text-soft); font-size: 0.85rem; }

/* Dimension hub grid */
.dim-hub-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.2rem;
}
.dim-hub-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 2rem 1.5rem;
  text-decoration: none;
  color: inherit;
  border-top: 3px solid;
  transition: transform 0.15s, border-color 0.2s;
}
.dim-hub-card:hover { transform: translateY(-2px); }
.dim-hub-card h3 { font-size: 1.3rem; margin-bottom: 0.5rem; }
.dim-hub-card p { color: var(--text-soft); font-size: 0.95rem; font-style: italic; }

/* Hero responsive */
@media (max-width: 768px) {
  .hero { padding: 3rem 0 1rem; }
  .hero-inner { flex-direction: column; text-align: center; gap: 2rem; }
  .hero-text { text-align: center; }
  .hero-text .hero-sub { margin-left: auto; margin-right: auto; }
  .hero-text .dim-badges { justify-content: center; }
  .hero-phone { max-width: 280px; width: 100%; }
}

/* Print */
@media print {
  .nav, .footer, .dim-tabs { display: none; }
  body { background: white; color: black; }
}
