*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #0f0f13;
  --surface: #1a1a24;
  --border: #2a2a3a;
  --text: #e8e8f0;
  --muted: #888899;
  --accent: #6c63ff;
  --danger: #e03e3e;
  --danger-hover: #c22d2d;
  --success: #2ea84a;
  --radius: 12px;
  --font: 'Inter', system-ui, sans-serif;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  line-height: 1.6;
  min-height: 100vh;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 2rem;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  background: var(--bg);
  z-index: 10;
}

.nav-logo {
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--text);
  text-decoration: none;
}

.nav-links { display: flex; gap: 1.5rem; }
.nav-links a { color: var(--muted); font-size: 0.95rem; }
.nav-links a:hover { color: var(--text); text-decoration: none; }

main {
  max-width: 820px;
  margin: 0 auto;
  padding: 3rem 2rem 6rem;
}

.hero {
  text-align: center;
  padding: 4rem 0 3rem;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}

.hero p {
  font-size: 1.15rem;
  color: var(--muted);
  max-width: 480px;
  margin: 0 auto 2rem;
}

.badge-row {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.badge-row img { height: 52px; }

.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
  margin: 3rem 0;
}

.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
}

.feature-card .icon { font-size: 1.8rem; margin-bottom: 0.75rem; }
.feature-card h3 { font-size: 1rem; font-weight: 600; margin-bottom: 0.4rem; }
.feature-card p { font-size: 0.9rem; color: var(--muted); }

/* Account / deletion page */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2.5rem;
  max-width: 480px;
  margin: 3rem auto 0;
  text-align: center;
}

.card h1 { font-size: 1.6rem; font-weight: 700; margin-bottom: 0.5rem; }
.card .subtitle { color: var(--muted); font-size: 0.95rem; margin-bottom: 2rem; }

.user-info {
  display: none;
  margin-bottom: 2rem;
}

.user-info .name {
  font-size: 1.1rem;
  font-weight: 600;
}

.user-info .provider-label {
  font-size: 0.85rem;
  color: var(--muted);
  margin-top: 0.2rem;
}

.btn {
  display: inline-block;
  width: 100%;
  padding: 0.85rem 1.5rem;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s;
}

.btn-danger {
  background: var(--danger);
  color: #fff;
}

.btn-danger:hover { background: var(--danger-hover); }

.btn-ghost {
  background: transparent;
  color: var(--muted);
  border: 1px solid var(--border);
  margin-top: 0.75rem;
}

.btn-ghost:hover { color: var(--text); border-color: var(--muted); }

.confirm-box {
  display: none;
  background: #2a1212;
  border: 1px solid #5a2020;
  border-radius: 8px;
  padding: 1.25rem;
  margin-top: 1.25rem;
  text-align: left;
}

.confirm-box p {
  font-size: 0.9rem;
  color: #f0a0a0;
  margin-bottom: 1rem;
}

.success-box {
  display: none;
  color: var(--success);
  font-size: 1rem;
  margin-top: 1rem;
}

.apple-note {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  font-size: 0.85rem;
  color: var(--muted);
}

/* Google sign-in button container alignment */
#g_id_onload { display: none; }

.google-btn-wrapper {
  display: flex;
  justify-content: center;
  margin-bottom: 1rem;
}

/* Terms page */
.prose h1 { font-size: 2rem; font-weight: 700; margin-bottom: 0.5rem; }
.prose .date { color: var(--muted); font-size: 0.9rem; margin-bottom: 2.5rem; }
.prose h2 { font-size: 1.2rem; font-weight: 600; margin: 2rem 0 0.75rem; }
.prose p, .prose li { font-size: 0.95rem; color: var(--muted); margin-bottom: 0.75rem; }
.prose ul { padding-left: 1.5rem; }
.prose a { color: var(--accent); }

footer {
  border-top: 1px solid var(--border);
  text-align: center;
  padding: 2rem;
  color: var(--muted);
  font-size: 0.85rem;
}

footer a { color: var(--muted); }
footer a:hover { color: var(--text); }
