/* =============================================================================
   LITTLE MOO HOSTING — public website
   Warm off-white ground, pale lavender feature bands, deep ink closing.
   Editorial serif headings over Inter interface type.
   ============================================================================= */

/* ── BASE ──────────────────────────────────────────────────────────────── */

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 6rem; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--warm);
  color: var(--on-warm);
  font-family: var(--sans);
  font-size: var(--t-body);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img, svg, picture { max-width: 100%; }
img { display: block; height: auto; }

h1, h2, h3, h4 { margin: 0; font-family: var(--serif); font-weight: 400; line-height: 1.1; letter-spacing: -0.012em; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
a { color: inherit; }
table { border-collapse: collapse; width: 100%; }

:focus-visible { outline: 3px solid var(--purple); outline-offset: 3px; border-radius: 4px; }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.skip {
  position: absolute; top: -120px; left: 1rem; z-index: 300;
  padding: .85rem 1.4rem; background: var(--brand-fill); color: #fff;
  font-weight: 600; text-decoration: none; border-radius: 0 0 var(--r-sm) var(--r-sm);
  transition: top var(--fast) var(--ease);
}
.skip:focus { top: 0; }

.kit-defs { position: absolute; width: 0; height: 0; overflow: hidden; }
.kit { width: 100%; height: auto; display: block; }
.tick { flex: none; }

.eyebrow {
  margin-bottom: .9rem; font-family: var(--sans);
  font-size: var(--t-micro); font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
  color: var(--purple);
}
.eyebrow--dark { color: var(--purple); }

.arrow {
  display: inline-flex; align-items: center; gap: .45rem; min-height: var(--tap);
  font-size: var(--t-small); font-weight: 600; color: var(--purple); text-decoration: none;
}
.arrow svg { transition: transform var(--base) var(--ease); }
.arrow:hover svg { transform: translateX(3px); }

.wrap { width: 100%; max-width: var(--shell); margin-inline: auto; padding-inline: var(--gutter); }

/* ── BUTTONS ───────────────────────────────────────────────────────────── */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: var(--tap); padding: .7rem 1.35rem;
  border: 1.5px solid transparent; border-radius: var(--r-sm);
  font-family: var(--sans); font-size: var(--t-small); font-weight: 600; line-height: 1.2;
  white-space: nowrap; text-decoration: none; cursor: pointer;
  transition: background-color var(--base) var(--ease), border-color var(--base) var(--ease),
              color var(--base) var(--ease), transform var(--fast) var(--ease);
}
.btn--lg { min-height: 52px; padding: .9rem 1.6rem; }
.btn--sm { min-height: var(--tap); padding: .5rem 1rem; font-size: var(--t-mini); }

.btn--solid { background: var(--brand-fill); color: #fff; box-shadow: 0 10px 24px -14px rgba(109,76,219,.85); }
.btn--solid:hover { background: var(--purple-hi); transform: translateY(-1px); }
.btn--solid:active { transform: translateY(1px); }

.btn--line { background: var(--warm-lift); border-color: var(--warm-line); color: var(--on-warm); }
.btn--line:hover { border-color: var(--purple); color: var(--purple); }

.btn--ghost { border-color: rgba(255,255,255,.32); color: #fff; }
.btn--ghost:hover { border-color: #fff; background: rgba(255,255,255,.08); }

/* ── HEADER ────────────────────────────────────────────────────────────── */

.top { position: sticky; top: 0; z-index: 100; background: var(--warm); border-bottom: 1px solid transparent; transition: box-shadow var(--base) var(--ease), border-color var(--base) var(--ease); }
.top.is-stuck { border-bottom-color: var(--warm-line); box-shadow: 0 6px 24px -20px rgba(22,19,43,.5); }

/* The bar itself is full width; its content sits on the shared masthead
   line, which is what every hero headline and the footer now align to. */
.top__bar {
  display: flex; align-items: center; gap: var(--s5);
  width: 100%;
  padding: .55rem var(--edge); min-height: 92px;
}

.mark { display: flex; align-items: center; min-height: var(--tap); margin-right: auto; text-decoration: none; flex: none; }
.mark img { width: 154px; height: auto; }

.nav { display: flex; align-items: center; flex: 1 1 auto; gap: var(--s5); }
.nav__list { display: flex; align-items: center; gap: .3rem; margin-inline: auto; }
.nav__item { position: relative; display: flex; align-items: center; }
.nav__link {
  display: inline-flex; align-items: center; min-height: var(--tap); padding: 0 .35rem 0 .6rem;
  font-size: var(--t-small); font-weight: 500; color: var(--on-warm-2); text-decoration: none;
  transition: color var(--base) var(--ease);
}
.nav__link:hover, .nav__item:hover .nav__link { color: var(--purple); }
.nav__link[aria-current] { color: var(--on-warm); font-weight: 600; }

.nav__toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 26px; min-height: var(--tap); padding: 0 .6rem 0 0;
  background: none; border: 0; color: var(--on-warm-3); cursor: pointer;
}
.nav__toggle svg { transition: transform var(--base) var(--ease); }
.nav__item:hover .nav__toggle svg, .nav__toggle[aria-expanded="true"] svg { transform: rotate(180deg); }

.nav__sub {
  position: absolute; top: 100%; left: 0; z-index: 40;
  min-width: 15rem; padding: .45rem;
  background: var(--warm-lift); border: 1px solid var(--warm-line); border-radius: var(--r-md);
  box-shadow: var(--lift-2);
  opacity: 0; visibility: hidden; transform: translateY(6px);
  transition: opacity var(--base) var(--ease), transform var(--base) var(--ease), visibility var(--base);
}
.nav__item:hover .nav__sub,
.nav__item:focus-within .nav__sub,
.nav__sub.is-open { opacity: 1; visibility: visible; transform: none; }
.nav__sub a {
  display: flex; align-items: center; min-height: var(--tap); padding: .5rem .7rem;
  border-radius: var(--r-xs); font-size: var(--t-small); color: var(--on-warm-2); text-decoration: none;
}
.nav__sub a:hover { background: var(--lilac); color: var(--purple); }

.nav__util { display: flex; align-items: center; gap: .85rem; flex: none; }
.uk { display: inline-flex; align-items: center; gap: .3rem; font-size: var(--t-small); font-weight: 500; color: var(--on-warm-2); }
.nav__signin { display: inline-flex; align-items: center; min-height: var(--tap); font-size: var(--t-small); font-weight: 500; color: var(--on-warm-2); text-decoration: none; }
.nav__signin:hover { color: var(--purple); }

.top__menu {
  display: none; align-items: center; gap: .5rem; min-height: var(--tap); padding: .5rem .9rem;
  background: var(--warm-lift); border: 1.5px solid var(--warm-line); border-radius: var(--r-sm);
  color: var(--on-warm); font-family: inherit; font-size: var(--t-small); font-weight: 600; cursor: pointer;
}
.top__bars { display: grid; gap: 4px; }
.top__bars i { display: block; width: 16px; height: 2px; border-radius: 2px; background: currentColor; transition: transform var(--base) var(--ease), opacity var(--fast) var(--ease); }
[aria-expanded="true"] .top__bars i:nth-child(1) { transform: translateY(6px) rotate(45deg); }
[aria-expanded="true"] .top__bars i:nth-child(2) { opacity: 0; }
[aria-expanded="true"] .top__bars i:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ── MOTION ────────────────────────────────────────────────────────────── */

[data-reveal] { opacity: 0; transform: translateY(14px); }
.js [data-reveal].is-in { opacity: 1; transform: none; transition: opacity var(--slow) var(--ease), transform var(--slow) var(--ease); }
html:not(.js) [data-reveal] { opacity: 1; transform: none; }

/* ── RESPONSIVE ────────────────────────────────────────────────────────── */

@media (max-width: 1060px) {
  .top__menu { display: inline-flex; }
  .top__bar { gap: var(--s4); }
  .nav {
    position: absolute; inset: 100% 0 auto 0; display: none; flex-direction: column;
    align-items: stretch; gap: 0; max-height: calc(100svh - 74px); overflow-y: auto;
    padding: .5rem var(--gutter) 1.5rem;
    background: var(--warm-lift); border-bottom: 1px solid var(--warm-line); box-shadow: var(--lift-2);
  }
  .nav.is-open { display: flex; }
  .nav__list { flex-direction: column; align-items: stretch; gap: 0; margin: 0; }
  .nav__item { flex-wrap: wrap; border-bottom: 1px solid var(--warm-line); }
  .nav__link { flex: 1 1 auto; min-height: 52px; font-size: var(--t-body); padding-left: 0; }
  .nav__toggle { width: 44px; padding: 0; }
  .nav__sub {
    position: static; width: 100%; opacity: 1; visibility: visible; transform: none;
    display: none; box-shadow: none; border: 0; background: none; padding: 0 0 .6rem .8rem;
  }
  .nav__sub.is-open { display: block; }
  .nav__item:hover .nav__sub { display: none; }
  .nav__item:hover .nav__sub.is-open { display: block; }
  .nav__util { padding-top: 1rem; justify-content: flex-start; gap: 1rem; }
  .nav__util .btn { margin-left: auto; }
}

@media (max-width: 1024px) {
}

@media (max-width: 900px) {
  /* Copy leads, then Missie, so nothing sits over the headline. */
}

@media (max-width: 768px) {
  html { scroll-padding-top: 5rem; }
}

@media (max-width: 560px) {
  .mark img { width: 124px; }
  .top__bar { min-height: 74px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  [data-reveal] { opacity: 1 !important; transform: none !important; }
}
