/* fx2-wow-c «The studio wall» (/lab/wow-c/): the frame that floats over the wall, and (round 2) the light menu and the page under it. Figma UI3 with the MD.TOOLS accent
   (CLAUDE.md, docs/DESIGN_SYSTEM.md, src/styles/material/01-tokens.css): white floating panels on the canvas grey, ink at
   90 / 55 / 30 %, 11/16 and 13/22, radii 5 and 13, elevation 200 / 400, the orange ladder in Figma blue's place. */

@font-face { font-family: 'Google Sans'; font-style: normal; font-weight: 400 700; font-display: swap; src: url('/fonts/ui/google-sans/google-sans-cyrillic-ext.woff2') format('woff2'); unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F; }
@font-face { font-family: 'Google Sans'; font-style: normal; font-weight: 400 700; font-display: swap; src: url('/fonts/ui/google-sans/google-sans-cyrillic.woff2') format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Google Sans'; font-style: normal; font-weight: 400 700; font-display: swap; src: url('/fonts/ui/google-sans/google-sans-latin-ext.woff2') format('woff2'); 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: 'Google Sans'; font-style: normal; font-weight: 400 700; font-display: swap; src: url('/fonts/ui/google-sans/google-sans-latin.woff2') format('woff2'); 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; }
/* fx2-welcome-perf: until Google Sans arrives the label is set in a local sans sized to its metrics (Google Sans: ascent 0.966,
   descent 0.286, no line gap, 1.008 × Arial's advance over the label's words) — the swap changes the letters, never where a line
   breaks or how tall the label is */
@font-face { font-family: 'Google Sans Fallback'; src: local('Arial'), local('Helvetica Neue'), local('Helvetica'), local('Liberation Sans'), local('Roboto'); size-adjust: 100.8%; ascent-override: 95.8%; descent-override: 28.4%; line-gap-override: 0%; }

:root {
  color-scheme: light;
  --canvas: #f5f5f5; /* canvas default fill */
  --paper: #ffffff; /* bg/default */
  --paper-2: #f5f5f5; /* bg/secondary */
  --paper-3: #e6e6e6; /* bg/tertiary */
  --line: #e6e6e6; /* border/default */
  --ink: rgba(0, 0, 0, 0.9); /* text/default */
  --ink-3: rgba(0, 0, 0, 0.55); /* text/secondary */
  --ink-5: rgba(0, 0, 0, 0.3); /* text/tertiary */
  --hover: rgba(0, 0, 0, 0.05); /* special/bghovertransparent */
  --press: rgba(0, 0, 0, 0.1);
  --brand: #db4d28; /* bg/brand · border/selected */
  --brand-hover: #be4020;
  --brand-ink: #be4020;
  --brand-tint: #fbece8;
  --on-accent: #ffffff;
  --dark: #1e1e1e; /* bg/tooltip */
  --success: #14ae5c;
  --e-canvas: 0 1px 3px rgba(0, 0, 0, 0.1), 0 3px 8px rgba(0, 0, 0, 0.1), 0 0 0.5px rgba(0, 0, 0, 0.18); /* elevation-200-canvas */
  --e-overlay: 0 2px 5px rgba(0, 0, 0, 0.15), 0 10px 16px rgba(0, 0, 0, 0.12), 0 0 0.5px rgba(0, 0, 0, 0.12); /* elevation-400-menu-panel */
  --font-ui: 'Google Sans', 'Google Sans Fallback', 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  /* fx2-wow-c-polish: the floating parts sit 16 px off the window's edges (8 on a phone): the 8 px grid; the label and the
     zoom are one width each, so the bottom bar between them knows its room */
  --gap: 16px;
  --card-w: 416px;
  --zoom-w: 120px;
  --safe-b: env(safe-area-inset-bottom, 0px);
}
:root[data-theme='dark'] {
  color-scheme: dark;
  --canvas: #1e1e1e;
  --paper: #2c2c2c;
  --paper-2: #383838;
  --paper-3: #444444;
  --line: #444444;
  --ink: #ffffff;
  --ink-3: rgba(255, 255, 255, 0.7);
  --ink-5: rgba(255, 255, 255, 0.4);
  --hover: rgba(255, 255, 255, 0.08);
  --press: rgba(255, 255, 255, 0.14);
  --brand: #c24b2c;
  --brand-hover: #a13e24;
  --brand-ink: #e7a694;
  --brand-tint: #56423c;
  --e-canvas: 0 1px 3px rgba(0, 0, 0, 0.3), 0 3px 8px rgba(0, 0, 0, 0.3), 0 0 0.5px rgba(255, 255, 255, 0.18);
  --e-overlay: 0 2px 5px rgba(0, 0, 0, 0.35), 0 10px 16px rgba(0, 0, 0, 0.35), 0 0 0.5px rgba(255, 255, 255, 0.18);
}

:root {
  /* Figma's cursors (src/styles/material/15-figma-cursors.css, from the UI3 kit; docs/CURSORS.md): the black arrow
     everywhere — Figma never turns it into a hand over a control — and the hand only while the canvas is being moved */
  --cur-black: url("data:image/svg+xml,%3Csvg width='33' height='32' viewBox='0 0 33 32' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cg filter='url(%23filter0_d_2012_308168)'%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M3.43938 2.93938C3.85531 2.52345 4.47597 2.38901 5.02673 2.59555L16.0267 6.72055C16.6416 6.95111 17.035 7.55477 16.9976 8.21034C16.9603 8.86592 16.5009 9.421 15.8638 9.58026L11.237 10.737L10.0803 15.3638C9.921 16.0009 9.36592 16.4603 8.71034 16.4976C8.05477 16.535 7.45111 16.1416 7.22055 15.5267L3.09555 4.52673C2.88901 3.97597 3.02345 3.35531 3.43938 2.93938Z' fill='white'/%3E%3C/g%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M4.67561 3.53188C4.49202 3.46303 4.28514 3.50785 4.14649 3.64649C4.00785 3.78514 3.96303 3.99202 4.03188 4.17561L8.15688 15.1756C8.23373 15.3805 8.43495 15.5117 8.65348 15.4992C8.872 15.4868 9.05703 15.3337 9.11012 15.1213L10.4124 9.91236L15.6213 8.61012C15.8337 8.55703 15.9868 8.372 15.9992 8.15348C16.0117 7.93495 15.8805 7.73373 15.6756 7.65688L4.67561 3.53188Z' fill='black'/%3E%3Cdefs%3E%3Cfilter id='filter0_d_2012_308168' x='0' y='0.5' width='20.0001' height='20.0001' filterUnits='userSpaceOnUse' color-interpolation-filters='sRGB'%3E%3CfeFlood flood-opacity='0' result='BackgroundImageFix'/%3E%3CfeColorMatrix in='SourceAlpha' type='matrix' values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0' result='hardAlpha'/%3E%3CfeOffset dy='1'/%3E%3CfeGaussianBlur stdDeviation='1.5'/%3E%3CfeColorMatrix type='matrix' values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.35 0'/%3E%3CfeBlend mode='normal' in2='BackgroundImageFix' result='effect1_dropShadow_2012_308168'/%3E%3CfeBlend mode='normal' in='SourceGraphic' in2='effect1_dropShadow_2012_308168' result='shape'/%3E%3C/filter%3E%3C/defs%3E%3C/svg%3E") 4 4, default;
  --cur-hand-new: url("data:image/svg+xml,%3Csvg width='32' height='32' viewBox='0 0 32 32' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cg filter='url(%23filter0_d_2399_6525)'%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M24.0001 16.2517V17.7895C24.0001 21.7717 20.7718 25 16.7895 25H16.5001C15.1113 25 13.8614 24.7127 12.7609 24.0696C11.6804 23.4381 10.9522 22.5837 10.418 21.8029C10.035 21.2431 9.69799 20.639 9.38814 20.0836C9.29607 19.9186 9.2064 19.7578 9.11863 19.6038C8.73276 18.9267 8.358 18.3252 7.88746 17.7605C6.91516 16.5937 7.0728 14.8597 8.23956 13.8874C9.03627 13.2235 10.0975 13.0864 11.0001 13.4377V10.75C11.0001 9.23122 12.2313 8 13.7501 8C13.8718 8 13.9919 8.00797 14.1098 8.02342C14.6135 7.39958 15.3845 7 16.2501 7C17.1157 7 17.8866 7.39958 18.3903 8.02342C18.5082 8.00797 18.6283 8 18.7501 8C20.0103 8 21.0725 8.84765 21.3977 10.0039C22.8478 10.0806 24.0001 11.2807 24.0001 12.75L24.0001 16.2517Z' fill='white'/%3E%3C/g%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M8.87972 14.6556C8.13724 15.2744 8.03692 16.3778 8.65566 17.1203C9.1824 17.7524 9.59135 18.4137 9.98743 19.1087C10.3954 19.8246 10.7773 20.5572 11.2433 21.2382C11.731 21.951 12.3591 22.6765 13.2655 23.2062C14.1845 23.7433 15.2525 24 16.5 24H16.7895C20.2195 24 23 21.2195 23 17.7895V16.2517L23 16.25V12.75C23 11.7835 22.2165 11 21.25 11C20.9816 11 20.7274 11.0604 20.5 11.1684V10.75C20.5 9.7835 19.7165 9 18.75 9C18.4479 9 18.1636 9.07658 17.9156 9.21138C17.6884 8.50843 17.0286 8 16.25 8C15.4715 8 14.8117 8.50843 14.5845 9.21138C14.3365 9.07658 14.0522 9 13.75 9C12.7835 9 12 9.7835 12 10.75V15.735C11.8005 15.4526 11.5832 15.1662 11.3444 14.8797C10.7257 14.1372 9.62221 14.0369 8.87972 14.6556Z' fill='black'/%3E%3Cg filter='url(%23filter1_d_2399_6525)'%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M12.0685 20.6735C12.5097 21.3183 13.0378 21.9149 13.77 22.3428C14.5076 22.7739 15.3939 23 16.5 23H16.7895C19.6672 23 22 20.6672 22 17.7895V16.2517L22 16.25V12.75C22 12.3358 21.6642 12 21.25 12C20.8358 12 20.5 12.3358 20.5 12.75V15.2747C20.5 15.5727 20.241 15.8046 19.9448 15.7716C19.6916 15.7435 19.5 15.5295 19.5 15.2747V10.75C19.5 10.3358 19.1642 10 18.75 10C18.3358 10 18 10.3358 18 10.75L18 14.9969C18 15.2949 17.741 15.5268 17.4448 15.4939C17.1916 15.4657 17 15.2517 17 14.9969V9.75C17 9.33579 16.6642 9 16.25 9C15.8358 9 15.5 9.33579 15.5 9.75V10.7487L15.5 10.75L15.5 14.7184C15.5 15.0165 15.241 15.249 14.9448 15.2161C14.6916 15.188 14.5 14.9739 14.5 14.7191L14.5 10.75C14.4996 10.3362 14.1639 10 13.75 10C13.3358 10 13 10.3358 13 10.75V16.25C13 16.6642 12.6642 17 12.25 17C11.9012 17 11.5827 16.8998 11.3777 16.5943C11.1392 16.239 10.875 15.8784 10.5762 15.5199C10.311 15.2017 9.83809 15.1587 9.51988 15.4238C9.20167 15.689 9.15868 16.1619 9.42385 16.4801C10.0068 17.1796 10.4499 17.9005 10.8562 18.6135C11.2508 19.3059 11.6391 20.0459 12.0685 20.6735Z' fill='white'/%3E%3C/g%3E%3Cdefs%3E%3Cfilter id='filter0_d_2399_6525' x='4.25' y='5' width='22.7501' height='24' filterUnits='userSpaceOnUse' color-interpolation-filters='sRGB'%3E%3CfeFlood flood-opacity='0' result='BackgroundImageFix'/%3E%3CfeColorMatrix in='SourceAlpha' type='matrix' values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0' result='hardAlpha'/%3E%3CfeOffset dy='1'/%3E%3CfeGaussianBlur stdDeviation='1.5'/%3E%3CfeColorMatrix type='matrix' values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.35 0'/%3E%3CfeBlend mode='normal' in2='BackgroundImageFix' result='effect1_dropShadow_2399_6525'/%3E%3CfeBlend mode='normal' in='SourceGraphic' in2='effect1_dropShadow_2399_6525' result='shape'/%3E%3C/filter%3E%3Cfilter id='filter1_d_2399_6525' x='6.25' y='7' width='18.75' height='20' filterUnits='userSpaceOnUse' color-interpolation-filters='sRGB'%3E%3CfeFlood flood-opacity='0' result='BackgroundImageFix'/%3E%3CfeColorMatrix in='SourceAlpha' type='matrix' values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0' result='hardAlpha'/%3E%3CfeOffset dy='1'/%3E%3CfeGaussianBlur stdDeviation='1.5'/%3E%3CfeColorMatrix type='matrix' values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.35 0'/%3E%3CfeBlend mode='normal' in2='BackgroundImageFix' result='effect1_dropShadow_2399_6525'/%3E%3CfeBlend mode='normal' in='SourceGraphic' in2='effect1_dropShadow_2399_6525' result='shape'/%3E%3C/filter%3E%3C/defs%3E%3C/svg%3E") 16 16, grab;
  --cur-hand-press: url("data:image/svg+xml,%3Csvg width='32' height='32' viewBox='0 0 32 32' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cg filter='url(%23filter0_d_2399_6924)'%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M23.9998 14.75L24 17.7895C24 21.7717 20.7717 25 16.7895 25H16.5C15.1181 25 13.8544 24.7159 12.7455 24.0921C11.6371 23.4686 10.8598 22.605 10.2999 21.7185C9.75648 20.858 9.39352 19.9365 9.11839 19.1369C8.96946 18.7041 8.83401 18.2693 8.70362 17.8508L8.70178 17.8449C8.59388 17.4985 8.49485 17.1808 8.39113 16.8696C7.91085 15.4288 8.68954 13.8714 10.1304 13.3911C10.4188 13.295 10.7119 13.2494 11 13.2494C11.0003 11.7309 12.2314 10.5 13.75 10.5C14.0178 10.5 14.2772 10.5385 14.5226 10.6103C14.9942 10.2292 15.5952 10 16.25 10C16.9048 10 17.5057 10.2292 17.9773 10.6103C18.2227 10.5385 18.4821 10.5 18.7498 10.5C19.8187 10.5 20.745 11.1097 21.2001 12.0004C21.2166 12.0001 21.2332 12 21.2498 12C22.7685 12 23.9997 13.2313 23.9998 14.75Z' fill='white'/%3E%3C/g%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M12 14.5637C11.5622 14.2594 10.9913 14.1582 10.4466 14.3398C9.52972 14.6454 9.03419 15.6365 9.33982 16.5534C9.4472 16.8755 9.54915 17.2027 9.65653 17.5475C9.78821 17.9701 9.91993 18.3929 10.064 18.8116C10.3299 19.5845 10.6632 20.421 11.1454 21.1845C11.6381 21.9646 12.3032 22.696 13.2358 23.2206C14.1686 23.7453 15.2569 24 16.5 24H16.7895C20.2195 24 23 21.2195 23 17.7895L23 16.0001L22.9998 14.75C22.9998 13.7835 22.2163 13 21.2498 13C20.9807 13 20.7258 13.0608 20.498 13.1693C20.4558 12.2403 19.6893 11.5 18.7498 11.5C18.3716 11.5 18.0214 11.62 17.7352 11.824C17.426 11.3292 16.8765 11 16.25 11C15.6235 11 15.0739 11.3292 14.7647 11.8241C14.4785 11.62 14.1283 11.5 13.75 11.5C12.7835 11.5 12 12.2835 12 13.25V14.5637Z' fill='black'/%3E%3Cg filter='url(%23filter1_d_2399_6924)'%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M12.043 16.8026C11.9368 16.4618 11.8275 16.1108 11.7115 15.7628C11.5805 15.3699 11.1558 15.1575 10.7628 15.2885C10.3699 15.4195 10.1575 15.8442 10.2885 16.2372C10.3995 16.5703 10.5044 16.907 10.6113 17.2501L10.6153 17.2631C10.7427 17.6721 10.8702 18.0811 11.0095 18.4862C11.2664 19.2326 11.5699 19.984 11.9909 20.6505C12.4164 21.3242 12.9693 21.9233 13.726 22.349C14.4829 22.7747 15.3958 23 16.5 23H16.7895C19.6672 23 22 20.6672 22 17.7895L21.9998 14.75C21.9998 14.3358 21.664 14 21.2498 14C20.8356 14 20.4998 14.3358 20.4998 14.75V15.2747C20.4998 15.5727 20.2408 15.8045 19.9446 15.7716C19.6914 15.7435 19.4998 15.5295 19.4998 15.2747V13.25C19.4998 12.8358 19.164 12.5 18.7498 12.5C18.3356 12.5 17.9998 12.8358 17.9998 13.25V14.997C17.9998 15.295 17.7408 15.5268 17.4447 15.4939C17.1915 15.4657 17 15.2517 17 14.997V12.75C17 12.3358 16.6642 12 16.25 12C15.8358 12 15.5 12.3358 15.5 12.75V14.7184C15.5 15.0165 15.2409 15.249 14.9448 15.2161C14.6915 15.1879 14.5 14.9739 14.5 14.7191L14.5 13.2491C14.4995 12.8353 14.1639 12.5 13.75 12.5C13.3358 12.5 13 12.8358 13 13.25V16.25L13 16.2554C13 16.3766 13.014 16.5061 12.9807 16.6243C12.9195 16.8409 12.7202 17 12.484 17C12.2648 17 12.1172 17.0409 12.043 16.8026Z' fill='white'/%3E%3C/g%3E%3Cdefs%3E%3Cfilter id='filter0_d_2399_6924' x='5.24927' y='8' width='21.7507' height='21' filterUnits='userSpaceOnUse' color-interpolation-filters='sRGB'%3E%3CfeFlood flood-opacity='0' result='BackgroundImageFix'/%3E%3CfeColorMatrix in='SourceAlpha' type='matrix' values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0' result='hardAlpha'/%3E%3CfeOffset dy='1'/%3E%3CfeGaussianBlur stdDeviation='1.5'/%3E%3CfeColorMatrix type='matrix' values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.35 0'/%3E%3CfeBlend mode='normal' in2='BackgroundImageFix' result='effect1_dropShadow_2399_6924'/%3E%3CfeBlend mode='normal' in='SourceGraphic' in2='effect1_dropShadow_2399_6924' result='shape'/%3E%3C/filter%3E%3Cfilter id='filter1_d_2399_6924' x='7.24979' y='10' width='17.7502' height='17' filterUnits='userSpaceOnUse' color-interpolation-filters='sRGB'%3E%3CfeFlood flood-opacity='0' result='BackgroundImageFix'/%3E%3CfeColorMatrix in='SourceAlpha' type='matrix' values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0' result='hardAlpha'/%3E%3CfeOffset dy='1'/%3E%3CfeGaussianBlur stdDeviation='1.5'/%3E%3CfeColorMatrix type='matrix' values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.35 0'/%3E%3CfeBlend mode='normal' in2='BackgroundImageFix' result='effect1_dropShadow_2399_6924'/%3E%3CfeBlend mode='normal' in='SourceGraphic' in2='effect1_dropShadow_2399_6924' result='shape'/%3E%3C/filter%3E%3C/defs%3E%3C/svg%3E") 16 16, grabbing;
}

/* fx2-wow-c-r2: the light menu's glass — the panel colour, see-through, over a blur of what is under it */
:root { --glass: rgba(255, 255, 255, 0.78); }
:root[data-theme='dark'] { --glass: rgba(44, 44, 44, 0.8); }

/* fx2-wow-c-ship: a page holds one language now (its address says which: /welcome, /uk/welcome, /pl/welcome) */
.defs { position: absolute; width: 0; height: 0; overflow: hidden; }
/* «Skip to content» (WCAG 2.4.1): off screen until the keyboard lands on it, then a 24 px secondary button */
.skip { position: absolute; left: 12px; top: 12px; z-index: 100; display: inline-flex; align-items: center; height: 24px; padding: 0 8px; border-radius: 5px; background: var(--paper); box-shadow: inset 0 0 0 1px var(--line); color: var(--ink); font-weight: 550; text-decoration: none; }
.skip:not(:focus) { width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.more:focus { outline: none; }

* { box-sizing: border-box; }
html {
  background: var(--canvas);
  /* fx2-wow-c-r2: the page scrolls now — the wall is its first screen, what the editor does is under it */
  overflow-x: hidden;
  overscroll-behavior-y: none;
  scroll-padding-top: 72px;
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
/* a piece opened: the page holds still under it */
html.editing, html.editing body { overflow: hidden; }
body {
  margin: 0;
  min-height: 100%;
  background: var(--canvas);
  color: var(--ink);
  font: 450 11px/16px var(--font-ui);
  letter-spacing: 0.005em;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  text-rendering: optimizeLegibility;
}
a { color: inherit; }
button { font: inherit; color: inherit; letter-spacing: inherit; }

/* the wall: the page's first screen, every one of its floating parts inside it (they scroll away with it) */
.stage {
  position: relative;
  height: 100vh;
  height: 100svh;
  min-height: 480px;
  overflow: hidden;
  isolation: isolate;
}
/* the wall's foot fades into the page under it */
.stage::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 56px;
  background: linear-gradient(to bottom, transparent, var(--canvas));
  pointer-events: none;
  z-index: 1;
}
#wall {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  touch-action: none;
  cursor: var(--cur-black);
  outline: none;
}
/* fx2-welcome-perf: the canvas shows only once the wall is ready (wall.js boot) — never its blank (an opaque canvas is black
   until its first frame), never a wall of flat colour; it comes in over 0.4 s as the walk-in starts */
#wall { opacity: 0; transition: opacity 0.42s cubic-bezier(0.2, 0, 0, 1); }
html.wall-on #wall { opacity: 1; }
@media (prefers-reduced-motion: reduce) {
  #wall { transition: none; }
}
/* the first second: the «P» drawing itself, a hairline under it that fills as the wall really arrives — invisible for its first
   0.3 s (a fast connection never sees it), skipped on a repeat visit (html.boot-skip), gone the moment the wall is ready */
.boot {
  position: absolute;
  left: 50%;
  top: 46%;
  z-index: 2;
  display: grid;
  justify-items: center;
  gap: 14px;
  color: var(--brand);
  opacity: 0;
  transform: translate(-50%, -50%);
  pointer-events: none;
  animation: boot-in 0.24s ease 0.3s forwards;
}
.boot-mark { display: block; width: 40px; height: 41px; overflow: visible; }
.boot-p {
  fill: currentColor;
  fill-opacity: 0;
  stroke: currentColor;
  stroke-width: 5;
  stroke-linejoin: round;
  stroke-dasharray: 1 1;
  stroke-dashoffset: 1;
  animation: boot-draw 0.9s cubic-bezier(0.45, 0, 0.2, 1) 0.3s forwards, boot-fill 0.3s ease 1.05s forwards;
}
.boot-bar { display: block; width: 56px; height: 2px; border-radius: 1px; background: var(--line); overflow: hidden; }
.boot-bar i { display: block; height: 100%; background: currentColor; transform: scaleX(var(--boot-p, 0.04)); transform-origin: 0 50%; transition: transform 0.24s cubic-bezier(0.2, 0, 0, 1); }
/* fx2-home-10: the hairline fills to its end first (wall.js bootTick(true)), then the mark leaves */
.boot.out { animation: boot-out 0.26s ease 0.16s both; }
html.boot-skip .boot, html.wall-on .boot:not(.out) { display: none; }
@keyframes boot-in { to { opacity: 1; } }
@keyframes boot-out { from { opacity: 1; } to { opacity: 0; transform: translate(-50%, -50%) scale(0.92); } }
@keyframes boot-draw { to { stroke-dashoffset: 0; } }
@keyframes boot-fill { to { fill-opacity: 1; stroke-width: 0; } }
@media (prefers-reduced-motion: reduce) {
  /* a still frame: the mark whole, no drawing; the hairline still says how far the wall has come */
  .boot-p { animation: none; fill-opacity: 1; stroke: none; }
  .boot { animation-duration: 0.01s; }
  .boot.out { animation-duration: 0.01s; }
  .boot-bar i { transition: none; }
}
@media (max-width: 640px) {
  /* a phone: in the wall's open part, above the label sheet */
  .boot { top: 34%; }
}
#wall.over { cursor: var(--cur-black); }
#wall.grab { cursor: var(--cur-hand-new); }
#wall.grabbing { cursor: var(--cur-hand-press); }
body, a, button { cursor: var(--cur-black); }
textarea { cursor: text; }

/* ---------------------------------------------------------------- floating surfaces */
.pill {
  background: var(--paper);
  border-radius: 13px;
  box-shadow: var(--e-canvas);
}

/* the light menu: two floating panels at the top — the logo and the site, the language and the one accent button — with
   the wall open between them, so a hand on the canvas is never a hand on the menu. Translucent over the wall and the page,
   it stays as the page scrolls. */
.bar {
  position: fixed;
  top: var(--gap);
  left: var(--gap);
  right: var(--gap);
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: var(--gap);
  pointer-events: none;
  z-index: 10;
}
.bar > * { pointer-events: auto; }
.bar .pill {
  height: 40px;
  display: inline-flex;
  align-items: center;
  background: var(--glass);
  -webkit-backdrop-filter: blur(20px) saturate(1.6);
  backdrop-filter: blur(20px) saturate(1.6);
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .bar .pill { background: var(--paper); }
}
.bar-l { padding: 0 4px 0 0; gap: 2px; min-width: 0; }
.bar-r { padding: 0 4px 0 8px; gap: 8px; }
.mark {
  height: 40px;
  padding: 0 12px 0 14px;
  display: inline-flex;
  align-items: center;
  color: var(--ink);
  text-decoration: none;
  border-radius: 13px;
}
.mark-svg { display: block; width: 62px; height: 20px; }
.bar-sep { width: 1px; height: 16px; margin: 0 6px 0 0; background: var(--line); flex: none; }
.nav {
  height: 32px;
  padding: 0 10px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border-radius: 5px;
  color: var(--ink);
  font: 450 13px/22px var(--font-ui);
  letter-spacing: 0;
  text-decoration: none;
  white-space: nowrap;
}
.nav:hover { background: var(--hover); }
.ext { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 1.25; stroke-linecap: round; stroke-linejoin: round; opacity: 0.55; }
/* Telegram: only while the bot is live (boot.js TELEGRAM_LIVE; ?tg=1 to preview) */
html .tg { display: none; }
html[data-tg='on'] .nav.tg { display: inline-flex; }
html[data-tg='on'] .m-item.tg { display: flex; }
.langs { height: 32px; display: inline-flex; align-items: center; gap: 2px; }
.langs a {
  height: 24px;
  min-width: 32px;
  padding: 0 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 5px;
  text-decoration: none;
  color: var(--ink-3);
  font-weight: 450;
}
.langs a:hover { background: var(--hover); color: var(--ink); }
html[lang='en'] [data-lang='en'], html[lang='uk'] [data-lang='uk'], html[lang='pl'] [data-lang='pl'] { background: var(--paper-2); color: var(--ink); font-weight: 550; }
.menu-btn {
  display: none;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 5px;
  background: transparent;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.menu-btn:hover, .menu-btn[aria-expanded='true'] { background: var(--hover); }
.menu-btn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.25; stroke-linecap: round; }
/* the phone's menu: Figma's dark menu, rows a finger can take */
.menu {
  position: absolute;
  top: calc(36px + 8px);
  right: 0;
  width: min(280px, calc(100vw - 2 * var(--gap)));
  padding: 8px;
  display: flex;
  flex-direction: column;
  background: var(--dark);
  color: #ffffff;
  border-radius: 13px;
  box-shadow: var(--e-overlay);
  transform-origin: 100% 0;
  animation: menu-in 0.18s cubic-bezier(0.2, 0, 0, 1);
}
.menu[hidden] { display: none; }
:root[data-theme='dark'] .menu { box-shadow: 0 0 0 1px #444444, var(--e-overlay); }
@keyframes menu-in { from { opacity: 0; transform: translateY(-4px) scale(0.98); } }
.m-item {
  height: 40px;
  padding: 0 12px;
  display: flex;
  align-items: center;
  gap: 6px;
  border-radius: 5px;
  color: #ffffff;
  font: 450 13px/22px var(--font-ui);
  letter-spacing: 0;
  text-decoration: none;
}
.m-item:hover, .m-item:focus-visible { background: rgba(255, 255, 255, 0.08); }
.m-item .ext { opacity: 0.6; }
.m-sep { height: 1px; margin: 8px 4px; background: rgba(255, 255, 255, 0.12); }
.m-langs { display: flex; gap: 4px; padding: 0 4px 8px; }
.m-langs a {
  flex: 1;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 5px;
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
}
.m-langs a:hover { background: rgba(255, 255, 255, 0.08); color: #ffffff; }
html[lang='en'] .m-langs [data-lang='en'], html[lang='uk'] .m-langs [data-lang='uk'], html[lang='pl'] .m-langs [data-lang='pl'] { background: rgba(255, 255, 255, 0.14); color: #ffffff; font-weight: 550; }
.m-go { height: 40px; margin: 0 4px 4px; }

/* the wall's label: one line, what it is, one button */
.card {
  position: absolute;
  left: var(--gap);
  bottom: var(--gap);
  width: var(--card-w);
  padding: 24px;
  background: var(--paper);
  border-radius: 13px;
  box-shadow: var(--e-overlay);
  z-index: 3;
  transition: opacity 0.24s ease, transform 0.32s cubic-bezier(0.2, 0, 0, 1);
}
.line {
  margin: 0;
  font: 600 32px/38px var(--font-ui);
  letter-spacing: -0.02em;
  color: var(--ink);
  text-wrap: balance;
}
/* fx2-wow-c-ship: the H1 opens with what Paletoo is (the classic page's eyebrow, the phrase people search for), as the label's
   quiet first line — the line itself stays the one big sentence */
/* fx2-home-01: what Paletoo is (and that it is free) reads first, in ink — the eyebrow is the 3-second answer, the line its
   proof; every part of the label on one left edge and the 4 px grid: 24 px all round, 8 between the words, 20 above the action */
.line .eyebrow { display: block; margin: 0 0 8px; font: 550 13px/22px var(--font-ui); letter-spacing: 0; color: var(--ink); }
.line .eyebrow .free { color: var(--ink-3); font-weight: 450; }
.line .line-text { display: block; }
.sub { margin: 8px 0 0; font: 450 13px/22px var(--font-ui); letter-spacing: 0; color: var(--ink-3); text-wrap: pretty; }
/* the one orange action, the facts under it on the same left edge (beside it they broke into three lines in Ukrainian) */
.act { margin-top: 20px; display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.act .btn { height: 40px; padding: 0 20px; }
.facts { margin: 0; color: var(--ink-3); text-wrap: balance; }
.facts .n { color: var(--ink); font-weight: 550; }
.btn {
  height: 32px;
  padding: 0 14px;
  border: 0;
  border-radius: 5px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font: 550 13px/22px var(--font-ui);
  letter-spacing: 0;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
}
.btn.primary { background: var(--brand); color: var(--on-accent); }
.btn.primary:hover { background: var(--brand-hover); }
.btn.ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }
.btn.ghost:hover { background: var(--hover); }
.btn.big { height: 40px; padding: 0 20px; }
/* fx2-home-01: one orange action on screen. The menu's «Open the editor» is a quiet (secondary) button while the label's
   orange one — or the close's, further down — is in view, and takes the accent once neither is (wall.js `card-out`), so
   the page always offers the editor in orange exactly once. Quiet by default: no orange flash before the script runs. */
html:not(.card-out) .bar-go { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }
html:not(.card-out) .bar-go:hover { background: var(--hover); }
.bar-go { transition: background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.btn.primary:focus-visible { outline-offset: 2px; }

/* the bottom of the wall: the way down, on one baseline with the label and the zoom (the window's edge less 16 px) —
   fx2-wow-c-nohint: the hint pill that stood beside it is gone (the owner, 11.11), so the way down is alone and centres on the
   window itself (the room either side of it as wide as the label plus two gaps, so it never reaches the label or the zoom) */
.dock {
  position: absolute;
  left: calc(2 * var(--gap) + var(--card-w));
  right: calc(2 * var(--gap) + var(--card-w));
  bottom: var(--gap);
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: 8px;
  z-index: 2;
  pointer-events: none;
}
.dock > * { pointer-events: auto; }
/* the way down: a calm label and a chevron — a link to the section under the wall, so a keyboard takes it too */
.down {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  color: var(--ink-3);
  text-decoration: none;
  white-space: nowrap;
}
.down svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.25; stroke-linecap: round; stroke-linejoin: round; }
.down:hover { color: var(--ink); }
.down-dock { flex: none; height: 40px; padding: 0 12px 0 16px; }
.down-dock:hover { background: var(--paper); box-shadow: var(--e-overlay); }
@media (prefers-reduced-motion: no-preference) {
  /* once, after the opening and its one demo peel: the chevron nods down twice */
  .down-dock svg { animation: nod 1.1s cubic-bezier(0.4, 0, 0.2, 1) 5.2s 2; }
}
@keyframes nod { 40% { transform: translateY(3px); } }
.down-card { display: none; }

.zoom {
  position: absolute;
  right: var(--gap);
  bottom: var(--gap);
  width: var(--zoom-w);
  height: 40px;
  padding: 0 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
  z-index: 3;
}
.zoom button {
  height: 24px;
  border: 0;
  border-radius: 5px;
  background: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.zoom button:hover { background: var(--hover); }
.zoom button:active { background: var(--press); }
.ib { width: 24px; }
.ib svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1; }
.zv { min-width: 48px; padding: 0 6px; font-variant-numeric: tabular-nums; color: var(--ink); }


/* ---------------------------------------------------------------- the stack readout and the opened piece */
/* the stack readout under a piece: Figma's dark tooltip, one chip per effect step */
.tip {
  position: absolute;
  left: 0;
  top: 0;
  max-width: min(480px, calc(100vw - 16px));
  min-height: 24px;
  padding: 4px 8px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2px 8px;
  border-radius: 5px;
  background: var(--dark);
  color: #ffffff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1), 0 5px 12px rgba(0, 0, 0, 0.13), 0 0 0.5px rgba(0, 0, 0, 0.15);
  pointer-events: none;
  z-index: 4;
  will-change: transform;
}
.tip[hidden] { display: none; }
/* on the dark canvas a dark tooltip needs Figma's dark menu edge (border/default, #444) to stand off it */
:root[data-theme='dark'] .tip { box-shadow: 0 0 0 1px #444444, 0 1px 3px rgba(0, 0, 0, 0.3), 0 5px 12px rgba(0, 0, 0, 0.35); }
.tip .k { color: rgba(255, 255, 255, 0.4); }
/* fx2-wow-c-effects: a chip is a step the peel visibly takes off and puts back — its eye open while it is on the piece,
   closed (and the name dimmed, never struck through) while it is off; the one coming off or going on now in the accent */
.tip .st { display: inline-flex; align-items: center; gap: 2px; transition: color 0.18s ease; white-space: nowrap; }
.tip .st svg { width: 12px; height: 12px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.2; }
.tip .st.off { color: rgba(255, 255, 255, 0.4); }
.tip .st.now { color: #eca28e; }
.tip .st.bare { color: #ffffff; }
/* fx2-wow-c-effects-2: the effect arriving now rises into its place as it comes on the piece */
@media (prefers-reduced-motion: no-preference) {
  .tip .st.now { animation: st-in 0.32s cubic-bezier(0.2, 0.9, 0.3, 1.25) both; }
}
@keyframes st-in {
  from { transform: translateY(3px) scale(0.92); opacity: 0.4; }
  to { transform: none; opacity: 1; }
}
.tip .sep { color: rgba(255, 255, 255, 0.25); }
.tip .open { color: rgba(255, 255, 255, 0.7); }

/* ---------------------------------------------------------------- the piece opened: Figma's floating inspector */
.panel {
  position: absolute;
  top: calc(var(--gap) + 48px);
  right: var(--gap);
  width: 296px;
  max-height: calc(100% - 2 * var(--gap) - 48px);
  display: flex;
  flex-direction: column;
  background: var(--paper);
  border-radius: 13px;
  box-shadow: var(--e-overlay);
  z-index: 5;
  overflow: hidden;
  transform-origin: 100% 0;
  animation: panel-in 0.28s cubic-bezier(0.2, 0, 0, 1);
}
.panel[hidden] { display: none; }
@keyframes panel-in { from { opacity: 0; transform: translateX(12px) scale(0.98); } }
.p-head { height: 48px; padding: 0 8px 0 16px; display: flex; align-items: center; gap: 8px; flex: none; }
.p-title { flex: 1; min-width: 0; margin: 0; font: 550 11px/16px var(--font-ui); letter-spacing: 0.005em; }
.p-title span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.p-title .p-series { font-weight: 450; color: var(--ink-3); }
.p-close { width: 24px; height: 24px; border: 0; border-radius: 5px; background: transparent; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; flex: none; }
.p-close:hover { background: var(--hover); }
.p-close svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1; }
.p-body { overflow: auto; flex: 1 1 auto; padding-bottom: 8px; }
.p-status { margin: 0 16px; min-height: 24px; padding: 4px 0; display: flex; align-items: flex-start; gap: 6px; color: var(--ink-3); }
.p-status .dot { width: 6px; height: 6px; margin-top: 5px; border-radius: 50%; background: var(--ink-5); flex: none; }
.p-status .bar { align-self: center; }
.p-status.live .dot { background: var(--success); }
.p-status .bar { flex: 1; height: 2px; border-radius: 1px; background: var(--paper-3); overflow: hidden; position: relative; }
.p-status .bar i { position: absolute; inset: 0 auto 0 0; width: 30%; background: var(--brand); animation: bar 1.1s cubic-bezier(0.4, 0, 0.2, 1) infinite; }
@keyframes bar { from { transform: translateX(-100%); } to { transform: translateX(340%); } }
.p-sec { padding: 0 8px; }
.p-sec + .p-sec { margin-top: 4px; }
.p-sh { height: 40px; padding: 0 8px; display: flex; align-items: center; gap: 8px; font-weight: 550; }
.p-sh .p-count { color: var(--ink-3); font-weight: 450; }
.p-field { display: block; padding: 0 8px 8px; }
.p-field span { display: block; color: var(--ink-3); margin-bottom: 4px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.p-field textarea {
  display: block;
  width: 100%;
  min-height: 24px;
  padding: 4px 8px;
  border: 0;
  border-radius: 5px;
  background: var(--paper-2);
  color: var(--ink);
  font: 450 11px/16px var(--font-ui);
  letter-spacing: 0.005em;
  resize: none;
  overflow: hidden;
  field-sizing: content;
}
.p-field textarea:hover { box-shadow: inset 0 0 0 1px var(--line); }
.p-field textarea:focus { outline: none; box-shadow: inset 0 0 0 1px var(--brand); }
.p-row { height: 32px; padding: 0 4px 0 8px; display: flex; align-items: center; gap: 8px; border-radius: 5px; }
.p-row:hover { background: var(--hover); }
.p-row .p-ic { width: 24px; height: 24px; flex: none; border-radius: 2px; background: var(--paper-3); display: inline-flex; align-items: center; justify-content: center; font: 550 11px/1 var(--font-ui); color: var(--ink-3); }
.p-row .p-pic { width: 24px; height: 24px; flex: none; border-radius: 2px; object-fit: cover; background: var(--paper-3); }
.p-row.off .p-pic { opacity: 0.4; }
.p-row .p-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.p-row.off .p-name { color: var(--ink-5); }
.p-row .p-n { color: var(--ink-3); font-variant-numeric: tabular-nums; }
.p-eye { width: 24px; height: 24px; border: 0; border-radius: 5px; background: transparent; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; color: var(--ink-3); }
.p-eye:hover { background: var(--hover); color: var(--ink); }
.p-eye svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1; }
.p-row.off .p-eye { color: var(--ink-5); }
.p-note { margin: 6px 8px 0; color: var(--ink-3); }
.p-export { height: 32px; padding: 0 8px; display: flex; align-items: center; gap: 4px; }
.p-chip { height: 24px; padding: 0 8px; border-radius: 5px; background: var(--paper-2); display: inline-flex; align-items: center; }
.p-dim { margin-left: auto; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.p-exp { width: calc(100% - 16px); margin: 4px 8px 0; height: 24px; font: 450 11px/16px var(--font-ui); letter-spacing: 0.005em; overflow: hidden; text-overflow: ellipsis; justify-content: center; }
.p-foot { flex: none; padding: 12px 16px 16px; display: grid; gap: 8px; border-top: 1px solid var(--line); }
.p-foot .btn { width: 100%; }
.p-foot .p-keys { color: var(--ink-3); text-align: center; }


/* ---------------------------------------------------------------- keyboard and screen readers: the pieces as a list */
.sr-list { position: absolute; left: 0; top: 0; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.sr-list button { position: absolute; left: 0; top: 0; width: 1px; height: 1px; padding: 0; border: 0; }
.nojs { position: fixed; left: 24px; bottom: 24px; font-size: 13px; }

/* the wall opened onto a piece: the label and the way down step aside */
html.editing .card { opacity: 0; transform: translateY(12px); pointer-events: none; }
html.editing .dock { opacity: 0; pointer-events: none; }
html.editing .dock > * { pointer-events: none; }

/* ---------------------------------------------------------------- under the wall: what matters, each shown by the product */
.more {
  position: relative;
  padding: 112px 24px 0;
  background: var(--canvas);
}
.more-title {
  max-width: 1200px;
  margin: 0 auto 120px;
  font: 600 56px/64px var(--font-ui);
  letter-spacing: -0.028em;
  text-wrap: balance;
}
/* fx2-welcome-sections-a (owner 13.11: «всё в кучу»): one feature a block, the width of the page — its words on one side, its
   demo on the other, the sides alternating; a big heading and a short lead; 160 px between blocks (the 8 px grid) */
.feats {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  gap: 160px;
}
.feat {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  align-items: center;
  gap: 80px;
}
.feat:nth-child(even) { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.feat:nth-child(even) > .feat-copy { order: 2; justify-self: end; }
.feat-copy { max-width: 440px; }
.feat-n { display: block; margin-bottom: 16px; font: 550 11px/16px ui-monospace, 'SF Mono', Menlo, Consolas, monospace; letter-spacing: 0.04em; color: var(--brand-ink); }
.feat h3 { margin: 0; font: 600 40px/48px var(--font-ui); letter-spacing: -0.022em; text-wrap: balance; }
.feat p { margin: 16px 0 0; max-width: 40ch; font: 450 17px/28px var(--font-ui); letter-spacing: -0.003em; color: var(--ink-3); text-wrap: pretty; }
.more-link { color: var(--brand-ink); text-decoration: none; white-space: nowrap; }
.more-link:hover { text-decoration: underline; text-underline-offset: 3px; }
.demo {
  position: relative;
  aspect-ratio: 7 / 5;
  border-radius: 13px;
  overflow: hidden;
  background: var(--paper);
  box-shadow: var(--e-canvas);
}
.demo video, .demo .poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.demo video { opacity: 0; transition: opacity 0.3s ease; }
.demo video.on { opacity: 1; }

/* the effect stack, peeled in a loop: a real piece's own stages (the wall's), its steps as the editor lists them */
.demo-stack, .demo-words {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  grid-template-rows: minmax(0, 1fr);
  align-items: center;
  gap: 20px;
  padding: 24px;
  background: var(--paper-2);
}
.ds-art, .dw-art {
  position: relative;
  height: 100%;
  max-height: 100%;
  width: auto;
  border-radius: 2px;
  overflow: hidden;
  box-shadow: var(--e-canvas);
  background: var(--paper-3);
}
/* fx2-welcome-stack-wow: two posters, one shown (a crossfade between them); a seam reveals the stack (more.js stack()). The box
   is the wider poster's; each poster is its own sheet, centred in it */
.demo-stack .ds-art { aspect-ratio: 0.8; overflow: visible; box-shadow: none; background: none; border-radius: 0; transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1); outline-offset: 4px; }
.demo-stack .ds-art.tilt { transition-duration: 0.15s; }
.ds-scene { position: absolute; top: 0; left: 50%; height: 100%; transform: translateX(-50%); border-radius: 2px; overflow: hidden; box-shadow: var(--e-canvas); background: var(--paper-3); cursor: ew-resize; touch-action: pan-y; user-select: none; -webkit-user-select: none; -webkit-tap-highlight-color: transparent; }
.ds-scene[hidden] { display: none; }
.ds-scene.in { animation: ds-in 0.55s cubic-bezier(0.2, 0.8, 0.2, 1) both; }
.ds-scene.out { animation: ds-out 0.45s ease both; }
@keyframes ds-in { from { opacity: 0; transform: translateX(-50%) scale(0.96); } }
@keyframes ds-out { to { opacity: 0; transform: translateX(-50%) scale(1.02); } }
.ds-scene .ly, .ds-clip, .ds-seam { position: absolute; inset: 0; }
.ds-scene .ly { background-repeat: no-repeat; background-size: var(--fs); }
.ds-clip, .ds-clip > .ly, .ds-seam { will-change: transform; }
.ds-clip { overflow: hidden; }
/* the seam: a crisp light line, a soft accent glow, a knob to take */
.ds-seam { pointer-events: none; transition: opacity 0.16s ease; }
.ds-seam::before { content: ''; position: absolute; top: 0; bottom: 0; left: -0.5px; width: 1px; background: #fff; box-shadow: 0 0 6px 1px rgb(219 77 40 / 0.85), 0 0 22px 4px rgb(219 77 40 / 0.4); }
.ds-knob { position: absolute; top: 50%; left: -12px; width: 24px; height: 24px; margin-top: -12px; border-radius: 50%; background: #fff; color: rgba(0, 0, 0, 0.9); box-shadow: 0 0 0 1px rgb(219 77 40 / 0.55), 0 1px 3px rgba(0, 0, 0, 0.2), 0 3px 8px rgba(0, 0, 0, 0.2); display: flex; align-items: center; justify-content: center; transition: transform 0.18s ease; }
.ds-knob svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.25; stroke-linecap: round; stroke-linejoin: round; }
.ds-scene:hover .ds-knob { transform: scale(1.1); }
.ds-scene:active .ds-knob { transform: scale(0.94); }
/* the seam reaching an edge: a light passes over the poster */
.ds-scene::after { content: ''; position: absolute; inset: 0; pointer-events: none; opacity: 0; background: linear-gradient(105deg, transparent 38%, rgba(255, 255, 255, 0.35) 48%, rgba(255, 255, 255, 0.6) 50%, rgba(255, 255, 255, 0.35) 52%, transparent 62%); mix-blend-mode: soft-light; }
.ds-scene.shine::after { animation: ds-shine 0.95s cubic-bezier(0.3, 0.6, 0.2, 1); }
.ds-scene.shine-r::after { animation: ds-shine 0.95s cubic-bezier(0.3, 0.6, 0.2, 1) reverse; }
@keyframes ds-shine { from { opacity: 1; transform: translateX(-100%); } to { opacity: 1; transform: translateX(100%); } }
.ds-glare { position: absolute; inset: -50%; pointer-events: none; opacity: 0; background: radial-gradient(circle, rgba(255, 255, 255, 0.3), transparent 35%); mix-blend-mode: soft-light; transition: opacity 0.3s ease; }
.ds-art.tilt .ds-glare { opacity: 1; }
/* a row's step alone, and its name */
.ds-iso { opacity: 0; transition: opacity 0.16s ease; }
.ds-chip { position: absolute; left: 8px; bottom: 8px; max-width: calc(100% - 16px); height: 20px; padding: 0 6px; border-radius: 5px; background: var(--dark); color: #fff; font: 450 11px/20px ui-monospace, 'SF Mono', Menlo, Consolas, monospace; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; opacity: 0; transform: translateY(4px); transition: opacity 0.16s ease, transform 0.16s ease; pointer-events: none; }
.isolating .ds-iso, .isolating .ds-chip { opacity: 1; transform: none; }
.isolating .ds-seam { opacity: 0; }
/* each row's tint: the share of the poster its step is on */
.ds-row { position: relative; overflow: hidden; }
.ds-row > :not(.ds-fill) { position: relative; }
.ds-fill { position: absolute; inset: 0; background: var(--brand-tint); transform: scaleX(0); transform-origin: 0 50%; pointer-events: none; }
.isolating .ds-row:not(.iso) { opacity: 0.4; }
.ds-row.iso { box-shadow: inset 0 0 0 1px var(--brand); }
.turning .ds-rows { animation: ds-rows 0.4s ease both; }
@keyframes ds-rows { from { opacity: 0; transform: translateY(4px); } }
/* the posters: two thumbnails at the end of the panel's head */
.ds-picks { margin-left: auto; margin-right: -8px; display: flex; }
.ds-pick { height: 32px; padding: 0 4px; border: 0; border-radius: 5px; background: none; display: inline-flex; align-items: center; cursor: pointer; }
.ds-pick:hover { background: var(--hover); }
.ds-pick i { display: block; height: 22px; border-radius: 2px; background: var(--paper-3) no-repeat; box-shadow: 0 0 0 1px var(--line); transition: box-shadow 0.18s ease; }
.ds-pick[aria-pressed='true'] i { box-shadow: 0 0 0 1px var(--paper), 0 0 0 2px var(--brand); }
@media (prefers-reduced-motion: reduce) {
  .demo-stack .ds-art, .ds-scene.in, .ds-scene.out, .turning .ds-rows { transition: none; animation: none; }
  .ds-scene { cursor: pointer; }
  .ds-seam, .ds-glare { display: none; }
}
.ds-panel, .dw-panel {
  align-self: center;
  padding: 0 0 8px;
  background: var(--paper);
  border-radius: 13px;
  box-shadow: var(--e-canvas);
  overflow: hidden;
}
.ds-head { height: 40px; padding: 0 16px; display: flex; align-items: center; gap: 8px; font-weight: 550; }
.ds-count { color: var(--ink-3); font-weight: 450; }
.ds-rows { padding: 0 8px; }
.ds-row {
  width: 100%;
  height: 32px;
  padding: 0 4px 0 8px;
  border: 0;
  border-radius: 5px;
  background: transparent;
  display: flex;
  align-items: center;
  gap: 8px;
  text-align: left;
  cursor: pointer;
  transition: background 0.18s ease, opacity 0.18s ease;
}
.ds-row:hover, .ds-row.now { background: var(--hover); }
.ds-row img, .ds-row .ds-ic { width: 24px; height: 24px; flex: none; border-radius: 2px; object-fit: cover; background: var(--paper-3); transition: opacity 0.18s ease; }
.ds-row .ds-ic { display: inline-flex; align-items: center; justify-content: center; font: 550 11px/1 var(--font-ui); color: var(--ink-3); }
.ds-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; transition: color 0.18s ease; }
.ds-eye { width: 24px; height: 24px; flex: none; display: inline-flex; align-items: center; justify-content: center; color: var(--ink-3); }
.ds-eye svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1; }
.ds-row.off img, .ds-row.off .ds-ic { opacity: 0.4; }
.ds-row.off .ds-name { color: var(--ink-5); text-decoration: line-through; text-decoration-thickness: 1px; }
.ds-row.off .ds-eye { color: var(--ink-5); }

/* a template with your words: its picture, then the editor's renderer drawing it live once you type */
.dw-pic, .dw-live { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.dw-live { opacity: 0; transition: opacity 0.2s ease; }
.dw-live.on { opacity: 1; }
.dw-panel { padding: 12px 8px 8px; }
.dw-field { display: block; padding: 0 8px; }
.dw-field > span { display: block; margin-bottom: 4px; color: var(--ink-3); }
.dw-field textarea {
  display: block;
  width: 100%;
  min-height: 48px;
  padding: 4px 8px;
  border: 0;
  border-radius: 5px;
  background: var(--paper-2);
  color: var(--ink);
  font: 450 11px/16px var(--font-ui);
  letter-spacing: 0.005em;
  resize: none;
}
.dw-field textarea:hover { box-shadow: inset 0 0 0 1px var(--line); }
.dw-field textarea:focus { outline: none; box-shadow: inset 0 0 0 1px var(--brand); }
.dw-status { margin: 8px 8px 0; min-height: 16px; display: flex; align-items: flex-start; gap: 6px; color: var(--ink-3); }
.dw-status .dot { width: 6px; height: 6px; margin-top: 5px; border-radius: 50%; background: var(--ink-5); flex: none; }
.dw-status.live .dot { background: var(--success); }

/* the close: one line, one button */
/* ---------------------------------------------------------------- fx2-welcome-sections-a: a narrower window stacks the blocks */
@media (max-width: 1000px) {
  .feats { gap: 120px; }
  .feat, .feat:nth-child(even) { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .feat:nth-child(even) > .feat-copy { order: 0; justify-self: start; }
  .feat-copy { max-width: 560px; }
  .more-title { margin-bottom: 96px; font-size: 44px; line-height: 52px; }
}

/* ---------------------------------------------------------------- fx2-welcome-sections-a: «Remove the background», by hand
   four photos and the editor's own cut-out of each (scripts/landing/cut-pairs.mjs); «Remove background» runs a scan down the
   photo — above the line the background is gone, the subject lifts — and the other three follow, as a batch does; the
   swatches lay the cut-outs on a colour (more.js cut()). Transforms, opacity and clip only. */
.demo-cut, .demo-export {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 216px;
  align-items: center;
  gap: 24px;
  padding: 24px;
  background: var(--paper-2);
}
.dc-stage, .dx-stage { position: relative; height: 100%; min-height: 0; display: flex; align-items: center; justify-content: center; }
.dc-frame {
  position: relative;
  height: 100%;
  aspect-ratio: 4 / 5;
  border-radius: 2px;
  overflow: hidden;
  box-shadow: var(--e-canvas);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  --sw: transparent;
}
.dc-frame:focus-visible { outline: 2px solid var(--brand); outline-offset: 4px; }
.dc-back, .dc-photo, .dc-cut, .dc-scan { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
/* what shows where the background was: the checks of a transparent PNG, or the chosen colour over them */
.dc-back {
  background-color: #fff;
  background-image: conic-gradient(#e6e6e6 25%, #fff 0 50%, #e6e6e6 0 75%, #fff 0);
  background-size: 16px 16px;
}
.dc-back::after { content: ''; position: absolute; inset: 0; background: var(--sw); opacity: 0; transition: opacity 0.35s ease; }
[data-bg='pink'] .dc-frame { --sw: #f2a8cc; }
[data-bg='blue'] .dc-frame { --sw: #2b3cff; }
[data-bg='sun'] .dc-frame { --sw: #ffcd29; }
[data-bg]:not([data-bg='none']) .dc-back::after { opacity: 1; }
.dc-photo { object-fit: cover; clip-path: inset(var(--cut, 0%) 0 0 0); }
.dc-cut { object-fit: cover; transform-origin: 50% 85%; transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1), filter 0.6s ease; }
.demo-cut.lifted .dc-cut { transform: translateY(-1.5%) scale(1.025); filter: drop-shadow(0 18px 22px rgba(0, 0, 0, 0.28)); }
/* the scan: a line of light with a few sparks on it, moving down the frame (more.js sets its translate) */
.dc-scan { height: 0; top: 0; opacity: 0; pointer-events: none; will-change: transform; }
.dc-scan::before { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 56px; background: linear-gradient(to bottom, transparent, rgb(219 77 40 / 0.22)); }
.dc-scan::after { content: ''; position: absolute; left: 0; right: 0; top: -1px; height: 2px; background: #fff; box-shadow: 0 0 6px 1px rgb(219 77 40 / 0.9), 0 0 24px 6px rgb(219 77 40 / 0.45); }
.dc-scan b { position: absolute; top: -2px; width: 4px; height: 4px; border-radius: 50%; background: #fff; box-shadow: 0 0 8px 2px rgb(255 205 41 / 0.9); opacity: 0; }
.dc-scan b:nth-child(1) { left: 14%; } .dc-scan b:nth-child(2) { left: 33%; } .dc-scan b:nth-child(3) { left: 51%; } .dc-scan b:nth-child(4) { left: 68%; } .dc-scan b:nth-child(5) { left: 86%; }
.demo-cut.scanning .dc-scan { opacity: 1; }
@media (prefers-reduced-motion: no-preference) {
  .demo-cut.scanning .dc-scan b { animation: dc-spark 0.5s ease-out infinite; }
  .demo-cut.scanning .dc-scan b:nth-child(2) { animation-delay: 0.12s; } .demo-cut.scanning .dc-scan b:nth-child(3) { animation-delay: 0.27s; }
  .demo-cut.scanning .dc-scan b:nth-child(4) { animation-delay: 0.06s; } .demo-cut.scanning .dc-scan b:nth-child(5) { animation-delay: 0.36s; }
}
@keyframes dc-spark { 0% { opacity: 0; transform: translateY(0) scale(0.6); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(-18px) scale(1.2); } }

.dc-panel, .dx-panel { align-self: center; padding: 8px 16px 16px; background: var(--paper); border-radius: 13px; box-shadow: var(--e-canvas); }
.dc-row { padding: 8px 0; }
.dc-label { display: block; margin-bottom: 8px; color: var(--ink-3); }
.dc-thumbs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.dc-thumb { position: relative; aspect-ratio: 4 / 5; padding: 0; border: 0; border-radius: 2px; overflow: hidden; cursor: pointer; background: #fff conic-gradient(#e6e6e6 25%, #fff 0 50%, #e6e6e6 0 75%, #fff 0) 0 0 / 8px 8px; box-shadow: 0 0 0 1px var(--line); transition: box-shadow 0.18s ease; }
.dc-thumb[aria-pressed='true'] { box-shadow: 0 0 0 1px var(--paper), 0 0 0 2px var(--brand); }
.dc-thumb i { position: absolute; inset: 0; background: center / cover no-repeat; }
.dc-thumb .dc-tp { clip-path: inset(var(--cut, 0%) 0 0 0); transition: clip-path 0.5s cubic-bezier(0.4, 0, 0.2, 1); }
.dc-thumb.done .dc-tp { --cut: 100%; }
.dc-sws { display: flex; gap: 8px; }
.dc-sw { width: 24px; height: 24px; padding: 0; border: 0; border-radius: 50%; cursor: pointer; background: none; box-shadow: 0 0 0 1px var(--line); transition: box-shadow 0.18s ease; }
.dc-sw i { display: block; width: 100%; height: 100%; border-radius: 50%; }
.dc-sw[data-bg='none'] i { background: #fff conic-gradient(#e6e6e6 25%, #fff 0 50%, #e6e6e6 0 75%, #fff 0) 0 0 / 8px 8px; }
.dc-sw[data-bg='pink'] i { background: #f2a8cc; }
.dc-sw[data-bg='blue'] i { background: #2b3cff; }
.dc-sw[data-bg='sun'] i { background: #ffcd29; }
.dc-sw[aria-pressed='true'] { box-shadow: 0 0 0 2px var(--paper), 0 0 0 3px var(--brand); }
.dc-go, .dx-go { width: 100%; margin-top: 8px; }

/* ---------------------------------------------------------------- fx2-welcome-sections-a: «Export anywhere», by hand
   a format chip turns the poster into that file's view (pixels, blocks, outlines, a page with bleed and marks, a video's
   bar, a GIF's frames) with its real size and the editor's own note; «Export» folds it into a file (more.js exportCard()) */
.dx-page { position: relative; height: 84%; aspect-ratio: 3 / 4; transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.3s ease; }
.dx-sheet { position: absolute; inset: 0; border-radius: 2px; overflow: hidden; box-shadow: var(--e-canvas); background: #1e1e1e; transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1); }
.dx-pic { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; transition: opacity 0.35s ease, transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1); }
.dx-outline, .dx-blocks, .dx-bleed, .dx-marks, .dx-play { position: absolute; pointer-events: none; opacity: 0; transition: opacity 0.35s ease, transform 0.35s ease; }
.dx-outline { inset: 0; background: var(--brand); -webkit-mask: var(--outline) center / cover no-repeat; mask: var(--outline) center / cover no-repeat; }
.dx-blocks { inset: 0; background-image: linear-gradient(rgba(255, 255, 255, 0.16) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.16) 1px, transparent 1px); background-size: 8px 8px; mix-blend-mode: overlay; }
/* as Figma shows a selection: an accent outline and its size in an accent badge under it (a GIF's own, smaller size) */
.dx-sel { position: absolute; inset: -1px; border: 1px solid var(--brand); pointer-events: none; }
.dx-dims { position: absolute; left: 50%; top: calc(100% + 8px); height: 16px; padding: 0 4px; border-radius: 2px; background: var(--brand); color: #fff; font: 450 11px/16px var(--font-ui); white-space: nowrap; transform: translateX(-50%); transition: opacity 0.2s ease; }
[data-fmt='pdf'] .dx-sel, [data-fmt='pdf'] .dx-dims { opacity: 0; }
.dx-bleed { inset: -10px; border: 1px dashed var(--brand); border-radius: 1px; }
.dx-marks { inset: 0; }
.dx-marks i { position: absolute; background: var(--ink); }
.dx-marks i:nth-child(odd) { width: 12px; height: 1px; } .dx-marks i:nth-child(even) { width: 1px; height: 12px; }
.dx-marks i:nth-child(1) { top: 0; left: -28px; } .dx-marks i:nth-child(2) { top: -28px; left: 0; }
.dx-marks i:nth-child(3) { top: 0; right: -28px; } .dx-marks i:nth-child(4) { top: -28px; right: 0; }
.dx-marks i:nth-child(5) { bottom: 0; left: -28px; } .dx-marks i:nth-child(6) { bottom: -28px; left: 0; }
.dx-marks i:nth-child(7) { bottom: 0; right: -28px; } .dx-marks i:nth-child(8) { bottom: -28px; right: 0; }
.dx-play { left: 8px; right: 8px; bottom: 8px; height: 24px; border-radius: 5px; background: rgba(30, 30, 30, 0.8); }
.dx-play::before { content: ''; position: absolute; left: 9px; top: 7px; border-style: solid; border-width: 5px 0 5px 8px; border-color: transparent transparent transparent #fff; }
.dx-play i { position: absolute; left: 28px; right: 10px; top: 11px; height: 2px; background: rgba(255, 255, 255, 0.3); overflow: hidden; }
.dx-play i::after { content: ''; position: absolute; inset: 0; background: var(--brand); transform: scaleX(0); transform-origin: 0 50%; }
/* the views */
[data-fmt='jpeg'] .dx-blocks { opacity: 1; }
[data-fmt='png'] .dx-sheet, [data-fmt='webp'] .dx-sheet { transform: none; }
[data-fmt='svg'] .dx-pic { opacity: 0.12; }
[data-fmt='svg'] .dx-outline { opacity: 1; }
[data-fmt='pdf'] .dx-page { transform: scale(0.88); }
[data-fmt='pdf'] .dx-bleed, [data-fmt='pdf'] .dx-marks { opacity: 1; }
[data-fmt='mp4'] .dx-play { opacity: 1; }
[data-fmt='gif'] .dx-page { transform: scale(0.76); }
@media (prefers-reduced-motion: no-preference) {
  [data-fmt='mp4'] .dx-pic { animation: dx-kb 4s ease-in-out infinite alternate; }
  [data-fmt='mp4'] .dx-play i::after { animation: dx-bar 4s linear infinite; }
  [data-fmt='gif'] .dx-pic { animation: dx-gif 1.2s steps(6) infinite; }
}
@keyframes dx-kb { to { transform: scale(1.08) translate3d(-1.5%, -1%, 0); } }
@keyframes dx-bar { to { transform: scaleX(1); } }
@keyframes dx-gif { 0% { transform: translate3d(0, 0, 0); } 50% { transform: translate3d(0, -2.4%, 0) scale(1.03); } 100% { transform: translate3d(0, 0, 0); } }
/* «Export»: the poster folds into its file, the file lands with a tick */
.dx-file { position: absolute; left: 50%; bottom: 8%; display: flex; align-items: center; gap: 8px; height: 40px; padding: 0 12px 0 8px; border-radius: 13px; background: var(--paper); box-shadow: var(--e-overlay); font: 550 11px/16px var(--font-ui); color: var(--ink); white-space: nowrap; opacity: 0; transform: translate3d(-50%, 12px, 0) scale(0.92); pointer-events: none; transition: opacity 0.25s ease, transform 0.45s cubic-bezier(0.2, 0.8, 0.2, 1.2); }
.dx-ext { height: 24px; min-width: 32px; padding: 0 4px; border-radius: 5px; background: var(--brand); color: #fff; font: 550 9px/24px var(--font-ui); text-align: center; letter-spacing: 0.02em; }
.dx-file svg { width: 16px; height: 16px; fill: none; stroke: var(--success); stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 14; stroke-dashoffset: 14; transition: stroke-dashoffset 0.35s ease 0.3s; }
.demo-export.saving .dx-sel, .demo-export.saving .dx-dims { opacity: 0; }
.demo-export.saving .dx-page { transform: translate3d(0, 6%, 0) scale(0.18); opacity: 0; transition: transform 0.55s cubic-bezier(0.6, 0, 0.4, 1), opacity 0.35s ease 0.2s; }
.demo-export.saved .dx-file { opacity: 1; transform: translate3d(-50%, 0, 0) scale(1); }
.demo-export.saved .dx-file svg { stroke-dashoffset: 0; }
.dx-head { height: 40px; display: flex; align-items: center; font-weight: 550; }
.dx-fmts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; }
.dx-fmt { height: 24px; padding: 0 4px; border: 0; border-radius: 5px; background: var(--paper-2); color: var(--ink); font: 450 11px/24px var(--font-ui); cursor: pointer; transition: background 0.18s ease, color 0.18s ease, box-shadow 0.18s ease; }
.dx-fmt:hover { background: var(--paper-3); }
.dx-fmt[aria-checked='true'] { background: var(--brand-tint); color: var(--brand-ink); box-shadow: inset 0 0 0 1px var(--brand); font-weight: 550; }
.dx-fmt:focus-visible { outline: 2px solid var(--brand); outline-offset: 1px; }
.dx-spec { margin: 12px 0 0; min-height: 48px; font: 450 11px/16px var(--font-ui); color: var(--ink-3); }
.dx-spec b { display: block; color: var(--ink); font-weight: 550; }
.dx-spec.swap b, .dx-spec.swap span { animation: dx-spec 0.3s cubic-bezier(0.2, 0.8, 0.2, 1) both; }
@keyframes dx-spec { from { opacity: 0; transform: translateY(4px); } }
.dx-saved { margin: 8px 0 0; min-height: 16px; color: var(--success); }
@media (max-width: 640px) {
  .demo-cut, .demo-export { aspect-ratio: auto; grid-template-columns: minmax(0, 1fr); gap: 12px; padding: 12px; }
  .dc-stage, .dx-stage { height: auto; }
  .dc-frame { height: auto; width: 84%; }
  .dx-stage { aspect-ratio: 1 / 1; }
  .dx-page { height: 80%; }
  .dc-panel, .dx-panel { padding: 4px 12px 12px; }
  .dc-row { display: grid; grid-template-columns: 80px minmax(0, 1fr); align-items: center; gap: 8px; }
  .dc-label { margin: 0; }
  .dc-thumbs { max-width: 200px; }
  .dx-fmts { grid-template-columns: repeat(7, minmax(0, 1fr)); }
  .dx-fmt { padding: 0; font-size: 10px; }
  .dx-spec { min-height: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .dc-cut, .dx-page, .dx-sheet, .dx-pic, .dx-file { transition: none; }
}

.close {
  max-width: 1120px;
  margin: 136px auto 0;
  padding: 0 0 120px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: center;
}
.close-line { margin: 0 0 4px; font: 600 24px/30px var(--font-ui); letter-spacing: -0.014em; text-wrap: balance; }
.close .facts { flex: none; }
/* fx2-wow-c-ship: the Ukrainian page's intro */
.intro { max-width: 1120px; margin: 120px auto 0; }
.sec-title { margin: 0 0 12px; font: 550 13px/22px var(--font-ui); letter-spacing: 0; }
.intro p { max-width: 68ch; margin: 0 0 12px; font: 450 13px/22px var(--font-ui); letter-spacing: 0; color: var(--ink); text-wrap: pretty; }
.intro a { color: var(--brand-ink); text-decoration: none; }
.intro a:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ---------------------------------------------------------------- a narrower laptop: the way down moves into the label */
@media (max-width: 1100px) {
  .dock { display: none; }
  .down-card { display: flex; height: 28px; margin: 12px -8px -6px; border-radius: 5px; }
  .down-card:hover { background: var(--hover); }
}
/* the menu folds into one button before the site's words crowd it */
@media (max-width: 760px) {
  html .bar-l .bar-sep, html[data-tg] .bar-l .nav, html .bar-r .langs, html .bar-r .bar-go { display: none; }
  .bar-l { padding: 0; }
  .bar-r { padding: 0 4px; }
  .menu-btn { display: inline-flex; }
}

/* ---------------------------------------------------------------- phone: the same wall, the label as a bottom sheet */
@media (max-width: 640px) {
  :root { --gap: 8px; }
  .bar .pill { height: 36px; }
  .mark { height: 36px; padding: 0 12px; }
  .menu-btn { width: 28px; height: 28px; }
  /* fx2-wow-c-polish: the label as small as its words allow (a 360 × 640 phone keeps more than half the wall): the way down
     beside the button, not a row of its own; the home bar's inset under it */
  .card { left: var(--gap); right: var(--gap); bottom: calc(var(--gap) + var(--safe-b)); width: auto; padding: 16px 16px 12px; display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 8px; }
  .card > .line, .card > .sub { grid-column: 1 / -1; }
  .line { font-size: 20px; line-height: 26px; }
  .line .eyebrow { margin-bottom: 4px; line-height: 18px; }
  .sub { font-size: 13px; line-height: 18px; margin-top: 4px; }
  .act { display: contents; }
  .act .btn { grid-row: 3; grid-column: 1; margin-top: 12px; height: 40px; }
  .facts { grid-row: 4; grid-column: 1 / -1; margin-top: 8px; text-align: center; }
  .down-card { grid-row: 3; grid-column: 2; height: 40px; margin: 12px 0 0; padding: 0 8px 0 12px; border-radius: 5px; box-shadow: inset 0 0 0 1px var(--line); color: var(--ink); }
  /* fx2-welcome-mobile: what Paletoo is reads as the label's title; one button, the way down a quiet one */
  .line .eyebrow { margin-bottom: 4px; font: 600 15px/20px var(--font-ui); letter-spacing: -0.006em; }
  .down-card { box-shadow: none; color: var(--ink-3); padding: 0 4px 0 8px; }
  .down-card:hover, .down-card:active { background: var(--hover); color: var(--ink); }
  .zoom { display: none; }
  .panel {
    top: auto;
    left: 0;
    right: 0;
    bottom: 0;
    width: auto;
    /* fx2-home-10: one height from the first frame (a sheet's detent) — it hugged its content, so when the live piece arrived
       its top edge jumped up the screen (a layout shift of 0.21 on 390 × 844, no hand to excuse it); its foot stays at the bottom */
    height: 54%;
    max-height: 54%;
    border-radius: 13px 13px 0 0;
    padding-bottom: var(--safe-b);
    animation-name: sheet-in;
  }
  @keyframes sheet-in { from { transform: translateY(24px); opacity: 0; } }
  .p-foot { grid-template-columns: 1fr 1fr; }
  .p-foot .p-keys { display: none; }
  .more { padding: 72px 16px 0; }
  .more-title { margin-bottom: 64px; font-size: 32px; line-height: 40px; letter-spacing: -0.022em; }
  /* fx2-welcome-sections-a: a phone stacks each block — its words, then its demo — with 96 px between blocks */
  .feats { gap: 96px; }
  .feat { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .feat:nth-child(even) > .feat-copy { order: 0; }
  .feat-n { margin-bottom: 8px; }
  .feat h3 { font-size: 28px; line-height: 34px; letter-spacing: -0.018em; }
  .feat p { margin-top: 8px; font-size: 15px; line-height: 24px; }
  .demo-stack, .demo-words { gap: 12px; padding: 14px; }
  .ds-head { height: 32px; padding: 0 10px; }
  .ds-rows { padding: 0 4px; }
  .ds-row { height: 28px; padding: 0 2px 0 6px; gap: 6px; }
  .ds-row img, .ds-row .ds-ic { width: 20px; height: 20px; }
  /* fx2-welcome-stack-wow: the names first (a row's eye only says its step is on: its tint says it too) */
  .ds-row .ds-eye { display: none; }
  .ds-row { padding-right: 6px; }
  .dw-panel { padding: 8px 4px 6px; }
  .dw-field { padding: 0 6px; }
  .close { margin-top: 96px; padding-bottom: 88px; }
  .close-line { font-size: 20px; line-height: 26px; }
}
@media (pointer: coarse) {
  /* fx2-wow-c-ship: a phone is a page first — a swipe up or down scrolls it (the browser's own scroll, with its momentum),
     a swipe sideways and two fingers move the wall, a tap takes a piece apart; while a piece is open the wall has every hand */
  #wall { touch-action: pan-y; }
  html.editing #wall { touch-action: none; }
  /* a field under 16 px makes a phone zoom the page in on focus */
  .p-field textarea, .dw-field textarea { font-size: 16px; line-height: 22px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

/* fx2-home-02 (docs/landing/WALL_LOWEND.md): a weak device (wall.js `lite`) — no live blur under the menu, which a GPU
   recomputes on every frame of a canvas redrawn under it; the panel colour instead */
.lite .bar .pill { -webkit-backdrop-filter: none; backdrop-filter: none; background: var(--paper); }

/* ================================================================ fx2-welcome-faq-footer: «Questions» as an index poster
   (scripts/site/welcomeWall.mjs faqBlock; more.js faqFoot wires it). The title and its «?» — a «!» while an answer is open — on
   the left, sticky; the questions in display type, numbered, on the right; an answer opens with a clip from the top, its
   question's words rise one after another and an accent rule draws under it. Until the script, every answer shows. */
@property --ft-r { syntax: '<length>'; inherits: true; initial-value: 0px; }
.fq { max-width: 1120px; margin: 168px auto 0; display: grid; grid-template-columns: 320px minmax(0, 1fr); column-gap: 56px; align-items: start; }
.fq-side { position: sticky; top: 88px; }
.fq-title { margin: 0; font: 600 68px/72px var(--font-ui); letter-spacing: -0.045em; overflow-wrap: anywhere; }
.fq-glyph { position: relative; display: block; width: 150px; height: 184px; margin: 4px 0 0 -8px; color: var(--brand); font: 700 200px/184px var(--font-ui); letter-spacing: -0.04em; pointer-events: none; }
.fq-glyph i { position: absolute; left: 0; top: 0; font-style: normal; transform-origin: 40% 80%; transition: transform 0.55s cubic-bezier(0.2, 0.9, 0.2, 1.2), opacity 0.25s ease; }
.fq-glyph i + i { left: 28px; opacity: 0; transform: rotate(-24deg) scale(0.5); }
.fq.has-open .fq-glyph i:first-child { opacity: 0; transform: rotate(24deg) scale(0.5); }
.fq.has-open .fq-glyph i + i { opacity: 1; transform: none; }
.fq-count { margin: 8px 0 16px; font: 450 13px/22px var(--font-ui); color: var(--ink-3); }
.fq-topics { display: flex; flex-wrap: wrap; gap: 4px; }
.fq-topic { height: 24px; padding: 0 8px; border: 0; border-radius: 5px; background: var(--paper); box-shadow: inset 0 0 0 1px var(--line); color: var(--ink); font: 450 11px/16px var(--font-ui); }
.fq-topic:hover { background: var(--paper-2); }
.fq-topic[aria-pressed='true'] { background: var(--brand-tint); box-shadow: none; color: var(--brand-ink); font-weight: 550; }
.fq-topic:focus-visible, .fq-q:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.fq-list { margin: 0; padding: 0; list-style: none; border-top: 2px solid var(--ink); }
.fq-item { border-bottom: 1px solid var(--line); }
.fq-item[hidden] { display: none; }
.fq-item.enter { animation: fq-enter 0.45s cubic-bezier(0.2, 0.8, 0.2, 1) both; animation-delay: calc(var(--k, 0) * 45ms); }
@keyframes fq-enter { from { opacity: 0; transform: translateY(12px); } }
.fq-h { margin: 0; font: inherit; }
.fq-q { display: grid; grid-template-columns: 56px minmax(0, 1fr) 32px; align-items: start; width: 100%; padding: 24px 0; border: 0; background: none; color: var(--ink); text-align: left; font: 550 32px/38px var(--font-ui); letter-spacing: -0.028em; border-radius: 2px; }
.fq-n { padding-top: 11px; color: var(--ink-5); font: 550 11px/16px var(--font-ui); letter-spacing: 0; font-variant-numeric: tabular-nums; transition: color 0.2s; }
.fq-t { width: fit-content; padding-right: 12px; transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1); text-wrap: balance; }
.fq-t::after { content: ''; display: block; height: 3px; margin-top: 6px; border-radius: 2px; background: var(--brand); transform: scaleX(0); transform-origin: 0 50%; transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1); }
.fq-w { display: inline-block; }
.fq-x { position: relative; width: 32px; height: 32px; margin-top: 3px; border-radius: 50%; box-shadow: inset 0 0 0 1px var(--line); color: var(--ink); transition: transform 0.45s cubic-bezier(0.2, 0.9, 0.2, 1.2), background-color 0.2s; }
.fq-x::before, .fq-x::after { content: ''; position: absolute; left: 10px; top: 15.25px; width: 12px; height: 1.5px; border-radius: 1px; background: currentColor; }
.fq-x::after { transform: rotate(90deg); }
.fq-q:hover .fq-t { transform: translateX(6px); }
.fq-q:hover .fq-n, .fq-item.open .fq-n { color: var(--brand-ink); }
.fq-q:hover .fq-x { background: var(--hover); }
.fq-item.open .fq-x { transform: rotate(135deg); background: var(--brand); box-shadow: none; color: var(--on-accent); }
.fq-item.open .fq-t::after { transform: scaleX(1); }
.fq-item.opening .fq-w { animation: fq-rise 0.62s cubic-bezier(0.3, 0.7, 0.2, 1) both; animation-delay: calc(var(--k) * 30ms); }
@keyframes fq-rise { 0% { transform: none; } 35% { transform: translateY(-0.16em); } 100% { transform: none; } }
.fq[data-on] .fq-item:not(.open) .fq-a { display: none; }
.fq-in { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 40px; align-items: start; padding: 0 0 32px 56px; }
.fq-in > p { max-width: 54ch; margin: 2px 0 0; font: 450 15px/24px var(--font-ui); color: var(--ink-3); text-wrap: pretty; }
.fq-item.opening .fq-in { animation: fq-open 0.6s cubic-bezier(0.2, 0.8, 0.2, 1) both; }
@keyframes fq-open { from { clip-path: inset(0 0 100% 0); transform: translateY(-10px); opacity: 0; } to { clip-path: inset(-8px -8px -8px -8px); } }

/* the answers' demos: 240 × 136 white cards, what the answer says shown, not told (the final frame is the still one) */
.fd { position: relative; width: 240px; height: 136px; border-radius: 13px; background: var(--paper); box-shadow: inset 0 0 0 1px var(--line); overflow: hidden; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; font: 550 11px/16px var(--font-ui); color: var(--ink); }
.fd-ghost, .fd-wm { position: relative; display: inline-flex; align-items: center; height: 24px; padding: 0 10px; border-radius: 5px; box-shadow: inset 0 0 0 1px var(--line); color: var(--ink-5); }
.fd-ghost::after, .fd-wm::after { content: ''; position: absolute; left: 4px; right: 4px; top: 11px; height: 2px; border-radius: 1px; background: var(--brand); transform-origin: 0 50%; }
.fd-go { display: inline-flex; align-items: center; height: 32px; padding: 0 16px; border-radius: 5px; background: var(--brand); color: var(--on-accent); font-size: 13px; }
.fd-cur { position: absolute; left: 62%; top: 62%; width: 18px; height: 18px; }
.fd-cur svg, .fd-dl svg, .fd-node svg { width: 100%; height: 100%; display: block; }
.fd-cur path { fill: var(--ink); stroke: var(--paper); stroke-width: 1; stroke-linejoin: round; }
.fq-item.opening .fd-ghost::after, .fq-item.opening .fd-wm::after { animation: fd-strike 0.5s 0.25s cubic-bezier(0.6, 0, 0.2, 1) both; }
@keyframes fd-strike { from { transform: scaleX(0); } }
.fq-item.opening .fd-go { animation: fd-pop 0.5s 0.45s cubic-bezier(0.2, 0.9, 0.2, 1.3) both; }
@keyframes fd-pop { from { opacity: 0; transform: scale(0.85); } }
.fq-item.opening .fd-cur { animation: fd-cur 1.1s 0.5s cubic-bezier(0.3, 0.7, 0.2, 1) both; }
@keyframes fd-cur { 0% { opacity: 0; transform: translate(40px, 30px); } 60% { opacity: 1; transform: none; } 75% { transform: scale(0.82); } 100% { transform: none; } }
.fd-url { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 12px; border-radius: 14px; background: var(--paper-2); font: 450 13px/22px var(--font-ui); }
.fd-url i { width: 8px; height: 8px; border-radius: 50%; background: var(--success); }
.fd-dl { position: relative; width: 40px; height: 40px; padding: 8px; border-radius: 50%; box-shadow: inset 0 0 0 1px var(--line); }
.fd-dl path, .fd-node path, .fd-node rect, .fd-node circle { fill: none; stroke: var(--ink-5); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.fd-dl::after { content: ''; position: absolute; left: 5px; right: 5px; top: 19px; height: 2px; border-radius: 1px; background: var(--brand); transform: rotate(-45deg); }
.fq-item.opening .fd-url { animation: fd-type 0.8s 0.2s steps(12, end) both; }
@keyframes fd-type { from { clip-path: inset(0 100% 0 0 round 14px); } to { clip-path: inset(0 0 0 0 round 14px); } }
.fd-price { font: 700 56px/56px var(--font-ui); letter-spacing: -0.04em; color: var(--brand); }
.fq-item.opening .fd-price { animation: fd-pop 0.55s 0.1s cubic-bezier(0.2, 0.9, 0.2, 1.3) both; }
.fd-export { flex-direction: row; flex-wrap: wrap; align-content: center; gap: 4px; padding: 12px 14px; }
.fd-export i { display: inline-flex; align-items: center; height: 24px; padding: 0 8px; border-radius: 5px; background: var(--paper-2); font-style: normal; }
.fd-export i:nth-child(5), .fd-export i:nth-child(7) { background: var(--brand-tint); color: var(--brand-ink); }
.fq-item.opening .fd-export i { animation: fd-chip 0.4s cubic-bezier(0.2, 0.9, 0.2, 1.2) both; animation-delay: calc(0.15s + var(--i, 0) * 45ms); }
@keyframes fd-chip { from { opacity: 0; transform: translateY(8px) scale(0.9); } }
.fd-aa { position: relative; width: 120px; height: 64px; }
.fd-aa i { position: absolute; inset: 0; text-align: center; font: 400 60px/64px var(--font-ui); font-style: normal; letter-spacing: -0.03em; animation: fd-aa 4.5s infinite both; }
.fd-aa i:nth-child(2) { font-weight: 550; animation-delay: 1.5s; }
.fd-aa i:nth-child(3) { font-weight: 700; color: var(--brand); animation-delay: 3s; }
@keyframes fd-aa { 0%, 30% { opacity: 1; transform: none; } 36%, 94% { opacity: 0; transform: translateY(-6px); } 100% { opacity: 1; transform: none; } }
.fq-item:not(.open) .fd-aa i { animation: none; }
.fd-aa i:nth-child(n + 2) { opacity: 0; }
.fd-tags { display: flex; gap: 4px; }
.fd-tags i { height: 20px; padding: 2px 6px; border-radius: 5px; background: var(--paper-2); font-style: normal; color: var(--ink-3); }
.fd-kept { flex-direction: row; gap: 0; }
.fd-node { width: 40px; height: 40px; padding: 8px; border-radius: 50%; box-shadow: inset 0 0 0 1px var(--line); }
.fd-file { display: inline-flex; align-items: center; height: 28px; padding: 0 10px; border-radius: 5px; background: var(--brand-tint); color: var(--brand-ink); }
.fd-wire { position: relative; width: 22px; height: 2px; background: repeating-linear-gradient(90deg, var(--ink-5) 0 2px, transparent 2px 5px); }
.fd-wire i { position: absolute; left: 0; top: -2px; width: 6px; height: 6px; border-radius: 50%; background: var(--brand); animation: fd-wire 1.6s linear infinite; }
.fd-wire + .fd-file + .fd-wire i { animation-direction: reverse; }
@keyframes fd-wire { from { transform: translateX(-3px); } to { transform: translateX(19px); } }
.fq-item:not(.open) .fd-wire i { animation: none; }
.fd-langs { justify-content: stretch; align-items: stretch; gap: 2px; padding: 8px; }
.fd-langs a { display: flex; align-items: center; height: 38px; padding: 0 12px; border-radius: 5px; color: var(--ink); text-decoration: none; font: 550 13px/22px var(--font-ui); background: none; }
.fd-langs a:hover { background: var(--hover); }
html .fd-langs a[aria-current='page'] { background: var(--brand-tint); color: var(--brand-ink); }
.fd-langs a[aria-current='page']::after { content: ''; margin-left: auto; width: 6px; height: 6px; border-radius: 50%; background: var(--brand); }

/* ================================================================ fx2-welcome-faq-footer: the footer — the site's links as
   columns, the language and where to follow, the wordmark full width with a lens of the editor's effects (more.js draws
   each once: halftone, pixel, glow; the lens is a mask that follows the pointer — the left third halftone, the middle pixel,
   the right glow; a chip pins one over the whole word), «made in Ukraine» and the way back up */
.ft { max-width: 1120px; margin: 0 auto; padding: 56px 0 calc(24px + var(--safe-b)); border-top: 2px solid var(--ink); color: var(--ink); }
.ft-cols { display: grid; grid-template-columns: minmax(0, 1fr) 216px; column-gap: 48px; }
.ft-nav { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); column-gap: 24px; row-gap: 32px; }
.ft-h { margin: 0 0 10px; font: 550 11px/16px var(--font-ui); color: var(--ink-3); }
.ft ul { margin: 0; padding: 0; list-style: none; }
.ft-nav li { margin: 0 0 4px; }
.ft-nav a { color: var(--ink); text-decoration: none; font: 450 13px/22px var(--font-ui); overflow-wrap: anywhere; }
.ft-nav a:hover, .ft-social a:hover span:first-child { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.ft-col-tools { grid-column: span 1; }
.ft-col-tools li:nth-child(n + 3) a { color: var(--ink-3); font-size: 11px; line-height: 16px; }
.ft-col-tools li:nth-child(n + 3) a:hover { color: var(--ink); }
.ft-side .ft-h + * { margin-bottom: 24px; }
.ft-langs { display: flex; padding: 2px; border-radius: 5px; background: var(--paper-2); }
html .ft-langs a { flex: 1; display: flex; align-items: center; justify-content: center; height: 28px; border-radius: 4px; background: none; color: var(--ink-3); text-decoration: none; font: 450 11px/16px var(--font-ui); }
html .ft-langs a:hover { color: var(--ink); }
html .ft-langs a[aria-current='page'] { background: var(--paper); color: var(--ink); font-weight: 550; box-shadow: 0 0 0 0.5px rgba(0, 0, 0, 0.12), 0 1px 3px rgba(0, 0, 0, 0.1); }
.ft-social li + li { margin-top: 2px; }
.ft-social a { display: flex; align-items: center; gap: 8px; height: 28px; color: var(--ink); text-decoration: none; font: 450 13px/22px var(--font-ui); }
.ft-handle { color: var(--ink-3); }
.ft-social .ext { width: 12px; height: 12px; margin-left: auto; fill: none; stroke: var(--ink-5); stroke-width: 1.25; }
.ft a:focus-visible, .ft button:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; border-radius: 2px; }
.ft-mark { position: relative; margin: 72px 0 0; aspect-ratio: 56 / 18; --ft-x: 50%; --ft-y: 50%; touch-action: pan-y; }
.ft-word { display: block; width: 100%; height: 100%; color: var(--ink); overflow: visible; }
.ft-mark.lens .ft-word { -webkit-mask: radial-gradient(circle var(--ft-r) at var(--ft-x) var(--ft-y), transparent calc(100% - 3px), #000 calc(100% - 1.5px)); mask: radial-gradient(circle var(--ft-r) at var(--ft-x) var(--ft-y), transparent calc(100% - 3px), #000 calc(100% - 1.5px)); }
.ft-fx { position: absolute; inset: -6% -3%; pointer-events: none; }
.ft-fx canvas { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; transition: opacity 0.22s ease; -webkit-mask: radial-gradient(circle var(--ft-r) at var(--ft-cx) var(--ft-cy), #000 calc(100% - 1px), transparent 100%); mask: radial-gradient(circle var(--ft-r) at var(--ft-cx) var(--ft-cy), #000 calc(100% - 1px), transparent 100%); }
.ft-fx canvas.on { opacity: 1; }
.ft-tip { position: absolute; left: 0; top: 0; display: flex; align-items: center; height: 24px; padding: 0 8px; border-radius: 5px; background: var(--dark); color: #fff; font: 550 11px/16px var(--font-ui); white-space: nowrap; pointer-events: none; opacity: 0; transform: translate(calc(var(--ft-x) + var(--ft-r) * 0.7), calc(var(--ft-y) - var(--ft-r) * 0.7 - 24px)); transition: opacity 0.2s ease; z-index: 1; }
:root[data-theme='dark'] .ft-tip { box-shadow: 0 0 0 0.5px rgba(255, 255, 255, 0.18); }
.ft-mark.tipped .ft-tip { opacity: 1; }
.ft-mark.lens { transition: --ft-r 0.35s cubic-bezier(0.2, 0.8, 0.2, 1); }
.ft-mark.pinned { transition: --ft-r 0.8s cubic-bezier(0.5, 0, 0.2, 1); }
.ft-fxbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; margin-top: 20px; }
.ft-hint { font: 450 11px/16px var(--font-ui); color: var(--ink-3); }
.ft-fxs { display: flex; gap: 4px; }
.ft-fxb { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 8px 0 6px; border: 0; border-radius: 5px; background: var(--paper); box-shadow: inset 0 0 0 1px var(--line); color: var(--ink); font: 450 11px/16px var(--font-ui); }
.ft-fxb:hover { background: var(--paper-2); }
.ft-fxb[aria-pressed='true'] { background: var(--brand-tint); box-shadow: none; color: var(--brand-ink); font-weight: 550; }
.ft-sw { width: 12px; height: 12px; border-radius: 3px; }
.ft-sw-halftone { background: radial-gradient(circle, var(--brand) 1.3px, transparent 1.6px) 0 0 / 4px 4px; box-shadow: inset 0 0 0 0.5px var(--line); }
.ft-sw-pixel { background: conic-gradient(var(--ink) 25%, transparent 0 50%, var(--ink) 0 75%, transparent 0) 0 0 / 6px 6px; }
.ft-sw-glow { border-radius: 50%; background: radial-gradient(circle, #fff 0 20%, var(--brand) 45%, transparent 72%); }
.ft-base { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; margin-top: 24px; padding-top: 16px; border-top: 1px solid var(--line); font: 450 11px/16px var(--font-ui); color: var(--ink-3); }
.ft-top { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 8px; border-radius: 5px; box-shadow: inset 0 0 0 1px var(--line); background: var(--paper); color: var(--ink); text-decoration: none; }
.ft-top:hover { background: var(--paper-2); }
.ft-top svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; transition: transform 0.3s cubic-bezier(0.2, 0.9, 0.2, 1.3); }
.ft-top:hover svg { transform: translateY(-2px); }

@media (max-width: 1000px) {
  .fq { grid-template-columns: minmax(0, 1fr); margin-top: 120px; }
  .fq-side { position: relative; top: 0; margin-bottom: 32px; padding-right: 120px; }
  .fq-glyph { position: absolute; right: 0; top: -8px; width: 104px; height: 128px; margin: 0; font-size: 140px; line-height: 128px; }
  .fq-glyph i + i { left: 20px; }
  .ft-cols { grid-template-columns: minmax(0, 1fr); row-gap: 32px; }
  .ft-nav { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .ft-side { display: grid; grid-template-columns: 1fr 1fr; column-gap: 24px; }
  .ft-side .ft-h:nth-of-type(1) { grid-area: 1 / 1; } .ft-langs { grid-area: 2 / 1; align-self: start; }
  .ft-side .ft-h:nth-of-type(2) { grid-area: 1 / 2; } .ft-social { grid-area: 2 / 2; }
}
@media (max-width: 640px) {
  .fq { margin-top: 96px; }
  .fq-side { padding-right: 88px; margin-bottom: 24px; }
  .fq-title { font-size: 48px; line-height: 52px; letter-spacing: -0.04em; }
  .fq-glyph { width: 80px; height: 96px; top: -6px; font-size: 104px; line-height: 96px; }
  .fq-glyph i + i { left: 16px; }
  .fq-count { margin: 4px 0 12px; }
  .fq-topics { flex-wrap: nowrap; overflow-x: auto; margin: 0 -16px; padding: 0 16px; scrollbar-width: none; }
  .fq-topic { flex: none; height: 32px; padding: 0 12px; }
  .fq-q { grid-template-columns: 32px minmax(0, 1fr) 28px; padding: 18px 0; font-size: 21px; line-height: 27px; letter-spacing: -0.02em; }
  .fq-n { padding-top: 6px; }
  .fq-x { width: 28px; height: 28px; margin-top: 0; }
  .fq-x::before, .fq-x::after { left: 8px; top: 13.25px; }
  .fq-in { grid-template-columns: minmax(0, 1fr); row-gap: 16px; padding: 0 0 24px 32px; }
  .fq-in > p { font-size: 15px; line-height: 23px; }
  .fd { width: 100%; height: 120px; }
  .fd-langs { height: auto; }
  .ft { padding-top: 40px; }
  .ft-nav { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 24px; }
  .ft-col-tools { grid-column: 1 / -1; grid-row: 2; }
  .ft-col-tools ul { columns: 2; column-gap: 24px; }
  .ft-col-tools li { break-inside: avoid; }
  .ft-side { grid-template-columns: minmax(0, 1fr); }
  .ft-side .ft-h:nth-of-type(1), .ft-langs, .ft-side .ft-h:nth-of-type(2), .ft-social { grid-area: auto; }
  .ft-mark { margin-top: 40px; }
  .ft-hint { flex-basis: 100%; }
  .ft-fxb { height: 32px; padding: 0 12px 0 10px; }
}
@media (pointer: coarse) {
  .fq-topic, .ft-top { min-height: 32px; }
}
