/* ActionDigest — shared styles (vanilla, zero deps) */
:root {
  --bg: #0f1419;
  --surface: #1a2332;
  --surface2: #243044;
  --border: #2d3a4f;
  --text: #e8eef6;
  --muted: #8b9bb4;
  --accent: #3d9cf0;
  --accent-hover: #5aaff5;
  --success: #3ecf8e;
  --warn: #f0b429;
  --danger: #f07178;
  --radius: 10px;
  --font: "Segoe UI", system-ui, -apple-system, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}

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

html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

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

.wrap { width: 100%; max-width: 880px; margin: 0 auto; padding: 0 1.25rem; }

/* Header */
.site-header {
  border-bottom: 1px solid var(--border);
  background: rgba(15, 20, 25, 0.92);
  backdrop-filter: blur(8px);
  position: sticky;
  top: 0;
  z-index: 40;
}
.site-header .inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 0;
  gap: 1rem;
}
.logo {
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--text);
  letter-spacing: -0.02em;
  text-decoration: none;
}
.logo span { color: var(--accent); }
.logo:hover { text-decoration: none; color: var(--text); }
.nav { display: flex; gap: 1rem; align-items: center; flex-wrap: wrap; }
.nav a { color: var(--muted); font-size: 0.9rem; }
.nav a:hover { color: var(--text); text-decoration: none; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.65rem 1.25rem;
  border-radius: var(--radius);
  border: 1px solid transparent;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.btn-primary {
  background: var(--accent);
  color: #0a1220;
}
.btn-primary:hover { background: var(--accent-hover); text-decoration: none; color: #0a1220; }
.btn-ghost {
  background: transparent;
  border-color: var(--border);
  color: var(--text);
}
.btn-ghost:hover { border-color: var(--muted); background: var(--surface); text-decoration: none; color: var(--text); }
.btn-sm { padding: 0.4rem 0.75rem; font-size: 0.85rem; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }

/* Hero */
.hero {
  padding: 3.5rem 0 2.5rem;
  text-align: center;
}
.hero h1 {
  font-size: clamp(1.75rem, 5vw, 2.6rem);
  letter-spacing: -0.03em;
  line-height: 1.2;
  margin-bottom: 1rem;
}
.hero .tagline {
  color: var(--muted);
  font-size: 1.1rem;
  max-width: 36rem;
  margin: 0 auto 1.75rem;
}
.hero-cta { display: flex; gap: 0.75rem; justify-content: center; flex-wrap: wrap; }
.badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent);
  background: rgba(61, 156, 240, 0.12);
  border: 1px solid rgba(61, 156, 240, 0.3);
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  margin-bottom: 1rem;
}

/* Sections */
section { padding: 2.5rem 0; }
section h2 {
  font-size: 1.4rem;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) + 2px);
  padding: 1.5rem;
}
.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}
.feature h3 { font-size: 1.05rem; margin-bottom: 0.4rem; }
.feature p { color: var(--muted); font-size: 0.92rem; }

/* Forms */
label { display: block; font-size: 0.85rem; color: var(--muted); margin-bottom: 0.35rem; }
input[type="email"],
input[type="text"],
input[type="date"],
textarea,
select {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  padding: 0.65rem 0.85rem;
  font-family: inherit;
  font-size: 0.95rem;
}
textarea { min-height: 180px; resize: vertical; font-family: var(--mono); font-size: 0.85rem; line-height: 1.5; }
input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(61, 156, 240, 0.2);
}
.form-row { margin-bottom: 1rem; }
.form-inline { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.form-inline input { flex: 1; min-width: 180px; }
.hint { font-size: 0.8rem; color: var(--muted); margin-top: 0.4rem; }
.success-msg {
  color: var(--success);
  font-size: 0.9rem;
  margin-top: 0.75rem;
  display: none;
}
.success-msg.show { display: block; }

/* Privacy callout */
.privacy {
  background: rgba(62, 207, 142, 0.08);
  border: 1px solid rgba(62, 207, 142, 0.25);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  font-size: 0.9rem;
  color: var(--muted);
}
.privacy strong { color: var(--success); }

/* App layout */
.app-main { flex: 1; padding: 1.5rem 0 3rem; }
.app-toolbar {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: 1rem;
}
.app-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}
@media (min-width: 900px) {
  .app-grid { grid-template-columns: 1fr 1fr; }
}

/* Action items */
.actions-list { list-style: none; display: flex; flex-direction: column; gap: 0.75rem; }
.action-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem;
  position: relative;
}
.action-card.done { opacity: 0.55; }
.action-card.done .action-text { text-decoration: line-through; }
.action-top {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
  margin-bottom: 0.65rem;
}
.action-top input[type="checkbox"] {
  margin-top: 0.35rem;
  width: 1.1rem;
  height: 1.1rem;
  accent-color: var(--accent);
  flex-shrink: 0;
}
.action-text {
  flex: 1;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 6px;
  color: var(--text);
  font-family: inherit;
  font-size: 0.95rem;
  padding: 0.25rem 0.4rem;
  width: 100%;
  resize: vertical;
  min-height: 2.2rem;
}
.action-text:hover, .action-text:focus {
  border-color: var(--border);
  background: var(--bg);
}
.action-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
}
@media (min-width: 500px) {
  .action-meta { grid-template-columns: 1fr 1fr 1fr auto; }
}
.action-meta label { margin-bottom: 0.15rem; font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.04em; }
.action-meta input, .action-meta select {
  padding: 0.4rem 0.5rem;
  font-size: 0.85rem;
}
.tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.tag-action { background: rgba(61,156,240,0.15); color: var(--accent); }
.tag-blocker { background: rgba(240,113,120,0.15); color: var(--danger); }
.tag-question { background: rgba(240,180,41,0.15); color: var(--warn); }
.empty-state {
  text-align: center;
  color: var(--muted);
  padding: 2rem 1rem;
  font-size: 0.95rem;
}
.stats {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 0.75rem;
}
.stats strong { color: var(--text); }

/* Digest preview */
.digest-preview {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem;
  font-family: var(--mono);
  font-size: 0.8rem;
  white-space: pre-wrap;
  max-height: 320px;
  overflow: auto;
  color: var(--muted);
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 2rem 0;
  margin-top: auto;
  font-size: 0.8rem;
  color: var(--muted);
}
.site-footer .disclaimer {
  margin-top: 0.75rem;
  max-width: 40rem;
  line-height: 1.5;
}
.site-footer .brand-line { margin-bottom: 0.25rem; }

/* Pricing teaser */
.price-card {
  text-align: center;
  max-width: 320px;
  margin: 0 auto;
}
.price-card .amount {
  font-size: 2.2rem;
  font-weight: 700;
  letter-spacing: -0.03em;
}
.price-card .amount small { font-size: 1rem; font-weight: 500; color: var(--muted); }

/* File input */
.file-label {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  cursor: pointer;
}
.file-label input[type="file"] { display: none; }

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  border: 0;
}
