/* PaperQuire marketing site — dark, minimal, Obsidian-inspired.
   No framework; plain CSS. */

:root {
  --bg: #121215;
  --bg-soft: #1a1a1f;
  --bg-card: #1e1e24;
  --bg-elevated: #252530;
  --ink: #f0f0f5;
  --body: #a0a0b0;
  --muted: #6b6b80;
  --line: #2a2a35;
  --blue: #6e8efb;
  --blue-dark: #5a7af0;
  --blue-soft: rgba(110, 142, 251, 0.1);
  --radius: 12px;
  --radius-lg: 16px;
  --shadow: none;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --mono: 'SF Mono', ui-monospace, 'JetBrains Mono', Menlo, Consolas, monospace;
  --maxw: 1080px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--body);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { color: var(--ink); line-height: 1.15; letter-spacing: -0.025em; margin: 0; font-weight: 700; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
p { margin: 0; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.eyebrow {
  font-size: 13px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--blue);
}
.muted { color: var(--muted); }
code { font-family: var(--mono); font-size: 0.88em; background: var(--bg-elevated); color: var(--blue);
  padding: 2px 6px; border-radius: 4px; }

/* ---- Buttons ---- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 22px; border-radius: 10px; font-weight: 600; font-size: 15px;
  border: 1px solid transparent; cursor: pointer; transition: all 0.15s ease;
  text-decoration: none; white-space: nowrap;
}
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-dark); text-decoration: none; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { background: var(--bg-elevated); text-decoration: none; }
.btn-lg { padding: 15px 28px; font-size: 16px; border-radius: 12px; }
.btn-star { font-size: 13px; padding: 8px 14px; }
.btn-star:hover { border-color: #e3b341; color: #e3b341; }

.link-arrow { font-weight: 600; font-size: 16px; color: var(--blue); }
.link-arrow:hover { text-decoration: underline; }

/* ---- Nav ---- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(18, 18, 21, 0.8); backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid var(--line);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 18px; color: var(--ink); }
.brand:hover { text-decoration: none; }
.brand svg { width: 28px; height: 28px; border-radius: 7px; }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a { color: var(--body); font-weight: 500; font-size: 15px; }
.nav-links a:hover { color: var(--ink); text-decoration: none; }
.nav-cta { display: flex; align-items: center; gap: 14px; }
.nav-toggle { display: none; background: none; border: 0; font-size: 22px; cursor: pointer; color: var(--ink); }

/* ---- Hero — Centered layout ---- */
.hero { padding: 100px 0 0; }
.hero-centered { text-align: center; }
.hero-centered .eyebrow { display: block; margin-bottom: 20px; }
.hero h1 { font-size: 56px; max-width: 16ch; margin: 0 auto; letter-spacing: -0.03em; }
.hero .sub { font-size: 19px; margin: 22px auto 0; max-width: 42ch; color: var(--body); }
.hero-actions { display: flex; align-items: center; gap: 20px; margin-top: 36px; flex-wrap: wrap; justify-content: center; }
.hero-note { margin-top: 18px; font-size: 13px; color: var(--muted); }

.hero-shot {
  margin-top: 56px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  transform: perspective(1400px) rotateY(-1deg);
}
.hero-shot img {
  display: block; width: 100%; height: auto;
}

/* ---- Sections ---- */
section { padding: 100px 0; }
.section-head { text-align: center; max-width: 600px; margin: 0 auto 56px; }
.section-head h2 { font-size: 36px; }
.section-head p { font-size: 17px; margin-top: 14px; }

/* ---- Value Props Row ---- */
.value-row-section { padding: 56px 0; border-bottom: 1px solid var(--line); }
.value-row {
  display: flex; align-items: center; justify-content: center; gap: 28px;
  font-size: 16px; font-weight: 600; color: var(--ink);
  flex-wrap: wrap;
}
.value-sep {
  width: 1px; height: 18px; background: var(--line);
}

/* ---- Feature Tabs ---- */
.feat-section { background: var(--bg-soft); }
.feat-tabs {
  display: flex; justify-content: center; gap: 0;
  margin-bottom: 48px;
  background: var(--bg-card);
  border-radius: 10px;
  padding: 4px;
  max-width: 400px;
  margin-left: auto; margin-right: auto;
}
.feat-tab {
  background: none; border: none;
  padding: 10px 24px; font-size: 14px; font-weight: 600;
  color: var(--muted); cursor: pointer; transition: all 0.15s ease;
  border-radius: 8px; flex: 1; text-align: center;
}
.feat-tab:hover { color: var(--ink); }
.feat-tab.active { color: #fff; background: var(--blue); }

.feat-panels { max-width: 840px; margin: 0 auto; }
.feat-panel { display: none; }
.feat-panel.active { display: block; }

.feat-img {
  border-radius: var(--radius-lg); overflow: hidden;
  border: 1px solid var(--line);
}
.feat-img img {
  display: block; width: 100%; height: auto; object-fit: cover;
  transition: opacity 0.2s ease;
}
.feat-img-preview img {
  object-position: right center;
  aspect-ratio: 16 / 10;
}
.feat-img-templates img {
  object-position: right center;
  aspect-ratio: 16 / 10;
}
.feat-img-export img {
  object-position: 85% 10%;
  aspect-ratio: 16 / 10;
}

.feat-desc {
  text-align: center; font-size: 17px; margin-top: 24px; color: var(--body);
}

/* ---- 2x2 Tile Grid ---- */
.tiles-section { padding: 0 0 100px; background: var(--bg-soft); }
.tiles-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 16px;
}
.tile {
  background: var(--bg-card); border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: 28px; overflow: hidden;
}
.tile h3 { font-size: 18px; margin-bottom: 8px; }
.tile > .muted { font-size: 14px; margin-bottom: 20px; }

/* Live Preview tile — screenshot */
.tile-img {
  border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--line);
}
.tile-img img {
  display: block; width: 100%; height: auto;
  object-fit: cover; object-position: right center;
  aspect-ratio: 16 / 9;
}

/* Plugins tile — compact list */
.tile-plugin-list { display: flex; flex-direction: column; gap: 8px; }
.tile-plugin {
  display: flex; justify-content: space-between; align-items: center;
  padding: 8px 12px; background: var(--bg-elevated); border-radius: 8px;
  font-size: 13px;
}
.tile-plugin-name { font-weight: 600; color: var(--ink); }
.tile-plugin-desc { color: var(--muted); font-size: 12px; }

/* AI Assist tile */
.tile-pro-badge {
  display: inline-block; padding: 2px 8px; background: var(--blue-soft); color: var(--blue);
  font-size: 11px; font-weight: 700; border-radius: 6px; text-transform: uppercase;
  letter-spacing: 0.04em; vertical-align: middle; margin-left: 6px;
}
.tile-ai-actions { display: flex; flex-direction: column; gap: 10px; margin-bottom: 16px; }
.tile-ai-action {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 10px 12px; background: var(--bg-elevated); border-radius: 8px;
}
.tile-ai-icon { font-size: 18px; flex-shrink: 0; line-height: 1.4; }
.tile-ai-name { font-weight: 600; font-size: 13px; color: var(--ink); }
.tile-ai-desc { font-size: 12px; color: var(--muted); margin-top: 2px; }
.tile-ai-providers { display: flex; flex-wrap: wrap; gap: 6px; }
.tile-ai-provider {
  padding: 4px 10px; background: var(--bg-elevated); border-radius: 6px;
  font-size: 11px; font-weight: 600; color: var(--body);
}

/* Templates tile — pill tags */
.tile-template-list { display: flex; flex-wrap: wrap; gap: 8px; }
.tile-tpl {
  padding: 6px 12px; background: var(--bg-elevated); border-radius: 8px;
  font-size: 13px; font-weight: 600; color: var(--ink);
}

/* Export tile — format chips */
.tile-formats { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 16px; }
.tile-format {
  padding: 10px 20px; background: var(--bg-elevated); border-radius: 10px;
  font-size: 14px; font-weight: 700; color: var(--ink);
}
.tile-format-primary { background: var(--blue); color: #fff; }
.tile-export-note { font-size: 12px; }
.tile { position: relative; }
.tile:has(.tile-link) { padding-bottom: 52px; }
.tile-link {
  position: absolute; bottom: 20px; right: 20px;
  font-size: 12px; font-weight: 600; color: var(--blue);
  background: var(--blue-soft); padding: 5px 12px;
  border-radius: 20px; text-decoration: none;
  transition: background 0.15s, color 0.15s;
}
.tile-link:hover { background: var(--blue); color: #fff; }
.tile-export { grid-column: 1 / -1; }

@media (max-width: 860px) {
  .tiles-grid { grid-template-columns: 1fr; }
}

/* ---- Recommended platform tile ---- */
.tile-recommended {
  border-color: var(--blue);
  box-shadow: 0 0 0 1px var(--blue), 0 0 24px rgba(110, 142, 251, 0.15);
}
.tile-recommended-badge {
  display: inline-block; font-size: 11px; font-weight: 700;
  color: var(--blue); background: var(--blue-soft);
  padding: 3px 10px; border-radius: 6px;
  text-transform: uppercase; letter-spacing: 0.04em;
  margin-bottom: 12px;
}

/* Downloads 3-col grid — stacks on mobile */
.dl-grid { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 860px) {
  .dl-grid { grid-template-columns: 1fr; }
}

/* ---- Editors Inline Pills ---- */
.editors-section { padding: 72px 0; }
.editors-inline {
  display: flex; align-items: center; justify-content: center;
  gap: 10px; flex-wrap: wrap;
}
.editors-label {
  font-size: 14px; font-weight: 600; color: var(--muted); margin-right: 4px;
}
.editor-pill {
  display: inline-flex; align-items: center;
  padding: 6px 14px; background: var(--bg-card); border: 1px solid var(--line);
  border-radius: 999px; font-weight: 600; font-size: 13px; color: var(--ink);
}

/* ---- CLI Lane ---- */
.cli-section { padding: 100px 0; }
.cli-lane {
  display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center;
}
.cli-text .eyebrow { display: block; margin-bottom: 16px; }
.cli-text h2 { font-size: 30px; margin-bottom: 14px; }
.cli-text > .muted { font-size: 15px; line-height: 1.7; margin-bottom: 24px; }
.cli-commands {
  display: flex; flex-direction: column; gap: 8px; margin-bottom: 24px;
}
.cli-commands code {
  display: block; padding: 8px 14px;
  background: var(--bg-card); border: 1px solid var(--line);
  border-radius: 8px; font-size: 13px; color: var(--ink);
}
.cli-terminal {
  background: #0d0d11; border: 1px solid var(--line);
  border-radius: var(--radius-lg); overflow: hidden;
}
.cli-terminal-bar {
  display: flex; gap: 7px; padding: 12px 16px;
  background: var(--bg-card); border-bottom: 1px solid var(--line);
}
.cli-dot {
  width: 11px; height: 11px; border-radius: 50%;
  background: var(--line);
}
.cli-code {
  margin: 0; padding: 20px; font-family: var(--mono);
  font-size: 13px; line-height: 1.7; color: var(--body);
  overflow-x: auto;
}
.cli-prompt { color: var(--blue); font-weight: 700; }
.cli-out { color: var(--muted); }
.cli-ok { color: #34d399; }

@media (max-width: 860px) {
  .cli-lane { grid-template-columns: 1fr; }
}

/* ---- Trust band ---- */
.band {
  background: var(--bg-card); color: var(--body);
  border-radius: var(--radius-lg); padding: 56px; text-align: center;
  border: 1px solid var(--line);
}
.band h2 { color: var(--ink); font-size: 30px; }
.band p { margin: 14px auto 0; max-width: 56ch; color: var(--muted); font-size: 17px; }
.band-stats { display: flex; justify-content: center; gap: 56px; margin-top: 36px; flex-wrap: wrap; }
.band-stat { text-align: center; }
.band-stat .n { font-size: 28px; font-weight: 700; color: var(--ink); }
.band-stat .l { font-size: 13px; color: var(--muted); margin-top: 2px; }

/* ---- CTA ---- */
.cta { text-align: center; background: var(--bg-soft); }
.cta h2 { font-size: 38px; margin-bottom: 32px; }

/* ---- Plan comparison cards (index.html) ---- */
.plans-section { background: var(--bg-soft); }
.plan-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: start; }
.plan-card {
  background: var(--bg-card); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 32px; text-align: center;
}
.plan-card.featured { border-color: var(--blue); }
.plan-card h3 { font-size: 20px; margin-bottom: 4px; }
.plan-price { font-size: 36px; font-weight: 800; color: var(--ink); margin: 8px 0 20px; letter-spacing: -0.03em; }
.plan-price small { font-size: 15px; font-weight: 600; color: var(--muted); }
.plan-card ul { list-style: none; padding: 0; margin: 0 0 24px; text-align: left; }
.plan-card li { padding-left: 24px; position: relative; margin: 10px 0; font-size: 14.5px; color: var(--body); }
.plan-card li::before { content: '\2713'; position: absolute; left: 0; color: var(--blue); font-weight: 700; }
.plan-card .btn { width: 100%; justify-content: center; }

/* ---- Pricing page (pricing.html) ---- */
.toggle { display: inline-flex; align-items: center; gap: 4px; background: var(--bg-card);
  border: 1px solid var(--line); border-radius: 999px; padding: 4px; margin: 0 auto 8px; }
.toggle button { border: 0; background: none; padding: 8px 18px; border-radius: 999px; font-weight: 600; font-size: 14px; cursor: pointer; color: var(--muted); transition: all 0.15s; }
.toggle button.active { background: var(--blue); color: #fff; }
.save-note { display: block; text-align: center; color: var(--muted); font-size: 14px; margin-bottom: 36px; }

.tiers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: start; }
.tier { background: var(--bg-card); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 32px; }
.tier.featured { border-color: var(--blue); position: relative; }
.tier-badge { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); background: var(--blue);
  color: #fff; font-size: 12px; font-weight: 700; padding: 4px 14px; border-radius: 999px; }
.tier h3 { font-size: 22px; }
.tier .price { font-size: 40px; font-weight: 800; color: var(--ink); margin: 14px 0 2px; letter-spacing: -0.03em; }
.tier .price small { font-size: 16px; font-weight: 600; color: var(--muted); }
.tier .price-sub { font-size: 14px; color: var(--muted); min-height: 20px; }
.tier .desc { font-size: 14px; margin: 14px 0; min-height: 40px; }
.tier .btn { width: 100%; justify-content: center; margin-top: 6px; }
.tier ul { margin: 22px 0 0; padding: 0; list-style: none; }
.tier li { padding-left: 26px; position: relative; margin: 11px 0; font-size: 14.5px; color: var(--body); }
.tier li::before { content: '\2713'; position: absolute; left: 0; color: var(--blue); font-weight: 700; }
.tier li.head { font-weight: 600; color: var(--ink); padding-left: 0; }
.tier li.head::before { content: ''; }

/* ---- Comparison table ---- */
.compare { width: 100%; border-collapse: collapse; margin-top: 8px; font-size: 14.5px; }
.compare th, .compare td { padding: 13px 16px; border-bottom: 1px solid var(--line); text-align: center; }
.compare th { color: var(--ink); font-size: 15px; }
.compare td:first-child, .compare th:first-child { text-align: left; color: var(--body); }
.compare tbody tr:hover { background: var(--bg-card); }
.compare .yes { color: var(--blue); font-weight: 700; }
.compare .no { color: var(--muted); }

/* ---- FAQ ---- */
.faq { max-width: 760px; margin: 0 auto; }
.faq details { border-bottom: 1px solid var(--line); padding: 18px 0; }
.faq summary { font-weight: 600; color: var(--ink); font-size: 16px; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; float: right; color: var(--muted); font-weight: 400; }
.faq details[open] summary::after { content: '\2212'; }
.faq p { margin-top: 12px; font-size: 15px; }

/* ---- Enterprise section (pricing.html) ---- */
.ent-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.ent-card {
  background: var(--bg-card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px;
}
.ent-card .ico { width: 40px; height: 40px; border-radius: 10px; background: var(--blue-soft);
  display: grid; place-items: center; font-size: 20px; margin-bottom: 14px; }
.ent-card h3 { font-size: 17px; margin-bottom: 8px; }
.ent-card p { font-size: 15px; color: var(--muted); }

/* ---- Changelog ---- */
.changelog-card {
  background: var(--bg-card); border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: 28px;
  margin-bottom: 20px;
}
.changelog-header {
  display: flex; align-items: baseline; justify-content: space-between;
  flex-wrap: wrap; gap: 8px; margin-bottom: 16px;
}
.changelog-meta { display: flex; align-items: center; gap: 12px; }
.changelog-pre-badge {
  font-size: 11px; font-weight: 700; color: #f59e0b;
  background: rgba(245, 158, 11, 0.12);
  padding: 2px 8px; border-radius: 6px; text-transform: uppercase;
}
.changelog-body { font-size: 15px; line-height: 1.7; color: var(--body); }
.changelog-body h3, .changelog-body h4 { color: var(--ink); }
.changelog-body code {
  font-family: var(--mono); font-size: 0.85em;
  background: var(--bg-elevated); color: var(--blue);
  padding: 2px 6px; border-radius: 4px;
}
.changelog-body ul { color: var(--body); }
.changelog-body a { color: var(--blue); }
.changelog-assets {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line);
}
.changelog-asset {
  font-size: 13px; font-weight: 600; color: var(--blue);
  background: var(--blue-soft); padding: 6px 14px;
  border-radius: 8px; text-decoration: none;
  transition: background 0.15s, color 0.15s;
}
.changelog-asset:hover { background: var(--blue); color: #fff; text-decoration: none; }

.changelog-loading { display: flex; flex-direction: column; gap: 20px; }
.changelog-skeleton {
  height: 120px; background: var(--bg-card); border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  animation: skeleton-pulse 1.5s ease-in-out infinite;
}
@keyframes skeleton-pulse {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 0.8; }
}

/* ---- Newsletter ---- */
.newsletter-banner {
  max-width: 600px; margin: 0 auto; padding: 40px 32px;
  background: var(--bg-card); border: 1px solid var(--line);
  border-radius: var(--radius-lg); text-align: center;
}
.newsletter-banner h3 { font-size: 22px; margin-bottom: 8px; }
.newsletter-banner p { font-size: 15px; margin-bottom: 20px; }
.newsletter-form {
  display: flex; gap: 8px; justify-content: center;
}
.newsletter-input {
  padding: 11px 16px; font-size: 15px; font-family: var(--font);
  background: var(--bg-elevated); color: var(--ink);
  border: 1px solid var(--line); border-radius: 10px;
  outline: none; width: 260px;
}
.newsletter-input::placeholder { color: var(--muted); }
.newsletter-input:focus { border-color: var(--blue); }
.newsletter-submit {
  padding: 11px 22px; font-size: 15px; font-weight: 600;
  font-family: var(--font);
  background: var(--blue); color: #fff; border: none;
  border-radius: 10px; cursor: pointer; transition: background 0.15s;
}
.newsletter-submit:hover { background: var(--blue-dark); }

/* Newsletter — homepage compact row */
.newsletter-row { text-align: center; padding: 56px 0; }
.newsletter-row h3 { font-size: 22px; margin-bottom: 6px; }
.newsletter-row p { font-size: 15px; margin-bottom: 20px; }

/* Newsletter — footer compact form */
.newsletter-footer {
  display: flex; gap: 6px; margin-top: 16px; max-width: 240px;
}
.newsletter-footer input {
  flex: 1; min-width: 0;
  padding: 8px 12px; font-size: 13px; font-family: var(--font);
  background: var(--bg-elevated); color: var(--ink);
  border: 1px solid var(--line); border-radius: 8px; outline: none;
}
.newsletter-footer input::placeholder { color: var(--muted); }
.newsletter-footer input:focus { border-color: var(--blue); }
.newsletter-footer button {
  padding: 8px 12px; font-size: 15px;
  background: var(--blue); color: #fff; border: none;
  border-radius: 8px; cursor: pointer; transition: background 0.15s;
  line-height: 1;
}
.newsletter-footer button:hover { background: var(--blue-dark); }

@media (max-width: 860px) {
  .newsletter-form { flex-direction: column; align-items: center; }
  .newsletter-input { width: 100%; max-width: 320px; }
}

/* ---- Footer ---- */
.footer { background: var(--bg-soft); border-top: 1px solid var(--line); padding: 56px 0 32px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 32px; }
.footer h4 { font-size: 13px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); margin-bottom: 14px; }
.footer ul { list-style: none; margin: 0; padding: 0; }
.footer li { margin: 9px 0; }
.footer a { color: var(--body); font-size: 14px; }
.footer a:hover { color: var(--ink); }
.footer-bottom { margin-top: 44px; padding-top: 24px; border-top: 1px solid var(--line);
  display: flex; justify-content: space-between; color: var(--muted); font-size: 13px; flex-wrap: wrap; gap: 8px; }

/* ---- Responsive ---- */
@media (max-width: 860px) {
  .hero h1 { font-size: 36px; }
  .hero-shot { transform: none; }
  .value-row { font-size: 14px; gap: 16px; }
  .value-sep { display: none; }
  .feat-tabs { max-width: 100%; }
  .feat-tab { padding: 10px 14px; font-size: 13px; }
  .nav-links { display: none; }
  .nav-links.open {
    display: flex; position: absolute; top: 64px; left: 0; right: 0; flex-direction: column;
    background: var(--bg); border-bottom: 1px solid var(--line); padding: 16px 24px; gap: 16px;
  }
  .nav-toggle { display: block; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .tiers { grid-template-columns: 1fr; }
  .plan-cards { grid-template-columns: 1fr; }
  .ent-grid { grid-template-columns: 1fr; }
  .compare { font-size: 12.5px; }
  .compare th, .compare td { padding: 10px 8px; }
}
