/* moomu.app: pricing, legal and about pages. Tokens from DESIGN.md (the Mix). Plain HTML, no scripts needed
   (one line in the head moves Apple devices onto their own system font; without it they get Inter). */
@font-face { font-family: "Inter"; src: url(/fonts/Inter.woff2) format("woff2"); font-weight: 400 700; font-display: swap; }
@font-face { font-family: "Shantell Sans"; src: url(/fonts/ShantellSans.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url(/fonts/JetBrainsMono.ttf) format("truetype"); font-weight: 400 700; font-display: swap; }

:root {
  --paper: #F4F2EE; --sheet: #FFFEFC; --sky: #8FB6E8; --ink: #2B2420; --ink2: #5F534B; --ink-sky: #3A302A;
  --band: #0E0C0B; --band-ink: #EFE6DD; --band-ink2: #B8AEA6; --link: var(--ink); --focus: #1F6FD6; --answer: #0F7A45;
  --hair: rgba(43, 36, 32, .12);
  --display: "Segoe UI Variable Display", "Segoe UI", Inter, system-ui, sans-serif;
  --ui: "Segoe UI Variable Text", "Segoe UI", Inter, system-ui, sans-serif;
  color-scheme: light;
}
html.apple {
  --display: -apple-system, BlinkMacSystemFont, "Segoe UI Variable Display", "Segoe UI", Inter, system-ui, sans-serif;
  --ui: -apple-system, BlinkMacSystemFont, "Segoe UI Variable Text", "Segoe UI", Inter, system-ui, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 17px/1.6 var(--ui); -webkit-font-smoothing: antialiased; }
/* links are ink with an underline: moomu's role inks never colour site UI */
a { color: var(--link); text-decoration-line: underline; text-decoration-thickness: 1.5px; text-underline-offset: 3px; text-decoration-color: rgba(43, 36, 32, .45); transition: text-decoration-color 150ms ease-out; }
a:hover { text-decoration-color: var(--ink); }
a:focus-visible, button:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
.wrap { max-width: 1160px; margin-inline: auto; padding-inline: clamp(16px, 4vw, 48px); }

/* header */
.top { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 76px; }
.wordmark { font: 700 25px/1 var(--display); letter-spacing: -.025em; color: var(--ink); text-decoration: none; }
.links { display: flex; align-items: center; gap: 28px; font-size: 15px; }
.links a { color: var(--ink2); text-decoration: none; }
.links a:hover, .links a[aria-current="page"] { color: var(--ink); }
.btn { display: inline-flex; align-items: center; justify-content: center; height: 46px; padding: 0 22px; border-radius: 999px; background: var(--ink); color: var(--paper) !important; font: 600 15px/1 var(--ui); text-decoration: none; transition: transform 160ms cubic-bezier(.23, 1, .32, 1), background-color 150ms ease-out; }
.btn:active { transform: scale(.97); }
@media (hover: hover) and (pointer: fine) { .btn:hover { background: #41362F; } }
@media (max-width: 640px) { .links a:not(.btn) { display: none; } }

/* page head */
.head { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 24px; padding-block: clamp(40px, 6vw, 88px) clamp(24px, 3vw, 40px); }
.head h1 { font: 700 clamp(36px, 2vw + 22px, 56px)/1.06 var(--display); letter-spacing: -.022em; margin: 0; text-wrap: balance; }
.head .meta { margin: 14px 0 0; color: var(--ink2); font-size: 15px; }
.head img { width: clamp(96px, 10vw, 136px); height: auto; margin-bottom: -6px; }
@media (max-width: 560px) { .head { grid-template-columns: 1fr; } .head img { order: -1; width: 88px; } }

/* long-form documents */
.doc { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); padding-bottom: clamp(72px, 8vw, 120px); }
@media (max-width: 900px) { .doc { grid-template-columns: 1fr; } }
.toc { position: sticky; top: 24px; align-self: start; font-size: 14px; }
.toc p { margin: 0 0 10px; font-weight: 600; color: var(--ink); }
.toc ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.toc a { color: var(--ink2); text-decoration: none; }
.toc a:hover { color: var(--ink); text-decoration: underline; }
@media (max-width: 900px) { .toc { position: static; background: var(--sheet); border-radius: 20px; padding: 18px 20px; box-shadow: 0 0 0 1px var(--hair); } .toc ol { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); } }
.body-text { max-width: 70ch; }
/* about 65-72 characters a line: the measure sits on the text, not the article (ch is a zero, wider than most letters) */
.body-text > p, .body-text > ul, .body-text > ol, .body-text > h3, .short p, .short ul { max-width: 34em; }
.body-text h2 { font: 700 clamp(22px, .6vw + 18px, 28px)/1.15 var(--display); letter-spacing: -.015em; margin: 48px 0 0; scroll-margin-top: 24px; }
.body-text h2:first-child { margin-top: 0; }
.body-text h3 { font: 600 17px/1.4 var(--ui); margin: 26px 0 0; }
.body-text p, .body-text li { color: var(--ink); }
.body-text p { margin: 12px 0 0; }
.body-text ul, .body-text ol { margin: 12px 0 0; padding-left: 22px; display: grid; gap: 8px; }
.body-text strong { font-weight: 600; }
.short { background: var(--sheet); border-radius: 28px; padding: clamp(22px, 3vw, 32px); box-shadow: 0 1px 0 rgba(43, 36, 32, .06), 0 24px 60px rgba(43, 36, 32, .10); margin-bottom: 8px; }
.short h2 { margin-top: 0 !important; font-size: 22px !important; }
.short ul { padding-left: 20px; }
.facts { width: 100%; border-collapse: collapse; margin-top: 14px; font-size: 15px; }
.facts th, .facts td { text-align: left; vertical-align: top; padding: 10px 12px 10px 0; border-top: 1px solid var(--hair); }
.facts th { font-weight: 600; width: 34%; color: var(--ink); }
.table-scroll { overflow-x: auto; }

/* pricing */
.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; align-items: stretch; }
@media (max-width: 960px) { .plans { grid-template-columns: 1fr; max-width: 560px; } }
.plan { background: var(--sheet); border-radius: 28px; padding: 28px; display: flex; flex-direction: column; box-shadow: 0 1px 0 rgba(43, 36, 32, .06), 0 18px 48px rgba(43, 36, 32, .08); }
.plan.team { background: var(--sky); box-shadow: 0 1px 0 rgba(43, 36, 32, .06), 0 24px 60px rgba(43, 36, 32, .14); }
.plan h2 { font: 700 26px/1.1 var(--display); letter-spacing: -.02em; margin: 0; }
.plan .for { margin: 6px 0 0; color: var(--ink2); font-size: 15px; }
.plan.team .for, .plan.team .bill, .plan.team li { color: var(--ink-sky); }
.price { margin: 22px 0 0; font: 700 44px/1 var(--display); letter-spacing: -.025em; }
.price small { font: 500 16px/1 var(--ui); letter-spacing: 0; color: var(--ink2); }
.plan.team .price small { color: var(--ink-sky); }
.bill { margin: 8px 0 0; font-size: 14px; color: var(--ink2); }
.plan ul { list-style: none; margin: 22px 0 0; padding: 0; display: grid; gap: 10px; font-size: 15px; }
.plan li { display: grid; grid-template-columns: 20px 1fr; gap: 10px; }
.plan li::before { content: ""; width: 14px; height: 8px; margin-top: 6px; border-left: 2.5px solid var(--answer); border-bottom: 2.5px solid var(--answer); transform: rotate(-45deg); }
.plan.team li::before { border-color: var(--ink); }
.plan .cta { margin-top: auto; padding-top: 26px; }
.plan .cta .btn { width: 100%; }
.plan .cta .btn.light { background: var(--sheet); color: var(--ink) !important; box-shadow: 0 0 0 1.5px var(--hair); }
.plan .note { margin: 10px 0 0; font-size: 13px; color: var(--ink2); text-align: center; }
.plan.team .note { color: var(--ink-sky); }
.after-plans.body-text { max-width: 1160px; }
.after-plans { padding-block: clamp(40px, 5vw, 64px) clamp(72px, 8vw, 120px); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); }
@media (max-width: 860px) { .after-plans { grid-template-columns: 1fr; } }

/* footer */
.foot { border-top: 1px solid var(--hair); }
.foot-in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px; padding-block: 32px; }
.foot nav { display: flex; flex-wrap: wrap; gap: 20px; font-size: 14px; }
.foot nav a { color: var(--ink2); text-decoration: none; }
.foot nav a:hover, .foot nav a[aria-current="page"] { color: var(--ink); }
/* the company's details spread over three columns, then one line for the disclaimer and the copyright */
.foot-cols { flex-basis: 100%; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px 48px; padding-top: 24px; border-top: 1px solid var(--hair); }
.foot-cols p { margin: 0; font-size: 13px; line-height: 1.65; color: var(--ink2); }
.foot-cols .fh { margin-bottom: 6px; font-weight: 600; color: var(--ink); }
.foot-legal { flex-basis: 100%; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 32px; margin: 4px 0 0; font-size: 12.5px; line-height: 1.6; color: var(--ink2); }
.foot-legal span:first-child { max-width: 62em; }
@media (max-width: 720px) { .foot-cols { grid-template-columns: 1fr; gap: 16px; } }

/* stickers: moomus scattered in the margins, perched on cards, clustered in the page head */
main { position: relative; }
.scatter { position: absolute; inset: 0; pointer-events: none; overflow: clip; z-index: 0; }
.st { position: absolute; top: var(--t); width: var(--w); height: auto; transform: rotate(var(--r)); transition: transform 240ms cubic-bezier(.23, 1, .32, 1); pointer-events: auto; }
.st.l { right: calc(50% + 580px + var(--x)); }
.st.r { left: calc(50% + 580px + var(--x)); }
@media (hover: hover) and (pointer: fine) { .st:hover, .perch:hover, .cluster img:hover { transform: rotate(0deg) translateY(-6px) scale(1.04); } }
@media (max-width: 1479px) { .scatter { display: none; } }
@media (prefers-reduced-motion: reduce) { .st, .perch, .cluster img { transition: none; } }
.wrap, .foot { position: relative; z-index: 1; }

.head .cluster { position: relative; width: clamp(150px, 16vw, 230px); aspect-ratio: 230 / 160; }
.head .cluster img { position: absolute; height: auto; transform: rotate(var(--r)); transition: transform 240ms cubic-bezier(.23, 1, .32, 1); }
@media (max-width: 560px) { .head .cluster { order: -1; width: 160px; } }

.short, .plan, .facts-wrap { position: relative; }
.perch { position: absolute; width: var(--w, 96px); height: auto; transform: rotate(var(--r, 6deg)); transition: transform 240ms cubic-bezier(.23, 1, .32, 1); z-index: 2; }
.short .perch { bottom: -44px; left: -34px; --r: -10deg; }
.plan .perch { top: -50px; }
.plan { overflow: visible; margin-top: 36px; }
.facts-wrap .perch { top: -62px; right: 6px; }
@media (max-width: 560px) { .perch { --w: 76px !important; } }
