/* Shared styles for mchinnovation.com and uchat.mchinnovation.com */
:root {
  --violet: #6E4FE3;
  --violet-deep: #46368C;
  --lilac: #D9CEF6;
  --tint: #F3F1FA;
  --bg: #FFFFFF;
  --bg-soft: #F4F4F7;
  --card: #FFFFFF;
  --text: #16151D;
  --muted: #6B6B76;
  --line: #E6E4EE;
  --on-violet: #FFFFFF;
  --radius: 18px;
  --max: 1120px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0F0E15;
    --bg-soft: #17151F;
    --card: #1C1A26;
    --text: #F2F0F8;
    --muted: #A5A2B4;
    --line: #2B2838;
    --tint: #1F1B2E;
    --lilac: #3A3060;
    --violet: #8B70F0;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0F0E15; --bg-soft: #17151F; --card: #1C1A26; --text: #F2F0F8;
  --muted: #A5A2B4; --line: #2B2838; --tint: #1F1B2E; --lilac: #3A3060; --violet: #8B70F0;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 17px/1.6 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--violet); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 .5em; }
h1 { font-size: clamp(2.3rem, 6vw, 3.9rem); font-weight: 800; }
h2 { font-size: clamp(1.7rem, 4vw, 2.4rem); font-weight: 750; }
h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0 0 1em; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.muted { color: var(--muted); }
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: .78rem; font-weight: 700; color: var(--violet); margin-bottom: .8em; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.15rem; color: var(--text); letter-spacing: -0.01em; }
.brand:hover { text-decoration: none; }
.brand img { width: 20px; }
.nav { display: flex; gap: 22px; align-items: center; font-size: .95rem; }
.nav a { color: var(--muted); }
.nav a:hover { color: var(--text); text-decoration: none; }
@media (max-width: 640px) { .nav a:not(.btn) { display: none; } }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 22px; border-radius: 999px; font-weight: 650; font-size: 1rem; border: 1px solid transparent; transition: transform .15s, background .15s; }
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--violet); color: var(--on-violet) !important; }
.btn-primary:hover { background: var(--violet-deep); }
.btn-ghost { border-color: var(--line); color: var(--text) !important; background: var(--card); }
.btn-small { padding: 8px 16px; font-size: .9rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

/* Sections */
section { padding: 88px 0; }
.section-soft { background: var(--bg-soft); }
.section-head { max-width: 720px; margin-bottom: 44px; }
.lede { font-size: 1.2rem; color: var(--muted); max-width: 640px; }

/* Hero */
.hero { padding: 96px 0 80px; background: radial-gradient(1200px 500px at 85% -10%, var(--lilac), transparent 60%), var(--bg); }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 56px; align-items: center; }
@media (max-width: 860px) { .hero-grid { grid-template-columns: 1fr; } }
.hero-mark { justify-self: center; width: min(260px, 60%); filter: drop-shadow(0 30px 60px rgba(70,54,140,.25)); }

/* Cards */
.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 960px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } .grid-3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.card p:last-child { margin-bottom: 0; }
.card .tag { display: inline-block; font-size: .75rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--violet); background: var(--tint); padding: 4px 10px; border-radius: 999px; margin-bottom: 14px; }
.icon { width: 44px; height: 44px; border-radius: 12px; background: var(--tint); color: var(--violet); display: grid; place-items: center; margin-bottom: 16px; }
.icon svg { width: 22px; height: 22px; }

/* Feature product banner */
.feature { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; background: linear-gradient(160deg, #7756E6, var(--violet-deep)); color: #fff; border-radius: 28px; padding: 56px; overflow: hidden; }
.feature h2, .feature p { color: #fff; }
.feature p { opacity: .88; }
.feature .eyebrow { color: var(--lilac); }
:root[data-theme="dark"] .feature .eyebrow { color: #D9CEF6; }
.feature .btn-primary { background: #fff; color: var(--violet-deep) !important; }
.feature .btn-ghost { background: transparent; border-color: rgba(255,255,255,.4); color: #fff !important; }
.feature-shots { display: flex; gap: 16px; justify-content: center; }
.feature-shots img { width: 46%; border-radius: 22px; box-shadow: 0 24px 48px rgba(0,0,0,.3); }
.feature-shots img:last-child { margin-top: 40px; }
@media (max-width: 860px) { .feature { grid-template-columns: 1fr; padding: 32px 22px; } }

/* Screenshots row */
.shots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.shots figure { margin: 0; text-align: center; }
.shots img { border-radius: 26px; border: 1px solid var(--line); box-shadow: 0 20px 50px rgba(70,54,140,.14); }
.shots figcaption { margin-top: 14px; color: var(--muted); font-size: .95rem; }
@media (max-width: 760px) { .shots { grid-template-columns: 1fr; max-width: 320px; margin: 0 auto; } }

/* Lists / chips */
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.chip { font-size: .85rem; padding: 6px 12px; border-radius: 999px; background: var(--tint); color: var(--text); border: 1px solid var(--line); }
.checks { list-style: none; padding: 0; margin: 0; }
.checks li { padding-left: 30px; position: relative; margin-bottom: 10px; }
.checks li::before { content: ""; position: absolute; left: 0; top: .45em; width: 18px; height: 18px; border-radius: 50%; background: var(--violet) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center/12px no-repeat; }

/* Long-form pages (privacy, support) */
.doc { max-width: 760px; margin: 0 auto; padding: 64px 20px 96px; }
.doc h1 { font-size: clamp(2rem, 5vw, 2.8rem); }
.doc h2 { font-size: 1.4rem; margin-top: 2.2em; }
.doc ul, .doc ol { padding-left: 1.3em; }
.doc li { margin-bottom: .45em; }
.callout { background: var(--tint); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 24px; margin: 28px 0; }
.callout ul { margin: 0; }
details { border-bottom: 1px solid var(--line); padding: 16px 0; }
details summary { cursor: pointer; font-weight: 650; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
details summary::-webkit-details-marker { display: none; }
details summary::after { content: "+"; color: var(--violet); font-weight: 700; font-size: 1.2rem; line-height: 1; }
details[open] summary::after { content: "–"; }
details p { margin: 12px 0 0; color: var(--muted); }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 44px 0; font-size: .92rem; color: var(--muted); }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 20px 40px; justify-content: space-between; align-items: center; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 18px; }
.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--text); }
