:root {
  --bg: #0f0f13;
  --surface: #1a1a24;
  --card: #22222e;
  --border: #2e2e3a;
  --text: #e0e0e8;
  --text-dim: #8888a0;
  --accent: #6ac9a0;
  --accent-dim: #4a9a7a;
  --savings: #3dd68c;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
}

/* ─── Navigation ─── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  background: rgba(15,15,19,0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.7rem 2rem;
  z-index: 100;
}
nav .logo a {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
  letter-spacing: -0.02em;
}
nav .logo a:hover { color: var(--accent); }
.nav-links { display: flex; gap: 1.2rem; flex-wrap: wrap; }
.nav-links a {
  color: var(--text-dim);
  text-decoration: none;
  font-size: 0.85rem;
  transition: color 0.15s;
}
.nav-links a:hover { color: var(--accent); }

/* ─── Layout ─── */
.container { max-width: 960px; margin: 0 auto; padding: 0 1.5rem; }

/* ─── Hero ─── */
.hero {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  padding: 6rem 0 3rem;
}
.hero-left {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.hero-img {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--border);
  background: var(--surface);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  color: var(--text-dim);
}
.hero-img img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}
.hero-right { flex: 1; }
.hero-right h1 {
  font-size: 2.2rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 0.3rem;
}

.hero-right h1 .name-first {
  color: var(--accent);
}
.hero-right .tagline {
  color: var(--text-dim);
  font-size: 1rem;
  margin-bottom: 1rem;
}

/* ─── Savings Badge ─── */
.savings {
  display: inline-flex;
  flex-direction: column;
  background: linear-gradient(135deg, rgba(61,214,140,0.12), rgba(61,214,140,0.04));
  border: 1px solid rgba(61,214,140,0.25);
  border-radius: 12px;
  padding: 0.8rem 1.4rem;
}
.savings-top { display: flex; align-items: baseline; gap: 1rem; flex-wrap: wrap; }
.savings-heading {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-dim);
  margin-bottom: 0.25rem;
}
.savings-amount {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--savings);
  line-height: 1.2;
}
.savings-amount small { font-size: 0.9rem; font-weight: 500; }
.savings-label {
  font-size: 0.8rem;
  color: var(--accent-dim);
  margin-top: 0.15rem;
}
.savings-footnote {
  font-size: 0.75rem;
  color: var(--text-dim);
  margin-top: 0.3rem;
  font-style: italic;
}

/* ─── Sections ─── */
section { margin: 2.5rem 0; }
details {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  margin-bottom: 1rem;
  overflow: hidden;
  transition: border-color 0.2s;
}
details[open] { border-color: var(--accent-dim); }
summary {
  padding: 1rem 1.4rem;
  font-weight: 600;
  font-size: 1.05rem;
  cursor: pointer;
  user-select: none;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
summary::-webkit-details-marker { display: none; }
summary::before {
  content: '▸';
  transition: transform 0.2s;
  color: var(--accent-dim);
  font-size: 0.9rem;
}
details[open] summary::before { transform: rotate(90deg); }
.detail-body { padding: 0 1.4rem 1.4rem; }

/* ─── Subscription Table ─── */
.sub-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.sub-table th {
  text-align: left;
  padding: 0.5rem 0.75rem;
  border-bottom: 1px solid var(--border);
  color: var(--text-dim);
  font-weight: 600;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.sub-table td { padding: 0.6rem 0.75rem; border-bottom: 1px solid var(--border); }
.sub-table tr:last-child td { border-bottom: none; }
.sub-table .saved { color: var(--savings); font-weight: 600; }

/* ─── Why Self-Host Cards ─── */
.card-grid { display: grid; gap: 0.8rem; }
.card {
  background: var(--card);
  border-radius: 8px;
  padding: 1rem 1.2rem;
  border: 1px solid var(--border);
}
.card h4 { margin-bottom: 0.3rem; color: var(--accent); }
.card p { font-size: 0.9rem; color: var(--text-dim); }

/* ─── Beyond Gallery ─── */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 1rem;
}
.gallery-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  transition: border-color 0.2s;
}
.gallery-card:hover { border-color: var(--accent-dim); }
.gallery-card .pic {
  width: 100%;
  aspect-ratio: 4 / 3;
  background: var(--surface);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-dim);
  font-size: 0.8rem;
}
.gallery-card .pic img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.gallery-card .caption {
  padding: 0.6rem 0.8rem;
  font-size: 0.85rem;
}
.gallery-card .caption small {
  display: block;
  color: var(--text-dim);
  font-size: 0.75rem;
  margin-top: 0.15rem;
}

/* ─── Updates ─── */
.update-item {
  padding: 0.8rem 0;
  border-bottom: 1px solid var(--border);
}
.update-item:last-child { border-bottom: none; }
.update-item .month {
  font-size: 0.75rem;
  color: var(--accent-dim);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.update-item h4 { margin: 0.15rem 0 0.25rem; }
.update-item p { font-size: 0.9rem; color: var(--text-dim); }
.update-item a { color: var(--accent); text-decoration: none; }
.update-item a:hover { text-decoration: underline; }

/* ─── Footer ─── */
footer {
  text-align: center;
  padding: 2rem 1rem 3rem;
  color: var(--text-dim);
  font-size: 0.8rem;
  border-top: 1px solid var(--border);
  margin-top: 3rem;
}
footer a {
  color: var(--accent-dim);
  text-decoration: none;
}
footer a:hover { color: var(--accent); }
.footer-links { display: flex; justify-content: center; gap: 1.5rem; flex-wrap: wrap; margin-bottom: 0.5rem; }

/* ─── Email Reveal ─── */
.email-reveal {
  cursor: pointer;
  color: var(--text-dim);
  transition: color 0.15s;
}
.email-reveal:hover { color: var(--accent); }
.email-reveal .revealed { color: var(--accent); }

/* ─── Responsive ─── */
@media (max-width: 700px) {
  .hero { flex-direction: column; text-align: center; padding-top: 5rem; min-height: auto; }
  .hero-right h1 { font-size: 1.8rem; }
  .hero-img { width: 130px; height: 130px; }
  .savings-top { justify-content: center; }
  nav { flex-direction: column; gap: 0.4rem; padding: 0.5rem 1rem; }
  .nav-links { gap: 0.8rem; justify-content: center; }
}