:root { color-scheme: light; }

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

html { scroll-behavior: smooth; }

body.demo {
  margin: 0;
  font-family: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  background: var(--d-bg);
  color: var(--d-ink);
  line-height: 1.6;
  overflow-x: clip;
}

body.demo :focus-visible {
  outline: 2px solid var(--d-accent);
  outline-offset: 3px;
}

img, svg { max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: inherit; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { line-height: 1.15; letter-spacing: -0.03em; }

.theme-restaurant {
  --d-bg: #fbf7f2; --d-ink: #2a2118; --d-muted: #6e5c4c; --d-brand: #2a2118;
  --d-accent: #b86a24; --d-card: #fffdf9; --d-line: #eadfD2; --d-hero: #241c16;
  --d-hero-text: #fff8f1; --d-header: rgba(251, 247, 242, 0.94); --d-header-text: #2a2118;
}
.theme-estate {
  --d-bg: #f6f4f0; --d-ink: #1c2420; --d-muted: #5e6a63; --d-brand: #24312b;
  --d-accent: #8d6a3b; --d-card: #fff; --d-line: #e3ddd3; --d-hero: #1c2823;
  --d-hero-text: #f7f3ea; --d-header: rgba(246, 244, 240, 0.94); --d-header-text: #1c2420;
}
.theme-clinic {
  --d-bg: #f4fbf9; --d-ink: #14332f; --d-muted: #4d6b66; --d-brand: #0f766e;
  --d-accent: #0f766e; --d-card: #fff; --d-line: #d5ebe6; --d-hero: #e7f6f2;
  --d-hero-text: #14332f; --d-header: rgba(244, 251, 249, 0.94); --d-header-text: #14332f;
}
.theme-gym {
  --d-bg: #121417; --d-ink: #f4f1ea; --d-muted: #c4bfb4; --d-brand: #c2410c;
  --d-accent: #ea580c; --d-card: #1c2026; --d-line: #31363f; --d-hero: #0e1013;
  --d-hero-text: #f7f4ee; --d-header: rgba(18, 20, 23, 0.94); --d-header-text: #f7f4ee;
}
.theme-coaching {
  --d-bg: #f7f6fb; --d-ink: #1b2148; --d-muted: #5c6288; --d-brand: #1e2a78;
  --d-accent: #b8892e; --d-card: #fff; --d-line: #e1e3f0; --d-hero: #f7f6fb;
  --d-hero-text: #1b2148; --d-header: rgba(247, 246, 251, 0.94); --d-header-text: #1b2148;
}
.theme-salon {
  --d-bg: #fbf6f4; --d-ink: #3d2430; --d-muted: #7a5d68; --d-brand: #4a2c3a;
  --d-accent: #9a5b6b; --d-card: #fff; --d-line: #f0e0dc; --d-hero: #fbf6f4;
  --d-hero-text: #3d2430; --d-header: rgba(251, 246, 244, 0.94); --d-header-text: #3d2430;
}
.theme-shop {
  --d-bg: #fafafa; --d-ink: #161616; --d-muted: #5f5f5f; --d-brand: #111;
  --d-accent: #111; --d-card: #fff; --d-line: #ececec; --d-hero: #f3f1ee;
  --d-hero-text: #161616; --d-header: rgba(250, 250, 250, 0.94); --d-header-text: #161616;
}
.theme-saas {
  --d-bg: #f5f7fb; --d-ink: #122033; --d-muted: #5c6b80; --d-brand: #12305f;
  --d-accent: #2563eb; --d-card: #fff; --d-line: #e1e8f2; --d-hero: #07111f;
  --d-hero-text: #f5f8ff; --d-header: rgba(245, 247, 251, 0.94); --d-header-text: #122033;
}
.theme-market {
  --d-bg: #f4f7fb; --d-ink: #122033; --d-muted: #5c6b80; --d-brand: #07111f;
  --d-accent: #1d4ed8; --d-card: #fff; --d-line: #e1e8f2; --d-hero: #07111f;
  --d-hero-text: #f5f8ff; --d-header: rgba(244, 247, 251, 0.94); --d-header-text: #122033;
}

.demo-bar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: #07111f;
  color: #fff;
}

.demo [id] { scroll-margin-top: 72px; }
.demo-bar-inner, .wrap, .d-header-inner, .sales-inner {
  width: min(1080px, calc(100% - 2rem));
  margin-inline: auto;
}
.demo-bar-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem 1rem;
  align-items: center;
  justify-content: space-between;
  padding: 0.7rem 0;
  font-size: 0.92rem;
}
.demo-bar a { color: #fff; font-weight: 700; text-decoration: none; }
.concept-pill, .sample {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0.16rem 0.55rem;
  font-size: 0.72rem;
  font-weight: 700;
}
.concept-pill { background: rgba(255,255,255,0.12); color: #fff; }
.hero .concept-pill, .band .concept-pill { background: var(--d-accent); color: #fff; }
.theme-gym .hero .concept-pill { background: #fff; color: #1a1a1a; }
.sample { background: #fff4df; color: #8a4b08; }

.d-header {
  position: relative;
  background: var(--d-header);
  color: var(--d-header-text);
  border-bottom: 1px solid var(--d-line);
}
.d-header-inner {
  min-height: 68px;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.d-logo { font-weight: 800; text-decoration: none; letter-spacing: -0.03em; font-size: 1.05rem; }
.d-nav { display: none; }
.d-nav.is-open {
  display: flex;
  flex-direction: column;
  position: absolute;
  left: 0; right: 0; top: 100%;
  background: var(--d-card);
  color: var(--d-ink);
  border-bottom: 1px solid var(--d-line);
  padding: 0.4rem 1rem 0.8rem;
  z-index: 20;
}
.d-nav a { text-decoration: none; font-weight: 650; font-weight: 600; min-height: 44px; display: flex; align-items: center; }
.d-burger {
  margin-left: auto;
  min-height: 42px;
  padding: 0 0.8rem;
  border-radius: 10px;
  border: 1px solid var(--d-line);
  background: transparent;
  color: inherit;
  font-weight: 700;
  cursor: pointer;
}
.d-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0.65rem 1rem;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 700;
  border: 1px solid transparent;
  cursor: pointer;
}
.d-btn-solid { background: var(--d-accent); color: #fff; }
.theme-shop .d-btn-solid, .theme-estate .d-btn-solid { color: #fff; }
.theme-coaching .d-btn-solid { background: var(--d-brand); }
.d-btn-line { background: transparent; color: inherit; border-color: currentColor; }
.d-btn-light { background: #fff; color: #1a1a1a; }
.hero-actions, .sales-actions, .split-actions { display: flex; flex-wrap: wrap; gap: 0.6rem; }

.hero { background: var(--d-hero); color: var(--d-hero-text); padding: 2.4rem 0 2.6rem; }
.hero-grid, .split, .grid-2, .grid-3, .grid-4 { display: grid; gap: 1rem; }
.kicker { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--d-accent); margin-bottom: 0.7rem; }
.hero h1 { font-size: clamp(2rem, 7vw, 3.5rem); max-width: 14ch; margin: 0.6rem 0 0.8rem; }
.hero .lede, .muted { color: var(--d-muted); }
.hero .lede { color: inherit; opacity: 0.88; max-width: 38rem; margin-bottom: 1.2rem; }
.section { padding: 3.4rem 0; }
.section h2 { font-size: clamp(1.6rem, 4vw, 2.2rem); margin-bottom: 0.7rem; }
.section .intro { color: var(--d-muted); max-width: 38rem; margin-bottom: 1.3rem; }
.card, .panel, .hero-panel, .product, .person {
  background: var(--d-card);
  border: 1px solid var(--d-line);
  border-radius: 16px;
  padding: 1rem;
}
.hero-panel { color: var(--d-ink); }
.card h3, .person h3, .product h3 { margin-bottom: 0.3rem; font-size: 1.05rem; }
.card p, .person p, .product p { color: var(--d-muted); }
.price-row, .menu-row, .hours-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--d-line);
}
.menu-row span, .price-row span { min-width: 0; }
.menu-row strong, .price-row strong, .hours-row strong { flex: none; }
.menu-row strong, .price-row strong { font-weight: 700; }
.swatch {
  height: 84px;
  border-radius: 12px;
  margin-bottom: 0.75rem;
}
.note {
  margin-top: 0.8rem;
  padding: 0.75rem 0.85rem;
  border-radius: 12px;
  background: rgba(184, 106, 36, 0.08);
  color: var(--d-ink);
  font-size: 0.92rem;
}
.theme-clinic .note { background: #e7f6f2; }
.theme-gym .note { background: #2a211c; }
.map {
  min-height: 160px;
  border-radius: 16px;
  border: 1px dashed var(--d-line);
  display: grid;
  place-items: center;
  text-align: center;
  padding: 1rem;
  background:
    linear-gradient(135deg, transparent 46%, var(--d-line) 46%, var(--d-line) 54%, transparent 54%),
    var(--d-card);
  color: var(--d-muted);
  font-weight: 700;
}
label { display: grid; gap: 0.3rem; font-weight: 650; font-weight: 600; font-size: 0.92rem; margin-bottom: 0.7rem; }
input, select, textarea {
  width: 100%;
  min-height: 46px;
  border-radius: 12px;
  border: 1px solid var(--d-line);
  background: #fff;
  color: #1c1915;
  padding: 0.65rem 0.75rem;
}
textarea { min-height: 90px; resize: vertical; }
.demo-form-note { margin-top: 0.7rem; }
.schedule { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
.schedule th, .schedule td { text-align: left; padding: 0.7rem 0.4rem; border-bottom: 1px solid var(--d-line); }
.product .swatch { height: 140px; }
.cart ul { margin: 0.4rem 0 0; padding-left: 1.1rem; }
.dash {
  background: #0d1b33;
  color: white;
  border-radius: 18px;
  padding: 1rem;
  min-height: 220px;
}
.dash-top, .dash-bars, .dash-pills { display: flex; gap: 0.45rem; }
.dash-top { justify-content: space-between; font-size: 0.8rem; opacity: 0.8; }
.dash-bars { margin-top: 1rem; align-items: flex-end; height: 90px; }
.dash-bars span { flex: 1; border-radius: 8px 8px 0 0; background: #2563eb; }
.dash-bars span:nth-child(2) { height: 70%; background: #60a5fa; }
.dash-bars span:nth-child(3) { height: 45%; background: #93c5fd; }
.dash-bars span:nth-child(1) { height: 88%; }
.dash-pills { margin-top: 1rem; flex-wrap: wrap; }
.dash-pills i { font-style: normal; background: rgba(255,255,255,0.08); border-radius: 999px; padding: 0.25rem 0.55rem; font-size: 0.75rem; }
.band { padding: 2.2rem 0; background: var(--d-brand); color: white; }
.theme-clinic .band, .theme-coaching .band, .theme-salon .band, .theme-shop .band { color: white; }
.band p { opacity: 0.9; margin: 0.5rem 0 1rem; max-width: 36rem; }
.d-footer { padding: 2rem 0; border-top: 1px solid var(--d-line); color: var(--d-muted); font-size: 0.92rem; }
.d-footer strong { color: var(--d-ink); }
.sales { background: #07111f; color: white; padding: 3rem 0; }
.sales h2 { font-size: clamp(1.8rem, 4vw, 2.5rem); margin: 0.4rem 0 0.6rem; }
.sales p { color: #d5deea; max-width: 36rem; }
.sales-brand { color: #93c5fd; font-weight: 700; font-size: 0.85rem; }
.sales-primary { background: white; color: #07111f; }
.sales-wa { background: #0f7a4a; color: white; }
.bag-count {
  display: inline-grid;
  place-items: center;
  min-width: 1.4rem;
  height: 1.4rem;
  padding: 0 0.3rem;
  border-radius: 999px;
  background: var(--d-accent);
  color: white;
  font-size: 0.75rem;
}

@media (min-width: 768px) {
  .d-burger { display: none; }
  .d-nav,
  .d-nav.is-open {
    display: flex;
    position: static;
    flex-direction: row;
    gap: 1rem;
    margin-left: auto;
    align-items: center;
    background: transparent;
    border: 0;
    padding: 0;
    color: inherit;
  }
  .d-nav a { min-height: 0; }
  .hero-grid, .split, .grid-2 { grid-template-columns: 1.1fr 0.9fr; align-items: center; }
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
  .hero { padding: 4rem 0; }
  .section { padding: 4.5rem 0; }
}

@media (min-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
}

.mk-board {
  background: #fff;
  border: 1px solid var(--d-line);
  border-radius: 20px;
  box-shadow: 0 18px 40px -28px rgba(7, 17, 31, 0.55);
  overflow: hidden;
}
.mk-chrome {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.75rem 0.9rem;
  background: #f3f6fa;
  border-bottom: 1px solid var(--d-line);
}
.mk-chrome i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #d5deea;
  display: block;
}
.mk-url {
  margin-left: 0.35rem;
  background: #fff;
  border-radius: 999px;
  padding: 0.2rem 0.7rem;
  font-size: 0.75rem;
  color: var(--d-muted);
}
.mk-body { padding: 1rem; }
.mk-top {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 0.85rem;
}
.mk-kicker {
  color: var(--d-muted);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.mk-filters { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.mk-filters button {
  min-height: 40px;
  border-radius: 999px;
  border: 1px solid var(--d-line);
  background: #fff;
  color: var(--d-ink);
  padding: 0.3rem 0.85rem;
  font-weight: 700;
  cursor: pointer;
}
.mk-filters button[aria-pressed="true"] {
  background: var(--d-accent);
  border-color: var(--d-accent);
  color: #fff;
}
.mk-note {
  margin: 0 0 1rem;
  padding: 0.8rem 0.9rem;
  border-radius: 12px;
  background: #f4f7fb;
  color: var(--d-ink);
  font-size: 0.92rem;
}
.theme-market .hero h1 { max-width: 18rem; }
.theme-market .d-logo { min-width: 0; line-height: 1.15; }
.mk-kpis, .mk-panels, .mk-compare { display: grid; gap: 0.7rem; }
.mk-compare { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.mk-kpis { grid-template-columns: 1fr 1fr; }
.mk-kpi, .mk-panel, .mk-market {
  border: 1px solid var(--d-line);
  border-radius: 14px;
  background: #fff;
  padding: 0.85rem;
}
.mk-kpi p, .mk-headrow {
  color: var(--d-muted);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.mk-kpi strong, .mk-placeholder {
  color: #8b9bb3;
  font-weight: 700;
}
.mk-kpi strong {
  display: block;
  margin: 0.35rem 0 0.1rem;
  font-size: 1.65rem;
  letter-spacing: -0.04em;
}
.mk-kpi span, .mk-sub { color: var(--d-muted); font-size: 0.82rem; }
.mk-chart {
  display: flex;
  align-items: flex-end;
  gap: 0.4rem;
  height: 96px;
  margin: 0.9rem 0 0.35rem;
  padding: 0.75rem 0.7rem 0;
  border: 1px dashed var(--d-line);
  border-radius: 14px;
  background: #f8fafc;
}
.mk-chart span {
  flex: 1;
  border-radius: 8px 8px 0 0;
  background: #c5d4ee;
}
.mk-chart span:nth-child(3n + 1) { height: 68px; background: #1d4ed8; }
.mk-chart span:nth-child(3n + 2) { height: 44px; background: #60a5fa; }
.mk-chart span:nth-child(3n) { height: 26px; background: #bfdbfe; }
.mk-caption { color: var(--d-muted); font-size: 0.82rem; margin: 0.35rem 0 0.2rem; }
.mk-panels { margin-top: 0.9rem; }
.mk-panel h3, .mk-market h3 { font-size: 1.02rem; margin-bottom: 0.25rem; }
.mk-sub { display: block; margin-bottom: 0.7rem; }
.mk-headrow, .mk-row {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 0.8fr) minmax(0, 0.5fr);
  gap: 0.45rem;
  align-items: center;
}
.mk-row {
  padding: 0.65rem 0;
  border-top: 1px solid var(--d-line);
  font-size: 0.9rem;
}
.mk-row span { color: var(--d-muted); }
.mk-market ul { list-style: none; margin: 0.35rem 0 0; padding: 0; }
.mk-market li {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.42rem 0;
  border-top: 1px solid var(--d-line);
  font-size: 0.88rem;
}
.mk-item[hidden] { display: none !important; }

@media (max-width: 640px) {
  .mk-headrow { display: none; }
  .mk-row { grid-template-columns: 1fr; gap: 0.1rem; }
}

@media (min-width: 768px) {
  .mk-body { padding: 1.15rem 1.2rem 1.3rem; }
  .mk-kpis { grid-template-columns: repeat(4, 1fr); }
  .mk-panels.mk-split { grid-template-columns: 1fr 1fr; }
  .mk-span { grid-column: 1 / -1; }
}

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