/* ==========================================================================
   pages.css — page-specific styling: home, article body, login, checkout, dashboard
   ========================================================================== */

/* home hero */
.hero { padding: 108px 0 64px; text-align: center; }
.hero .eyebrow-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  color: var(--color-text-muted);
  border: 1px solid var(--color-border-dark);
  border-radius: var(--radius-pill);
  padding: 7px 16px 7px 12px;
  margin-bottom: 28px;
  background: var(--color-surface);
}
.hero .eyebrow-pill .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--color-accent); }
.hero h1 { font-size: 52px; max-width: 780px; margin: 0 auto; }
.hero h1 em { font-style: normal; color: var(--color-accent); }
.hero .lede { margin: 26px auto 0; max-width: 540px; color: var(--color-text-muted); font-size: 17px; }
.hero .cta-row { margin-top: 36px; display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; }

.stat-row { margin-top: 64px; display: flex; justify-content: center; gap: 0; padding-top: 40px; border-top: 1px solid var(--color-border); }
.stat-row .stat-item { padding: 0 40px; text-align: center; border-left: 1px solid var(--color-border); }
.stat-row .stat-item:first-child { border-left: none; }
.stat-row strong { display: block; font-family: var(--font-mono); font-size: 28px; font-weight: 600; color: var(--color-accent-strong); }
.stat-row span { font-size: 13px; color: var(--color-text-light); }

.section { padding: 72px 0; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 36px; gap: 16px; }
.section-head h2 { font-size: 28px; margin-top: 8px; }
.section-head .see-all {
  font-size: 14px; color: var(--color-text-muted); display: inline-flex; align-items: center; gap: 6px;
  transition: color .15s ease, gap .15s ease; flex-shrink: 0; padding-bottom: 4px;
}
.section-head .see-all:hover { color: var(--color-accent-strong); gap: 10px; }

/* article body / prose */
.prose { font-size: 17.5px; color: var(--color-text); }
.prose p { margin: 0 0 24px; }
.prose h2 { font-size: 25px; margin: 48px 0 18px; scroll-margin-top: 100px; }
.prose h3 { font-size: 19px; font-family: var(--font-sans); font-weight: 700; margin: 34px 0 14px; }
.prose ul, .prose ol { margin: 0 0 24px; padding-left: 22px; }
.prose li { margin-bottom: 9px; }
.prose blockquote {
  margin: 34px 0; padding: 20px 24px; border-left: 2px solid var(--color-accent);
  background: var(--color-surface); border-radius: 0 var(--radius-md) var(--radius-md) 0;
  color: var(--color-text-muted); font-family: var(--font-serif); font-size: 19px;
}
.prose .figure {
  margin: 34px 0; border: 1px solid var(--color-border); border-radius: var(--radius-md);
  background: var(--color-surface); aspect-ratio: 16/9; display: flex; align-items: center;
  justify-content: center; color: var(--color-text-light); font-size: 13px;
}
.prose strong { color: var(--color-text); font-weight: 700; }
.prose img { border-radius: var(--radius-md); margin: 16px 0; }

/* login page */
.login-shell { min-height: calc(100vh - 68px); display: flex; align-items: center; justify-content: center; padding: 48px 20px; }
.login-card {
  width: 100%; max-width: 400px; background: var(--color-surface); border: 1px solid var(--color-border);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); padding: 40px 36px; text-align: center;
}
.login-card .logo { justify-content: center; margin-bottom: 10px; }
.login-card .lede { color: var(--color-text-muted); font-size: 14px; margin-bottom: 30px; }
.login-form { display: flex; flex-direction: column; gap: 14px; text-align: left; }
.login-divider { display: flex; align-items: center; gap: 12px; margin: 26px 0; color: var(--color-text-light); font-size: 13px; }
.login-divider::before, .login-divider::after { content: ""; flex: 1; height: 1px; background: var(--color-border); }
.social-row { display: flex; flex-direction: column; gap: 10px; }
.social-btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; }
.login-terms { margin-top: 30px; font-size: 12px; color: var(--color-text-light); line-height: 1.7; }

/* checkout page */
.checkout-shell { max-width: 520px; margin: 0 auto; padding: 56px 20px 80px; }
.checkout-summary {
  display: flex; align-items: center; gap: 14px; padding: 20px; border: 1px solid var(--color-border);
  border-radius: var(--radius-lg); background: var(--color-surface); margin-bottom: 28px;
}
.checkout-summary .price { margin-left: auto; font-family: var(--font-mono); font-weight: 600; font-size: 19px; color: var(--color-accent-strong); }
.test-mode-note {
  font-size: 12.5px; color: var(--color-text-light); background: var(--color-surface);
  border: 1px dashed var(--color-border-dark); border-radius: var(--radius-sm); padding: 12px 14px;
  margin-bottom: 24px; line-height: 1.6;
}

/* dashboard page */
.dash-shell { max-width: 880px; margin: 0 auto; padding: 48px 20px 100px; }
.dash-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 28px; flex-wrap: wrap; gap: 12px; }
.dash-table { display: flex; flex-direction: column; border: 1px solid var(--color-border); border-radius: var(--radius-lg); overflow: hidden; }
.dash-row { display: flex; align-items: center; gap: 14px; padding: 16px 18px; border-bottom: 1px solid var(--color-border); flex-wrap: wrap; }
.dash-row:last-child { border-bottom: none; }
.dash-row .title { flex: 1; min-width: 140px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dash-row .meta { font-size: 12.5px; color: var(--color-text-light); flex-shrink: 0; }
.dash-row .row-actions { display: flex; gap: 6px; flex-shrink: 0; margin-left: auto; }
.status-pill { font-size: 11px; padding: 2px 8px; border-radius: 999px; border: 1px solid var(--color-border); color: var(--color-text-light); }
.status-pill.published { color: var(--color-success); border-color: rgba(63, 107, 79, .3); }
.status-pill, .dash-row .meta { font-family: var(--font-mono); }
.editor-toolbar { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 10px; }
.editor-toolbar button { background: var(--color-paper); border: 1px solid var(--color-border); color: var(--color-text-muted); border-radius: 6px; padding: 8px 12px; font-size: 13px; min-height: 40px; }
.editor-toolbar button:hover { color: var(--color-text); border-color: var(--color-border-dark); }
.dash-editor-body {
  min-height: 280px; background: var(--color-paper); border: 1px solid var(--color-border);
  border-radius: var(--radius-md); padding: 18px 20px; font-size: 15.5px; line-height: 1.7;
}
.dash-editor-body:focus { outline: none; border-color: var(--color-accent); }
.dash-editor-body h2 { font-family: var(--font-serif); font-size: 22px; margin: 20px 0 10px; }
.dash-editor-body blockquote { border-left: 2px solid var(--color-accent); padding-left: 14px; color: var(--color-text-muted); margin: 14px 0; }
.dash-editor-body p { margin: 0 0 12px; }
.form-grid { display: grid; grid-template-columns: 1fr; gap: 16px; margin-bottom: 18px; }
.form-row { display: flex; gap: 16px; flex-wrap: wrap; }
.form-row > div { flex: 1; min-width: 180px; }
