/* mirv.app — homepage stylesheet (minimalist redesign, 2026-07).
   Self-contained: index.html links this file INSTEAD of styles.css, so the
   inner pages (features/privacy/terms/contact/docs) keep their existing look
   until they're migrated. */

:root {
  --bg: #ffffff;
  --bg-soft: #fafafa;
  --text: #18181b;
  --muted: #70707b;
  --faint: #a1a1aa;
  --line: #e9e9ee;
  --accent: #6d28d9;
  --accent-strong: #5b21b6;
  --accent-soft: #f4f0fd;
  --accent-border: #e6ddfa;
  --radius: 16px;
  --shadow-sm: 0 1px 2px rgba(24, 24, 27, 0.05);
  --shadow-md: 0 4px 24px rgba(24, 24, 27, 0.07);
  --shadow-lg: 0 24px 64px -16px rgba(24, 24, 27, 0.14);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

h1, h2, h3 { margin: 0; font-weight: 650; letter-spacing: -0.025em; line-height: 1.15; }

a { color: inherit; }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--accent); color: #fff; padding: 10px 16px; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 22px; border-radius: 10px;
  font-size: 0.94rem; font-weight: 600; text-decoration: none;
  border: 1px solid transparent;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); color: #fff; box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--accent-strong); }
.btn-secondary { background: #fff; color: var(--text); border-color: var(--line); box-shadow: var(--shadow-sm); }
.btn-secondary:hover { border-color: #d4d4dc; background: var(--bg-soft); }
.btn-sm { padding: 8px 16px; font-size: 0.88rem; border-radius: 9px; }
.btn .arr { transition: transform 0.15s ease; }
.btn:hover .arr { transform: translateX(2px); }
.btn:focus-visible, a:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; gap: 32px; height: 64px; }
.brand {
  display: inline-flex; align-items: center; gap: 9px;
  font-weight: 700; font-size: 1.22rem; letter-spacing: -0.03em; text-decoration: none;
}
.brand .logo {
  width: 26px; height: 26px; border-radius: 8px; flex: none;
  background: var(--accent) url("/brand/mirv-logo-square.png") center / cover no-repeat;
}
.nav { display: flex; gap: 4px; margin: 0 auto; }
.nav a {
  padding: 7px 13px; border-radius: 8px;
  font-size: 0.92rem; font-weight: 500; color: var(--muted); text-decoration: none;
  transition: color 0.15s ease, background 0.15s ease;
}
.nav a:hover { color: var(--text); background: var(--bg-soft); }
.nav-actions { display: flex; align-items: center; gap: 10px; }
.nav-login {
  font-size: 0.92rem; font-weight: 500; color: var(--muted); text-decoration: none;
  padding: 7px 10px; border-radius: 8px;
}
.nav-login:hover { color: var(--text); }

/* ---------- hero ---------- */
.hero { padding: 88px 0 40px; overflow: hidden; }
.hero-grid {
  display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 56px; align-items: center;
}
.hero h1 { font-size: clamp(2.5rem, 5vw, 3.6rem); }
.hero .lede {
  margin: 22px 0 0; font-size: 1.13rem; color: var(--muted); max-width: 44ch;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero-proof {
  display: flex; align-items: center; gap: 10px; margin-top: 30px;
  font-size: 0.86rem; color: var(--muted);
}
.stars { color: #f5a623; letter-spacing: 2px; font-size: 0.82rem; }
.hero-platforms { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; margin-top: 12px; font-size: 0.84rem; color: var(--faint); }
.hero-platforms a { color: var(--muted); text-decoration: none; font-weight: 500; }
.hero-platforms a:hover { color: var(--accent); }
.hero-platforms .sep { color: var(--line); }

/* ---------- app mockup ---------- */
.mock {
  border: 1px solid var(--line); border-radius: 18px; background: #fff;
  box-shadow: var(--shadow-lg);
  display: grid; grid-template-columns: 168px 1fr;
  overflow: hidden; font-size: 11.5px; line-height: 1.45;
  min-height: 440px;
}
.mock-side { border-right: 1px solid var(--line); background: var(--bg-soft); padding: 14px 10px; display: flex; flex-direction: column; gap: 2px; }
.mock-brand { display: flex; align-items: center; gap: 7px; font-weight: 700; font-size: 13px; padding: 2px 8px 12px; letter-spacing: -0.02em; }
.mock-brand i { width: 18px; height: 18px; border-radius: 5px; background: var(--accent) url("/brand/mirv-logo-square.png") center / cover no-repeat; }
.mock-item {
  display: flex; align-items: center; gap: 8px; padding: 5px 8px; border-radius: 7px;
  color: var(--muted); font-weight: 500;
}
.mock-item svg { width: 13px; height: 13px; flex: none; }
.mock-item.on { background: var(--accent-soft); color: var(--accent); font-weight: 600; }
.mock-item .n { margin-left: auto; font-size: 10px; color: var(--faint); }
.mock-label { padding: 14px 8px 4px; font-size: 9.5px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; color: var(--faint); }
.mock-dot { width: 8px; height: 8px; border-radius: 3px; flex: none; }
.mock-side-foot { margin-top: auto; padding-top: 10px; border-top: 1px solid var(--line); }

.mock-main { display: flex; flex-direction: column; padding: 16px 18px 14px; min-width: 0; }
.mock-head { display: flex; align-items: center; gap: 10px; padding-bottom: 12px; }
.mock-title { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 15px; letter-spacing: -0.02em; }
.mock-title svg { width: 15px; height: 15px; color: var(--accent); }
.mock-sub { color: var(--faint); font-size: 10.5px; }
.mock-new {
  margin-left: auto; background: var(--accent); color: #fff; font-weight: 600;
  padding: 4px 10px; border-radius: 7px; font-size: 10.5px;
}
.mock-group { display: flex; align-items: center; gap: 6px; margin: 10px 0 4px; color: var(--muted); font-weight: 600; font-size: 10.5px; }
.mock-group .n { color: var(--faint); font-weight: 500; background: var(--bg-soft); border: 1px solid var(--line); border-radius: 5px; padding: 0 5px; }
.mock-row {
  display: flex; align-items: center; gap: 9px;
  border: 1px solid var(--line); border-radius: 9px; background: #fff;
  padding: 7px 10px; margin-top: 5px;
}
.mock-check { width: 13px; height: 13px; border: 1.5px solid #d4d4dc; border-radius: 50%; flex: none; }
.mock-row .t { font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mock-tag {
  font-size: 9.5px; font-weight: 600; padding: 1px 7px; border-radius: 20px; flex: none;
  background: var(--accent-soft); color: var(--accent);
}
.mock-tag.green { background: #ecfdf3; color: #12805c; }
.mock-tag.amber { background: #fff7e8; color: #b45309; }
.mock-due { margin-left: auto; color: var(--faint); font-size: 10px; flex: none; }
.mock-ava { width: 16px; height: 16px; border-radius: 50%; flex: none; background: linear-gradient(135deg, #c4b5fd, #7c3aed); }
.mock-ava.b { background: linear-gradient(135deg, #fbc2eb, #e879a9); }
.mock-ava.c { background: linear-gradient(135deg, #a5f3d0, #14b8a6); }

.mock-ai {
  margin-top: auto; padding-top: 14px;
}
.mock-ai-input {
  display: flex; align-items: center; gap: 8px;
  border: 1px solid var(--accent-border); border-radius: 10px;
  padding: 8px 11px; color: var(--faint); background: #fff;
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.mock-ai-input svg { width: 13px; height: 13px; color: var(--accent); flex: none; }
.mock-ai-input .send { margin-left: auto; color: var(--accent); }
.mock-chips { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 8px; }
.mock-chip {
  display: inline-flex; align-items: center; gap: 4px;
  border: 1px solid var(--line); border-radius: 20px; padding: 3px 9px;
  font-size: 9.5px; font-weight: 500; color: var(--muted); background: #fff;
}
.mock-chip svg { width: 9px; height: 9px; color: var(--accent); }

/* ---------- feature cards ---------- */
.cards { padding: 72px 0; }
.cards-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.fcard {
  border: 1px solid var(--line); border-radius: var(--radius); background: #fff;
  padding: 26px 24px; display: flex; flex-direction: column; align-items: flex-start;
  text-decoration: none; transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}
.fcard:hover { border-color: var(--accent-border); box-shadow: var(--shadow-md); transform: translateY(-2px); }
.fcard-icon {
  width: 44px; height: 44px; border-radius: 12px; background: var(--accent-soft);
  display: grid; place-items: center; color: var(--accent); margin-bottom: 34px;
}
.fcard-icon svg { width: 21px; height: 21px; }
.fcard h3 { font-size: 1.14rem; margin-bottom: 10px; }
.fcard p { margin: 0; font-size: 0.9rem; color: var(--muted); }
.fcard .more {
  margin-top: 18px; font-size: 0.88rem; font-weight: 600; color: var(--accent);
  display: inline-flex; align-items: center; gap: 5px;
}
.fcard:hover .more .arr { transform: translateX(2px); }
.more .arr { transition: transform 0.15s ease; }

/* ---------- works-with strip ---------- */
.works {
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  padding: 34px 0; background: var(--bg-soft);
}
.works .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px 36px; }
.works-label { font-size: 0.8rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; color: var(--faint); }
.works-item { font-size: 1.02rem; font-weight: 600; color: #52525b; letter-spacing: -0.01em; }

/* ---------- spotlights ---------- */
.spot { padding: 96px 0; }
.spot.alt { background: var(--bg-soft); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.spot-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; }
.spot-grid.reverse .spot-copy { order: 2; }
.kicker {
  display: inline-block; font-size: 0.8rem; font-weight: 600; letter-spacing: 0.02em;
  color: var(--accent); background: var(--accent-soft); border: 1px solid var(--accent-border);
  padding: 4px 12px; border-radius: 20px; margin-bottom: 18px;
}
.spot h2 { font-size: clamp(1.7rem, 3vw, 2.25rem); }
.spot-copy > p { margin: 16px 0 0; color: var(--muted); font-size: 1.02rem; }
.ticks { list-style: none; margin: 22px 0 0; padding: 0; display: grid; gap: 11px; }
.ticks li { position: relative; padding-left: 28px; font-size: 0.95rem; color: #3f3f46; }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: 3px; width: 17px; height: 17px;
  border-radius: 50%; background: var(--accent-soft);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236d28d9' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E");
  background-size: 9px; background-position: center; background-repeat: no-repeat;
}
.spot-copy .btn { margin-top: 28px; }
.spot code {
  font-family: "SF Mono", ui-monospace, Menlo, monospace; font-size: 0.85em;
  background: var(--accent-soft); color: var(--accent-strong);
  padding: 1px 6px; border-radius: 5px;
}

/* chat mockup */
.chat {
  border: 1px solid var(--line); border-radius: var(--radius); background: #fff;
  box-shadow: var(--shadow-md); overflow: hidden; font-size: 13px;
}
.chat-head { display: flex; align-items: center; gap: 9px; padding: 13px 16px; border-bottom: 1px solid var(--line); }
.chat-avatar { width: 26px; height: 26px; border-radius: 8px; background: var(--accent) url("/brand/mirv-logo-square.png") center / cover no-repeat; }
.chat-name { font-weight: 650; }
.chat-status { margin-left: auto; font-size: 11px; font-weight: 600; color: #12805c; background: #ecfdf3; padding: 2px 9px; border-radius: 20px; }
.chat-body { padding: 18px 16px; display: grid; gap: 10px; }
.bubble { max-width: 85%; padding: 9px 13px; border-radius: 13px; line-height: 1.5; }
.bubble.user { justify-self: end; background: var(--accent); color: #fff; border-bottom-right-radius: 4px; }
.bubble.bot { justify-self: start; background: var(--bg-soft); border: 1px solid var(--line); border-bottom-left-radius: 4px; }
.chat-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chat-chip {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 11px; font-weight: 600; color: #12805c; background: #ecfdf3;
  border: 1px solid #d3f2e3; padding: 3px 10px; border-radius: 20px;
}
.chat-chip svg { width: 10px; height: 10px; }
.typing { display: inline-flex; gap: 4px; align-items: center; padding: 13px; }
.typing span { width: 6px; height: 6px; border-radius: 50%; background: var(--faint); animation: blink 1.2s infinite; }
.typing span:nth-child(2) { animation-delay: 0.2s; }
.typing span:nth-child(3) { animation-delay: 0.4s; }
@keyframes blink { 0%, 80%, 100% { opacity: 0.3; } 40% { opacity: 1; } }
.chat-input { display: flex; align-items: center; padding: 11px 16px; border-top: 1px solid var(--line); color: var(--faint); font-size: 12.5px; }
.chat-input .send { margin-left: auto; color: var(--accent); }
.chat-input svg { width: 15px; height: 15px; }

/* note mockup */
.note {
  border: 1px solid var(--line); border-radius: var(--radius); background: #fff;
  box-shadow: var(--shadow-md); overflow: hidden; font-size: 13px;
}
.note-head { display: flex; align-items: center; padding: 13px 16px; border-bottom: 1px solid var(--line); }
.note-title { font-weight: 650; }
.note-toggle { margin-left: auto; display: inline-flex; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; font-size: 11px; font-weight: 600; }
.note-toggle .seg { padding: 3px 11px; color: var(--muted); }
.note-toggle .seg.on { background: var(--accent-soft); color: var(--accent); }
.note-body { padding: 16px 18px 18px; }
.note-body h4 { margin: 0 0 6px; font-size: 12px; text-transform: uppercase; letter-spacing: 0.05em; color: var(--faint); }
.note-body p { margin: 0 0 14px; }
.note-li { margin: 0 0 6px !important; }
.wikilink { color: var(--accent); font-weight: 600; background: var(--accent-soft); padding: 1px 6px; border-radius: 5px; }
.note-img {
  display: inline-flex; align-items: center; gap: 7px; font-size: 11.5px; color: var(--muted);
  border: 1px dashed var(--line); border-radius: 8px; padding: 6px 11px; margin-bottom: 14px;
}
.note-img svg { width: 14px; height: 14px; }
.note-labels { display: flex; gap: 6px; }
.lab { font-size: 11px; font-weight: 600; color: var(--muted); background: var(--bg-soft); border: 1px solid var(--line); padding: 2px 9px; border-radius: 20px; }

/* code mockup */
.codecard {
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  background: #17171c; box-shadow: var(--shadow-md);
}
.code-head { display: flex; align-items: center; gap: 6px; padding: 11px 15px; border-bottom: 1px solid #2a2a32; }
.code-head .d { width: 10px; height: 10px; border-radius: 50%; }
.code-head .d.r { background: #f87171; } .code-head .d.y { background: #fbbf24; } .code-head .d.g { background: #34d399; }
.code-head .ttl { margin-left: 8px; font-size: 12px; color: #8b8b96; font-family: "SF Mono", ui-monospace, Menlo, monospace; }
.code-body {
  margin: 0; padding: 18px 20px; overflow-x: auto;
  font-family: "SF Mono", ui-monospace, Menlo, monospace; font-size: 12.5px; line-height: 1.7;
  color: #d6d6de;
}
.ck { color: #93c5fd; } .cs { color: #a7f3d0; } .cl { color: #6b6b76; }

/* ---------- everything else ---------- */
.else { padding: 88px 0; text-align: center; }
.else h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); }
.else > .wrap > p { margin: 14px auto 0; color: var(--muted); max-width: 52ch; }
.else-grid {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 10px;
  max-width: 860px; margin: 34px auto 0;
}
.pill {
  font-size: 0.9rem; font-weight: 500; color: #3f3f46;
  border: 1px solid var(--line); background: #fff; border-radius: 24px; padding: 8px 18px;
}
.else .btn { margin-top: 34px; }

/* ---------- FAQ ---------- */
.faq-section { padding: 88px 0; background: var(--bg-soft); border-top: 1px solid var(--line); }
.faq-section h2 { text-align: center; font-size: clamp(1.6rem, 3vw, 2.1rem); }
.faq { max-width: 720px; margin: 40px auto 0; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  cursor: pointer; list-style: none; display: flex; align-items: center; gap: 12px;
  padding: 19px 4px; font-weight: 600; font-size: 1.01rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; margin-left: auto; font-size: 1.3rem; font-weight: 400; color: var(--faint);
  transition: transform 0.2s ease; line-height: 1;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0 4px 20px; color: var(--muted); font-size: 0.95rem; }
.faq a { color: var(--accent); }

/* ---------- CTA ---------- */
.cta { padding: 88px 0 96px; }
.cta-band {
  position: relative; overflow: hidden;
  border: 1px solid var(--line); border-radius: 26px;
  background: linear-gradient(180deg, #fbfaff 0%, #f5f1fd 100%);
  padding: 76px 64px;
}
.cta-band::before {
  content: ""; position: absolute; right: -120px; bottom: -220px;
  width: 560px; height: 560px; border-radius: 50%;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.35) 0%, rgba(139, 92, 246, 0.12) 45%, transparent 70%);
  filter: blur(4px); pointer-events: none;
}
.cta-band::after {
  content: "✦"; position: absolute; right: 150px; bottom: 130px;
  color: #fff; font-size: 34px; text-shadow: 0 0 34px rgba(139, 92, 246, 0.9);
  pointer-events: none;
}
.cta-band h2 { font-size: clamp(2rem, 4vw, 2.9rem); max-width: 15ch; }
.cta-band > p { margin: 18px 0 0; color: var(--muted); max-width: 42ch; font-size: 1.05rem; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.cta-downloads {
  position: relative; display: flex; flex-wrap: wrap; gap: 4px 16px; margin-top: 26px;
  font-size: 0.86rem; color: var(--faint);
}
.cta-downloads a { color: var(--muted); font-weight: 500; text-decoration: none; }
.cta-downloads a:hover { color: var(--accent); }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 44px 0 52px; }
.site-footer .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 20px 40px; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 4px 24px; margin-left: auto; }
.site-footer nav a { font-size: 0.88rem; color: var(--muted); text-decoration: none; }
.site-footer nav a:hover { color: var(--text); }
.site-footer .copy { flex: 1 0 100%; font-size: 0.82rem; color: var(--faint); }
.site-footer .copy a { color: var(--muted); }

/* ---------- responsive ---------- */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .hero { padding-top: 56px; }
  .hero .lede { max-width: 56ch; }
  .cards-grid { grid-template-columns: repeat(2, 1fr); }
  .spot { padding: 68px 0; }
  .spot-grid { grid-template-columns: 1fr; gap: 40px; }
  .spot-grid.reverse .spot-copy { order: 0; }
}
@media (max-width: 720px) {
  .nav { display: none; }
  .nav-login { display: none; }
  .cards-grid { grid-template-columns: 1fr; }
  .cards { padding: 48px 0; }
  .mock { grid-template-columns: 1fr; min-height: 0; }
  .mock-side { display: none; }
  .cta-band { padding: 48px 28px; }
  .cta-band::after { display: none; }
  .site-footer nav { margin-left: 0; }
}
