/* ============================================================
   Markdown Master — style.css
   Brand blue: #0066cc  |  Hover: #0052a3
   Inspired by the app's own render.css palette
   ============================================================ */

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: #1d1d1f;
  background: #fff;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; font-family: inherit; }

/* ── Variables ── */
:root {
  --blue:       #0066cc;
  --blue-h:     #0052a3;
  --blue-pale:  #f0f6ff;
  --blue-soft:  #b3d4f5;
  --text:       #1d1d1f;
  --muted:      #424245;
  --muted-light: #6e6e73;
  --bg-alt:     #f5f5f7;
  --border:     #d2d2d7;
  --border-soft:#e5e5ea;
  --radius:     14px;
  --radius-sm:  8px;
  --shadow:     0 4px 24px rgba(0,0,0,.07);
  --shadow-lg:  0 20px 60px rgba(0,0,0,.14);
  --max-w:      1120px;
  --nav-h:      60px;
}

/* ── Layout ── */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }
section { padding: 96px 0; }

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-h);
  background: rgba(255,255,255,.88);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  border-bottom: 1px solid var(--border-soft);
}
.nav-inner {
  display: flex;
  align-items: center;
  height: 100%;
  gap: 0;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: -.3px;
  color: var(--text);
  flex-shrink: 0;
}
.nav-logo img { width: 28px; height: 28px; border-radius: 7px; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  margin: 0 auto;
  list-style: none;
}
.nav-links a { font-size: .88rem; font-weight: 500; color: var(--muted); transition: color .2s; }
.nav-links a:hover { color: var(--text); }

.nav-right { display: flex; align-items: center; flex-shrink: 0; }

.nav-cta {
  padding: 8px 16px;
  background: var(--blue);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: .84rem;
  font-weight: 600;
  transition: background .2s;
  white-space: nowrap;
}
.nav-cta:hover { background: var(--blue-h); }

.burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  border: none;
  background: none;
  padding: 4px;
}
.burger span { display: block; height: 2px; background: var(--text); border-radius: 2px; transition: all .3s; }

.mobile-nav {
  display: none;
  position: fixed;
  inset: var(--nav-h) 0 0 0;
  background: #fff;
  padding: 24px;
  z-index: 99;
  flex-direction: column;
  gap: 4px;
  border-top: 1px solid var(--border-soft);
  overflow-y: auto;
}
.mobile-nav.open { display: flex; }
.mobile-nav a {
  display: block;
  padding: 14px 0;
  font-size: 1rem;
  font-weight: 500;
  color: var(--text);
  border-bottom: 1px solid var(--border-soft);
}
.mobile-nav .nav-cta {
  display: block;
  text-align: center;
  padding: 14px;
  margin-top: 12px;
  border-radius: 10px;
  font-size: 1rem;
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  padding: 80px 0 72px;
  background: linear-gradient(160deg, var(--blue-pale) 0%, #fff 55%);
  overflow: hidden;
}
.hero-inner {
  display: flex;
  align-items: center;
  gap: 64px;
}
.hero-copy { flex: 1; min-width: 0; }
.hero-icon {
  width: 80px;
  height: 80px;
  border-radius: 20px;
  box-shadow: 0 8px 32px rgba(0,102,204,.22);
  margin-bottom: 20px;
}
.hero-badge {
  display: inline-block;
  padding: 4px 12px;
  background: var(--blue-soft);
  color: var(--blue-h);
  border-radius: 20px;
  font-size: .76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .07em;
  margin-bottom: 18px;
}
.hero h1 {
  font-size: clamp(2.4rem, 5vw, 3.4rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -.04em;
  color: var(--text);
  margin-bottom: 20px;
}
.hero h1 em { font-style: normal; color: var(--blue); }
.hero-sub {
  font-size: 1.05rem;
  color: var(--muted);
  line-height: 1.65;
  margin-bottom: 28px;
  max-width: 500px;
}
.hero-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 32px;
}
.pill {
  padding: 5px 13px;
  background: #fff;
  border: 1.5px solid var(--blue-soft);
  border-radius: 20px;
  font-size: .78rem;
  font-weight: 600;
  color: var(--blue);
}
.hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.hero-note { font-size: .76rem; color: var(--muted-light); }

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 13px 24px;
  background: var(--blue);
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: .9rem;
  font-weight: 700;
  transition: background .2s, transform .15s;
}
.btn-primary:hover { background: var(--blue-h); transform: translateY(-1px); }
.btn-secondary {
  padding: 13px 20px;
  background: transparent;
  color: var(--text);
  border: 1.5px solid var(--border);
  border-radius: 10px;
  font-size: .9rem;
  font-weight: 600;
  transition: border-color .2s, background .2s;
}
.btn-secondary:hover { border-color: var(--blue); background: var(--blue-pale); }

/* Hero macOS window */
.hero-visual { flex: 1; min-width: 0; max-width: 580px; }

/* ============================================================
   macOS WINDOW FRAME
   ============================================================ */
.macos-frame {
  border-radius: 10px;
  box-shadow: 0 32px 80px rgba(0,0,0,.18), 0 0 0 1px rgba(0,0,0,.08);
  overflow: hidden;
  background: #f5f5f7;
}
.macos-frame--sm { border-radius: 8px; }

.macos-titlebar {
  height: 32px;
  background: #e8e8e8;
  display: flex;
  align-items: center;
  padding: 0 12px;
  gap: 0;
  position: relative;
  border-bottom: 1px solid #d0d0d0;
}
.macos-traffic { display: flex; align-items: center; gap: 6px; }
.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}
.dot-close  { background: #ff5f56; }
.dot-min    { background: #ffbd2e; }
.dot-max    { background: #27c93f; }
.macos-title {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  font-size: .72rem;
  font-weight: 500;
  color: #555;
  white-space: nowrap;
  pointer-events: none;
}
.macos-frame img {
  width: 100%;
  height: auto;
  display: block;
  background: #fff;
}

/* ============================================================
   TRUST BAR
   ============================================================ */
.trust-bar {
  padding: 18px 0;
  background: #fff;
  border-top: 1px solid var(--border-soft);
  border-bottom: 1px solid var(--border-soft);
}
.trust-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 32px;
  list-style: none;
}
.trust-list li {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: .8rem;
  font-weight: 600;
  color: var(--muted);
}
.trust-list li::before { content: "✓"; color: var(--blue); font-weight: 800; }

/* ============================================================
   SECTION TYPOGRAPHY
   ============================================================ */
.section-eyebrow {
  display: inline-block;
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--blue);
  margin-bottom: 12px;
}
.section-title {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -.03em;
  color: var(--text);
  margin-bottom: 16px;
}
.section-title em { font-style: normal; color: var(--blue); }
.section-body { font-size: 1.05rem; color: var(--muted); max-width: 540px; line-height: 1.65; }
.features-header { text-align: center; margin-bottom: 72px; }
.features-header .section-body { margin: 0 auto; }

/* ============================================================
   FEATURE ROWS
   ============================================================ */
.feat-row {
  display: flex;
  align-items: center;
  gap: 64px;
  margin-bottom: 96px;
}
.feat-row:last-child { margin-bottom: 0; }
.feat-row.alt { flex-direction: row-reverse; }

.feat-copy { flex: 1; min-width: 0; }
.feat-copy .section-eyebrow { margin-bottom: 8px; }
.feat-copy .section-title { margin-bottom: 14px; }
.feat-copy .section-body { margin-bottom: 28px; }

.feat-subfeatures {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.feat-subfeatures.cols-1 { grid-template-columns: 1fr; }

.subfeat {
  background: var(--bg-alt);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-sm);
  padding: 16px;
}
.subfeat h4 { font-size: .875rem; font-weight: 700; color: var(--text); margin-bottom: 4px; }
.subfeat p  { font-size: .8rem; color: var(--muted); line-height: 1.5; }

.feat-visual { flex-shrink: 0; width: 420px; }

/* ============================================================
   PRIVACY BAR
   ============================================================ */
.privacy-bar {
  padding: 64px 0;
  background: var(--text);
  color: #fff;
  text-align: center;
}
.privacy-bar h2 {
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 800;
  letter-spacing: -.03em;
  margin-bottom: 16px;
  color: #fff;
}
.privacy-bar p {
  font-size: 1rem;
  color: rgba(255,255,255,.65);
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ============================================================
   PRICING
   ============================================================ */
.pricing { background: var(--bg-alt); }
.pricing-inner { max-width: 480px; margin: 0 auto; text-align: center; }
.pricing-inner .section-body { margin: 0 auto 36px; }
.pricing-nosubs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-bottom: 36px;
}
.nosub-badge {
  padding: 5px 13px;
  background: #fff;
  border: 1.5px solid var(--border-soft);
  border-radius: 20px;
  font-size: .78rem;
  font-weight: 600;
  color: var(--muted);
}

.pricing-card {
  background: #fff;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  text-align: left;
}
.pricing-card-header {
  background: var(--blue);
  padding: 28px 32px 24px;
  color: #fff;
}
.pricing-badge-pill {
  display: inline-block;
  background: rgba(255,255,255,.22);
  border-radius: 20px;
  padding: 4px 14px;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .04em;
  margin-bottom: 8px;
}
.pricing-period { font-size: .85rem; opacity: .8; }

.pricing-card-body { padding: 28px 32px; }
.pricing-list { list-style: none; margin-bottom: 28px; }
.pricing-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 9px 0;
  font-size: .875rem;
  color: var(--text);
  border-bottom: 1px solid var(--border-soft);
}
.pricing-list li:last-child { border-bottom: none; }
.pricing-list li::before { content: "✓"; color: var(--blue); font-weight: 800; flex-shrink: 0; margin-top: 1px; }
.download-btn { width: 100%; justify-content: center; font-size: 1rem; padding: 15px; }

/* ============================================================
   FAQ
   ============================================================ */
.faq-list { max-width: 680px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid var(--border-soft); }
.faq-item:first-child { border-top: 1px solid var(--border-soft); }
.faq-q {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: 18px 0;
  border: none;
  background: none;
  text-align: left;
  font-size: .95rem;
  font-weight: 600;
  color: var(--text);
  gap: 16px;
  transition: color .2s;
}
.faq-q:hover { color: var(--blue); }
.faq-icon {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--border-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .8rem;
  font-weight: 700;
  transition: background .2s, transform .25s;
  color: var(--muted);
}
.faq-item.open .faq-q .faq-icon { background: var(--blue); color: #fff; transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .3s ease, padding .3s ease; }
.faq-item.open .faq-a { max-height: 400px; padding-bottom: 18px; }
.faq-a p { font-size: .9rem; color: var(--muted); line-height: 1.7; }

/* ============================================================
   CONTACT
   ============================================================ */
.contact { background: var(--bg-alt); }
.contact-inner { display: flex; gap: 64px; align-items: flex-start; }
.contact-copy { flex: 1; }
.contact-form-wrap {
  flex: 1;
  background: #fff;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow);
}
.contact-form-wrap h3 { font-size: 1rem; font-weight: 700; margin-bottom: 20px; color: var(--text); }
.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-size: .8rem; font-weight: 600; color: var(--text); margin-bottom: 5px; }
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1.5px solid var(--border-soft);
  border-radius: var(--radius-sm);
  font-size: .9rem;
  font-family: inherit;
  color: var(--text);
  background: #fff;
  transition: border-color .2s;
  outline: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { border-color: var(--blue); }
.form-group textarea { resize: vertical; min-height: 100px; }
.form-submit {
  width: 100%;
  padding: 13px;
  background: var(--blue);
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: .95rem;
  font-weight: 700;
  transition: background .2s;
  margin-top: 4px;
}
.form-submit:hover { background: var(--blue-h); }
.form-success {
  display: none;
  padding: 16px;
  background: #f0fdf4;
  border: 1px solid #86efac;
  border-radius: var(--radius-sm);
  font-size: .9rem;
  color: #166534;
  text-align: center;
  margin-top: 12px;
}
.form-success.visible { display: block; }

/* ============================================================
   FOOTER
   ============================================================ */
footer {
  padding: 24px 0;
  background: var(--text);
  color: rgba(255,255,255,.45);
  text-align: center;
  font-size: .8rem;
}
.footer-links { margin-top: 8px; }
.footer-links a { color: rgba(255,255,255,.45); font-size: .8rem; }
.footer-links a:hover { color: rgba(255,255,255,.8); }

/* ============================================================
   SCROLL REVEAL
   ============================================================ */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ============================================================
   PRIVACY PAGE
   ============================================================ */
.privacy-main { padding: 64px 0 80px; min-height: calc(100vh - var(--nav-h) - 72px); }
.privacy-content { max-width: 720px; margin: 0 auto; padding: 0 24px; }
.privacy-back {
  display: inline-block;
  margin-bottom: 32px;
  color: var(--blue);
  font-size: .9rem;
  font-weight: 600;
}
.privacy-back:hover { text-decoration: underline; }
.privacy-content h1 { font-size: 2rem; font-weight: 700; color: var(--text); margin-bottom: 8px; }
.privacy-updated { font-size: .85rem; color: var(--muted-light); margin-bottom: 40px; }
.privacy-short {
  background: var(--bg-alt);
  border-left: 4px solid var(--blue);
  border-radius: 8px;
  padding: 20px 24px;
  margin-bottom: 48px;
}
.privacy-short h2 { font-size: 1rem; font-weight: 700; color: var(--blue); margin-bottom: 8px; }
.privacy-short p { font-size: .95rem; color: var(--text); line-height: 1.65; }
.privacy-content section { margin-bottom: 40px; padding: 0; }
.privacy-content section h2 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border-soft);
}
.privacy-content section p,
.privacy-content section li { font-size: .95rem; color: var(--muted); line-height: 1.7; margin-bottom: 10px; }
.privacy-content section ul { padding-left: 20px; margin-bottom: 10px; }
.privacy-content section ul li { margin-bottom: 6px; }
.privacy-content section a { color: var(--blue); }
.privacy-content section a:hover { text-decoration: underline; }
.privacy-footer-note {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--border-soft);
  font-size: .88rem;
  color: var(--muted-light);
  font-style: italic;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1000px) {
  .feat-visual { width: 320px; }
}

@media (max-width: 860px) {
  .hero-inner { flex-direction: column; gap: 48px; text-align: center; }
  .hero-sub { margin: 0 auto 28px; }
  .hero-pills { justify-content: center; }
  .hero-ctas { justify-content: center; }
  .hero-visual { width: 100%; max-width: 540px; }

  .feat-row,
  .feat-row.alt { flex-direction: column; gap: 36px; }
  .feat-visual { width: 100%; max-width: 400px; align-self: center; }

  .contact-inner { flex-direction: column; gap: 40px; }
}

@media (max-width: 768px) {
  section { padding: 64px 0; }
  .nav-links, .nav-cta { display: none; }
  .burger { display: flex; margin-left: auto; }

  .feat-subfeatures { grid-template-columns: 1fr; }
  .pricing-card-header { padding: 24px; }
  .pricing-card-body { padding: 24px; }
  .contact-form-wrap { padding: 24px; }
}

@media (max-width: 480px) {
  .hero { padding: 56px 0 48px; }
  .hero h1 { font-size: 2rem; }
  .hero-icon { width: 64px; height: 64px; }
  .trust-list { gap: 6px 20px; }
}
