/* --- Base --- */
:root {
  --fg: #0f172a;
  --fg-muted: #475569;
  --bg: #ffffff;
  --bg-alt: #f8fafc;
  --border: #e2e8f0;
  --accent: #2563eb;
  --accent-hover: #1d4ed8;
  --success: #16a34a;
  --card-shadow: 0 1px 3px rgba(15, 23, 42, 0.05), 0 4px 12px rgba(15, 23, 42, 0.05);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, sans-serif;
  color: var(--fg);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: 880px;
  margin: 0 auto;
  padding: 0 24px;
}

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

h1, h2, h3 { color: var(--fg); line-height: 1.25; }
h1 { font-size: 2rem; margin-top: 0; }
h2 { font-size: 1.4rem; margin-top: 2rem; }
h3 { font-size: 1.1rem; margin-top: 1.4rem; }

p, li { color: var(--fg); }
.lede { font-size: 1.15rem; color: var(--fg-muted); }
.meta { color: var(--fg-muted); font-size: 0.9rem; margin-top: -0.5rem; }

/* --- Header --- */
.site-header {
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 10;
}
.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
}
.brand {
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--fg);
  text-decoration: none;
}
.site-header nav a {
  color: var(--fg-muted);
  margin-left: 20px;
  font-size: 0.95rem;
}
.site-header nav a:hover { color: var(--accent); text-decoration: none; }
.site-header nav a.active { color: var(--accent); font-weight: 600; }

/* --- Hero --- */
.hero {
  padding: 60px 24px 40px;
  text-align: center;
}
.hero h1 {
  font-size: 2.5rem;
  letter-spacing: -0.02em;
}
.cta-row {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-top: 24px;
  flex-wrap: wrap;
}
.button {
  display: inline-block;
  padding: 12px 22px;
  border-radius: 10px;
  font-weight: 600;
  text-decoration: none;
  font-size: 0.95rem;
  transition: transform 0.1s ease, background 0.15s ease;
}
.button.primary { background: var(--accent); color: white; }
.button.primary:hover { background: var(--accent-hover); color: white; text-decoration: none; }
.button.secondary { background: var(--bg-alt); color: var(--fg); border: 1px solid var(--border); }
.button.secondary:hover { background: #eef2f7; text-decoration: none; }

/* --- Features grid --- */
.features { padding: 40px 24px; }
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  margin-top: 20px;
}
.card {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  padding: 20px;
  border-radius: 12px;
}
.card h3 { margin-top: 0; }
.card p { color: var(--fg-muted); margin-bottom: 0; }

/* --- Pro --- */
.pro { padding: 40px 24px; }
.plan-list {
  list-style: none;
  padding: 0;
  margin-top: 16px;
}
.plan-list li {
  padding: 12px 16px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 10px;
  margin-bottom: 8px;
}
.tag {
  display: inline-block;
  background: var(--success);
  color: white;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 4px;
  margin-left: 8px;
  vertical-align: middle;
}
.fine-print {
  font-size: 0.85rem;
  color: var(--fg-muted);
  margin-top: 16px;
}

/* --- Legal pages --- */
.legal {
  padding: 40px 24px;
  max-width: 760px;
}
.legal h2 {
  border-top: 1px solid var(--border);
  padding-top: 1.5rem;
  margin-top: 2rem;
}
.legal ul { padding-left: 22px; }
.legal li { margin-bottom: 6px; }

.contact-card {
  margin: 24px 0;
}

.contact-form { margin-top: 16px; }
.contact-form .field { margin-bottom: 14px; }
.contact-form label {
  display: block;
  font-weight: 600;
  margin-bottom: 6px;
  font-size: 0.95rem;
}
.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form select,
.contact-form textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 1rem;
  font-family: inherit;
  background: white;
  color: var(--fg);
}
.contact-form textarea { resize: vertical; min-height: 120px; }
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}
.contact-form .hint {
  font-size: 0.85rem;
  color: var(--fg-muted);
  margin: 4px 0 0;
}
.contact-form button {
  border: none;
  cursor: pointer;
}
.contact-form .hp { position: absolute; left: -9999px; }

details {
  border-bottom: 1px solid var(--border);
  padding: 12px 0;
}
details summary {
  cursor: pointer;
  font-weight: 600;
  padding: 4px 0;
  list-style: none;
  position: relative;
  padding-right: 24px;
}
details summary::-webkit-details-marker { display: none; }
details summary::after {
  content: "+";
  position: absolute;
  right: 4px;
  top: 4px;
  color: var(--fg-muted);
  font-weight: 400;
}
details[open] summary::after { content: "–"; }
details p { margin: 8px 0 4px; color: var(--fg-muted); }

/* --- Footer --- */
.site-footer {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  margin-top: 60px;
  padding: 30px 24px;
  text-align: center;
  color: var(--fg-muted);
  font-size: 0.9rem;
}
.site-footer .links a { color: var(--fg-muted); margin: 0 4px; }
.site-footer .links a:hover { color: var(--accent); }

/* --- Responsive --- */
@media (max-width: 600px) {
  .hero h1 { font-size: 2rem; }
  .site-header nav a { margin-left: 12px; font-size: 0.9rem; }
  .header-row { padding: 12px 16px; }
}
