/* Cenaria Engine — product site. Dark by default, light when the visitor prefers it. */
:root {
  --bg: #0b0b10;
  --bg-2: #111119;
  --surface: #16161f;
  --surface-2: #1d1d29;
  --border: #2a2a3a;
  --text: #ecebf2;
  --muted: #a3a2b6;
  --faint: #75748a;
  --accent: #a855f7;
  --accent-hot: #c084fc;
  --accent-ink: #ffffff;
  --ok: #34d399;
  --warn: #fbbf24;
  --radius: 14px;
  --max: 1120px;
  --shadow: 0 20px 60px -20px rgba(0, 0, 0, 0.6);
  color-scheme: dark;
}

@media (prefers-color-scheme: light) {
  :root {
    --bg: #fbfaff;
    --bg-2: #f3f1fb;
    --surface: #ffffff;
    --surface-2: #f6f4fd;
    --border: #e3e0f0;
    --text: #17161f;
    --muted: #55536a;
    --faint: #7d7b92;
    --accent: #8b3fe0;
    --accent-hot: #7c2fd6;
    --shadow: 0 20px 50px -24px rgba(60, 30, 110, 0.25);
    color-scheme: light;
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--accent-hot);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--text);
}

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

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 20px;
}

.skip {
  position: absolute;
  left: -9999px;
}

.skip:focus {
  left: 16px;
  top: 16px;
  z-index: 100;
  background: var(--surface);
  padding: 8px 12px;
  border-radius: 8px;
}

/* ---------- header ---------- */
.top {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  border-bottom: 1px solid var(--border);
}

.top .wrap {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 64px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
  font-weight: 750;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.brand .mark {
  width: 28px;
  height: 28px;
  flex: none;
}

.brand span {
  color: var(--accent-hot);
  font-weight: 600;
}

.nav {
  display: flex;
  gap: 20px;
  margin-left: auto;
  align-items: center;
}

.nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 15px;
}

.nav a:hover {
  color: var(--text);
}

.nav .lang {
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 3px 10px;
  font-size: 13px;
  font-weight: 650;
}

@media (max-width: 760px) {
  .nav .hide-sm {
    display: none;
  }
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: 999px;
  font-weight: 650;
  font-size: 15px;
  text-decoration: none;
  border: 1px solid transparent;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--accent);
  color: var(--accent-ink);
}

.btn-primary:hover {
  background: var(--accent-hot);
  color: var(--accent-ink);
}

.btn-ghost {
  border-color: var(--border);
  color: var(--text);
  background: var(--surface);
}

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

.tag18 {
  font-size: 11px;
  font-weight: 800;
  border-radius: 6px;
  padding: 1px 5px;
  background: #e11d48;
  color: #fff;
  letter-spacing: 0.02em;
}

/* ---------- hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: 88px 0 72px;
}

.hero::before {
  content: "";
  position: absolute;
  inset: -40% -10% auto auto;
  width: 760px;
  height: 760px;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--accent) 34%, transparent), transparent);
  filter: blur(20px);
  pointer-events: none;
}

.hero .wrap {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
}

@media (max-width: 1080px) {
  .hero {
    padding: 56px 0 48px;
  }

  .hero .wrap {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .sched {
    max-width: 640px;
  }
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 650;
  color: var(--accent-hot);
  background: color-mix(in srgb, var(--accent) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent) 35%, transparent);
  border-radius: 999px;
  padding: 4px 12px;
  margin-bottom: 18px;
}

h1 {
  font-size: clamp(36px, 5.4vw, 60px);
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin: 0 0 18px;
}

h1 em {
  font-style: normal;
  background: linear-gradient(90deg, var(--accent-hot), var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.lead {
  font-size: clamp(17px, 2vw, 20px);
  color: var(--muted);
  max-width: 34em;
  margin: 0 0 28px;
}

.cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-note {
  margin-top: 18px;
  font-size: 14px;
  color: var(--faint);
}

.launch {
  margin-top: 18px;
  font-size: 15px;
  color: var(--text);
  border-left: 3px solid var(--accent);
  padding-left: 12px;
}

.launch b {
  color: var(--accent-hot);
}

/* schedule card */
.sched {
  margin: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.sched-head {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
  color: var(--muted);
}

.sched-head i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--border);
  display: inline-block;
}

.sched-head b {
  margin-left: 8px;
  font-weight: 600;
  color: var(--text);
}

.sched ol {
  list-style: none;
  margin: 0;
  padding: 10px 0;
  font: 13.5px/1.5 ui-monospace, "Cascadia Code", "SF Mono", Menlo, Consolas, monospace;
}

.sched li {
  display: grid;
  grid-template-columns: 76px 96px 1fr;
  gap: 10px;
  padding: 5px 16px;
}

.sched li:hover {
  background: var(--surface-2);
}

.sched .t {
  color: var(--faint);
}

.sched .j {
  color: var(--accent-hot);
  font-weight: 600;
}

.sched .d {
  color: var(--muted);
}

@media (max-width: 480px) {
  .sched li {
    grid-template-columns: 74px 1fr;
  }

  .sched .d {
    grid-column: 2;
  }
}

.sched-foot {
  border-top: 1px solid var(--border);
  padding: 10px 16px;
  font-size: 12.5px;
  color: var(--faint);
}

/* ---------- sections ---------- */
section {
  padding: 80px 0;
}

section.alt {
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.sec-head {
  max-width: 720px;
  margin-bottom: 40px;
}

.sec-head .kicker {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-hot);
}

h2 {
  font-size: clamp(28px, 3.6vw, 40px);
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin: 8px 0 12px;
}

.sec-head p {
  color: var(--muted);
  font-size: 18px;
  margin: 0;
}

/* pipeline */
.pipe {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
  counter-reset: step;
}

@media (max-width: 980px) {
  .pipe {
    grid-template-columns: repeat(3, 1fr);
  }
}

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

.pipe li {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 16px 16px;
  counter-increment: step;
}

.pipe li::before {
  content: counter(step);
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: color-mix(in srgb, var(--accent) 18%, transparent);
  color: var(--accent-hot);
  font-weight: 800;
  font-size: 14px;
  margin-bottom: 10px;
}

.pipe h3 {
  font-size: 16px;
  margin: 0 0 6px;
}

.pipe p {
  font-size: 14px;
  color: var(--muted);
  margin: 0;
}

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

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

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

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
}

.card .ico {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: color-mix(in srgb, var(--accent) 16%, transparent);
  color: var(--accent-hot);
  margin-bottom: 14px;
}

.card .ico svg {
  width: 22px;
  height: 22px;
}

.card h3 {
  font-size: 18px;
  margin: 0 0 8px;
  letter-spacing: -0.01em;
}

.card p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}

.card ul {
  margin: 10px 0 0;
  padding-left: 18px;
  color: var(--muted);
  font-size: 14.5px;
}

.card li {
  margin: 3px 0;
}

/* stack strip */
.stack {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.stack span {
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 14px;
  color: var(--muted);
}

/* honesty box */
.honest {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

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

.honest .card h3 {
  display: flex;
  align-items: center;
  gap: 8px;
}

.check,
.cross {
  list-style: none;
  padding: 0 !important;
}

.check li,
.cross li {
  position: relative;
  padding-left: 26px;
  margin: 8px 0 !important;
}

.check li::before,
.cross li::before {
  position: absolute;
  left: 0;
  top: 0;
  font-weight: 800;
}

.check li::before {
  content: "✓";
  color: var(--ok);
}

.cross li::before {
  content: "!";
  color: var(--warn);
  left: 5px;
}

/* pricing */
.plans {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  align-items: stretch;
}

@media (max-width: 980px) {
  .plans {
    grid-template-columns: 1fr;
    max-width: 560px;
  }
}

.plan {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 28px 24px 24px;
}

.plan.featured {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent), var(--shadow);
}

.plan .badge {
  position: absolute;
  top: -12px;
  left: 24px;
  background: var(--accent);
  color: var(--accent-ink);
  font-size: 12px;
  font-weight: 750;
  padding: 3px 10px;
  border-radius: 999px;
}

.plan h3 {
  margin: 0;
  font-size: 20px;
}

.plan .for {
  color: var(--muted);
  font-size: 14.5px;
  margin: 6px 0 18px;
  min-height: 3em;
}

.price {
  display: flex;
  align-items: baseline;
  gap: 6px;
  flex-wrap: wrap;
}

.price strong {
  font-size: 40px;
  letter-spacing: -0.03em;
  line-height: 1;
}

.price small {
  color: var(--muted);
  font-size: 15px;
}

.price s {
  color: var(--faint);
  font-size: 20px;
  font-weight: 600;
}

.price-sub {
  color: var(--faint);
  font-size: 13.5px;
  margin: 8px 0 18px;
}

.plan ul {
  margin: 0 0 22px;
  padding: 0;
  font-size: 14.5px;
  color: var(--muted);
  flex: 1;
}

.plan .btn {
  width: 100%;
}

.pay-note {
  margin-top: 24px;
  color: var(--faint);
  font-size: 14px;
  max-width: 760px;
}

/* steps */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  counter-reset: s;
  list-style: none;
  padding: 0;
  margin: 0;
}

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

.steps li {
  counter-increment: s;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  color: var(--muted);
  font-size: 15px;
}

.steps li::before {
  content: counter(s);
  display: block;
  font-size: 28px;
  font-weight: 800;
  color: var(--accent-hot);
  margin-bottom: 6px;
}

.steps b {
  color: var(--text);
}

/* faq */
.faq {
  max-width: 820px;
}

.faq details {
  border-bottom: 1px solid var(--border);
  padding: 18px 0;
}

.faq summary {
  cursor: pointer;
  font-weight: 650;
  font-size: 17px;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "+";
  color: var(--accent-hot);
  font-size: 22px;
  line-height: 1;
}

.faq details[open] summary::after {
  content: "–";
}

.faq p {
  color: var(--muted);
  margin: 10px 0 0;
}

/* final cta */
.final {
  text-align: center;
}

.final .box {
  background:
    radial-gradient(600px 240px at 50% 0%, color-mix(in srgb, var(--accent) 22%, transparent), transparent),
    var(--surface);
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 56px 24px;
}

.final p {
  color: var(--muted);
  font-size: 18px;
  max-width: 36em;
  margin: 0 auto 26px;
}

.final .cta {
  justify-content: center;
}

.mail {
  margin-top: 16px;
  font-size: 15px;
  color: var(--faint);
}

/* footer */
footer {
  border-top: 1px solid var(--border);
  padding: 32px 0 48px;
  color: var(--faint);
  font-size: 14px;
}

footer .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
  justify-content: space-between;
}

footer a {
  color: var(--muted);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .btn {
    transition: none;
  }
}

/* ---------- order form dialog (assets/order.js) ---------- */
.order {
  width: min(520px, calc(100vw - 32px));
  max-height: calc(100vh - 32px);
  overflow: auto;
  padding: 26px 24px 18px;
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.order::backdrop {
  background: rgba(5, 5, 10, 0.72);
}

.order h2 {
  margin: 0 36px 6px 0;
  font-size: 22px;
  line-height: 1.25;
}

.order p {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 15px;
}

.order-x {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
}

.order-x:hover {
  background: var(--surface-2);
  color: var(--text);
}

.order label {
  display: block;
  margin-bottom: 12px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--muted);
}

.order input,
.order select,
.order textarea {
  display: block;
  width: 100%;
  box-sizing: border-box;
  margin-top: 5px;
  padding: 10px 12px;
  background: var(--bg-2);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 10px;
  font: inherit;
  font-size: 15px;
  font-weight: 400;
}

.order textarea {
  resize: vertical;
}

.order input:focus,
.order select:focus,
.order textarea:focus {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}

.order .btn {
  width: 100%;
  cursor: pointer;
  font: inherit;
  font-weight: 650;
}

.order .btn[disabled] {
  opacity: 0.6;
  cursor: wait;
}

.order-honey {
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0;
}

.order-note {
  margin: 12px 0 0 !important;
  font-size: 13px !important;
  color: var(--faint) !important;
  text-align: center;
}

.order-mail {
  color: var(--text);
  user-select: all;
  overflow-wrap: anywhere;
}
