/* Visual refresh: warmer palette, lively accents, reveal-on-scroll.
   Loaded last in <head>, so these rules win over the inline GemPages styles. */

:root {
  --sa-bg: #fff8f2;
  --sa-bg-2: #ffeede;
  --sa-ink: #1f1d24;
  --sa-ink-2: #4a4650;
  --sa-accent: #e8590c;
  --sa-accent-2: #ff8a4c;
  --sa-accent-soft: #fff0e6;
  --sa-violet: #3c31b1;
  --sa-radius: 18px;
}

body {
  background: linear-gradient(180deg, var(--sa-bg) 0%, var(--sa-bg-2) 100%) no-repeat;
  background-color: var(--sa-bg);
  color: var(--sa-ink);
  min-height: 100vh;
  overflow-x: hidden;
}
body.gradient {
  background-image: linear-gradient(180deg, var(--sa-bg) 0%, var(--sa-bg-2) 100%) !important;
}

/* Reading column: narrower than the 1500px GemPages default */
main#MainContent {
  max-width: 100%;
  overflow-x: hidden;
}

/* Eyebrow label: readable pill instead of a 6px grey line */
.eyebrow {
  display: inline-block;
  font-size: 12px !important;
  line-height: 1 !important;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--sa-accent) !important;
  background: #fff;
  border: 1px solid #ffd3b8;
  padding: 7px 12px;
  border-radius: 999px;
  margin-bottom: 14px;
}

/* Headline */
h1[data-gp-text] {
  font-size: clamp(28px, 4.2vw, 42px) !important;
  line-height: 1.15 !important;
  letter-spacing: -0.01em;
  color: var(--sa-ink) !important;
  margin-bottom: 8px;
}

/* Body copy: override hard-coded 23px/25px inline sizes so text scales on phones */
[style*="font-size:23px"],
[style*="font-size:25px"] {
  font-size: clamp(17px, 1.6vw, 19px) !important;
  line-height: 1.65 !important;
}
[style*="font-size:23px"] strong,
[style*="font-size:25px"] strong {
  color: var(--sa-ink);
}

/* Screenshots: rounded, soft shadow, gentle lift on hover */
picture.shot {
  display: block;
  margin: 18px 0;
}
picture.shot img {
  display: block;
  width: 100% !important;
  height: auto !important;
  border-radius: var(--sa-radius);
  box-shadow: 0 24px 48px -24px rgba(120, 50, 10, 0.35), 0 2px 6px rgba(0, 0, 0, 0.06);
  transition: transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1), box-shadow 0.6s ease;
}
picture.shot:hover img {
  transform: translateY(-3px);
  box-shadow: 0 32px 56px -24px rgba(120, 50, 10, 0.4), 0 2px 6px rgba(0, 0, 0, 0.06);
}

/* CTA button: gradient, glow, hover lift */
a[href*="mooro"] {
  display: inline-block;
  background: linear-gradient(135deg, var(--sa-accent-2), var(--sa-accent)) !important;
  color: #fff !important;
  border-radius: 999px !important;
  padding: 16px 28px !important;
  font-weight: 700 !important;
  text-decoration: none !important;
  box-shadow: 0 12px 24px -10px rgba(232, 89, 12, 0.6);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  animation: sa-pulse 2.4s infinite;
}
a[href*="mooro"] span,
a[href*="mooro"] strong,
a[href*="mooro"] p {
  color: #fff !important;
}
a[href*="mooro"]:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 30px -10px rgba(232, 89, 12, 0.7);
}

@keyframes sa-pulse {
  0% { box-shadow: 0 0 0 0 rgba(232, 89, 12, 0.45), 0 12px 24px -10px rgba(232, 89, 12, 0.6); }
  70% { box-shadow: 0 0 0 14px rgba(232, 89, 12, 0), 0 12px 24px -10px rgba(232, 89, 12, 0.6); }
  100% { box-shadow: 0 0 0 0 rgba(232, 89, 12, 0), 0 12px 24px -10px rgba(232, 89, 12, 0.6); }
}

/* Reveal on scroll (class .js is set by the inline script at the end of index.html) */
.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.js .reveal.in {
  opacity: 1;
  transform: none;
}

/* Reading progress bar */
.sa-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0;
  background: linear-gradient(90deg, var(--sa-accent), var(--sa-accent-2));
  z-index: 9999;
  transition: width 0.1s linear;
}

@media (prefers-reduced-motion: reduce) {
  .js .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  a[href*="mooro"],
  picture.shot img {
    animation: none !important;
    transition: none !important;
  }
}

@media (max-width: 767px) {
  main#MainContent [style*="--pl:5px"] {
    padding-left: 16px !important;
    padding-right: 16px !important;
  }
}

/* Article panel: the inline white background clashed with the warm page, let it sit on the page colour */
main#MainContent [style*="--bgc:#FFFFFF"] {
  background-color: transparent !important;
}

/* Footer: dark warm block, so it reads as a deliberate end of the page */
.sa-footer {
  background: #1f1d24;
  color: #f6efe8;
  margin-top: 56px;
  padding: 40px 20px 28px;
  border-radius: 28px 28px 0 0;
  font-size: 15px;
  line-height: 1.6;
}
.sa-footer__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  max-width: 820px;
  margin: 0 auto 40px;
  padding: 22px 24px;
  border-radius: 20px;
  background: linear-gradient(135deg, var(--sa-accent-2), var(--sa-accent));
}
.sa-footer__cta-title {
  margin: 0 0 4px;
  font-size: 20px;
  font-weight: 700;
  color: #fff;
}
.sa-footer__cta-text {
  margin: 0;
  color: #fff;
  opacity: 0.92;
}
.sa-footer a.sa-footer__btn {
  background: #fff !important;
  color: var(--sa-accent) !important;
  padding: 12px 20px !important;
  border-radius: 999px !important;
  font-weight: 700 !important;
  box-shadow: none !important;
  animation: none !important;
  border: 0;
  white-space: nowrap;
}
.sa-footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 28px;
  max-width: 820px;
  margin: 0 auto;
}
.sa-footer__wordmark {
  margin: 0 0 12px;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: #fff;
}
.sa-footer__tagline {
  margin: 0;
  color: #cfc7bf;
  max-width: 280px;
}
.sa-footer h3 {
  margin: 0 0 12px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #ffb088;
}
.sa-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.sa-footer li {
  margin: 6px 0;
  color: #e9e2da;
}
.sa-footer a {
  color: #f6efe8;
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  transition: color 0.2s ease, border-color 0.2s ease;
}
.sa-footer a:hover {
  color: #ffb088;
  border-color: #ffb088;
}
.sa-footer__disclaimer {
  max-width: 820px;
  margin: 32px auto 0;
  font-size: 12px;
  color: #b9b2aa;
}
.sa-footer__disclaimer summary {
  cursor: pointer;
  color: #ffb088;
  font-weight: 600;
}
.sa-footer__disclaimer p {
  margin: 10px 0 0;
}
.sa-footer__bottom {
  max-width: 820px;
  margin: 24px auto 0;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 13px;
  color: #b9b2aa;
}
@media (max-width: 767px) {
  .sa-footer__grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .sa-footer__cta {
    padding: 20px;
  }
}

/* Header: sticky, warm, light blur so it reads as part of the page */
.sa-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 248, 242, 0.86);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(31, 29, 36, 0.08);
}
.sa-header__inner {
  max-width: 820px;
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 20px;
}
.sa-header__brand {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--sa-ink);
  text-decoration: none;
}
.sa-header__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  font-size: 14px;
}
.sa-header__nav a {
  color: var(--sa-ink-2);
  text-decoration: none;
  transition: color 0.2s ease;
}
.sa-header__nav a:hover {
  color: var(--sa-accent);
}
.sa-header a.sa-header__cta {
  background: linear-gradient(135deg, var(--sa-accent-2), var(--sa-accent)) !important;
  color: #fff !important;
  padding: 10px 18px !important;
  border-radius: 999px !important;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none !important;
  box-shadow: 0 8px 18px -10px rgba(232, 89, 12, 0.7) !important;
  animation: none !important;
  border: 0;
  white-space: nowrap;
}
@media (max-width: 520px) {
  .sa-header__inner {
    justify-content: flex-start;
  }
  .sa-header__cta {
    width: 100%;
    text-align: center;
  }
}

/* Container: same reading width on every page */
.gps {
  --g-ct-w: 820px !important;
}

/* Content: the article wrapper was white by default; let the warm page show through */
main#MainContent article {
  background: transparent !important;
}
/* The header now carries the brand, so the in-content logo image (white-backed PNG) is hidden */
main#MainContent img[src="images/logo.png"] {
  display: none !important;
}
