/* ==========================================================================
   sugusearch: the home page below the hero (feature sections, more, pricing, FAQ,
   footer, license pop-up). Layout and parts follow iromote's site (style.css there).
   ========================================================================== */

/* ---------- shared type ---------- */
h2.display { font-size: 56px; line-height: 1.04; margin: 14px 0 28px; }
p.body { color: var(--ink-2); margin-bottom: 14px; max-width: 470px; font-size: 18px; }
p.body-strong { color: var(--ink); font-weight: 600; }
.center-head { text-align: center; max-width: 700px; margin: 0 auto; }
.center-head p.body { margin-left: auto; margin-right: auto; max-width: 560px; }
.also { margin-top: 12px; text-align: center; font-size: 14px; color: var(--ink-2); }
.also a { font-weight: 600; color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }

section.feat { padding: 120px 0; }
.split { display: grid; grid-template-columns: 1fr 1.15fr; gap: 72px; align-items: center; }
.split > * { min-width: 0; }
.split--flip > :first-child { order: 2; }

/* ---------- the box, drawn by the sections (js/boxkit.js): a span stands in for the input ---------- */
.ssb--mini { position: relative; }
.ssb--mini .ssb-field { cursor: default; }
.ssb-q { order: 1; flex: 0 1 auto; min-width: 0; margin-left: 10px; font: 400 17px var(--app); color: #222; white-space: pre; overflow: hidden; }
.ssb-q.ph { color: #8a8a8a; flex: 1; }
.ssb-caret { order: 1; width: 1.5px; height: 20px; margin-left: 1px; background: #222; animation: caret 1.05s steps(1) infinite; }
.ssb-q.ph + .ssb-caret { order: 0; margin-left: 10px; margin-right: -11px; }
.ssb--mini .ssb-dot { order: 2; margin-left: auto; }
@keyframes caret { 50% { opacity: 0; } }
.ssb-keys { flex: none; margin-left: 10px; font-size: 14px; color: var(--b-dim); white-space: nowrap; }
.ssb--mini .ssb-row { height: auto; min-height: 52px; padding-top: 6px; padding-bottom: 6px; }
.ssb-taglist { font-size: 12px; color: var(--b-dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ssb-taglist b { color: var(--b-strong); }
.ssb-editor { display: flex; align-items: center; gap: 4px; margin-top: 3px; padding: 2px 4px; background: #fff; border: 1px solid #c8c8c8; font-size: 12px; }
.ssb-chip { display: inline-flex; align-items: center; padding: 0 5px; border: 1px solid #c4c4c4; border-radius: 3px; background: #f2f2f2; line-height: 16px; white-space: nowrap; }
.ssb-chip--new { border-color: transparent; background: none; padding: 0; }
.ssb-chip--new .ssb-caret { display: inline-block; height: 13px; margin-left: 1px; }
.ssb-addhint { color: #9a9a9a; }
.ssb-ico--svg { color: #555; }
.ssb-scroll { position: absolute; right: 3px; top: 98px; bottom: 44px; width: 4px; }
.ssb-scroll i { position: absolute; left: 0; right: 0; border-radius: 3px; background: rgba(0, 0, 0, 0.28); transition: top 0.12s; }
.ssb--rows { width: 440px; border-radius: 6px; }
.ssb--rows .ssb-list { border-top: 0; }

/* ==========================================================================
   1 · The race: digging in CSP against a few letters
   ========================================================================== */
.race { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; max-width: 1040px; margin: 56px auto 0; }
.race-tabs { position: relative; grid-column: 1 / -1; justify-self: center; display: flex; flex-wrap: wrap; justify-content: center; gap: 4px; padding: 4px; margin-bottom: -16px; border-radius: 28px; background: #f1f1f1; }
.race-tab { display: flex; align-items: center; gap: 8px; padding: 8px 16px 9px 8px; border: 0; border-radius: 999px; background: none; font: 600 14px var(--body); color: var(--ink-2); cursor: pointer; transition: background 0.2s, color 0.2s, box-shadow 0.2s; }
.race-tab b { display: grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; background: #e2e2e2; font-size: 12px; color: var(--ink-2); transition: background 0.2s, color 0.2s; }
.race-tab:hover { color: var(--ink); }
.race-tab[aria-selected="true"] { background: #fff; color: var(--ink); box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1), 0 4px 12px rgba(0, 0, 0, 0.05); }
.race-tab[aria-selected="true"] b { background: var(--ink); color: #fff; }

.race-col { position: relative; min-width: 0; }
.race-score { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 12px; }
.race-name { font: 700 17px var(--body); }
.rc-fit { position: relative; }
.rc-frame {
  position: absolute; left: 0; top: 0; height: 460px; overflow: hidden; border-radius: 12px;
  background: #d4d4d4; color: #3d3d3d; font: 500 13px var(--body); user-select: none;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.08), 0 24px 48px rgba(0, 0, 0, 0.12);
}
.rc-title { position: relative; display: flex; align-items: center; justify-content: center; height: 22px; background: #ececec; color: #8a8a8a; font-size: 11px; }
.rc-title .csp-dots { position: absolute; right: 12px; top: 50%; display: flex; gap: 10px; translate: 0 -50%; }
.rc-title .csp-dots i { width: 8px; height: 8px; border: 1.5px solid #9a9a9a; border-radius: 2px; }
.rc-menubar { display: flex; align-items: center; gap: 6px; height: 24px; padding: 0 8px; background: #ececec; border-top: 1px solid #c9c9c9; border-bottom: 1px solid #c9c9c9; font-size: 13px; white-space: nowrap; }
.rc-menubar span { padding: 1px 6px; border-radius: 3px; }
.rc-menubar span.on { background: #cfdcf0; }
.rc-body { position: absolute; left: 0; right: 0; top: 46px; bottom: 0; display: flex; }
.rc-tools { flex: none; width: 28px; padding-top: 4px; background: #e2e2e2; border-right: 1px solid #c8c8c8; }
.rc-tools i { display: block; width: 22px; height: 22px; margin: 0 auto 3px; border-radius: 3px; background: center / 18px no-repeat; }
.rc-tools i.on { background-color: #c3d3ec; }
.rc-canvas { position: relative; flex: 1; overflow: hidden; background: #a9a9a9; }
.rc-paper { position: absolute; left: 60px; right: 60px; top: 26px; bottom: -60px; background: #fff url("../assets/art/pearl.jpg") center 30% / cover no-repeat; box-shadow: 0 2px 10px rgba(0, 0, 0, 0.25); }
.rc-pal { flex: none; width: 290px; display: flex; flex-direction: column; background: #e9e9e9; border-left: 1px solid #c4c4c4; font-size: 12px; }
.rc-pal > div { flex: 1; display: flex; flex-direction: column; min-height: 0; }
.rc-frame:not([data-scene="menus"]) .rc-paper { left: 14px; right: 14px; top: 18px; }
.rc-frame[data-scene="menus"] .rc-tools, .rc-frame[data-scene="menus"] .rc-pal { display: none; }

/* CSP's palettes, light look, trimmed to what the story needs */
.pal-head { flex: none; display: flex; align-items: center; gap: 6px; height: 22px; padding: 0 8px; background: #dadada; border-bottom: 1px solid #c4c4c4; font-size: 11px; color: #555; white-space: nowrap; }
.ph-ico { width: 12px; height: 12px; border-radius: 2px; background: #8d8d8d; }
.ph-layer { background: #6d6d6d; -webkit-mask: url(../assets/box/layer/layer-sheet.png) center / contain no-repeat; mask: url(../assets/box/layer/layer-sheet.png) center / contain no-repeat; }
.pal-view { position: relative; flex: 1; min-height: 0; overflow: hidden; background: #f1f1f1; }
.pal-track { position: absolute; left: 0; right: 8px; top: 0; }
.pal-thumb { position: absolute; right: 2px; top: 0; width: 5px; border-radius: 3px; background: rgba(0, 0, 0, 0.25); }

.lp-bar { flex: none; display: flex; gap: 6px; height: 26px; padding: 4px 6px; border-bottom: 1px solid #cfcfcf; font-size: 11px; }
.lp-bar span { padding: 0 8px; border: 1px solid #c4c4c4; border-radius: 3px; background: #fafafa; line-height: 16px; }
.lp-bar span:first-child { flex: 1; }
.lp-row { display: flex; align-items: center; gap: 4px; height: 22px; padding-right: 6px; border-bottom: 1px solid #dedede; white-space: nowrap; }
.lp-row span { overflow: hidden; text-overflow: ellipsis; }
.lp-row.folder { background: #e7e7e7; font-weight: 600; }
.lp-row.sel { background: #bcd0ef; }
.lp-eye { flex: none; width: 13px; height: 13px; margin-left: 2px; background: #7a7a7a; -webkit-mask: url(../assets/box/layer/layer-eye.png) center / contain no-repeat; mask: url(../assets/box/layer/layer-eye.png) center / contain no-repeat; }
.lp-tw { flex: none; width: 10px; font-size: 10px; font-style: normal; color: #777; text-align: center; }
.lp-ico { flex: none; width: 15px; height: 15px; background: #6d6d6d; -webkit-mask: url(../assets/box/layer/layer-sheet.png) center / contain no-repeat; mask: url(../assets/box/layer/layer-sheet.png) center / contain no-repeat; }
.lp-ico.folder { -webkit-mask-image: url(../assets/box/layer/layer-folder.png); mask-image: url(../assets/box/layer/layer-folder.png); }
.lp-ico.sheet { width: 20px; height: 15px; border: 1px solid #bbb; background: #fff; -webkit-mask: none; mask: none; }   /* a layer: its thumbnail, as in the Layers section below */

.mp-body { flex: 1; display: flex; min-height: 0; }
.mp-side { flex: none; width: 112px; display: flex; flex-direction: column; background: #e5e5e5; border-right: 1px solid #c9c9c9; }
.mp-tree { flex: 1; padding-top: 4px; font-size: 11.5px; }
.mp-node { height: 20px; line-height: 20px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mp-node.on { background: #c4d3ea; }
.mp-tw { display: inline-block; width: 11px; font-size: 10px; font-style: normal; color: #777; }
.mp-search { display: flex; align-items: center; gap: 4px; height: 22px; margin: 5px; padding: 0 5px; border: 1px solid #bdbdbd; border-radius: 3px; background: #fff; font-size: 11px; white-space: nowrap; overflow: hidden; }
.mp-search i { flex: none; width: 8px; height: 8px; border: 1.5px solid #888; border-radius: 50%; }
.mp-q.ph { color: #9a9a9a; }
.mp-main { position: relative; flex: 1; display: flex; min-width: 0; }
.mp .pal-track { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 8px 4px 8px 8px; }
.mp-it { text-align: center; font-size: 11px; min-width: 0; }
.mp-th { width: 66px; height: 66px; margin: 0 auto; border: 1px solid #cdcdcd; background: #fff; }
.mp-th img { display: block; width: 100%; height: 100%; }
.mp-it span { display: block; margin-top: 3px; padding: 0 2px; border-radius: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mp-it.sel .mp-th { outline: 2px solid #4a7fd6; outline-offset: 1px; }
.mp-it.sel span { background: #bcd0ef; }
.mp-empty { position: absolute; inset: 0; padding-top: 30px; background: #f1f1f1; text-align: center; font-size: 11.5px; color: #666; }
.mp-empty span { display: flex; align-items: center; justify-content: center; gap: 6px; margin-top: 16px; font-weight: 600; color: #555; }
.mp-empty span i { width: 14px; height: 14px; border-radius: 3px; background: #9a9a9a; }

.sp-tabs { flex: none; display: flex; flex-wrap: wrap; gap: 3px; padding: 5px; background: #e4e4e4; border-bottom: 1px solid #c9c9c9; }
.sp-tab { display: inline-flex; align-items: center; gap: 4px; height: 22px; padding: 0 7px 0 3px; border-radius: 3px; background: #d5d5d5; font-size: 11px; white-space: nowrap; }
.sp-tab i { width: 16px; height: 16px; background: center / contain no-repeat; }
.sp-tab.on { background: #b9cbe8; }
.sp-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; height: 34px; padding: 0 8px; border-bottom: 1px solid #dddddd; font-size: 11.5px; white-space: nowrap; }
.sp-row span { overflow: hidden; text-overflow: ellipsis; }
.sp-row.sel { background: #bcd0ef; }
.sp-stroke { flex: none; width: 120px; height: 22px; background: left center / contain no-repeat; }
.rc-menus { position: absolute; inset: 0; z-index: 5; pointer-events: none; }
.rc-menu { position: absolute; padding: 6px 0; background: #f6f6f6; border: 1px solid #b9b9b9; box-shadow: 2px 5px 14px rgba(0, 0, 0, 0.28); font-size: 12.5px; }
.rc-item { position: relative; height: 19px; padding: 0 22px 0 24px; line-height: 19px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rc-item.sub::after { content: "›"; position: absolute; right: 9px; top: 0; }
.rc-item.on { background: #cfdcf0; }
.rc-dlg { position: absolute; left: 50%; top: 150px; z-index: 6; width: 240px; translate: -50% 0; background: #f2f2f2; border: 1px solid #b4b4b4; border-radius: 4px; box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3); font-size: 12px; }
.rc-dlg-t { height: 24px; padding: 0 10px; line-height: 24px; background: #e1e1e1; border-bottom: 1px solid #c8c8c8; font-weight: 600; }
.rc-dlg-b { display: flex; align-items: center; gap: 8px; padding: 14px 10px; }
.rc-slider { position: relative; flex: 1; height: 4px; border-radius: 2px; background: #c9c9c9; }
.rc-slider i { position: absolute; left: 30%; top: 50%; width: 10px; height: 10px; border-radius: 50%; translate: -50% -50%; background: #fff; border: 1px solid #888; }
.rc-dlg-b b { width: 34px; padding: 1px 4px; border: 1px solid #bdbdbd; background: #fff; text-align: right; font-weight: 500; }
.rc-dlg-f { display: flex; justify-content: flex-end; gap: 6px; padding: 0 10px 10px; }
.rc-dlg-f span { padding: 2px 14px; border: 1px solid #b8b8b8; border-radius: 3px; background: #fafafa; }
.rc-dlg-f span:first-child { border-color: #5b86c9; }
.rc-pointer { position: absolute; z-index: 9; left: 300px; top: 260px; filter: drop-shadow(0 2px 2px rgba(0, 0, 0, 0.3)); }
.rc-boxwrap { position: absolute; left: 19px; top: 64px; z-index: 6; transform: scale(0.72); transform-origin: 0 0; opacity: 0; }
.rc-keys { left: 50%; top: 180px; }
.rc-toast { left: 50%; top: 392px; font-size: 14px; }
.rc-frame:not([data-scene="menus"]) .rc-toast { top: 300px; }   /* above the palette's search box */

/* "Done" stamps: sugusearch's lands first, in green; the menus' later, quieter */
.race-stamp {
  position: absolute; right: -10px; top: 150px; z-index: 20; padding: 7px 14px; border-radius: 999px;
  font: 700 14px var(--body); white-space: nowrap; opacity: 0; transform: rotate(-4deg) scale(0.8);
  transition: opacity 0.25s, transform 0.4s var(--ease-out);
}
.race-col.is-done .race-stamp { opacity: 1; transform: rotate(-4deg) scale(1); }
.race-stamp--fast { background: #2f9e5e; color: #fff; box-shadow: 0 8px 20px rgba(47, 158, 94, 0.35); }
.race-stamp--slow { background: #fff; color: var(--red); box-shadow: inset 0 0 0 2px var(--red); }
.fav-note { position: relative; display: block; margin-top: 20px; text-align: center; }
/* what's going on, in plain words: live under the CSP side, one line under sugusearch's once it's done */
.race-cap { min-height: 3em; margin: 16px 6px 0; text-align: center; font: 500 16px/1.45 var(--body); color: var(--ink-2); text-wrap: balance; }
.race-cap--win { color: #23784a; opacity: 0; transition: opacity 0.4s; }
.race-col.is-done .race-cap--win { opacity: 1; }

/* ==========================================================================
   2 · Favorites: the first time and the next
   ========================================================================== */
.fav { position: relative; display: grid; grid-template-columns: 1fr auto 1fr; gap: 56px 14px; align-items: start; max-width: 1100px; margin: 56px auto 0; }
/* still, so it lands at a glance: the row circled in each box, and "pick it once" from one to the other */
.fav-pick { position: relative; align-self: center; display: flex; flex-direction: column; align-items: center; gap: 2px; margin-top: 40px; text-align: center; transform: rotate(-4deg); }
.fav-pick svg.fav-arrow { position: relative; width: 96px; height: 48px; }
.fav .ssb-row { position: relative; }
.fav .ssb-list { overflow: visible; }
.fav-ring { position: absolute; overflow: visible; pointer-events: none; z-index: 2; }
.fav-ring path { fill: none; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; opacity: 0.9; }
.fav-ring--red path { stroke: var(--red); }
.fav-ring--blue path { stroke: var(--blue); }
.fav .race-tabs { margin-bottom: 0; }
.fav-col { position: relative; min-width: 0; }
.fav-label { margin-bottom: 14px; text-align: center; font: 700 17px var(--body); }
.fav-label span { display: inline-block; padding: 4px 12px; border-radius: 999px; background: var(--soft); }
.fav-col[data-side="next"] .fav-label span { background: var(--marker); }
.fav-fit { position: relative; }
.fav-box { position: absolute; left: 0; top: 0; }
.ssb-sub { display: flex; align-items: center; }
.fav-toast, .tg-toast, .ly-toast { left: 50%; bottom: 6px; font-size: 15px; }

/* ==========================================================================
   3 · User tags
   ========================================================================== */
.tags-demo { position: relative; }
.tg-fit { position: relative; }
.tg-inner { position: absolute; left: 0; top: 0; height: 450px; }
.tg-boxholder { position: relative; }
.tg-toast { bottom: auto; }
.tg-steps { display: flex; flex-wrap: wrap; gap: 6px 8px; margin: 18px 0 0; padding: 0; list-style: none; counter-reset: s; }
.tg-steps li { counter-increment: s; display: flex; align-items: center; gap: 6px; padding: 5px 12px 5px 6px; border-radius: 999px; background: var(--soft); font-size: 13.5px; color: var(--ink-2); transition: background 0.25s, color 0.25s; }
.tg-steps li::before { content: counter(s); display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: #e2e2e2; font-size: 11px; font-weight: 700; }
.tg-steps li.on { background: var(--ink); color: #fff; }
.tg-steps li.on::before { background: var(--orange); color: var(--ink); }

/* ==========================================================================
   4 · Layers: a Live2D model in CSP's Layer palette
   ========================================================================== */
.layers-demo { position: relative; }
.ly-fit { position: relative; }
.ly-frame {
  position: absolute; left: 0; top: 0; height: 470px; overflow: hidden; border-radius: 12px;
  background: #d4d4d4; color: #3d3d3d; font: 500 12.5px var(--body); user-select: none;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.08), 0 24px 48px rgba(0, 0, 0, 0.12);
}
.ly-canvas { position: absolute; left: 0; top: 0; bottom: 0; width: 330px; overflow: hidden; background: #a9a9a9; }
.ly-paper { position: absolute; left: 40px; right: 40px; top: 150px; bottom: -40px; background: #fff url("../assets/art/mona.jpg") center 18% / cover no-repeat; box-shadow: 0 2px 10px rgba(0, 0, 0, 0.25); }
.ly-panel { position: absolute; left: 330px; right: 0; top: 0; bottom: 0; display: flex; flex-direction: column; background: #e6e6e6; border-left: 1px solid #c9c9c9; }
.ly-head { display: flex; justify-content: space-between; align-items: center; height: 28px; padding: 0 10px; background: #d9d9d9; border-bottom: 1px solid #c9c9c9; font-weight: 600; color: #6a6a6a; }
.ly-count { font-weight: 500; font-size: 11.5px; padding: 1px 7px; border-radius: 999px; background: #f2f2f2; color: #6a6a6a; }
.ly-tools { display: flex; gap: 6px; height: 30px; padding: 6px 10px; border-bottom: 1px solid #c9c9c9; }
.ly-tools i { width: 18px; height: 18px; border-radius: 4px; background: #cfcfcf; }
.ly-list { position: relative; flex: 1; overflow: hidden; background: #ededed; }
.ly-track { position: absolute; left: 0; right: 0; top: 0; }
.ly-row { display: flex; align-items: center; gap: 6px; height: 24px; padding-right: 8px; border-bottom: 1px solid #dcdcdc; white-space: nowrap; }
.ly-row.folder { background: #e4e4e4; font-weight: 600; }
.ly-row svg { width: 15px; height: 15px; flex: none; color: #7a7a7a; }
.ly-row.sel { background: #b9cdf0; }
.ly-eye { width: 14px; height: 14px; flex: none; background: #7a7a7a; -webkit-mask: url(../assets/box/layer/layer-eye.png) center / contain no-repeat; mask: url(../assets/box/layer/layer-eye.png) center / contain no-repeat; }   /* CSP's eye, as in the race */
.ly-arrow { font-size: 9px; color: #8a8a8a; }
.ly-thumb { width: 18px; height: 14px; flex: none; border: 1px solid #bbb; background: #fff; }
.ly-name { overflow: hidden; text-overflow: ellipsis; }
.ly-boxwrap { position: absolute; left: 14px; top: 40px; z-index: 6; transform: scale(0.56); transform-origin: 0 0; transition: opacity 0.2s; }
.ly-boxwrap.gone { opacity: 0; }
.ly-toast { bottom: 18px; left: 165px; }

/* ==========================================================================
   5 · And a few other things: a grid of cards (iromote's .fcard)
   ========================================================================== */
.more { padding: 110px 0 0; }
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: 48px; }
.fcard { display: flex; flex-direction: column; min-width: 0; padding: 24px; background: #fff; border-radius: 26px; box-shadow: 0 0 0 1px var(--line), 0 18px 40px rgba(0, 0, 0, 0.05); transition: transform 0.35s var(--ease-out), box-shadow 0.35s; }
.fcard:hover { transform: translateY(-6px) rotate(-0.6deg); box-shadow: 0 0 0 1px var(--line), 0 28px 50px rgba(0, 0, 0, 0.09); }
.fcard:nth-child(even):hover { transform: translateY(-6px) rotate(0.6deg); }
.fcard-top { display: flex; align-items: center; gap: 12px; }
.ficon { flex-shrink: 0; width: 38px; height: 38px; display: grid; place-items: center; border-radius: 11px; color: #fff; }
.ficon svg { width: 20px; height: 20px; }
.fcard h3 { font: 700 18px var(--body); letter-spacing: -0.01em; }
.fcard p { min-height: 68px; margin: 12px 0 20px; color: var(--ink-2); font-size: 15px; line-height: 1.5; }
.fvis { position: relative; height: 210px; margin-top: auto; overflow: hidden; display: grid; place-items: center; background: var(--soft); border-radius: 18px; }
.mini-rows { position: absolute; left: 50%; top: 50%; width: 440px; transform: translate(-50%, -50%) scale(0.62); }
.mini-rows .ssb { box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.15), 0 14px 30px rgba(0, 0, 0, 0.16); }
.fvis--shots .v-shot { position: absolute; width: 260px; border-radius: 4px; box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.15), 0 12px 24px rgba(0, 0, 0, 0.18); }
.v-shot--back { left: 30px; top: 22px; transform: rotate(-5deg); }
.v-shot--front { right: 22px; bottom: 26px; transform: rotate(4deg); }
.devices { position: relative; width: 230px; height: 150px; }
.dev { position: absolute; display: block; border-radius: 6px; background: #fff; box-shadow: inset 0 0 0 6px #2a2a2a, 0 10px 20px rgba(0, 0, 0, 0.15); }
.dev::after { content: ""; position: absolute; left: 22%; right: 22%; top: 34%; height: 18%; border-radius: 2px; background: #efefef; box-shadow: 0 0 0 1px #d0d0d0; }
.dev--desk { left: 40px; top: 0; width: 150px; height: 100px; }
.dev--desk::before { content: ""; position: absolute; left: 60px; bottom: -22px; width: 30px; height: 22px; background: #bdbdbd; }
.dev--laptop { left: 0; top: 70px; width: 110px; height: 70px; }
.dev--tab { right: 0; top: 66px; width: 70px; height: 84px; border-radius: 9px; }
.file-chip { display: flex; align-items: center; gap: 10px; padding: 14px 18px; border-radius: 14px; background: #fff; box-shadow: 0 0 0 1px var(--line), 0 10px 22px rgba(0, 0, 0, 0.08); font: 600 14px var(--body); transform: rotate(-3deg); }
.file-chip svg { width: 26px; height: 26px; color: var(--ink-2); }

/* ==========================================================================
   6 · Pricing (iromote's card, sugusearch's numbers)
   ========================================================================== */
.final { padding: 130px 0 40px; }
.pricing { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 64px; align-items: center; }
.pricing > * { min-width: 0; }
.pricing h2.display { font-size: 72px; margin: 0 0 32px; }
.pricing .lede { max-width: 480px; }
.price-card { position: relative; padding: 36px; background: #fff; border-radius: 28px; box-shadow: 0 0 0 1px var(--line), 0 30px 60px rgba(0, 0, 0, 0.07); transform: rotate(1.2deg); }
.price-amount { display: flex; flex-wrap: wrap; align-items: baseline; column-gap: 8px; row-gap: 8px; font: 800 64px/1 var(--display); letter-spacing: -0.04em; }
.price-amount small { font: 500 16px var(--body); letter-spacing: 0; color: var(--ink-2); }
.price-points { display: grid; gap: 10px; margin: 22px 0 28px; padding: 0; list-style: none; font-size: 15px; }
.price-points li { position: relative; display: flex; align-items: center; gap: 10px; }
.price-points li::before {
  content: ""; width: 18px; height: 18px; flex-shrink: 0; border-radius: 50%;
  background: var(--marker) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 10.5l3.2 3L15 7' fill='none' stroke='%23121212' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px no-repeat;
}
.price-card .btn { width: 100%; justify-content: center; }
.price-card .btn + .btn { margin-top: 10px; }
.note-noq { right: calc(100% + 56px); top: -14px; text-align: right; transform: rotate(-4deg); }
.note-arrow { display: inline-block; }
.manage { margin-top: 16px; text-align: center; font-size: 14px; color: var(--ink-2); }
.manage button, button.link { padding: 0; border: 0; background: none; font: inherit; font-weight: 600; color: var(--ink); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.price-card .also { margin-top: 6px; }
.seller { margin-top: 14px; text-align: center; font-size: 12.5px; line-height: 1.45; color: var(--ink-2); }
.form-msg { min-height: 0; font-size: 14px; line-height: 1.45; }
.form-msg:empty { display: none; }
.form-msg.ok { color: #2e7d4f; }
.form-msg.err { color: #9a5a00; }
.buy-msg { margin-top: 10px; text-align: center; }

/* ==========================================================================
   7 · FAQ
   ========================================================================== */
.faq { padding: 110px 0 100px; }
.faq h2.display { font-size: 40px; letter-spacing: -0.025em; margin: 10px 0 0; }
.faq-list { max-width: 780px; margin: 32px auto 0; }
.qa { border-bottom: 1px solid var(--line); }
.qa:first-child { border-top: 1px solid var(--line); }
.qa > button { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 24px 4px; border: 0; background: none; text-align: left; font: 600 18px var(--body); cursor: pointer; }
.plus { position: relative; flex-shrink: 0; width: 32px; height: 32px; border-radius: 50%; background: var(--soft); transition: transform 0.35s var(--ease-out), background-color 0.2s; }
.plus::before, .plus::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 2px; margin: -1px 0 0 -6px; background: var(--ink); border-radius: 2px; }
.plus::after { transform: rotate(90deg); }
.qa.open .plus { transform: rotate(45deg); background: rgba(244, 155, 0, 0.3); }
.answer { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.4s var(--ease-out); }
.qa.open .answer { grid-template-rows: 1fr; }
.answer > div { overflow: hidden; }
.answer p { padding: 0 60px 18px 4px; color: var(--ink-2); }
.answer p:last-child { padding-bottom: 26px; }
.answer a { color: var(--ink); text-underline-offset: 3px; }

/* ==========================================================================
   Footer, license pop-up
   ========================================================================== */
.footer { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 28px 0 36px; border-top: 1px solid var(--line); font-size: 14px; color: var(--ink-2); }
.footer img { height: 20px; width: auto; }
.footer-brand { display: inline-flex; flex: none; }
.footer-links { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px 20px; }
.footer-links button { padding: 0; border: 0; background: none; color: inherit; font: inherit; cursor: pointer; }
.footer-links a { text-decoration: none; }
.footer-links button:hover, .footer-links a:hover { color: var(--ink); }

.modal { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: 24px; background: rgba(18, 18, 18, 0.35); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); opacity: 0; visibility: hidden; transition: opacity 0.25s, visibility 0.25s; }
.modal.open { opacity: 1; visibility: visible; }
.modal-box { position: relative; width: min(760px, 100%); max-height: calc(100vh - 48px); overflow: auto; padding: 40px; background: #fff; border-radius: 28px; box-shadow: 0 30px 80px rgba(0, 0, 0, 0.2); translate: 0 12px; transition: translate 0.35s var(--ease-out); }
.modal.open .modal-box { translate: 0 0; }
.modal-close { position: absolute; top: 16px; right: 16px; width: 36px; height: 36px; border: 0; border-radius: 50%; background: var(--soft); font-size: 22px; line-height: 1; cursor: pointer; }
.modal-title { margin-bottom: 26px; font: 800 30px var(--display); letter-spacing: -0.03em; }
.modal-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.modal-col { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.modal-col h4 { font-size: 17px; }
.modal-col p { font-size: 14px; color: var(--ink-2); }
.modal-col input { padding: 12px 14px; border: 1.5px solid #e2e2e2; border-radius: 12px; font: 15px var(--body); outline: none; }
.modal-col input:focus { border-color: var(--ink); }
.modal-col .btn { justify-content: center; margin-top: 4px; }
.modal-refund { margin-top: 22px; padding-top: 16px; border-top: 1px solid var(--line); font-size: 14px; color: var(--ink-2); }
.modal-refund a { color: var(--ink); font-weight: 600; }

/* ==========================================================================
   Tablet and phone
   ========================================================================== */
@media (max-width: 900px) {
  h2.display { font-size: 44px; }
  section.feat { padding: 88px 0; }
  .split { grid-template-columns: 1fr; gap: 40px; }
  .split--flip > :first-child { order: 0; }
  p.body { max-width: 600px; }
  .race, .fav { grid-template-columns: 1fr; gap: 44px; max-width: 520px; }
  .fav { gap: 28px; }
  .fav-pick { flex-direction: row; justify-content: center; gap: 10px; margin: 0; }
  .fav-pick svg.fav-arrow { width: 64px; height: 40px; transform: rotate(75deg); }
  .race-stamp { right: -6px; }
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pricing { grid-template-columns: 1fr; gap: 48px; }
  .pricing h2.display { font-size: 52px; }
  .price-card { max-width: 440px; transform: none; }
  .note-noq { display: none; }
  .footer { flex-direction: column; text-align: center; gap: 12px; }   /* stacked and centered, as iromote's */
  .footer-links { justify-content: center; }
}
@media (max-width: 560px) {
  h2.display { font-size: 36px; }
  p.body { font-size: 17px; }
  section.feat { padding: 72px 0; }
  .race-tab { padding: 6px 12px 7px 6px; font-size: 13px; }
  .cards { grid-template-columns: minmax(0, 1fr); }
  .pricing h2.display { font-size: 42px; }
  .price-card { padding: 26px 22px; }
  .price-amount { font-size: 54px; }
  .qa > button { font-size: 16.5px; padding: 20px 2px; }
  .answer p { padding-right: 8px; }
  .modal-box { padding: 30px 22px; }
  .modal-cols { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .fcard, .race-stamp, .answer, .modal, .modal-box { transition: none; }
  .ssb-caret { animation: none; }
}
