/* Morian Labs — brand tokens from BRANDING.md */
:root {
  --yellow:      #F6C945;
  --yellow-deep: #DCA62F;
  --sage:        #A9B49B;
  --sage-deep:   #7C8A72;
  --orange:      #E8935A;
  --ink:         #2F3A34;
  --bg:          #FBF4E0;
  --surface:     #F1E6C7;
  --white:       #FFFFFF;
  --success:     #6E8B5E;
  --link:        #4E6E66;

  --font-display: 'Nunito', sans-serif;
  --font-body:    'Inter', sans-serif;
  --font-mono:    'IBM Plex Mono', monospace;

  --radius-card:  22px;
  --radius-btn:   12px;
  --shadow-soft:  0 8px 32px rgba(47, 58, 52, 0.10);
  --ease-organic: cubic-bezier(0.25, 0.8, 0.35, 1);
  --maxw: 1100px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { font-family: var(--font-display); font-weight: 800; line-height: 1.15; }
h1 { font-size: clamp(2.4rem, 5.2vw, 3.5rem); }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.25rem); }
h3 { font-size: 1.3rem; font-weight: 700; }
p  { max-width: 56ch; }

.eyebrow {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--sage-deep);
  margin-bottom: 0.75rem;
}

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

/* ===== Buttons ===== */
.btn {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1rem;
  padding: 0.85rem 1.6rem;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.35s var(--ease-organic), background 0.25s ease, box-shadow 0.35s var(--ease-organic);
}
.btn--primary {
  background: var(--yellow);
  color: var(--ink);
  box-shadow: var(--shadow-soft);
}
.btn--primary:hover { background: var(--yellow-deep); transform: translateY(-2px); }
.btn--primary:active { transform: translateY(0) scale(0.98); }

/* ===== Nav ===== */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 2rem;
  padding: 0.9rem clamp(1.25rem, 4vw, 3rem);
  transition: background 0.4s ease, box-shadow 0.4s ease;
}
.nav.is-scrolled {
  background: rgba(251, 244, 224, 0.92);
  backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 rgba(47, 58, 52, 0.08);
}
.nav__brand {
  display: flex; align-items: center; gap: 0.6rem;
  text-decoration: none; color: var(--ink);
}
.nav__mark { width: 34px; height: 34px; }
.nav__name { font-family: var(--font-display); font-weight: 800; font-size: 1.15rem; }
.nav__links { display: flex; gap: 1.5rem; margin-left: auto; }
.nav__links a {
  color: var(--ink); text-decoration: none; font-weight: 500; font-size: 0.95rem;
}
.nav__links a:hover { color: var(--sage-deep); }
.nav__cta { padding: 0.6rem 1.25rem; font-size: 0.95rem; }
@media (max-width: 720px) { .nav__links { display: none; } }

/* ===== Hero ===== */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero__video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: 65% center;
}
.hero__scrim {
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(251,244,224,0.94) 0%, rgba(251,244,224,0.78) 34%, rgba(251,244,224,0.10) 62%, rgba(251,244,224,0) 80%),
    linear-gradient(0deg, rgba(251,244,224,1) 0%, rgba(251,244,224,0) 18%);
}
.hero__content {
  position: relative;
  z-index: 2;
  padding: clamp(1.25rem, 4vw, 3rem);
  padding-top: 6rem;
  max-width: 620px;
  margin-left: clamp(0px, 4vw, 4rem);
}
.hero__sub { margin: 1.25rem 0 2rem; font-size: 1.1rem; }
.hero__hint {
  position: absolute;
  bottom: 1.5rem; left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex; flex-direction: column; align-items: center; gap: 0.2rem;
  font-size: 0.8rem; color: var(--sage-deep);
}
.hero__hint-arrow { animation: bob 2.4s var(--ease-organic) infinite; }
@keyframes bob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(6px); } }
@media (prefers-reduced-motion: reduce) { .hero__hint-arrow { animation: none; } }

/* ===== Waitlist form ===== */
.waitlist {
  display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: center;
  max-width: 520px;
}
.waitlist input[type="email"] {
  flex: 1 1 240px;
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 0.85rem 1.2rem;
  border-radius: 999px;
  border: 2px solid rgba(47, 58, 52, 0.18);
  background: var(--white);
  color: var(--ink);
  outline: none;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}
.waitlist input[type="email"]:focus {
  border-color: var(--yellow-deep);
  box-shadow: 0 0 0 4px rgba(246, 201, 69, 0.25);
}
.waitlist__note {
  flex-basis: 100%;
  font-size: 0.85rem;
  color: var(--sage-deep);
}
.waitlist__note.is-success { color: var(--success); font-weight: 600; }
.waitlist__note.is-error { color: #B4573E; font-weight: 600; }
.waitlist--big { margin: 2rem auto 0; justify-content: center; }

/* ===== Scroll-scrub section ===== */
.scrub { position: relative; }
.scrub__sticky {
  position: sticky;
  top: 0;
  height: 100svh;
  overflow: hidden;
  background: var(--ink);
}
.scrub__canvas {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  display: block;
}
.scrub__progress {
  position: absolute;
  left: 50%; bottom: 1.25rem;
  transform: translateX(-50%);
  width: min(220px, 40vw);
  height: 4px;
  border-radius: 999px;
  background: rgba(251, 244, 224, 0.25);
  overflow: hidden;
}
.scrub__progress span {
  display: block; height: 100%; width: 0%;
  border-radius: 999px;
  background: var(--yellow);
}
.scrub__panels {
  position: relative;
  z-index: 2;
  margin-top: -100svh; /* panels scroll over the sticky canvas */
  pointer-events: none;
}
.scrub__panel {
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: clamp(1.25rem, 5vw, 4rem);
}
.scrub__panel .card { pointer-events: auto; }
.card {
  background: rgba(251, 244, 224, 0.94);
  backdrop-filter: blur(6px);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-soft);
  padding: clamp(1.5rem, 3.5vw, 2.5rem);
  max-width: 460px;
}
.card h2 { margin-bottom: 0.75rem; }
.scrub__panel:nth-child(2) { justify-content: flex-end; }

/* ===== Features ===== */
.features { padding: clamp(4rem, 9vw, 8rem) clamp(1.25rem, 4vw, 3rem); }
.features__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.25rem;
}
.feature {
  background: var(--surface);
  border-radius: var(--radius-card);
  padding: 1.75rem;
  transition: transform 0.4s var(--ease-organic);
}
.feature:hover { transform: translateY(-4px); }
.feature__icon { font-size: 1.6rem; margin-bottom: 0.75rem; }
.feature h3 { margin-bottom: 0.5rem; }
.feature p { font-size: 0.95rem; }

/* ===== Care (where it helps) ===== */
.care { padding: clamp(3rem, 7vw, 6rem) clamp(1.25rem, 4vw, 3rem); }
.care__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(1.5rem, 4vw, 4rem);
  align-items: center;
}
.care__media {
  background: var(--surface);
  border-radius: var(--radius-card);
  padding: clamp(0.75rem, 1.6vw, 1.25rem);
  box-shadow: var(--shadow-soft);
}
.care__media img {
  display: block; width: 100%; height: auto;
  border-radius: calc(var(--radius-card) - 8px);
}
.care__copy h2 { margin-bottom: 1rem; }
.care__copy p + p { margin-top: 0.9rem; }
.care__tags {
  list-style: none;
  display: flex; flex-wrap: wrap; gap: 0.6rem;
  margin-top: 1.5rem;
}
.care__tags li {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.9rem;
  background: var(--yellow);
  color: var(--ink);
  border-radius: 999px;
  padding: 0.4rem 1rem;
}
@media (max-width: 860px) { .care__inner { grid-template-columns: 1fr; } }

/* ===== Kit & API ===== */
.kit {
  background: var(--surface);
  padding: clamp(4rem, 9vw, 8rem) clamp(1.25rem, 4vw, 3rem);
}
.kit__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.5rem, 4vw, 4rem);
  align-items: center;
}
.kit__copy h2 { margin-bottom: 1rem; }
.kit__list {
  list-style: none;
  margin-top: 1.25rem;
  display: grid; gap: 0.6rem;
}
.kit__list li {
  padding-left: 1.6rem;
  position: relative;
  font-size: 0.98rem;
}
.kit__list li::before {
  content: "";
  position: absolute; left: 0; top: 0.42em;
  width: 0.75em; height: 0.75em;
  border-radius: 50%;
  background: var(--yellow);
  border: 2px solid var(--yellow-deep);
}
.kit__code {
  background: var(--ink);
  border-radius: var(--radius-card);
  padding: clamp(1.25rem, 3vw, 2rem);
  box-shadow: var(--shadow-soft);
  overflow-x: auto;
}
.kit__code pre {
  font-family: var(--font-mono);
  font-size: 0.95rem;
  line-height: 1.7;
  color: #F3EDDA;
}
.kit__code .c { color: var(--sage); }
.kit__code .k { color: var(--yellow); }
.kit__code .f { color: #EF9C63; }
.kit__code .s { color: #A9C4A0; }
@media (max-width: 860px) { .kit__inner { grid-template-columns: 1fr; } }

/* ===== Signup ===== */
.signup {
  padding: clamp(4rem, 10vw, 8rem) clamp(1.25rem, 4vw, 3rem);
  text-align: center;
}
.signup__inner { max-width: 620px; margin: 0 auto; }
.signup__mark { width: 64px; height: 64px; margin-bottom: 1.25rem; }
.signup h2 { margin-bottom: 0.9rem; }
.signup p { margin: 0 auto; }

/* ===== Footer ===== */
.footer {
  background: var(--ink);
  color: #F3EDDA;
  padding: 2rem clamp(1.25rem, 4vw, 3rem);
}
.footer__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  display: flex; flex-wrap: wrap; gap: 1rem;
  justify-content: space-between;
  font-size: 0.9rem;
}
.footer__honest { opacity: 0.7; }
