/* Matiscale studio site, round 2. Ink, paper and one ultramarine; Mona Sans
   (variable width and weight, OFL) for everything, Geist Mono (OFL) for labels.
   All class names are prefixed ms-. See DESIGN.md. */

/* Three static cuts of Mona Sans (instanced from the OFL variable font, so every engine renders the same
   shapes): Text 400/100%, Medium 580/108%, Display 700/125%. Every rule below uses exactly one of them. */
@font-face { font-family: "Mona"; src: url("../fonts/mona-text-latin.woff2") format("woff2"); font-weight: 400; font-stretch: 100%; font-style: normal; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Mona"; src: url("../fonts/mona-text-latin-ext.woff2") format("woff2"); font-weight: 400; font-stretch: 100%; font-style: normal; font-display: swap; unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Mona"; src: url("../fonts/mona-medium-latin.woff2") format("woff2"); font-weight: 580; font-stretch: 108%; font-style: normal; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Mona"; src: url("../fonts/mona-medium-latin-ext.woff2") format("woff2"); font-weight: 580; font-stretch: 108%; font-style: normal; font-display: swap; unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Mona"; src: url("../fonts/mona-display-latin.woff2") format("woff2"); font-weight: 700; font-stretch: 125%; font-style: normal; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Mona"; src: url("../fonts/mona-display-latin-ext.woff2") format("woff2"); font-weight: 700; font-stretch: 125%; font-style: normal; font-display: swap; unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Geist Mono"; src: url("../fonts/geistmono-latin.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Geist Mono"; src: url("../fonts/geistmono-latin-ext.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  --ms-ink: #0e0e10;
  --ms-paper: #efebe3;
  --ms-blue: #1f3bff;
  --ms-gut: clamp(16px, 2.5vw, 40px);
  --ms-hdr: 72px;
  --ms-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ms-io: cubic-bezier(0.7, 0, 0.3, 1);
  interpolate-size: allow-keywords;
}
/* Grounds. With motion allowed, only the body carries a theme on the home
   page and every section is transparent, so the whole page changes colour
   as sections arrive. Without JS, or with reduced motion, each section
   paints its own ground. */
body[data-theme="ink"], html:not(.ms-motion) [data-theme="ink"], .ms-foot {
  --bg: var(--ms-ink); --fg: var(--ms-paper); --mute: #9a968e; --line: rgba(239, 235, 227, 0.16);
  --btn: var(--ms-blue); --btn-fg: var(--ms-paper); --btn-hover: #3a53ff;
}
body[data-theme="paper"], html:not(.ms-motion) [data-theme="paper"] {
  --bg: var(--ms-paper); --fg: var(--ms-ink); --mute: #5f5b54; --line: rgba(14, 14, 16, 0.16);
  --btn: var(--ms-blue); --btn-fg: var(--ms-paper); --btn-hover: #1630e0;
}
body[data-theme="blue"], html:not(.ms-motion) [data-theme="blue"] {
  --bg: var(--ms-blue); --fg: var(--ms-paper); --mute: rgba(239, 235, 227, 0.86); --line: rgba(239, 235, 227, 0.34);
  --btn: var(--ms-paper); --btn-fg: var(--ms-ink); --btn-hover: #ffffff;
}
html:not(.ms-motion) section[data-theme] { background: var(--bg); color: var(--fg); }

*, *::before, *::after { box-sizing: border-box; }
html { font-family: "Mona", system-ui, -apple-system, "Segoe UI", Helvetica, Arial, sans-serif; -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--ms-hdr) + 8px); background: var(--ms-ink); }
@media (prefers-reduced-motion: no-preference) { html:not(.ms-smooth) { scroll-behavior: smooth; } }
body { margin: 0; background: var(--bg); color: var(--fg); font-size: 18px; line-height: 1.5; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility; transition: background-color 0.8s var(--ms-io), color 0.8s var(--ms-io); font-weight: 400; font-stretch: 100%; }
img { display: block; max-width: 100%; height: auto; }
svg { display: block; }
a { color: inherit; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.2em; text-decoration-color: color-mix(in srgb, currentColor 40%, transparent); transition: text-decoration-color 0.2s; }
a:hover { text-decoration-color: currentColor; }
:focus-visible { outline: 2px solid var(--fg); outline-offset: 4px; border-radius: 4px; }
::selection { background: var(--ms-blue); color: var(--ms-paper); }
h1, h2, h3, p, ol, ul, dl, dd { margin: 0; }
ol, ul { padding: 0; list-style: none; }
h1, h2, h3 { text-wrap: balance; font-weight: 580; font-stretch: 108%; }
.ms-ico { width: 1em; height: 1em; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; fill: none; display: inline-block; vertical-align: -0.12em; flex: none; }
.ms-skip { position: fixed; left: 16px; top: -60px; z-index: 100; padding: 10px 14px; background: var(--ms-paper); color: var(--ms-ink); border-radius: 8px; }
.ms-skip:focus { top: 16px; }
.ms-wrap { padding-inline: var(--ms-gut); max-width: 1680px; margin-inline: auto; }
.ms-mono { font-family: "Geist Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace; font-size: 12px; line-height: 1.4; letter-spacing: 0.04em; text-transform: uppercase; font-weight: 400; font-stretch: 100%; }
.ms-display { letter-spacing: -0.045em; line-height: 0.86; font-weight: 700; font-stretch: 125%; }

/* ------------------------------------------------------------------ header */
.ms-top { position: fixed; inset: 0 0 auto; z-index: 40; height: var(--ms-hdr); color: var(--fg); background: color-mix(in srgb, var(--bg) 78%, transparent); -webkit-backdrop-filter: blur(14px) saturate(140%); backdrop-filter: blur(14px) saturate(140%); transition: background-color 0.8s var(--ms-io), color 0.8s var(--ms-io); }
.ms-top-row { height: 100%; display: flex; align-items: center; gap: 24px; padding-inline: var(--ms-gut); }
.ms-brand { color: inherit; display: inline-flex; text-decoration: none; }
.ms-wm { height: 26px; width: auto; aspect-ratio: 3200 / 829; }
.ms-nav { display: flex; gap: 28px; margin-left: clamp(24px, 9vw, 160px); }
.ms-nav a { position: relative; font-size: 15px; text-decoration: none; padding-block: 6px; font-weight: 580; font-stretch: 108%; }
.ms-nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform 0.45s var(--ms-out); }
.ms-nav a:hover::after { transform: scaleX(1); transform-origin: left; }
.ms-top-end { margin-left: auto; display: flex; align-items: center; gap: 20px; }
.ms-lang { text-decoration: none; padding: 8px 2px; }

/* ------------------------------------------------------------------ buttons */
.ms-btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 52px; padding: 0 26px; border-radius: 999px; background: var(--btn); color: var(--btn-fg); font: inherit; font-size: 16px; letter-spacing: -0.01em; line-height: 1; white-space: nowrap; text-decoration: none; border: 0; cursor: pointer; transition: background-color 0.25s, color 0.8s var(--ms-io), transform 0.7s var(--ms-out); will-change: transform; font-weight: 580; font-stretch: 108%; }
.ms-btn > span { display: inline-block; transition: transform 0.7s var(--ms-out); pointer-events: none; }
.ms-btn:hover { background: var(--btn-hover); }
.ms-btn--s { height: 40px; padding: 0 18px; font-size: 14px; }
.ms-btn--lg { height: 64px; padding: 0 34px; font-size: 18px; }
.ms-btn--ghost { background: transparent; color: var(--fg); box-shadow: inset 0 0 0 1px var(--line); }
.ms-btn--ghost:hover { background: var(--fg); color: var(--bg); }

/* ------------------------------------------------------------------ labels */
.ms-label { display: flex; gap: 12px; align-items: baseline; color: var(--mute); border-top: 1px solid var(--line); padding-top: 14px; margin-bottom: clamp(32px, 5vw, 72px); transition: color 0.8s var(--ms-io), border-color 0.8s var(--ms-io); }
.ms-label-n { color: var(--fg); }
.ms-tag { display: inline-flex; align-items: center; height: 22px; padding: 0 9px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--line); color: var(--fg); }
.ms-tag--live::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #4ade80; margin-right: 7px; }

/* ------------------------------------------------------------------ hero */
.ms-hero { position: relative; min-height: 100svh; display: flex; flex-direction: column; padding: calc(var(--ms-hdr) + clamp(20px, 4vh, 48px)) var(--ms-gut) clamp(28px, 6vh, 64px); }
.ms-kicker { display: flex; flex-wrap: wrap; gap: 6px 28px; color: var(--mute); }
.ms-kicker span:first-child { color: var(--fg); }
.ms-h1 { margin-top: auto; padding-top: 4vh; font-size: clamp(50px, min(11.8vw, 19vh), 220px); max-width: 100%; }
html[lang="fr"] .ms-h1 { font-size: clamp(50px, min(9.4vw, 15.5vh), 180px); }
.ms-line { display: block; overflow: hidden; padding-bottom: 0.11em; margin-bottom: -0.11em; }
.ms-line > span { display: inline-block; }
.ms-hero-foot { display: grid; grid-template-columns: minmax(0, 34rem) auto; align-items: end; gap: 24px 64px; margin-top: clamp(28px, 5vh, 56px); }
.ms-lede { font-size: clamp(18px, 1rem + 0.55vw, 24px); line-height: 1.42; color: var(--fg); max-width: 34ch; font-weight: 400; font-stretch: 100%; }
.ms-actions { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.ms-or { color: var(--mute); font-size: 15px; }
.ms-scroll { position: absolute; right: var(--ms-gut); bottom: clamp(28px, 6vh, 64px); display: none; align-items: center; gap: 10px; color: var(--mute); }
.ms-scroll span { width: 1px; height: 28px; background: var(--line); position: relative; overflow: hidden; }


/* ------------------------------------------------------------------ work: one still per demo */
.ms-sec.ms-work { padding-block: clamp(72px, 9vw, 140px) clamp(104px, 13vw, 210px); }
.ms-work-head { margin-bottom: clamp(36px, 5vw, 80px); }
.ms-work-head .ms-label { margin-bottom: 14px; }
.ms-work-sub { color: var(--mute); font-size: 16px; max-width: 40ch; }
.ms-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(56px, 6vw, 104px) clamp(24px, 3vw, 56px); }
.ms-card-shot img { display: block; width: 100%; height: auto; }
html:not(.ms-js) .ms-card-shot > img { display: none; }
html.ms-js .ms-card-shot > img { opacity: 0; }
html.ms-js .ms-card-shot > img.is-loaded { opacity: 1; }
html.ms-motion .ms-card-shot > img { transition: opacity 0.7s ease-out; }
.ms-card-meta { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 12px 20px; margin-top: clamp(16px, 1.6vw, 24px); padding-top: clamp(16px, 1.6vw, 22px); border-top: 1px solid var(--line); }
.ms-card-type { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; }
.ms-card-kind { font-size: clamp(18px, 1.45vw, 23px); line-height: 1.25; font-weight: 580; font-stretch: 108%; }
.ms-card-btn { height: 46px; padding: 0 20px; font-size: 15px; }
.ms-card-btn .ms-ico { width: 15px; height: 15px; }
.ms-sr { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* load sequence */
html.ms-motion .ms-h1 .ms-line > span { transform: translate3d(0, 108%, 0); }
html.ms-motion .ms-kicker, html.ms-motion .ms-hero-foot, html.ms-motion .ms-scroll { opacity: 0; transform: translate3d(0, 18px, 0); }
html.ms-ready .ms-h1 .ms-line > span { transform: none; transition: transform 1.25s var(--ms-out) calc(var(--i) * 95ms + 80ms); }
html.ms-ready .ms-kicker, html.ms-ready .ms-hero-foot, html.ms-ready .ms-scroll { opacity: 1; transform: none; transition: opacity 0.9s ease-out 0.55s, transform 1.1s var(--ms-out) 0.55s; }
html.ms-ready .ms-scroll span::after { content: ""; position: absolute; inset: 0; background: var(--fg); transform: translateY(-100%); animation: ms-drip 1.6s var(--ms-io) 1.6s 1 both; }
@keyframes ms-drip { 0% { transform: translateY(-100%); } 60% { transform: translateY(0); } 100% { transform: translateY(100%); } }

/* ------------------------------------------------------------------ sections */
.ms-sec { position: relative; padding-block: clamp(112px, 15vw, 240px); }
.ms-h2 { font-size: clamp(38px, 5.6vw, 104px); line-height: 0.94; letter-spacing: -0.038em; max-width: 17ch; font-weight: 700; font-stretch: 125%; }
.ms-h2--xl { font-size: clamp(46px, 8.6vw, 168px); line-height: 0.88; max-width: 13ch; letter-spacing: -0.045em; font-weight: 700; font-stretch: 125%; }
html.ms-motion [data-split] .ms-w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: 0.12em; margin-bottom: -0.12em; }
html.ms-motion [data-split] .ms-w > span { display: inline-block; transform: translate3d(0, 105%, 0); transition: transform 1.1s var(--ms-out) calc(var(--wi) * 32ms); }
html.ms-motion [data-split].is-in .ms-w > span { transform: none; }
html.ms-motion [data-reveal] { opacity: 0; transform: translate3d(0, 28px, 0); transition: opacity 0.9s ease-out calc(var(--d, 0) * 80ms + 120ms), transform 1.1s var(--ms-out) calc(var(--d, 0) * 80ms + 120ms); }
html.ms-motion [data-reveal].is-in { opacity: 1; transform: none; }
html.ms-motion [data-rise] .ms-line > span { transform: translate3d(0, 104%, 0); transition: transform 1.3s var(--ms-out) calc(var(--i) * 140ms); }
html.ms-motion [data-rise].is-in .ms-line > span { transform: none; }

/* how it works */
.ms-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; margin-top: clamp(72px, 9vw, 152px); }
.ms-step { border-top: 1px solid var(--line); padding-top: 22px; }
.ms-step-n { display: block; font-size: clamp(64px, 8vw, 148px); color: var(--fg); margin-bottom: clamp(28px, 4vw, 64px); }
.ms-step h3 { font-size: clamp(22px, 1rem + 0.8vw, 30px); line-height: 1.1; letter-spacing: -0.02em; font-weight: 580; font-stretch: 108%; }
.ms-step p { margin-top: 12px; color: var(--mute); font-size: 17px; max-width: 34ch; }

/* price */
.ms-price-big { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 0 0.12em; font-size: clamp(112px, 27vw, 520px); line-height: 0.8; letter-spacing: -0.06em; }
.ms-price-once { font-size: 0.2em; line-height: 1; letter-spacing: -0.03em; padding-bottom: 0.32em; font-weight: 580; font-stretch: 108%; }
.ms-price-grid { display: grid; grid-template-columns: 5fr 7fr; gap: 32px clamp(32px, 5vw, 96px); margin-top: clamp(56px, 7vw, 112px); }
.ms-price-line { font-size: clamp(22px, 1rem + 1.1vw, 36px); line-height: 1.18; letter-spacing: -0.02em; max-width: 20ch; font-weight: 580; font-stretch: 108%; }
.ms-incl { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line); }
.ms-incl li { display: flex; gap: 12px; padding: 16px 16px 16px 0; border-bottom: 1px solid var(--line); font-size: 17px; line-height: 1.35; }
.ms-incl li::before { content: "+"; font-family: "Geist Mono", ui-monospace, monospace; color: var(--mute); }
.ms-price-cta { margin-top: clamp(48px, 6vw, 96px); }

/* what you get: an index of four rows */
.ms-get-grid { margin-top: clamp(64px, 8vw, 136px); border-bottom: 1px solid var(--line); }
.ms-get { position: relative; display: grid; grid-template-columns: 1fr 6fr 5fr; gap: 12px 32px; align-items: baseline; padding: clamp(22px, 2.6vw, 40px) 0; border-top: 1px solid var(--line); }
.ms-get::before { content: ""; position: absolute; inset: -1px 0 0; background: var(--fg); transform: scaleY(0); transform-origin: 50% 100%; transition: transform 0.6s var(--ms-out); z-index: -1; }
.ms-get-n { color: var(--mute); transition: color 0.4s; }
.ms-get-h { font-size: clamp(28px, 3.6vw, 64px); line-height: 0.95; letter-spacing: -0.035em; transition: transform 0.6s var(--ms-out), color 0.4s; font-weight: 700; font-stretch: 125%; }
.ms-get p { color: var(--mute); font-size: 17px; max-width: 40ch; transition: color 0.4s; }
.ms-get-grid { position: relative; isolation: isolate; }
@media (hover: hover) {
  .ms-get:hover::before { transform: scaleY(1); }
  .ms-get:hover .ms-get-h { transform: translateX(14px); color: var(--bg); }
  .ms-get:hover p, .ms-get:hover .ms-get-n { color: color-mix(in srgb, var(--bg) 72%, transparent); }
}

/* who */
.ms-who { padding-top: clamp(40px, 6vw, 96px); }
.ms-fill { font-size: clamp(32px, 4.9vw, 90px); line-height: 1.02; letter-spacing: -0.034em; max-width: 21ch; font-weight: 580; font-stretch: 108%; }
html.ms-motion .ms-fill .ms-fw { opacity: var(--o, 0.16); transition: opacity 0.15s linear; }

/* faq */
.ms-faq-grid { display: grid; grid-template-columns: 4fr 8fr; gap: 32px clamp(32px, 5vw, 96px); align-items: start; }
.ms-faq-head .ms-h2 { font-size: clamp(38px, 4.4vw, 80px); }
.ms-faq-list { border-top: 1px solid var(--line); }
.ms-qa { border-bottom: 1px solid var(--line); }
.ms-qa summary { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 26px 0; cursor: pointer; list-style: none; font-size: clamp(19px, 1rem + 0.5vw, 25px); letter-spacing: -0.01em; font-weight: 580; font-stretch: 108%; }
.ms-qa summary::-webkit-details-marker { display: none; }
.ms-qa summary .ms-ico { width: 22px; height: 22px; transition: transform 0.5s var(--ms-out); }
.ms-qa[open] summary .ms-ico { transform: rotate(45deg); }
.ms-qa-a p { padding: 0 0 28px; color: var(--mute); max-width: 58ch; }
.ms-qa::details-content { block-size: 0; overflow: hidden; transition: block-size 0.55s var(--ms-out), content-visibility 0.55s allow-discrete; }
.ms-qa[open]::details-content { block-size: auto; }

/* start */
.ms-start-p { margin-top: clamp(28px, 3vw, 44px); color: var(--mute); font-size: clamp(18px, 1rem + 0.4vw, 22px); max-width: 48ch; }
.ms-start-p a { color: var(--fg); }
.ms-start-grid { display: grid; grid-template-columns: 1fr; gap: clamp(56px, 7vw, 112px); margin-top: clamp(56px, 7vw, 112px); }
.ms-cal { border-radius: 18px; overflow: hidden; background: #141416; box-shadow: inset 0 0 0 1px var(--line); min-height: 560px; }
.ms-cal-inline { min-height: 560px; }
.ms-cal-fallback { padding: 32px; color: var(--mute); }
.ms-form { display: grid; grid-template-columns: 4fr 4fr 4fr; gap: 28px 32px; align-items: end; }
.ms-form-h { grid-column: 1 / -1; }
.ms-field--wide { grid-column: 1 / 3; }
.ms-form-h { font-size: 24px; letter-spacing: -0.02em; font-weight: 580; font-stretch: 108%; }
.ms-hp { position: absolute; left: -9999px; }
.ms-field { display: grid; gap: 6px; }
.ms-field label { font-family: "Geist Mono", ui-monospace, monospace; font-size: 12px; letter-spacing: 0.04em; text-transform: uppercase; color: var(--mute); }
.ms-opt { text-transform: none; }
.ms-field input, .ms-field textarea { font: inherit; font-size: 18px; color: var(--fg); background: transparent; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; padding: 10px 0; width: 100%; transition: border-color 0.2s; }
.ms-field textarea { resize: vertical; min-height: 84px; }
.ms-field input::placeholder, .ms-field textarea::placeholder { color: color-mix(in srgb, var(--fg) 38%, transparent); }
.ms-field input:focus, .ms-field textarea:focus { outline: none; border-bottom-color: var(--fg); }
.ms-err { display: none; font-size: 14px; color: #ff8a73; }
.ms-field input:user-invalid { border-bottom-color: #ff8a73; }
.ms-field input:user-invalid ~ .ms-err { display: block; }
.ms-form .ms-btn { justify-self: start; }

/* footer */
.ms-foot { background: var(--bg); color: var(--fg); padding: clamp(80px, 10vw, 160px) 0 28px; position: relative; }
.ms-foot-wm { display: block; color: inherit; }
.ms-wm--xl { width: 100%; height: auto; }
.ms-foot-row { display: flex; flex-wrap: wrap; gap: 14px 40px; align-items: center; margin-top: clamp(28px, 4vw, 56px); padding-top: 16px; border-top: 1px solid var(--line); color: var(--mute); }
.ms-foot-row a { color: var(--fg); text-decoration: none; }
.ms-foot-row a:hover { text-decoration: underline; }
.ms-foot-nav { display: flex; flex-wrap: wrap; gap: 10px 24px; margin-left: auto; }

/* legal and simple pages */
.ms-doc { padding-top: calc(var(--ms-hdr) + clamp(64px, 12vh, 140px)); padding-bottom: clamp(96px, 14vw, 200px); }
.ms-doc-h { font-size: clamp(52px, 9vw, 168px); }
.ms-doc-body { max-width: 66ch; margin: clamp(48px, 7vw, 112px) 0 0 auto; margin-right: max(0px, calc(50% - 40ch)); }
.ms-doc-body h2 { font-size: 26px; margin: 48px 0 12px; letter-spacing: -0.02em; font-weight: 580; font-stretch: 108%; }
.ms-doc-body h3 { font-size: 19px; margin: 32px 0 6px; }
.ms-doc-body p { margin: 0 0 16px; }
.ms-doc .doc-lede { font-size: clamp(20px, 1rem + 0.6vw, 26px); line-height: 1.35; margin-bottom: 32px; font-weight: 400; font-stretch: 100%; }
.ms-doc .doc-date { color: var(--mute); font-size: 15px; margin-top: 48px; }
.ms-doc .doc-list { margin: 0 0 24px; padding-left: 1.5em; }
.ms-doc ol.doc-list { list-style: decimal; }
.ms-doc ul.doc-list { list-style: disc; }
.ms-doc .doc-list li { margin: 0 0 12px; padding-left: 0.25em; }
.ms-doc .doc-list li::marker { color: var(--mute); }
.ms-doc .doc-list strong { font-weight: 600; }
.ms-doc .facts { display: grid; grid-template-columns: max-content 1fr; gap: 14px 40px; margin: 0 0 40px; }
.ms-doc .facts dt { font-family: "Geist Mono", ui-monospace, monospace; font-size: 12px; text-transform: uppercase; letter-spacing: 0.04em; color: var(--mute); padding-top: 5px; }
.ms-doc-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

/* ------------------------------------------------------------------ cursor */
.ms-cursor { display: none; }
html.ms-fine.ms-motion .ms-cursor { display: block; position: fixed; left: 0; top: 0; z-index: 90; width: 0; height: 0; pointer-events: none; color: var(--fg); transform: translate3d(var(--x, -100px), var(--y, -100px), 0); opacity: 0; transition: opacity 0.3s, color 0.8s var(--ms-io); }
html.ms-fine.ms-motion .ms-cursor.is-on { opacity: 1; }
.ms-cursor::before { content: ""; position: absolute; left: -18px; top: -18px; width: 36px; height: 36px; border-radius: 50%; box-shadow: inset 0 0 0 1px currentColor; transition: transform 0.5s var(--ms-out), background-color 0.3s, box-shadow 0.3s; }
.ms-cursor.is-label::before { transform: scale(2.6); background: var(--btn); box-shadow: none; }
.ms-cursor.is-down::before { transform: scale(0.8); }
.ms-cursor.is-label.is-down::before { transform: scale(2.3); }
.ms-cursor-label { position: absolute; left: 0; top: 0; transform: translate(-50%, -50%) scale(0.6); font-family: "Geist Mono", ui-monospace, monospace; font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; white-space: nowrap; color: var(--btn-fg); opacity: 0; transition: opacity 0.25s, transform 0.5s var(--ms-out); }
.ms-cursor.is-label .ms-cursor-label { opacity: 1; transform: translate(-50%, -50%) scale(1); }

/* ------------------------------------------------------------------ page transitions (cross-document View Transitions) */
@media (prefers-reduced-motion: no-preference) {
  @view-transition { navigation: auto; }
  ::view-transition-old(root) { animation: ms-vt-out 0.7s var(--ms-io) both; }
  ::view-transition-new(root) { animation: ms-vt-in 0.9s var(--ms-io) both; }
}
@keyframes ms-vt-out { to { transform: translate3d(0, -10vh, 0); opacity: 0.25; } }
@keyframes ms-vt-in { from { clip-path: inset(100% 0 0 0); } to { clip-path: inset(0 0 0 0); } }

/* ------------------------------------------------------------------ responsive */
@media (max-width: 1100px) {
  .ms-nav { display: none; }
}
@media (max-width: 899px) {
  :root { --ms-hdr: 60px; }
  body { font-size: 17px; }
  .ms-wm { height: 22px; }
  .ms-top-end { gap: 14px; }
  .ms-hero-foot { grid-template-columns: 1fr; }
  .ms-h1 { font-size: clamp(40px, 13.2vw, 104px); font-weight: 700; font-stretch: 125%; }
  html[lang="fr"] .ms-h1 { font-size: clamp(36px, 11.3vw, 90px); font-weight: 700; font-stretch: 125%; }
  .ms-hero { padding-bottom: clamp(32px, 7svh, 64px); }
  .ms-price-big { font-size: clamp(112px, 33vw, 300px); }
  html[lang="fr"] .ms-price-big { font-size: clamp(88px, 28vw, 300px); } /* "997 €" is wider than "€997": at 33vw its € was clipped */
  .ms-form { grid-template-columns: 1fr; }
  .ms-field--wide { grid-column: auto; }
  .ms-steps { grid-template-columns: 1fr; gap: 56px; }
  .ms-step-n { margin-bottom: 20px; }
  .ms-price-grid, .ms-faq-grid, .ms-start-grid, .ms-cards { grid-template-columns: 1fr; }
  .ms-get { grid-template-columns: 1fr; gap: 10px; }
  .ms-incl { grid-template-columns: 1fr; }
  .ms-foot-nav { margin-left: 0; }
  .ms-doc-body { margin-right: 0; }
}
@media (max-width: 560px) {
  .ms-btn--lg { height: 58px; padding: 0 28px; font-size: 17px; }
  .ms-kicker span:nth-child(3) { display: none; }
  .ms-lang { padding: 8px 0; }
  .ms-doc-h { font-size: min(52px, 12vw); } /* "Confidentialité" is one word: at 52px it overflows phones under ~395px */
  .ms-doc .facts { grid-template-columns: 1fr; gap: 2px; }
  .ms-doc .facts dd { margin-bottom: 14px; }
  .ms-cal, .ms-cal-inline { min-height: 560px; }
}
@media (prefers-reduced-motion: reduce) {
  body, .ms-top, .ms-label { transition: none; }
  .ms-btn, .ms-btn > span { transition: background-color 0.2s; }
}
