/* Mrs. Nudgely Schedules — Global Styles
   Zen aesthetic: Cormorant Garamond + Inter, dark theme, teal accent */

:root {
  --bg: #0a0a0a;
  --card: #141414;
  --text: #fafafa;
  --muted: #888;
  --border: #2a2a2a;
  --accent: #14b8a6;
  --accent-dim: rgba(20,184,166,0.12);
  --serif: 'Cormorant Garamond', Georgia, serif;
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

/* Nav */
.nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 32px;
  border-bottom: 1px solid var(--border);
}
.nav-brand {
  font-family: var(--serif);
  font-size: 1.15rem; font-weight: 300; font-style: italic;
  color: var(--text); letter-spacing: 0.04em;
}
.nav-links { display: flex; gap: 24px; align-items: center; }
.nav-links a { font-size: 0.85rem; color: var(--muted); transition: color 0.15s; }
.nav-links a:hover { color: var(--text); text-decoration: none; }
.nav-links .btn-sm {
  padding: 6px 16px; border-radius: 4px;
  background: var(--accent); color: var(--bg);
  font-weight: 500; font-size: 0.8rem;
  transition: opacity 0.15s;
}
.nav-links .btn-sm:hover { opacity: 0.85; }

/* Hero */
.hero {
  text-align: center;
  padding: 100px 32px 80px;
  max-width: 680px; margin: 0 auto;
}
.hero h1 {
  font-family: var(--serif);
  font-size: 3rem; font-weight: 300; font-style: italic;
  line-height: 1.15; margin-bottom: 20px;
  letter-spacing: 0.02em;
}
.hero h1 span { color: var(--accent); }
.hero p {
  font-size: 1.05rem; color: var(--muted);
  max-width: 480px; margin: 0 auto 36px;
  line-height: 1.7;
}

/* Buttons */
.btn {
  display: inline-block; padding: 12px 32px;
  border-radius: 6px; font-size: 0.9rem;
  font-weight: 500; cursor: pointer;
  transition: all 0.15s; border: none;
  font-family: var(--sans);
}
.btn-primary { background: var(--accent); color: var(--bg); }
.btn-primary:hover { opacity: 0.85; text-decoration: none; }
.btn-outline {
  background: transparent; color: var(--text);
  border: 1px solid var(--border);
}
.btn-outline:hover { border-color: var(--accent); text-decoration: none; }
.btn-group { display: flex; gap: 12px; justify-content: center; }

/* Features */
.features {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1px; background: var(--border);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  max-width: 960px; margin: 0 auto;
}
.feature {
  background: var(--card); padding: 40px 32px;
  text-align: center;
}
.feature-icon {
  font-size: 1.8rem; margin-bottom: 12px;
  color: var(--accent);
}
.feature h3 {
  font-family: var(--serif);
  font-size: 1.1rem; font-weight: 400; font-style: italic;
  margin-bottom: 8px;
}
.feature p { font-size: 0.85rem; color: var(--muted); line-height: 1.6; }

/* Demo section */
.demo {
  max-width: 800px; margin: 80px auto;
  padding: 0 32px;
}
.demo h2 {
  font-family: var(--serif);
  font-size: 1.6rem; font-weight: 300; font-style: italic;
  text-align: center; margin-bottom: 32px;
}

/* Pricing */
.pricing {
  text-align: center;
  padding: 80px 32px;
  border-top: 1px solid var(--border);
}
.pricing h2 {
  font-family: var(--serif);
  font-size: 1.6rem; font-weight: 300; font-style: italic;
  margin-bottom: 12px;
}
.pricing .subtitle { color: var(--muted); margin-bottom: 40px; }
.price-card {
  display: inline-block;
  background: var(--card); border: 1px solid var(--border);
  border-radius: 8px; padding: 40px 48px;
  text-align: center;
}
.price-amount {
  font-size: 2.4rem; font-weight: 600; color: var(--accent);
}
.price-amount span { font-size: 0.9rem; font-weight: 400; color: var(--muted); }
.price-features {
  list-style: none; margin: 24px 0;
  text-align: left;
}
.price-features li {
  font-size: 0.85rem; color: var(--muted);
  padding: 6px 0; border-bottom: 1px solid var(--border);
}
.price-features li::before {
  content: '\2713'; color: var(--accent); margin-right: 8px;
}

/* Footer */
.footer {
  text-align: center; padding: 40px 32px;
  border-top: 1px solid var(--border);
  font-size: 0.8rem; color: var(--muted);
}
.footer a { color: var(--muted); }

/* Auth forms */
.auth-page {
  min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  padding: 32px;
}
.auth-card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: 8px; padding: 48px;
  width: 100%; max-width: 400px;
}
.auth-card h2 {
  font-family: var(--serif);
  font-size: 1.4rem; font-weight: 300; font-style: italic;
  margin-bottom: 8px;
}
.auth-card .subtitle {
  font-size: 0.85rem; color: var(--muted); margin-bottom: 32px;
}
.form-group { margin-bottom: 20px; }
.form-group label {
  display: block; font-size: 0.8rem; font-weight: 500;
  color: var(--muted); margin-bottom: 6px;
}
.form-group input {
  width: 100%; padding: 10px 14px;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border); border-radius: 6px;
  color: var(--text); font-family: var(--sans); font-size: 0.9rem;
  outline: none; transition: border-color 0.2s;
}
.form-group input:focus { border-color: var(--accent); }
.auth-card .btn { width: 100%; text-align: center; }
.auth-card .alt-link {
  display: block; text-align: center;
  margin-top: 20px; font-size: 0.85rem; color: var(--muted);
}
.auth-error {
  display: none; background: rgba(231,76,60,0.1);
  border: 1px solid rgba(231,76,60,0.3);
  color: #e74c3c; font-size: 0.8rem;
  padding: 10px 14px; border-radius: 6px;
  margin-bottom: 16px;
}
.auth-error.visible { display: block; }

/* Dashboard */
.dashboard-layout {
  max-width: 960px; margin: 0 auto; padding: 32px;
}
.dashboard-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 32px;
}
.dashboard-header h1 {
  font-family: var(--serif);
  font-size: 1.5rem; font-weight: 300; font-style: italic;
}
.user-info { font-size: 0.85rem; color: var(--muted); }
.user-info a { margin-left: 16px; }

/* CalDAV setup */
.setup-section {
  background: var(--card); border: 1px solid var(--border);
  border-radius: 8px; padding: 32px; margin-top: 32px;
}
.setup-section h3 {
  font-family: var(--serif);
  font-size: 1.1rem; font-weight: 400; font-style: italic;
  margin-bottom: 16px;
}
.setup-steps { counter-reset: steps; }
.setup-steps li {
  counter-increment: steps;
  font-size: 0.85rem; color: var(--muted);
  padding: 10px 0; border-bottom: 1px solid var(--border);
  line-height: 1.6;
}
.setup-steps li::before {
  content: counter(steps) '.';
  color: var(--accent); font-weight: 600; margin-right: 8px;
}
.setup-steps li:last-child { border-bottom: none; }
.setup-credential {
  font-family: 'SF Mono', 'Fira Code', monospace;
  background: rgba(20,184,166,0.08);
  padding: 2px 8px; border-radius: 3px;
  color: var(--accent); font-size: 0.85rem;
  user-select: all;
}

/* Embed code */
.embed-section {
  background: var(--card); border: 1px solid var(--border);
  border-radius: 8px; padding: 32px; margin-top: 24px;
}
.embed-section h3 {
  font-family: var(--serif);
  font-size: 1.1rem; font-weight: 400; font-style: italic;
  margin-bottom: 12px;
}
.embed-code {
  background: var(--bg); border: 1px solid var(--border);
  border-radius: 6px; padding: 16px;
  font-family: 'SF Mono', 'Fira Code', monospace;
  font-size: 0.8rem; color: var(--accent);
  overflow-x: auto; white-space: pre; user-select: all;
}

/* Responsive */
@media (max-width: 640px) {
  .hero { padding: 60px 20px 48px; }
  .hero h1 { font-size: 2rem; }
  .nav { padding: 16px 20px; }
  .nav-links { gap: 12px; }
  .btn-group { flex-direction: column; align-items: center; }
  .features { grid-template-columns: 1fr; }
  .auth-card { padding: 32px 24px; }
  .dashboard-header { flex-direction: column; gap: 12px; }
}
