/* ─── Buttons ────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 15px;
  font-weight: 500;
  padding: 11px 22px;
  border-radius: 9px;
  transition: opacity .12s;
  cursor: pointer;
  border: none;
}
.btn:hover { opacity: .88; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-ghost   { background: transparent; color: var(--ink2); font-size: 14px; padding: 0; }
.btn-ghost:hover { color: var(--ink); opacity: 1; }

/* ─── Badge ──────────────────────────────────────────────────────────────── */
.badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 500;
  padding: 2px 8px;
  border-radius: 10px;
  margin-top: 10px;
  letter-spacing: .04em;
}
.badge.free { background: #dcfce7; color: #15803d; }
.badge.pro  { background: var(--pro-light); color: var(--pro); }

/* ─── Browser mock (hero) ────────────────────────────────────────────────── */
.browser {
  background: #fff;
  border: 1px solid var(--bg3);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 2px 40px rgba(0, 0, 0, .06);
}
.browser-bar {
  background: var(--bg2);
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid var(--bg3);
}
.browser-dots { display: flex; gap: 5px; }
.dot          { width: 10px; height: 10px; border-radius: 50%; }
.browser-url  {
  flex: 1;
  background: var(--bg);
  border: 1px solid var(--bg3);
  border-radius: 5px;
  padding: 4px 10px;
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  color: var(--ink3);
  margin: 0 8px;
}
.browser-body { position: relative; min-height: 280px; padding: 0; }

.mock-tb {
  background: #1e1e2e;
  padding: 8px 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.mock-tb-logo  { width: 18px; height: 18px; background: #6366f1; border-radius: 4px; flex-shrink: 0; }
.mock-file     { background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.12); border-radius: 5px; color: #9ca3af; font-size: 11px; padding: 3px 10px; font-family: 'DM Mono', monospace; }
.mock-btn      { background: rgba(99,102,241,.25); border: 1px solid rgba(99,102,241,.5); border-radius: 5px; color: #a5b4fc; font-size: 11px; padding: 3px 10px; font-family: 'DM Sans', sans-serif; display: inline-flex; align-items: center; gap: 4px; }
.mock-status   { font-size: 11px; color: #f9e2af; margin-left: 2px; }
.mock-content  { padding: 40px 20px 20px; }

.mock-floatbar {
  position: absolute;
  top: 44px;
  left: 16px;
  background: #1e1e2e;
  border-radius: 6px;
  padding: 3px 5px;
  display: flex;
  gap: 2px;
}
.mf-btn      { background: none; border: none; color: #cdd6f4; font-size: 11px; padding: 2px 7px; border-radius: 3px; font-family: 'DM Sans', sans-serif; }
.mf-btn.on   { background: rgba(99,102,241,.5); color: #fff; }

.mock-h1 {
  font-family: 'DM Serif Display', serif;
  font-size: 20px;
  color: var(--ink);
  margin-bottom: 8px;
  outline: 2px solid #6366f1;
  outline-offset: 3px;
  border-radius: 2px;
  display: inline-block;
}
.mock-p  { font-size: 12px; color: var(--ink2); line-height: 1.6; margin-bottom: 8px; outline: 2px solid rgba(99,102,241,.28); outline-offset: 3px; border-radius: 2px; }
.mock-p2 { font-size: 12px; color: var(--ink2); line-height: 1.6; opacity: .45; }

.cursor {
  display: inline-block;
  width: 2px;
  height: .9em;
  background: var(--accent);
  vertical-align: middle;
  animation: blink 1s step-end infinite;
  margin-left: 1px;
}

/* ─── Steps ──────────────────────────────────────────────────────────────── */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }

.step {
  background: #fff;
  border: 1px solid var(--bg3);
  border-radius: var(--radius);
  padding: 28px 24px;
  transition: transform .2s ease, box-shadow .2s ease;
}
.step:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 28px rgba(0,0,0,.07);
}
.step-num {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--accent-light);
  color: var(--accent);
  font-size: 13px;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  font-family: 'DM Mono', monospace;
}
.step h3 { font-size: 15px; font-weight: 500; margin-bottom: 8px; }
.step p  { font-size: 13px; color: var(--ink2); line-height: 1.65; }

.step-video {
  margin-top: 16px;
  background: var(--bg2);
  border-radius: 7px;
  overflow: hidden;
  border: 1px solid var(--bg3);
}
.step-video video { width: 100%; height: 72px; object-fit: cover; display: block; }

/* ─── Feature cards ──────────────────────────────────────────────────────── */
.feats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }

.feat {
  background: #fff;
  border: 1px solid var(--bg3);
  border-radius: var(--radius);
  padding: 22px;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.feat:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 36px rgba(0,0,0,.08);
  border-color: rgba(61,78,245,.2);
}
.feat-icon { width: 34px; height: 34px; border-radius: 8px; display: flex; align-items: center; justify-content: center; margin-bottom: 14px; }
.feat-icon.blue   { background: var(--accent-light); }
.feat-icon.purple { background: var(--pro-light); }
.feat h3 { font-size: 14px; font-weight: 500; margin-bottom: 6px; }
.feat p  { font-size: 13px; color: var(--ink2); line-height: 1.6; }

/* ─── Demo video section ─────────────────────────────────────────────────── */
.video-frame { background: #fff; border: 1px solid var(--bg3); border-radius: 14px; overflow: hidden; }
.video-ph    { background: #1a1a2e; height: 400px; display: flex; align-items: center; justify-content: center; position: relative; }

.play-sm { width: 28px; height: 28px; border-radius: 50%; background: var(--accent); display: flex; align-items: center; justify-content: center; }
.play-lg {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: rgba(255,255,255,.12);
  border: 1.5px solid rgba(255,255,255,.25);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background .15s;
}
.play-lg:hover { background: rgba(255,255,255,.2); }
.video-label   { position: absolute; bottom: 20px; left: 24px; font-size: 12px; color: rgba(255,255,255,.25); font-family: 'DM Mono', monospace; }

/* ─── Pricing ────────────────────────────────────────────────────────────── */
.pricing-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; max-width: 700px; }

.plan { background: #fff; border: 1px solid var(--bg3); border-radius: var(--radius); padding: 32px; transition: transform .2s ease, box-shadow .2s ease; }
.plan:hover { transform: translateY(-3px); box-shadow: 0 10px 36px rgba(0,0,0,.07); }
.plan.featured { border: 2px solid var(--pro); position: relative; }

.plan-badge  { position: absolute; top: -11px; left: 22px; background: var(--pro); color: #fff; font-size: 11px; font-weight: 500; padding: 3px 10px; border-radius: 10px; }
.plan-name   { font-size: 12px; font-weight: 500; color: var(--ink3); text-transform: uppercase; letter-spacing: .1em; margin-bottom: 6px; }
.plan-price  { font-family: 'DM Serif Display', serif; font-size: 44px; letter-spacing: -.5px; margin-bottom: 4px; line-height: 1; }
.plan-price small { font-family: 'DM Sans', sans-serif; font-size: 13px; color: var(--ink3); font-weight: 400; }
.plan-desc   { font-size: 13px; color: var(--ink2); margin-bottom: 22px; margin-top: 6px; line-height: 1.5; }

.plan-list   { list-style: none; display: flex; flex-direction: column; gap: 9px; margin-bottom: 24px; }
.plan-list li { font-size: 13px; color: var(--ink2); display: flex; align-items: center; gap: 8px; line-height: 1.4; }
.plan-list li svg { flex-shrink: 0; }

.plan-btn       { width: 100%; padding: 11px; border-radius: 8px; font-size: 14px; font-weight: 500; cursor: pointer; border: 1px solid var(--bg3); transition: all .12s; }
.plan-btn.free  { background: var(--bg2); color: var(--ink); }
.plan-btn.free:hover { background: var(--bg3); }
.plan-btn.pro-b { background: var(--pro); color: #fff; border-color: var(--pro); }
.plan-btn.pro-b:hover { background: #6d28d9; }

.plan-more { display: block; text-align: center; font-size: 13px; color: var(--pro); margin-top: 12px; transition: opacity .12s; }
.plan-more:hover { opacity: .7; }

/* ─── FAQ accordion ──────────────────────────────────────────────────────── */
.faq { display: flex; flex-direction: column; gap: 1px; background: var(--bg3); border-radius: var(--radius); overflow: hidden; }

.faq-item  { background: #fff; padding: 18px 22px; cursor: pointer; }
.faq-q {
  font-size: 14px;
  font-weight: 500;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  user-select: none;
}
.faq-a {
  font-size: 13px;
  color: var(--ink2);
  line-height: 1.65;
  height: 0;
  overflow: hidden;
  transition: height .32s cubic-bezier(.4,0,.2,1), opacity .28s ease, margin-top .28s ease;
  margin-top: 0;
  opacity: 0;
}
.faq-item.open .faq-a { margin-top: 10px; opacity: 1; }

.faq-arr { flex-shrink: 0; transition: transform .22s ease; color: var(--ink3); }
.faq-item.open .faq-arr { transform: rotate(180deg); }

/* ─── Changelog ──────────────────────────────────────────────────────────── */
.changelog { display: flex; flex-direction: column; }
.cl {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 20px;
  padding: 18px 0;
  border-bottom: 1px solid var(--bg3);
}
.cl:last-child { border-bottom: none; }
.cl-v  { font-family: 'DM Mono', monospace; font-size: 12px; color: var(--ink3); }
.cl-v strong { display: block; font-family: 'DM Sans', sans-serif; font-size: 14px; font-weight: 500; color: var(--ink); margin-bottom: 1px; }

.cl-list { list-style: none; display: flex; flex-direction: column; gap: 4px; }
.cl-list li { font-size: 13px; color: var(--ink2); padding-left: 14px; position: relative; }
.cl-list li::before { content: '→'; position: absolute; left: 0; color: var(--ink3); font-size: 11px; top: 2px; }

/* ─── Language dropdown ──────────────────────────────────────────────────── */
.lang-dropdown { position: relative; }
.lang-current {
  display: flex;
  align-items: center;
  gap: 5px;
  background: var(--bg2);
  border: 1px solid var(--bg3);
  border-radius: 8px;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 500;
  color: var(--ink2);
  cursor: pointer;
  font-family: 'DM Sans', sans-serif;
  transition: border-color .12s, color .12s;
  white-space: nowrap;
}
.lang-current:hover { border-color: var(--ink3); color: var(--ink); }
.lang-chevron { transition: transform .2s ease; color: var(--ink3); flex-shrink: 0; }
.lang-dropdown.open .lang-chevron { transform: rotate(180deg); }
.lang-menu {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  background: #fff;
  border: 1px solid var(--bg3);
  border-radius: 10px;
  box-shadow: 0 4px 24px rgba(0,0,0,.09);
  overflow: hidden;
  list-style: none;
  min-width: 130px;
  opacity: 0;
  transform: translateY(-6px) scale(.97);
  transform-origin: top right;
  pointer-events: none;
  transition: opacity .18s ease, transform .18s ease;
  z-index: 200;
}
.lang-dropdown.open .lang-menu { opacity: 1; transform: none; pointer-events: all; }
.lang-opt {
  padding: 9px 14px;
  font-size: 13px;
  color: var(--ink2);
  cursor: pointer;
  transition: background .1s;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.lang-opt:hover { background: var(--bg2); color: var(--ink); }
.lang-opt.active { color: var(--accent); font-weight: 500; }
.lang-opt .check { font-size: 11px; color: var(--accent); opacity: 0; }
.lang-opt.active .check { opacity: 1; }

/* ─── Demo modal ─────────────────────────────────────────────────────────── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .7);
  backdrop-filter: blur(6px);
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease;
}
.modal-overlay.open { opacity: 1; pointer-events: all; }

.modal-inner {
  background: #fff;
  border-radius: 16px;
  width: 100%;
  max-width: 820px;
  overflow: hidden;
  position: relative;
  transform: scale(.95) translateY(12px);
  transition: transform .25s ease;
}
.modal-overlay.open .modal-inner { transform: scale(1) translateY(0); }

.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(0, 0, 0, .06);
  border: none;
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink2);
  transition: background .12s;
  z-index: 1;
}
.modal-close:hover { background: rgba(0, 0, 0, .12); }

.modal-video { background: #1a1a2e; aspect-ratio: 16 / 9; display: flex; align-items: center; justify-content: center; }
.modal-video iframe { width: 100%; height: 100%; display: block; }

.modal-video-ph {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  color: rgba(255, 255, 255, .3);
  font-size: 13px;
  font-family: 'DM Mono', monospace;
}
.modal-video-ph svg { opacity: .25; }
