/* mirv.app marketing site — shared styles. Palette mirrors the app (apps/web). */
:root {
  --bg: #f4f5f8;
  --panel: #ffffff;
  --sunken: #f7f8fa;
  --border: #e9ebf0;
  --border-strong: #dfe2e9;
  --text: #14161c;
  --muted: #6b7280;
  --faint: #9aa1ad;
  --accent: #4f46e5;
  --accent-2: #6366f1;
  --accent-soft: #eef0fe;
  --accent-grad: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
  --r-sm: 10px;
  --r: 14px;
  --r-lg: 18px;
  --r-xl: 22px;
  --shadow-sm: 0 1px 2px rgba(16, 24, 40, 0.04), 0 1px 3px rgba(16, 24, 40, 0.06);
  --shadow: 0 1px 2px rgba(16, 24, 40, 0.04), 0 8px 24px -12px rgba(16, 24, 40, 0.18);
  --shadow-lg: 0 2px 6px rgba(16, 24, 40, 0.06), 0 24px 48px -20px rgba(16, 24, 40, 0.28);
  --maxw: 1080px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(244, 245, 248, 0.82);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--border);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 20px;
  letter-spacing: -0.02em;
  color: var(--text);
}
.brand:hover { text-decoration: none; }
.brand .logo {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: var(--accent-grad);
  box-shadow: var(--shadow-sm);
}
.nav { display: flex; align-items: center; gap: 8px; }
.nav a { color: var(--muted); font-weight: 600; font-size: 15px; padding: 8px 12px; border-radius: var(--r-sm); }
.nav a:hover { color: var(--text); background: var(--panel); text-decoration: none; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 15px;
  padding: 11px 20px;
  border-radius: var(--r-sm);
  transition: transform 0.16s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.16s;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--accent-grad); color: #fff; box-shadow: var(--shadow); }
.btn-primary:hover { box-shadow: var(--shadow-lg); }
.btn-ghost { background: var(--panel); color: var(--text); border: 1px solid var(--border-strong); box-shadow: var(--shadow-sm); }

/* ---------- Hero ---------- */
.hero { padding: 84px 0 56px; text-align: center; }
.eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 22px;
}
.hero h1 {
  font-size: clamp(36px, 6vw, 60px);
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin: 0 auto 20px;
  max-width: 16ch;
  font-weight: 800;
}
.hero p.lede {
  font-size: clamp(17px, 2.4vw, 21px);
  color: var(--muted);
  max-width: 60ch;
  margin: 0 auto 32px;
}
.hero-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.hero-note { margin-top: 16px; font-size: 14px; color: var(--faint); }

/* ---------- Sections ---------- */
section { padding: 56px 0; }
.section-head { text-align: center; max-width: 56ch; margin: 0 auto 44px; }
.section-head h2 { font-size: clamp(26px, 4vw, 36px); letter-spacing: -0.02em; margin: 0 0 12px; font-weight: 800; }
.section-head p { color: var(--muted); font-size: 17px; margin: 0; }

.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
}
.card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 26px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.16s, box-shadow 0.16s;
}
.card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.card .icon {
  width: 42px;
  height: 42px;
  border-radius: 11px;
  background: var(--accent-soft);
  display: grid;
  place-items: center;
  font-size: 20px;
  margin-bottom: 14px;
}
.card h3 { margin: 0 0 8px; font-size: 18px; letter-spacing: -0.01em; }
.card p { margin: 0; color: var(--muted); font-size: 15px; }

/* ---------- CTA band ---------- */
.cta-band {
  background: var(--accent-grad);
  border-radius: var(--r-xl);
  padding: 52px 32px;
  text-align: center;
  color: #fff;
  box-shadow: var(--shadow-lg);
}
.cta-band h2 { font-size: clamp(26px, 4vw, 34px); margin: 0 0 12px; letter-spacing: -0.02em; }
.cta-band p { margin: 0 auto 26px; max-width: 50ch; opacity: 0.92; font-size: 17px; }
.cta-band .btn-primary { background: #fff; color: var(--accent); }

/* ---------- Legal / content pages ---------- */
.doc { padding: 56px 0 72px; }
.doc .wrap { max-width: 760px; }
.doc h1 { font-size: clamp(30px, 5vw, 42px); letter-spacing: -0.02em; margin: 0 0 8px; }
.doc .updated { color: var(--faint); font-size: 14px; margin: 0 0 36px; }
.doc h2 { font-size: 22px; letter-spacing: -0.01em; margin: 40px 0 12px; }
.doc h3 { font-size: 17px; margin: 26px 0 8px; }
.doc p, .doc li { color: #374151; font-size: 16px; }
.doc ul { padding-left: 22px; }
.doc li { margin-bottom: 8px; }
.doc a { font-weight: 600; }
.doc .panel {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 22px 26px;
  box-shadow: var(--shadow-sm);
  margin: 24px 0;
}

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
  margin-top: 8px;
}
.contact-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 26px;
  box-shadow: var(--shadow-sm);
}
.contact-card h3 { margin: 0 0 6px; font-size: 18px; }
.contact-card p { margin: 0 0 14px; color: var(--muted); font-size: 15px; }
.contact-card .email {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 16px;
}

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--border);
  margin-top: 24px;
  padding: 40px 0;
  background: var(--panel);
}
.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  align-items: center;
  justify-content: space-between;
}
.site-footer .brand { font-size: 17px; }
.site-footer nav { display: flex; gap: 18px; flex-wrap: wrap; }
.site-footer nav a { color: var(--muted); font-weight: 600; font-size: 14px; }
.site-footer nav a:hover { color: var(--text); }
.site-footer .copy { color: var(--faint); font-size: 14px; width: 100%; }

/* ---------- Accessibility ---------- */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  background: var(--accent);
  color: #fff;
  padding: 10px 16px;
  border-radius: 0 0 var(--r-sm) 0;
  font-weight: 700;
  font-size: 14px;
}
.skip-link:focus { left: 0; text-decoration: none; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }

/* ---------- App preview mockup ---------- */
.preview-section { padding: 8px 0 56px; }
.app-preview {
  background: var(--panel);
  border: 1px solid var(--border-strong);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  max-width: 920px;
  margin: 0 auto;
}
.ap-toolbar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 12px 16px;
  background: var(--sunken);
  border-bottom: 1px solid var(--border);
}
.ap-dot { width: 11px; height: 11px; border-radius: 50%; background: #d6d9e0; }
.ap-dot:nth-child(1) { background: #ff5f57; }
.ap-dot:nth-child(2) { background: #febc2e; }
.ap-dot:nth-child(3) { background: #28c840; }
.ap-url {
  margin: 0 auto;
  font-size: 12.5px;
  color: var(--faint);
  background: var(--panel);
  border: 1px solid var(--border);
  padding: 3px 16px;
  border-radius: 999px;
}
.ap-body { display: grid; grid-template-columns: 210px 1fr; min-height: 320px; }
.ap-side { border-right: 1px solid var(--border); padding: 16px 12px; background: var(--sunken); }
.ap-brand { display: flex; align-items: center; gap: 8px; font-weight: 800; font-size: 16px; margin: 4px 6px 16px; }
.ap-logo { width: 22px; height: 22px; border-radius: 7px; background: var(--accent-grad); }
.ap-nav-item {
  padding: 8px 10px;
  border-radius: var(--r-sm);
  font-size: 13.5px;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 3px;
}
.ap-nav-item.active { background: var(--accent-soft); color: var(--accent); }
.ap-sec { font-size: 11px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--faint); margin: 16px 10px 8px; font-weight: 700; }
.ap-main { padding: 22px 26px; }
.ap-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.ap-head h3 { margin: 0; font-size: 18px; }
.ap-toggle { display: inline-flex; background: var(--sunken); border: 1px solid var(--border); border-radius: 999px; padding: 3px; font-size: 12px; font-weight: 700; }
.ap-toggle span { padding: 4px 12px; border-radius: 999px; color: var(--muted); }
.ap-toggle span.on { background: var(--panel); color: var(--accent); box-shadow: var(--shadow-sm); }
.ap-task {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  font-size: 14.5px;
  color: var(--text);
}
.ap-task:last-child { border-bottom: 0; }
.ap-check {
  flex: none;
  width: 19px;
  height: 19px;
  border: 2px solid var(--border-strong);
  border-radius: 6px;
  display: grid;
  place-items: center;
  font-size: 12px;
  color: #fff;
  margin-top: 1px;
}
.ap-check.on { background: var(--accent-grad); border-color: transparent; }
.ap-task.done { color: var(--faint); text-decoration: line-through; }
.ap-sub { flex-basis: 100%; margin: 8px 0 0 30px; border-left: 2px solid var(--border); padding-left: 14px; }
.ap-sub .ap-task { border-bottom: 0; padding: 6px 0; font-size: 13.5px; }
.ap-tag { margin-left: auto; font-size: 11px; font-weight: 700; color: var(--accent); background: var(--accent-soft); padding: 2px 9px; border-radius: 999px; }
.ap-tag.late { color: #b42318; background: #fee4e2; }

/* ---------- FAQ ---------- */
.faq { max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.faq details {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 4px 22px;
  box-shadow: var(--shadow-sm);
}
.faq summary {
  list-style: none;
  cursor: pointer;
  font-weight: 700;
  font-size: 16px;
  padding: 16px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; color: var(--accent); font-size: 22px; font-weight: 700; line-height: 1; }
.faq details[open] summary::after { content: '–'; }
.faq details p { margin: 0 0 18px; color: var(--muted); font-size: 15px; line-height: 1.6; }

@media (max-width: 640px) {
  .nav a:not(.btn) { display: none; }
  .ap-body { grid-template-columns: 1fr; }
  .ap-side { display: none; }
}
