/* x-doo.com: one stylesheet for every page. */
:root {
  --bg: #0b0a14;
  --bg-raised: #15132a;
  --bg-card: #1b1835;
  --line: #2c2850;
  --text: #ece9ff;
  --text-soft: #a9a3cc;
  --cyan: #22d3ee;
  --magenta: #e43ad8;
  --violet: #8b5cf6;
  --grad: linear-gradient(90deg, var(--cyan), var(--violet) 55%, var(--magenta));
  --radius: 14px;
  --wrap: 1120px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
}
img, video { max-width: 100%; display: block; }
a { color: var(--cyan); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.3rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
.soft { color: var(--text-soft); }
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
section { padding: 72px 0; }
.center { text-align: center; }
.lead { font-size: 1.2rem; color: var(--text-soft); max-width: 680px; }
.center .lead { margin-left: auto; margin-right: auto; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: rgba(11, 10, 20, .85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; gap: 24px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); font-weight: 700; font-size: 1.15rem; }
.brand:hover { text-decoration: none; }
.brand img { width: 30px; height: 30px; }
.brand .dot { color: var(--magenta); }
.nav { display: flex; gap: 20px; margin-left: auto; flex-wrap: wrap; }
.nav a { color: var(--text-soft); font-size: .95rem; }
.nav a:hover, .nav a[aria-current] { color: var(--text); text-decoration: none; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px; border-radius: 999px; border: 1px solid var(--line);
  font-weight: 600; color: var(--text); background: var(--bg-card);
  cursor: pointer; font: inherit; font-weight: 600;
}
.btn:hover { text-decoration: none; border-color: var(--violet); }
.btn-primary { background: var(--grad); border: 0; color: #fff; }
.btn-primary:hover { filter: brightness(1.1); }
.btn[aria-disabled="true"] { opacity: .55; cursor: default; pointer-events: none; }
.btn-row { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 24px; }
.center .btn-row { justify-content: center; }

/* Hero */
.hero { padding: 72px 0 56px; }
.hero-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: 48px; align-items: center; }
.hero video, .shot {
  border-radius: var(--radius); border: 1px solid var(--line);
  box-shadow: 0 20px 60px rgba(139, 92, 246, .25);
  width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: #000;
}
.badge {
  display: inline-block; padding: 4px 12px; border-radius: 999px; margin-bottom: 16px;
  border: 1px solid var(--line); color: var(--text-soft); font-size: .85rem;
}

/* Cards and grids */
.grid { display: grid; gap: 20px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.card {
  background: var(--bg-raised); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 24px;
}
.card p:last-child { margin-bottom: 0; }
.icon { font-size: 1.8rem; margin-bottom: 8px; }
.alt { background: var(--bg-raised); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.alt .card { background: var(--bg-card); }

/* Template gallery */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; }
.gallery figure { margin: 0; }
.gallery img { border-radius: 10px; border: 1px solid var(--line); width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: #000; }
.gallery figcaption { font-size: .85rem; color: var(--text-soft); margin-top: 6px; }

.clips { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.clips video { border-radius: 10px; border: 1px solid var(--line); width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: #000; }

/* Pricing */
.pricing { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: stretch; }
.plan { display: flex; flex-direction: column; }
.plan.featured { border-color: var(--violet); box-shadow: 0 0 0 1px var(--violet), 0 20px 50px rgba(139, 92, 246, .2); }
.plan .price { font-size: 2.6rem; font-weight: 800; margin: 8px 0 0; }
.plan .price small { font-size: 1rem; font-weight: 500; color: var(--text-soft); }
.plan ul { list-style: none; padding: 0; margin: 16px 0 24px; flex: 1; }
.plan li { padding: 6px 0 6px 28px; position: relative; color: var(--text-soft); }
.plan li::before { content: "✓"; position: absolute; left: 0; color: var(--cyan); font-weight: 700; }
.plan li.no::before { content: "—"; color: var(--line); }
.plan .btn { width: 100%; }
.plan .note { font-size: .85rem; color: var(--text-soft); margin-top: 10px; text-align: center; }

/* Comparison table */
.table-wrap { overflow-x: auto; margin-top: 40px; }
table { width: 100%; border-collapse: collapse; font-size: .95rem; }
th, td { padding: 12px 14px; border-bottom: 1px solid var(--line); text-align: left; }
th { color: var(--text-soft); font-weight: 600; }
td:not(:first-child), th:not(:first-child) { text-align: center; white-space: nowrap; }

/* FAQ */
details { border-bottom: 1px solid var(--line); padding: 16px 0; }
summary { cursor: pointer; font-weight: 600; }
details p { margin: 12px 0 0; color: var(--text-soft); }

/* Text pages (legal, contact) */
.doc { max-width: 780px; margin: 0 auto; padding: 56px 20px 72px; }
.doc h1 { font-size: 2.2rem; }
.doc h2 { font-size: 1.3rem; margin-top: 2em; }
.doc > h3 { font-size: 1.05rem; margin-top: 1.5em; }
.doc li { margin-bottom: .4em; }
.doc .meta { color: var(--text-soft); font-size: .9rem; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 40px 0; color: var(--text-soft); font-size: .9rem; }
.site-footer .wrap { display: flex; gap: 24px; flex-wrap: wrap; justify-content: space-between; }
.site-footer nav { display: flex; gap: 18px; flex-wrap: wrap; }
.site-footer a { color: var(--text-soft); }

@media (max-width: 860px) {
  .hero-grid, .grid-3, .grid-2, .pricing, .clips { grid-template-columns: 1fr; }
  section { padding: 56px 0; }
  .site-header .wrap { height: auto; padding-top: 12px; padding-bottom: 12px; flex-wrap: wrap; gap: 10px; }
  .nav { margin-left: 0; gap: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

/* The "name on the license" dialog before checkout (assets/buy.js). */
.buy-dialog {
  background: var(--bg-card); color: var(--text); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 28px; width: min(440px, calc(100vw - 32px));
}
.buy-dialog::backdrop { background: rgb(0 0 0 / .6); }
.buy-dialog label { display: block; font-weight: 600; margin: 4px 0 6px; }
.buy-dialog input {
  width: 100%; font: inherit; color: var(--text); background: var(--bg);
  border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px;
}
.buy-dialog input:focus { outline: 2px solid var(--violet); border-color: transparent; }
.buy-dialog .soft { font-size: .92rem; }
.buy-dialog .btn-row { justify-content: flex-end; }
