/* CutPilot marketing site — shared stylesheet.
   Self-contained: system font stack only, no external assets. */

:root {
  --bg: #0b0b10;
  --bg-raised: #12121a;
  --bg-card: #14141d;
  --border: rgba(255, 255, 255, 0.09);
  --border-strong: rgba(255, 255, 255, 0.16);
  --text: #e9e9f2;
  --text-muted: #a7a7bd;
  --accent: #7c6cff;
  --accent-2: #4da6ff;
  --accent-soft: rgba(124, 108, 255, 0.14);
  --good: #5ad899;
  --warn: #ffb35c;
  --radius: 12px;
  --maxw: 1080px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica,
    Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
}

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

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; height: auto; }

a { color: var(--accent-2); text-decoration: none; }
a:hover { text-decoration: underline; }

a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--accent-2);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--accent);
  color: #0b0b10;
  padding: 0.6rem 1rem;
  z-index: 100;
  border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* ---------- Header / nav ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(11, 11, 16, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--text);
  letter-spacing: -0.01em;
}
.brand:hover { text-decoration: none; }
.brand svg { flex: none; }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  color: var(--text);
  padding: 0.4rem 0.6rem;
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
}

.site-nav ul {
  display: flex;
  gap: 1.4rem;
  list-style: none;
  align-items: center;
}

.site-nav a {
  color: var(--text-muted);
  font-weight: 500;
  font-size: 0.95rem;
}
.site-nav a:hover { color: var(--text); text-decoration: none; }
.site-nav a[aria-current="page"] { color: var(--text); }

.site-nav a.nav-cta {
  color: #0b0b10;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  padding: 0.45rem 0.95rem;
  border-radius: 999px;
  font-weight: 600;
}
.site-nav a.nav-cta:hover { filter: brightness(1.1); }

@media (max-width: 760px) {
  .nav-toggle { display: block; }
  .site-nav {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--bg-raised);
    border-bottom: 1px solid var(--border);
    padding: 1rem 1.25rem 1.25rem;
  }
  .site-nav.open { display: block; }
  .site-nav ul { flex-direction: column; align-items: flex-start; gap: 1rem; }
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-block;
  padding: 0.7rem 1.4rem;
  border-radius: 10px;
  font-weight: 600;
  font-size: 1rem;
  border: 1px solid transparent;
  cursor: pointer;
}
.btn:hover { text-decoration: none; }

.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #0b0b10;
}
.btn-primary:hover { filter: brightness(1.1); }

.btn-ghost {
  border-color: var(--border-strong);
  color: var(--text);
  background: transparent;
}
.btn-ghost:hover { border-color: var(--accent); }

/* ---------- Hero ---------- */

.hero {
  padding: 5rem 0 4rem;
  text-align: center;
  background:
    radial-gradient(ellipse 70% 50% at 50% -10%, rgba(124, 108, 255, 0.18), transparent),
    radial-gradient(ellipse 45% 35% at 80% 5%, rgba(77, 166, 255, 0.08), transparent);
}

.hero h1 {
  font-size: clamp(2rem, 5.5vw, 3.4rem);
  line-height: 1.12;
  letter-spacing: -0.02em;
  max-width: 780px;
  margin: 0 auto 1.2rem;
}

.hero .sub {
  font-size: clamp(1.05rem, 2.2vw, 1.3rem);
  color: var(--text-muted);
  max-width: 640px;
  margin: 0 auto 2rem;
}

.hero .sub strong { color: var(--text); font-weight: 600; }

.hero-ctas {
  display: flex;
  gap: 0.9rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 1.4rem;
}

.badges {
  display: flex;
  gap: 0.6rem;
  justify-content: center;
  flex-wrap: wrap;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  padding: 0.3rem 0.85rem;
  font-size: 0.83rem;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.02);
}
.badge .dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent-2);
  display: inline-block;
}

/* Mock chat card in hero */
.hero-demo {
  margin: 3rem auto 0;
  max-width: 560px;
  text-align: left;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.1rem 1.2rem;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}
.chat-line { margin-bottom: 0.8rem; font-size: 0.93rem; }
.chat-line .who {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  display: block;
  margin-bottom: 0.15rem;
}
.chat-user { color: var(--text); }
.plan-card {
  border: 1px solid rgba(124, 108, 255, 0.45);
  background: var(--accent-soft);
  border-radius: 10px;
  padding: 0.75rem 0.9rem;
  font-size: 0.9rem;
}
.plan-card .plan-title { font-weight: 600; margin-bottom: 0.2rem; }
.plan-card .plan-actions { margin-top: 0.55rem; display: flex; gap: 0.5rem; }
.plan-card .chip {
  font-size: 0.8rem;
  padding: 0.2rem 0.75rem;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  color: var(--text-muted);
}
.plan-card .chip.apply {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #0b0b10;
  border-color: transparent;
  font-weight: 600;
}
.undo-note {
  margin-top: 0.7rem;
  font-size: 0.8rem;
  color: var(--text-muted);
  font-family: var(--mono);
}

/* ---------- Sections ---------- */

section { padding: 4rem 0; }
section.alt { background: var(--bg-raised); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

.section-head { max-width: 680px; margin: 0 auto 2.6rem; text-align: center; }
.section-head h2 {
  font-size: clamp(1.5rem, 3.4vw, 2.1rem);
  letter-spacing: -0.015em;
  margin-bottom: 0.7rem;
}
.section-head p { color: var(--text-muted); }

.kicker {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent-2);
  margin-bottom: 0.6rem;
}

.grid {
  display: grid;
  gap: 1.1rem;
}
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

@media (max-width: 900px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .grid-4 { grid-template-columns: 1fr; }
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
}
.card h3 { font-size: 1.08rem; margin-bottom: 0.5rem; letter-spacing: -0.01em; }
.card p { color: var(--text-muted); font-size: 0.94rem; }
.card .step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px; height: 30px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 0.9rem;
}
.card .tool-icon { margin-bottom: 0.9rem; color: var(--accent); }

.free-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--good);
  border: 1px solid rgba(90, 216, 153, 0.4);
  border-radius: 999px;
  padding: 0.1rem 0.55rem;
  margin-left: 0.4rem;
  vertical-align: middle;
}

/* ---------- Privacy / diagram ---------- */

.privacy-flow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.9rem;
  flex-wrap: wrap;
  margin: 2rem 0;
  font-size: 0.92rem;
}
.privacy-node {
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  padding: 0.7rem 1.1rem;
  background: var(--bg-card);
  text-align: center;
}
.privacy-node .small { display: block; font-size: 0.76rem; color: var(--text-muted); }
.privacy-arrow { color: var(--accent-2); font-size: 1.2rem; }
.privacy-note {
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.95rem;
}
.privacy-note strong { color: var(--text); }

/* ---------- Comparison table ---------- */

.table-wrap { overflow-x: auto; }
table.compare {
  width: 100%;
  border-collapse: collapse;
  min-width: 620px;
  font-size: 0.94rem;
}
table.compare th, table.compare td {
  padding: 0.85rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}
table.compare thead th {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border-strong);
}
table.compare td.dim { color: var(--text-muted); }
table.compare td.win { color: var(--text); }
table.compare td.win::before {
  content: "✓ ";
  color: var(--good);
  font-weight: 700;
}
table.compare th[scope="row"] { font-weight: 600; color: var(--text); width: 22%; }

/* ---------- Changelog trust card ---------- */

.changelog-demo {
  max-width: 620px;
  margin: 0 auto;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.3rem 1.5rem;
  font-family: var(--mono);
  font-size: 0.86rem;
  line-height: 1.75;
}
.changelog-demo .cl-title {
  font-family: var(--font);
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 0.6rem;
}
.changelog-demo ul { list-style: none; }
.changelog-demo li::before { content: "— "; color: var(--accent); }
.changelog-demo .cl-undo { color: var(--text-muted); margin-top: 0.6rem; }

/* ---------- FAQ ---------- */

.faq { max-width: 760px; margin: 0 auto; }
.faq details {
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--bg-card);
  margin-bottom: 0.7rem;
  padding: 0 1.2rem;
}
.faq summary {
  cursor: pointer;
  font-weight: 600;
  padding: 1rem 0;
  list-style: none;
  position: relative;
  padding-right: 2rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  position: absolute;
  right: 0.2rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--accent);
  font-size: 1.2rem;
}
.faq details[open] summary::after { content: "–"; }
.faq details p, .faq details ul { color: var(--text-muted); padding-bottom: 1rem; font-size: 0.95rem; }
.faq details ul { padding-left: 2.2rem; }

/* ---------- Pricing ---------- */

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
  align-items: stretch;
}
@media (max-width: 860px) { .pricing-grid { grid-template-columns: 1fr; max-width: 460px; margin: 0 auto; } }

.price-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.8rem 1.6rem;
  display: flex;
  flex-direction: column;
}
.price-card.featured {
  border-color: rgba(124, 108, 255, 0.6);
  background:
    linear-gradient(180deg, rgba(124, 108, 255, 0.09), transparent 55%),
    var(--bg-card);
  position: relative;
}
.price-card .plan-name { font-size: 1.05rem; font-weight: 700; margin-bottom: 0.2rem; }
.price-card .plan-for { font-size: 0.86rem; color: var(--text-muted); margin-bottom: 1.1rem; }
.price-card .price { font-size: 2.3rem; font-weight: 800; letter-spacing: -0.02em; }
.price-card .price .per { font-size: 0.9rem; font-weight: 500; color: var(--text-muted); }
.price-card .price-note { font-size: 0.83rem; color: var(--text-muted); margin-bottom: 1.2rem; }
.price-card ul {
  list-style: none;
  margin: 0 0 1.6rem;
  flex: 1;
}
.price-card li {
  padding: 0.42rem 0;
  font-size: 0.93rem;
  color: var(--text-muted);
  padding-left: 1.5rem;
  position: relative;
}
.price-card li::before {
  content: "✓";
  color: var(--good);
  position: absolute;
  left: 0;
  font-weight: 700;
}
.price-card li.no::before { content: "✕"; color: var(--text-muted); opacity: 0.6; }
.price-card li strong { color: var(--text); font-weight: 600; }
.price-card .btn { width: 100%; text-align: center; }
.featured-tag {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #0b0b10;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border-radius: 999px;
  padding: 0.25rem 0.9rem;
  white-space: nowrap;
}

/* ---------- Download cards ---------- */

.dl-card .version {
  font-family: var(--mono);
  font-size: 0.8rem;
  color: var(--text-muted);
  margin: 0.3rem 0 1rem;
}
.dl-card .btn { margin-top: 0.6rem; }
.dl-meta { font-size: 0.8rem; color: var(--text-muted); margin-top: 0.7rem; }

ol.steps { counter-reset: step; list-style: none; max-width: 760px; margin: 0 auto; }
ol.steps > li {
  counter-increment: step;
  position: relative;
  padding: 0 0 1.6rem 3.2rem;
}
ol.steps > li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: 34px; height: 34px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}
ol.steps h3 { font-size: 1.05rem; margin-bottom: 0.3rem; }
ol.steps p, ol.steps ul { color: var(--text-muted); font-size: 0.94rem; }
ol.steps ul { padding-left: 1.2rem; margin-top: 0.3rem; }

/* ---------- Docs / prose ---------- */

.page-head { padding: 3.2rem 0 0.6rem; }
.page-head h1 { font-size: clamp(1.7rem, 4vw, 2.4rem); letter-spacing: -0.02em; margin-bottom: 0.6rem; }
.page-head .lede { color: var(--text-muted); max-width: 680px; font-size: 1.05rem; }

.docs-nav {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  margin: 1.6rem 0 0;
}
.docs-nav a {
  font-size: 0.88rem;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  padding: 0.35rem 0.95rem;
  color: var(--text-muted);
}
.docs-nav a:hover { color: var(--text); text-decoration: none; border-color: var(--accent); }
.docs-nav a[aria-current="page"] {
  color: #0b0b10;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  border-color: transparent;
  font-weight: 600;
}

.prose { max-width: 760px; }
.prose h2 { font-size: 1.45rem; margin: 2.6rem 0 0.8rem; letter-spacing: -0.015em; }
.prose h3 { font-size: 1.12rem; margin: 1.8rem 0 0.5rem; }
.prose p, .prose li { color: var(--text-muted); }
.prose p { margin-bottom: 0.9rem; }
.prose ul, .prose ol { padding-left: 1.4rem; margin-bottom: 0.9rem; }
.prose li { margin-bottom: 0.35rem; }
.prose strong { color: var(--text); }
.prose code {
  font-family: var(--mono);
  font-size: 0.86em;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid var(--border);
  border-radius: 5px;
  padding: 0.08em 0.4em;
  color: var(--text);
}
.prose pre {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1rem 1.2rem;
  overflow-x: auto;
  margin-bottom: 1rem;
}
.prose pre code { background: none; border: none; padding: 0; }
.prose table { width: 100%; border-collapse: collapse; font-size: 0.92rem; margin-bottom: 1rem; }
.prose th, .prose td { border: 1px solid var(--border); padding: 0.55rem 0.8rem; text-align: left; }
.prose th { color: var(--text); background: rgba(255, 255, 255, 0.03); }
.prose td { color: var(--text-muted); }

.callout {
  border: 1px solid rgba(124, 108, 255, 0.4);
  background: var(--accent-soft);
  border-radius: 10px;
  padding: 0.9rem 1.2rem;
  margin: 1.2rem 0;
  font-size: 0.94rem;
}
.callout.warn { border-color: rgba(255, 179, 92, 0.4); background: rgba(255, 179, 92, 0.08); }

/* ---------- Changelog ---------- */

.release {
  border-left: 2px solid var(--border-strong);
  padding: 0 0 2.4rem 1.8rem;
  position: relative;
  max-width: 760px;
}
.release::before {
  content: "";
  position: absolute;
  left: -7px;
  top: 8px;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
}
.release h2 { font-size: 1.35rem; letter-spacing: -0.01em; }
.release .release-date { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 0.9rem; display: block; }
.release h3 { font-size: 1rem; margin: 1.2rem 0 0.4rem; }
.release ul { padding-left: 1.3rem; }
.release li { color: var(--text-muted); margin-bottom: 0.3rem; font-size: 0.95rem; }
.release li strong { color: var(--text); }

/* ---------- CTA band ---------- */

.cta-band {
  text-align: center;
  padding: 4.5rem 0;
  background:
    radial-gradient(ellipse 60% 80% at 50% 110%, rgba(124, 108, 255, 0.16), transparent);
  border-top: 1px solid var(--border);
}
.cta-band h2 { font-size: clamp(1.5rem, 3.4vw, 2.1rem); margin-bottom: 0.8rem; letter-spacing: -0.015em; }
.cta-band p { color: var(--text-muted); margin-bottom: 1.8rem; }

/* ---------- Footer ---------- */

.site-footer {
  border-top: 1px solid var(--border);
  padding: 3rem 0 2.2rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2.2rem;
}
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
.site-footer h3 {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text);
  margin-bottom: 0.7rem;
}
.site-footer ul { list-style: none; }
.site-footer li { margin-bottom: 0.45rem; }
.site-footer a { color: var(--text-muted); }
.site-footer a:hover { color: var(--text); }
.footer-brand p { max-width: 300px; margin-top: 0.6rem; font-size: 0.86rem; }
.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 1.4rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: 0.82rem;
}
