/* ─── Site Nav ─────────────────────────────────────────────────────────────────── */
#site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 200;
  background: rgba(26,26,46,0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0.75rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: var(--text);
  font-weight: 700;
  font-size: 1.1rem;
}
.nav-logo img {
  width: 28px;
  height: 28px;
  border-radius: 6px;
}
.nav-logo:hover { text-decoration: none; opacity: 0.85; }

#nav-hamburger {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 1.2rem;
  padding: 0.3rem 0.7rem;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background var(--transition);
}
#nav-hamburger:hover { background: var(--surface-2); }

.nav-drawer {
  position: fixed;
  top: 0;
  right: -280px;
  width: 260px;
  height: 100vh;
  background: var(--surface);
  border-left: 1px solid var(--border);
  box-shadow: var(--shadow);
  z-index: 300;
  padding: 1.5rem 1rem;
  transition: right var(--transition);
  overflow-y: auto;
}
.nav-drawer.open { right: 0; }

#nav-drawer-close {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 1.2rem;
  padding: 0.3rem 0.6rem;
  cursor: pointer;
  display: block;
  margin-left: auto;
  margin-bottom: 1.5rem;
}

.nav-drawer ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.nav-drawer ul a {
  display: block;
  padding: 0.65rem 0.8rem;
  border-radius: var(--radius);
  color: var(--text);
  font-size: 0.95rem;
  text-decoration: none;
  transition: background var(--transition);
}
.nav-drawer ul a:hover { background: var(--surface-2); text-decoration: none; }
.nav-drawer ul a.nav-active { background: var(--surface-2); color: var(--accent); font-weight: 600; }

#nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 250;
}
#nav-overlay.open { display: block; }

/* Push body down so nav doesn't cover hero */
body { padding-top: 56px; }

/* ─── Page header (used on sub-pages) ───────────────────────────────────────── */
.page-hero {
  background: radial-gradient(ellipse at 50% 0%, #0f3460 0%, var(--bg) 70%);
  padding: 4rem 1.5rem 3rem;
  text-align: center;
}
.page-hero h1 {
  font-size: 2.2rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
}
.page-hero p {
  color: var(--text-muted);
  font-size: 1rem;
  max-width: 520px;
  margin: 0 auto;
}

/* ─── Variables ──────────────────────────────────────────────────────────────── */
:root {
  --bg:         #1a1a2e;
  --surface:    #16213e;
  --surface-2:  #0f3460;
  --accent:     #e94560;
  --accent-2:   #04AA6D;
  --text:       #eaeaea;
  --text-muted: #888;
  --border:     rgba(255,255,255,0.08);
  --radius:     12px;
  --shadow:     0 8px 32px rgba(0,0,0,0.4);
  --transition: 0.2s ease;
  --max-w:      900px;
}

/* ─── Reset ──────────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }

/* ─── Utility ────────────────────────────────────────────────────────────────── */
.hidden { display: none !important; }

.glass {
  background: rgba(255,255,255,0.05);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.btn-primary {
  display: inline-block;
  padding: 0.75rem 1.8rem;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: var(--radius);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  transition: opacity var(--transition), transform var(--transition);
  text-decoration: none;
}
.btn-primary:hover { opacity: 0.88; transform: translateY(-1px); text-decoration: none; }
.btn-primary:disabled { opacity: 0.4; cursor: not-allowed; transform: none; }
.btn-primary:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* ─── Toast ──────────────────────────────────────────────────────────────────── */
#toast-container {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 999;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.toast {
  padding: 0.75rem 1.2rem;
  border-radius: var(--radius);
  color: #fff;
  font-size: 0.9rem;
  box-shadow: var(--shadow);
  animation: slideIn 0.2s ease;
  max-width: 320px;
}
.toast-success { background: #2d6a4f; }
.toast-error   { background: #c1121f; }
@keyframes slideIn {
  from { transform: translateX(120%); opacity: 0; }
  to   { transform: translateX(0);    opacity: 1; }
}

/* ─── Section wrapper ────────────────────────────────────────────────────────── */
.section-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 5rem 1.5rem;
}
.section-inner h2 {
  font-size: 1.8rem;
  margin-bottom: 2rem;
}

/* ─── Hero ───────────────────────────────────────────────────────────────────── */
#hero {
  background: radial-gradient(ellipse at 50% 0%, #0f3460 0%, var(--bg) 70%);
  padding: 5rem 1.5rem 4rem;
  text-align: center;
}
.hero-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}
.hero-logo {
  width: 72px;
  height: 72px;
  border-radius: 18px;
  margin-bottom: 0.5rem;
}
#hero h1 {
  font-size: 3rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}
.hero-tagline {
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--accent-2);
}
.hero-sub {
  font-size: 1rem;
  color: var(--text-muted);
  max-width: 520px;
  line-height: 1.7;
}
.hero-cta { margin-top: 1rem; font-size: 1.1rem; padding: 0.9rem 2.2rem; }
.coming-soon-cta { opacity: 0.45; cursor: default; pointer-events: none; }

/* ─── Features ───────────────────────────────────────────────────────────────── */
#features { background: var(--surface); }
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.25rem;
}
.feature-card {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.5rem;
}
.feature-icon { width: 2.2rem; height: 2.2rem; display: block; margin-bottom: .5rem; }
.feature-card h3 { font-size: 1rem; font-weight: 600; }
.feature-card p  { font-size: 0.9rem; color: var(--text-muted); }

/* ─── FAQ ────────────────────────────────────────────────────────────────────── */
#faq { background: var(--bg); }
.accordion { display: flex; flex-direction: column; gap: 0.75rem; }

.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.faq-item summary {
  padding: 1rem 1.2rem;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.95rem;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  user-select: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  font-size: 1.2rem;
  color: var(--text-muted);
  transition: transform var(--transition);
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p {
  padding: 0 1.2rem 1rem;
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ─── Get Started ────────────────────────────────────────────────────────────── */
#get-started { background: var(--surface); }

.coming-soon-note {
  max-width: 520px;
  margin: 0 auto 1.5rem;
  padding: 1.25rem 1.5rem;
  text-align: center;
  font-size: 0.95rem;
  color: var(--text-muted);
}
.coming-soon-note strong { color: var(--text); }

.onboard-card {
  max-width: 520px;
  margin: 0 auto;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}
.onboard-card h3 { font-size: 1.2rem; }

.tos-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}
.tos-list li::before { content: '✓  '; color: var(--accent-2); }

.tos-check {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.9rem;
  cursor: pointer;
}
.tos-check input { width: auto; accent-color: var(--accent); }

.form-hint { font-size: 0.85rem; color: var(--text-muted); margin-top: -0.5rem; }
.optional   { font-size: 0.8rem; color: var(--text-muted); }

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.form-group label { font-size: 0.85rem; color: var(--text-muted); }
.form-group input,
.form-group textarea {
  font-family: inherit;
  font-size: 0.9rem;
  background: var(--surface-2);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.5rem 0.8rem;
  width: 100%;
}
.form-group input:focus,
.form-group textarea:focus { outline: 2px solid var(--accent); outline-offset: 2px; }
.form-group textarea { resize: vertical; }
.form-group input[type="file"] { padding: 0.4rem; }

/* ─── Progress list ──────────────────────────────────────────────────────────── */
.progress-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.prog-item {
  padding: 0.6rem 1rem;
  border-radius: var(--radius);
  font-size: 0.9rem;
  background: var(--surface-2);
  color: var(--text-muted);
  border-left: 3px solid var(--border);
  transition: all var(--transition);
}
.prog-item.pending {
  color: var(--text);
  border-left-color: var(--accent);
  animation: pulse 1.2s ease infinite;
}
.prog-item.done {
  color: var(--accent-2);
  border-left-color: var(--accent-2);
}
.prog-item.done::before  { content: '✓  '; }
.prog-item.fail {
  color: var(--accent);
  border-left-color: var(--accent);
}
.prog-item.fail::before  { content: '✗  '; }

.prog-note { font-size: 0.78rem; color: var(--text-muted); font-weight: 400; }
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.6; }
}

/* ─── Callback page ──────────────────────────────────────────────────────────── */
#callback-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}
.callback-box {
  padding: 2.5rem 2rem;
  text-align: center;
  max-width: 400px;
  width: 100%;
  font-size: 1rem;
  color: var(--text-muted);
}

/* ─── Footer ─────────────────────────────────────────────────────────────────── */
#site-footer {
  text-align: center;
  padding: 2rem 1.5rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}
.btn-beer {
  display: inline-block;
  padding: 0.55rem 1.4rem;
  background: var(--accent-2);
  color: #fff;
  border-radius: var(--radius);
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  transition: opacity var(--transition), transform var(--transition);
}
.btn-beer:hover { opacity: 0.88; transform: translateY(-1px); text-decoration: none; }

/* ─── Responsive ─────────────────────────────────────────────────────────────── */
@media (max-width: 600px) {
  #hero h1       { font-size: 2.2rem; }
  .hero-tagline  { font-size: 1.1rem; }
  .section-inner { padding: 3.5rem 1rem; }
}

/* ─── About Page ─────────────────────────────────────────────────────────────── */
.about-section {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.about-section h2 {
  font-size: 1.8rem;
  margin-bottom: 0;
}
.about-section h3 {
  font-size: 1.1rem;
  margin-top: 0.5rem;
}
.about-section p {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.8;
}
.about-tagline {
  color: var(--accent-2) !important;
  font-size: 0.95rem !important;
  font-weight: 600;
  margin-top: -0.5rem;
}
.about-honest {
  background: var(--surface-2);
  border-left: 3px solid var(--accent-2);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 1rem 1.2rem;
  font-size: 0.9rem !important;
  color: var(--text) !important;
}

/* Pricing table */
.pricing-table-wrap { overflow-x: auto; }
.pricing-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}
.pricing-table th {
  text-align: left;
  padding: 0.6rem 1rem;
  border-bottom: 1px solid var(--border);
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.pricing-table td {
  padding: 0.65rem 1rem;
  border-bottom: 1px solid var(--border);
  color: var(--text-muted);
}
.pricing-table td.free {
  color: var(--accent-2);
  font-weight: 700;
}
.pricing-table tr:last-child td { border-bottom: none; }

/* Project cards */
.project-card {
  padding: 1.25rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.project-header {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}
.project-emoji {
  font-size: 1.8rem;
  line-height: 1;
  flex-shrink: 0;
}
.project-header strong { font-size: 1rem; display: block; margin-bottom: 0.2rem; }
.project-header p { font-size: 0.88rem; color: var(--text-muted); margin: 0; }
.project-stats {
  font-size: 0.82rem !important;
  color: var(--text-muted) !important;
  border-top: 1px solid var(--border);
  padding-top: 0.6rem;
}
.project-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.project-links a {
  font-size: 0.82rem;
  padding: 0.25rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  transition: background var(--transition);
}
.project-links a:hover { background: var(--surface-2); text-decoration: none; }

.about-connect {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  margin-top: 0.5rem;
}
.about-connect a {
  font-size: 0.9rem;
  padding: 0.4rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  transition: background var(--transition);
}
.about-connect a:hover { background: var(--surface-2); text-decoration: none; }
.about-connect .btn-beer { border: none; }

/* ─── How It Works ───────────────────────────────────────────────────────────── */
#how-it-works { background: var(--bg); }

.hiw-intro {
  font-size: 1.05rem;
  color: var(--text-muted);
  margin-bottom: 2.5rem;
  max-width: 560px;
}

.hiw-steps {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  counter-reset: none;
}

.hiw-step {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
  padding: 1.5rem;
}

.hiw-num {
  flex-shrink: 0;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-size: 1.1rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 0.1rem;
}

.hiw-body {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.hiw-body strong {
  font-size: 1.05rem;
  color: var(--text);
}
.hiw-body p {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin: 0;
}
.hiw-link {
  font-size: 0.88rem;
  color: var(--accent-2);
  font-weight: 600;
  text-decoration: none;
  margin-top: 0.25rem;
}
.hiw-link:hover { text-decoration: underline; }

.hiw-reassure {
  margin-top: 2rem;
  font-size: 0.95rem;
  color: var(--accent-2);
  font-weight: 600;
  text-align: center;
}

/* ─── How-To Guides ──────────────────────────────────────────────────────────── */
.howto-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 0;
}
.howto-list li {
  font-size: 0.93rem;
  color: var(--text-muted);
  padding-left: 1.2rem;
  position: relative;
  line-height: 1.7;
}
.howto-list li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--accent-2);
}
.howto-list li strong { color: var(--text); }

.howto-steps {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  padding-left: 0;
  counter-reset: howto;
  list-style: none;
}
.howto-steps li {
  counter-increment: howto;
  font-size: 0.93rem;
  color: var(--text-muted);
  padding: 0.65rem 0.9rem 0.65rem 3rem;
  background: var(--surface-2);
  border-radius: var(--radius);
  position: relative;
  line-height: 1.7;
}
.howto-steps li::before {
  content: counter(howto);
  position: absolute;
  left: 0.9rem;
  top: 50%;
  transform: translateY(-50%);
  width: 1.5rem;
  height: 1.5rem;
  background: var(--accent);
  color: #fff;
  border-radius: 50%;
  font-size: 0.78rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}
.howto-steps li strong { color: var(--text); }
.howto-steps li code {
  background: rgba(255,255,255,0.08);
  padding: 0.1rem 0.4rem;
  border-radius: 4px;
  font-size: 0.85rem;
}

code {
  background: rgba(255,255,255,0.08);
  padding: 0.1rem 0.4rem;
  border-radius: 4px;
  font-size: 0.85rem;
  font-family: 'Courier New', monospace;
}
