/* Kurtosis Labs mobile page (Figma page "Mobile view", frames 375 px wide).
   Loaded after styles.css. Every "px" here is a Figma pixel on the 375-px-wide design: build.py turns
   each into calc(N * var(--u)), and --u is 1/375 of the screen width on this page, so the whole page
   scales as one piece. Only what differs from the desktop is set here. */

.m .canvas { --u: calc(100cqw / 375); height: calc(8719 * var(--u)); }
/* tablets and open folding phones: the phone layout grows with the screen up to 520 px wide, then sits centred */
.m { background: #eef2f7; }
.m .page { max-width: 520px; margin: 0 auto; background: #ffffff; box-shadow: 0 0 40px rgba(15, 45, 75, 0.08); }

/* ---------- Navigation ---------- */
.m-nav, .m-menu { --u: calc(min(100vw, 520px) / 375); }
.m-nav {
  position: fixed; z-index: 50; top: 0; left: 0; right: 0; margin: 0 auto; max-width: 520px; height: calc(54 * var(--u));
  display: flex; align-items: center; justify-content: space-between; padding: 0 calc(15 * var(--u));
  background: rgba(0, 0, 0, 0); transition: background-color 0.3s ease, box-shadow 0.3s ease;
}
/* once the page has scrolled the bar turns black, as the desktop nav does */
.m-nav.is-solid { background: #000000; box-shadow: 0 calc(6 * var(--u)) calc(18 * var(--u)) rgba(8, 20, 40, 0.18); }
.m-brand { display: flex; align-items: center; gap: calc(12 * var(--u)); }
.m-brand img { width: calc(28 * var(--u)); height: calc(28 * var(--u)); display: block; }
.m-brand span { font-family: var(--font-body); font-weight: 500; font-size: calc(20 * var(--u)); line-height: calc(28 * var(--u)); color: var(--white); white-space: nowrap; }
.m-brand.dark span { color: var(--black); }
.m-burger { width: calc(28 * var(--u)); height: calc(28 * var(--u)); margin-right: calc(-7 * var(--u)); background: none; padding: 0; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: calc(2.5 * var(--u)); }
.m-burger i { display: block; width: calc(13 * var(--u)); height: calc(1.5 * var(--u)); background: var(--white); border-radius: calc(1 * var(--u)); }
.m-burger i:nth-child(2) { width: calc(13 * var(--u)); }

/* Full-screen menu (Figma 39:3768) */
.m-menu { position: fixed; inset: 0; margin: 0 auto; max-width: 520px; z-index: 60; background: #f1f1f1; display: flex; flex-direction: column;
  opacity: 1; transition: opacity 0.25s ease; }
.m-menu[hidden] { display: none; }
.m-menu-top { position: relative; height: calc(51 * var(--u)); flex: none; display: flex; align-items: center; justify-content: space-between; padding: 0 calc(15 * var(--u)) 0 calc(15 * var(--u)); border-bottom: calc(1 * var(--u)) solid #011232; }
.m-close { width: calc(28 * var(--u)); height: calc(28 * var(--u)); margin-right: calc(-9 * var(--u)); background: none; padding: 0; display: flex; align-items: center; justify-content: center; }
.m-close svg { width: calc(12 * var(--u)); height: calc(12 * var(--u)); display: block; }
.m-links { display: flex; flex-direction: column; padding: calc(9 * var(--u)) calc(15 * var(--u)) 0; }
.m-link { display: flex; align-items: center; justify-content: space-between; height: calc(44 * var(--u)); width: 100%; padding: 0; background: none; text-align: left;
  font-family: var(--font-display); font-weight: 500; font-size: calc(20 * var(--u)); line-height: calc(44 * var(--u)); letter-spacing: calc(-0.8 * var(--u)); color: var(--black); }
.m-link .chev { width: calc(12 * var(--u)); height: calc(12 * var(--u)); flex: none; transition: transform 0.25s ease; }
.m-link[aria-expanded="true"] .chev { transform: rotate(90deg); }
.m-sub { display: flex; flex-direction: column; padding: calc(10 * var(--u)) 0 calc(10 * var(--u)) calc(30 * var(--u)); gap: calc(23 * var(--u)); }
.m-sub[hidden] { display: none; }
.m-sub a { font-family: var(--font-body); font-weight: 500; font-size: calc(16 * var(--u)); line-height: calc(24 * var(--u)); color: var(--black); }
.m-sub a + a { font-weight: 400; color: #7a7a7a; }
.m-menu-cta { position: absolute; left: calc(15 * var(--u)); right: calc(15 * var(--u)); bottom: calc(33 * var(--u)); height: calc(36 * var(--u)); }

/* ---------- Hero ---------- */
.m .t-h1 .big { font-size: calc(50 * var(--u)); letter-spacing: calc(-2 * var(--u)); display: block; }
.m .t-h1 .sub { font-size: calc(30 * var(--u)); line-height: calc(67 * var(--u)); letter-spacing: calc(-1.2 * var(--u)); margin-top: calc(-14 * var(--u)); }   /* Figma: second line at y 218 */
.m-hero-p { font-weight: 400; }

/* ---------- Rate ---------- */
.m .sec-rate .t-h2 { font-size: calc(40 * var(--u)); line-height: calc(51 * var(--u)); letter-spacing: calc(-1.6 * var(--u)); }
.m .sec-rate .ap-title { font-size: calc(20 * var(--u)); letter-spacing: calc(-0.8 * var(--u)); }
.rate-hold { pointer-events: none; }

/* ---------- Headings in the other sections ---------- */
.m #products-h { font-size: calc(40 * var(--u)); line-height: calc(51 * var(--u)); letter-spacing: calc(-1.6 * var(--u)); }
.m #alloc-h, .m #serve-h { line-height: calc(51 * var(--u)); }

/* ---------- Products ---------- */
.m-bento { background: #e3e9f0; border-radius: calc(22 * var(--u)); }
.m .p-card { border-radius: calc(14 * var(--u)); }
.m-icon { transform: scale(0.645); transform-origin: 0 0; }
.m .btn-ink { padding: 0; }
.m-well { border-radius: 0; }
.m-dash { overflow: hidden; border-radius: calc(10 * var(--u)); }
/* the dashboard and its live chart are drawn at the desktop's size, then scaled down to fit the card */
.m-dash-in { position: absolute; left: 0; top: 0; width: calc(658 * var(--u)); height: calc(302 * var(--u)); transform: scale(0.49544); transform-origin: 0 0; border-radius: 0; }
.m-stage { background: rgba(66, 184, 222, 0.3); border-radius: calc(4 * var(--u)); font-family: var(--font-body); font-size: calc(10 * var(--u)); line-height: calc(20 * var(--u)); color: var(--text-88); text-align: center; white-space: nowrap;
  transition: opacity 0.25s ease; }
.cy-card.is-swap .m-stage { opacity: 0; }

/* ---------- Allocation ---------- */
.m .ap-panel.is-open { border-radius: calc(14 * var(--u)); }
.m .ap-panel.is-shut { border-radius: calc(14 * var(--u)); }
.m .ap-body { width: calc(326 * var(--u)); height: calc(263 * var(--u)); }
.m .ap-num-shut { color: rgba(255, 255, 255, 0.8); }

/* ---------- Who We Serve ---------- */
.m .serve-card { border-radius: calc(14 * var(--u)); }
.m .serve-img { border-radius: calc(14 * var(--u)) calc(14 * var(--u)) 0 0; }
.m .serve-panel { border-radius: calc(14 * var(--u)); }
.m .serve-t { line-height: calc(46 * var(--u)); white-space: nowrap; }
.m .serve-p { font-weight: 400; }

/* ---------- Request a walkthrough ---------- */
.m-phil { border-radius: calc(14 * var(--u)); background-size: cover; background-position: 62% 50%; }
.m-phil-h { font-size: calc(30 * var(--u)); line-height: calc(40 * var(--u)); letter-spacing: calc(-1.2 * var(--u)); }
.m-phil-h .m-sub2 { font-size: calc(20 * var(--u)); line-height: calc(30 * var(--u)); letter-spacing: calc(-0.8 * var(--u)); }
.m-signup input { width: calc(259 * var(--u)); }
.m-signup button { left: calc(234 * var(--u)); width: calc(80 * var(--u)); font-family: var(--font-display); font-weight: 700; }
.m-signup input { font-family: var(--font-display); font-weight: 700; }
.m .btn-navy[style*="width"] { padding: 0; }

/* ---------- Footer ---------- */
.m-foot .f-brand { font-size: calc(18 * var(--u)); line-height: calc(22 * var(--u)); gap: calc(10 * var(--u)); }
.m-foot .f-brand img { width: calc(15 * var(--u)); height: calc(15 * var(--u)); }
.m-foot .f-copy { font-size: calc(13 * var(--u)); line-height: calc(18 * var(--u)); }
.m-foot .f-col h4 { font-size: calc(11 * var(--u)); line-height: calc(14 * var(--u)); letter-spacing: calc(2 * var(--u)); margin-bottom: calc(26 * var(--u)); }
.m-foot .f-col ul { gap: calc(28 * var(--u)); }
.m-foot .f-col li { font-size: calc(14 * var(--u)); line-height: calc(18 * var(--u)); }
.m-foot .wordmark { font-size: calc(57 * var(--u)); line-height: calc(28 * var(--u)); padding-top: calc(21 * var(--u)); }
/* long stage titles wrap beside the stage tag instead of running under it */
.m-check-t { line-height: calc(24 * var(--u)); }
