/* Cedarmail — shared styles */

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

:root {
  --bg: #0a1a0f;
  --bg-card: #0f2416;
  --accent: #2d5a3d;
  --accent-hover: #3a7a52;
  --text: #e8e8e8;
  --text-secondary: #a0a0a0;
  --border: #1a3324;
  --radius: 6px;
}

html {
  font-size: 16px;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Layout */
.container {
  width: 100%;
  max-width: 600px;
  padding: 0 24px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Header */
.header {
  padding: 48px 0 0;
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo {
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text);
  text-decoration: none;
}

.badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: var(--accent);
  color: var(--text);
  padding: 3px 10px;
  border-radius: 999px;
}

/* Hero */
.hero {
  padding: 56px 0 0;
}

.hero h1 {
  font-size: 2.25rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.2;
  margin-bottom: 20px;
}

.hero p {
  color: var(--text-secondary);
  font-size: 1.05rem;
  line-height: 1.75;
  max-width: 520px;
}

/* Features */
.features {
  padding: 48px 0 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.feature {
  padding: 16px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.feature-icon {
  color: var(--accent-hover);
  flex-shrink: 0;
  margin-top: 2px;
}

.feature h3 {
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 2px;
}

.feature p {
  color: var(--text-secondary);
  font-size: 0.85rem;
  line-height: 1.55;
}

/* Waitlist form */
.waitlist {
  padding: 40px 0 0;
}

.waitlist-form {
  display: flex;
  gap: 10px;
}

.waitlist-form input[type="email"] {
  flex: 1;
  padding: 12px 16px;
  font-size: 0.95rem;
  font-family: inherit;
  color: var(--text);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  outline: none;
  transition: border-color 0.2s;
}

.waitlist-form input[type="email"]::placeholder {
  color: var(--text-secondary);
  opacity: 0.6;
}

.waitlist-form input[type="email"]:focus {
  border-color: var(--accent);
}

.waitlist-form button {
  padding: 12px 24px;
  font-size: 0.95rem;
  font-family: inherit;
  font-weight: 500;
  color: #fff;
  background: var(--accent);
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s;
}

.waitlist-form button:hover {
  background: var(--accent-hover);
}

.waitlist-success {
  color: var(--accent-hover);
  font-size: 1rem;
}

/* Footer */
.footer {
  margin-top: auto;
  padding: 56px 0 40px;
  font-size: 0.8rem;
  color: var(--text-secondary);
  opacity: 0.7;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
}

.footer a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.2s;
}

.footer a:hover {
  color: var(--text);
}

/* Privacy / content page */
.content {
  padding: 48px 0 0;
}

.back-link {
  display: inline-block;
  font-size: 0.9rem;
  color: var(--text-secondary);
  text-decoration: none;
  margin-bottom: 32px;
  transition: color 0.2s;
}

.back-link:hover {
  color: var(--text);
}

.content h1 {
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}

.content .updated {
  color: var(--text-secondary);
  font-size: 0.85rem;
  margin-bottom: 40px;
}

.content h2 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-top: 36px;
  margin-bottom: 10px;
}

.content p {
  color: var(--text-secondary);
  margin-bottom: 14px;
  line-height: 1.75;
}

.content a {
  color: var(--accent-hover);
  text-decoration: none;
}

.content a:hover {
  text-decoration: underline;
}

/* Responsive */
@media (max-width: 480px) {
  .hero h1 {
    font-size: 1.75rem;
  }

  .waitlist-form {
    flex-direction: column;
  }

  .waitlist-form button {
    width: 100%;
    text-align: center;
  }

  .footer {
    flex-direction: column;
    gap: 6px;
  }
}
