/* Layout concept: colour blocks. Every extension owns a flat colour field taken from its icon (set per block as
   --c / --c2 / --on from site.json); the rest of the page is ink on paper with hard 3px borders, offset shadows and
   a few rotated stickers. One deliberate light look, so every colour is set explicitly. */
/* Self-hosted faces (OFL). "CWS Display" = Darker Grotesque for Latin + Geologica for Cyrillic;
   "CWS Text" = Figtree for Latin + Onest for Cyrillic; CJK falls back to system faces. */
/* Darker Grotesque latin-ext */
@font-face {
  font-family: 'CWS Display';
  font-style: normal;
  font-weight: 600 900;
  font-display: swap;
  src: url(fonts/darker-grotesque-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;
}
/* Darker Grotesque latin */
@font-face {
  font-family: 'CWS Display';
  font-style: normal;
  font-weight: 600 900;
  font-display: swap;
  src: url(fonts/darker-grotesque-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;
}
/* Figtree latin-ext */
@font-face {
  font-family: 'CWS Text';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url(fonts/figtree-italic-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;
}
/* Figtree latin */
@font-face {
  font-family: 'CWS Text';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url(fonts/figtree-italic-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;
}
/* Figtree latin-ext */
@font-face {
  font-family: 'CWS Text';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url(fonts/figtree-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;
}
/* Figtree latin */
@font-face {
  font-family: 'CWS Text';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url(fonts/figtree-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;
}
/* Geologica cyrillic */
@font-face {
  font-family: 'CWS Display';
  font-style: normal;
  font-weight: 600 900;
  font-display: swap;
  src: url(fonts/geologica-cyrillic.woff2) format('woff2');
  size-adjust: 84%;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* JetBrains Mono cyrillic (OFL) */
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url(fonts/jetbrains-mono-cyrillic.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* JetBrains Mono latin-ext (OFL) */
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url(fonts/jetbrains-mono-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;
}
/* JetBrains Mono latin (OFL) */
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url(fonts/jetbrains-mono-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;
}
/* Onest cyrillic (OFL) */
@font-face {
  font-family: 'CWS Text';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url(fonts/onest-cyrillic.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

:root {
  --page: #f7f7f5;
  --ink: #111111;
  --ink-2: #3d3d3d;
  --white: #ffffff;
  --sun: #ffd23f;
  --c: #111111;          /* block colour (per product) */
  --c2: #333333;         /* second colour: screenshot ground */
  --on: #ffffff;         /* text on the block */
  --b: 3px solid var(--ink);
  --sh: 8px 8px 0 var(--ink);
  --sh-s: 4px 4px 0 var(--ink);
  --r: 22px;
  --display: "CWS Display", "Arial Narrow", "Hiragino Sans", "Yu Gothic", "Apple SD Gothic Neo", "Malgun Gothic", "PingFang TC", "Microsoft JhengHei", sans-serif;
  --text: "CWS Text", system-ui, -apple-system, "Segoe UI", "Hiragino Sans", "Apple SD Gothic Neo", "PingFang TC", "Noto Sans", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --lh-d: .84;           /* display line height; looser for scripts with taller glyphs */
  color-scheme: light;
}
:lang(ru) { --lh-d: .95; }
:lang(ja), :lang(ko), :lang(zh-TW) { --lh-d: 1.18; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 24px; }
body { margin: 0; background: var(--page); color: var(--ink); font: 400 17px/1.55 var(--text); overflow-wrap: break-word; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-underline-offset: 3px; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; box-shadow: 0 0 0 7px var(--white); }
h1, h2, h3 { font-family: var(--display); font-weight: 900; letter-spacing: -.01em; line-height: var(--lh-d); margin: 0; text-wrap: balance; }
:lang(ja) :is(h1, h2, h3), :lang(ko) :is(h1, h2, h3), :lang(zh-TW) :is(h1, h2, h3) { font-weight: 800; letter-spacing: 0; }
p { margin: 0; }
code { font: .88em var(--mono); background: var(--white); border: 2px solid var(--ink); border-radius: 6px; padding: 0 .3em; }
.wrap { max-width: 1360px; margin: 0 auto; padding-left: max(clamp(16px, 4vw, 48px), env(safe-area-inset-left, 0px)); padding-right: max(clamp(16px, 4vw, 48px), env(safe-area-inset-right, 0px)); }
section { padding-block: clamp(40px, 6vw, 80px); }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--sun); border: var(--b); padding: 8px 14px; font-weight: 800; z-index: 20; }
.skip:focus { left: 16px; }
.small { font-size: 14px; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* stickers: ==text== inside display headings; a marker highlight elsewhere */
.hl { background: var(--sun); padding: 0 .12em; }
:is(h1, h2) .hl { display: inline-block; background: var(--red, #d4161c); color: var(--white); border: var(--b); box-shadow: var(--sh); padding: .02em .12em .1em; transform: rotate(-2deg); margin: .06em .02em .12em; line-height: .9; }
/* reading extensions (e.g. Half Bold) wrap letters in inline elements with an inherited background; inside the
   sticker that paints a second, taller red box, so wrappers stay transparent here */
:is(h1, h2) .hl * { background: none !important; }

/* ---------- header ---------- */
.top { padding-block: 18px; }
.top .wrap { display: flex; align-items: center; gap: 12px 16px; flex-wrap: wrap; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; font-family: var(--display); font-weight: 900; font-size: 32px; line-height: 1; letter-spacing: -.01em; }
.mark { display: grid; grid-template-columns: repeat(3, 11px); grid-template-rows: repeat(2, 11px); gap: 2px; border: var(--b); background: var(--ink); flex: none; }
.mark i { display: block; }
.top nav { display: flex; gap: 8px; margin-left: auto; flex-wrap: wrap; }
.top nav a, .lang summary { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: 15px; text-decoration: none; padding: 6px 14px; border: 2px solid var(--ink); background: var(--white); border-radius: 999px; white-space: nowrap; }
.top nav a:hover, .top nav a[aria-current] { background: var(--ink); color: var(--white); }
.lang { position: relative; }
.lang summary { cursor: pointer; list-style: none; }
.lang summary::-webkit-details-marker { display: none; }
.lang summary svg { width: 16px; height: 16px; }
.lang[open] summary { background: var(--sun); }
.lang ul { position: absolute; right: 0; top: calc(100% + 10px); margin: 0; padding: 6px; list-style: none; background: var(--white); border: var(--b); border-radius: 14px; box-shadow: var(--sh-s); max-height: 70vh; overflow: auto; min-width: 220px; z-index: 12; }
.lang li a { display: block; padding: 7px 12px; border-radius: 8px; text-decoration: none; font-weight: 600; }
.lang li a:hover { background: var(--sun); }
.lang li a[aria-current] { background: var(--ink); color: var(--white); }
@media (max-width: 720px) {
  .brand { font-size: 28px; }
  .top nav { order: 3; width: 100%; margin-left: 0; flex-wrap: nowrap; overflow-x: auto; padding: 2px 2px 6px; }
  .lang { margin-left: auto; }
}

/* ---------- buttons, chips, tags ---------- */
.row, .cta { display: flex; gap: 14px 18px; flex-wrap: wrap; align-items: center; }
.btn { display: inline-flex; align-items: center; gap: 10px; font: 800 16px/1.2 var(--text); text-decoration: none; color: var(--ink); background: var(--white); border: var(--b); box-shadow: var(--sh-s); padding: 13px 18px; border-radius: 12px; }
.btn:hover { transform: translate(2px, 2px); box-shadow: 2px 2px 0 var(--ink); }
.btn.dark { background: var(--ink); color: var(--white); }
.btn.sun { background: var(--sun); }
.btn svg { width: 20px; height: 20px; flex: none; }
.btn-soon { font: 700 15px/1.3 var(--text); border: 2px dashed currentColor; border-radius: 12px; padding: 11px 15px; }
.plain { font-weight: 800; text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: 5px; }
.plain:hover { text-decoration-thickness: 5px; }
.tag { display: inline-flex; align-items: center; gap: 8px; font-weight: 800; font-size: 13px; letter-spacing: .05em; text-transform: uppercase; padding: 5px 12px; border: 2px solid currentColor; border-radius: 999px; }
.tag::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: currentColor; }
.tag.soon::before { background: transparent; border: 2px solid currentColor; width: 5px; height: 5px; }
:lang(ja) .tag, :lang(ko) .tag, :lang(zh-TW) .tag { letter-spacing: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; padding: 0; list-style: none; }
.chips li { background: var(--white); color: var(--ink); border: 2px solid var(--ink); box-shadow: 3px 3px 0 var(--ink); border-radius: 8px; padding: 4px 10px; font-weight: 800; font-size: 14px; }
.chips li { --r: -2deg; transform: rotate(var(--r)); }
.chips li:nth-child(even) { --r: 1.5deg; }
.chips li:first-child { background: var(--sun); }

/* ---------- browser window frame ---------- */
.win { width: 100%; border: var(--b); border-radius: 14px; overflow: hidden; background: var(--white); box-shadow: var(--sh); margin: 0; color: var(--ink); }
.win-bar { display: flex; gap: 7px; align-items: center; padding: 9px 12px; border-bottom: var(--b); background: var(--white); }
.win-bar i { width: 12px; height: 12px; border-radius: 50%; border: 2px solid var(--ink); flex: none; }
.win-bar i:nth-child(1) { background: #d4161c; } .win-bar i:nth-child(2) { background: var(--sun); } .win-bar i:nth-child(3) { background: #1fae5f; }
.win-bar span { margin-left: 8px; font: 600 13px var(--mono); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.win img { width: 100%; aspect-ratio: 1280 / 800; object-fit: cover; }

/* ---------- section heads ---------- */
.sh { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px 24px; flex-wrap: wrap; margin: 0 0 32px; }
.sh h2 { font-size: clamp(44px, 6.4vw, 92px); }
.sh p { font-weight: 600; max-width: 28em; }
.sh.sm h2 { font-size: clamp(36px, 4.6vw, 64px); }
:lang(ru) .sh h2 { font-size: clamp(36px, 5vw, 72px); }
:lang(ja) .sh h2, :lang(ko) .sh h2, :lang(zh-TW) .sh h2 { font-size: clamp(28px, 3.4vw, 48px); }

/* ---------- home hero ---------- */
.hero { padding-block: 24px clamp(48px, 7vw, 88px); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(28px, 4vw, 64px); align-items: center; }
.hero h1 { font-size: clamp(54px, 7.4vw, 116px); letter-spacing: -.02em; margin: 0 0 28px; }
:lang(de) .hero h1, :lang(fr) .hero h1, :lang(es) .hero h1, :lang(it) .hero h1, :lang(pt-BR) .hero h1, :lang(nl) .hero h1, :lang(pl) .hero h1, :lang(tr) .hero h1, :lang(id) .hero h1 { font-size: clamp(46px, 6vw, 96px); }
:lang(ru) .hero h1 { font-size: clamp(40px, 5.2vw, 80px); }
:lang(ja) .hero h1, :lang(ko) .hero h1, :lang(zh-TW) .hero h1 { font-size: clamp(34px, 4.4vw, 64px); }
.lead { font-size: clamp(18px, 1.6vw, 21px); max-width: 34em; margin: 0 0 32px; font-weight: 500; }
.swatches { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border: var(--b); box-shadow: var(--sh); background: var(--ink); gap: 3px; margin: 0; padding: 0; list-style: none; }
.sw { aspect-ratio: 1 / 1; display: flex; flex-direction: column; justify-content: space-between; gap: 8px; padding: 14px 14px clamp(20px, 2vw, 28px); text-decoration: none; background: var(--c); color: var(--on); min-width: 0; height: 100%; }
.sw img { width: 38%; max-width: 64px; border: 2px solid var(--ink); border-radius: 14px; background: var(--white); transition: transform .2s ease; }
.sw span { font-family: var(--display); font-weight: 900; font-size: clamp(17px, 1.65vw, 25px); line-height: 1; hyphens: manual; }
:lang(ru) .sw span { line-height: 1.05; }
.sw:hover span { text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: 4px; }
.sw:hover img { transform: rotate(-8deg) scale(1.06); }

/* ---------- product blocks ---------- */
.blk { --red: var(--c2); background: var(--c); color: var(--on); border: var(--b); box-shadow: var(--sh); border-radius: var(--r); overflow: hidden; }
.blk.big { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); }
.blk.big + .blk.big { margin-top: 40px; }
.blk .txt { padding: clamp(24px, 3.4vw, 48px); display: flex; flex-direction: column; gap: 20px; align-items: flex-start; min-width: 0; }
.blk .pic { padding: clamp(24px, 3.4vw, 48px); display: flex; align-items: center; background: var(--c2); border-left: var(--b); min-width: 0; }
.blk.big.flip .txt { order: 2; }
.blk.big.flip .pic { border-left: 0; border-right: var(--b); }
.blk h3 { font-size: clamp(46px, 6.2vw, 100px); letter-spacing: -.015em; }
.blk h3 a { text-decoration: none; }
.blk h3 a:hover { text-decoration: underline; text-decoration-thickness: 6px; text-underline-offset: 8px; }
.blk .tl { font-size: 18px; font-weight: 500; max-width: 31em; }
.feats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin: 0; padding: 0; list-style: none; width: 100%; }
.feats li { border-top: 3px solid currentColor; padding-top: 10px; font-size: 14.5px; line-height: 1.45; }
.feats b { display: block; font-family: var(--display); font-weight: 900; font-size: 23px; line-height: 1; margin-bottom: 6px; }
:lang(ja) .feats b, :lang(ko) .feats b, :lang(zh-TW) .feats b { font-size: 17px; line-height: 1.3; font-weight: 800; }
.blk .btn-soon { color: var(--on); }

.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px; margin-top: 40px; }
.grid2 .blk { display: flex; flex-direction: column; }
.tilebox { border-bottom: var(--b); padding: clamp(20px, 3vw, 40px); background: var(--c2); }
.tilebox img { width: 100%; max-width: 460px; aspect-ratio: 440 / 280; object-fit: cover; border: var(--b); border-radius: 12px; box-shadow: var(--sh-s); transform: rotate(-1.2deg); transition: transform .2s ease; }
.grid2 .blk:hover .tilebox img { transform: rotate(0deg) translateY(-3px); }
.grid2 .txt { flex: 1; }
.grid2 h3 { font-size: clamp(42px, 4.6vw, 74px); }
.grid2 .tl { font-size: 16.5px; }
.grid2 .row { margin-top: auto; }
:lang(ru) .blk h3 { font-size: clamp(36px, 4.4vw, 70px); }
:lang(ja) .blk h3, :lang(ko) .blk h3, :lang(zh-TW) .blk h3 { font-size: clamp(28px, 3.2vw, 48px); }

/* ---------- portfolio stat line ---------- */
.stat { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; margin: 0 0 28px; font-weight: 700; }
.stat .pair { display: inline-flex; align-items: center; gap: 12px; }
.stat b { font: 900 clamp(32px, 3vw, 44px)/.9 var(--display); background: var(--white); border: var(--b); border-radius: 12px; box-shadow: var(--sh-s); padding: 6px 12px 8px; }
.stat .pair:first-child b { background: var(--sun); transform: rotate(-2deg); }
.stat .pair > span { max-width: 9em; line-height: 1.2; }
.proof + .stat, .sh + .stat { margin-bottom: 28px; }
/* ---------- facts, principles, about ---------- */
.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px 20px; margin: 0; padding: 0; list-style: none; }
.facts li { border: var(--b); border-radius: 14px; box-shadow: var(--sh-s); padding: 14px 18px; display: flex; align-items: center; gap: 14px; line-height: 1.25; font-weight: 700; background: var(--white); }
.facts li b { font-family: var(--display); font-weight: 900; font-size: 52px; line-height: .8; flex: none; }
.facts li:nth-child(1) { background: var(--sun); transform: rotate(-1.5deg); }
.facts li:nth-child(2) { background: #2a5fd0; color: var(--white); }
.facts li:nth-child(3) { transform: rotate(1.2deg); }
.facts li:nth-child(4) { background: #1fae5f; }
.facts li:nth-child(5) { background: #7b3fe4; color: var(--white); transform: rotate(-1deg); }
@media (max-width: 1000px) { .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .facts { grid-template-columns: 1fr; } }
.pts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; margin: 0 0 44px; padding: 0; list-style: none; }
.pts li { background: var(--white); border: var(--b); border-radius: 18px; padding: 24px 22px 26px; box-shadow: var(--sh-s); display: grid; gap: 12px; align-content: start; }
.pts li::before { content: ""; height: 14px; border: 2px solid var(--ink); border-radius: 999px; width: 56%; margin-bottom: 8px; background: #d4161c; }
.pts li:nth-child(2)::before { background: #1fae5f; width: 72%; }
.pts li:nth-child(3)::before { background: var(--sun); width: 40%; }
.pts li:nth-child(4)::before { background: #7b3fe4; width: 64%; }
.pts h3 { font-size: 34px; }
:lang(ja) .pts h3, :lang(ko) .pts h3, :lang(zh-TW) .pts h3 { font-size: 22px; }
.pts p { font-size: 15.5px; }
.about { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 16px 32px; align-items: start; }
.about h2 { font-size: clamp(40px, 4.4vw, 64px); }
.about div { display: grid; gap: 12px; font-size: 18px; font-weight: 500; max-width: 36em; }
.about a { font-weight: 800; }

/* ---------- services (dark block) ---------- */
.svc { background: var(--ink); color: var(--white); border-radius: 28px; padding: clamp(24px, 4.4vw, 64px); box-shadow: 8px 8px 0 var(--sun); }
.svc .sh p { color: #d8d8d8; }
.svc-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(20px, 3vw, 48px); }
.svc-grid > a { border: 3px solid var(--white); border-radius: 18px; padding: clamp(22px, 2.6vw, 36px); display: flex; flex-direction: column; gap: 16px; text-decoration: none; }
.svc-grid > a:hover { background: #1d1d1d; }
.svc-grid h3 { font-size: clamp(38px, 3.8vw, 58px); }
.svc-grid p { color: #e2e2e2; max-width: 34em; }
.svc-grid .chips li { box-shadow: 3px 3px 0 var(--white); transform: none; }
.svc-grid .chips li:nth-child(3n+2) { background: var(--white); }
.svc-grid .chips li:nth-child(3n) { background: #9ad8ff; }
.svc-grid .btn { margin-top: auto; align-self: flex-start; border-color: var(--white); box-shadow: 4px 4px 0 var(--white); }
.svc-grid > a:hover .btn { transform: translate(2px, 2px); box-shadow: 2px 2px 0 var(--white); }

/* ---------- product page ---------- */
.p-hero { padding-top: 16px; }
.p-id { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.p-id img { width: 64px; height: 64px; border: var(--b); border-radius: 16px; background: var(--white); box-shadow: var(--sh-s); }
.p-hero h1 { font-size: clamp(42px, 4.8vw, 80px); letter-spacing: -.015em; }
:lang(ru) .p-hero h1 { font-size: clamp(38px, 4.4vw, 70px); }
:lang(ja) .p-hero h1, :lang(ko) .p-hero h1, :lang(zh-TW) .p-hero h1 { font-size: clamp(30px, 3.4vw, 52px); }
.p-hero .lead { margin: 0; }
.p-hero .purpose { font-size: 15px; max-width: 34em; }
.p-hero .btn { font-size: 17px; }
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 24px; margin: 0; padding: 0; list-style: none; counter-reset: s; }
.steps li { counter-increment: s; background: var(--white); border: var(--b); border-radius: 18px; padding: 22px; box-shadow: var(--sh-s); display: grid; gap: 14px; align-content: start; }
.steps li::before { content: counter(s); display: grid; place-items: center; width: 52px; height: 52px; background: var(--c); color: var(--on); border: var(--b); border-radius: 12px; font: 900 34px/1 var(--display); box-shadow: 3px 3px 0 var(--ink); }
.steps li:nth-child(even)::before { transform: rotate(4deg); }
.steps li:nth-child(odd)::before { transform: rotate(-4deg); }
.fgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 24px; margin: 0; padding: 0; list-style: none; }
.fgrid li { background: var(--white); border: var(--b); border-radius: 18px; padding: 0 22px 24px; display: grid; gap: 10px; align-content: start; overflow: hidden; }
.fgrid li::before { content: ""; height: 14px; margin: 0 -22px 10px; background: var(--c); border-bottom: var(--b); }
.fgrid li:nth-child(3n+2)::before { background: var(--c2); }
.fgrid li:nth-child(3n)::before { background: var(--sun); }
.fgrid h3 { font-size: 30px; }
:lang(ja) .fgrid h3, :lang(ko) .fgrid h3, :lang(zh-TW) .fgrid h3 { font-size: 20px; }
.fgrid p { font-size: 15.5px; }
.gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 36px 32px; }
.gallery figure { margin: 0; display: grid; gap: 14px; align-content: start; }
.gallery figcaption { font-weight: 600; font-size: 15px; }
.gallery figure:nth-child(odd) .win { transform: rotate(-.6deg); }
.gallery figure:nth-child(even) .win { transform: rotate(.6deg); }
.priv { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 20px 32px; background: var(--ink); color: var(--white); border-radius: var(--r); padding: clamp(24px, 4vw, 56px); box-shadow: 8px 8px 0 var(--c); }
.priv .lock { width: 84px; height: 84px; display: grid; place-items: center; background: var(--sun); color: var(--ink); border: 3px solid var(--white); border-radius: 18px; transform: rotate(-5deg); }
.priv .lock svg { width: 44px; height: 44px; }
.priv h2 { font-size: clamp(38px, 4.4vw, 64px); margin-bottom: 18px; }
.priv .t { display: grid; gap: 12px; max-width: 46em; color: #e6e6e6; }
.priv a { color: var(--sun); font-weight: 800; }
.faq-list { display: grid; gap: 14px; max-width: 980px; }
.faq-list details { background: var(--white); border: var(--b); border-radius: 14px; }
.faq-list details[open] { box-shadow: var(--sh-s); }
.faq-list summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 16px 20px; font-weight: 800; font-size: 18px; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; flex: none; display: grid; place-items: center; width: 34px; height: 34px; border: 2px solid var(--ink); border-radius: 50%; font: 800 22px/1 var(--text); background: var(--sun); }
.faq-list details[open] summary::after { content: "−"; background: var(--ink); color: var(--white); }
.faq-list details p { padding: 0 20px 18px; max-width: 52em; }
.links { display: flex; flex-wrap: wrap; gap: 14px; margin: 0; padding: 0; list-style: none; }
.links a { display: inline-flex; gap: 10px; align-items: center; background: var(--white); border: var(--b); border-radius: 12px; box-shadow: var(--sh-s); padding: 12px 18px; font-weight: 800; text-decoration: none; }
.links a::after { content: "→"; }
.links a:hover { background: var(--sun); }
.end .txt { flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 40px; }
.end .p-id h2 { font-size: clamp(38px, 4.6vw, 68px); }
.end .grow { display: grid; gap: 14px; flex: 1 1 380px; }
.end p { max-width: 34em; font-weight: 500; }
.note-s { font-size: 14px; opacity: .88; flex-basis: 100%; }

/* ---------- guides and prose ---------- */
.guide-grid { display: grid; gap: 40px; grid-template-columns: minmax(0, 1fr); padding-block: 16px 72px; }
@media (min-width: 1000px) { .guide-grid { grid-template-columns: minmax(0, 48rem) minmax(0, 330px); justify-content: space-between; } .guide-grid aside { position: sticky; top: 24px; align-self: start; } }
.prose { display: grid; gap: 18px; max-width: 48rem; min-width: 0; }
.prose h1 { font-size: clamp(44px, 5.6vw, 84px); }
:lang(ru) .prose h1 { font-size: clamp(36px, 4.4vw, 64px); }
:lang(ja) .prose h1, :lang(ko) .prose h1, :lang(zh-TW) .prose h1 { font-size: clamp(28px, 3.2vw, 44px); }
.prose h2 { font-size: clamp(32px, 3.6vw, 48px); margin-top: 22px; }
.prose h3 { font-size: 28px; margin-top: 8px; }
:lang(ja) .prose :is(h2, h3), :lang(ko) .prose :is(h2, h3), :lang(zh-TW) .prose :is(h2, h3) { font-size: 24px; }
.prose .lead { margin: 0; }
.prose ul, .prose ol { margin: 0; padding-left: 1.3rem; display: grid; gap: 8px; }
.prose li::marker { font-weight: 800; }
.prose a { font-weight: 700; text-decoration-thickness: 2px; }
.crumbs { font-size: 14px; font-weight: 600; display: flex; flex-wrap: wrap; gap: 8px; }
.eyebrow { font-weight: 800; font-size: 13px; letter-spacing: .06em; text-transform: uppercase; }
.note { background: var(--sun); border: var(--b); border-radius: 12px; padding: 14px 18px; font-weight: 500; }
.example { font: 14.5px/1.6 var(--mono); background: var(--white); border: var(--b); border-radius: 12px; padding: 14px 18px; overflow-wrap: anywhere; box-shadow: var(--sh-s); }
pre { margin: 0; background: var(--ink); color: var(--white); border-radius: 12px; padding: 16px 18px; overflow-x: auto; font: 14px/1.6 var(--mono); }
pre code { background: none; border: 0; padding: 0; color: inherit; }
.table { overflow-x: auto; border: var(--b); border-radius: 14px; background: var(--white); box-shadow: var(--sh-s); }
.table table { border-collapse: collapse; width: 100%; font-size: 15.5px; }
.table caption { text-align: left; padding: 12px 16px; font-weight: 800; border-bottom: var(--b); background: var(--sun); }
.table th, .table td { padding: 9px 16px; text-align: left; border-bottom: 2px solid #e4e4e0; vertical-align: top; }
.table thead th { background: var(--ink); color: var(--white); font-weight: 800; border-bottom: 0; }
.table tbody tr:last-child > * { border-bottom: 0; }
.table tbody th { font-weight: 800; }
.sources { font-size: 15px; }
.promo { --red: var(--c2); background: var(--c); color: var(--on); border: var(--b); box-shadow: var(--sh); border-radius: var(--r); padding: 24px; display: grid; gap: 16px; justify-items: start; }
.promo .p-id img { width: 52px; height: 52px; }
.promo strong { font: 900 30px/.95 var(--display); display: block; }
.promo .btn { font-size: 15px; padding: 11px 14px; }

/* ---------- service pages ---------- */
.s-hero { padding-top: 16px; }
.s-hero .svc { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 330px); gap: 32px 48px; align-items: center; }
.s-hero .copy { display: grid; gap: 24px; justify-items: start; }
.s-hero .ticket { background: var(--sun); color: var(--ink); border: 3px solid var(--white); border-radius: 18px; padding: 24px 26px; transform: rotate(2.5deg); box-shadow: 6px 6px 0 var(--white); margin: 0; list-style: none; display: grid; gap: 4px; }
.s-hero .ticket li { font: 900 clamp(28px, 2.6vw, 40px)/1 var(--display); padding: 10px 0; border-bottom: 3px solid var(--ink); display: flex; gap: 12px; align-items: center; }
.s-hero .ticket li:last-child { border-bottom: 0; }
.s-hero .ticket li::before { content: "✓"; flex: none; display: grid; place-items: center; width: 26px; height: 26px; border: 3px solid var(--ink); border-radius: 6px; background: var(--white); font: 800 17px/1 var(--text); }
@media (max-width: 900px) { .s-hero .svc { grid-template-columns: 1fr; } .s-hero .ticket { max-width: 360px; } }
.s-hero h1 { font-size: clamp(52px, 7.6vw, 124px); letter-spacing: -.02em; max-width: 12ch; }
:lang(ru) .s-hero h1 { font-size: clamp(40px, 5.6vw, 88px); }
.s-hero .lead { color: #e6e6e6; margin: 0; }
.s-hero .btn, .end-sun .btn { border-color: var(--white); box-shadow: 4px 4px 0 var(--white); }
.end-sun .btn { border-color: var(--ink); box-shadow: var(--sh-s); }
.s-hero .btn:hover { box-shadow: 2px 2px 0 var(--white); }
.mailtxt { font: 600 15px var(--mono); user-select: all; }
.s-hero .mailtxt { color: #d8d8d8; }
.offer li:nth-child(6n+1)::before { background: #d4161c; } .offer li:nth-child(6n+2)::before { background: #0d47a1; }
.offer li:nth-child(6n+3)::before { background: var(--sun); } .offer li:nth-child(6n+4)::before { background: #2a5fd0; }
.offer li:nth-child(6n+5)::before { background: #1fae5f; } .offer li:nth-child(6n)::before { background: #7b3fe4; }
.proof { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.proof .sw { aspect-ratio: 4 / 5; }
.proof .sw span { font-size: clamp(17px, 1.5vw, 23px); }
.end-sun { background: var(--sun); border: var(--b); box-shadow: var(--sh); border-radius: var(--r); padding: clamp(24px, 3.6vw, 48px); display: grid; gap: 18px; justify-items: start; }
.end-sun h2 { font-size: clamp(40px, 5vw, 76px); }
.end-sun p { font-size: 18px; font-weight: 500; max-width: 34em; }

/* ---------- footer ---------- */
.foot { margin-top: 40px; border-top: var(--b); background: var(--white); }
.foot .wrap { padding-block: 48px 40px; display: grid; gap: 36px; }
.foot-top { display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; }
.foot-top p { font-weight: 700; margin-bottom: 8px; }
.mail { font-family: var(--display); font-weight: 900; font-size: clamp(30px, 5vw, 72px); line-height: .95; text-decoration: none; display: inline-block; border-bottom: 6px solid #d4161c; overflow-wrap: anywhere; }
.mail:hover { background: var(--sun); }
.fstrip { display: flex; border: var(--b); border-radius: 8px; overflow: hidden; }
.fstrip i { width: 28px; height: 28px; }
.foot-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 28px; }
.foot-grid h2 { font-size: 26px; margin-bottom: 12px; }
:lang(ja) .foot-grid h2, :lang(ko) .foot-grid h2, :lang(zh-TW) .foot-grid h2 { font-size: 18px; }
.foot-grid ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; }
.foot-grid a { text-decoration: none; font-weight: 600; }
.foot-grid a:hover { text-decoration: underline; text-decoration-thickness: 2px; }
.foot-langs ul { grid-template-columns: repeat(2, minmax(0, max-content)); column-gap: 18px; }
.legal { font-size: 13.5px; max-width: 56em; color: var(--ink-2); }

/* ---------- 404 ---------- */
.nf { display: grid; gap: 22px; justify-items: start; }
.nf h1 { font-size: clamp(56px, 9vw, 140px); }

/* ---------- process track (service pages) ---------- */
.track { --p: 1; position: relative; margin: 0; padding: 12px 0; list-style: none; display: grid; gap: clamp(36px, 6vw, 72px); }
.track::before, .track::after { content: ""; position: absolute; left: 50%; top: 0; bottom: 0; width: 6px; margin-left: -3px; border-radius: 3px; }
.track::before { background: repeating-linear-gradient(var(--ink) 0 10px, transparent 10px 20px); opacity: .22; }
.track::after { background: var(--ink); transform-origin: top; transform: scaleY(var(--p)); }
.step { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 96px minmax(0, 1fr); align-items: center; }
.step .node { grid-column: 2; grid-row: 1; justify-self: center; z-index: 1; width: 76px; height: 76px; display: grid; place-items: center; border: var(--b); border-radius: 50%; background: var(--sc); color: var(--son); font: 900 44px/1 var(--display); box-shadow: var(--sh-s); }
.step .card { grid-column: 1; grid-row: 1; background: var(--white); border: var(--b); border-radius: 18px; box-shadow: var(--sh); padding: clamp(20px, 2.4vw, 30px); display: grid; gap: 10px; }
.step .card h3 { font-size: clamp(32px, 3.2vw, 48px); }
.step .card::before { content: ""; height: 12px; width: 64px; border: 2px solid var(--ink); border-radius: 999px; background: var(--sc); }
.step .art { grid-column: 3; grid-row: 1; position: relative; height: 210px; border: var(--b); border-radius: 18px; background: color-mix(in srgb, var(--sc) 16%, var(--white)); overflow: hidden; padding: 24px; }
.step:nth-child(even) .card { grid-column: 3; }
.step:nth-child(even) .art { grid-column: 1; }
@media (max-width: 820px) {
  .track::before, .track::after { left: 28px; }
  .step { grid-template-columns: 56px minmax(0, 1fr); gap: 16px 14px; align-items: start; }
  .step .node, .step:nth-child(even) .node { grid-column: 1; width: 56px; height: 56px; font-size: 32px; }
  .step .card, .step:nth-child(even) .card { grid-column: 2; grid-row: 1; }
  .step .art, .step:nth-child(even) .art { grid-column: 2; grid-row: 2; height: 180px; }
}

/* scenes: every animation starts from its "from" frame, so the static state is the finished drawing */
.art * { box-sizing: border-box; }
.a-paper { position: relative; width: 72%; height: 100%; background: var(--white); border: var(--b); border-radius: 10px; padding: 20px; display: grid; gap: 13px; align-content: start; transform: rotate(-3deg); box-shadow: var(--sh-s); }
.a-paper i { display: block; height: 11px; width: var(--w); border-radius: 6px; background: var(--ink); transform-origin: left; animation: a-grow .5s calc(var(--i) * .16s + .2s) both; }
.a-stamp { position: absolute; right: -26%; bottom: 8%; width: 76px; height: 76px; display: grid; place-items: center; border: 5px solid #d4161c; border-radius: 50%; color: #d4161c; background: var(--white); font: 900 44px/1 var(--text); transform: rotate(-12deg); animation: a-slap .5s 1.05s both; }
.a-bars { position: relative; height: 100%; display: flex; align-items: flex-end; gap: 12px; padding: 0 10px; border-bottom: var(--b); }
.a-bars i { flex: 1; height: var(--h); border: var(--b); border-bottom: 0; border-radius: 8px 8px 0 0; background: var(--white); transform-origin: bottom; animation: a-rise .6s calc(var(--i) * .12s + .15s) cubic-bezier(.3, 1.4, .5, 1) both; }
.a-bars i:nth-child(4) { background: var(--sun); }
.a-lens { position: absolute; top: 8px; left: 62%; width: 58px; height: 58px; border: 6px solid var(--ink); border-radius: 50%; background: rgb(255 255 255 / 45%); animation: a-scan 1.5s .5s ease-in-out both; }
.a-lens::after { content: ""; position: absolute; width: 8px; height: 30px; background: var(--ink); border-radius: 4px; right: -14px; bottom: -26px; transform: rotate(-45deg); }
.a-code { height: 100%; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 16px; }
.a-code .code { background: var(--ink); border-radius: 12px; padding: 16px; display: grid; gap: 11px; align-content: start; border: var(--b); }
.a-code p { display: flex; gap: 8px; margin: 0; }
.a-code p:nth-child(3), .a-code p:nth-child(4) { padding-left: 18px; }
.a-code i { display: block; height: 10px; width: var(--w); border-radius: 5px; transform-origin: left; animation: a-grow .35s calc(var(--i) * .2s + .1s) both; }
.a-code .t0 { background: #ffd23f; } .a-code .t1 { background: #9ad8ff; } .a-code .t2 { background: #ff8a80; } .a-code .t3 { background: #b9f6ca; }
.a-code .tests { margin: 0; padding: 0; list-style: none; display: grid; gap: 9px; align-content: center; }
.a-code .tests li { width: 34px; height: 34px; display: grid; place-items: center; border: var(--b); border-radius: 8px; background: #1fae5f; color: var(--ink); font: 900 18px/1 var(--text); animation: a-pop .35s calc(var(--i) * .16s + 1.15s) cubic-bezier(.3, 1.6, .5, 1) both; }
.a-langs { position: relative; height: 100%; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; align-content: center; perspective: 600px; }
.a-langs i { display: grid; place-items: center; height: 36px; border: 2px solid var(--ink); border-radius: 8px; background: var(--white); font: 700 14px var(--mono); text-transform: uppercase; font-style: normal; animation: a-flip .45s calc(var(--i) * .06s + .1s) both; }
.a-big { position: absolute; left: 50%; top: 50%; margin: -44px 0 0 -62px; width: 124px; height: 88px; display: grid; place-items: center; background: var(--sun); border: var(--b); border-radius: 14px; box-shadow: var(--sh-s); font: 900 76px/1 var(--display); transform: rotate(-6deg); animation: a-slap .5s 1s both; }
.a-bar { position: absolute; left: 24px; right: 24px; top: 50%; margin-top: -32px; height: 64px; display: flex; align-items: center; gap: 10px; padding: 0 14px; background: var(--white); border: var(--b); border-radius: 14px; box-shadow: var(--sh-s); }
.a-bar .omni { flex: 1; min-width: 40px; height: 24px; border: 2px solid var(--ink); border-radius: 12px; background: #ececea; }
.a-bar .slot { display: flex; gap: 6px; }
.a-bar i, .a-bar .drop { display: block; width: 26px; height: 26px; border: 2px solid var(--ink); border-radius: 7px; }
.a-bar .drop { position: relative; width: 32px; height: 32px; border-width: 3px; animation: a-drop .8s .3s cubic-bezier(.3, 1.3, .5, 1) both; }
.a-bar .drop::after { content: ""; position: absolute; right: -8px; top: -8px; width: 14px; height: 14px; border: 2px solid var(--ink); border-radius: 50%; background: #1fae5f; animation: a-pulse 1.6s 1.2s infinite; }
.a-bar .puz { width: 22px; height: 22px; border: 3px solid var(--ink); border-radius: 5px; }
.a-card { position: relative; height: 100%; background: var(--white); border: var(--b); border-radius: 12px; padding: 18px; display: grid; gap: 11px; align-content: start; box-shadow: var(--sh-s); }
.a-card i { display: block; height: 10px; width: var(--w); border-radius: 5px; background: #bdbdb8; }
.a-card .h { height: 16px; width: 55%; background: var(--ink); }
.a-card .ring { position: absolute; left: 10px; height: 30px; border: 4px solid #d4161c; border-radius: 50%; animation: a-draw .6s both; }
.a-card .r1 { top: 42px; width: 78%; animation-delay: .4s; }
.a-card .r2 { top: 105px; width: 56%; animation-delay: .9s; }
.a-rw { height: 100%; display: grid; gap: 14px; align-content: center; }
.a-rw div { display: grid; gap: 6px; }
.a-rw i { display: block; height: 12px; width: var(--w); border-radius: 6px; position: relative; }
.a-rw .old { background: #bdbdb8; }
.a-rw .old::after { content: ""; position: absolute; left: -4px; right: -4px; top: 4px; height: 4px; background: #d4161c; transform-origin: left; animation: a-grow .3s calc(var(--i) * .45s + .2s) both; }
.a-rw .new { background: #1fae5f; border: 2px solid var(--ink); height: 14px; transform-origin: left; animation: a-grow .45s calc(var(--i) * .45s + .5s) both; }
.a-chart { width: 100%; height: 100%; overflow: visible; }
.a-chart .grid { stroke: var(--ink); stroke-opacity: .18; stroke-width: 2; stroke-dasharray: 6 6; fill: none; }
.a-chart .line { fill: none; stroke: var(--ink); stroke-width: 6; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 420; animation: a-line 1.4s .2s ease-out both; }
.a-chart circle { fill: var(--sun); stroke: var(--ink); stroke-width: 4; transform-box: fill-box; transform-origin: center; animation: a-pop .35s calc(var(--i) * .3s + .4s) both; }
@keyframes a-grow { from { transform: scaleX(0); } }
@keyframes a-rise { from { transform: scaleY(0); } }
@keyframes a-pop { from { transform: scale(0) rotate(-30deg); } }
@keyframes a-flip { from { transform: rotateX(90deg); opacity: 0; } }
@keyframes a-slap { 0% { transform: scale(2.4) rotate(-28deg); opacity: 0; } 60% { transform: scale(.92) rotate(-4deg); opacity: 1; } }
@keyframes a-scan { from { left: 2%; top: 60px; } 50% { left: 34%; top: 0; } }
@keyframes a-drop { 0% { transform: translateY(-150px) rotate(-40deg); } 70% { transform: translateY(6px) rotate(6deg); } }
@keyframes a-pulse { 0%, 100% { box-shadow: 0 0 0 0 rgb(31 174 95 / 60%); } 60% { box-shadow: 0 0 0 10px rgb(31 174 95 / 0%); } }
@keyframes a-draw { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes a-line { from { stroke-dashoffset: 420; } to { stroke-dashoffset: 0; } }

/* ---------- motion (only with html.anim: JS present and no reduced-motion preference) ---------- */
.progress { display: none; }
html.anim .progress { --sp: 0; display: flex; position: fixed; z-index: 30; left: 0; right: 0; top: 0; height: calc(5px + env(safe-area-inset-top, 0px)); transform-origin: left; transform: scaleX(var(--sp)); pointer-events: none; }
.progress i { flex: 1; }
html.anim .rv { opacity: 0; transform: translate(6px, 24px) rotate(.6deg); transition: opacity .35s ease var(--d, 0ms), transform .48s cubic-bezier(.2, .9, .25, 1.15) var(--d, 0ms), box-shadow .35s ease calc(var(--d, 0ms) + .15s); }
html.anim .rv.in { opacity: 1; transform: none; }
html.anim :is(.blk, .pts li, .fgrid li, .steps li, .facts li, .links li, .step .card, .promo, .end-sun, .svc).rv:not(.in) { box-shadow: 0 0 0 var(--ink); }
html.anim .step.rv { transform: none; opacity: 1; }
html.anim .step.rv .card { transition: transform .5s cubic-bezier(.2, .9, .25, 1.15) .05s, opacity .35s .05s, box-shadow .35s .25s; }
html.anim .step.rv:not(.in) .card { opacity: 0; transform: translateX(-60px) rotate(-2deg); box-shadow: 0 0 0 var(--ink); }
html.anim .step.rv:nth-child(even):not(.in) .card { transform: translateX(60px) rotate(2deg); }
html.anim .step.rv .node { transition: transform .5s cubic-bezier(.3, 1.6, .5, 1), background-color .3s, color .3s; }
html.anim .step.rv:not(.in) .node { transform: scale(.55); background: var(--white); color: var(--ink); }
html.anim .step.rv .art { transition: opacity .35s .15s, transform .5s cubic-bezier(.2, .9, .25, 1.15) .15s; }
html.anim .step.rv:not(.in) .art { opacity: 0; transform: translateY(30px) scale(.94); }
html.anim .step.rv .art * { animation-play-state: paused; }
html.anim .step.rv.in .art * { animation-play-state: running; }
@media (max-width: 820px) { html.anim .step.rv:nth-child(n):not(.in) .card { transform: translateY(30px); } }
html.anim .blk.big.rv .pic .win { transition: transform .6s cubic-bezier(.2, .9, .25, 1.1) .12s, opacity .4s .12s; }
html.anim .blk.big.rv:not(.in) .pic .win { opacity: 0; transform: translateX(60px) rotate(4deg); }
html.anim .blk.big.flip.rv:not(.in) .pic .win { transform: translateX(-60px) rotate(-4deg); }
html.anim .blk .pic .win { transition: transform .25s ease-out; will-change: transform; }
html.anim .rv .chips li { animation: chip .45s cubic-bezier(.3, 1.6, .5, 1) both paused; }
html.anim .rv.in .chips li { animation-play-state: running; }
html.anim .chips li:nth-child(1) { animation-delay: .35s; } html.anim .chips li:nth-child(2) { animation-delay: .45s; } html.anim .chips li:nth-child(3) { animation-delay: .55s; } html.anim .chips li:nth-child(4) { animation-delay: .65s; }
@keyframes chip { from { transform: scale(0) rotate(-25deg); } }
html.anim .steps li.rv::before { animation: a-slap .5s both paused; animation-delay: calc(var(--d, 0ms) + .3s); }
html.anim .steps li.rv.in::before { animation-play-state: running; }
html.anim .pts li.rv::before { transform-origin: left; transition: transform .6s cubic-bezier(.3, 1.4, .5, 1) calc(var(--d, 0ms) + .3s); }
html.anim .pts li.rv:not(.in)::before { transform: scaleX(0); }
html.anim .priv.rv.in .lock { animation: lock .7s .35s both; }
@keyframes lock { 0% { transform: rotate(-5deg) scale(.4); } 50% { transform: rotate(10deg) scale(1.1); } 70% { transform: rotate(-12deg); } 100% { transform: rotate(-5deg); } }
html.anim .gallery figure.rv:not(.in) .win { transform: rotate(-4deg) scale(.96); }
html.anim .gallery figure .win { transition: transform .8s cubic-bezier(.2, .9, .25, 1.15) calc(var(--d, 0ms) + .1s); }
/* hero: the sticker slaps on, the tiles drop in */
html.intro .hero h1 .hl, html.intro .p-hero h1 .hl { animation: a-slap .6s .35s both; }
html.intro .hero .lead, html.intro .hero .row { animation: rise-in .6s both; }
html.intro .hero .lead { animation-delay: .15s; } html.intro .hero .row { animation-delay: .3s; }
html.intro .hero h1 { animation: rise-in .6s both; }
html.intro .swatches li { animation: tile .55s cubic-bezier(.3, 1.4, .5, 1) both; }
html.intro .hero .swatches li:nth-child(1) { animation-delay: .2s; } html.intro .hero .swatches li:nth-child(2) { animation-delay: .28s; } html.intro .hero .swatches li:nth-child(3) { animation-delay: .36s; }
html.intro .hero .swatches li:nth-child(4) { animation-delay: .44s; } html.intro .hero .swatches li:nth-child(5) { animation-delay: .52s; } html.intro .hero .swatches li:nth-child(6) { animation-delay: .6s; }
html.intro .proof .swatches li, html.intro .swatches.proof li { animation: none; }
html.intro .p-hero .blk, html.intro .s-hero .svc { animation: rise-in .7s cubic-bezier(.2, .9, .25, 1.1) both; }
html.intro .s-hero .ticket { animation: a-slap .6s .45s both; }
html.intro .s-hero .ticket li::before { animation: a-pop .3s both; }
html.intro .s-hero .ticket li:nth-child(1)::before { animation-delay: .9s; } html.intro .s-hero .ticket li:nth-child(2)::before { animation-delay: 1.05s; } html.intro .s-hero .ticket li:nth-child(3)::before { animation-delay: 1.2s; } html.intro .s-hero .ticket li:nth-child(4)::before { animation-delay: 1.35s; }
@keyframes rise-in { from { opacity: 0; transform: translateY(26px); } }
@keyframes tile { from { opacity: 0; transform: translateY(-40px) rotate(-8deg) scale(.8); } }
/* marquee band of product names */
.band { overflow: hidden; border-block: var(--b); background: var(--sun); transform: rotate(-1.4deg); margin: 8px -24px 0; }
.band-in { display: flex; width: max-content; }
html.anim .band-in { animation: marquee 34s linear infinite; }
.band span { display: inline-flex; align-items: center; gap: 14px; padding: 12px 30px; font: 900 clamp(26px, 3vw, 40px)/1 var(--display); white-space: nowrap; }
.band i { width: 24px; height: 24px; border: 3px solid var(--ink); border-radius: 6px; transform: rotate(8deg); }
@keyframes marquee { to { transform: translateX(-50%); } }
main { overflow-x: clip; }
/* FAQ opens smoothly where the browser supports animating to auto height */
:root { interpolate-size: allow-keywords; }
.faq-list details::details-content { height: 0; overflow: clip; transition: height .35s ease, content-visibility .35s allow-discrete; }
.faq-list details[open]::details-content { height: auto; }
.faq-list summary::after { transition: transform .3s ease, background-color .2s; }
.faq-list details[open] summary::after { transform: rotate(180deg); }

/* ---------- hover: cards lift off the page, a glow follows the pointer (site.js sets --mx/--my) ---------- */
@property --glow { syntax: "<number>"; inherits: false; initial-value: 0; }
.blk, .sw, .svc-grid > a, .fgrid li, .pts li, .steps li, .step .card, .facts li, .promo, .end-sun { --glow: 0; background-image: radial-gradient(380px circle at var(--mx, 50%) var(--my, 50%), rgb(255 255 255 / calc(var(--glow) * .22)), transparent 62%); }
:is(.fgrid li, .pts li, .steps li, .step .card, .end-sun) { background-image: radial-gradient(320px circle at var(--mx, 50%) var(--my, 50%), rgb(255 210 63 / calc(var(--glow) * .45)), transparent 62%); }
.blk, .svc-grid > a, .fgrid li, .pts li, .steps li, .step .card, .facts li, .promo, .end-sun, .gallery .win, .links a { transition: transform .28s cubic-bezier(.3, 1.5, .5, 1), box-shadow .28s cubic-bezier(.3, 1.5, .5, 1), --glow .3s ease, background-color .2s; }
.sw { transition: --glow .3s ease; position: relative; }
@media (hover: hover) {
  .blk:hover, .promo:hover, .end-sun:hover { --glow: 1; transform: translate(-4px, -4px); box-shadow: 12px 12px 0 var(--ink); }
  .fgrid li:hover, .pts li:hover, .steps li:hover, .step .card:hover, .facts li:hover { --glow: 1; transform: translate(-3px, -3px); box-shadow: 8px 8px 0 var(--ink); }
  .facts li:hover { transform: translate(-3px, -3px) rotate(0deg) scale(1.03); }
  .svc-grid > a:hover { --glow: 1; transform: translate(-3px, -3px); box-shadow: 8px 8px 0 var(--sun); }
  .sw:hover { --glow: 1; }
  .fgrid li::before { transition: height .25s cubic-bezier(.3, 1.5, .5, 1); }
  .fgrid li:hover::before { height: 26px; }
  .pts li::before { transition: width .35s cubic-bezier(.3, 1.5, .5, 1), transform .6s; }
  .pts li:hover::before { width: 92%; }
  .steps li:hover::before { transform: rotate(-12deg) scale(1.12); transition: transform .3s cubic-bezier(.3, 1.6, .5, 1); }
  .step .card:hover::before { width: 120px; }
  .step .card::before { transition: width .35s cubic-bezier(.3, 1.5, .5, 1); }
  .step:hover .node { transform: scale(1.12) rotate(-8deg); }
  .step .node { transition: transform .3s cubic-bezier(.3, 1.6, .5, 1); }
  .chips li { transition: transform .25s cubic-bezier(.3, 1.8, .5, 1); }
  .chips li:hover { transform: rotate(calc(var(--r) * -3)) scale(1.1); }
  .gallery .win:hover { transform: rotate(0deg) scale(1.02); box-shadow: 12px 12px 0 var(--ink); }
  .links a:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--ink); }
  .links a::after { transition: transform .25s; }
  .links a:hover::after { transform: translateX(5px); }
  .p-id img, .promo .p-id img { transition: transform .3s cubic-bezier(.3, 1.6, .5, 1); }
  .blk:hover .p-id img, .promo:hover .p-id img { transform: rotate(-10deg) scale(1.08); }
  .stat b { transition: transform .25s cubic-bezier(.3, 1.6, .5, 1); }
  .stat .pair:hover b { transform: rotate(3deg) scale(1.08); }
  .mark i { transition: transform .3s cubic-bezier(.3, 1.6, .5, 1); }
  .brand:hover .mark i:nth-child(odd) { transform: translateY(-3px); }
  .brand:hover .mark i:nth-child(even) { transform: translateY(3px); }
}
/* an arrow slides into a tile on hover */
.sw::after { content: "→"; position: absolute; top: 12px; right: 14px; font: 900 30px/1 var(--text); opacity: 0; transform: translateX(-12px); transition: opacity .2s, transform .3s cubic-bezier(.3, 1.6, .5, 1); }
.sw:hover::after, .sw:focus-visible::after { opacity: 1; transform: none; }
/* the whole small card is the link to the product page; buttons inside stay clickable */
.grid2 .blk { position: relative; }
.grid2 h3 a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.grid2 .row, .grid2 .row * { position: relative; z-index: 2; }
.grid2 .blk:hover h3 a { text-decoration: underline; text-decoration-thickness: 5px; text-underline-offset: 7px; }
/* buttons: the arrow nudges, the press stays */
.btn:active { transform: translate(4px, 4px); box-shadow: 0 0 0 var(--ink); }
@media (prefers-reduced-motion: reduce) {
  .blk:hover, .promo:hover, .end-sun:hover, .fgrid li:hover, .pts li:hover, .steps li:hover, .step .card:hover, .facts li:hover, .svc-grid > a:hover, .chips li:hover, .gallery .win:hover, .links a:hover { transform: none; }
}

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .feats { grid-template-columns: 1fr; }
  .pts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .proof { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero .swatches { max-width: 560px; }
  .blk.big { grid-template-columns: 1fr; }
  .blk.big .pic, .blk.big.flip .pic { border: 0; border-top: var(--b); order: 2; }
  .blk.big.flip .txt { order: 1; }
  .grid2, .svc-grid, .about { grid-template-columns: 1fr; }
  .priv { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  :root { --sh: 5px 5px 0 var(--ink); --r: 16px; }
  body { font-size: 16px; }
  .pts { grid-template-columns: 1fr; }
  .proof { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid2 { gap: 28px; margin-top: 28px; }
  .blk.big + .blk.big { margin-top: 28px; }
  .svc { border-radius: 18px; box-shadow: 5px 5px 0 var(--sun); }
  .sw { padding: 12px 12px 18px; }
  .facts li b { font-size: 34px; }
  .faq-list summary { font-size: 16.5px; padding: 14px 16px; }
}
@media (prefers-reduced-motion: no-preference) {
  .btn, .top nav a, .links a { transition: transform .12s ease, box-shadow .12s ease, background-color .12s; }
}
@media (prefers-reduced-motion: reduce) {
  .art *, .art *::before, .art *::after { animation: none !important; }
  .faq-list details::details-content { transition: none; }
  .btn:hover, .sw:hover img, .grid2 .blk:hover .tilebox img { transform: none; }
  .sw img, .tilebox img { transition: none; }
}
/* the product hero is a page header, not a card: it does not lift */
@media (hover: hover) { .p-hero .blk:hover { transform: none; box-shadow: var(--sh); } }

/* ---------- support ---------- */
.quick { width: 100%; background: var(--white); color: var(--ink); border: var(--b); border-radius: 16px; box-shadow: var(--sh); padding: clamp(20px, 2.6vw, 32px); display: grid; gap: 16px; }
.quick h2 { font-size: clamp(30px, 3vw, 44px); }
.quick ol { margin: 0; padding: 0; list-style: none; counter-reset: q; display: grid; gap: 12px; }
.quick li { counter-increment: q; display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 12px; align-items: start; font-weight: 600; }
.quick li::before { content: counter(q); display: grid; place-items: center; width: 36px; height: 36px; border: var(--b); border-radius: 10px; background: var(--c); color: var(--on); font: 900 22px/1 var(--display); }
html.intro .quick li { animation: rise-in .45s both; }
html.intro .quick li:nth-child(1) { animation-delay: .35s; } html.intro .quick li:nth-child(2) { animation-delay: .45s; } html.intro .quick li:nth-child(3) { animation-delay: .55s; } html.intro .quick li:nth-child(4) { animation-delay: .65s; } html.intro .quick li:nth-child(5) { animation-delay: .75s; }
.checks { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; max-width: 46em; }
.checks li { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 12px; font-weight: 600; }
.checks li::before { content: "✓"; display: grid; place-items: center; width: 28px; height: 28px; border: var(--b); border-radius: 7px; background: var(--white); font: 800 16px/1 var(--text); }
.p-hero .crumbs a { color: inherit; }
