/* ==============================================================
   nutriasoft — pages.css
   Shared styles for all subpages (features, pricing, security,
   about, blog, contact, legal, etc.)
   ============================================================== */

/* Page hero */
.page-hero {
  padding: 140px 0 64px;
  background: var(--theme-surface-alt);
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--theme-border);
}
.page-hero__mascot {
  position: absolute; right: 8%; bottom: -10px;
  opacity: 0.92;
  filter: drop-shadow(0 16px 24px rgba(0,0,0,0.12));
  animation: bob 5s ease-in-out infinite;
  pointer-events: none;
}
.page-hero .container { position: relative; z-index: 1; }
.page-hero__eyebrow {
  font-family: var(--font-sans);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--color-brand);
  font-weight: 700;
  font-size: 12px;
}
.page-hero__title {
  font-family: var(--font-display);
  color: var(--color-brand);
  font-size: clamp(40px, 6vw, 72px);
  line-height: 1;
  margin: 14px 0 18px;
  letter-spacing: -0.01em;
}
.page-hero__lead {
  font-family: var(--font-body);
  color: var(--theme-fg-muted);
  font-size: clamp(16px, 1.6vw, 20px);
  line-height: 1.6;
  max-width: 640px;
}
.breadcrumbs {
  display: flex; align-items: center; gap: 8px;
  font-family: var(--font-sans);
  font-size: 13px;
  color: var(--theme-fg-subtle);
  margin-bottom: 8px;
}
.breadcrumbs a { color: var(--theme-fg-muted); text-decoration: none; }
.breadcrumbs a:hover { color: var(--color-brand); }
.breadcrumbs svg { width: 12px; height: 12px; }

/* Section utility */
.page-section { padding: 72px 0; }
.page-section--alt { background: var(--theme-bg-alt); }
.page-section--soft { background: var(--theme-soft-section); }

/* Two-column content */
.prose-grid {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 64px;
}
.prose-toc {
  position: sticky; top: 96px;
  align-self: start;
  font-family: var(--font-sans);
  font-size: 14px;
}
.prose-toc h4 {
  font-size: 12px; text-transform: uppercase; letter-spacing: 0.12em;
  color: var(--theme-fg-subtle); margin: 0 0 12px;
}
.prose-toc ul { list-style: none; padding: 0; margin: 0; }
.prose-toc li { margin: 6px 0; }
.prose-toc a {
  color: var(--theme-fg-muted); text-decoration: none;
  padding: 4px 0; display: block;
  border-left: 2px solid transparent; padding-left: 10px; margin-left: -10px;
  transition: color var(--dur-fast) var(--ease-standard), border-color var(--dur-fast) var(--ease-standard);
}
.prose-toc a:hover, .prose-toc a.is-active { color: var(--color-brand); border-color: var(--color-brand); }

.prose { max-width: 720px; }
.prose h2 {
  font-family: var(--font-sans); font-weight: 700;
  font-size: 28px; line-height: 1.2; margin: 48px 0 16px;
  color: var(--theme-fg);
}
.prose h2:first-child { margin-top: 0; }
.prose h3 {
  font-family: var(--font-sans); font-weight: 600;
  font-size: 20px; margin: 32px 0 10px; color: var(--theme-fg);
}
.prose p {
  font-family: var(--font-body); font-size: 16px; line-height: 1.7;
  color: var(--theme-fg-muted); margin: 0 0 16px;
}
.prose ul, .prose ol {
  font-family: var(--font-body); font-size: 16px; line-height: 1.7;
  color: var(--theme-fg-muted); padding-left: 20px; margin: 0 0 16px;
}
.prose li { margin: 6px 0; }
.prose strong { color: var(--theme-fg); font-weight: 600; }
.prose a { color: var(--color-brand); text-decoration: underline; text-underline-offset: 3px; }
.prose code {
  font-family: var(--font-mono);
  background: var(--theme-chip-bg);
  padding: 2px 6px; border-radius: 4px;
  font-size: 0.92em;
}
.prose blockquote {
  border-left: 3px solid var(--color-brand);
  padding: 8px 20px;
  margin: 24px 0;
  color: var(--theme-fg);
  background: var(--theme-surface-alt);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  font-family: var(--font-sans);
  font-style: italic;
}

/* Generic card grid */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}
.card {
  background: var(--theme-surface);
  border: 1px solid var(--theme-border);
  border-radius: var(--radius-lg);
  padding: 24px;
  transition: border-color var(--dur-base) var(--ease-standard),
              transform var(--dur-base) var(--ease-standard),
              box-shadow var(--dur-base) var(--ease-standard);
}
.card:hover { border-color: var(--color-brand); transform: translateY(-2px); box-shadow: var(--theme-shadow-md); }
.card__icon {
  width: 44px; height: 44px; border-radius: var(--radius-md);
  background: var(--theme-surface-alt); color: var(--color-brand);
  display: grid; place-items: center; margin-bottom: 14px;
}
.card h3 {
  font-family: var(--font-sans); font-weight: 600; font-size: 18px;
  margin: 0 0 6px; color: var(--theme-fg);
}
.card p {
  font-family: var(--font-body); font-size: 14px; line-height: 1.6;
  color: var(--theme-fg-muted); margin: 0;
}

/* Call-to-action block */
.cta-block {
  padding: 48px;
  background: linear-gradient(135deg, var(--color-brand) 0%, #026A2C 100%);
  border-radius: var(--radius-xl);
  color: #fff;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-block h3 {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 44px);
  margin: 0 0 8px;
  line-height: 1.1;
}
.cta-block p { opacity: 0.92; margin: 0 0 20px; font-family: var(--font-body); font-size: 16px; }
.cta-block .btn--white { color: var(--color-brand); }
.cta-block__mascot {
  position: absolute; right: 24px; bottom: -10px;
  opacity: 0.9;
}
@media (max-width: 640px) {
  .cta-block { padding: 32px 24px; }
  .cta-block__mascot { display: none; }
}

/* Responsive */
@media (max-width: 900px) {
  .prose-grid { grid-template-columns: 1fr; gap: 24px; }
  .prose-toc { position: static; display: none; }
  .page-hero { padding: 112px 0 48px; }
  .page-hero__mascot { transform: scale(0.7); right: -10px; }
}

/* Changelog */
.changelog-entry {
  padding: 24px 0;
  border-bottom: 1px solid var(--theme-border);
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 32px;
}
.changelog-entry:last-child { border-bottom: 0; }
.changelog-meta {
  font-family: var(--font-sans);
  font-size: 13px;
  color: var(--theme-fg-subtle);
}
.changelog-meta .version {
  display: inline-block;
  background: var(--color-brand); color: #fff;
  padding: 3px 10px; border-radius: 999px;
  font-weight: 600; font-size: 11px;
  margin-bottom: 6px;
}
.changelog-body h3 {
  font-family: var(--font-sans); font-weight: 700; font-size: 20px;
  margin: 0 0 10px; color: var(--theme-fg);
}
.changelog-body ul { font-size: 15px; }
.tag {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.1em;
  padding: 2px 8px; border-radius: 4px;
  margin-right: 6px;
}
.tag--new { background: var(--ns-green-10); color: var(--color-brand); }
.tag--fix { background: #FFF4DB; color: #8A5B00; }
.tag--improve { background: #E2F0FF; color: #0A5AAD; }
[data-theme="dark"] .tag--new { background: rgba(2,152,63,0.2); color: var(--ns-green-40); }
[data-theme="dark"] .tag--fix { background: rgba(232,169,58,0.2); color: #E8A93A; }
[data-theme="dark"] .tag--improve { background: rgba(10,90,173,0.2); color: #7ABFFF; }
@media (max-width: 640px) {
  .changelog-entry { grid-template-columns: 1fr; gap: 12px; }
}

/* Roadmap */
.roadmap {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
@media (max-width: 900px) {
  .roadmap { grid-template-columns: 1fr; }
}
.roadmap-col {
  background: var(--theme-surface);
  border: 1px solid var(--theme-border);
  border-radius: var(--radius-lg);
  padding: 24px;
}
.roadmap-col h3 {
  font-family: var(--font-sans); font-weight: 700; font-size: 16px;
  margin: 0 0 4px; color: var(--theme-fg);
  display: flex; align-items: center; gap: 10px;
}
.roadmap-col h3 .dot {
  width: 10px; height: 10px; border-radius: 50%;
}
.roadmap-col h3 .dot.now { background: var(--color-brand); }
.roadmap-col h3 .dot.next { background: #E8A93A; }
.roadmap-col h3 .dot.later { background: var(--theme-fg-subtle); }
.roadmap-col__meta { font-family: var(--font-sans); font-size: 12px; color: var(--theme-fg-subtle); margin-bottom: 16px; }
.roadmap-item {
  padding: 12px 0;
  border-top: 1px solid var(--theme-border);
  font-family: var(--font-body);
  font-size: 14px; color: var(--theme-fg);
}
.roadmap-item__meta { font-size: 12px; color: var(--theme-fg-subtle); margin-top: 2px; }

/* Blog listing */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}
.post-card {
  background: var(--theme-surface);
  border: 1px solid var(--theme-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform var(--dur-base) var(--ease-standard),
              box-shadow var(--dur-base) var(--ease-standard);
  display: flex; flex-direction: column;
}
.post-card:hover { transform: translateY(-3px); box-shadow: var(--theme-shadow-md); }
.post-card__img {
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, var(--ns-green-10), var(--color-brand));
  position: relative;
  display: grid; place-items: center;
}
.post-card__img svg { opacity: 0.85; }
.post-card__body { padding: 20px; flex: 1; display: flex; flex-direction: column; }
.post-card__meta {
  font-family: var(--font-sans); font-size: 12px;
  color: var(--theme-fg-subtle); letter-spacing: 0.06em;
  text-transform: uppercase; margin-bottom: 8px;
}
.post-card h3 {
  font-family: var(--font-sans); font-weight: 600; font-size: 18px;
  line-height: 1.3; margin: 0 0 8px; color: var(--theme-fg);
}
.post-card p {
  font-family: var(--font-body); font-size: 14px; line-height: 1.6;
  color: var(--theme-fg-muted); margin: 0 0 16px; flex: 1;
}
.post-card__link {
  font-family: var(--font-sans); font-weight: 600; font-size: 14px;
  color: var(--color-brand); text-decoration: none;
  display: inline-flex; align-items: center; gap: 6px;
}

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}
@media (max-width: 900px) {
  .contact-grid { grid-template-columns: 1fr; }
}
.contact-methods { display: flex; flex-direction: column; gap: 16px; }
.contact-method {
  display: flex; gap: 16px; align-items: flex-start;
  padding: 18px; border: 1px solid var(--theme-border); border-radius: var(--radius-lg);
  background: var(--theme-surface);
  transition: border-color var(--dur-fast) var(--ease-standard);
}
.contact-method:hover { border-color: var(--color-brand); }
.contact-method__icon {
  width: 40px; height: 40px; border-radius: var(--radius-md);
  background: var(--theme-surface-alt); color: var(--color-brand);
  display: grid; place-items: center; flex-shrink: 0;
}
.contact-method h4 { font-family: var(--font-sans); font-weight: 600; font-size: 15px; margin: 0 0 2px; color: var(--theme-fg); }
.contact-method p { margin: 0; font-size: 13px; color: var(--theme-fg-muted); }
.contact-method a { color: var(--color-brand); font-weight: 600; text-decoration: none; }

.contact-form {
  background: var(--theme-surface);
  border: 1px solid var(--theme-border);
  border-radius: var(--radius-xl);
  padding: 32px;
}
.form-row { display: flex; flex-direction: column; gap: 8px; margin-bottom: 16px; }
.form-row label { font-family: var(--font-sans); font-weight: 600; font-size: 13px; color: var(--theme-fg); }
.form-row input, .form-row textarea, .form-row select {
  font: inherit; font-family: var(--font-body);
  background: var(--theme-bg); color: var(--theme-fg);
  border: 1px solid var(--theme-border);
  padding: 12px 14px; border-radius: var(--radius-md);
  font-size: 15px;
  transition: border-color var(--dur-fast) var(--ease-standard), box-shadow var(--dur-fast) var(--ease-standard);
}
.form-row input:focus, .form-row textarea:focus, .form-row select:focus {
  outline: none; border-color: var(--color-brand); box-shadow: var(--shadow-focus);
}
.form-row textarea { min-height: 140px; resize: vertical; }
.form-row-double { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 500px) { .form-row-double { grid-template-columns: 1fr; } }

/* Team */
.team-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 24px;
}
.team-card { text-align: center; }
.team-card__photo {
  width: 120px; height: 120px; margin: 0 auto 12px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--ns-green-10), var(--color-brand));
  display: grid; place-items: center;
  color: #fff; font-family: var(--font-display); font-size: 44px;
  border: 3px solid var(--theme-surface);
  box-shadow: var(--theme-shadow-md);
}
.team-card h4 { font-family: var(--font-sans); font-weight: 600; margin: 0 0 2px; color: var(--theme-fg); }
.team-card p { font-family: var(--font-sans); font-size: 13px; color: var(--theme-fg-subtle); margin: 0; }

/* Status */
.status-bar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 24px; border-radius: var(--radius-lg);
  background: var(--ns-green-10); color: var(--color-brand);
  margin-bottom: 32px;
  font-family: var(--font-sans); font-weight: 600;
}
[data-theme="dark"] .status-bar { background: rgba(2,152,63,0.14); color: var(--ns-green-40); }
.status-bar__dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--color-brand);
  box-shadow: 0 0 0 6px rgba(2,152,63,0.2);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 6px rgba(2,152,63,0.2); }
  50% { box-shadow: 0 0 0 10px rgba(2,152,63,0); }
}
.status-service {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 20px; border: 1px solid var(--theme-border); border-radius: var(--radius-md);
  margin-bottom: 10px;
  font-family: var(--font-sans);
}
.status-ok { color: var(--color-brand); font-weight: 600; }

.status-chart {
  display: grid; grid-template-columns: repeat(90, 1fr); gap: 2px;
  margin: 8px 0;
}
.status-chart div {
  height: 22px; border-radius: 2px;
  background: var(--color-brand);
}
.status-chart div.warn { background: #E8A93A; }
.status-chart div.down { background: var(--ns-red); }
@media (max-width: 640px) { .status-chart { grid-template-columns: repeat(45, 1fr); } }

/* Pricing compare */
.compare-table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--font-sans);
  font-size: 14px;
  background: var(--theme-surface);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--theme-border);
}
.compare-table thead th {
  text-align: left; padding: 18px 20px;
  font-size: 14px; font-weight: 700;
  color: var(--theme-fg);
  background: var(--theme-surface-alt);
  border-bottom: 1px solid var(--theme-border);
}
.compare-table thead th.featured-col { background: var(--color-brand); color: #fff; }
.compare-table td { padding: 14px 20px; border-bottom: 1px solid var(--theme-border); color: var(--theme-fg-muted); }
.compare-table td:first-child { color: var(--theme-fg); font-weight: 500; }
.compare-table tr:last-child td { border-bottom: 0; }
.compare-table td.yes { color: var(--color-brand); }
.compare-table .section-row td {
  background: var(--theme-bg-alt);
  font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em;
  font-size: 12px; color: var(--theme-fg-subtle);
}

/* Public nav simpler — reuse existing */
