/* Shared design system for the /demos one-page sample sites.
   Light, editorial, accent-driven — each site sets --accent inline. */

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

:root {
  --ink: #14161b;
  --muted: #5b6170;
  --line: #e6e7eb;
  --paper: #ffffff;
  --wash: #f6f7f9;
  --radius: 14px;
  --display: "Sora", "Segoe UI", sans-serif;
  --body: "Inter", "Segoe UI", sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
ul { list-style: none; }
img, svg { display: block; max-width: 100%; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.wrap {
  width: min(100% - 48px, 1080px);
  margin-inline: auto;
}

/* Ribbon */
.site-ribbon {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  padding: 9px 22px;
  background: #101114;
  color: #d3d5db;
  font-size: 13px;
}

.site-ribbon strong { color: #fff; }
.site-ribbon a { color: #fff; font-weight: 600; white-space: nowrap; }
.site-ribbon a:hover { text-decoration: underline; }

/* Nav */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 15px 26px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.site-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--display);
  font-weight: 700;
  font-size: 17px;
}

.site-mark {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: var(--accent);
  color: #fff;
  font-size: 14px;
}

.site-nav nav {
  display: flex;
  gap: 4px;
  margin-right: auto;
}

.site-nav nav a {
  padding: 7px 13px;
  border-radius: 8px;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--muted);
}

.site-nav nav a:hover { background: var(--wash); color: var(--ink); }

/* Buttons */
.site-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  font-size: 15px;
  transition: filter 0.2s, transform 0.2s;
}

.site-btn:hover { filter: brightness(1.08); transform: translateY(-1px); }
.site-btn.small { padding: 9px 18px; font-size: 14px; }
.site-btn.ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line);
}
.site-btn.ghost:hover { border-color: var(--accent); color: var(--accent); filter: none; }
.site-btn.inverse { background: #fff; color: var(--accent); }

/* Hero (split) */
.site-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
  width: min(100% - 48px, 1080px);
  margin-inline: auto;
  padding: clamp(48px, 7vw, 88px) 0 clamp(40px, 6vw, 64px);
}

.site-eyebrow {
  display: inline-block;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}

.site-hero h1 {
  font-family: var(--display);
  font-size: clamp(32px, 4.6vw, 52px);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.site-hero > div > p {
  color: var(--muted);
  font-size: 17px;
  max-width: 46ch;
  margin-bottom: 26px;
}

.site-hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* Hero art panel — pure CSS scene */
.site-hero-art {
  position: relative;
  aspect-ratio: 5 / 4;
  border-radius: var(--radius);
  overflow: hidden;
  background:
    radial-gradient(90% 90% at 80% 10%, color-mix(in srgb, var(--accent) 34%, white), transparent 60%),
    linear-gradient(160deg, color-mix(in srgb, var(--accent) 82%, black), var(--accent) 55%, color-mix(in srgb, var(--accent) 45%, white));
  box-shadow: 0 30px 60px -30px color-mix(in srgb, var(--accent) 55%, black);
}

.site-hero-art .art-card {
  position: absolute;
  background: rgba(255, 255, 255, 0.94);
  border-radius: 12px;
  padding: 14px 18px;
  box-shadow: 0 16px 38px -18px rgba(16, 17, 20, 0.45);
  font-size: 13px;
}

.site-hero-art .art-card strong { display: block; font-size: 15px; }
.site-hero-art .art-card span { color: var(--muted); }
.art-card.a { top: 12%; left: 8%; }
.art-card.b { bottom: 14%; right: 9%; }
.art-card.c { bottom: 12%; left: 10%; }

/* Sections */
.site-section {
  width: min(100% - 48px, 1080px);
  margin-inline: auto;
  padding: clamp(44px, 6vw, 72px) 0;
}

.site-section.alt {
  width: 100%;
  background: var(--wash);
  border-block: 1px solid var(--line);
}

.site-section.alt > .wrap {
  padding: clamp(44px, 6vw, 72px) 0;
}

.site-section-head {
  max-width: 560px;
  margin-bottom: clamp(28px, 4vw, 44px);
}

.site-section-head h2 {
  font-family: var(--display);
  font-size: clamp(24px, 3.2vw, 34px);
  font-weight: 700;
  letter-spacing: -0.015em;
  margin-bottom: 10px;
}

.site-section-head p { color: var(--muted); }

.site-section-head.center {
  margin-inline: auto;
  text-align: center;
}

/* Stat strip */
.site-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--paper);
}

.site-stats div {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 20px 12px;
}

.site-stats div + div { border-left: 1px solid var(--line); }
.site-stats dd { font-family: var(--display); font-size: 24px; font-weight: 700; color: var(--accent); }
.site-stats dt { font-size: 13px; color: var(--muted); margin-top: 3px; }

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

.feature-card {
  padding: 26px 24px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: transform 0.25s, box-shadow 0.25s;
}

.feature-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 36px -22px rgba(16, 17, 20, 0.35);
}

.feature-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 11px;
  background: color-mix(in srgb, var(--accent) 11%, white);
  color: var(--accent);
  font-size: 19px;
  margin-bottom: 14px;
}

.feature-card h3 { font-family: var(--display); font-size: 17px; margin-bottom: 8px; }
.feature-card p { font-size: 14px; color: var(--muted); }

/* Gallery cards (listings, menu, classes, screens) */
.site-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.gallery-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.25s, box-shadow 0.25s;
}

.gallery-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 40px -22px rgba(16, 17, 20, 0.35);
}

.gallery-art {
  height: 160px;
  display: grid;
  place-items: end start;
  padding: 12px;
}

.gallery-art span {
  background: rgba(255, 255, 255, 0.9);
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
}

.gallery-body { padding: 18px; }

.gallery-body h3 {
  font-family: var(--display);
  font-size: 17px;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
}

.gallery-body h3 em {
  font-style: normal;
  color: var(--accent);
  font-size: 15.5px;
  white-space: nowrap;
}

.gallery-body p { font-size: 13.5px; color: var(--muted); margin-top: 6px; }

/* Quote */
.site-quote {
  max-width: 700px;
  margin-inline: auto;
  text-align: center;
}

.site-quote blockquote {
  font-family: var(--display);
  font-size: clamp(19px, 2.6vw, 26px);
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: -0.01em;
}

.site-quote blockquote::before { content: "\201C"; color: var(--accent); }
.site-quote blockquote::after { content: "\201D"; color: var(--accent); }

.site-quote figcaption {
  margin-top: 16px;
  font-size: 14px;
  color: var(--muted);
}

.site-quote figcaption strong { color: var(--ink); }

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

.price-card {
  display: flex;
  flex-direction: column;
  padding: 28px 26px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.price-card.featured {
  border-color: var(--accent);
  box-shadow: 0 18px 44px -26px color-mix(in srgb, var(--accent) 60%, black);
}

.price-card h3 { font-family: var(--display); font-size: 17px; margin-bottom: 8px; }
.price-card .price { font-family: var(--display); font-size: 32px; font-weight: 700; }
.price-card .price small { font-size: 14px; color: var(--muted); font-weight: 400; }
.price-card ul { margin: 16px 0 22px; display: flex; flex-direction: column; gap: 9px; flex: 1; }
.price-card li { font-size: 14px; color: var(--muted); padding-left: 20px; position: relative; }
.price-card li::before { content: "✓"; position: absolute; left: 0; color: var(--accent); font-weight: 700; }

/* Schedule table (Summit) / hours (Sabor) */
.site-rows {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--paper);
}

.site-rows > div {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 18px;
  align-items: center;
  padding: 15px 22px;
}

.site-rows > div + div { border-top: 1px solid var(--line); }
.site-rows strong { font-size: 15px; }
.site-rows span { font-size: 14px; color: var(--muted); }
.site-rows .pill {
  padding: 4px 12px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--accent) 10%, white);
  color: var(--accent);
  font-size: 12.5px;
  font-weight: 600;
}

/* CTA band */
.site-cta {
  background: linear-gradient(140deg, color-mix(in srgb, var(--accent) 88%, black), var(--accent));
  color: #fff;
  text-align: center;
  padding: clamp(52px, 7vw, 80px) 24px;
}

.site-cta h2 {
  font-family: var(--display);
  font-size: clamp(26px, 3.6vw, 38px);
  font-weight: 700;
  letter-spacing: -0.015em;
  margin-bottom: 12px;
}

.site-cta p {
  opacity: 0.85;
  max-width: 52ch;
  margin: 0 auto 26px;
}

/* Footer */
.site-footer {
  background: var(--wash);
  border-top: 1px solid var(--line);
}

.site-footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 0.8fr) minmax(0, 0.8fr);
  gap: 32px;
  width: min(100% - 48px, 1080px);
  margin-inline: auto;
  padding: 42px 0 30px;
}

.site-footer-grid p { color: var(--muted); font-size: 14px; margin-top: 12px; }
.site-footer nav { display: flex; flex-direction: column; gap: 9px; }

.site-footer nav h3 {
  font-size: 12.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-bottom: 4px;
}

.site-footer nav a { font-size: 14px; color: var(--muted); width: fit-content; }
.site-footer nav a:hover { color: var(--accent); }

.site-footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  width: min(100% - 48px, 1080px);
  margin-inline: auto;
  padding: 16px 0 26px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--muted);
}

.site-footer-bottom a { font-weight: 600; color: var(--accent); }
.site-footer-bottom a:hover { text-decoration: underline; }

/* ==========================================================
   Per-site identities — themes, fonts, hero variants, photos
   ========================================================== */

/* Dark theme (Sabor, Pulse) — components read the same vars */
.theme-dark {
  --ink: #f3efe9;
  --muted: #a8a29a;
  --line: rgba(243, 239, 233, 0.14);
  --paper: #17120f;
  --wash: #1f1915;
  background: var(--paper);
}

.theme-dark .site-nav {
  background: color-mix(in srgb, var(--paper) 88%, transparent);
}

.theme-dark .site-hero-art { box-shadow: none; }

.site-pulse.theme-dark {
  --paper: #0b0b12;
  --wash: #131320;
  --line: rgba(235, 235, 250, 0.12);
  --ink: #f1f0f7;
  --muted: #9d9cb0;
}

/* Per-site display fonts */
.site-sabor, .site-aurelia { --display: "Fraunces", Georgia, serif; }
.site-summit { --display: "Archivo", "Segoe UI", sans-serif; }
.site-summit h1, .site-summit h2 { text-transform: uppercase; letter-spacing: 0.01em; }
.site-aurelia { --wash: #faf6f1; }
.site-aurelia .site-eyebrow { letter-spacing: 0.22em; }

/* Photos */
.photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.photo-frame {
  border-radius: var(--radius);
  overflow: hidden;
}

.arch-frame {
  border-radius: 260px 260px var(--radius) var(--radius);
  overflow: hidden;
  aspect-ratio: 4 / 5;
}

.gallery-card .gallery-photo {
  height: 170px;
  width: 100%;
  object-fit: cover;
}

.photo-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.photo-row img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: var(--radius);
}

/* Centered corporate hero (NovaWorks) */
.hero-center {
  text-align: center;
  padding: clamp(52px, 7vw, 84px) 24px 0;
}

.hero-center .site-hero-inner {
  max-width: 720px;
  margin-inline: auto;
}

.hero-center h1 {
  font-family: var(--display);
  font-size: clamp(34px, 5vw, 56px);
  font-weight: 700;
  line-height: 1.07;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.hero-center p {
  color: var(--muted);
  font-size: 17px;
  max-width: 54ch;
  margin: 0 auto 26px;
}

.hero-center .site-hero-actions { justify-content: center; }

.hero-center-media {
  position: relative;
  width: min(100% - 48px, 1080px);
  margin: clamp(36px, 5vw, 56px) auto 0;
}

.hero-center-media .photo-frame {
  aspect-ratio: 21 / 9;
}

.hero-center-media .float-card {
  position: absolute;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 13px 18px;
  font-size: 13px;
  box-shadow: 0 16px 38px -18px rgba(16, 17, 20, 0.35);
}

.float-card strong { display: block; font-size: 16px; color: var(--accent); }
.float-card span { color: var(--muted); }
.float-card.fa { top: -20px; right: 6%; }
.float-card.fb { bottom: -20px; left: 6%; }

/* Logo strip */
.logo-strip {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: clamp(24px, 4vw, 52px);
  padding: 8px 0;
}

.logo-strip span {
  font-family: var(--display);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.12em;
  color: var(--muted);
  opacity: 0.75;
}

.logo-strip-label {
  text-align: center;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 18px;
}

/* Full-bleed banner hero (Alta Verde, Summit) */
.hero-banner {
  position: relative;
  display: flex;
  align-items: center;
  min-height: clamp(420px, 58vh, 560px);
  overflow: hidden;
}

.hero-banner > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-banner::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgba(10, 12, 14, 0.78) 20%, rgba(10, 12, 14, 0.25) 70%, rgba(10, 12, 14, 0.4));
}

.hero-banner .wrap {
  position: relative;
  z-index: 1;
  color: #fff;
  padding: 56px 0;
}

.hero-banner .site-eyebrow { color: #fff; opacity: 0.85; }

.hero-banner h1 {
  font-family: var(--display);
  font-size: clamp(34px, 5.2vw, 58px);
  font-weight: 700;
  line-height: 1.06;
  letter-spacing: -0.015em;
  max-width: 15ch;
  margin-bottom: 14px;
}

.hero-banner p {
  max-width: 44ch;
  opacity: 0.88;
  margin-bottom: 24px;
}

/* Search card (Alta Verde) */
.search-card {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(3, 1fr) auto;
  gap: 14px;
  align-items: end;
  width: min(100% - 48px, 1080px);
  margin: -44px auto 0;
  padding: 20px 22px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 24px 50px -24px rgba(16, 17, 20, 0.35);
}

.search-card label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--muted);
}

.search-card select {
  font: inherit;
  font-size: 14.5px;
  color: var(--ink);
  padding: 11px 13px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--wash);
}

/* Menu list with dotted leaders (Sabor, Aurelia) */
.menu-list {
  max-width: 680px;
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.menu-row {
  display: flex;
  align-items: baseline;
  gap: 12px;
}

.menu-row h3 {
  font-family: var(--display);
  font-size: 19px;
  font-weight: 600;
  white-space: nowrap;
}

.menu-row .leader {
  flex: 1;
  border-bottom: 2px dotted var(--line);
  transform: translateY(-4px);
}

.menu-row .price {
  font-family: var(--display);
  font-size: 18px;
  color: var(--accent);
  white-space: nowrap;
}

.menu-row p {
  font-size: 14px;
  color: var(--muted);
  margin-top: 4px;
}

.menu-item { display: flex; flex-direction: column; }

/* SaaS product hero + dashboard mock (Pulse) */
.hero-product {
  position: relative;
  text-align: center;
  padding: clamp(56px, 8vw, 92px) 24px 0;
  overflow: hidden;
}

.hero-product::before {
  content: "";
  position: absolute;
  inset: -20% -10% auto;
  height: 70%;
  background: radial-gradient(50% 60% at 50% 30%, color-mix(in srgb, var(--accent) 26%, transparent), transparent 75%);
  pointer-events: none;
}

.hero-product .site-hero-inner {
  position: relative;
  max-width: 700px;
  margin-inline: auto;
}

.hero-product h1 {
  font-family: var(--display);
  font-size: clamp(34px, 5vw, 58px);
  font-weight: 700;
  line-height: 1.06;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.hero-product p { color: var(--muted); font-size: 17px; margin-bottom: 26px; }
.hero-product .site-hero-actions { justify-content: center; }

.dash-mock {
  position: relative;
  width: min(100% - 48px, 920px);
  margin: clamp(40px, 6vw, 60px) auto 0;
  background: #101018;
  border: 1px solid rgba(235, 235, 250, 0.14);
  border-radius: 16px 16px 0 0;
  border-bottom: 0;
  overflow: hidden;
  box-shadow: 0 -10px 80px -20px color-mix(in srgb, var(--accent) 45%, transparent);
}

.dash-top {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  border-bottom: 1px solid rgba(235, 235, 250, 0.1);
}

.dash-top i { width: 10px; height: 10px; border-radius: 50%; background: rgba(235, 235, 250, 0.18); }

.dash-body {
  display: grid;
  grid-template-columns: 170px 1fr;
  min-height: 300px;
  text-align: left;
}

.dash-side {
  border-right: 1px solid rgba(235, 235, 250, 0.1);
  padding: 18px 14px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.dash-side span {
  height: 10px;
  border-radius: 5px;
  background: rgba(235, 235, 250, 0.12);
}

.dash-side span:first-child { background: var(--accent); width: 70%; }
.dash-side span:nth-child(2) { width: 85%; }
.dash-side span:nth-child(3) { width: 60%; }
.dash-side span:nth-child(4) { width: 75%; }

.dash-main { padding: 20px; }

.dash-kpis {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 18px;
}

.dash-kpi {
  border: 1px solid rgba(235, 235, 250, 0.12);
  border-radius: 10px;
  padding: 12px 14px;
}

.dash-kpi small { display: block; font-size: 11px; color: #9d9cb0; margin-bottom: 4px; }
.dash-kpi strong { font-family: var(--display); font-size: 19px; color: #f1f0f7; }
.dash-kpi em { font-style: normal; font-size: 11.5px; color: #4ade80; margin-left: 6px; }

.dash-chart {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  height: 130px;
  border: 1px solid rgba(235, 235, 250, 0.12);
  border-radius: 10px;
  padding: 16px;
}

.dash-chart i {
  flex: 1;
  border-radius: 4px 4px 0 0;
  background: linear-gradient(180deg, var(--accent), color-mix(in srgb, var(--accent) 40%, transparent));
}

/* Agent / contact strip (Alta Verde) */
.agent-strip {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  padding: 22px 26px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.agent-strip img {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
}

.agent-strip strong { display: block; font-family: var(--display); font-size: 17px; }
.agent-strip span { font-size: 14px; color: var(--muted); }
.agent-strip .site-btn { margin-left: auto; }

/* Split hero with photo (Sabor, Aurelia) */
.site-hero .hero-photo {
  aspect-ratio: 5 / 4;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.5);
}

/* Responsive */
@media (max-width: 900px) {
  .site-hero { grid-template-columns: minmax(0, 1fr); }
  .site-hero-art { order: -1; aspect-ratio: 16 / 9; }
  .site-features, .site-gallery, .site-pricing { grid-template-columns: repeat(2, 1fr); }
  .site-stats { grid-template-columns: repeat(2, 1fr); }
  .site-stats div + div { border-left: 0; }
  .site-stats div:nth-child(even) { border-left: 1px solid var(--line); }
  .site-stats div:nth-child(n + 3) { border-top: 1px solid var(--line); }
  .site-nav nav { display: none; }
}

@media (max-width: 900px) {
  .search-card { grid-template-columns: 1fr 1fr; }
  .dash-body { grid-template-columns: 1fr; }
  .dash-side { display: none; }
  .photo-row img { height: 160px; }
  .float-card.fa { top: -16px; right: 4%; }
  .float-card.fb { bottom: -16px; left: 4%; }
}

@media (max-width: 560px) {
  .site-features, .site-gallery, .site-pricing { grid-template-columns: 1fr; }
  .site-footer-grid { grid-template-columns: 1fr; }
  .site-rows > div { grid-template-columns: 1fr auto; }
  .site-rows > div span:first-of-type { display: none; }
  .search-card { grid-template-columns: 1fr; }
  .photo-row { grid-template-columns: 1fr; }
  .dash-kpis { grid-template-columns: 1fr; }
  .arch-frame { aspect-ratio: 4 / 4; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition-duration: 0.01ms !important; }
}

/* ==========================================================
   Production component library — shared by every sample site
   ========================================================== */

/* ---- Announcement bar ---- */
.site-announce {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  padding: 9px 20px;
  background: var(--accent);
  color: #fff;
  font-size: 13.5px;
  font-weight: 500;
}

.site-announce a {
  text-decoration: underline;
  text-underline-offset: 3px;
  font-weight: 600;
}

.site-section-head.center p { margin-inline: auto; }

/* ---- Split rows (media beside copy, alternating) ---- */
.split-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
}

.split-row + .split-row { margin-top: clamp(40px, 6vw, 72px); }
.split-row.reverse .split-media { order: 2; }

.split-media {
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  box-shadow: 0 26px 56px -30px rgba(16, 17, 20, 0.5);
}

.split-body h2 {
  font-family: var(--display);
  font-size: clamp(22px, 3vw, 32px);
  font-weight: 700;
  letter-spacing: -0.015em;
  margin-bottom: 12px;
}

.split-body > p { color: var(--muted); margin-bottom: 18px; }

.check-list { display: flex; flex-direction: column; gap: 11px; margin-bottom: 22px; }

.check-list li {
  position: relative;
  padding-left: 28px;
  font-size: 14.5px;
  color: var(--muted);
}

.check-list li::before {
  content: "\2713";
  position: absolute;
  left: 0;
  top: -1px;
  display: grid;
  place-items: center;
  width: 19px;
  height: 19px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--accent) 14%, transparent);
  color: var(--accent);
  font-size: 11px;
  font-weight: 700;
}

.check-list li strong { color: var(--ink); font-weight: 600; }

/* ---- Numbered process steps ---- */
.step-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  counter-reset: step;
}

.step-card {
  position: relative;
  padding: 26px 22px 24px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.step-card::before {
  counter-increment: step;
  content: "0" counter(step);
  display: block;
  font-family: var(--display);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--accent);
  margin-bottom: 12px;
}

.step-card h3 { font-family: var(--display); font-size: 16.5px; margin-bottom: 8px; }
.step-card p { font-size: 13.5px; color: var(--muted); }

/* ---- Testimonials ---- */
.quote-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.quote-card {
  display: flex;
  flex-direction: column;
  gap: 15px;
  padding: 26px 24px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.quote-stars { display: flex; gap: 3px; color: var(--accent); font-size: 14px; letter-spacing: 1px; }
.quote-card blockquote { font-size: 14.5px; line-height: 1.7; color: var(--muted); }

.quote-person {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: auto;
}

.quote-person img { width: 42px; height: 42px; border-radius: 50%; object-fit: cover; }
.quote-person strong { display: block; font-size: 14.5px; }
.quote-person span { font-size: 12.5px; color: var(--muted); }

/* ---- FAQ ---- */
.faq-list { max-width: 780px; border-top: 1px solid var(--line); }
.faq-row { border-bottom: 1px solid var(--line); }

.faq-row summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 2px;
  font-weight: 600;
  font-size: 15.5px;
  cursor: pointer;
  list-style: none;
}

.faq-row summary::-webkit-details-marker { display: none; }
.faq-row summary::after { content: "+"; color: var(--accent); font-size: 20px; line-height: 1; }
.faq-row[open] summary::after { content: "\2013"; }
.faq-row summary:hover { color: var(--accent); }
.faq-row p { padding: 0 2px 20px; color: var(--muted); font-size: 14.5px; max-width: 62ch; }

/* ---- News / article cards ---- */
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.news-card {
  display: flex;
  flex-direction: column;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.25s, box-shadow 0.25s;
}

.news-card:hover { transform: translateY(-3px); box-shadow: 0 18px 40px -22px rgba(16, 17, 20, 0.35); }
.news-card img { width: 100%; height: 168px; object-fit: cover; }
.news-body { padding: 20px; display: flex; flex-direction: column; gap: 9px; flex: 1; }

.news-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.news-meta .tag { color: var(--accent); font-weight: 700; }
.news-body h3 { font-family: var(--display); font-size: 17px; line-height: 1.35; }
.news-body p { font-size: 13.5px; color: var(--muted); flex: 1; }
.news-link { font-size: 13.5px; font-weight: 600; color: var(--accent); }
.news-link:hover { text-decoration: underline; }

/* ---- Spec / comparison table ---- */
.spec-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }

.spec-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--paper);
  min-width: 520px;
}

.spec-table th,
.spec-table td {
  padding: 14px 18px;
  text-align: left;
  font-size: 14.5px;
  border-bottom: 1px solid var(--line);
}

.spec-table thead th {
  font-family: var(--display);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  background: var(--wash);
}

.spec-table tbody tr:last-child td { border-bottom: 0; }
.spec-table td:first-child { font-weight: 600; }
.spec-table .yes { color: var(--accent); font-weight: 700; }
.spec-table .no { color: var(--muted); opacity: 0.6; }

/* ---- Newsletter ---- */
.newsletter {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  max-width: 460px;
}

.newsletter input {
  flex: 1;
  min-width: 200px;
  font: inherit;
  font-size: 14.5px;
  padding: 12px 15px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--paper);
  color: var(--ink);
}

.newsletter input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 18%, transparent);
}

/* ---- Trust badges ---- */
.badge-row { display: flex; flex-wrap: wrap; gap: 10px; }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
  font-size: 13px;
  color: var(--muted);
}

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

/* ---- Tab / filter chips ---- */
.tab-row { display: flex; flex-wrap: wrap; gap: 9px; margin-bottom: 26px; }

.tab-chip {
  padding: 9px 17px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
  cursor: pointer;
  transition: all 0.2s;
}

.tab-chip:hover { border-color: var(--accent); color: var(--accent); }
.tab-chip.is-active { background: var(--ink); border-color: var(--ink); color: var(--paper); }

/* ---- Contact / info cards ---- */
.info-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.info-card {
  padding: 24px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.info-card span {
  display: block;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  margin-bottom: 8px;
}

.info-card strong { display: block; font-family: var(--display); font-size: 17px; margin-bottom: 4px; }
.info-card p { font-size: 13.5px; color: var(--muted); }

/* ---- Responsive for the component library ---- */
@media (max-width: 900px) {
  .split-row { grid-template-columns: minmax(0, 1fr); }
  .split-row.reverse .split-media { order: 0; }
  .step-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .quote-grid, .news-grid, .info-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 560px) {
  .step-grid, .quote-grid, .news-grid, .info-grid { grid-template-columns: minmax(0, 1fr); }
  .split-media { aspect-ratio: 16 / 10; }
}

/* ---- Interactive product demo layer ---- */
.demo-app-fab {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 80;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 18px;
  border: 1px solid color-mix(in srgb, var(--accent) 42%, var(--line));
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.24);
  font: 700 13px/1 var(--body);
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.demo-app-fab:hover { transform: translateY(-2px); box-shadow: 0 22px 54px rgba(0, 0, 0, 0.3); }
.demo-live-dot { width: 9px; height: 9px; border-radius: 50%; background: #bef45a; box-shadow: 0 0 0 5px rgba(190, 244, 90, 0.12); animation: demo-live 2s infinite; }
@keyframes demo-live { 50% { box-shadow: 0 0 0 9px rgba(190, 244, 90, 0); } }

.demo-app-dialog {
  width: min(1180px, calc(100vw - 40px));
  height: min(780px, calc(100vh - 40px));
  max-width: none;
  max-height: none;
  margin: auto;
  padding: 0;
  border: 0;
  border-radius: 22px;
  background: transparent;
  color: #172033;
  overflow: visible;
}

.demo-app-dialog::backdrop { background: rgba(8, 12, 20, 0.76); backdrop-filter: blur(12px); }
.demo-app-window { position: relative; display: flex; flex-direction: column; height: 100%; overflow: hidden; border: 1px solid rgba(255, 255, 255, 0.18); border-radius: 22px; background: #f5f7fb; box-shadow: 0 32px 90px rgba(0, 0, 0, 0.4); }
.demo-app-header { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 76px; padding: 14px 18px 14px 24px; border-bottom: 1px solid #e2e6ed; background: rgba(255, 255, 255, 0.94); }
.demo-app-header h2 { margin: 2px 0; font: 700 18px/1.2 var(--display); color: #101828; }
.demo-app-header p { margin: 0; color: #667085; font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.demo-app-kicker { color: var(--accent); font-size: 9px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.demo-app-header-actions { display: flex; align-items: center; gap: 12px; }
.demo-app-sync { display: inline-flex; align-items: center; gap: 7px; padding: 7px 10px; border-radius: 999px; background: color-mix(in srgb, var(--accent) 10%, white); color: var(--accent); font-size: 11px; font-weight: 700; white-space: nowrap; }
.demo-app-sync i { width: 7px; height: 7px; border-radius: 50%; background: #35b76f; }
.demo-app-head { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 76px; padding: 14px 18px 14px 24px; border-bottom: 1px solid #e2e6ed; background: rgba(255, 255, 255, 0.94); }
.demo-app-head > div:first-child { display: flex; align-items: center; gap: 14px; min-width: 0; }
.demo-app-head h2 { margin: 0 0 2px; font: 700 18px/1.2 var(--display); color: #101828; }
.demo-app-head p { margin: 0; color: #667085; font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.demo-app-mark { display: grid; place-items: center; flex: 0 0 38px; height: 38px; border-radius: 11px; background: var(--accent); color: white; font: 800 13px/1 var(--display); }
.demo-app-head-actions { display: flex; align-items: center; gap: 12px; }
.demo-live-label, .demo-status { display: inline-flex; align-items: center; gap: 7px; padding: 7px 10px; border-radius: 999px; background: color-mix(in srgb, var(--accent) 10%, white); color: var(--accent); font-size: 11px; font-weight: 700; white-space: nowrap; }
.demo-live-label::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #35b76f; }
.demo-app-close { display: grid; place-items: center; width: 38px; height: 38px; border: 1px solid #d8dde6; border-radius: 11px; background: white; color: #667085; font-size: 21px; cursor: pointer; }
.demo-app-close:hover { color: #101828; border-color: #aeb6c5; }
.demo-app-content { flex: 1; min-height: 0; overflow: auto; background: #f5f7fb; }
.demo-app-toast { position: absolute; left: 50%; bottom: 18px; z-index: 5; max-width: calc(100% - 36px); padding: 12px 18px; border-radius: 12px; background: #101828; color: white; font-size: 13px; font-weight: 600; box-shadow: 0 12px 30px rgba(0,0,0,.24); opacity: 0; transform: translate(-50%, 12px); pointer-events: none; transition: .22s ease; }
.demo-app-toast.is-visible { opacity: 1; transform: translate(-50%, 0); }
.demo-app-open { overflow: hidden; }

/* Type scale for controls lives in demo-app.css, which styles the checkout flow too. */
.demo-app-content button, .demo-app-content input, .demo-app-content select, .demo-app-content textarea { font-family: inherit; }
.demo-app-content button:focus-visible, .demo-app-content input:focus-visible, .demo-app-content select:focus-visible, .demo-app-content textarea:focus-visible, .demo-app-close:focus-visible, .demo-app-fab:focus-visible { outline: 3px solid color-mix(in srgb, var(--accent) 35%, transparent); outline-offset: 2px; }
.demo-dashboard { display: grid; grid-template-columns: 200px minmax(0, 1fr); min-height: 100%; }
.demo-sidebar { display: flex; flex-direction: column; gap: 7px; padding: 24px 16px; background: #111827; color: #c7d0df; }
.demo-sidebar > strong { margin: 0 8px 22px; color: white; font: 800 15px/1 var(--display); letter-spacing: .03em; }
.demo-sidebar > button { display: flex; justify-content: space-between; padding: 11px 12px; border: 0; border-radius: 9px; background: transparent; color: inherit; text-align: left; cursor: pointer; }
.demo-sidebar > button:hover, .demo-sidebar > button.is-active { background: rgba(255,255,255,.1); color: white; }
.demo-sidebar > button span { color: #8994a8; }
.demo-sidebar-card { margin-top: auto; padding: 14px; border: 1px solid rgba(255,255,255,.1); border-radius: 12px; background: rgba(255,255,255,.05); }
.demo-sidebar-card small, .demo-sidebar-card b { display: block; }
.demo-sidebar-card b { margin: 7px 0 10px; color: white; font-size: 22px; }
.demo-sidebar-card > span { display: block; height: 5px; border-radius: 5px; background: rgba(255,255,255,.1); }
.demo-sidebar-card i { display: block; height: 100%; border-radius: inherit; background: var(--accent); }
.demo-workspace, .demo-property-app, .demo-analytics-app, .demo-fitness-app, .demo-spa-app { padding: 26px; }
.demo-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 18px; margin-bottom: 22px; }
.demo-toolbar small, .demo-panel-head small { color: #7b8495; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.demo-toolbar h3 { margin: 4px 0 0; font-size: 24px; color: #101828; }
.demo-primary, .demo-secondary, .demo-icon-btn, .demo-text-btn { border-radius: 9px; cursor: pointer; font-weight: 700; transition: .18s ease; }
.demo-primary { padding: 11px 15px; border: 1px solid var(--accent); background: var(--accent); color: white; }
.demo-primary:hover { filter: brightness(.92); transform: translateY(-1px); }
.demo-primary:disabled { opacity: .45; cursor: not-allowed; transform: none; }
.demo-secondary { padding: 10px 14px; border: 1px solid #d8dde6; background: white; color: #344054; }
.demo-secondary:hover, .demo-secondary.is-active { border-color: var(--accent); color: var(--accent); }
.demo-icon-btn { width: 34px; height: 34px; border: 1px solid #d8dde6; background: white; color: #344054; font-size: 18px; }
.demo-text-btn { padding: 0; border: 0; background: none; color: var(--accent); text-align: left; }
.demo-full { width: 100%; }
.demo-kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-bottom: 16px; }
.demo-kpis article { padding: 17px; border: 1px solid #e0e5ec; border-radius: 14px; background: white; box-shadow: 0 4px 16px rgba(16,24,40,.035); }
.demo-kpis small, .demo-kpis strong, .demo-kpis em { display: block; }
.demo-kpis small { color: #667085; font-size: 12px; }
.demo-kpis strong { margin: 9px 0 5px; color: #101828; font-size: 25px; }
.demo-kpis em { color: #269b63; font-size: 11px; font-style: normal; font-weight: 700; }
.demo-two-col, .demo-booking-layout { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.demo-panel { min-width: 0; padding: 20px; border: 1px solid #e0e5ec; border-radius: 15px; background: white; box-shadow: 0 4px 16px rgba(16,24,40,.035); }
.demo-panel-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; margin-bottom: 18px; }
.demo-panel h4 { margin: 4px 0 0; color: #101828; font-size: 17px; }
.demo-range { display: grid; grid-template-columns: 1fr auto; gap: 8px; margin: 16px 0; color: #475467; font-size: 12px; font-weight: 600; }
.demo-range output { color: #101828; }
.demo-range input { grid-column: 1 / -1; width: 100%; accent-color: var(--accent); }
.demo-result { padding: 16px; border-radius: 12px; background: color-mix(in srgb, var(--accent) 8%, #f7f8fb); }
.demo-result span, .demo-result strong, .demo-result small { display: block; }
.demo-result span, .demo-result small { color: #667085; font-size: 11px; }
.demo-result strong { margin: 6px 0; color: #101828; font-size: 26px; }
.demo-kanban { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.demo-kanban > div > span { display: block; margin-bottom: 8px; color: #7b8495; font-size: 10px; font-weight: 800; text-transform: uppercase; }
.demo-kanban article { padding: 10px; margin-bottom: 8px; border: 1px solid #e4e7ec; border-radius: 9px; background: #fafbfc; }
.demo-kanban b, .demo-kanban small { display: block; }
.demo-kanban b { color: #344054; font-size: 11px; }
.demo-kanban small { margin-top: 5px; color: #8992a3; font-size: 9px; }
.demo-kanban progress, .demo-data-table progress { width: 100%; height: 5px; margin-top: 8px; accent-color: var(--accent); }

.demo-property-toolbar { align-items: flex-end; }
.demo-filter-row { display: flex; align-items: flex-end; gap: 9px; }
.demo-filter-row label, .demo-form-grid label, .demo-tour-card label, .demo-panel > label { display: grid; gap: 6px; color: #667085; font-size: 11px; font-weight: 700; }
.demo-app-content select, .demo-app-content input, .demo-app-content textarea { min-height: 40px; padding: 9px 11px; border: 1px solid #d7dce5; border-radius: 9px; background: white; color: #101828; }
.demo-app-content textarea { min-height: 78px; resize: vertical; }
.demo-map-layout { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(260px, .6fr); gap: 16px; }
.demo-property-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.demo-property-card { overflow: hidden; padding: 0 0 15px; border: 1px solid #e0e5ec; border-radius: 14px; background: white; }
.demo-property-card > div { position: relative; height: 118px; margin-bottom: 13px; }
.demo-property-card img { width: 100%; height: 100%; object-fit: cover; }
.demo-property-card > div button { position: absolute; top: 9px; right: 9px; width: 32px; height: 32px; border: 0; border-radius: 50%; background: rgba(255,255,255,.92); color: #98a2b3; cursor: pointer; }
.demo-property-card > div button.is-saved { color: #ef476f; }
.demo-property-card > :not(div) { margin-left: 14px; margin-right: 14px; }
.demo-property-card small { color: var(--accent); font-size: 10px; font-weight: 700; }
.demo-property-card h4 { margin-top: 6px; margin-bottom: 3px; }
.demo-property-card p { margin-bottom: 8px; color: #667085; font-size: 11px; }
.demo-property-card strong { display: block; margin-bottom: 9px; color: #101828; }
.demo-map-panel { display: grid; grid-template-rows: minmax(210px, 1fr) auto; gap: 14px; }
.demo-map-art { position: relative; min-height: 230px; overflow: hidden; border-radius: 15px; background-color: #dfeae2; background-image: linear-gradient(36deg, transparent 46%, rgba(255,255,255,.75) 47%, rgba(255,255,255,.75) 52%, transparent 53%), linear-gradient(110deg, transparent 48%, rgba(255,255,255,.6) 49%, rgba(255,255,255,.6) 52%, transparent 53%); background-size: 100px 100px, 140px 120px; }
.demo-map-art span { position: absolute; left: var(--x); top: var(--y); padding: 5px 7px; border-radius: 7px; background: #101828; color: white; font-size: 9px; transform: translate(-50%, -50%); }
.demo-tour-card { display: grid; gap: 9px; padding: 16px; border: 1px solid #e0e5ec; border-radius: 14px; background: white; }
.demo-tour-card h4 { margin: -4px 0 4px; }

.demo-restaurant-app { padding: 26px; }
.demo-form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.demo-field-label { margin: 17px 0 8px; color: #667085; font-size: 11px; font-weight: 700; }
.demo-time-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 15px; }
.demo-time-grid button { padding: 9px 5px; border: 1px solid #d8dde6; border-radius: 8px; background: white; color: #475467; cursor: pointer; font-size: 11px; }
.demo-time-grid button.is-active { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 9%, white); color: var(--accent); font-weight: 700; }
.demo-booking-summary, .demo-cart-total { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin: 16px 0; padding-top: 14px; border-top: 1px solid #eaecf0; color: #667085; font-size: 12px; }
.demo-booking-summary strong, .demo-cart-total strong { color: #101828; font-size: 16px; }
.demo-order-list article { display: grid; grid-template-columns: minmax(0, 1fr) auto 32px; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid #eaecf0; }
.demo-order-list b, .demo-order-list small { display: block; }
.demo-order-list b { color: #344054; font-size: 12px; }
.demo-order-list small { margin-top: 3px; color: #98a2b3; font-size: 10px; }
.demo-order-list > article > span { color: #344054; font-size: 11px; }
.demo-order-list button { width: 30px; height: 30px; border: 1px solid #d8dde6; border-radius: 8px; background: white; color: var(--accent); cursor: pointer; }

.demo-range-tabs, .demo-stepper { display: flex; align-items: center; gap: 7px; }
.demo-range-tabs button { padding: 8px 10px; border: 1px solid #e0e5ec; border-radius: 8px; background: white; color: #667085; cursor: pointer; font-size: 11px; }
.demo-range-tabs button.is-active { border-color: #101828; background: #101828; color: white; }
.demo-chart { display: flex; align-items: flex-end; gap: 8px; height: 205px; padding-top: 20px; border-bottom: 1px solid #dfe3ea; background: repeating-linear-gradient(to bottom, #f0f2f6 0 1px, transparent 1px 51px); }
.demo-chart i { position: relative; flex: 1; min-height: 8px; border-radius: 5px 5px 0 0; background: linear-gradient(to top, var(--accent), color-mix(in srgb, var(--accent) 55%, white)); transition: height .35s ease; }
.demo-chart i span { display: none; }
.demo-chart-axis { display: flex; justify-content: space-between; margin-top: 8px; color: #98a2b3; font-size: 9px; }
.demo-insights article { padding: 11px 12px; margin-bottom: 9px; border-left: 3px solid #98a2b3; border-radius: 0 8px 8px 0; background: #f8f9fb; }
.demo-insights article.positive { border-color: #35b76f; }
.demo-insights article.warning { border-color: #f2a93b; }
.demo-insights b { color: #344054; font-size: 11px; }
.demo-insights p { margin: 4px 0 0; color: #667085; font-size: 10px; line-height: 1.45; }
.demo-data-table > div { display: grid; grid-template-columns: 1.1fr 1fr auto 120px; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid #eaecf0; color: #667085; font-size: 11px; }
.demo-data-table > div:last-child { border-bottom: 0; }
.demo-data-table b, .demo-data-table strong { color: #344054; }

.demo-class-layout { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(260px, .55fr); gap: 16px; }
.demo-class-list { display: grid; gap: 9px; }
.demo-class-list article { display: grid; grid-template-columns: 38px minmax(0, 1fr) minmax(100px, .45fr) auto; align-items: center; gap: 14px; padding: 13px; border: 1px solid #e4e7ec; border-radius: 11px; }
.demo-class-icon { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: color-mix(in srgb, var(--accent) 10%, white); color: var(--accent); font-weight: 800; font-size: 11px; }
.demo-class-list b, .demo-class-list small, .demo-class-list article > div:nth-child(2) > span { display: block; }
.demo-class-list b { color: #344054; font-size: 12px; }
.demo-class-list small, .demo-class-list article > div:nth-child(2) > span { margin-top: 3px; color: #98a2b3; font-size: 10px; }
.demo-class-list button { padding: 8px 10px; border: 1px solid var(--accent); border-radius: 8px; background: transparent; color: var(--accent); cursor: pointer; font-size: 10px; font-weight: 700; }
.demo-class-list button.is-booked { background: var(--accent); color: white; }
.demo-capacity { color: #667085; font-size: 9px; }
.demo-capacity progress { display: block; width: 100%; height: 5px; margin-top: 6px; accent-color: var(--accent); }
.demo-member-score { padding: 10px 14px; border: 1px solid #e0e5ec; border-radius: 11px; background: white; text-align: right; }
.demo-member-score span, .demo-member-score strong { display: block; }
.demo-member-score span { color: #98a2b3; font-size: 9px; text-transform: uppercase; }
.demo-member-score strong { margin-top: 3px; color: #101828; }
.demo-filter-chips { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 14px; }
.demo-filter-chips button { padding: 7px 11px; border: 1px solid #e0e5ec; border-radius: 999px; background: white; color: #667085; cursor: pointer; font-size: 10px; }
.demo-filter-chips button.is-active { border-color: #101828; background: #101828; color: white; }
.demo-readiness { display: grid; grid-template-columns: 128px 1fr; align-items: center; gap: 24px; }
.demo-readiness > span { display: grid; place-items: center; width: 124px; height: 124px; border-radius: 50%; background: conic-gradient(var(--accent) 0 84%, #e9edf2 84%); }
.demo-readiness > span::before { content: ""; grid-area: 1 / 1; width: 96px; height: 96px; border-radius: 50%; background: white; }
.demo-readiness > span b, .demo-readiness > span small { position: relative; grid-area: 1 / 1; }
.demo-readiness > span b { margin-top: -14px; color: #101828; font-size: 27px; }
.demo-readiness > span small { margin-top: 27px; color: #98a2b3; font-size: 9px; }
.demo-readiness ul { margin: 0; padding: 0; list-style: none; }
.demo-readiness li { padding: 8px 0; border-bottom: 1px solid #eaecf0; color: #667085; font-size: 10px; }
.demo-readiness li b { color: #344054; }
.demo-metric-row { display: flex; justify-content: space-between; padding: 10px 0; border-top: 1px solid #eaecf0; color: #667085; font-size: 11px; }
.demo-metric-row b { color: #344054; }

.demo-stepper span { padding: 7px 10px; border-radius: 999px; color: #98a2b3; font-size: 10px; }
.demo-stepper span.is-active { background: color-mix(in srgb, var(--accent) 10%, white); color: var(--accent); font-weight: 700; }
.demo-booking-layout { grid-template-columns: minmax(0, 1.4fr) minmax(260px, .6fr); }
.demo-treatment-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-bottom: 18px; }
.demo-treatment-grid button { display: grid; gap: 5px; padding: 14px; border: 1px solid #e0e5ec; border-radius: 11px; background: white; color: #344054; text-align: left; cursor: pointer; }
.demo-treatment-grid button:hover, .demo-treatment-grid button.is-selected { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 7%, white); }
.demo-treatment-grid span { color: var(--accent); font-size: 9px; font-weight: 800; text-transform: uppercase; }
.demo-treatment-grid b { font-size: 12px; }
.demo-treatment-grid small { color: #98a2b3; font-size: 10px; }
.demo-booking-cart { align-self: start; }
.demo-booking-cart > div:first-child { margin-bottom: 16px; }
.demo-booking-cart [data-spa-selection] > div { display: flex; justify-content: space-between; gap: 10px; padding: 10px 0; border-bottom: 1px solid #eaecf0; color: #475467; font-size: 11px; }
.demo-booking-cart > p { margin: 12px 0 0; color: #98a2b3; font-size: 9px; text-align: center; }
.demo-empty, .demo-empty-selection { padding: 28px 14px; border: 1px dashed #d8dde6; border-radius: 11px; color: #98a2b3; font-size: 12px; text-align: center; }

@media (max-width: 900px) {
  .demo-app-dialog { width: calc(100vw - 20px); height: calc(100vh - 20px); }
  .demo-dashboard { grid-template-columns: 72px minmax(0, 1fr); }
  .demo-sidebar { padding-inline: 10px; }
  .demo-sidebar > strong { margin-inline: 2px; font-size: 0; }
  .demo-sidebar > strong::after { content: "NW"; font-size: 13px; }
  .demo-sidebar > button { justify-content: center; font-size: 0; }
  .demo-sidebar > button::first-letter { font-size: 13px; }
  .demo-sidebar-card { display: none; }
  .demo-map-layout, .demo-class-layout, .demo-booking-layout { grid-template-columns: minmax(0, 1fr); }
  .demo-map-panel { grid-template-columns: 1fr 1fr; grid-template-rows: auto; }
  .demo-property-toolbar { align-items: flex-start; flex-direction: column; }
}

@media (max-width: 620px) {
  .demo-app-fab { right: 14px; bottom: 14px; }
  .demo-app-dialog { width: 100vw; height: 100dvh; border-radius: 0; }
  .demo-app-window { border-radius: 0; }
  .demo-app-head, .demo-app-header { min-height: 66px; padding: 10px 12px; }
  .demo-app-head p, .demo-app-header p, .demo-live-label, .demo-app-sync { display: none; }
  .demo-workspace, .demo-property-app, .demo-analytics-app, .demo-fitness-app, .demo-spa-app, .demo-restaurant-app { padding: 14px; }
  .demo-dashboard { display: block; }
  .demo-sidebar { display: none; }
  .demo-toolbar { align-items: flex-start; flex-direction: column; }
  .demo-toolbar h3 { font-size: 21px; }
  .demo-kpis { grid-template-columns: 1fr 1fr; }
  .demo-kpis article:last-child { grid-column: 1 / -1; }
  .demo-two-col, .demo-property-grid { grid-template-columns: minmax(0, 1fr); }
  .demo-map-panel { grid-template-columns: minmax(0, 1fr); }
  .demo-filter-row { width: 100%; flex-wrap: wrap; }
  .demo-filter-row label { flex: 1; }
  .demo-kanban { grid-template-columns: 1fr; }
  .demo-kanban > div:nth-child(n+2) { display: none; }
  .demo-data-table > div { grid-template-columns: 1fr auto; }
  .demo-data-table progress, .demo-data-table span { display: none; }
  .demo-treatment-grid { grid-template-columns: 1fr; }
  .demo-stepper { overflow-x: auto; }
  .demo-class-list article { grid-template-columns: 36px 1fr auto; }
  .demo-capacity { display: none; }
  .demo-readiness { grid-template-columns: 108px 1fr; gap: 12px; }
  .demo-readiness > span { width: 104px; height: 104px; }
  .demo-readiness > span::before { width: 80px; height: 80px; }
}

@media (prefers-reduced-motion: reduce) {
  .demo-live-dot { animation: none; }
  .demo-app-toast, .demo-chart i { transition: none; }
}
