/* qCMS landing — tokens borrowed from custom.css, layered with SaaS-flavored layout utilities */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,300;9..144,400;9..144,500;9..144,600&family=Inter:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

:root {
  --cream:       #faf6ef;
  --cream-2:     #f4ede1;
  --cream-3:     #ebe2d2;
  --paper:       #ffffff;
  --ink:         #1f1b16;
  --ink-2:       #4a4239;
  --ink-3:       #8a7d6b;
  --hair:        #e8e2d4;
  --hair-2:      #d9d0bd;
  --blush:       #e8c5c0;
  --blush-deep:  #c98a85;
  --sage:        #a8b89a;
  --sage-deep:   #6e8266;
  --gold:        #b8956a;

  --accent:       var(--blush-deep);
  --accent-soft:  var(--blush);
  --accent-tint:  rgba(201,138,133,0.10);

  --serif:  'Fraunces', 'Cormorant Garamond', Georgia, serif;
  --sans:   'Inter', system-ui, sans-serif;
  --mono:   'JetBrains Mono', ui-monospace, monospace;

  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 14px;
  --r-xl: 22px;
}

/* palette swap helpers — Tweaks toggle these */
[data-palette="sage"] {
  --accent:      var(--sage-deep);
  --accent-soft: var(--sage);
  --accent-tint: rgba(110,130,102,0.12);
}
[data-palette="cobalt"] {
  --accent:      oklch(52% 0.15 252);
  --accent-soft: oklch(78% 0.07 252);
  --accent-tint: oklch(52% 0.15 252 / 0.12);
}
[data-palette="ochre"] {
  --accent:      var(--gold);
  --accent-soft: oklch(83% 0.07 70);
  --accent-tint: rgba(184,149,106,0.14);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: inherit; }

/* type primitives */
.eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-3);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.eyebrow .dot {
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--accent);
  display: inline-block;
}
.display {
  font-family: var(--serif);
  font-weight: 300;
  letter-spacing: -0.025em;
  line-height: 1.0;
  font-size: clamp(40px, 6.4vw, 88px);
  color: var(--ink);
  margin: 0;
}
.display em {
  font-style: italic;
  font-weight: 400;
  color: var(--accent);
}
.h2 {
  font-family: var(--serif);
  font-weight: 300;
  letter-spacing: -0.02em;
  line-height: 1.05;
  font-size: clamp(32px, 4.4vw, 56px);
  margin: 0;
}
.h2 em { font-style: italic; color: var(--accent); font-weight: 400; }
.lede {
  font-size: clamp(15px, 1.4vw, 18px);
  color: var(--ink-2);
  line-height: 1.55;
  max-width: 56ch;
  margin: 0;
}

.label {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-3);
}

/* buttons */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 18px;
  border-radius: 999px;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--cream);
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  transition: transform 120ms ease, background 120ms ease, color 120ms ease;
}
.btn:hover { transform: translateY(-1px); }
.btn.ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--hair-2);
}
.btn.ghost:hover { background: var(--paper); }
.btn.accent {
  background: var(--accent);
  border-color: var(--accent);
  color: white;
}

/* page shell */
.shell {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 28px;
}
@media (max-width: 640px) {
  .shell { padding: 0 18px; }
}

/* nav */
.nav {
  position: sticky; top: 0; z-index: 30;
  backdrop-filter: blur(14px) saturate(150%);
  background: rgba(250,246,239,0.78);
  border-bottom: 1px solid var(--hair);
}
.nav-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 0;
}
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--serif); font-weight: 400;
  font-size: 22px; letter-spacing: -0.01em;
  text-decoration: none; color: var(--ink);
}
.brand .mark {
  width: 30px; height: 30px;
  border-radius: 8px;
  background: var(--ink);
  color: var(--cream);
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  font-size: 17px;
}
.brand .mark::before {
  content: 'q';
  transform: translateY(-1px);
}
.brand .name { font-style: italic; }

.nav-links {
  display: flex; gap: 28px; align-items: center;
  font-size: 13.5px; color: var(--ink-2);
}
.nav-links a { text-decoration: none; }
.nav-links a:hover { color: var(--accent); }
@media (max-width: 760px) { .nav-links { display: none; } }

.nav-hamburger {
  display: none; background: none; border: none; cursor: pointer;
  padding: 6px; flex-direction: column; gap: 5px;
}
.nav-hamburger span { display: block; width: 22px; height: 2px; background: var(--ink); border-radius: 2px; transition: all 180ms ease; }
@media (max-width: 760px) { .nav-hamburger { display: flex; } }

.mobile-menu {
  display: none; flex-direction: column; gap: 0;
  background: var(--paper); border-bottom: 1px solid var(--hair);
  padding: 12px 18px 18px;
}
.mobile-menu.open { display: flex; }
.mobile-menu a { padding: 10px 0; font-size: 15px; color: var(--ink-2); text-decoration: none; border-bottom: 1px solid var(--hair); }
.mobile-menu a:last-of-type { border-bottom: none; }

/* hero shared */
.hero {
  position: relative;
  padding: clamp(48px, 8vw, 96px) 0 clamp(40px, 6vw, 72px);
  overflow: hidden;
}
.hero-grid {
  background-image:
    radial-gradient(circle, var(--hair-2) 1px, transparent 1px);
  background-size: 26px 26px;
  position: absolute;
  inset: 0;
  opacity: 0.55;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000, transparent 75%);
  pointer-events: none;
}

.hero-cta-row {
  display: flex; flex-wrap: wrap; gap: 12px;
  margin-top: 28px;
}
.hero-meta {
  display: flex; flex-wrap: wrap; gap: 18px 28px;
  margin-top: 32px;
  font-size: 12.5px;
  color: var(--ink-3);
}
.hero-meta b { color: var(--ink); font-weight: 600; }

.hero-split {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
  position: relative;
  z-index: 1;
}
@media (max-width: 900px) {
  .hero-split { grid-template-columns: 1fr; }
}

.hero-centered {
  position: relative; z-index: 1;
  text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 22px;
}
.hero-centered .lede { margin: 0 auto; }
.hero-centered .hero-cta-row { justify-content: center; }
.hero-centered .hero-meta { justify-content: center; }

.hero-asym {
  position: relative; z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: end;
}
.hero-asym .display { font-size: clamp(56px, 10vw, 132px); }
@media (max-width: 900px) {
  .hero-asym { grid-template-columns: 1fr; }
}

/* product card preview chip in hero (only for split + centered) */
.preview-card {
  position: relative;
  border-radius: var(--r-xl);
  background: var(--paper);
  border: 1px solid var(--hair);
  box-shadow:
    0 1px 0 rgba(255,255,255,0.6) inset,
    0 30px 60px -30px rgba(31,27,22,0.18),
    0 8px 20px -8px rgba(31,27,22,0.08);
  overflow: hidden;
}

/* sections */
.section {
  padding: clamp(72px, 9vw, 120px) 0;
  position: relative;
}
.section.alt {
  background: var(--cream-2);
  border-top: 1px solid var(--hair);
  border-bottom: 1px solid var(--hair);
}
.section-head {
  display: flex; flex-direction: column; gap: 14px;
  max-width: 760px; margin-bottom: clamp(40px, 5vw, 64px);
}
.section-head.center {
  align-items: center; text-align: center; margin-left: auto; margin-right: auto;
}

/* features */
.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--hair);
  border: 1px solid var(--hair);
  border-radius: var(--r-lg);
  overflow: hidden;
}
@media (max-width: 880px) { .features { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px) { .features { grid-template-columns: 1fr; } }

.feature {
  background: var(--paper);
  padding: 28px;
  display: flex; flex-direction: column; gap: 12px;
  position: relative;
  min-height: 200px;
  transition: background 150ms ease;
}
.feature:hover { background: var(--cream); }
.feature .num {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink-3);
  letter-spacing: 0.06em;
}
.feature h3 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 22px;
  margin: 0;
  line-height: 1.15;
  letter-spacing: -0.01em;
}
.feature p {
  font-size: 14px;
  color: var(--ink-2);
  line-height: 1.55;
  margin: 0;
}
.feature .ico {
  width: 36px; height: 36px;
  border-radius: 10px;
  background: var(--accent-tint);
  color: var(--accent);
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  font-size: 18px;
  margin-bottom: 4px;
}

/* testimonial */
.quote-card {
  border: 1px solid var(--hair);
  background: var(--paper);
  border-radius: var(--r-xl);
  padding: clamp(32px, 5vw, 56px);
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 28px;
  align-items: start;
}
@media (max-width: 700px) {
  .quote-card { grid-template-columns: 1fr; gap: 18px; }
}
.quote-mark {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  font-size: 96px;
  line-height: 0.7;
  color: var(--accent);
}
.quote-text {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(20px, 2.6vw, 30px);
  line-height: 1.35;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin: 0;
}
.quote-meta {
  margin-top: 22px;
  display: flex; align-items: center; gap: 12px;
  font-size: 13px; color: var(--ink-3);
}
.quote-meta .av {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--accent-tint);
  color: var(--accent);
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--serif); font-weight: 500; font-size: 14px;
}

/* pricing */
.pricing-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  max-width: 760px;
  margin: 0 auto;
}
@media (max-width: 640px) { .pricing-grid { grid-template-columns: 1fr; } }

.plan {
  border: 1px solid var(--hair);
  background: var(--paper);
  border-radius: var(--r-lg);
  padding: 28px;
  display: flex; flex-direction: column; gap: 14px;
  position: relative;
}
.plan.featured {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-tint);
}
.plan .plan-name {
  font-family: var(--serif); font-weight: 400; font-size: 22px;
  margin: 0;
}
.plan .price {
  display: flex; align-items: baseline; gap: 6px;
}
.plan .price .num {
  font-family: var(--serif); font-weight: 300; font-size: 44px;
  letter-spacing: -0.02em; line-height: 1;
}
.plan .price .per {
  font-size: 13px; color: var(--ink-3);
}
.plan ul {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-direction: column; gap: 8px;
  font-size: 13.5px; color: var(--ink-2);
}
.plan ul li::before {
  content: '✓';
  color: var(--accent);
  margin-right: 8px;
  font-weight: 600;
}
.plan .badge {
  position: absolute; top: 14px; right: 14px;
  font-family: var(--mono);
  font-size: 10px; letter-spacing: 0.06em; text-transform: uppercase;
  background: var(--accent); color: white;
  padding: 4px 8px; border-radius: 999px;
}

.pricing-foot {
  text-align: center;
  margin-top: 24px;
  font-size: 13px;
  color: var(--ink-3);
}
.pricing-foot a { color: var(--accent); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }

/* faq */
.faq-list { display: flex; flex-direction: column; gap: 0; }
.faq-item {
  border-top: 1px solid var(--hair);
  padding: 20px 0;
  cursor: pointer;
}
.faq-item:last-child { border-bottom: 1px solid var(--hair); }
.faq-item summary {
  list-style: none;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  font-family: var(--serif); font-weight: 400; font-size: 20px;
  color: var(--ink);
  cursor: pointer;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .plus {
  font-family: var(--mono); font-size: 18px; color: var(--ink-3);
  transition: transform 200ms ease, color 200ms ease;
}
.faq-item[open] summary .plus { transform: rotate(45deg); color: var(--accent); }
.faq-item p {
  margin: 12px 0 0;
  color: var(--ink-2);
  font-size: 14.5px;
  line-height: 1.6;
  max-width: 65ch;
}

/* showcase */
.showcase-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(20px, 3vw, 32px);
}
@media (max-width: 700px) { .showcase-grid { grid-template-columns: 1fr; } }

.showcase-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  text-decoration: none;
  color: inherit;
  background: var(--paper);
  border: 1px solid var(--hair);
  border-radius: var(--r-lg);
  padding: 14px 14px 18px;
  transition: transform 220ms cubic-bezier(0.32, 0.72, 0.3, 1), box-shadow 220ms ease, border-color 180ms ease;
}
.showcase-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent-soft);
  box-shadow: 0 24px 40px -22px rgba(31,27,22,0.22), 0 6px 14px -8px rgba(31,27,22,0.08);
}
.showcase-frame {
  border-radius: var(--r-md);
  overflow: hidden;
  border: 1px solid var(--hair);
  background: var(--cream);
}
.showcase-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 10px;
  background: var(--cream-2);
  border-bottom: 1px solid var(--hair);
}
.showcase-dots { display: inline-flex; gap: 4px; }
.showcase-dots i {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--hair-2);
  display: inline-block;
}
.showcase-url {
  flex: 1;
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--ink-3);
  background: var(--paper);
  border: 1px solid var(--hair);
  border-radius: 999px;
  padding: 3px 10px;
  text-align: center;
}
.showcase-bar-spacer { width: 38px; }
.showcase-screen {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  position: relative;
}
.showcase-mock { width: 100%; height: 100%; display: block; }
.showcase-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 0 4px;
}
.showcase-meta-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.showcase-name {
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 400;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.showcase-cat { font-size: 12.5px; color: var(--ink-3); }
.showcase-go {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--cream-2);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 14px;
  color: var(--ink-2);
  flex-shrink: 0;
  transition: background 180ms ease, color 180ms ease, transform 180ms ease;
}
.showcase-card:hover .showcase-go {
  background: var(--accent);
  color: white;
  transform: rotate(0deg) translate(2px, -2px);
}
.showcase-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid var(--hair);
  flex-wrap: wrap;
  gap: 12px;
}
.showcase-foot-link {
  font-family: var(--serif);
  font-size: 17px;
  font-style: italic;
  color: var(--accent);
  text-decoration: none;
}
.showcase-foot-link:hover { text-decoration: underline; }

/* contact */
.contact-grid {
  display: flex;
  flex-direction: column;
  gap: 28px;
  align-items: stretch;
}
.contact-side {
  display: grid;
  grid-template-columns: repeat(3, 1fr) auto;
  gap: 14px;
  background: var(--paper);
  border: 1px solid var(--hair);
  border-radius: var(--r-lg);
  padding: 20px 24px;
  align-items: center;
}
.contact-row {
  display: flex; gap: 12px; align-items: center;
}
.contact-row .ico {
  width: 36px; height: 36px;
  border-radius: 10px;
  background: var(--accent-tint);
  color: var(--accent);
  display: inline-flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  font-family: var(--serif); font-style: italic; font-size: 16px;
}
.contact-row .label-sm {
  font-family: var(--mono); font-size: 9.5px; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--ink-3); margin-bottom: 1px;
}
.contact-row .val { font-size: 13.5px; color: var(--ink); }
.contact-availability {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; color: var(--ink-2);
  padding-left: 14px;
  border-left: 1px solid var(--hair);
}
@media (max-width: 760px) {
  .contact-side { grid-template-columns: 1fr 1fr; }
  .contact-availability { grid-column: 1 / -1; border-left: 0; padding-left: 0; padding-top: 8px; border-top: 1px solid var(--hair); }
}
@media (max-width: 460px) {
  .contact-side { grid-template-columns: 1fr; }
}

.contact-form {
  display: flex; flex-direction: column; gap: 18px;
  background: var(--paper);
  border: 1px solid var(--hair);
  border-radius: var(--r-lg);
  padding: 28px;
}

/* intent segmented control — full-width pill */
.intent-seg {
  position: relative;
  display: flex;
  width: 100%;
  background: var(--cream-2);
  border: 1px solid var(--hair);
  border-radius: 999px;
  padding: 4px;
  gap: 0;
}
.intent-seg__thumb {
  position: absolute;
  top: 4px;
  bottom: 4px;
  left: 4px;
  width: calc(50% - 4px);
  background: var(--paper);
  border-radius: 999px;
  box-shadow: 0 1px 3px rgba(31,27,22,0.08), 0 0 0 1px var(--hair);
  transition: transform 220ms cubic-bezier(0.32, 0.72, 0.3, 1);
  z-index: 0;
}
.intent-seg__btn {
  position: relative;
  z-index: 1;
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 18px;
  border: 0;
  background: transparent;
  cursor: pointer;
  font-family: var(--sans);
  font-size: 13.5px;
  font-weight: 500;
  color: var(--ink-3);
  border-radius: 999px;
  transition: color 180ms ease;
  white-space: nowrap;
  min-width: 0;
}
.intent-seg__btn.active { color: var(--ink); }
.intent-seg__btn:hover:not(.active) { color: var(--ink-2); }
.intent-seg__label { line-height: 1; }

.intent-badge {
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: var(--accent);
  color: white;
  padding: 2px 7px;
  border-radius: 999px;
  font-weight: 500;
  line-height: 1.4;
}
.intent-desc-line {
  font-size: 13px;
  color: var(--ink-3);
  margin: 0;
  line-height: 1.5;
}
@media (max-width: 420px) {
  .intent-seg { width: 100%; }
  .intent-seg__btn { flex: 1; justify-content: center; padding: 9px 10px; font-size: 12.5px; }
}

/* row of two fields side-by-side, collapses on mobile */
.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
@media (max-width: 520px) { .field-row { grid-template-columns: 1fr; } }

/* chip group (timing selector) */
.chip-group {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.chip {
  appearance: none;
  border: 1px solid var(--hair-2);
  background: var(--cream);
  color: var(--ink-2);
  font-family: var(--sans);
  font-size: 12.5px;
  font-weight: 500;
  padding: 7px 12px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 120ms ease;
}
.chip:hover { border-color: var(--accent-soft); color: var(--ink); }
.chip.active {
  border-color: var(--accent);
  background: var(--accent);
  color: white;
}

.field { display: flex; flex-direction: column; gap: 6px; }
.field input, .field textarea,
.form-inp, .form-ta, .form-sel {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid var(--hair-2);
  border-radius: var(--r-md);
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 14px;
  transition: border-color 120ms, box-shadow 120ms;
  outline: none;
  resize: vertical;
  box-sizing: border-box;
}
.field input:focus, .field textarea:focus,
.form-inp:focus, .form-ta:focus, .form-sel:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-tint);
}
.field textarea, .form-ta { min-height: 120px; }
.form-lbl { font-family: var(--mono); font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); display: block; margin-bottom: 4px; }
.form-row { display: flex; flex-direction: column; gap: 6px; }

/* contact-side moved up */

/* footer */
.footer {
  border-top: 1px solid var(--hair);
  padding: 36px 0;
  font-size: 12.5px; color: var(--ink-3);
}
.footer-row {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  flex-wrap: wrap;
}

/* Generic 'live' chip */
.live-chip {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 5px 11px 5px 9px;
  border-radius: 999px;
  background: var(--paper);
  border: 1px solid var(--hair);
  font-size: 11.5px;
  color: var(--ink-2);
}
.live-chip .live-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--sage-deep);
  animation: breathe 2s ease-in-out infinite;
}
@keyframes breathe { 0%,100% { opacity: 0.55; } 50% { opacity: 1; } }
/* editor-demo.css — animated qCMS editor (Elektro Pro template) with mobile preview */

.ed {
  position: relative;
  width: 100%;
  border-radius: var(--r-xl);
  overflow: hidden;
  background: var(--paper);
  border: 1px solid var(--hair);
  box-shadow:
    0 1px 0 rgba(255,255,255,0.6) inset,
    0 30px 60px -30px rgba(31,27,22,0.18),
    0 8px 20px -8px rgba(31,27,22,0.08);
  aspect-ratio: 16 / 10;
  font-family: var(--sans);
  color: var(--ink);
  --dur: 12000ms;
  isolation: isolate;
  display: flex; flex-direction: column;
  font-size: 12px;
  container-type: inline-size;
}

/* ─── Top bar ─── */
.ed-top {
  display: flex; justify-content: space-between; align-items: center;
  padding: 8px 16px;
  background: var(--cream);
  border-bottom: 1px solid var(--hair);
  height: 36px; flex-shrink: 0;
  font-size: 11px;
}
.ed-top-left { display: inline-flex; align-items: center; gap: 8px; color: var(--ink-2); }
.ed-top-brand { font-weight: 600; color: var(--ink); }
.ed-top-sep { color: var(--ink-3); }
.ed-top-section i { font-style: italic; font-family: var(--serif); font-size: 13px; font-weight: 400; color: var(--ink); }
.ed-top-right { font-family: var(--mono); font-size: 10px; color: var(--ink-3); }

/* ─── Body shell: rail | library | (tool + canvas) ─── */
.ed-shell {
  display: grid;
  grid-template-columns: 158px 200px 1fr;
  flex: 1; min-height: 0;
}
.ed-shell--inline { grid-template-columns: 158px 1fr; }
.ed-shell--split { grid-template-columns: 158px 180px 1fr; }
.ed-main { display: flex; flex-direction: column; min-width: 0; min-height: 0; }

/* ─── Left nav rail (qcms KLIENT + nav) ─── */
.ed-rail {
  background: var(--cream);
  border-right: 1px solid var(--hair);
  padding: 12px 10px;
  display: flex; flex-direction: column;
  font-size: 11px;
  min-height: 0;
  position: relative;
}
.ed-rail-brand {
  display: flex; align-items: center; gap: 8px;
  padding: 4px 4px 12px;
  border-bottom: 1px solid var(--hair);
}
.ed-rail-mark {
  width: 28px; height: 28px;
  border-radius: 50%;
  border: 1px solid var(--ink);
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--serif); font-style: italic; font-weight: 500;
  font-size: 14px; color: var(--ink);
  background: var(--paper);
}
.ed-rail-meta { display: flex; flex-direction: column; line-height: 1.1; }
.ed-rail-name { font-family: var(--serif); font-style: italic; font-size: 13px; color: var(--ink); }
.ed-rail-tag { font-family: var(--mono); font-size: 8.5px; letter-spacing: 0.1em; color: var(--ink-3); }
.ed-rail-section {
  font-family: var(--mono); font-size: 8.5px;
  letter-spacing: 0.12em;
  color: var(--ink-3);
  padding: 12px 4px 6px;
}
.ed-rail-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 2px; }
.ed-rail-list li {
  padding: 6px 8px;
  font-size: 10.5px;
  color: var(--ink-2);
  border-radius: 6px;
  cursor: pointer;
}
.ed-rail-list li.is-active {
  background: var(--paper);
  color: var(--ink);
  border: 1px solid var(--hair);
}
.ed-rail-foot {
  margin-top: auto;
  padding: 8px;
  border: 1px solid var(--hair);
  border-radius: 999px;
  text-align: center;
  font-size: 10.5px;
  color: var(--ink-2);
  background: var(--paper);
}

/* ─── Toolbar ─── */
.ed-tool {
  display: flex; justify-content: space-between; align-items: center;
  padding: 6px 12px;
  background: var(--paper);
  border-bottom: 1px solid var(--hair);
  height: 38px; flex-shrink: 0;
  gap: 12px;
}
.ed-tool-tabs { display: inline-flex; align-items: center; gap: 8px; }
.ed-pagetab {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 4px 10px;
  border: 1px solid var(--hair);
  border-radius: var(--r-sm);
  background: var(--paper);
  color: var(--ink-2);
  font-size: 11px;
  cursor: pointer;
}
.ed-pagetab.is-active { background: var(--cream); color: var(--ink); border-color: var(--hair-2); border-bottom: 2px solid var(--accent); }
.ed-pagetab-count {
  font-family: var(--mono); font-size: 9.5px;
  background: var(--cream-2);
  padding: 1px 5px; border-radius: 3px;
  color: var(--ink-3);
}
.ed-pagetab-edit { font-size: 9px; color: var(--ink-3); }
.ed-pagetab.is-add { border-style: dashed; color: var(--ink-3); }

.ed-tool-right { display: inline-flex; align-items: center; gap: 8px; }
.ed-show {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 4px 10px;
  background: var(--paper);
  border: 1px solid var(--hair);
  border-radius: var(--r-sm);
  font-size: 11px; color: var(--ink-2);
}
.ed-devs {
  display: inline-flex;
  background: var(--cream-2);
  border-radius: var(--r-sm);
  padding: 2px;
  gap: 1px;
}
.ed-devs i {
  width: 22px; height: 18px;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 10px;
  color: var(--ink-3);
  border-radius: 3px;
  font-style: normal;
}
.ed-devs i.on { background: var(--paper); color: var(--ink); box-shadow: 0 1px 2px rgba(0,0,0,0.04); }

.ed-zoom { display: inline-flex; align-items: center; gap: 4px; font-size: 10.5px; color: var(--ink-3); }
.ed-zoom-pill { font-family: var(--mono); font-size: 9px; background: var(--cream-2); padding: 2px 6px; border-radius: 3px; color: var(--ink-2); }
.ed-zoom-btn { width: 18px; height: 18px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--hair); border-radius: 3px; font-size: 10px; color: var(--ink-2); background: var(--paper); }
.ed-zoom-pct { font-family: var(--mono); font-size: 10px; color: var(--ink); min-width: 24px; text-align: center; }
.ed-zoom-fit { font-size: 10.5px; color: var(--ink-3); padding: 0 4px; }

/* ─── Library ─── */
.ed-lib {
  background: var(--paper);
  border-right: 1px solid var(--hair);
  display: flex; flex-direction: column;
  min-height: 0;
  overflow: hidden;
}
.ed-lib-tabs {
  display: flex;
  border-bottom: 1px solid var(--hair);
  font-size: 11px;
}
.ed-lib-tab {
  flex: 1; text-align: center;
  padding: 9px 0;
  color: var(--ink-3);
  font-weight: 500;
  cursor: pointer;
  border-bottom: 2px solid transparent;
}
.ed-lib-tab.is-active {
  color: var(--ink);
  border-bottom-color: var(--accent);
}
.ed-lib-search {
  margin: 8px 10px 6px;
  padding: 6px 10px;
  border: 1px solid var(--hair);
  border-radius: 999px;
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 10.5px; color: var(--ink-3);
  background: var(--paper);
}
.ed-lib-chips {
  display: flex; flex-wrap: wrap; gap: 3px;
  padding: 4px 10px 8px;
  border-bottom: 1px solid var(--hair);
}
.ed-chip {
  font-size: 10px;
  padding: 2px 7px;
  border: 1px solid var(--hair);
  border-radius: 999px;
  color: var(--ink-3);
  background: var(--paper);
  white-space: nowrap;
}
.ed-chip.is-active {
  background: var(--ink);
  color: var(--cream);
  border-color: var(--ink);
}
.ed-lib-items {
  padding: 10px;
  display: flex; flex-direction: column; gap: 14px;
  overflow-y: auto;
  min-height: 0;
}
.ed-libitem { display: flex; flex-direction: column; gap: 6px; position: relative; cursor: grab; }
.ed-libthumb { border-radius: var(--r-sm); border: 1px solid var(--hair); overflow: hidden; height: 56px; background: var(--cream); }
.ed-libthumb svg { width: 100%; height: 100%; display: block; }
.ed-libitem-meta { display: flex; justify-content: space-between; align-items: baseline; font-size: 10.5px; }
.ed-libitem-name { color: var(--ink); }
.ed-libitem-tag { font-family: var(--mono); font-size: 9px; letter-spacing: 0.06em; color: var(--ink-3); }
.ed-libitem.is-target .ed-libthumb { animation: ed-target-thumb var(--dur) linear infinite; }
@keyframes ed-target-thumb {
  0%, 6%, 22%, 100% { border-color: var(--hair); box-shadow: none; }
  10%, 18% { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-tint); }
}

/* ─── Canvas ─── */
.ed-canvas {
  position: relative;
  flex: 1;
  overflow: hidden;
  background: var(--cream-2);
}
.ed-canvas-bg {
  position: absolute; inset: 0;
  background: var(--cream-2);
  background-image: radial-gradient(circle, var(--hair) 1px, transparent 1px);
  background-size: 18px 18px;
  z-index: 0;
}
.ed-canvas-scroll {
  position: relative; z-index: 1;
  height: 100%;
  padding: 14px 18px;
  overflow: hidden;
  display: flex; flex-direction: column;
}
.ed-section-label {
  font-family: var(--mono); font-size: 9.5px; letter-spacing: 0.08em;
  color: var(--ink-3);
  padding: 0 0 4px 4px;
  text-transform: uppercase;
}
.ed-section-label--inline {
  animation: ed-label-show var(--dur) linear infinite;
  opacity: 0;
  padding-top: 6px;
}
@keyframes ed-label-show {
  0%, 28% { opacity: 0; }
  32%, 100% { opacity: 1; }
}

.ed-page {
  background: var(--paper);
  border: 1px solid var(--hair);
  border-radius: 4px;
  overflow: hidden;
  flex: 1;
  display: flex; flex-direction: column;
  min-height: 0;
}

/* page nav (Elektro Pro: dark) */
.ed-pagenav {
  display: flex; justify-content: space-between; align-items: center;
  padding: 12px 22px;
  background: #0a0a0a;
  flex-shrink: 0;
}
.ed-pagenav-brand {
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 13px;
  color: white;
}
.ed-pagenav-brand .hi { color: #f5a623; font-weight: 800; }
.ed-pagenav-links {
  display: inline-flex; align-items: center; gap: 14px;
  font-size: 9.5px; color: rgba(255,255,255,0.7);
}
.ed-pagenav-cta {
  background: #f5a623;
  color: #0a0a0a;
  padding: 6px 12px;
  border-radius: 4px;
  font-weight: 700;
  font-size: 9px;
}

/* hero block (Elektro Pro: dark + amber) */
.ed-block {
  position: relative;
  flex: 1;
  min-height: 0;
}
.ed-hero {
  background: #0a0a0a;
  color: white;
  position: relative;
  overflow: hidden;
}
.ed-hero-glow {
  position: absolute;
  right: -10%; bottom: -20%;
  width: 70%; height: 120%;
  background: radial-gradient(circle, rgba(245,166,35,0.32) 0%, rgba(245,166,35,0) 60%);
  z-index: 0;
}
.ed-hero-inner {
  position: relative; z-index: 1;
  padding: 24px 28px 20px;
  display: flex; flex-direction: column; gap: 0;
}
.ed-hero--drops {
  transform-origin: top center;
  animation: ed-block-drop var(--dur) linear infinite;
}
@keyframes ed-block-drop {
  0%, 26% { opacity: 0; transform: scaleY(0.3); max-height: 0; }
  28% { opacity: 0; transform: scaleY(0.5); max-height: 0; }
  32% { opacity: 1; transform: scaleY(1); max-height: 1000px; }
  100% { opacity: 1; transform: scaleY(1); max-height: 1000px; }
}

.ed-block-overlay {
  position: absolute; inset: 0;
  pointer-events: none;
  border: 2px solid transparent;
  z-index: 5;
  animation: ed-overlay-flash var(--dur) linear infinite;
}
.ed-block-overlay.is-static {
  animation: none;
  border-color: var(--accent);
  box-shadow: inset 0 0 0 2px var(--accent);
}
@keyframes ed-overlay-flash {
  0%, 30% { border-color: transparent; }
  32%, 92% { border-color: var(--accent); }
  95%, 100% { border-color: transparent; }
}
.ed-block-toolbar {
  position: absolute; top: 0; right: 0;
  transform: translateY(-100%);
  display: inline-flex; gap: 4px; align-items: center;
  background: var(--paper);
  border: 1px solid var(--hair); border-bottom: 0;
  padding: 4px 8px;
  font-family: var(--mono); font-size: 9px; color: var(--ink-2);
  letter-spacing: 0.06em; text-transform: uppercase;
  border-radius: var(--r-sm) var(--r-sm) 0 0;
  opacity: 0;
  animation: ed-toolbar-show var(--dur) linear infinite;
}
.ed-block-overlay.is-static .ed-block-toolbar { animation: none; opacity: 1; }
@keyframes ed-toolbar-show {
  0%, 30% { opacity: 0; }
  33%, 92% { opacity: 1; }
  95%, 100% { opacity: 0; }
}
.ed-block-toolbar i { width: 10px; height: 10px; border-radius: 2px; background: var(--hair); display: inline-block; }

.ed-hero-pill {
  display: inline-flex; align-self: flex-start;
  padding: 7px 14px;
  border-radius: 999px;
  background: rgba(245,166,35,0.12);
  border: 1px solid rgba(245,166,35,0.45);
  color: #f5a623;
  font-family: 'Inter', sans-serif;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.08em;
  margin-bottom: 14px;
}

.ed-hero-title {
  font-family: 'Inter', sans-serif;
  font-weight: 900;
  font-size: clamp(18px, 4.6cqw, 50px);
  line-height: 0.96;
  letter-spacing: -0.02em;
  margin: 0;
  color: white;
  text-transform: uppercase;
  position: relative;
}
.ed-hero-title--accent { color: #f5a623; }

.ed-hero-sub {
  font-family: 'Inter', sans-serif;
  font-size: 10.5px;
  color: rgba(255,255,255,0.74);
  line-height: 1.45;
  margin: 12px 0 0;
  max-width: 56ch;
  position: relative;
}

/* ── new typing system: caret tracks end of text exactly ── */
.ed-typer {
  position: relative;
  display: inline-block;
  vertical-align: bottom;
  white-space: nowrap;
}
.ed-typer-old, .ed-typer-new {
  white-space: nowrap;
  display: inline-block;
}
.ed-typer-old {
  position: absolute;
  top: 0; left: 0;
  clip-path: inset(0 0 0 0);
}
.ed-typer-new {
  clip-path: inset(0 100% 0 0);
}
.ed-typer-caret {
  position: absolute;
  top: 8%; bottom: 14%;
  left: 0;
  width: 1.5px;
  background: #f5a623;
  opacity: 0;
  transform: translateX(-1px);
}
.ed-typer--sub .ed-typer-caret { background: rgba(255,255,255,0.75); }

/* title2 timing: delete 30→40, type 40→56, hold rest */
.ed-typer--t2 .ed-typer-old   { animation: ed-old-t2  var(--dur) linear infinite; }
.ed-typer--t2 .ed-typer-new   { animation: ed-new-t2  var(--dur) linear infinite; }
.ed-typer--t2 .ed-typer-caret { animation: ed-cart-t2 var(--dur) linear infinite, ed-blink 700ms steps(2) infinite; }
@keyframes ed-old-t2 { 0%, 30% { clip-path: inset(0 0 0 0); } 40%, 100% { clip-path: inset(0 100% 0 0); } }
@keyframes ed-new-t2 { 0%, 40% { clip-path: inset(0 100% 0 0); } 56%, 100% { clip-path: inset(0 0 0 0); } }
@keyframes ed-cart-t2 {
  0%, 28% { opacity: 0; left: 100%; }
  30%, 40% { opacity: 1; left: 0; }
  40.01% { left: 0; }
  56% { opacity: 1; left: 100%; }
  56.5%, 100% { opacity: 0; left: 100%; }
}

/* secondary line (mobile RUKOU./DŮM.) follows t2 with slight delay */
.ed-typer--t2b .ed-typer-old   { animation: ed-old-t2b  var(--dur) linear infinite; }
.ed-typer--t2b .ed-typer-new   { animation: ed-new-t2b  var(--dur) linear infinite; }
.ed-typer--t2b .ed-typer-caret { animation: ed-cart-t2b var(--dur) linear infinite, ed-blink 700ms steps(2) infinite; }
@keyframes ed-old-t2b { 0%, 38% { clip-path: inset(0 0 0 0); } 46%, 100% { clip-path: inset(0 100% 0 0); } }
@keyframes ed-new-t2b { 0%, 48% { clip-path: inset(0 100% 0 0); } 60%, 100% { clip-path: inset(0 0 0 0); } }
@keyframes ed-cart-t2b {
  0%, 36% { opacity: 0; left: 100%; }
  38%, 48% { opacity: 1; left: 0; }
  60% { opacity: 1; left: 100%; }
  60.5%, 100% { opacity: 0; left: 100%; }
}

/* sub */
.ed-typer--sub .ed-typer-old   { animation: ed-old-sub  var(--dur) linear infinite; }
.ed-typer--sub .ed-typer-new   { animation: ed-new-sub  var(--dur) linear infinite; }
.ed-typer--sub .ed-typer-caret { animation: ed-cart-sub var(--dur) linear infinite, ed-blink 700ms steps(2) infinite; }
@keyframes ed-old-sub { 0%, 56% { clip-path: inset(0 0 0 0); } 64%, 100% { clip-path: inset(0 100% 0 0); } }
@keyframes ed-new-sub { 0%, 64% { clip-path: inset(0 100% 0 0); } 80%, 100% { clip-path: inset(0 0 0 0); } }
@keyframes ed-cart-sub {
  0%, 54% { opacity: 0; left: 100%; }
  56%, 64% { opacity: 1; left: 0; }
  80% { opacity: 1; left: 100%; }
  80.5%, 100% { opacity: 0; left: 100%; }
}

@keyframes ed-blink { 50% { background: transparent; } }

.ed-hero-cta {
  display: inline-flex; gap: 8px;
  margin-top: 16px;
}
.ed-cta-amber {
  background: #f5a623; color: #0a0a0a;
  font-size: 10px; font-weight: 700;
  padding: 8px 14px; border-radius: 4px;
}
.ed-cta-ghost {
  border: 1px solid rgba(255,255,255,0.5); color: white;
  font-size: 10px; font-weight: 600;
  padding: 8px 14px; border-radius: 4px;
}

.ed-hero-stats {
  display: flex; gap: 28px;
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid rgba(255,255,255,0.14);
}
.ed-hero-stats > div { display: flex; flex-direction: column; gap: 2px; }
.ed-hero-stats b {
  font-family: 'Inter', sans-serif;
  font-weight: 900;
  font-size: 17px;
  color: #f5a623;
  letter-spacing: -0.01em;
}
.ed-hero-stats span {
  font-size: 8.5px;
  color: rgba(255,255,255,0.55);
}

/* ─── Floating mobile preview ─── */
.ed-mobile {
  position: absolute;
  right: 14px;
  bottom: 14px;
  z-index: 80;
  display: flex; flex-direction: column; align-items: center;
  gap: 6px;
  pointer-events: none;
  opacity: 0;
  transform: translateY(10px) scale(0.95);
  animation: ed-mob-show var(--dur) linear infinite;
}
@keyframes ed-mob-show {
  0%, 32% { opacity: 0; transform: translateY(10px) scale(0.95); }
  36%, 96% { opacity: 1; transform: translateY(0) scale(1); }
  100% { opacity: 0; transform: translateY(10px) scale(0.95); }
}
.ed-mobile-frame {
  width: 132px;
  height: 232px;
  background: #0a0a0a;
  border-radius: 16px;
  padding: 5px;
  border: 1px solid #2a2a2a;
  box-shadow: 0 18px 40px -12px rgba(0,0,0,0.45), 0 4px 12px rgba(0,0,0,0.18);
  position: relative;
}
.ed-mobile-notch {
  position: absolute;
  top: 7px; left: 50%;
  transform: translateX(-50%);
  width: 36px; height: 7px;
  background: #000;
  border-radius: 999px;
  z-index: 2;
}
.ed-mobile-screen {
  width: 100%; height: 100%;
  background: var(--cream);
  border-radius: 12px;
  overflow: hidden;
  display: flex; flex-direction: column;
  font-size: 8px;
}
.ed-mob-top {
  display: flex; align-items: center; gap: 6px;
  padding: 14px 8px 6px;
  background: var(--cream);
  flex-shrink: 0;
}
.ed-mob-burger {
  width: 16px; height: 16px;
  border: 1px solid var(--hair);
  border-radius: 4px;
  background: var(--paper);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 9px;
}
.ed-mob-title i { font-family: var(--serif); font-style: italic; font-size: 10px; }
.ed-mob-tab {
  display: flex; gap: 4px;
  padding: 4px 8px 6px;
  background: var(--paper);
  border-bottom: 1px solid var(--hair);
  flex-shrink: 0;
}
.ed-mob-canvas {
  flex: 1;
  background: var(--cream-2);
  background-image: radial-gradient(circle, var(--hair) 1px, transparent 1px);
  background-size: 10px 10px;
  padding: 6px;
  overflow: hidden;
}
.ed-mob-hero {
  position: relative;
  background: #0a0a0a;
  color: white;
  border-radius: 4px;
  padding: 10px 8px;
  height: 100%;
  overflow: hidden;
}
.ed-mob-glow {
  position: absolute;
  right: -30%; bottom: -30%;
  width: 100%; height: 100%;
  background: radial-gradient(circle, rgba(245,166,35,0.4) 0%, transparent 65%);
}
.ed-mob-pill {
  display: inline-flex;
  position: relative;
  padding: 3px 6px;
  border-radius: 999px;
  background: rgba(245,166,35,0.15);
  border: 0.5px solid rgba(245,166,35,0.5);
  color: #f5a623;
  font-size: 5.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  margin-bottom: 6px;
}
.ed-mob-title-l {
  position: relative;
  font-family: 'Inter', sans-serif;
  font-weight: 900;
  font-size: 12px;
  line-height: 1.0;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  margin: 0;
}
.ed-mob-amber { color: #f5a623; }
.ed-mob-sub {
  position: relative;
  font-size: 6.5px;
  color: rgba(255,255,255,0.65);
  margin-top: 6px;
  line-height: 1.4;
}
.ed-mob-cta {
  position: relative;
  margin-top: 8px;
  background: #f5a623; color: #0a0a0a;
  display: inline-flex; padding: 4px 8px;
  border-radius: 3px;
  font-size: 6.5px; font-weight: 700;
}

.ed-mob-bottom {
  display: flex;
  background: var(--paper);
  border-top: 1px solid var(--hair);
  flex-shrink: 0;
}
.ed-mob-bbtn {
  flex: 1;
  display: flex; flex-direction: column; align-items: center; gap: 1px;
  padding: 4px 0 5px;
  font-size: 6px;
  color: var(--ink-3);
}
.ed-mob-bbtn span:first-child { font-size: 9px; }
.ed-mob-bbtn.is-active { color: var(--accent); }

.ed-mobile-cap {
  font-family: var(--mono);
  font-size: 8.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-2);
  background: var(--paper);
  border: 1px solid var(--hair);
  padding: 4px 10px;
  border-radius: 999px;
  white-space: nowrap;
}

/* ─── MobileOnly (large phone for hero block) ─── */
.ed-mobonly {
  width: 100%;
  display: flex; justify-content: center; align-items: center;
  --dur: 12000ms;
  padding: 12px 0;
}
.ed-mobonly-frame {
  width: min(280px, 80%);
  aspect-ratio: 9 / 19;
  background: #0a0a0a;
  border-radius: 36px;
  padding: 8px;
  border: 1px solid #2a2a2a;
  box-shadow:
    0 36px 80px -20px rgba(31,27,22,0.32),
    0 12px 28px -8px rgba(31,27,22,0.18),
    0 1px 0 rgba(255,255,255,0.08) inset;
  position: relative;
}
.ed-mobonly-notch {
  position: absolute;
  top: 14px; left: 50%;
  transform: translateX(-50%);
  width: 92px; height: 22px;
  background: #000;
  border-radius: 999px;
  z-index: 2;
}
.ed-mobonly-screen {
  width: 100%; height: 100%;
  background: var(--cream);
  border-radius: 28px;
  overflow: hidden;
  display: flex; flex-direction: column;
  font-size: 10px;
}
.ed-mobonly .ed-mob-top { padding: 36px 14px 8px; }
.ed-mobonly .ed-mob-burger { width: 26px; height: 26px; font-size: 14px; }
.ed-mobonly .ed-mob-title i { font-size: 14px; }
.ed-mobonly .ed-mob-tab { padding: 6px 12px 8px; gap: 6px; }
.ed-mobonly .ed-mob-tab .ed-pagetab { font-size: 11px !important; padding: 5px 10px; }
.ed-mob-canvas--big { padding: 10px; }
.ed-mobonly .ed-mob-hero { padding: 16px 14px; border-radius: 6px; overflow: hidden; }
.ed-mobonly .ed-mob-pill { font-size: 8.5px; padding: 5px 10px; margin-bottom: 10px; max-width: 100%; }
.ed-mobonly .ed-mob-title-l {
  font-size: 18px; line-height: 0.98;
  max-width: 100%;
  overflow: hidden;
}
.ed-mobonly .ed-mob-title-l[data-t] { white-space: nowrap; }
.ed-mobonly .ed-mob-sub { font-size: 10px; margin-top: 10px; line-height: 1.45; white-space: normal; max-width: 100%; overflow: hidden; }
.ed-mobonly .ed-mob-sub[data-t] { white-space: nowrap; }
.ed-mobonly .ed-mob-cta { font-size: 10px; padding: 7px 12px; margin-top: 12px; border-radius: 4px; }
.ed-mobonly .ed-mob-bottom { padding: 2px 0 6px; }
.ed-mobonly .ed-mob-bbtn { font-size: 9px; padding: 8px 0 4px; gap: 3px; }
.ed-mobonly .ed-mob-bbtn span:first-child { font-size: 13px; }

/* type-swap on mobile-only */
.ed-mobonly [data-t] .ed-text-original,
.ed-mobonly [data-t] .ed-text-typed {
  display: inline-block;
  overflow: hidden;
  white-space: nowrap;
  vertical-align: bottom;
}
.ed-mobonly [data-t="line3"] .ed-text-original { animation: ed-textout var(--dur) linear infinite; }
.ed-mobonly [data-t="line3"] .ed-text-typed   { width: 0; animation: ed-textin var(--dur) linear infinite; }
.ed-mobonly [data-t="line4"] .ed-text-original { animation: ed-textout var(--dur) linear infinite; }
.ed-mobonly [data-t="line4"] .ed-text-typed   { width: 0; animation: ed-textin var(--dur) linear infinite; }
.ed-mobonly [data-t="sub"]   .ed-text-original { animation: ed-textout-sub var(--dur) linear infinite; }
.ed-mobonly [data-t="sub"]   .ed-text-typed   { width: 0; animation: ed-textin-sub var(--dur) linear infinite; }
.ed-mobonly [data-t="line2"] .ed-text-typed { display: none; }
.ed-mobonly .ed-caret {
  display: inline-block; width: 1.5px;
  background: #f5a623; margin-left: 2px;
  vertical-align: middle; height: 0.85em; opacity: 0;
}
.ed-mobonly [data-t="line3"] .ed-caret { animation: ed-caret-blink 700ms steps(2) infinite, ed-caret-show-t3-tight var(--dur) linear infinite; }
.ed-mobonly [data-t="sub"]   .ed-caret { animation: ed-caret-blink 700ms steps(2) infinite, ed-caret-show-s3-tight var(--dur) linear infinite; background: rgba(255,255,255,0.7); }
@keyframes ed-caret-show-t3-tight { 0%, 39% { opacity: 0; } 40%, 55% { opacity: 1; } 56%, 100% { opacity: 0; } }
@keyframes ed-caret-show-s3-tight { 0%, 61% { opacity: 0; } 62%, 77% { opacity: 1; } 78%, 100% { opacity: 0; } }

@media (max-width: 540px) {
  .ed-mobonly-frame { width: 220px; }
  .ed-mobonly .ed-mob-title-l { font-size: 18px; }
}

/* ─── tree (split) ─── */
.ed-tree {
  background: var(--paper);
  border-right: 1px solid var(--hair);
  display: flex; flex-direction: column;
}
.ed-tree-list {
  list-style: none; padding: 8px 6px; margin: 0;
  display: flex; flex-direction: column; gap: 1px;
  font-family: var(--mono); font-size: 10.5px;
}
.ed-tree-list li {
  padding: 4px 8px; border-radius: 3px;
  color: var(--ink-2); white-space: pre;
}
.ed-tree-list li.lv0 { color: var(--ink); font-weight: 600; }
.ed-tree-list li.ed-tree-target {
  animation: ed-tree-tap var(--dur) linear infinite;
}
@keyframes ed-tree-tap {
  0%, 12%, 88%, 100% { background: transparent; color: var(--ink-2); }
  16%, 86% { background: var(--accent-tint); color: var(--accent); }
}

/* ─── cursor ─── */
.ed-cursor {
  position: absolute;
  z-index: 100;
  width: 20px; height: 20px;
  top: 0; left: 0;
  transform-origin: 0 0;
  pointer-events: none;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.18));
  animation: ed-cursor-path var(--dur) linear infinite;
}
@keyframes ed-cursor-path {
  0%   { top: 52%; left: 22%; transform: scale(1); }
  4%   { top: 52%; left: 22%; transform: scale(0.9); }
  10%  { top: 52%; left: 22%; transform: scale(0.9); }
  16%  { top: 56%; left: 36%; transform: scale(0.95); }
  24%  { top: 62%; left: 60%; transform: scale(1); }
  30%  { top: 62%; left: 60%; transform: scale(0.9); }
  34%  { top: 62%; left: 60%; transform: scale(1); }
  44%  { top: 48%; left: 56%; transform: scale(1); }
  48%  { top: 48%; left: 56%; transform: scale(0.9); }
  56%  { top: 60%; left: 56%; transform: scale(1); }
  64%  { top: 60%; left: 56%; transform: scale(0.9); }
  72%  { top: 60%; left: 56%; transform: scale(1); }
  80%  { top: 6%; left: 92%; transform: scale(1); }
  86%  { top: 6%; left: 92%; transform: scale(0.85); }
  92%  { top: 6%; left: 92%; transform: scale(1); }
  100% { top: 52%; left: 22%; transform: scale(1); }
}

/* ─── phantom block (drag preview) ─── */
.ed-phantom {
  position: absolute;
  top: 0; left: 0;
  transform-origin: 0 0;
  width: 130px;
  border-radius: 4px;
  background: var(--paper);
  border: 1.5px dashed var(--accent);
  padding: 6px;
  display: flex; flex-direction: column;
  gap: 4px;
  pointer-events: none;
  opacity: 0;
  z-index: 90;
  box-shadow: 0 8px 18px rgba(31,27,22,0.18);
  animation: ed-phantom-path var(--dur) linear infinite;
}
.ed-phantom-thumb { height: 42px; border-radius: 3px; overflow: hidden; }
.ed-phantom-thumb svg { width: 100%; height: 100%; display: block; }
.ed-phantom-label { font-size: 10px; color: var(--ink); font-weight: 500; }
@keyframes ed-phantom-path {
  0%, 8%  { opacity: 0; top: 52%; left: 22%; transform: scale(0.9); }
  10%     { opacity: 1; top: 52%; left: 22%; transform: scale(0.92); }
  16%     { opacity: 1; top: 56%; left: 36%; transform: scale(0.96); }
  24%     { opacity: 1; top: 62%; left: 60%; transform: scale(1); }
  28%     { opacity: 0; top: 62%; left: 60%; transform: scale(1); }
  100%    { opacity: 0; top: 52%; left: 22%; }
}

/* ─── toast ─── */
.ed-toast {
  position: absolute;
  bottom: 16px; left: 50%;
  transform: translate(-50%, 8px);
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 14px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--cream);
  font-size: 11px;
  z-index: 95;
  opacity: 0;
  animation: ed-toast-show var(--dur) linear infinite;
}
.ed-toast-dot {
  width: 14px; height: 14px; border-radius: 50%;
  background: var(--sage);
  color: var(--ink);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 9px; font-weight: 700;
}
@keyframes ed-toast-show {
  0%, 86% { opacity: 0; transform: translate(-50%, 8px); }
  88%, 96% { opacity: 1; transform: translate(-50%, 0); }
  98%, 100% { opacity: 0; transform: translate(-50%, 8px); }
}

/* ─── responsive ─── */
@media (max-width: 980px) {
  .ed-shell { grid-template-columns: 130px 170px 1fr; }
  .ed-rail-list li { font-size: 10px; padding: 5px 6px; }
}
@media (max-width: 880px) {
  .ed { aspect-ratio: 4 / 3.4; font-size: 11px; }
  .ed-shell { grid-template-columns: 160px 1fr; }
  .ed-lib { display: none; }
  .ed-shell--inline { grid-template-columns: 130px 1fr; }
  .ed-shell--split { grid-template-columns: 130px 130px 1fr; }
  .ed-lib-chips { display: none; }
  .ed-tool-right .ed-show { display: none; }
  .ed-hero-stats { gap: 16px; }
  .ed-hero-stats b { font-size: 14px; }
  .ed-pagenav { padding: 8px 14px; }
  .ed-pagenav-links span:not(.ed-pagenav-cta) { display: none; }
  .ed-mobile-frame { width: 110px; height: 198px; }
  .ed-mobile-cap { font-size: 7.5px; padding: 3px 7px; }
}
@media (max-width: 540px) {
  .ed { aspect-ratio: 4 / 4.6; }
  .ed-shell { grid-template-columns: 1fr; }
  .ed-rail { display: none; }
  .ed-zoom-pill, .ed-zoom-fit { display: none; }
  .ed-mobile-frame { width: 92px; height: 168px; }
  .ed-mobile-cap { display: none; }
}

/* ───────────────────────────────────────────────────────────────────────────
   Trial Landing blocks — imported from "qcms Trial Landing" design.
   Fully namespaced (.tl-*) so they never collide with the styles above.
   Tokens hardcoded (warm-stone) except brand colour which stays var(--primary).
─────────────────────────────────────────────────────────────────────────── */
.tl-hero, .tl-social, .tl-section {
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  color: #1c1917;
  line-height: 1.55;
}
.tl-shell { width: 100%; max-width: 480px; margin: 0 auto; padding: 0 22px; }
.tl-brand { display: inline-flex; align-items: center; gap: 10px; }
.tl-brand-mark {
  width: 38px; height: 38px; border-radius: 11px; background: var(--primary, #ea580c);
  color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 22px;
  line-height: 1; box-shadow: 0 6px 16px -6px rgba(234, 88, 12, 0.6);
}
.tl-brand-word { font-weight: 800; font-size: 22px; letter-spacing: -0.02em; color: #1c1917; }
.tl-hero { padding: 30px 0 46px; }
.tl-hero-top { display: flex; justify-content: center; padding-top: 8px; padding-bottom: 34px; }
.tl-pill {
  display: inline-flex; align-items: center; gap: 7px; padding: 8px 15px; border-radius: 999px;
  background: #fdeee4; color: var(--primary, #ea580c); font-weight: 600; font-size: 13.5px;
  border: 1px solid #f7d9c6;
}
.tl-hero h1 { margin: 18px 0 0; font-size: clamp(34px, 10vw, 44px); line-height: 1.08; letter-spacing: -0.03em; font-weight: 800; }
.tl-hero .tl-subtitle { margin: 16px 0 0; font-size: 17px; color: #78716c; max-width: 30ch; }
.tl-cta {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; width: 100%;
  margin-top: 28px; padding: 17px 24px; border-radius: 14px; background: var(--primary, #ea580c);
  color: #fff; font-weight: 700; font-size: 17px; border: none; cursor: pointer;
  box-shadow: 0 12px 26px -10px rgba(234, 88, 12, 0.55); transition: transform .15s ease, box-shadow .15s ease;
}
.tl-cta:hover { transform: translateY(-1px); box-shadow: 0 16px 30px -10px rgba(234, 88, 12, 0.6); }
.tl-trust { margin-top: 16px; display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 14px; color: #78716c; }
.tl-social { padding: 0 0 46px; }
.tl-social-card {
  background: #fff; border: 1px solid #efe9e1; border-radius: 20px; padding: 20px 22px;
  box-shadow: 0 4px 18px -8px rgba(28, 25, 23, 0.12); display: flex; align-items: center; gap: 16px;
}
.tl-avatars { display: flex; flex-shrink: 0; }
.tl-avatars .tl-av {
  width: 40px; height: 40px; border-radius: 999px; border: 2.5px solid #fff; margin-left: -12px;
  display: grid; place-items: center; font-weight: 700; font-size: 14px; color: #fff;
  box-shadow: 0 4px 18px -8px rgba(28, 25, 23, 0.12);
}
.tl-avatars .tl-av:first-child { margin-left: 0; }
.tl-av-1 { background: #f97316; }
.tl-av-2 { background: #0ea5e9; }
.tl-av-3 { background: #8b5cf6; }
.tl-social-text { font-size: 14.5px; color: #1c1917; font-weight: 500; }
.tl-social-text b { color: var(--primary, #ea580c); }
.tl-section { padding: 12px 0 46px; }
.tl-section-head { text-align: center; margin-bottom: 26px; }
.tl-section-head .tl-eyebrow {
  display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--primary, #ea580c); margin-bottom: 8px;
}
.tl-section-head h2 { margin: 0; font-size: 27px; letter-spacing: -0.02em; font-weight: 800; }
.tl-steps { display: flex; flex-direction: column; gap: 14px; }
.tl-step {
  display: flex; align-items: flex-start; gap: 15px; background: #fff; border: 1px solid #efe9e1;
  border-radius: 14px; padding: 18px; box-shadow: 0 4px 18px -8px rgba(28, 25, 23, 0.12);
}
.tl-step-num {
  flex-shrink: 0; width: 34px; height: 34px; border-radius: 10px; background: #fdeee4;
  color: var(--primary, #ea580c); font-weight: 800; display: grid; place-items: center; font-size: 16px;
}
.tl-step h3 { margin: 2px 0 4px; font-size: 17px; font-weight: 700; }
.tl-step p { margin: 0; font-size: 14.5px; color: #78716c; }
.tl-features { display: flex; flex-direction: column; gap: 11px; }
.tl-feature {
  display: flex; align-items: center; gap: 12px; font-size: 15.5px; font-weight: 500; color: #1c1917;
  background: #fff; border: 1px solid #efe9e1; border-radius: 14px; padding: 14px 16px;
}
.tl-feature .tl-check {
  flex-shrink: 0; width: 26px; height: 26px; border-radius: 999px; background: #dcfce7;
  color: #16a34a; display: grid; place-items: center; font-weight: 800; font-size: 14px;
}

/* Desktop: the .tl- blocks are a phone-first design. On wider screens relax the
   narrow app-like column into a proper full-width landing layout so it doesn't
   look like a thin strip. Phone keeps the compact look below 768px. */
@media (min-width: 768px) {
  .tl-shell { max-width: 1040px; padding: 0 40px; }
  .tl-hero { padding: 76px 0 64px; }
  .tl-hero-top { justify-content: flex-start; padding-bottom: 28px; }
  .tl-hero h1 { font-size: 56px; max-width: 18ch; }
  .tl-hero .tl-subtitle { font-size: 19px; max-width: 52ch; }
  .tl-cta { width: auto; align-self: flex-start; padding: 17px 34px; }
  .tl-social { padding: 0 0 64px; }
  .tl-social-card { max-width: 620px; }
  .tl-section { padding: 56px 0; }
  .tl-section-head h2 { font-size: 34px; }
  .tl-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
  .tl-features { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
}

