/* Mood Magic marketing site. Light and dark follow the system setting. */
@font-face {
  /* Headings. Only Medium is supplied, so the full weight range maps to it. */
  font-family: 'Arboria';
  src: url('mm-assets/fonts/arboria-medium.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  /* Arial resized to Arboria's metrics, so headings don't jump when it loads */
  font-family: 'Arboria Fallback';
  src: local('Arial');
  size-adjust: 104.12%;
  ascent-override: 98.25%;
  descent-override: 17%;
  line-gap-override: 0%;
}
@font-face {
  /* latin subset, variable 400–600 */
  font-family: 'Figtree';
  src: url('mm-assets/fonts/figtree-latin-v9.woff2') format('woff2');
  font-weight: 400 600;
  font-style: normal;
  font-display: swap;
  unicode-range:
    U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329,
    U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  color-scheme: light dark;
  --bg: #f8f7f4;
  --surface: #efede8;
  --ink: #14121a;
  --muted: #6b6873;
  --line: rgba(20, 18, 26, 0.14);
  --btn-bg: #14121a;
  --btn-fg: #f8f7f4;
  --foot-bg: #0b0a0d;
  --foot-ink: #f2f0ec;
  --display: 'Arboria', 'Arboria Fallback', system-ui, sans-serif;
  --sans: 'Figtree', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --radius: 16px;
  --card: #ffffff;
  --track: #ece9e3;
  --indicator: #c9c5bd;
  --deck-time: 0.6s;
  /* Margins follow sand.ai: a fixed side margin for the header, footer and
     closing card, a wide inset for text sections and a narrow one for the
     carousel. All collapse to 20px on phones. */
  --side: 60px;
  --inset-wide: 11.56vw;
  --inset-narrow: 3.75vw;
}
@media (max-width: 1024px) {
  :root {
    --side: 32px;
  }
}
@media (max-width: 640px) {
  :root {
    --side: 20px;
    --inset-wide: 20px;
    --inset-narrow: 20px;
  }
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f0e12;
    --surface: #1a181f;
    --ink: #f2f0ec;
    --muted: #a09ca8;
    --line: rgba(255, 255, 255, 0.16);
    --btn-bg: #f2f0ec;
    --btn-fg: #14121a;
    --foot-bg: #09080b;
    --card: #1a181f;
    --track: #24222a;
    --indicator: #57535f;
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
[hidden] {
  display: none !important;
}
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 17px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
}
img {
  display: block;
  max-width: 100%;
  height: auto;
}
h1,
h2,
h3,
p,
ul,
figure {
  margin: 0;
}
ul {
  padding: 0;
  list-style: none;
}
h1,
h2,
h3 {
  font-family: var(--display);
  font-weight: 500;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
h2 {
  font-size: clamp(36px, 4.6vw, 60px);
  line-height: 1.1;
}
h3 {
  font-size: clamp(24px, 2.4vw, 32px);
  line-height: 1.2;
}
button {
  font: inherit;
  color: inherit;
}
:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 3px;
}
.wrap {
  width: 100%;
  padding: 0 var(--side);
}
/* ── buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 26px;
  border: 0;
  border-radius: 999px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  transition: opacity 0.2s;
}
.btn:hover {
  opacity: 0.86;
}
.btn:disabled {
  opacity: 0.35;
  cursor: default;
}
.btn-light {
  background: #fff;
  color: #14121a;
}

/* ── nav ── */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 20;
  color: #fff;
  transition:
    background 0.25s,
    color 0.25s;
}
.nav.solid {
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  color: var(--ink);
}
.nav .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.brand {
  display: inline-flex;
  color: inherit;
}
.brand svg {
  height: 30px;
  width: auto;
  margin-left: -7px;
}
.nav-links,
.foot-links {
  display: flex;
  gap: 32px;
  font-size: 15px;
}
.nav-links a,
.foot-links a {
  color: inherit;
  text-decoration: none;
}
.menu-btn {
  display: none;
}

/* ── hero ── */
.hero {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 100vh;
  min-height: 100svh;
  padding: 120px var(--side) 96px;
  overflow: hidden;
  background: #14121a;
  color: #fff;
  text-align: center;
}
.hero picture,
.hero picture img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    rgba(10, 9, 13, 0.45),
    rgba(10, 9, 13, 0.35) 45%,
    rgba(10, 9, 13, 0.6)
  );
}
.hero-copy {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: center;
  gap: 22px;
  max-width: 880px;
}
.hero h1 {
  font-size: clamp(40px, 6vw, 76px);
  line-height: 1.06;
}
.hero .btn {
  margin-top: 10px;
}
/* the down caret: there is more below the fold */
.hero-more {
  position: absolute;
  bottom: 24px;
  left: 50%;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-left: -22px;
  color: #fff;
  opacity: 0.85;
}
.hero-more:hover {
  opacity: 1;
}
.hero-more svg {
  width: 22px;
  height: 22px;
}
@media (prefers-reduced-motion: no-preference) {
  .hero-more svg {
    animation: nudge 2.4s ease-in-out infinite;
  }
}
@keyframes nudge {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(5px);
  }
}

/* ── sections ── */
.band {
  padding: clamp(64px, 6.5vw, 96px) 0;
}
#platform .wrap,
#value .wrap {
  padding: 0 var(--inset-wide);
}
#characters .wrap {
  padding: 0 var(--inset-narrow);
}
.head {
  display: grid;
  justify-items: center;
  gap: 12px;
  margin-bottom: 64px;
  text-align: center;
}
.lede {
  color: var(--muted);
  font-size: 18px;
}
.feature-img {
  width: 100%;
  aspect-ratio: 1096 / 490;
  object-fit: cover;
  border-radius: var(--radius);
}

/* ── value ── */
.values {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(24px, 3vw, 44px);
}
.values li {
  display: grid;
  align-content: start;
  gap: 12px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
.values p {
  color: var(--muted);
}

/* ── characters carousel ──
   Measured from sand.ai's feature section at 1440px: a 378px copy column and a
   stacked deck of three cards. Card positions are percentages of the card, with
   the transform origin at the top left, so the deck scales with the page. */
#characters {
  overflow: hidden;
}
.carousel {
  display: grid;
  grid-template-columns: minmax(0, 378fr) minmax(0, 811fr);
  column-gap: 2.85vw;
  align-items: start;
  margin: 0 3.5vw;
}
.c-copy {
  display: grid;
  gap: 64px;
  padding-top: 55px;
}
.c-slides {
  display: grid;
}
.c-slide {
  grid-area: 1 / 1;
  display: grid;
  align-content: start;
  gap: 32px;
  opacity: 0;
  transition: opacity var(--deck-time) ease;
}
.c-slide.on {
  opacity: 1;
}
.c-slide h3 {
  font-size: clamp(28px, 2.8vw, 40px);
}
.c-slide p {
  color: var(--muted);
  font-size: 18px;
}
.c-controls {
  display: grid;
  gap: 25px;
}
.c-arrows {
  display: flex;
  justify-content: flex-end;
  gap: 20px;
}
.c-btn {
  width: 53px;
  height: 53px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--card);
  font-size: 18px;
  cursor: pointer;
  transition: opacity 0.2s;
}
.c-btn:hover {
  opacity: 0.7;
}
.c-progress {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  height: 8px;
  overflow: hidden;
  border-radius: 4px;
  background: var(--track);
}
.c-progress button {
  position: relative;
  z-index: 1;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
}
.c-indicator {
  position: absolute;
  inset: 0 auto 0 0;
  width: calc(100% / 3);
  border-radius: 4px;
  background: var(--indicator);
  transition: transform var(--deck-time) ease;
}
.c-media {
  position: relative;
  width: calc(100% * 873 / 811);
  aspect-ratio: 873 / 524;
}
.c-media .frame {
  position: absolute;
  top: 0;
  left: 0;
  width: calc(100% * 764 / 873);
  height: auto;
  aspect-ratio: 764 / 452;
  object-fit: cover;
  object-position: 50% 22%;
  border-radius: var(--radius);
  background: var(--surface);
  transform-origin: 0 0;
  transition:
    transform var(--deck-time) ease,
    opacity var(--deck-time) ease;
}
.c-media .frame[data-pos='0'] {
  z-index: 3;
  opacity: 1;
  transform: none;
}
.c-media .frame[data-pos='1'] {
  z-index: 2;
  opacity: 0.77;
  transform: translate(22.77%, 7.3%) scale(0.8534);
}
.c-media .frame[data-pos='2'] {
  z-index: 1;
  opacity: 0.45;
  transform: translate(44.63%, 15.93%) scale(0.7068);
}

/* ── scroll reveal (sand.ai fades sections up as they arrive) ── */
.rv-on .rv {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 0.8s ease,
    transform 0.8s ease;
}
.rv-on .rv-body {
  transform: translateY(28px);
  transition-delay: 0.15s;
}
.rv-on .rv.in {
  opacity: 1;
  transform: none;
}

/* ── use cases strip ── */
.strip {
  overflow: hidden;
}
.track {
  display: flex;
  align-items: flex-start;
  gap: clamp(20px, 3vw, 40px);
  width: max-content;
  padding: 0 var(--side);
}
.use {
  flex: none;
  width: clamp(220px, 24vw, 340px);
}
.use:nth-child(3n + 1) {
  margin-top: 0;
}
.use:nth-child(3n + 2) {
  margin-top: 72px;
  width: clamp(200px, 20vw, 290px);
}
.use:nth-child(3n) {
  margin-top: 28px;
}
.use img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 12px;
}
.use figcaption {
  margin-top: 10px;
  color: var(--muted);
  font-size: 14px;
  text-align: right;
}
@media (prefers-reduced-motion: no-preference) {
  .track {
    animation: drift 60s linear infinite;
  }
  .strip:hover .track {
    animation-play-state: paused;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .strip {
    overflow-x: auto;
  }
  * {
    transition: none !important;
  }
}
@keyframes drift {
  to {
    transform: translateX(-50%);
  }
}

/* ── closer ── */
.closer p {
  max-width: 560px;
  color: var(--muted);
  font-size: 18px;
}
.closer .btn {
  margin-top: 12px;
}
.closer {
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 20px;
  min-height: 473px;
  padding: 48px 24px;
  border-radius: var(--radius);
  background: var(--surface);
  text-align: center;
}

/* ── footer ── */
footer {
  padding: 79px 0 36px;
  background: var(--foot-bg);
  color: var(--foot-ink);
}
footer .wrap {
  display: grid;
  gap: 56px;
}
footer small {
  font-size: 13px;
  opacity: 0.6;
}
.foot-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 28px;
}
.foot-legal {
  display: flex;
  gap: 24px;
  font-size: 13px;
}
.foot-legal a {
  color: inherit;
  text-decoration: none;
  opacity: 0.6;
  transition: opacity 0.2s;
}
.foot-legal a:hover {
  opacity: 1;
}

/* ── legal pages (privacy, terms) ── */
.legal {
  padding: calc(64px + 60px) 0 0;
}
.legal-body {
  max-width: calc(760px + 2 * var(--side));
  margin: 0 auto;
}
.legal-body h1 {
  font-size: clamp(36px, 4.6vw, 56px);
  line-height: 1.1;
}
.legal-updated {
  margin: 12px 0 40px;
  color: var(--muted);
  font-size: 15px;
}
.legal-body h2 {
  margin: 48px 0 16px;
  font-size: clamp(24px, 2.4vw, 30px);
  line-height: 1.2;
}
.legal-body h3 {
  margin: 32px 0 12px;
  font-size: 21px;
}
.legal-body h4 {
  margin: 24px 0 8px;
  font-size: 17px;
  font-family: var(--sans);
  font-weight: 600;
}
.legal-body p,
.legal-body ul {
  margin: 0 0 16px;
  color: var(--muted);
}
.legal-body ul {
  padding-left: 22px;
  list-style: disc;
}
.legal-body li + li {
  margin-top: 10px;
}
.legal-body strong {
  color: var(--ink);
  font-weight: 600;
}
.legal-body a {
  color: var(--ink);
}
.legal + footer {
  margin-top: clamp(84px, 11vw, 160px);
}

/* ── book a demo ── */
.demo {
  width: min(560px, calc(100vw - 32px));
  max-height: calc(100dvh - 32px);
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--bg);
  color: var(--ink);
  overflow: auto;
}
.demo.wide {
  width: min(760px, calc(100vw - 32px));
}
.demo::backdrop {
  background: rgba(10, 9, 13, 0.6);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.demo-body {
  display: grid;
  gap: 28px;
  padding: clamp(28px, 5vw, 44px);
}
.demo-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: none;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}
.demo-close:hover {
  background: var(--surface);
}
.demo-progress {
  display: grid;
  gap: 12px;
  margin-right: 44px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.demo-progress b {
  font-weight: 500;
}
.demo-bar {
  height: 3px;
  overflow: hidden;
  border-radius: 3px;
  background: var(--line);
}
.demo-bar i {
  display: block;
  width: 0;
  height: 100%;
  background: var(--ink);
  transition: width 0.3s ease;
}
.demo-step,
.demo-result {
  display: grid;
  gap: 20px;
  justify-items: start;
}
.demo-q {
  font-size: clamp(28px, 4vw, 36px);
  line-height: 1.15;
  outline: none;
}
.demo-hint {
  margin-top: -10px;
  color: var(--muted);
  font-size: 15px;
}
.demo-result p {
  color: var(--muted);
}
.demo-opts,
#demoForm {
  display: grid;
  gap: 10px;
  width: 100%;
}
.opt {
  min-height: 52px;
  padding: 12px 22px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: none;
  text-align: left;
  cursor: pointer;
  transition:
    border-color 0.15s,
    background 0.15s;
}
.opt:hover {
  border-color: var(--ink);
}
.opt.sel {
  border-color: var(--ink);
  background: var(--surface);
}
.demo-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  margin-top: 8px;
}
.demo-back {
  min-height: 44px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--muted);
  cursor: pointer;
}
.demo-back:hover {
  color: var(--ink);
}
.field {
  display: grid;
  gap: 6px;
}
.field label {
  color: var(--muted);
  font-size: 14px;
}
.field input {
  width: 100%;
  min-height: 52px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: none;
  color: inherit;
  font: inherit;
}
.field input:focus {
  border-color: var(--ink);
  outline: none;
}
.field input.err {
  border-color: #d0453a;
}
.field-hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.demo-cal {
  width: 100%;
}
.demo-error {
  color: #d0453a;
  font-size: 15px;
}
.demo-cal-alt {
  font-size: 15px;
}
.demo-cal-alt a {
  color: inherit;
}
.demo-cal:not(:empty) {
  min-height: 660px;
  overflow: hidden;
  border-radius: 12px;
}
.demo-cal iframe {
  width: 100%;
  min-height: 660px;
  border: 0;
}

/* ── small screens ── */
@media (max-width: 1024px) {
  footer {
    padding: 56px 0 32px;
  }
}
@media (max-width: 900px) {
  .values {
    grid-template-columns: repeat(2, 1fr);
  }
  .carousel {
    grid-template-columns: 1fr;
    gap: 28px;
    margin: 0;
  }
  .c-copy {
    gap: 40px;
    padding-top: 0;
  }
  .c-media {
    order: -1;
    width: 100%;
    aspect-ratio: 335 / 198;
  }
  .c-media .frame {
    width: 100%;
    aspect-ratio: 335 / 198;
  }
  .c-media .frame[data-pos] {
    transform: none;
  }
  .c-media .frame[data-pos='1'],
  .c-media .frame[data-pos='2'] {
    opacity: 0;
  }
}
@media (max-width: 640px) {
}
@media (max-width: 560px) {
  body {
    font-size: 16px;
  }
  .values {
    grid-template-columns: 1fr;
  }
  .nav .wrap {
    height: 56px;
  }
  .closer {
    min-height: 296px;
  }
  footer {
    padding: 40px 0 24px;
  }
  .brand svg {
    height: 26px;
  }
}
