/* Markdown Preview — landing page styles
   Brand palette derived from the app's purple accent (#8b5cf6 / #a882ff). */

:root {
  --violet-50: #f5f3ff;
  --violet-100: #ede9fe;
  --violet-300: #c4b5fd;
  --violet-400: #a882ff;
  --violet-500: #8b5cf6;
  --violet-600: #7c3aed;
  --violet-700: #6d28d9;

  --ink: #1b1630;
  --ink-soft: #4b465e;
  --bg: #ffffff;
  --bg-alt: #faf9ff;
  --border: #ece9f6;

  --radius: 18px;
  --radius-lg: 28px;
  --shadow-sm: 0 6px 20px rgba(76, 45, 140, 0.08);
  --shadow-md: 0 24px 60px rgba(76, 45, 140, 0.18);
  --shadow-lg: 0 40px 90px rgba(40, 20, 90, 0.28);
  --maxw: 1120px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI",
    Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

code {
  font-family: "SF Mono", ui-monospace, Menlo, Consolas, monospace;
  font-size: 0.9em;
  background: var(--violet-100);
  color: var(--violet-700);
  padding: 0.1em 0.4em;
  border-radius: 6px;
}

h1, h2, h3 { line-height: 1.12; letter-spacing: -0.02em; margin: 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-weight: 600;
  text-decoration: none;
  border-radius: 999px;
  padding: 0.85rem 1.5rem;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary {
  background: linear-gradient(135deg, var(--violet-500), var(--violet-700));
  color: #fff;
  box-shadow: 0 12px 30px rgba(124, 58, 237, 0.4);
}
.btn-ghost {
  background: var(--violet-100);
  color: var(--violet-700);
}
.btn-small { padding: 0.55rem 1.1rem; font-size: 0.95rem; }
.btn-large { padding: 1.05rem 2rem; font-size: 1.1rem; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem clamp(1rem, 4vw, 2.5rem);
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--border);
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 700;
  color: var(--ink);
  text-decoration: none;
  font-size: 1.05rem;
}
.brand img { border-radius: 9px; }
.nav { display: flex; align-items: center; gap: 1.4rem; }
.nav a { color: var(--ink-soft); text-decoration: none; font-weight: 500; }
.nav a:hover { color: var(--violet-600); }
.nav .btn { color: #fff; }

/* ---------- Hero ---------- */
.hero {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(3rem, 7vw, 6rem) clamp(1rem, 4vw, 2.5rem);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--violet-600);
  margin: 0 0 1rem;
}
.hero h1 {
  font-size: clamp(3rem, 6vw, 4.75rem);
  font-weight: 800;
  background: linear-gradient(120deg, var(--violet-700), var(--violet-400));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.lede {
  font-size: clamp(1.1rem, 1.6vw, 1.3rem);
  color: var(--ink-soft);
  margin: 1.25rem 0 2rem;
  max-width: 34ch;
}
.cta-row { display: flex; flex-wrap: wrap; gap: 0.9rem; }
.fineprint { color: var(--ink-soft); font-size: 0.9rem; margin-top: 1.25rem; }
.hero-shot img {
  border-radius: var(--radius-lg);
  filter: drop-shadow(var(--shadow-lg));
}

/* ---------- Trust strip ---------- */
.strip {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 1.5rem clamp(1rem, 4vw, 2.5rem);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.strip div { display: flex; flex-direction: column; }
.strip strong { font-size: 1.1rem; }
.strip span { color: var(--ink-soft); font-size: 0.92rem; }

/* ---------- Features ---------- */
.features {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(3.5rem, 7vw, 6rem) clamp(1rem, 4vw, 2.5rem);
  text-align: center;
}
.features h2 {
  font-size: clamp(1.9rem, 3.5vw, 2.8rem);
  font-weight: 800;
  margin-bottom: 2.75rem;
}
.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  text-align: left;
}
.card {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.card .ic {
  font-size: 1.6rem;
  width: 3rem; height: 3rem;
  display: grid; place-items: center;
  background: var(--violet-100);
  border-radius: 14px;
  margin-bottom: 1rem;
}
.card h3 { font-size: 1.2rem; margin-bottom: 0.5rem; }
.card p { color: var(--ink-soft); margin: 0; }

/* ---------- Showcase ---------- */
.showcase {
  background:
    radial-gradient(1200px 500px at 80% -10%, var(--violet-100), transparent),
    var(--bg-alt);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.showcase {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(3.5rem, 7vw, 6rem) clamp(1rem, 4vw, 2.5rem);
}
.showcase-copy h2 {
  font-size: clamp(1.9rem, 3.5vw, 2.8rem);
  font-weight: 800;
  margin-bottom: 1rem;
}
.showcase-copy p { color: var(--ink-soft); font-size: 1.1rem; max-width: 34ch; }
.showcase-shots { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.showcase-shots figure { margin: 0; }
.showcase-shots img {
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
}
.showcase-shots figcaption {
  text-align: center;
  margin-top: 0.6rem;
  color: var(--ink-soft);
  font-weight: 600;
  font-size: 0.9rem;
}

/* ---------- Privacy ---------- */
.privacy {
  max-width: 760px;
  margin: 0 auto;
  padding: clamp(3.5rem, 7vw, 6rem) clamp(1rem, 4vw, 2.5rem);
  text-align: center;
}
.privacy h2 {
  font-size: clamp(1.9rem, 3.5vw, 2.6rem);
  font-weight: 800;
  margin-bottom: 1rem;
}
.privacy p { color: var(--ink-soft); font-size: 1.15rem; }
.link { color: var(--violet-600); font-weight: 600; text-decoration: none; }
.link:hover { text-decoration: underline; }

/* ---------- Download ---------- */
.download {
  text-align: center;
  color: #fff;
  background: linear-gradient(135deg, var(--violet-600), var(--violet-700));
  padding: clamp(3.5rem, 7vw, 6rem) clamp(1rem, 4vw, 2.5rem);
}
.download .dl-icon {
  margin: 0 auto 1.25rem;
  border-radius: 22px;
  box-shadow: var(--shadow-lg);
}
.download h2 { font-size: clamp(2rem, 4vw, 3rem); font-weight: 800; }
.download p { color: rgba(255, 255, 255, 0.85); font-size: 1.15rem; margin: 0.75rem 0 1.75rem; }
.download .btn-primary {
  background: #fff;
  color: var(--violet-700);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.25);
}
.download .fineprint { color: rgba(255, 255, 255, 0.7); }

/* ---------- Footer ---------- */
.site-footer {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 2.5rem clamp(1rem, 4vw, 2.5rem);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.foot-brand { display: flex; align-items: center; gap: 0.5rem; font-weight: 700; }
.foot-brand img { border-radius: 6px; }
.foot-nav { display: flex; gap: 1.4rem; }
.foot-nav a { color: var(--ink-soft); text-decoration: none; }
.foot-nav a:hover { color: var(--violet-600); }
.copyright { color: var(--ink-soft); font-size: 0.9rem; width: 100%; }

/* ---------- Content page (privacy.html) ---------- */
.doc {
  max-width: 760px;
  margin: 0 auto;
  padding: clamp(2.5rem, 6vw, 5rem) clamp(1rem, 4vw, 2.5rem);
}
.doc h1 { font-size: clamp(2rem, 4vw, 2.75rem); font-weight: 800; margin-bottom: 0.5rem; }
.doc .updated { color: var(--ink-soft); margin-bottom: 2rem; }
.doc h2 { font-size: 1.4rem; margin: 2rem 0 0.6rem; }
.doc h3 { font-size: 1.15rem; margin: 1.5rem 0 0.4rem; }
.doc p, .doc li { color: var(--ink-soft); }
.doc a { color: var(--violet-600); }

.contact-box {
  margin: 2rem 0;
  padding: 1.75rem 2rem;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.contact-box h2 { margin-top: 0; font-size: 1.3rem; }
.contact-box p { margin-bottom: 0.75rem; }
.contact-email {
  display: inline-block;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--violet-700);
  text-decoration: none;
}
.contact-email:hover { text-decoration: underline; }

.support-note { margin-top: 1.25rem; font-size: 1rem; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; text-align: center; }
  .lede { margin-left: auto; margin-right: auto; }
  .cta-row { justify-content: center; }
  .hero-shot { order: -1; }
  .grid { grid-template-columns: repeat(2, 1fr); }
  .showcase { grid-template-columns: 1fr; }
  .showcase-copy p { margin: 0 auto; }
}
@media (max-width: 620px) {
  .nav a:not(.btn) { display: none; }
  .strip { grid-template-columns: repeat(2, 1fr); }
  .grid { grid-template-columns: 1fr; }
  .showcase-shots { grid-template-columns: 1fr; }
}
