/* ── SkeinBook site — shared styles ─────────────────────────────── */
:root {
  --brand:       #5c7a4e;   /* sage green */
  --brand-light: #7a9e6a;
  --brand-dark:  #4a6340;
  --bg:          #f5f0e8;   /* warm cream */
  --surface:     #ede8df;
  --surface-2:   #e3ddd4;
  --text:        #2c2416;   /* warm dark brown */
  --text-secondary: #5a4f3e;
  --text-muted:  #8a7a68;
  --border:      #d4cdc3;
  --radius:      0.75rem;
  --max-w:       64rem;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { font-size: 16px; scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
}

a { color: var(--brand-light); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ── Layout ────────────────────────────────────────────────────── */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 1.5rem; }

/* ── Navigation ────────────────────────────────────────────────── */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(245, 240, 232, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 1rem 0;
}
.nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-brand {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.nav-brand:hover { text-decoration: none; }
.nav-brand .icon { font-size: 1.5rem; }
.nav-links { display: flex; gap: 1.5rem; align-items: center; }
.nav-links a { color: var(--text-muted); font-size: 0.9rem; }
.nav-links a:hover { color: var(--text); text-decoration: none; }

/* ── Hero ──────────────────────────────────────────────────────── */
.hero {
  padding: 6rem 0 4rem;
  text-align: center;
}
.hero h1 {
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin-bottom: 1.25rem;
}
.hero h1 .highlight {
  background: linear-gradient(135deg, var(--brand-light), var(--brand));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero p {
  font-size: 1.25rem;
  color: var(--text-muted);
  max-width: 40rem;
  margin: 0 auto 2.5rem;
}

/* ── Buttons ───────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius);
  font-size: 1rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all 0.15s ease;
}
.btn-primary {
  background: var(--brand);
  color: #fff;
}
.btn-primary:hover {
  background: var(--brand-dark);
  text-decoration: none;
}
.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}
.btn-outline:hover {
  background: var(--surface);
  text-decoration: none;
}
.btn-group { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* ── Screenshot ────────────────────────────────────────────────── */
.screenshot-wrap {
  max-width: 56rem;
  margin: 3rem auto 0;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.12);
  border: 1px solid var(--border);
}
.screenshot-wrap img { width: 100%; display: block; }

/* ── Features grid ─────────────────────────────────────────────── */
.features {
  padding: 5rem 0;
}
.features h2 {
  font-size: 2rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 3rem;
}
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr));
  gap: 1.5rem;
}
.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
}
.feature-card .emoji {
  font-size: 1.75rem;
  margin-bottom: 0.75rem;
  display: block;
}
.feature-card h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}
.feature-card p {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.5;
}

/* ── Footer ────────────────────────────────────────────────────── */
.footer {
  padding: 3rem 0;
  border-top: 1px solid var(--border);
  text-align: center;
  color: var(--text-muted);
  font-size: 0.85rem;
}
.footer a { color: var(--text-muted); }
.footer a:hover { color: var(--text); }
.footer-links { display: flex; gap: 1.5rem; justify-content: center; margin-bottom: 1rem; }

/* ── Beta page specific ───────────────────────────────────────── */
.beta-gate {
  max-width: 28rem;
  margin: 8rem auto;
  text-align: center;
}
.beta-gate h1 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}
.beta-gate .subtitle {
  color: var(--text-muted);
  margin-bottom: 2rem;
}
.beta-gate .input-group {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1rem;
}
.beta-gate input[type="password"] {
  flex: 1;
  padding: 0.75rem 1rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font-size: 1rem;
  outline: none;
}
.beta-gate input[type="password"]:focus {
  border-color: var(--brand);
}
.beta-gate .error {
  color: #ef4444;
  font-size: 0.85rem;
  margin-top: -0.5rem;
  margin-bottom: 1rem;
  display: none;
}

/* ── Download section (hidden until auth) ─────────────────────── */
.beta-content {
  display: none;
  max-width: 40rem;
  margin: 4rem auto;
}
.beta-content.visible { display: block; }

.beta-content h1 {
  font-size: 2rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 0.25rem;
}
.beta-content .version {
  text-align: center;
  color: var(--text-muted);
  margin-bottom: 2rem;
}

.download-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.download-card .platform {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.download-card .platform .os-icon {
  font-size: 1.5rem;
}
.download-card .platform .info h3 {
  font-size: 1rem;
  font-weight: 600;
}
.download-card .platform .info p {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.install-notes {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin-top: 2rem;
}
.install-notes h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}
.install-notes p, .install-notes li {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
}
.install-notes ul {
  list-style: none;
  padding: 0;
}
.install-notes li::before {
  content: '→ ';
  color: var(--brand-light);
}
.install-notes li { margin-bottom: 0.35rem; }

.changelog {
  margin-top: 2rem;
}
.changelog h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}
.changelog ul {
  list-style: disc;
  padding-left: 1.5rem;
}
.changelog li {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 0.25rem;
}

/* ── Responsive ────────────────────────────────────────────────── */
@media (max-width: 640px) {
  .hero { padding: 4rem 0 2rem; }
  .features { padding: 3rem 0; }
  .beta-gate { margin: 4rem auto; padding: 0 1rem; }
  .beta-gate .input-group { flex-direction: column; }
  .download-card { flex-direction: column; align-items: stretch; text-align: center; }
  .download-card .platform { justify-content: center; }
}
