/* Glow Aesthetics Studio: the demo med spa at /demo/glow/.
   Loaded after /css/styles.css, which supplies the agent card, view switch and base reset.
   Glow has its own look on purpose: it shows a client's site, not QubeStream's.
   Layout: thin demo bar, spa header, hero with copy beside Ava and her action log, then
   treatments, visit facts and a closing band for spa owners. */

:root {
  --g-bg: #F6F1EC;
  --g-surface: #FFFFFF;
  --g-ink: #241B1F;
  --g-muted: #6A5C61;
  --g-line: #E4D9D2;
  --g-plum: #6B2D4C;
  --g-plum-deep: #4A1C33;
  --g-blush: #F1DCD3;
  --g-gold: #B88A4A;
  --g-serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
}

body.glow {
  background: var(--g-bg);
  color: var(--g-ink);
  color-scheme: light;
}

.glow-wrap {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}

@media (min-width: 768px) {
  .glow-wrap {
    padding-left: max(32px, env(safe-area-inset-left, 0px));
    padding-right: max(32px, env(safe-area-inset-right, 0px));
  }
}

/* ---------- Demo bar (QubeStream's voice, not the spa's) ---------- */

.demo-bar {
  background: #13110F;
  color: #F3EDE6;
  font-size: 0.875rem;
}

.demo-bar-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 6px 20px;
  padding-block: 10px;
}

.demo-bar p {
  margin: 0;
  max-width: 80ch;
}

.demo-bar-link {
  color: #C9F06B;
  font-weight: 600;
  white-space: nowrap;
}

/* ---------- Header ---------- */

.glow-header {
  border-bottom: 1px solid var(--g-line);
  background: var(--g-bg);
}

.glow-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 72px;
}

.glow-logo {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  color: var(--g-ink);
  text-decoration: none;
}

.glow-logo-mark {
  align-self: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #FFF6EE 0%, var(--g-blush) 40%, var(--g-gold) 100%);
  box-shadow: 0 0 0 4px rgba(184, 138, 74, 0.15);
}

.glow-logo-word {
  font-family: var(--g-serif);
  font-size: 1.6rem;
  font-style: italic;
  letter-spacing: 0.01em;
}

.glow-logo-sub {
  color: var(--g-muted);
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.glow-nav {
  display: flex;
  align-items: center;
  gap: 20px;
}

.glow-nav a {
  display: none;
  color: var(--g-ink);
  font-size: 0.9375rem;
  text-decoration: none;
}

.glow-nav a:hover {
  color: var(--g-plum);
}

@media (min-width: 720px) {
  .glow-nav a {
    display: inline;
  }
}

@media (max-width: 420px) {
  .glow-logo-sub {
    display: none;
  }
}

.glow-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 20px;
  border: 1px solid var(--g-plum);
  border-radius: 999px;
  font: inherit;
  font-size: 0.9375rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}

.glow-btn-solid {
  background: var(--g-plum);
  color: #FFFFFF;
}

.glow-btn-solid:hover {
  background: var(--g-plum-deep);
}

.glow-btn-light {
  border-color: #FFFFFF;
  background: #FFFFFF;
  color: var(--g-plum-deep);
}

.glow-btn-light:hover {
  background: var(--g-blush);
}

.glow :focus-visible {
  outline: 3px solid var(--g-gold);
  outline-offset: 2px;
}

/* ---------- Hero ---------- */

.glow-hero {
  padding-block: 28px 64px;
  background:
    radial-gradient(60% 50% at 85% 10%, rgba(241, 220, 211, 0.9) 0%, rgba(246, 241, 236, 0) 70%),
    var(--g-bg);
}

.glow-switch {
  margin: 0 0 28px;
  border-color: var(--g-line);
}

.glow .view-btn {
  color: var(--g-muted);
}

.glow .view-btn[aria-pressed="true"] {
  background: var(--g-ink);
  color: #FFFFFF;
}

.glow .view-btn[data-view="agent"][aria-pressed="true"] {
  background: var(--g-plum);
  color: #FFFFFF;
}

.glow-hero-grid {
  display: grid;
  gap: 40px;
  align-items: start;
}

.glow-hero-grid[hidden] {
  display: none;
}

.glow-hero-copy {
  min-width: 0;
  padding-top: 12px;
}

.glow-kicker {
  margin: 0 0 12px;
  color: var(--g-gold);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.glow h1,
.glow h2,
.glow h3 {
  font-family: var(--g-serif);
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--g-ink);
  text-wrap: balance;
}

.glow h1 {
  margin: 0 0 20px;
  font-size: clamp(3rem, 9vw, 5.5rem);
  font-style: italic;
  line-height: 0.95;
}

.glow-lede {
  max-width: 34ch;
  margin: 0 0 16px;
  font-size: 1.25rem;
  line-height: 1.5;
}

.glow-lede-small {
  max-width: 44ch;
  color: var(--g-muted);
  font-size: 1rem;
}

.glow-try {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

.glow-try button {
  min-height: 44px;
  padding: 8px 16px;
  border: 1px solid var(--g-line);
  border-radius: 999px;
  background: var(--g-surface);
  color: var(--g-ink);
  font: inherit;
  font-size: 0.9375rem;
  cursor: pointer;
}

.glow-try button:hover {
  border-color: var(--g-plum);
  color: var(--g-plum);
}

.glow-desk {
  display: grid;
  gap: 16px;
  min-width: 0;
}

/* Ava's card reuses the site's agent stage with the spa's colors. */
.glow-agent {
  --stage: #2A1620;
  --stage-2: #4A2335;
  --glow-a: #FBE3D8;
  --glow-b: #E8B9A6;
  --glow-c: #8E4A63;
  min-height: 500px;
  box-shadow: 0 30px 80px rgba(74, 28, 51, 0.18), inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.glow-agent .agent-title {
  color: var(--stage-text);
  font-family: var(--font);
  font-weight: 650;
}

.glow-agent .orb-core {
  color: var(--g-plum-deep);
}

@media (min-width: 960px) {
  .glow-hero {
    padding-block: 36px 88px;
  }
  .glow-hero-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 56px;
  }
}

/* ---------- Behind the desk (Ava's actions) ---------- */

.ava-log {
  padding: 18px 20px;
  border: 1px solid var(--g-line);
  border-radius: 20px;
  background: var(--g-surface);
}

.ava-log-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.ava-log h2 {
  margin: 0;
  font-size: 1.25rem;
}

.ava-log-count {
  color: var(--g-muted);
  font-size: 0.8125rem;
  font-variant-numeric: tabular-nums;
}

.ava-actions {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.ava-empty {
  color: var(--g-muted);
  font-size: 0.9375rem;
}

.ava-action {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 4px 12px;
  align-items: start;
  font-size: 0.9375rem;
}

.ava-action-icon {
  grid-row: span 2;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--g-blush);
  color: var(--g-plum);
}

.ava-action-icon .icon {
  width: 16px;
  height: 16px;
}

.ava-action-title {
  font-weight: 600;
}

.ava-action-detail {
  color: var(--g-muted);
  font-size: 0.875rem;
}

.ava-slots {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 4px 0 0;
  padding: 0;
  list-style: none;
}

.ava-slots li {
  padding: 3px 10px;
  border: 1px solid var(--g-line);
  border-radius: 999px;
  color: var(--g-ink);
  font-size: 0.8125rem;
  font-variant-numeric: tabular-nums;
}

.ava-action.is-booked .ava-action-icon {
  background: var(--g-plum);
  color: #FFFFFF;
}

.ava-booked {
  margin-top: 6px;
  padding: 12px 14px;
  border-radius: 14px;
  background: var(--g-bg);
  border: 1px dashed var(--g-gold);
}

.ava-booked p {
  margin: 0;
}

.ava-booked-when {
  font-family: var(--g-serif);
  font-size: 1.125rem;
}

/* ---------- Agent view ---------- */

.glow-agent-view .eyebrow,
.glow-agent-view .agent-view-copy a {
  color: var(--g-plum);
}

.glow-agent-view .agent-view-copy p {
  color: var(--g-muted);
}

.glow-agent-view .agent-view-file {
  border-color: var(--g-line);
  background: #241B1F;
  color: #F3E7E1;
}

/* ---------- Treatments and visit ---------- */

.glow-section {
  padding-block: 72px;
  border-top: 1px solid var(--g-line);
}

.glow-section-head {
  max-width: 640px;
  margin-bottom: 36px;
}

.glow-section h2 {
  margin: 0 0 12px;
  font-size: clamp(2rem, 4.5vw, 2.75rem);
  line-height: 1.1;
}

.glow-section-head p {
  margin: 0;
  color: var(--g-muted);
  font-size: 1.0625rem;
}

.glow-menu {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.glow-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 24px;
  border: 1px solid var(--g-line);
  border-radius: 20px;
  background: var(--g-surface);
}

.glow-card h3 {
  margin: 0;
  font-size: 1.5rem;
}

.glow-card p {
  flex: 1 1 auto;
  margin: 0;
  color: var(--g-muted);
}

.glow-ask {
  align-self: flex-start;
  min-height: 44px;
  padding: 8px 0;
  border: 0;
  background: none;
  color: var(--g-plum);
  font: inherit;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 4px;
  cursor: pointer;
}

.glow-visit {
  background: var(--g-surface);
}

.glow-visit-grid {
  display: grid;
  gap: 24px;
}

.glow-facts {
  display: grid;
  gap: 0;
  margin: 0;
}

.glow-facts div {
  display: grid;
  gap: 4px;
  padding: 16px 0;
  border-bottom: 1px solid var(--g-line);
}

.glow-facts dt {
  color: var(--g-gold);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.glow-facts dd {
  margin: 0;
  font-size: 1.0625rem;
}

@media (min-width: 860px) {
  .glow-visit-grid {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: 56px;
  }
  .glow-facts div {
    grid-template-columns: 140px minmax(0, 1fr);
    gap: 24px;
  }
}

/* ---------- For owners (QubeStream's pitch) ---------- */

.for-owners {
  padding-block: 72px;
  background: var(--g-plum-deep);
  color: #FBEFEA;
}

.for-owners-grid {
  display: grid;
  gap: 32px;
  align-items: end;
}

.for-owners-kicker {
  margin: 0 0 12px;
  color: #E8B9A6;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.glow .for-owners h2 {
  max-width: 18ch;
  margin: 0 0 16px;
  color: #FFFFFF;
  font-size: clamp(2rem, 4.5vw, 3rem);
  line-height: 1.08;
}

.for-owners p {
  max-width: 60ch;
  margin: 0;
  color: #EBD8D1;
  font-size: 1.0625rem;
}

.for-owners-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 24px;
}

.for-owners-link {
  color: #FFFFFF;
  font-weight: 600;
}

@media (min-width: 860px) {
  .for-owners-grid {
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 0.6fr);
  }
  .for-owners-actions {
    flex-direction: column;
    align-items: flex-start;
  }
}

.glow-footer {
  padding-block: 28px;
  color: var(--g-muted);
  font-size: 0.875rem;
}

.glow-footer p {
  margin: 0;
  max-width: 90ch;
}

.glow-footer a {
  color: var(--g-plum);
}

@media (prefers-reduced-motion: reduce) {
  .ava-action {
    animation: none;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .ava-action {
    animation: ava-in 0.35s ease-out;
  }
  @keyframes ava-in {
    from { opacity: 0.2; transform: translateY(6px); }
    to { opacity: 1; transform: none; }
  }
}

/* ---------- The spa keeps its own look ----------
   QubeStream's design system is for QubeStream's own pages only, never a client's (Glen 2026-11-02).
   /css/styles.css now carries that system, so the shared pieces Glow borrows (agent card, view switch,
   dock, booking dialog, body type) are put back to the spa's soft, rounded, glowing style here. */

body.glow {
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --radius: 16px;
  --radius-sm: 10px;
  --focus: var(--g-gold);
}

.glow .view-switch {
  border: 1px solid var(--g-line);
  border-radius: 999px;
}

.glow .view-btn {
  border-radius: 999px;
  font-weight: 600;
}

.glow-agent {
  --stage-text: #F3EDE6;
  --stage-muted: #B9AFA4;
  --stage-line: rgba(255, 255, 255, 0.09);
  border: 0;
  border-radius: 28px;
  background: radial-gradient(120% 70% at 50% 0%, var(--stage-2) 0%, var(--stage) 62%);
}

.glow-agent .agent-title {
  font-size: 0.9375rem;
  letter-spacing: 0;
  text-transform: none;
}

.glow-agent .agent-dot {
  background: #4CC38A;
  box-shadow: 0 0 0 4px rgba(76, 195, 138, 0.18);
}

.glow-agent .agent-orb:focus-visible {
  outline: 3px solid var(--glow-a);
}

.glow-agent .orb-core {
  background: radial-gradient(circle at 34% 28%, #FFF7F1 0%, var(--glow-a) 22%, var(--glow-b) 58%, var(--glow-c) 100%);
  box-shadow: 0 0 calc(40px + 60px * var(--level)) rgba(242, 180, 140, calc(0.28 + 0.5 * var(--level)));
}

.glow-agent .orb-ring {
  border: 1px solid rgba(242, 180, 140, 0.45);
}

.glow-agent .orb-ring-2 {
  border-color: rgba(242, 180, 140, 0.2);
}

.glow-agent .agent-line {
  border-radius: 16px;
}

.glow-agent .agent-line-agent {
  background: rgba(255, 255, 255, 0.07);
  border-bottom-left-radius: 6px;
}

.glow-agent .agent-line-user {
  background: var(--glow-a);
  color: #13110F;
  border-bottom-right-radius: 6px;
}

.glow-agent .agent-form input {
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
}

.glow-agent .agent-form input:focus-visible {
  outline: 2px solid var(--glow-a);
}

.glow-agent .agent-form .btn-primary {
  border-color: var(--glow-b);
  border-radius: 999px;
  background: var(--glow-b);
  color: #13110F;
  box-shadow: none;
}

.glow-agent .agent-form .btn-primary:hover {
  border-color: #FBE7DA;
  background: #FBE7DA;
}

.glow .agent-dock {
  border: 0;
  border-radius: 999px;
  background: #F2B48C;
  color: #13110F;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.45);
}

.glow .booking {
  border: 0;
  border-radius: 18px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
}

.glow .booking-close {
  border-radius: 50%;
}
