/* MotionSwan studio landing page. Type: Figtree for headings and body (owner 2026-11-13), Syne only in the logo. */
:root {
  --ink: #0B0C0F;
  --ink-2: #16181D;
  --paper: #F2F2F1;      /* Rouge's surface grey */
  --paper-2: #E6E6E4;
  --frame: 2px;          /* screenshot frames: a thin black line, no shadow */
  --white: #fff;
  --accent: #3D4BFF;

  --font-display: "Figtree", system-ui, sans-serif;
  --font-body: "Figtree", system-ui, sans-serif;
  --font-logo: "Syne", system-ui, sans-serif;
  --display-weight: 500;
  --tr-display: -.03em;

  --text: clamp(16px, .35vw + 14px, 18px);
  --lead: clamp(17px, .5vw + 14px, 20px);
  --h3: clamp(19px, 1vw + 12px, 24px);
  --h2: clamp(28px, 2.9vw, 46px);
  --hero: clamp(32px, 4.2vw, 64px);

  --gutter: clamp(16px, 4vw, 64px);
  --radius: 20px;
  --ease: cubic-bezier(.65, 0, .35, 1);
  --out: cubic-bezier(.2, .75, .2, 1);
  --soft: cubic-bezier(.45, 0, .2, 1);

  --bg: var(--ink);
  --fg: var(--white);
  --fg-2: rgba(255, 255, 255, .64);
  --line: rgba(255, 255, 255, .14);
}
html[data-bg=paper] { --bg: var(--paper); --fg: var(--ink); --fg-2: rgba(11, 12, 15, .62); --line: rgba(11, 12, 15, .12); }

* { box-sizing: border-box; }
html, body { margin: 0; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  background: var(--bg); color: var(--fg);
  font: 400 var(--text) / 1.55 var(--font-body);
  -webkit-font-smoothing: antialiased; overflow-x: clip;
  transition: background-color .9s var(--soft), color .9s var(--soft);
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: 8px; }
/* one container for the studio site and the docs: 1400px of content plus the gutters */
:root { --container: 1400px; --edge: max(var(--gutter), calc((100% - var(--container)) / 2)); }
.wrap { padding: 0 var(--gutter); max-width: calc(var(--container) + 2 * var(--gutter)); margin: 0 auto; }

.h2 { font: var(--display-weight) var(--h2) / 1.1 var(--font-display); letter-spacing: var(--tr-display); margin: 0 0 .5em; }
.lead { font-size: var(--lead); line-height: 1.5; color: var(--fg-2); margin: 0 0 32px; max-width: 32em; transition: color .9s var(--soft); }

/* ---------- logo symbol ---------- */
.msym { display: block; overflow: hidden; flex: none; }
.msym .s { fill: none; stroke: currentColor; stroke-width: 72; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1 2; stroke-dashoffset: 0; }
.msym .dot { fill: currentColor; transform-box: fill-box; transform-origin: 50% 100%; }

/* ---------- buttons: the fill slides in from the left and leaves to the right; the label flips with it ---------- */
.btn {
  --b-bg: var(--ink); --b-fg: var(--white); --b-fill: var(--accent); --b-on: var(--white);
  position: relative; display: inline-flex; align-items: center; justify-content: center;
  height: 52px; padding: 0 26px; border: 0; border-radius: 999px; overflow: hidden; isolation: isolate; cursor: pointer; -webkit-appearance: none; appearance: none;
  background: var(--b-bg); color: var(--b-fg);
  font: 500 16px/1 var(--font-body); white-space: nowrap;
  box-shadow: inset 0 0 0 1px var(--b-line, transparent);
  transition: transform .5s var(--out);
}
.btn__label { position: relative; z-index: 1; }
.btn__fill { position: absolute; inset: 0; z-index: 2; display: flex; align-items: center; justify-content: center; background: var(--b-fill); color: var(--b-on); clip-path: inset(0 100% 0 0); pointer-events: none; }
.btn.b-in .btn__fill { clip-path: inset(0 0 0 0); transition: clip-path .55s var(--ease); }
.btn.b-out .btn__fill { clip-path: inset(0 0 0 100%); transition: clip-path .55s var(--ease); }
.btn:active { transform: scale(.97); }
.btn--light { --b-bg: var(--white); --b-fg: var(--ink); }
html[data-bg=paper] .btn--light { --b-bg: var(--ink); --b-fg: var(--white); }
.btn--line { --b-bg: transparent; --b-fg: var(--fg); --b-line: var(--line); }
.btn--sm { height: 42px; padding: 0 20px; font-size: 15px; }
.btn--xl { height: 60px; padding: 0 32px; font-size: 17px; }
html[data-bg=ink] .btn--sm { --b-bg: var(--white); --b-fg: var(--ink); }

/* ---------- header ---------- */
.hd {
  position: fixed; inset: 0 0 auto; z-index: 50; height: 80px; padding: 0 var(--edge);
  display: flex; align-items: center; gap: 28px; color: var(--fg);
  transition: transform .6s var(--out), color .9s var(--soft);
}
.hd::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--bg); opacity: 0; transition: opacity .5s var(--soft), background-color .9s var(--soft); }
.hd.is-stuck::before { opacity: .9; }
.hd.is-stuck { backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
/* logo: the symbol alone; on hover the wordmark wipes out of it and wipes back in on leave */
.logo { display: inline-flex; align-items: center; gap: .38em; font-size: 24px; margin-right: auto; }
.logo .msym { height: .99em; width: auto; aspect-ratio: 300 / 170; }
.logo__wm { font: 650 1em/1 var(--font-logo); text-transform: uppercase; letter-spacing: 0; clip-path: inset(0 100% 0 0); transform: translateX(-.3em); opacity: 0;
  transition: clip-path .6s var(--ease), transform .6s var(--ease), opacity .3s var(--soft) .3s; }
.logo:hover .logo__wm, .logo:focus-visible .logo__wm { clip-path: inset(0 0 0 0); transform: none; opacity: 1; transition: clip-path .7s var(--ease), transform .7s var(--ease), opacity .2s var(--soft); }
.hd__nav { position: relative; display: flex; align-items: center; gap: 4px; }
.hd__nav > a, .dd__btn { position: relative; padding: 10px 14px; font: 500 15px/1.2 var(--font-body); }

/* Dropdowns (Products, Help Center): a small white panel unrolls down from the button and rolls back up.
   Clean rows: name and one line, an arrow that slides in on hover; no tinted surfaces, no lines. */
.dd { position: relative; }
.dd__btn { display: inline-flex; align-items: center; gap: 6px; border: 0; background: none; color: inherit; cursor: pointer; }
.dd__btn svg { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; transition: transform .5s var(--out); }
.dd.is-open .dd__btn svg { transform: rotate(180deg); }
.dd__panel { position: absolute; top: calc(100% + 12px); left: 0; min-width: 280px; padding: 6px; border-radius: 14px; background: var(--white); color: var(--ink);
  clip-path: inset(0 0 100% 0 round 14px); visibility: hidden;
  transition: clip-path .45s var(--ease), visibility 0s .45s; }
.dd.is-open .dd__panel { clip-path: inset(0 0 0 0 round 14px); visibility: visible; transition: clip-path .5s var(--ease), visibility 0s; }
.dd__panel::before { content: ""; position: absolute; inset: -14px 0 auto; height: 14px; }
.dd__item { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 12px 14px; border-radius: 10px;
  opacity: 0; transform: translateY(-6px); transition: opacity .3s var(--soft), transform .5s var(--out); }
.dd.is-open .dd__item { opacity: 1; transform: none; transition-delay: .12s; }
.dd__text { display: grid; gap: 2px; }
.dd__text b { font-weight: 600; font-size: 15px; transition: color .3s var(--soft); }
.dd__text span { color: rgba(11, 12, 15, .56); font-size: 14px; white-space: nowrap; }
.dd__go { width: 16px; height: 16px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round;
  opacity: 0; transform: translateX(-8px); transition: opacity .3s var(--soft), transform .5s var(--out); }
.dd__item:hover .dd__go, .dd__item:focus-visible .dd__go { opacity: 1; transform: none; }
.dd__item:hover b, .dd__item:focus-visible b { color: var(--accent); }
.hd__dot { position: absolute; left: 0; bottom: 0; width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: 0; transform: translateX(var(--x, 0)) scale(.4); transition: transform .6s var(--out), opacity .4s var(--soft); pointer-events: none; }
.hd__nav.is-on .hd__dot { opacity: 1; transform: translateX(var(--x, 0)) scale(1); }
.hd__menu { display: none; }

/* phone menu: the panel slides down and back up, links rise in after it */
.menu { position: fixed; inset: 0; z-index: 45; display: flex; flex-direction: column; justify-content: flex-end; gap: 32px; padding: 110px var(--gutter) 40px; color: var(--white); }
.menu[hidden] { display: none; }
.menu__bg { position: absolute; inset: 0; z-index: -1; background: var(--ink); transform: translateY(-100%); transition: transform .7s var(--ease); }
.menu.is-open .menu__bg { transform: none; }
.menu__nav { display: flex; flex-direction: column; gap: 6px; }
.menu__nav a { font: var(--display-weight) clamp(30px, 9vw, 44px)/1.15 var(--font-display); letter-spacing: var(--tr-display); }
.menu__nav a, .menu > .btn { opacity: 0; transform: translateY(26px); transition: opacity .5s var(--soft), transform .7s var(--out); }
.menu.is-open .menu__nav a, .menu.is-open > .btn { opacity: 1; transform: none; transition-delay: calc(.25s + var(--i, 0) * 60ms); }
.menu > .btn { --b-bg: var(--white); --b-fg: var(--ink); align-self: flex-start; }

@media (max-width: 860px) {
  .hd { height: 64px; gap: 12px; }
  .logo { font-size: 22px; }
  .hd__nav, .hd > .btn { display: none; }
  .hd__menu { display: grid; place-items: center; gap: 6px; width: 48px; height: 48px; margin-right: -10px; border: 0; background: none; color: inherit; cursor: pointer; align-content: center; }
  .hd__menu span:not(.sr) { display: block; width: 24px; height: 2px; border-radius: 2px; background: currentColor; transition: transform .5s var(--out); }
  .hd__menu[aria-expanded=true] span:nth-child(1) { transform: translateY(4px) rotate(45deg); }
  .hd__menu[aria-expanded=true] span:nth-child(2) { transform: translateY(-4px) rotate(-45deg); }
  body.menu-open .hd { color: var(--white); }
  body.menu-open .hd::before { opacity: 0; }
}

/* ---------- reveal helpers ---------- */
[data-split] .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .1em; margin-bottom: -.1em; }
[data-split] .w > span { display: inline-block; }
.js [data-split]:not(.is-in) .w > span { transform: translateY(110%); }
.js [data-split].is-in .w > span { transform: none; transition: transform 1s var(--out); transition-delay: calc(var(--i) * 50ms); }
.js [data-rise]:not(.is-in) { opacity: 0; transform: translateY(24px); }
.js [data-rise].is-in { opacity: 1; transform: none; transition: opacity .9s var(--soft), transform 1.1s var(--out); transition-delay: var(--d, .15s); }

/* ---------- hero ---------- */
.hero { padding-top: clamp(150px, 24vh, 240px); }
.hero__copy { text-align: center; display: flex; flex-direction: column; align-items: center; }
.hero__title { font: var(--display-weight) var(--hero) / 1.04 var(--font-display); letter-spacing: var(--tr-display); margin: 0 0 .55em; max-width: 13em; text-wrap: balance; }
.hero__copy .lead { max-width: 30em; }
.hero__ctas { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
/* one Rouge screen that opens up while it scrolls into view */
.show { padding: clamp(64px, 11vh, 120px) var(--gutter) clamp(90px, 14vh, 160px); }
.show__frame { max-width: 1280px; margin: 0 auto; border: var(--frame) solid var(--ink); border-radius: 18px; overflow: hidden; background: var(--white);
  transform: scale(var(--s, .86)); transform-origin: 50% 0; will-change: transform; }
.show__frame img { width: 100%; height: auto; }

/* the frames every Rouge screenshot sits in */
.bar { flex: none; height: 34px; display: flex; gap: 7px; align-items: center; padding: 0 14px; background: var(--white); border-bottom: var(--frame) solid var(--ink); }
.bar i { width: 9px; height: 9px; border-radius: 50%; border: 1.5px solid var(--ink); }

@media (max-width: 760px) {
  .hero { padding-top: 130px; }
  .show__frame { max-width: 330px; border-radius: 40px; border-width: 7px; }
  .show__frame .bar { display: none; }
}

/* ---------- Rouge tour ---------- */
.rouge { position: relative; height: 320vh; }
.rouge__pin { position: sticky; top: 0; height: 100vh; height: 100svh; display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(32px, 5vw, 96px); align-items: center; padding: 96px var(--edge) 40px; }
.rouge__lines { list-style: none; margin: 0 0 36px; padding: 0; display: grid; gap: 12px; }
/* lines not in focus are greyed by colour, not opacity, so they still pass AA contrast */
.rouge__lines li { font: var(--display-weight) var(--h3) / 1.3 var(--font-display); letter-spacing: var(--tr-display); color: rgba(11, 12, 15, .58); transition: color .7s var(--soft), opacity .7s var(--soft), transform .8s var(--out); }
.rouge__lines li.is-on { color: var(--ink); }
.rouge__lines li.is-on { opacity: 1; transform: translateX(8px); }
.rouge__devices { position: relative; height: min(74vh, 700px); }
.browser { position: absolute; inset: 0 0 6% 8%; border: var(--frame) solid var(--ink); border-radius: 16px; background: var(--white); overflow: hidden; display: flex; flex-direction: column; }
.browser__screen { position: relative; flex: 1; overflow: hidden; }
.browser__screen img, .phone__screen img { width: 100%; height: auto; will-change: transform; }
/* phone: black bezel, a light hairline where the bezel meets the screen so dark pages keep their edge,
   and a ring of the page grey around it, which cuts it out from a browser frame behind */
.phone { position: absolute; left: 0; bottom: 0; width: clamp(150px, 14vw, 220px); border-radius: 34px; padding: 5px; background: var(--ink); outline: 6px solid var(--paper); }
.phone__screen { position: relative; border-radius: 29px; overflow: hidden; aspect-ratio: 390 / 844; background: var(--white); outline: 1.5px solid rgba(255, 255, 255, .34); outline-offset: 0; }

@media (max-width: 860px) {
  .rouge { height: 280vh; }
  .rouge__pin { grid-template-columns: 1fr; grid-template-rows: auto 1fr; align-items: stretch; gap: 16px; padding-top: 84px; }
  .rouge__copy .lead, .rouge__copy > .btn { display: none; }
  .rouge__lines { position: relative; height: 2.8em; margin: 0 0 8px; }
  .rouge__lines li { position: absolute; inset: 0 0 auto; opacity: 0; transform: translateY(10px); }
  .rouge__lines li.is-on { opacity: 1; transform: none; }
  .rouge__devices { height: auto; display: grid; place-items: center; }
  .browser { display: none; }
  .phone { position: relative; width: min(62vw, 270px); }
}

/* ---------- motion rules: three tiles in a row ---------- */
.motion { padding: clamp(110px, 16vh, 190px) 0; }
.rules { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(48px, 7vh, 72px) clamp(20px, 2.4vw, 40px); margin-top: clamp(40px, 7vh, 72px); }
.rule h3 { font: var(--display-weight) var(--h3)/1.25 var(--font-display); letter-spacing: var(--tr-display); margin: 24px 0 .45em; }
.rule p { margin: 0; color: var(--fg-2); max-width: 24em; }
.rule__demo { position: relative; aspect-ratio: 4 / 3; border-radius: var(--radius); background: var(--white); display: grid; place-items: center; overflow: hidden; }

/* calm: three Rouge screens trade places slowly */
.demo-calm { --cx: clamp(56px, 6vw, 92px); }
.calm__card { position: absolute; width: 30%; aspect-ratio: 390 / 844; top: 14%; border-radius: 18px; padding: 3px; background: var(--ink); }
.calm__card img { width: 100%; height: 100%; object-fit: cover; object-position: top; border-radius: 15px; }
.calm__card:nth-child(1) { transform: translateX(calc(var(--cx) * -1)) rotate(-6deg) scale(.9); }
.calm__card:nth-child(2) { transform: translateY(-4%); z-index: 2; }
.calm__card:nth-child(3) { transform: translateX(var(--cx)) rotate(6deg) scale(.9); }
@media (prefers-reduced-motion: no-preference) {
  html:not(.reduce) .demo-calm.is-live .calm__card { animation: calm 7.5s var(--soft) infinite; }
  html:not(.reduce) .demo-calm.is-live .calm__card:nth-child(2) { animation-name: calm2; }
  html:not(.reduce) .demo-calm.is-live .calm__card:nth-child(3) { animation-name: calm3; }
}
@keyframes calm  { 0%, 100% { transform: translateX(calc(var(--cx) * -1)) rotate(-6deg) scale(.9); } 33% { transform: translateY(-4%); z-index: 2; } 66% { transform: translateX(var(--cx)) rotate(6deg) scale(.9); } }
@keyframes calm2 { 0%, 100% { transform: translateY(-4%); z-index: 2; } 33% { transform: translateX(var(--cx)) rotate(6deg) scale(.9); z-index: 1; } 66% { transform: translateX(calc(var(--cx) * -1)) rotate(-6deg) scale(.9); } }
@keyframes calm3 { 0%, 100% { transform: translateX(var(--cx)) rotate(6deg) scale(.9); } 33% { transform: translateX(calc(var(--cx) * -1)) rotate(-6deg) scale(.9); } 66% { transform: translateY(-4%); z-index: 2; } }

.switch { display: inline-flex; align-items: center; gap: 14px; border: 0; background: none; color: var(--fg); font: 500 var(--text)/1.2 var(--font-body); cursor: pointer; padding: 12px; }
.switch__track { position: relative; width: 64px; height: 36px; border-radius: 999px; background: rgba(11, 12, 15, .14); transition: background-color .5s var(--soft); flex: none; }
.switch__knob { position: absolute; top: 4px; left: 4px; width: 28px; height: 28px; border-radius: 50%; background: var(--white); transition: transform .5s var(--out); }
.switch[aria-checked=true] .switch__track { background: var(--accent); }
.switch[aria-checked=true] .switch__knob { transform: translateX(28px); }

/* colour follows the surface: an ink pill glides between options; a label turns white only once the pill is under it */
.seg { position: relative; display: inline-flex; padding: 5px; border-radius: 999px; background: var(--paper); isolation: isolate; }
.seg__pill { position: absolute; top: 5px; bottom: 5px; left: 0; z-index: -1; width: var(--w, 0); border-radius: 999px; background: var(--ink);
  transform: translateX(var(--x, 0)); transition: transform .6s var(--ease), width .6s var(--ease); }
.seg__opt { border: 0; background: none; padding: 11px 20px; border-radius: 999px; font: 500 15px/1 var(--font-body); color: var(--ink); cursor: pointer; transition: color .2s var(--soft); }
.seg__opt.is-on { color: var(--white); }

/* one after another: six Rouge product cards; each one swaps a beat after the last,
   the old product sliding up and out as the new one slides in from below (never an empty slot) */
.order { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; width: min(78%, 300px); }
.slot { position: relative; aspect-ratio: 4 / 5; border-radius: 12px; overflow: hidden; background: #EDEDEB; }
.slot img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: translateY(101%); transition: transform .8s var(--ease); }
.slot img.is-front { transform: none; }
.slot img.is-gone { transform: translateY(-101%); }
.slot img.no-anim { transition: none; }

/* scroll sets the pace: the logo draws itself as the tile passes through the screen, backwards on the way up */
.scrub__m { width: 46%; height: auto; aspect-ratio: 300 / 170; color: var(--ink); }
.scrub__bar { position: absolute; left: 24px; right: 24px; bottom: 22px; height: 2px; border-radius: 2px; background: var(--paper); overflow: hidden; }
.scrub__bar i { display: block; height: 100%; background: var(--ink); transform-origin: 0 50%; transform: scaleX(var(--p, 0)); }

@media (max-width: 860px) {
  .rules { grid-template-columns: 1fr; gap: 48px; }
}
html.reduce .slot img { transition: none; }
html.reduce .seg__pill, html.reduce .seg__opt { transition: none; }

/* ---------- presets ---------- */
.presets { position: relative; height: 220vh; }
.presets__pin { position: sticky; top: 0; height: 100vh; height: 100svh; display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(32px, 5vw, 96px); align-items: center; padding: 96px var(--edge) 40px; overflow: hidden; }
.presets__copy { position: relative; z-index: 4; }
.presets__stage { position: relative; height: min(64vh, 580px); container-type: inline-size; }
.pdev { position: absolute; will-change: transform; }
.pdev.browser { inset: auto; left: 8%; right: 8%; top: 50%; translate: 0 -50%; display: block; z-index: 1; }
.pdev.browser img { width: 100%; height: auto; }
.pdev.phone { left: 50%; top: 50%; bottom: auto; width: 22cqw; margin: calc(22cqw * -1.08) 0 0 -11cqw; z-index: 2; }
.pdev.phone .phone__screen img { height: 100%; object-fit: cover; object-position: top; }
@media (max-width: 860px) {
  .presets { height: 190vh; }
  .presets__pin { grid-template-columns: 1fr; grid-template-rows: auto 1fr; padding-top: 84px; }
  .presets__stage { height: 100%; min-height: 240px; }
}

/* ---------- contact ---------- */
.cta { padding: clamp(130px, 20vh, 230px) 0 clamp(90px, 13vh, 160px); }
.cta__title { font: var(--display-weight) var(--hero) / 1.06 var(--font-display); letter-spacing: var(--tr-display); margin: 0 0 .5em; max-width: 12em; }
.cta__row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- footer ---------- */
.ft { padding: 0 var(--edge) clamp(20px, 3vw, 40px); overflow: hidden; }
.ft__row { display: flex; flex-wrap: wrap; gap: 16px 40px; justify-content: space-between; align-items: center; padding: 28px 0; border-top: 1px solid var(--line); }
.ft__row nav { display: flex; flex-wrap: wrap; gap: 8px 28px; }
.ft__row nav a { font-weight: 500; }
.ft__row p { margin: 0; color: var(--fg-2); }
.ft__big { display: flex; align-items: center; gap: .38em; color: inherit; line-height: 1; padding-top: 16px; }
.ft__big .msym { height: .99em; width: auto; aspect-ratio: 300 / 170; }
.ft__word { flex: none; font: 650 1em/1 var(--font-logo); text-transform: uppercase; display: inline-flex; overflow: hidden; padding-bottom: .04em; }
.ft__word .ch { display: inline-block; transform: translateY(calc(var(--k, 1) * 105%)); will-change: transform; }

/* ---------- less motion: everything in its final place, pinned scenes become plain layouts ---------- */
@media (prefers-reduced-motion: reduce) {
  .js [data-split] .w > span, .js [data-rise] { transform: none !important; opacity: 1 !important; transition: none !important; }
}
html.reduce [data-split] .w > span, html.reduce [data-rise] { transform: none !important; opacity: 1 !important; transition: none !important; }
html.reduce .ft__word .ch { transform: none !important; }
html.reduce .show__frame { transform: none; }
html.reduce .show__frame img { transform: none; }
html.reduce .rouge, html.reduce .presets { height: auto; }
html.reduce .rouge__pin, html.reduce .presets__pin { position: relative; height: auto; min-height: 100vh; }
html.reduce .rouge__lines li { opacity: 1; transform: none; position: static; }
html.reduce .rouge__lines { height: auto; }
html.reduce .rouge__devices { min-height: 540px; }
html.reduce .pdev.phone[data-fan="-1"] { transform: translate(-38cqw, 8%) rotate(-5deg); }
html.reduce .pdev.phone[data-fan="1"] { transform: translate(38cqw, 8%) rotate(5deg); }
html.reduce .demo-calm .calm__card { animation: none !important; }
html.reduce * { transition-duration: 0s !important; }

/* ---------- support page: one form, the purpose picked from pills ---------- */
.sp { padding: clamp(130px, 20vh, 200px) 0 clamp(100px, 14vh, 160px); }
.sp__head { text-align: center; display: flex; flex-direction: column; align-items: center; margin-bottom: clamp(40px, 7vh, 64px); }
.sp__title { font: var(--display-weight) var(--hero) / 1.04 var(--font-display); letter-spacing: var(--tr-display); margin: 0 0 .4em; }
.sp__head .lead { margin: 0; }
.sp h2 { font: var(--display-weight) var(--h3) / 1.25 var(--font-display); letter-spacing: var(--tr-display); margin: 0 0 .45em; }

/* one form in one centred column */
.sf { display: block; }
.sf__col { max-width: 760px; margin: 0 auto; display: grid; gap: 22px; }
.sf__row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }

/* purpose: pills; the picked one fills with ink from the left, its label turns white as the fill passes */
.purpose { border: 0; margin: 0; padding: 0; min-width: 0; }
.purpose legend { padding: 0; margin-bottom: 8px; font-weight: 500; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { position: relative; display: inline-flex; align-items: center; height: 48px; padding: 0 20px; border-radius: 999px; background: var(--white); cursor: pointer; isolation: isolate; overflow: clip;
  transition: transform .5s var(--out), box-shadow .4s var(--out); }
.chip input { position: absolute; left: 50%; top: 50%; width: 1px; height: 1px; margin: 0; opacity: 0; pointer-events: none; }
.chip::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--ink); clip-path: inset(0 100% 0 0); transition: clip-path .55s var(--ease); }
.chip span { font-weight: 500; transition: color .25s var(--soft); }
.chip:hover { transform: translateY(-2px); }
.chip:has(input:checked)::before { clip-path: inset(0 0 0 0); }
.chip:has(input:checked) span { color: var(--white); transition-delay: .2s; }
.chip:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 3px; }
.purpose.is-invalid .chip { box-shadow: inset 0 0 0 1.5px #D2362F; }
.fld { display: grid; gap: 8px; }
.fld > span { font-weight: 500; }
.fld em { font-style: normal; color: var(--fg-2); font-weight: 400; margin-left: 6px; }
.fld input:not([type=radio]), .fld select, .fld textarea {
  width: 100%; border: 0; border-radius: 14px; background: var(--white); color: var(--ink);
  font: 400 max(16px, var(--text)) / 1.4 var(--font-body); padding: 16px 18px; outline: none;
  box-shadow: inset 0 0 0 0 var(--ink); transition: box-shadow .4s var(--out);
}
.fld textarea { resize: vertical; min-height: 170px; }
.fld input::placeholder, .fld textarea::placeholder { color: rgba(11, 12, 15, .42); }
/* focus: a line draws in around the field */
.fld input:focus, .fld select:focus, .fld textarea:focus { box-shadow: inset 0 0 0 1.5px var(--ink); }
.fld input:user-invalid, .fld select:user-invalid, .fld textarea:user-invalid { box-shadow: inset 0 0 0 1.5px #D2362F; }
.fld--select select { appearance: none; padding-right: 48px; cursor: pointer; color: rgba(11, 12, 15, .42);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M3 4.5 6 7.5 9 4.5' fill='none' stroke='%230B0C0F' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 18px center; background-size: 14px; }
.fld--select select.has-value { color: var(--ink); }

.drop { position: relative; display: grid; justify-items: center; gap: 8px; padding: 30px 20px; border-radius: 14px; background: var(--white); text-align: center; cursor: pointer; color: var(--fg-2); transition: background-color .4s var(--soft); }
.drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.drop svg { width: 26px; height: 26px; fill: none; stroke: var(--ink); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; transition: transform .6s var(--out); }
.drop:hover svg, .drop.is-over svg { transform: translateY(-4px); }
.drop.is-over { background: var(--paper-2); }
.drop:focus-within { box-shadow: inset 0 0 0 1.5px var(--ink); }
.drop__files { color: var(--ink); font-weight: 500; }
.drop__files:empty { display: none; }

.sf__trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.sf__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; margin-top: 12px; }
.sf__foot p { margin: 0; color: var(--fg-2); max-width: 24em; }
.sf.is-sent { opacity: 0; transform: translateY(-16px); transition: opacity .5s var(--soft), transform .6s var(--ease); }
.sf[hidden], .sf__done[hidden] { display: none; }

/* thanks: rises in where the form folded away, the logo draws itself */
.sf__done { display: grid; justify-items: center; text-align: center; gap: 6px; padding: 24px 0 40px; }
.sf__done .msym { width: 72px; height: auto; aspect-ratio: 300 / 170; margin-bottom: 18px; }
.sf__done h2 { font-size: var(--h2); }
.sf__done p { margin: 0 0 22px; color: var(--fg-2); }
.sf__done > * { opacity: 0; transform: translateY(20px); }
.sf__done.is-in > * { opacity: 1; transform: none; transition: opacity .7s var(--soft), transform .9s var(--out); }
.sf__done.is-in > :nth-child(2) { transition-delay: .1s; }
.sf__done.is-in > :nth-child(3) { transition-delay: .18s; }
.sf__done.is-in > :nth-child(4) { transition-delay: .26s; }
html.reduce .sf__done > * { opacity: 1; transform: none; }

/* other ways to get help: three plain columns, the arrow travels on hover */
.sp__more { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(24px, 3vw, 48px); margin-top: clamp(80px, 14vh, 140px); }
.more { display: block; }
.more p { margin: 0 0 18px; color: var(--fg-2); max-width: 22em; }
.more__go { display: inline-flex; align-items: center; gap: 10px; font-weight: 600;
  background: linear-gradient(currentColor, currentColor) 100% 100% / 0 1.5px no-repeat; padding-bottom: 3px; transition: background-size .6s var(--ease); }
.more__go svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; transition: transform .6s var(--out); }
.more:hover .more__go { background-position: 0 100%; background-size: 100% 1.5px; }
.more:hover .more__go svg { transform: translateX(6px); }

.hd__nav > a[aria-current=page] { font-weight: 600; }

@media (max-width: 860px) {
  .sp { padding-top: 120px; }
  .sf__row, .sp__more { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .chip, .chip::before, .chip span { transition: none !important; }
}

/* support form: the security check, an error line that rises in, and a busy button */
.sf__check:not(:empty) { min-height: 65px; }
.sf__error { margin: 0; padding: 14px 18px; border-radius: 14px; background: #FDECEC; color: #8F1F1A; font-weight: 500; }
.sf__error:not([hidden]) { animation: sf-rise .5s var(--out); }
@keyframes sf-rise { from { opacity: 0; transform: translateY(8px); } }
.btn.is-busy { pointer-events: none; opacity: .7; }
@media (prefers-reduced-motion: reduce) { .sf__error:not([hidden]) { animation: none; } }
