/* =============================================================================
   Magic Mirror — marketing site styles (landing, about, blog)
   ============================================================================= */

:root {
  --bg: #faf8f5;
  --bg-raised: #ffffff;
  --ink: #191621;
  --ink-soft: #5f5a68;
  --line: rgba(25, 22, 33, 0.08);
  --accent: #6C4DF6;
  --accent-2: #FF6B9D;
  --accent-warm: #FF8E53;
  --green: #2FB35A;
  --radius: 18px;
  --shadow: 0 2px 10px rgba(30, 20, 60, 0.07);
  --shadow-lift: 0 12px 40px rgba(30, 20, 60, 0.13);
  --max: 1080px;
}

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

html { scroll-behavior: smooth; }

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

img, canvas, video { max-width: 100%; }

a { color: var(--accent); }

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

/* --- Header / nav --- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(250, 248, 245, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  height: 60px;
}
.brand {
  display: flex; align-items: center; gap: 8px;
  font-weight: 800; font-size: 17px; letter-spacing: -0.3px;
  color: var(--ink); text-decoration: none;
}
.brand .logo { font-size: 22px; }
.nav { display: flex; align-items: center; gap: 22px; }
.nav a {
  color: var(--ink-soft); text-decoration: none;
  font-size: 14px; font-weight: 600;
}
.nav a:hover { color: var(--ink); }
.nav .cta {
  color: #fff; background: linear-gradient(135deg, var(--accent), #9B6CFF);
  padding: 9px 18px; border-radius: 999px;
  box-shadow: 0 2px 12px rgba(108, 77, 246, 0.35);
  transition: transform 0.15s ease;
}
.nav .cta:hover { transform: translateY(-1px); color: #fff; }
@media (max-width: 640px) {
  .nav a:not(.cta) { display: none; }
}

/* --- Buttons --- */
.btn {
  display: inline-block;
  padding: 15px 32px; border-radius: 999px;
  font-size: 16px; font-weight: 800; text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  border: none; cursor: pointer;
}
.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--accent), #9B6CFF);
  box-shadow: 0 6px 24px rgba(108, 77, 246, 0.4);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 32px rgba(108, 77, 246, 0.5); }
.btn-ghost {
  color: var(--ink);
  background: var(--bg-raised);
  box-shadow: var(--shadow);
}
.btn-ghost:hover { transform: translateY(-2px); }

/* --- Hero --- */
.hero {
  text-align: center;
  padding: 72px 0 40px;
  position: relative;
  overflow: hidden;
}
.hero h1 {
  font-size: clamp(34px, 6vw, 58px);
  font-weight: 900; letter-spacing: -1.5px; line-height: 1.08;
  max-width: 780px; margin: 0 auto;
}
.hero h1 .grad {
  background: linear-gradient(120deg, var(--accent), var(--accent-2), var(--accent-warm));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero .sub {
  font-size: clamp(16px, 2.4vw, 20px);
  color: var(--ink-soft);
  max-width: 620px; margin: 18px auto 0;
}
.hero .cta-row {
  display: flex; gap: 14px; justify-content: center; flex-wrap: wrap;
  margin-top: 30px;
}
.hero .anchor-note {
  margin-top: 16px; font-size: 13.5px; color: var(--ink-soft); font-weight: 600;
}
.hero .anchor-note s { opacity: 0.7; }

/* Mirror demo strip */
.mirror-strip {
  display: flex; gap: 14px; justify-content: center; flex-wrap: wrap;
  margin: 44px auto 0; max-width: 1040px;
}
.mirror-tile {
  width: 150px; aspect-ratio: 3 / 4;
  border-radius: 16px;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 8px;
  font-size: 44px;
  box-shadow: var(--shadow-lift);
  transform: rotate(var(--tilt, 0deg));
  transition: transform 0.25s ease;
}
.mirror-tile:hover { transform: rotate(0deg) scale(1.06); }
.mirror-tile span { font-size: 11px; font-weight: 800; letter-spacing: 1px; text-transform: uppercase; color: rgba(255,255,255,0.9); }
@media (max-width: 640px) {
  .mirror-tile { width: calc(33% - 10px); font-size: 34px; }
  .mirror-tile:nth-child(n+4) { display: none; }
}

/* --- Sections --- */
section { padding: 64px 0; }
.section-title {
  font-size: clamp(26px, 4vw, 38px);
  font-weight: 900; letter-spacing: -0.8px; text-align: center;
  margin-bottom: 10px;
}
.section-sub {
  text-align: center; color: var(--ink-soft);
  max-width: 560px; margin: 0 auto 40px; font-size: 16px;
}

/* Steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; } }
.step {
  background: var(--bg-raised); border-radius: var(--radius);
  padding: 28px 24px; box-shadow: var(--shadow);
  text-align: center;
}
.step .num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), #9B6CFF);
  color: #fff; font-weight: 900; font-size: 17px;
  margin-bottom: 14px;
}
.step h3 { font-size: 18px; font-weight: 800; margin-bottom: 6px; }
.step p { color: var(--ink-soft); font-size: 14.5px; }

/* Effects grid */
.fx-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 12px;
}
.fx-card {
  background: var(--bg-raised); border-radius: 14px;
  padding: 18px 8px 14px; text-align: center;
  box-shadow: var(--shadow);
  transition: transform 0.15s ease;
}
.fx-card:hover { transform: translateY(-3px); }
.fx-card .e { font-size: 34px; line-height: 1; display: block; filter: saturate(1.4); }
.fx-card .l {
  font-size: 11px; font-weight: 800; text-transform: uppercase;
  letter-spacing: 0.5px; color: var(--ink-soft); margin-top: 8px; display: block;
}
.fx-card.free { outline: 2px solid var(--green); outline-offset: -2px; position: relative; }
.fx-card.free::after {
  content: 'FREE'; position: absolute; top: 6px; right: 6px;
  font-size: 9px; font-weight: 900; color: #fff;
  background: var(--green); padding: 2px 6px; border-radius: 999px;
}
.fx-more { text-align: center; margin-top: 20px; color: var(--ink-soft); font-weight: 600; font-size: 14px; }

/* Privacy band */
.privacy-band {
  background: linear-gradient(135deg, #191621, #2a2438);
  color: #fff; border-radius: 24px;
  padding: 48px 40px;
  display: flex; gap: 32px; align-items: center; flex-wrap: wrap;
}
.privacy-band .shield { font-size: 64px; }
.privacy-band h2 { font-size: 26px; font-weight: 900; letter-spacing: -0.5px; }
.privacy-band p { color: rgba(255,255,255,0.75); margin-top: 8px; max-width: 560px; }
.privacy-band .flex { flex: 1; min-width: 260px; }

/* Pricing */
.price-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; max-width: 760px; margin: 0 auto; }
@media (max-width: 700px) { .price-cards { grid-template-columns: 1fr; } }
.price-card {
  background: var(--bg-raised); border-radius: 22px;
  padding: 34px 30px; box-shadow: var(--shadow);
}
.price-card.featured {
  box-shadow: var(--shadow-lift);
  border: 2px solid var(--accent);
  position: relative;
}
.price-card.featured::before {
  content: 'MOST POPULAR'; position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: linear-gradient(135deg, var(--accent), #9B6CFF); color: #fff;
  font-size: 10px; font-weight: 900; letter-spacing: 1px;
  padding: 4px 14px; border-radius: 999px;
}
.price-card h3 { font-size: 18px; font-weight: 800; }
.price-card .amount { font-size: 42px; font-weight: 900; letter-spacing: -1px; margin: 8px 0 2px; }
.price-card .amount small { font-size: 14px; font-weight: 700; color: var(--ink-soft); letter-spacing: 0; }
.price-card ul { list-style: none; margin: 18px 0 24px; display: flex; flex-direction: column; gap: 9px; }
.price-card li { font-size: 14.5px; font-weight: 600; color: #3d3946; display: flex; gap: 9px; }
.price-card li::before { content: '✓'; color: var(--green); font-weight: 900; }
.price-card li.no::before { content: '—'; color: #c9c4bd; }
.price-card li.no { color: #a39e97; }

/* FAQ */
.faq { max-width: 720px; margin: 0 auto; }
.faq details {
  background: var(--bg-raised); border-radius: 14px;
  padding: 18px 22px; margin-bottom: 10px;
  box-shadow: var(--shadow);
}
.faq summary {
  font-weight: 800; font-size: 15.5px; cursor: pointer;
  list-style: none; display: flex; justify-content: space-between; align-items: center;
}
.faq summary::after { content: '+'; font-size: 20px; color: var(--accent); font-weight: 700; }
.faq details[open] summary::after { content: '–'; }
.faq details p { color: var(--ink-soft); font-size: 14.5px; margin-top: 10px; }

/* Story teaser */
.story-teaser {
  background: var(--bg-raised); border-radius: 24px;
  box-shadow: var(--shadow);
  padding: 44px 40px; text-align: center;
  max-width: 760px; margin: 0 auto;
}
.story-teaser .q { font-size: clamp(18px, 3vw, 23px); font-weight: 800; letter-spacing: -0.4px; line-height: 1.4; }
.story-teaser .who { margin-top: 14px; color: var(--ink-soft); font-size: 14px; font-weight: 600; }

/* Final CTA */
.final-cta { text-align: center; padding: 80px 0 90px; }
.final-cta h2 { font-size: clamp(28px, 5vw, 44px); font-weight: 900; letter-spacing: -1px; }
.final-cta p { color: var(--ink-soft); margin: 12px 0 28px; }

/* --- Footer --- */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 40px 0 60px;
  color: var(--ink-soft); font-size: 13.5px;
}
.site-footer .cols {
  display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap;
}
.site-footer h4 { font-size: 12px; text-transform: uppercase; letter-spacing: 1px; color: var(--ink); margin-bottom: 10px; }
.site-footer ul { list-style: none; }
.site-footer li { margin-bottom: 7px; }
.site-footer a { color: var(--ink-soft); text-decoration: none; }
.site-footer a:hover { color: var(--ink); }
.site-footer .fine { margin-top: 32px; font-size: 12px; opacity: 0.75; }

/* --- Article / blog styles --- */
.article-header { text-align: center; padding: 56px 0 24px; }
.article-header h1 {
  font-size: clamp(28px, 4.5vw, 42px);
  font-weight: 900; letter-spacing: -1px; line-height: 1.15;
  max-width: 760px; margin: 0 auto;
}
.article-header .meta { margin-top: 14px; color: var(--ink-soft); font-size: 13.5px; font-weight: 600; }
.article {
  max-width: 680px; margin: 0 auto; padding: 12px 24px 72px;
  font-size: 16.5px; color: #2c2833;
}
.article h2 { font-size: 24px; font-weight: 850; letter-spacing: -0.4px; margin: 36px 0 12px; }
.article h3 { font-size: 18.5px; font-weight: 800; margin: 28px 0 10px; }
.article p { margin-bottom: 16px; }
.article ul, .article ol { margin: 0 0 16px 22px; }
.article li { margin-bottom: 8px; }
.article blockquote {
  border-left: 3px solid var(--accent);
  padding: 4px 0 4px 18px; margin: 20px 0;
  color: var(--ink-soft); font-style: italic;
}
.article .callout {
  background: linear-gradient(135deg, rgba(108,77,246,0.07), rgba(255,107,157,0.07));
  border: 1px solid rgba(108,77,246,0.18);
  border-radius: 16px; padding: 20px 22px; margin: 28px 0;
}
.article .callout strong { color: var(--ink); }
.article .cta-inline {
  display: block; text-align: center;
  background: var(--bg-raised); border-radius: 18px;
  box-shadow: var(--shadow); padding: 28px 24px; margin: 36px 0;
}
.article .cta-inline .btn { margin-top: 14px; }

/* Blog index */
.post-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; padding-bottom: 72px; }
.post-card {
  background: var(--bg-raised); border-radius: var(--radius);
  padding: 26px 26px 22px; box-shadow: var(--shadow);
  text-decoration: none; color: var(--ink);
  display: flex; flex-direction: column; gap: 8px;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.post-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lift); }
.post-card .tag { font-size: 11px; font-weight: 900; letter-spacing: 1px; text-transform: uppercase; color: var(--accent); }
.post-card h3 { font-size: 18px; font-weight: 800; letter-spacing: -0.3px; line-height: 1.3; }
.post-card p { color: var(--ink-soft); font-size: 14px; }
