/* Nesto Camera Health – Styles
   Design system: DM Sans + accent blue + neutral grays
   Matches the app's UI design spec (see .kiro/steering/ui-design.md)
*/
:root {
  --ink: #0f1117;
  --ink-2: #3d4250;
  --ink-3: #6b7280;
  --surface: #ffffff;
  --surface-2: #f4f5f7;
  --border: #e4e6ea;
  --accent: #2563eb;
  --accent-hover: #1d4ed8;
  --green-bg: #d1fae5;
  --green-text: #065f46;
  --max-width: 960px;
}

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

body {
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--surface);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

/* Layout */
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 24px; }

/* Header */
.site-header { background: var(--surface); border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 100; }
.site-header .container { display: flex; align-items: center; justify-content: space-between; height: 52px; }
.site-header .logo { font-family: 'DM Serif Display', Georgia, serif; font-size: 1rem; font-weight: 400; color: var(--ink); text-decoration: none; letter-spacing: -0.2px; }
.site-header nav { display: flex; gap: 4px; font-size: 0.8125rem; font-weight: 500; }
.site-header nav a { color: var(--ink-3); padding: 6px 12px; border-radius: 6px; transition: color 0.12s, background 0.12s; }
.site-header nav a:hover { color: var(--ink); background: var(--surface-2); text-decoration: none; }
.site-header nav a.active { color: var(--ink); background: var(--surface-2); font-weight: 600; }

/* Footer */
.site-footer { border-top: 1px solid var(--border); background: var(--surface-2); margin-top: 64px; }
.site-footer .container { padding-top: 40px; padding-bottom: 40px; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 24px; }
.site-footer .footer-brand { font-family: 'DM Serif Display', Georgia, serif; font-weight: 400; color: var(--ink); }
.site-footer .footer-copy { font-size: 0.8125rem; color: var(--ink-3); margin-top: 4px; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 20px; font-size: 0.8125rem; }
.site-footer nav a { color: var(--ink-3); }
.site-footer nav a:hover { color: var(--ink); }

/* Sections */
.section { padding: 64px 0; }
.section--alt { background: var(--surface-2); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-title { font-size: 1.25rem; font-weight: 700; color: var(--ink); text-align: center; margin-bottom: 40px; letter-spacing: -0.3px; }

/* Hero */
.hero { padding: 72px 0 64px; text-align: center; }
.hero h1 { font-size: 2.25rem; font-weight: 700; color: var(--ink); line-height: 1.2; letter-spacing: -0.8px; }
.hero .subtitle { margin-top: 16px; font-size: 1.0625rem; color: var(--ink-3); max-width: 600px; margin-left: auto; margin-right: auto; line-height: 1.7; }

/* Cards grid */
.card-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.card { border: 1px solid var(--border); border-radius: 10px; padding: 24px; background: var(--surface); transition: box-shadow 0.15s, border-color 0.15s; }
.card:hover { box-shadow: 0 4px 16px rgba(0,0,0,0.06); border-color: #c8ccd4; }
.card h3 { font-size: 0.9375rem; font-weight: 700; color: var(--ink); margin-bottom: 8px; }
.card p { font-size: 0.8125rem; color: var(--ink-3); line-height: 1.6; }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; text-align: center; }
.step-num { width: 36px; height: 36px; border-radius: 50%; background: var(--surface-2); color: var(--ink); font-weight: 700; font-size: 0.875rem; display: inline-flex; align-items: center; justify-content: center; margin: 0 auto 12px; border: 1px solid var(--border); }
.steps h3 { font-size: 0.875rem; font-weight: 700; color: var(--ink); margin-bottom: 8px; }
.steps p { font-size: 0.8125rem; color: var(--ink-3); }

/* Audience list */
.audience-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; max-width: 640px; margin: 0 auto; }
.audience-item { border: 1px solid var(--border); border-radius: 8px; padding: 14px 16px; text-align: center; font-size: 0.8125rem; font-weight: 500; color: var(--ink); background: var(--surface); }

/* Trust */
.trust-text { max-width: 640px; margin: 0 auto; text-align: center; color: var(--ink-3); line-height: 1.7; font-size: 0.9375rem; }

/* Page content (legal, support) */
.page-header { padding: 48px 0 0; }
.page-header h1 { font-size: 1.5rem; font-weight: 700; color: var(--ink); letter-spacing: -0.3px; }
.page-header .meta { font-size: 0.8125rem; color: var(--ink-3); margin-top: 6px; }

.content { padding: 40px 0; }
.content h2 { font-size: 1rem; font-weight: 700; color: var(--ink); margin-top: 32px; margin-bottom: 12px; }
.content p, .content li { color: var(--ink-2); line-height: 1.7; margin-bottom: 12px; font-size: 0.9375rem; }
.content ul { padding-left: 20px; }
.content ul li { margin-bottom: 8px; }
.content a { text-decoration: underline; text-underline-offset: 2px; }
.content strong { color: var(--ink); }

/* Contact box */
.contact-box { border: 1px solid var(--border); border-radius: 10px; background: var(--surface-2); padding: 24px; margin-top: 32px; }
.contact-box h2 { margin-top: 0; }

/* FAQ */
.faq { margin-top: 48px; border-top: 1px solid var(--border); padding-top: 48px; }
.faq dt { font-weight: 700; color: var(--ink); margin-top: 24px; font-size: 0.9375rem; }
.faq dd { color: var(--ink-3); line-height: 1.7; margin-top: 6px; font-size: 0.9375rem; }

/* Responsive */
@media (max-width: 640px) {
  .hero h1 { font-size: 1.625rem; }
  .hero { padding: 48px 0 40px; }
  .card-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; gap: 24px; }
  .audience-grid { grid-template-columns: 1fr; }
  .site-header .container { height: 48px; }
  .site-header nav a { padding: 5px 8px; font-size: 0.75rem; }
}
