/* ==========================================================================
   DRAWER / 抽屉
   Warm editorial system: paper, ink, one loud orange, and a lot of air.
   ========================================================================== */

:root {
  --paper: #f3efe6;
  --paper-deep: #e9e2d4;
  --paper-warm: #faf6ed;
  --paper-white: #fffcf5;
  --ink: #1b1a16;
  --ink-soft: #403c33;
  --muted: #726c60;
  --muted-light: #968e7e;
  --line: rgba(27, 26, 22, 0.14);
  --line-strong: rgba(27, 26, 22, 0.3);
  --orange: #e65726;
  --orange-deep: #c8441a;
  --orange-soft: #f6c9b8;
  --forest: #173b2e;
  --forest-deep: #0e2b21;
  --lime: #d9f36b;
  --red: #bd2e1a;
  --cream: #fffaf0;
  --sans: "Inter Variable", "Inter", "SF Pro Text", "Segoe UI Variable Text", "Segoe UI",
    "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --display: "Segoe UI Variable Display", "SF Pro Display", "Inter", "PingFang SC",
    "Microsoft YaHei", sans-serif;
  --serif: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Georgia, "Songti SC",
    "SimSun", serif;
  --kai: "Kaiti SC", "KaiTi", "STKaiti", "Songti SC", serif;
  --mono: "SFMono-Regular", "Cascadia Code", "Roboto Mono", "Consolas", monospace;
  --radius-card: 20px;
  --shadow-card: 0 18px 38px rgba(40, 31, 18, 0.08);
  --shadow-slip: 0 34px 70px rgba(50, 32, 14, 0.2), 0 4px 0 rgba(27, 26, 22, 0.08);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 100px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.6;
  font-feature-settings: "kern" 1, "liga" 1, "calt" 1;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 999;
  pointer-events: none;
  opacity: 0.045;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.82' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.55'/%3E%3C/svg%3E");
  mix-blend-mode: multiply;
}

body.is-locked {
  overflow: hidden;
}

::selection {
  background: var(--orange);
  color: var(--cream);
}

h1,
h2,
h3,
h4,
p,
figure,
blockquote {
  margin: 0;
}

h1,
h2,
h3,
h4 {
  font-family: var(--display);
  font-weight: 700;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea,
select {
  font: inherit;
  color: inherit;
}

button {
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
}

img,
svg {
  display: block;
  max-width: 100%;
}

ul,
ol {
  margin: 0;
  padding: 0;
}

[hidden] {
  display: none !important;
}

:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 3px;
}

.container {
  width: min(1240px, calc(100% - 96px));
  margin-inline: auto;
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.nowrap {
  white-space: nowrap;
}

.skip-link {
  position: fixed;
  top: 14px;
  left: 14px;
  z-index: 200;
  padding: 10px 16px;
  border-radius: 8px;
  background: var(--ink);
  color: var(--cream);
  font-size: 13px;
  transform: translateY(-160%);
  transition: transform 0.2s ease;
}

.skip-link:focus {
  transform: translateY(0);
}

/* --------------------------------------------------------------------------
   Shared atoms
   -------------------------------------------------------------------------- */

.eyebrow,
.section-index {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.12em;
  line-height: 1.4;
  text-transform: uppercase;
}

.eyebrow-rule {
  width: 26px;
  height: 1px;
  background: currentColor;
  opacity: 0.6;
}

.issue {
  margin-left: 10px;
  padding: 4px 8px;
  border: 1px solid var(--line);
  border-radius: 99px;
  color: var(--ink-soft);
  font-size: 9px;
  letter-spacing: 0.08em;
}

.section-index {
  gap: 14px;
  margin-bottom: 22px;
}

.section-index span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 27px;
  height: 27px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  color: var(--ink);
  font-size: 9.5px;
  letter-spacing: 0;
}

.section-index.light {
  color: rgba(255, 250, 240, 0.55);
}

.section-index.light span {
  border-color: rgba(255, 250, 240, 0.28);
  color: var(--cream);
}

.live-dot {
  position: relative;
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 0 3px rgba(217, 243, 107, 0.1);
}

.live-dot::after {
  content: "";
  position: absolute;
  inset: -4px;
  border: 1px solid currentColor;
  border-radius: inherit;
  opacity: 0;
  animation: live-ping 2.6s ease-out infinite;
}

@keyframes live-ping {
  0% { transform: scale(0.7); opacity: 0.5; }
  70%, 100% { transform: scale(1.65); opacity: 0; }
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 44px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 99px;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 650;
  letter-spacing: -0.01em;
  line-height: 1;
  white-space: nowrap;
  transition: color 0.25s ease, background 0.25s ease, border-color 0.25s ease,
    transform 0.25s var(--ease), box-shadow 0.25s ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button:active {
  transform: translateY(0);
}

.button-ink {
  background: var(--ink);
  color: var(--paper-white);
}

.button-ink:hover {
  background: var(--orange);
  color: var(--cream);
}

.button-paper {
  background: var(--paper-white);
  color: var(--ink);
  border-color: var(--ink);
}

.button-paper:hover {
  background: var(--ink);
  color: var(--cream);
}

.button-sm {
  min-height: 38px;
  padding-inline: 17px;
  font-size: 12px;
}

.button-lg {
  min-height: 54px;
  padding-inline: 25px;
  font-size: 14px;
}

.button-arrow {
  display: inline-block;
  font-size: 15px;
  font-weight: 500;
  transition: transform 0.3s var(--ease);
}

.button:hover .button-arrow {
  transform: translate(3px, -3px);
}

.button.is-loading {
  pointer-events: none;
  opacity: 0.7;
}

.button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
  transform: none;
}

.button:disabled:hover {
  transform: none;
}

.button.is-loading .download-arrow {
  border: 2px solid currentColor;
  border-top-color: transparent;
  border-radius: 50%;
  width: 16px;
  height: 16px;
  animation: spin 0.7s linear infinite;
}

.button.is-loading .download-arrow svg {
  display: none;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.status-pill,
.service-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.service-pill .live-dot {
  background: #4b8a54;
  box-shadow: 0 0 0 3px rgba(75, 138, 84, 0.1);
  color: #4b8a54;
}

/* --------------------------------------------------------------------------
   Top line + header
   -------------------------------------------------------------------------- */

.topline {
  position: relative;
  z-index: 30;
  background: var(--ink);
  color: var(--paper);
}

.topline-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: 34px;
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.055em;
}

.topline p {
  display: flex;
  align-items: center;
  gap: 8px;
}

.topline-live {
  color: rgba(255, 250, 240, 0.82);
}

.topline-mid {
  color: rgba(255, 250, 240, 0.46);
  letter-spacing: 0.12em;
}

.topline-link {
  justify-self: end;
  color: rgba(255, 250, 240, 0.68);
  transition: color 0.2s ease;
}

.topline-link:hover {
  color: var(--lime);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: blur(16px) saturate(120%);
  -webkit-backdrop-filter: blur(16px) saturate(120%);
}

.header-inner {
  display: flex;
  align-items: center;
  min-height: 82px;
  gap: 44px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  flex: none;
}

.brand-mark {
  display: inline-flex;
  width: 37px;
  height: 37px;
  color: var(--ink);
  transition: transform 0.4s var(--ease);
}

.brand:hover .brand-mark {
  transform: rotate(-7deg);
}

.brand-mark svg {
  width: 100%;
  height: 100%;
}

.brand-mark.large {
  width: 46px;
  height: 46px;
}

.brand-type {
  display: flex;
  flex-direction: column;
  gap: 1px;
  line-height: 1;
}

.brand-cn {
  font-family: var(--display);
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -0.06em;
}

.brand-en {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 7.5px;
  font-weight: 600;
  letter-spacing: 0.24em;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 34px;
  margin-left: 18px;
}

.main-nav a {
  position: relative;
  color: var(--ink-soft);
  font-size: 12.5px;
  font-weight: 550;
  letter-spacing: 0.01em;
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: -6px;
  height: 1px;
  background: var(--orange);
  transition: right 0.3s var(--ease);
}

.main-nav a:hover::after {
  right: 0;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-left: auto;
}

.menu-button {
  display: none;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}

.menu-button span {
  display: block;
  width: 15px;
  height: 1.3px;
  background: var(--ink);
  transition: transform 0.25s ease;
}

.menu-button[aria-expanded="true"] span:first-child {
  transform: translateY(3.15px) rotate(45deg);
}

.menu-button[aria-expanded="true"] span:last-child {
  transform: translateY(-3.15px) rotate(-45deg);
}

.mobile-nav {
  display: none;
  border-top: 1px solid var(--line);
  padding: 12px 24px 20px;
  background: var(--paper);
}

.mobile-nav.is-open {
  display: flex;
  flex-direction: column;
}

.mobile-nav a,
.mobile-nav button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 2px;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  font-size: 15px;
  font-weight: 600;
  text-align: left;
}

.mobile-nav a span,
.mobile-nav button span {
  color: var(--orange);
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.03fr) minmax(400px, 0.97fr);
  column-gap: clamp(32px, 5vw, 84px);
  padding-top: clamp(54px, 6.2vw, 86px);
}

.hero-copy {
  position: relative;
  z-index: 4;
  align-self: center;
  padding-bottom: 20px;
}

.hero h1 {
  max-width: 720px;
  margin: 26px 0 27px;
  font-size: clamp(50px, 4.9vw, 76px);
  font-weight: 760;
  letter-spacing: -0.075em;
  line-height: 0.99;
}

.accent-word {
  position: relative;
  z-index: 0;
  display: inline-block;
  padding: 0 0.02em;
  margin-inline: 0.015em;
  color: var(--orange);
  font-weight: 760;
  white-space: nowrap;
}

.accent-word::before {
  content: "";
  position: absolute;
  z-index: -1;
  right: -0.035em;
  bottom: 0.015em;
  left: -0.035em;
  height: 0.085em;
  border-radius: 50% 35% 45% 30%;
  background: var(--orange);
  clip-path: polygon(0.5% 22%, 99.5% 0, 100% 82%, 0 100%);
  transform: rotate(-1.2deg);
}

.lede {
  max-width: 535px;
  color: var(--ink-soft);
  font-size: 16px;
  line-height: 1.82;
  letter-spacing: 0.005em;
}

.lede-line {
  display: block;
}

.search {
  position: relative;
  display: flex;
  align-items: center;
  width: min(100%, 566px);
  height: 62px;
  margin-top: 34px;
  padding: 0 15px 0 19px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--paper-white);
  box-shadow: 0 3px 0 rgba(27, 26, 22, 0.05);
  transition: border-color 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.search:focus-within {
  border-color: var(--orange);
  background: #fffdf7;
  box-shadow: 0 0 0 4px rgba(230, 87, 38, 0.1);
}

.search-icon {
  width: 21px;
  height: 21px;
  margin-right: 12px;
  color: var(--muted);
  flex: none;
}

.search:focus-within .search-icon {
  color: var(--orange);
}

.search-icon svg {
  width: 100%;
  height: 100%;
}

.search input {
  width: 100%;
  height: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  font-size: 14px;
  letter-spacing: -0.01em;
}

.search input::placeholder {
  color: var(--muted-light);
}

.search input::-webkit-search-cancel-button {
  display: none;
}

.search-kbd {
  flex: none;
  padding: 5px 8px;
  border: 1px solid var(--line);
  border-radius: 7px;
  color: var(--muted);
  background: var(--paper);
  font-family: var(--mono);
  font-size: 10px;
  line-height: 1;
}

.search-clear {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  margin-left: 5px;
  border-radius: 50%;
  color: var(--muted);
  background: var(--paper-deep);
  font-size: 18px;
  line-height: 1;
}

.search-clear:hover {
  color: var(--cream);
  background: var(--ink);
}

.hero-meta {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  width: min(100%, 566px);
  margin-top: 17px;
}

.quick-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
  color: var(--muted);
  font-size: 10.5px;
  font-family: var(--mono);
}

.quick-links > span {
  color: var(--muted-light);
}

.quick-links button {
  color: var(--ink-soft);
  font-family: var(--mono);
  font-size: 10.5px;
  text-decoration: underline;
  text-decoration-color: var(--line-strong);
  text-underline-offset: 3px;
  transition: color 0.2s ease, text-decoration-color 0.2s ease;
}

.quick-links button:hover {
  color: var(--orange);
  text-decoration-color: var(--orange);
}

.inline-trust {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: none;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 9px;
  white-space: nowrap;
}

.shield {
  color: var(--orange);
  font-size: 14px;
  line-height: 1;
}

/* Hero art / download slip ------------------------------------------------ */

.hero-art {
  position: relative;
  min-height: 548px;
  margin-top: -6px;
  isolation: isolate;
}

.art-grid {
  position: absolute;
  z-index: -1;
  top: 42px;
  right: 7%;
  width: 330px;
  height: 330px;
  background-image: linear-gradient(rgba(27, 26, 22, 0.1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(27, 26, 22, 0.1) 1px, transparent 1px);
  background-size: 22px 22px;
  -webkit-mask-image: radial-gradient(circle at 50% 50%, #000 0, transparent 68%);
  mask-image: radial-gradient(circle at 50% 50%, #000 0, transparent 68%);
  opacity: 0.8;
}

.art-disc {
  position: absolute;
  z-index: -1;
  top: 16px;
  right: -22px;
  width: 390px;
  height: 390px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 36% 29%, rgba(255, 201, 155, 0.7), transparent 29%),
    radial-gradient(circle at 50% 50%, #ea6432 0, #df501f 66%, #c94012 100%);
  box-shadow: inset -22px -30px 70px rgba(109, 32, 5, 0.24);
}

.art-disc::before,
.art-disc::after {
  content: "";
  position: absolute;
  border: 1px solid rgba(255, 245, 225, 0.28);
  border-radius: 50%;
}

.art-disc::before {
  inset: 28px;
}

.art-disc::after {
  inset: 64px;
  border-style: dashed;
  opacity: 0.5;
}

.index-card {
  position: absolute;
  z-index: 2;
  top: 66px;
  left: -41px;
  width: 167px;
  min-height: 216px;
  padding: 16px 15px 14px;
  border: 1px solid rgba(27, 26, 22, 0.3);
  background: #e7decc;
  box-shadow: 0 16px 35px rgba(45, 31, 14, 0.13);
  transform: rotate(-7.5deg);
}

.index-card::before {
  content: "";
  position: absolute;
  top: -11px;
  left: 52px;
  width: 62px;
  height: 21px;
  background: rgba(250, 245, 232, 0.62);
  border: 1px solid rgba(27, 26, 22, 0.08);
  transform: rotate(3deg);
  backdrop-filter: blur(1px);
}

.index-label,
.index-foot {
  display: block;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 7.5px;
  letter-spacing: 0.12em;
}

.index-card strong {
  display: block;
  margin-top: 20px;
  font-family: var(--display);
  font-size: 17px;
  line-height: 1.4;
  letter-spacing: -0.04em;
}

.index-number {
  display: inline-block;
  margin-top: 15px;
  padding: 3px 6px;
  border: 1px solid var(--line-strong);
  font-family: var(--mono);
  font-size: 8px;
}

.index-lines {
  display: block;
  height: 28px;
  margin: 16px 0 14px;
  background: repeating-linear-gradient(
    to bottom,
    transparent 0,
    transparent 7px,
    rgba(27, 26, 22, 0.17) 7px,
    rgba(27, 26, 22, 0.17) 8px
  );
}

.slip {
  position: absolute;
  z-index: 3;
  top: 42px;
  right: 14px;
  display: flex;
  flex-direction: column;
  width: 361px;
  min-height: 457px;
  padding: 21px 23px 18px;
  border: 1px solid rgba(27, 26, 22, 0.28);
  background:
    linear-gradient(rgba(255, 252, 245, 0.92), rgba(255, 250, 240, 0.97)),
    repeating-linear-gradient(0deg, transparent 0 27px, rgba(27, 26, 22, 0.035) 27px 28px);
  box-shadow: var(--shadow-slip);
  transform: rotate(2.1deg);
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease);
}

.slip::before {
  content: "";
  position: absolute;
  left: -1px;
  right: -1px;
  bottom: -8px;
  height: 9px;
  background:
    linear-gradient(135deg, var(--paper-white) 5px, transparent 0) 0 0 / 10px 10px repeat-x,
    linear-gradient(45deg, var(--paper-white) 5px, transparent 0) 0 0 / 10px 10px repeat-x;
  filter: drop-shadow(0 3px 1px rgba(27, 26, 22, 0.1));
}

.slip:hover {
  transform: rotate(0deg) translateY(-7px);
  box-shadow: 0 44px 90px rgba(50, 32, 14, 0.24), 0 4px 0 rgba(27, 26, 22, 0.07);
}

.slip-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--ink);
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.1em;
}

.slip-head span:last-child {
  color: var(--muted);
  font-weight: 400;
  letter-spacing: 0.04em;
}

.slip-app {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 21px 0 19px;
}

.app-icon {
  position: relative;
  display: block;
  width: 58px;
  height: 58px;
  flex: none;
  overflow: hidden;
  border-radius: 14px;
  box-shadow: 0 5px 12px rgba(27, 26, 22, 0.12);
  transition: transform 0.45s var(--ease);
}

.app-icon svg {
  width: 100%;
  height: 100%;
}

.hero-app-icon {
  width: 68px;
  height: 68px;
  border-radius: 17px;
  box-shadow: 0 9px 18px rgba(60, 32, 10, 0.2);
}

.slip-app-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.slip-app-text strong {
  font-family: var(--display);
  font-size: 27px;
  font-weight: 750;
  letter-spacing: -0.055em;
  line-height: 1.1;
}

.slip-app-text span {
  margin-top: 5px;
  overflow: hidden;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.4;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.slip-spec {
  display: grid;
  grid-template-columns: 0.8fr 1.25fr 0.8fr;
  gap: 10px;
  padding: 14px 0;
  border-top: 1px dashed rgba(27, 26, 22, 0.26);
  border-bottom: 1px dashed rgba(27, 26, 22, 0.26);
}

.slip-spec > span {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.slip-spec small {
  color: var(--muted-light);
  font-family: var(--mono);
  font-size: 7.5px;
  letter-spacing: 0.1em;
}

.slip-spec b {
  overflow: hidden;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.slip-rule {
  height: 16px;
}

.slip-total {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding-bottom: 13px;
}

.slip-total > span {
  padding-bottom: 5px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.14em;
}

.slip-total strong {
  font-family: var(--display);
  font-size: 31px;
  font-weight: 750;
  letter-spacing: -0.05em;
  line-height: 0.9;
}

.barcode {
  display: block;
  height: 36px;
  margin-bottom: 12px;
  background: repeating-linear-gradient(
    90deg,
    var(--ink) 0,
    var(--ink) 1.7px,
    transparent 1.7px,
    transparent 4.4px,
    var(--ink) 4.4px,
    var(--ink) 7px,
    transparent 7px,
    transparent 9px
  );
  opacity: 0.82;
}

.slip-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 7.5px;
  letter-spacing: 0.03em;
}

.stamp {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 31px;
  border: 1.5px solid var(--orange);
  border-radius: 50%;
  color: var(--orange);
  font-family: var(--mono);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.08em;
  transform: rotate(-12deg);
}

.slip-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid rgba(27, 26, 22, 0.16);
  font-size: 10px;
  font-weight: 650;
}

.slip-cta > span {
  color: var(--orange);
  font-size: 16px;
  transition: transform 0.3s var(--ease);
}

.slip:hover .slip-cta > span {
  transform: translateX(4px);
}

.art-tag {
  position: absolute;
  z-index: 4;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border: 1px solid var(--ink);
  border-radius: 99px;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--mono);
  font-size: 8.5px;
  letter-spacing: 0.035em;
  box-shadow: 0 8px 18px rgba(27, 26, 22, 0.16);
}

.art-tag-top {
  top: 17px;
  right: 170px;
  transform: rotate(-3deg);
}

.art-tag-bottom {
  right: 3px;
  bottom: 95px;
  background: var(--lime);
  border-color: var(--ink);
  color: var(--ink);
  transform: rotate(2deg);
}

.tag-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--lime);
}

.art-note {
  position: absolute;
  right: 28px;
  bottom: 24px;
  color: var(--ink-soft);
  font-family: var(--serif);
  font-size: 16px;
  font-style: italic;
  line-height: 1.2;
  transform: rotate(-5deg);
}

.art-note::before {
  content: "↳";
  position: absolute;
  top: -14px;
  left: -18px;
  color: var(--orange);
  font-style: normal;
}

.art-stamp {
  position: absolute;
  z-index: 2;
  left: 8px;
  bottom: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  width: 83px;
  height: 83px;
  border: 1.5px solid var(--red);
  border-radius: 50%;
  color: var(--red);
  transform: rotate(11deg);
  opacity: 0.78;
}

.art-stamp::before {
  content: "";
  position: absolute;
  inset: 6px;
  border: 1px dashed currentColor;
  border-radius: inherit;
}

.art-stamp span:first-child {
  font-family: var(--mono);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.art-stamp span:last-child {
  margin-top: 2px;
  font-size: 10px;
  font-weight: 700;
}

/* Hero stats -------------------------------------------------------------- */

.hero-stats {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 0.9fr 1.15fr 1fr 1.45fr;
  align-items: stretch;
  margin-top: 38px;
  border-top: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line);
}

.stat {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 104px;
  padding: 17px 26px 17px 0;
  border-right: 1px solid var(--line);
}

.stat + .stat {
  padding-left: 26px;
}

.stat-value {
  font-family: var(--display);
  font-size: 31px;
  font-weight: 750;
  letter-spacing: -0.055em;
  line-height: 1.05;
}

.stat-label {
  margin-top: 6px;
  color: var(--muted);
  font-size: 10.5px;
  letter-spacing: 0.02em;
}

.stat-note {
  flex-direction: row;
  align-items: center;
  gap: 12px;
  padding-right: 0;
  border-right: 0;
}

.stat-note p {
  color: var(--ink-soft);
  font-size: 10.5px;
  line-height: 1.55;
}

.stat-note p span {
  color: var(--muted-light);
  font-family: var(--mono);
  font-size: 8.5px;
}

.pulse-ring {
  position: relative;
  width: 30px;
  height: 30px;
  flex: none;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
}

.pulse-ring::before,
.pulse-ring::after {
  content: "";
  position: absolute;
  border-radius: 50%;
}

.pulse-ring::before {
  inset: 8px;
  background: var(--orange);
}

.pulse-ring::after {
  inset: 3px;
  border: 1px solid var(--orange);
  opacity: 0.35;
  animation: pulse-ring 2.4s ease-out infinite;
}

@keyframes pulse-ring {
  0% { transform: scale(0.6); opacity: 0.6; }
  70%, 100% { transform: scale(1.2); opacity: 0; }
}

/* --------------------------------------------------------------------------
   Catalog
   -------------------------------------------------------------------------- */

.apps-section {
  padding: clamp(88px, 9vw, 132px) 0 clamp(90px, 9vw, 130px);
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
  padding-bottom: 31px;
}

.section-head h2,
.faq-intro h2 {
  font-size: clamp(48px, 5.6vw, 72px);
  font-weight: 760;
  letter-spacing: -0.07em;
  line-height: 0.96;
}

.title-dot {
  color: var(--orange);
}

.section-aside {
  display: flex;
  align-items: flex-end;
  gap: 36px;
  padding-bottom: 4px;
}

.section-aside p {
  max-width: 245px;
  color: var(--muted);
  font-size: 11.5px;
  line-height: 1.7;
}

.collection-count {
  flex: none;
  color: var(--muted-light);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.05em;
}

.collection-count b {
  color: var(--ink);
  font-weight: 600;
}

.catalog-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 15px 0;
  border-top: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line);
}

.filter-group {
  display: flex;
  align-items: center;
  gap: 4px;
  min-width: 0;
  max-width: 100%;
  overflow-x: auto;
  scrollbar-width: none;
}

.filter-group::-webkit-scrollbar {
  display: none;
}

.filter-button {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  flex: none;
  min-height: 32px;
  padding: 0 12px;
  border: 1px solid transparent;
  border-radius: 99px;
  color: var(--muted);
  font-size: 11px;
  white-space: nowrap;
  transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.filter-button span {
  color: var(--muted-light);
  font-family: var(--mono);
  font-size: 8px;
}

.filter-button:hover {
  border-color: var(--line);
  color: var(--ink);
}

.filter-button.is-active {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
}

.filter-button.is-active span {
  color: rgba(255, 250, 240, 0.55);
}

.sort-group {
  display: flex;
  align-items: center;
  flex: none;
  gap: 2px;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 99px;
  background: var(--paper-deep);
}

.control-label {
  padding: 0 9px 0 10px;
  color: var(--muted-light);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.08em;
}

.sort-button {
  min-height: 27px;
  padding: 0 11px;
  border-radius: 99px;
  color: var(--muted);
  font-size: 10px;
  transition: color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.sort-button:hover {
  color: var(--ink);
}

.sort-button.is-active {
  background: var(--paper-white);
  color: var(--ink);
  box-shadow: 0 1px 3px rgba(27, 26, 22, 0.12);
}

.app-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 17px;
  padding-top: 17px;
}

.app-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 334px;
  padding: 23px;
  border: 1px solid color-mix(in srgb, var(--card-ink) 17%, transparent);
  border-radius: var(--radius-card);
  background: var(--card-bg);
  color: var(--card-ink);
  overflow: hidden;
  isolation: isolate;
  animation: card-in 0.62s var(--ease) both;
  transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease),
    border-color 0.3s ease;
}

.app-card::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: -52px;
  right: -57px;
  width: 176px;
  height: 176px;
  border: 1px solid color-mix(in srgb, var(--card-ink) 13%, transparent);
  border-radius: 50%;
  transition: transform 0.6s var(--ease);
}

.app-card::after {
  content: "";
  position: absolute;
  z-index: -1;
  right: 20px;
  bottom: 82px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--card-ink);
  opacity: 0.24;
  box-shadow: 12px 0 0 var(--card-ink), 24px 0 0 var(--card-ink);
}

.app-card:hover {
  transform: translateY(-5px);
  border-color: color-mix(in srgb, var(--card-ink) 30%, transparent);
  box-shadow: var(--shadow-card);
}

.app-card:hover::before {
  transform: scale(1.12) translate(-5px, 5px);
}

.app-card:nth-child(2) { animation-delay: 0.04s; }
.app-card:nth-child(3) { animation-delay: 0.08s; }
.app-card:nth-child(4) { animation-delay: 0.12s; }
.app-card:nth-child(5) { animation-delay: 0.16s; }
.app-card:nth-child(6) { animation-delay: 0.2s; }
.app-card:nth-child(7) { animation-delay: 0.24s; }
.app-card:nth-child(8) { animation-delay: 0.28s; }
.app-card:nth-child(9) { animation-delay: 0.32s; }
.app-card:nth-child(10) { animation-delay: 0.36s; }

@keyframes card-in {
  from { opacity: 0; translate: 0 16px; }
  to { opacity: 1; translate: 0 0; }
}

/* Themes */
.theme-ember { --card-bg: #f1e1cd; --card-ink: #2b1a10; --card-accent: #d6511c; --detail-bg: #f1e1cd; }
.theme-coral { --card-bg: #f4dcd5; --card-ink: #321815; --card-accent: #d04c34; --detail-bg: #f4dcd5; }
.theme-forest { --card-bg: #dbe7dc; --card-ink: #14261b; --card-accent: #2e6b46; --detail-bg: #dbe7dc; }
.theme-lime { --card-bg: #e9f0c8; --card-ink: #202613; --card-accent: #769b22; --detail-bg: #e9f0c8; }
.theme-cobalt { --card-bg: #dfe5fb; --card-ink: #151d3d; --card-accent: #3156c7; --detail-bg: #dfe5fb; }
.theme-prism { --card-bg: #eae0ee; --card-ink: #281c2b; --card-accent: #8e4a91; --detail-bg: #eae0ee; }
.theme-sky { --card-bg: #deebf2; --card-ink: #14242c; --card-accent: #327c9a; --detail-bg: #deebf2; }
.theme-sun { --card-bg: #f5e8c3; --card-ink: #302713; --card-accent: #c8881e; --detail-bg: #f5e8c3; }
.theme-mint { --card-bg: #dcefe6; --card-ink: #102b22; --card-accent: #268566; --detail-bg: #dcefe6; }
.theme-sand { --card-bg: #ebe3d4; --card-ink: #2b251b; --card-accent: #8a6d3d; --detail-bg: #ebe3d4; }

.card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.card-badge {
  display: inline-flex;
  align-items: center;
  min-height: 23px;
  padding: 0 9px;
  border: 1px solid color-mix(in srgb, var(--card-ink) 22%, transparent);
  border-radius: 99px;
  color: var(--card-ink);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.card-badge.is-new {
  background: var(--card-ink);
  color: var(--card-bg);
  border-color: var(--card-ink);
}

.card-body {
  margin-top: 24px;
}

.card-kicker {
  color: color-mix(in srgb, var(--card-ink) 55%, transparent);
  font-family: var(--mono);
  font-size: 8.5px;
  letter-spacing: 0.08em;
}

.card-body h3 {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-top: 6px;
  font-size: 27px;
  font-weight: 760;
  letter-spacing: -0.055em;
  line-height: 1.05;
}

.card-cn {
  color: color-mix(in srgb, var(--card-ink) 46%, transparent);
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0;
}

.card-tagline {
  display: -webkit-box;
  max-width: 310px;
  margin-top: 9px;
  overflow: hidden;
  color: color-mix(in srgb, var(--card-ink) 72%, transparent);
  font-size: 12px;
  line-height: 1.65;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.card-note {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  max-width: 310px;
  margin-top: 15px;
  padding-top: 12px;
  border-top: 1px dashed color-mix(in srgb, var(--card-ink) 18%, transparent);
  color: color-mix(in srgb, var(--card-ink) 58%, transparent);
  font-size: 10px;
  line-height: 1.55;
}

.card-note::before {
  content: "+";
  flex: none;
  color: var(--card-accent);
  font-family: var(--mono);
  font-size: 11px;
  line-height: 1.25;
}

.card-footer {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: auto;
  padding-top: 16px;
}

.card-platforms {
  display: flex;
  align-items: center;
  gap: 5px;
  min-width: 0;
  color: color-mix(in srgb, var(--card-ink) 60%, transparent);
  font-family: var(--mono);
  font-size: 8.5px;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.platform-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--card-accent);
}

.card-count {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
  color: color-mix(in srgb, var(--card-ink) 48%, transparent);
  font-family: var(--mono);
  font-size: 8.5px;
  white-space: nowrap;
}

.card-count svg {
  width: 10px;
  height: 10px;
  opacity: 0.65;
}

.card-download {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  flex: none;
  border: 1px solid color-mix(in srgb, var(--card-ink) 28%, transparent);
  border-radius: 50%;
  color: var(--card-bg);
  background: var(--card-ink);
  transition: background 0.3s ease, color 0.3s ease, transform 0.35s var(--ease);
}

.card-download svg {
  width: 17px;
  height: 17px;
}

.card-download:hover {
  background: var(--card-accent);
  color: #fffaf0;
  transform: rotate(-8deg) scale(1.05);
}

.card-download.is-loading {
  pointer-events: none;
}

.card-download.is-loading svg {
  animation: spin 0.7s linear infinite;
}

.card-link {
  position: absolute;
  z-index: 2;
  inset: 0;
  border-radius: inherit;
}

.card-link:focus-visible {
  outline-offset: -5px;
}

.card-no {
  position: absolute;
  right: 23px;
  bottom: 20px;
  color: color-mix(in srgb, var(--card-ink) 28%, transparent);
  font-family: var(--mono);
  font-size: 7px;
  letter-spacing: 0.1em;
}

.card-no.is-hidden {
  display: none;
}

/* Featured card */
.app-card.is-featured {
  grid-column: span 2;
  display: grid;
  grid-template-columns: minmax(0, 0.93fr) minmax(250px, 1.07fr);
  min-height: 410px;
  padding: 30px 30px 26px;
  background: var(--forest);
  color: var(--cream);
  border-color: var(--forest);
}

.app-card.is-featured::before {
  top: -82px;
  right: -61px;
  width: 245px;
  height: 245px;
  border-color: rgba(255, 250, 240, 0.12);
}

.app-card.is-featured::after {
  display: none;
}

.featured-copy {
  display: flex;
  flex-direction: column;
  min-width: 0;
  position: relative;
  z-index: 2;
}

.is-featured .card-top {
  align-items: center;
}

.is-featured .app-icon {
  width: 66px;
  height: 66px;
  border-radius: 17px;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.2);
}

.is-featured .card-badge {
  border-color: var(--lime);
  color: var(--forest);
  background: var(--lime);
}

.is-featured .card-body {
  margin-top: 32px;
}

.is-featured .card-kicker {
  color: rgba(255, 250, 240, 0.48);
}

.is-featured .card-body h3 {
  color: var(--cream);
  font-size: 36px;
}

.is-featured .card-cn {
  color: rgba(255, 250, 240, 0.45);
}

.is-featured .card-tagline {
  max-width: 330px;
  color: rgba(255, 250, 240, 0.66);
  font-size: 12.5px;
  -webkit-line-clamp: 3;
}

.is-featured .card-footer {
  gap: 10px;
  border-top: 1px solid rgba(255, 250, 240, 0.14);
  padding-top: 15px;
}

.is-featured .card-platforms,
.is-featured .card-count {
  color: rgba(255, 250, 240, 0.48);
}

.is-featured .platform-dot {
  background: var(--lime);
}

.is-featured .card-download {
  width: 42px;
  height: 42px;
  border-color: var(--lime);
  color: var(--forest);
  background: var(--lime);
}

.is-featured .card-download:hover {
  color: var(--ink);
  background: var(--cream);
}

.is-featured .card-no {
  color: rgba(255, 250, 240, 0.28);
}

.featured-preview-wrap {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 23px 0 17px 17px;
}

.featured-preview {
  position: relative;
  width: 100%;
  max-width: 320px;
  aspect-ratio: 0.94;
  border: 1px solid rgba(255, 250, 240, 0.22);
  border-radius: 12px;
  background: #fbf6e9;
  box-shadow: 18px 22px 0 rgba(0, 0, 0, 0.12), 0 28px 45px rgba(0, 0, 0, 0.18);
  transform: rotate(2.7deg);
  overflow: hidden;
  transition: transform 0.5s var(--ease);
}

.app-card.is-featured:hover .featured-preview {
  transform: rotate(0.8deg) translateY(-5px);
}

.mini-bar {
  display: flex;
  align-items: center;
  gap: 5px;
  height: 25px;
  padding: 0 9px;
  border-bottom: 1px solid rgba(27, 26, 22, 0.12);
  background: #ede4d1;
}

.mini-bar i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(27, 26, 22, 0.25);
}

.mini-bar em {
  margin-left: auto;
  color: rgba(27, 26, 22, 0.4);
  font-family: var(--mono);
  font-size: 6px;
  font-style: normal;
  letter-spacing: 0.04em;
}

.mini-body {
  display: grid;
  grid-template-columns: 62px 1fr;
  height: calc(100% - 25px);
}

.mini-side {
  padding: 13px 9px;
  border-right: 1px solid rgba(27, 26, 22, 0.1);
  background: #f3ecdc;
}

.mini-side span {
  display: block;
  width: 100%;
  height: 3px;
  margin-bottom: 9px;
  border-radius: 2px;
  background: rgba(27, 26, 22, 0.13);
}

.mini-side span:nth-child(2) {
  width: 74%;
  background: rgba(230, 87, 38, 0.5);
}

.mini-side span:nth-child(4) {
  width: 58%;
}

.mini-doc {
  padding: 17px 16px;
}

.mini-doc-title {
  width: 64%;
  height: 6px;
  margin-bottom: 15px;
  border-radius: 3px;
  background: rgba(27, 26, 22, 0.74);
}

.mini-line {
  height: 3px;
  margin-bottom: 7px;
  border-radius: 2px;
  background: rgba(27, 26, 22, 0.16);
}

.mini-line.w-90 { width: 90%; }
.mini-line.w-76 { width: 76%; }
.mini-line.w-84 { width: 84%; }
.mini-line.w-45 { width: 45%; }
.mini-line.w-63 { width: 63%; }

.mini-callout {
  margin: 15px 0;
  padding: 9px 10px;
  border-left: 2px solid var(--orange);
  background: rgba(230, 87, 38, 0.08);
}

.mini-callout .mini-line {
  background: rgba(230, 87, 38, 0.33);
  margin-bottom: 5px;
}

.mini-callout .mini-line:last-child {
  margin-bottom: 0;
}

.mini-cursor {
  display: inline-block;
  width: 1.5px;
  height: 10px;
  margin-left: 2px;
  vertical-align: -2px;
  background: var(--orange);
}

.mini-float {
  position: absolute;
  right: -16px;
  bottom: 38px;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 8px 11px;
  border: 1px solid var(--ink);
  border-radius: 99px;
  background: var(--lime);
  color: var(--ink);
  font-family: var(--mono);
  font-size: 7px;
  box-shadow: 0 9px 20px rgba(0, 0, 0, 0.18);
  transform: rotate(-4deg);
}

.mini-float span {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--forest);
}

.featured-label {
  position: absolute;
  top: 7px;
  right: -7px;
  z-index: 2;
  color: rgba(255, 250, 240, 0.38);
  font-family: var(--mono);
  font-size: 7px;
  letter-spacing: 0.15em;
  writing-mode: vertical-rl;
}

/* Empty state */
.empty-state {
  display: flex;
  align-items: center;
  flex-direction: column;
  justify-content: center;
  min-height: 330px;
  margin-top: 17px;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius-card);
  text-align: center;
  background: rgba(250, 246, 237, 0.45);
}

.empty-mark {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  margin-bottom: 18px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  color: var(--orange);
  font-size: 28px;
}

.empty-state h3 {
  font-size: 24px;
  letter-spacing: -0.04em;
}

.empty-state p {
  margin: 7px 0 20px;
  color: var(--muted);
  font-size: 12px;
}

/* --------------------------------------------------------------------------
   Trust section
   -------------------------------------------------------------------------- */

.trust-section {
  padding: 0 0 clamp(92px, 9vw, 130px);
}

.trust-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(0, 1.12fr);
  column-gap: clamp(40px, 6vw, 88px);
  padding: clamp(40px, 5vw, 66px);
  border-radius: 30px;
  background:
    radial-gradient(circle at 100% 0, rgba(230, 87, 38, 0.26), transparent 31%),
    radial-gradient(circle at 0 100%, rgba(217, 243, 107, 0.08), transparent 26%),
    var(--forest);
  color: var(--cream);
  overflow: hidden;
}

.trust-card::before {
  content: "";
  position: absolute;
  top: -170px;
  right: -130px;
  width: 380px;
  height: 380px;
  border: 1px solid rgba(255, 250, 240, 0.1);
  border-radius: 50%;
  pointer-events: none;
}

.trust-card::after {
  content: "";
  position: absolute;
  top: -105px;
  right: -64px;
  width: 245px;
  height: 245px;
  border: 1px dashed rgba(255, 250, 240, 0.1);
  border-radius: 50%;
  pointer-events: none;
}

.trust-intro {
  position: relative;
  z-index: 2;
  align-self: start;
}

.trust-intro h2 {
  font-size: clamp(44px, 5vw, 63px);
  font-weight: 750;
  letter-spacing: -0.07em;
  line-height: 0.99;
}

.trust-lede {
  max-width: 390px;
  margin-top: 25px;
  color: rgba(255, 250, 240, 0.61);
  font-size: 12.5px;
  line-height: 1.85;
}

.trust-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 26px;
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 250, 240, 0.14);
}

.trust-metrics span {
  color: rgba(255, 250, 240, 0.45);
  font-size: 9.5px;
  white-space: nowrap;
}

.trust-metrics b {
  display: block;
  margin-bottom: 3px;
  color: var(--lime);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 600;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-top: 28px;
  padding-bottom: 3px;
  border-bottom: 1px solid currentColor;
  font-size: 11px;
  font-weight: 600;
}

.text-link span {
  transition: transform 0.3s var(--ease);
}

.text-link:hover span {
  transform: translateX(4px);
}

.text-link.light {
  color: rgba(255, 250, 240, 0.8);
}

.text-link.light:hover {
  color: var(--lime);
}

.trust-rules {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid rgba(255, 250, 240, 0.14);
  border-left: 1px solid rgba(255, 250, 240, 0.14);
}

.trust-rule {
  position: relative;
  min-height: 204px;
  padding: 22px 20px 20px;
  border-right: 1px solid rgba(255, 250, 240, 0.14);
  border-bottom: 1px solid rgba(255, 250, 240, 0.14);
}

.rule-no {
  display: block;
  margin-bottom: 27px;
  color: rgba(255, 250, 240, 0.32);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.1em;
}

.trust-rule h3 {
  max-width: 180px;
  color: var(--cream);
  font-size: 15px;
  font-weight: 650;
  letter-spacing: -0.03em;
  line-height: 1.35;
}

.trust-rule p {
  max-width: 225px;
  margin-top: 9px;
  color: rgba(255, 250, 240, 0.46);
  font-size: 10px;
  line-height: 1.7;
}

.rule-icon {
  position: absolute;
  top: 21px;
  right: 18px;
  width: 23px;
  height: 23px;
  color: var(--lime);
  opacity: 0.76;
}

.rule-icon svg {
  width: 100%;
  height: 100%;
}

.code-card {
  position: relative;
  z-index: 2;
  grid-column: 1 / -1;
  margin-top: 36px;
  border: 1px solid rgba(255, 250, 240, 0.13);
  border-radius: 14px;
  background: rgba(8, 24, 18, 0.7);
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.12);
}

.code-head,
.code-foot {
  display: flex;
  align-items: center;
  gap: 14px;
  color: rgba(255, 250, 240, 0.36);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.06em;
}

.code-head {
  min-height: 35px;
  padding: 0 15px;
  border-bottom: 1px solid rgba(255, 250, 240, 0.1);
}

.code-head > span:nth-child(2) {
  color: rgba(255, 250, 240, 0.5);
}

.code-dots {
  display: flex;
  gap: 4px;
}

.code-dots i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(255, 250, 240, 0.24);
}

.code-live {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-left: auto;
  color: var(--lime);
}

.code-live i {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: currentColor;
}

.code-card pre {
  margin: 0;
  padding: 19px 20px 21px;
  overflow-x: auto;
  color: rgba(255, 250, 240, 0.78);
  font-family: var(--mono);
  font-size: 10px;
  line-height: 1.9;
}

.code-card code {
  font-family: inherit;
}

.c-dim { color: rgba(255, 250, 240, 0.32); }
.c-ok { color: var(--lime); }
.c-accent { color: #ff8f68; }
.c-mono { color: rgba(255, 250, 240, 0.5); }

.code-foot {
  justify-content: space-between;
  min-height: 31px;
  padding: 0 15px;
  border-top: 1px solid rgba(255, 250, 240, 0.1);
}

.code-signal {
  display: flex;
  align-items: flex-end;
  gap: 2px;
  height: 10px;
}

.code-signal i {
  display: block;
  width: 2px;
  height: 4px;
  background: var(--lime);
  opacity: 0.55;
}

.code-signal i:nth-child(2) { height: 8px; }
.code-signal i:nth-child(3) { height: 5px; }
.code-signal i:nth-child(4) { height: 10px; }
.code-signal i:nth-child(5) { height: 6px; }
.code-signal i:nth-child(6) { height: 9px; }
.code-signal i:nth-child(7) { height: 4px; }
.code-signal i:nth-child(8) { height: 7px; }
.code-signal i:nth-child(9) { height: 5px; }

/* --------------------------------------------------------------------------
   FAQ
   -------------------------------------------------------------------------- */

.faq-section {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  column-gap: clamp(45px, 8vw, 125px);
  padding-bottom: clamp(95px, 10vw, 145px);
}

.faq-intro {
  align-self: start;
}

.faq-intro h2 {
  font-size: clamp(46px, 5.2vw, 64px);
}

.faq-note {
  margin-top: 35px;
  color: var(--muted);
  font-size: 10.5px;
  line-height: 1.8;
}

.faq-note a {
  color: var(--ink);
  border-bottom: 1px solid var(--line-strong);
  transition: color 0.2s ease, border-color 0.2s ease;
}

.faq-note a:hover {
  color: var(--orange);
  border-color: var(--orange);
}

.faq-list {
  border-top: 1px solid var(--line-strong);
}

.faq-item {
  border-bottom: 1px solid var(--line);
}

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 21px 1px;
  list-style: none;
  cursor: pointer;
  font-family: var(--display);
  font-size: 16px;
  font-weight: 650;
  letter-spacing: -0.035em;
  transition: color 0.2s ease;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary:hover {
  color: var(--orange);
}

.faq-plus {
  position: relative;
  width: 22px;
  height: 22px;
  flex: none;
  border: 1px solid var(--line);
  border-radius: 50%;
  transition: transform 0.3s var(--ease), background 0.2s ease,
    border-color 0.2s ease;
}

.faq-plus::before,
.faq-plus::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 8px;
  height: 1px;
  background: currentColor;
  transform: translate(-50%, -50%);
}

.faq-plus::after {
  transform: translate(-50%, -50%) rotate(90deg);
  transition: transform 0.25s ease;
}

.faq-item[open] .faq-plus {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--paper);
  transform: rotate(180deg);
}

.faq-item[open] .faq-plus::after {
  transform: translate(-50%, -50%) rotate(0);
}

.faq-answer {
  max-width: 580px;
  padding: 0 45px 23px 1px;
  color: var(--muted);
  font-size: 11.5px;
  line-height: 1.9;
}

.faq-answer p {
  margin: 0;
}

/* --------------------------------------------------------------------------
   Open call
   -------------------------------------------------------------------------- */

.open-call {
  position: relative;
  background: var(--orange);
  color: var(--ink);
  overflow: hidden;
}

.open-call::before {
  content: "DRAWER";
  position: absolute;
  right: -3%;
  bottom: -23%;
  color: transparent;
  font-family: var(--display);
  font-size: clamp(200px, 28vw, 420px);
  font-weight: 800;
  letter-spacing: -0.1em;
  line-height: 0.7;
  -webkit-text-stroke: 1px rgba(27, 26, 22, 0.15);
  pointer-events: none;
}

.open-call-marquee {
  display: flex;
  overflow: hidden;
  padding: 10px 0;
  border-top: 1px solid rgba(27, 26, 22, 0.3);
  border-bottom: 1px solid rgba(27, 26, 22, 0.3);
  font-family: var(--mono);
  font-size: 8.5px;
  letter-spacing: 0.13em;
  white-space: nowrap;
}

.marquee-track {
  display: flex;
  width: max-content;
  flex: none;
  animation: marquee 34s linear infinite;
}

.open-call-marquee span {
  display: block;
  flex: none;
  padding-right: 1.6em;
}

@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.open-call-inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(290px, 0.9fr);
  gap: 60px;
  align-items: end;
  padding-top: clamp(58px, 7vw, 88px);
  padding-bottom: clamp(64px, 7vw, 92px);
}

.open-call-title {
  position: relative;
  z-index: 2;
}

.open-call .section-index {
  color: rgba(27, 26, 22, 0.55);
}

.open-call .section-index span {
  border-color: rgba(27, 26, 22, 0.4);
  color: var(--ink);
}

.open-call h2 {
  color: var(--ink);
  font-size: clamp(52px, 6.6vw, 87px);
  font-weight: 780;
  letter-spacing: -0.075em;
  line-height: 0.96;
}

.open-call-body {
  position: relative;
  z-index: 2;
  max-width: 345px;
  padding-bottom: 9px;
}

.open-call-body p {
  color: rgba(27, 26, 22, 0.72);
  font-size: 12px;
  line-height: 1.85;
}

.open-call-body .button {
  margin-top: 26px;
}

.open-call-meta {
  display: block;
  margin-top: 12px;
  color: rgba(27, 26, 22, 0.52);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.06em;
}

.open-call-sticker {
  position: absolute;
  top: 20px;
  right: 8%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  width: 116px;
  height: 116px;
  border: 1.5px solid rgba(27, 26, 22, 0.8);
  border-radius: 50%;
  transform: rotate(12deg);
  pointer-events: none;
}

.open-call-sticker span {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  line-height: 1.2;
}

.open-call-sticker small {
  margin-top: 5px;
  color: rgba(27, 26, 22, 0.62);
  font-size: 8px;
  letter-spacing: 0.14em;
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

.site-footer {
  position: relative;
  padding: 69px 0 25px;
  background: var(--ink);
  color: var(--paper);
  overflow: hidden;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  gap: 40px;
  padding-bottom: 46px;
}

.footer-brand {
  display: grid;
  grid-template-columns: 46px auto;
  align-items: center;
  gap: 13px;
  align-content: start;
}

.footer-brand .brand-mark {
  color: var(--paper);
}

.footer-brand p {
  font-family: var(--display);
  font-size: 22px;
  font-weight: 750;
  letter-spacing: -0.06em;
  line-height: 1;
}

.footer-brand p span {
  color: rgba(255, 250, 240, 0.38);
  font-family: var(--mono);
  font-size: 8px;
  font-weight: 500;
  letter-spacing: 0.15em;
  vertical-align: middle;
}

.footer-brand small {
  grid-column: 2;
  color: rgba(255, 250, 240, 0.4);
  font-size: 10px;
}

.footer-links {
  display: flex;
  gap: clamp(38px, 7vw, 100px);
}

.footer-links > div {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 9px;
}

.footer-links span {
  margin-bottom: 5px;
  color: rgba(255, 250, 240, 0.28);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.12em;
}

.footer-links a,
.footer-links button {
  color: rgba(255, 250, 240, 0.63);
  font-size: 11px;
  text-align: left;
  transition: color 0.2s ease;
}

.footer-links a:hover,
.footer-links button:hover {
  color: var(--lime);
}

.footer-wordmark {
  padding: 11px 0 18px;
  color: transparent;
  font-family: var(--display);
  font-size: clamp(90px, 18vw, 225px);
  font-weight: 800;
  letter-spacing: -0.09em;
  line-height: 0.68;
  white-space: nowrap;
  -webkit-text-stroke: 1px rgba(255, 250, 240, 0.18);
  user-select: none;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-top: 17px;
  border-top: 1px solid rgba(255, 250, 240, 0.13);
  color: rgba(255, 250, 240, 0.34);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.03em;
}

.footer-status {
  display: flex;
  align-items: center;
  gap: 7px;
}

.footer-status b {
  color: rgba(255, 250, 240, 0.6);
  font-weight: 500;
}

.footer-status .live-dot {
  width: 5px;
  height: 5px;
}

.footer-bottom a {
  color: rgba(255, 250, 240, 0.66);
  transition: color 0.2s ease;
}

.footer-bottom a:hover {
  color: var(--lime);
}

/* --------------------------------------------------------------------------
   Detail overlay
   -------------------------------------------------------------------------- */

.overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  justify-content: flex-end;
}

.overlay[hidden] {
  display: none;
}

.overlay-backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background: rgba(13, 20, 16, 0.55);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  animation: fade-in 0.3s ease both;
  cursor: default;
}

@keyframes fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

.detail-panel {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  width: min(610px, 100%);
  height: 100%;
  background: var(--paper);
  box-shadow: -30px 0 80px rgba(0, 0, 0, 0.22);
  animation: panel-in 0.48s var(--ease) both;
  outline: none;
}

@keyframes panel-in {
  from { transform: translateX(45px); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

.detail-hero {
  position: relative;
  flex: none;
  padding: 20px 29px 26px;
  background: var(--detail-bg, #f1e1cd);
  border-bottom: 1px solid rgba(27, 26, 22, 0.14);
  overflow: hidden;
}

.detail-pattern {
  position: absolute;
  top: -115px;
  right: -90px;
  width: 285px;
  height: 285px;
  border: 1px solid rgba(27, 26, 22, 0.12);
  border-radius: 50%;
  pointer-events: none;
}

.detail-pattern::before,
.detail-pattern::after {
  content: "";
  position: absolute;
  border: 1px solid rgba(27, 26, 22, 0.1);
  border-radius: inherit;
}

.detail-pattern::before { inset: 27px; }
.detail-pattern::after { inset: 57px; border-style: dashed; }

.detail-topline {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 32px;
}

.detail-badge {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 9px;
  border: 1px solid rgba(27, 26, 22, 0.28);
  border-radius: 99px;
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.04em;
}

.detail-badge:empty {
  display: none;
}

.icon-button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  flex: none;
  border: 1px solid rgba(27, 26, 22, 0.22);
  border-radius: 50%;
  color: var(--ink);
  background: rgba(255, 250, 240, 0.25);
  transition: background 0.2s ease, color 0.2s ease, transform 0.25s ease;
}

.icon-button svg {
  width: 17px;
  height: 17px;
}

.icon-button:hover {
  color: var(--paper);
  background: var(--ink);
  transform: rotate(5deg);
}

.detail-app-head {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 17px;
}

.detail-icon {
  width: 76px;
  height: 76px;
  border-radius: 19px;
  box-shadow: 0 10px 20px rgba(40, 26, 10, 0.15);
}

.detail-kicker {
  color: rgba(27, 26, 22, 0.55);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.08em;
}

.detail-app-head h2 {
  margin-top: 2px;
  font-size: 38px;
  font-weight: 760;
  letter-spacing: -0.065em;
  line-height: 1;
}

.detail-cn {
  margin-top: 4px;
  color: rgba(27, 26, 22, 0.5);
  font-size: 10px;
}

.detail-tagline {
  position: relative;
  z-index: 2;
  margin-top: 17px;
  color: rgba(27, 26, 22, 0.7);
  font-family: var(--serif);
  font-size: 16px;
  font-style: italic;
  letter-spacing: -0.01em;
}

.detail-scroll {
  flex: 1;
  padding: 25px 29px 30px;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: var(--line-strong) transparent;
}

.detail-scroll::-webkit-scrollbar {
  width: 6px;
}

.detail-scroll::-webkit-scrollbar-thumb {
  border-radius: 3px;
  background: var(--line-strong);
}

.detail-meta {
  display: grid;
  grid-template-columns: 1.05fr 1.1fr 0.9fr 0.9fr;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 13px 0;
}

.detail-meta > span {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding-right: 9px;
  border-right: 1px solid var(--line);
}

.detail-meta > span + span {
  padding-left: 13px;
}

.detail-meta > span:last-child {
  border-right: 0;
}

.detail-meta small {
  color: var(--muted-light);
  font-family: var(--mono);
  font-size: 7px;
  letter-spacing: 0.08em;
}

.detail-meta b {
  overflow: hidden;
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.detail-quote {
  position: relative;
  margin: 22px 0 25px;
  padding: 4px 0 4px 17px;
  border-left: 2px solid var(--orange);
  color: var(--ink-soft);
  font-family: var(--serif);
  font-size: 17px;
  line-height: 1.65;
}

.detail-quote:empty {
  display: none;
}

.detail-section {
  padding: 20px 0;
  border-top: 1px solid var(--line);
}

.detail-section:first-of-type {
  border-top: 0;
  padding-top: 5px;
}

.detail-section h3 {
  margin-bottom: 14px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 8.5px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.highlight-list {
  list-style: none;
  counter-reset: highlight;
}

.highlight-list li {
  counter-increment: highlight;
  display: grid;
  grid-template-columns: 26px 1fr;
  gap: 11px;
  padding: 9px 0;
  border-bottom: 1px solid rgba(27, 26, 22, 0.08);
  color: var(--ink-soft);
  font-size: 12px;
  line-height: 1.6;
}

.highlight-list li:last-child {
  border-bottom: 0;
}

.highlight-list li::before {
  content: "0" counter(highlight);
  color: var(--orange);
  font-family: var(--mono);
  font-size: 8px;
  line-height: 2.4;
}

.detail-description {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.9;
}

.changelog {
  display: flex;
  flex-direction: column;
}

.changelog-row {
  display: grid;
  grid-template-columns: 63px 76px 1fr;
  gap: 10px;
  padding: 9px 0;
  border-bottom: 1px solid rgba(27, 26, 22, 0.08);
  font-size: 10.5px;
  line-height: 1.6;
}

.changelog-row:last-child {
  border-bottom: 0;
}

.changelog-row b {
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 600;
}

.changelog-row time {
  color: var(--muted-light);
  font-family: var(--mono);
  font-size: 8px;
}

.changelog-row p {
  color: var(--muted);
}

.detail-integrity {
  margin-top: 7px;
  padding: 17px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--paper-warm);
}

.integrity-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.integrity-head h3 {
  margin: 0;
}

.verified-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #36744d;
  font-family: var(--mono);
  font-size: 8px;
}

.verified-pill span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: #d9eadf;
  font-size: 8px;
}

.checksum {
  display: block;
  padding: 9px 10px;
  border-radius: 6px;
  background: var(--paper-deep);
  color: var(--ink-soft);
  font-family: var(--mono);
  font-size: 9px;
  line-height: 1.6;
  overflow-wrap: anywhere;
}

.detail-integrity p {
  margin-top: 9px;
  color: var(--muted);
  font-size: 9.5px;
  line-height: 1.7;
}

.detail-integrity p code {
  padding: 1px 4px;
  border-radius: 3px;
  background: var(--paper-deep);
  font-family: var(--mono);
  font-size: 8.5px;
}

.detail-maker {
  display: flex;
  align-items: center;
  gap: 11px;
  border-top: 0;
  padding-top: 15px;
  padding-bottom: 4px;
}

.maker-avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 35px;
  height: 35px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--serif);
  font-size: 15px;
}

.detail-maker > div {
  display: flex;
  flex-direction: column;
  line-height: 1.4;
}

.detail-maker > div span {
  color: var(--muted-light);
  font-family: var(--mono);
  font-size: 7px;
  letter-spacing: 0.08em;
}

.detail-maker strong {
  font-size: 11px;
  font-weight: 600;
}

.maker-note {
  margin-left: auto;
  color: var(--muted-light);
  font-family: var(--mono);
  font-size: 8px;
}

.detail-security-note {
  display: flex;
  gap: 7px;
  margin-top: 18px;
  padding-top: 15px;
  border-top: 1px dashed var(--line);
  color: var(--muted-light);
  font-family: var(--mono);
  font-size: 8px;
  line-height: 1.7;
}

.detail-security-note span {
  color: var(--orange);
}

.detail-action {
  display: flex;
  align-items: center;
  gap: 18px;
  flex: none;
  padding: 15px 22px 15px 29px;
  border-top: 1px solid var(--line);
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  backdrop-filter: blur(12px);
}

.detail-action-count {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
  flex: none;
}

.detail-action-count span {
  color: var(--muted-light);
  font-family: var(--mono);
  font-size: 7px;
  letter-spacing: 0.08em;
}

.detail-action-count strong {
  margin-top: 3px;
  font-family: var(--display);
  font-size: 22px;
  font-weight: 750;
  letter-spacing: -0.05em;
}

.button-download {
  flex: 1;
  justify-content: space-between;
  min-height: 54px;
  padding: 0 15px 0 19px;
  border-radius: 10px;
}

.download-label {
  font-size: 13px;
}

.download-size {
  margin-left: auto;
  color: rgba(255, 250, 240, 0.45);
  font-family: var(--mono);
  font-size: 8px;
  font-weight: 400;
}

.download-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--lime);
  color: var(--ink);
}

.download-arrow svg {
  width: 15px;
  height: 15px;
}

.button-download:hover .download-arrow {
  transform: none;
}

.bump {
  animation: count-bump 0.55s var(--ease);
}

@keyframes count-bump {
  0% { transform: translateY(0); }
  35% { transform: translateY(-4px); color: var(--orange); }
  100% { transform: translateY(0); }
}

/* --------------------------------------------------------------------------
   Submit modal
   -------------------------------------------------------------------------- */

.modal-overlay {
  align-items: center;
  justify-content: center;
  padding: 24px;
  overflow-y: auto;
}

.submit-modal {
  position: relative;
  z-index: 2;
  width: min(715px, 100%);
  max-height: calc(100vh - 48px);
  padding: 33px 36px 28px;
  border-radius: 22px;
  background: var(--paper-warm);
  box-shadow: 0 35px 100px rgba(0, 0, 0, 0.25);
  overflow-y: auto;
  animation: modal-in 0.42s var(--ease) both;
}

@keyframes modal-in {
  from { transform: translateY(20px) scale(0.98); opacity: 0; }
  to { transform: translateY(0) scale(1); opacity: 1; }
}

.submit-modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 30px;
}

.submit-modal-head .eyebrow {
  margin-bottom: 15px;
}

.submit-modal h2 {
  font-size: 42px;
  font-weight: 760;
  letter-spacing: -0.07em;
  line-height: 0.98;
}

.submit-intro {
  max-width: 450px;
  margin-top: 15px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.8;
}

#submit-form {
  margin-top: 25px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 15px;
  min-width: 0;
}

.field > span,
.field legend {
  color: var(--ink-soft);
  font-family: var(--mono);
  font-size: 8px;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.field > span em {
  color: var(--orange);
  font-style: normal;
}

.field > span small {
  float: right;
  color: var(--muted-light);
  font-size: 7px;
  font-weight: 400;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 43px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  outline: none;
  background: var(--paper-white);
  font-size: 12px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.field textarea {
  min-height: 88px;
  resize: vertical;
  line-height: 1.65;
}

.field input::placeholder,
.field textarea::placeholder {
  color: var(--muted-light);
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(230, 87, 38, 0.08);
}

.field select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%),
    linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 16px) 18px, calc(100% - 12px) 18px;
  background-size: 4px 4px, 4px 4px;
  background-repeat: no-repeat;
}

.platforms-field {
  display: block;
  border: 0;
  padding: 0;
  margin: 1px 0 17px;
}

.platforms-field legend {
  display: block;
  margin-bottom: 8px;
}

.platforms-field label {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin: 0 5px 5px 0;
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 99px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 8px;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.platforms-field label:has(input:checked) {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--paper);
}

.platforms-field input {
  width: 10px;
  height: 10px;
  min-height: 0;
  margin: 0;
  accent-color: var(--orange);
}

.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-error {
  margin: 0 0 13px;
  padding: 9px 11px;
  border-left: 2px solid var(--red);
  background: rgba(189, 46, 26, 0.06);
  color: var(--red);
  font-size: 10px;
  line-height: 1.6;
}

.form-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-top: 17px;
  border-top: 1px solid var(--line);
}

.form-foot p {
  max-width: 320px;
  color: var(--muted-light);
  font-size: 8px;
  line-height: 1.7;
}

.form-foot .button {
  flex: none;
}

.form-foot .button.is-loading {
  pointer-events: none;
}

.form-foot .button.is-loading::after {
  content: "";
  width: 12px;
  height: 12px;
  border: 1.5px solid currentColor;
  border-top-color: transparent;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

.submit-success {
  display: flex;
  align-items: flex-start;
  flex-direction: column;
  min-height: 430px;
  padding: 38px 2px 18px;
}

.success-mark {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 58px;
  margin-bottom: 28px;
  border-radius: 50%;
  background: var(--lime);
  color: var(--forest);
  font-size: 24px;
}

.submit-success .eyebrow {
  margin-bottom: 18px;
}

.submit-success h2 {
  font-size: 45px;
}

.submit-success > p:not(.eyebrow) {
  max-width: 410px;
  margin-top: 20px;
  color: var(--muted);
  font-size: 11.5px;
  line-height: 1.85;
}

.submit-success .button {
  margin-top: 32px;
}

/* --------------------------------------------------------------------------
   Toast
   -------------------------------------------------------------------------- */

.toast-region {
  position: fixed;
  z-index: 200;
  right: 22px;
  bottom: 22px;
  display: flex;
  align-items: flex-end;
  flex-direction: column;
  gap: 8px;
  max-width: min(360px, calc(100vw - 32px));
  pointer-events: none;
}

.toast {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  padding: 13px 15px;
  border: 1px solid rgba(255, 250, 240, 0.13);
  border-left: 2px solid var(--lime);
  border-radius: 9px;
  background: var(--ink);
  color: var(--paper);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.22);
  font-size: 11px;
  line-height: 1.6;
  animation: toast-in 0.4s var(--ease) both;
  pointer-events: auto;
}

.toast.is-error {
  border-left-color: #ff8667;
}

.toast.is-leaving {
  animation: toast-out 0.3s ease both;
}

.toast-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  flex: none;
  margin-top: 1px;
  border-radius: 50%;
  background: var(--lime);
  color: var(--ink);
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 700;
}

.toast.is-error .toast-icon {
  background: #ff8667;
}

@keyframes toast-in {
  from { transform: translateY(12px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

@keyframes toast-out {
  to { transform: translateY(8px); opacity: 0; }
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 1220px) {
  .container {
    width: min(1240px, calc(100% - 72px));
  }

  .main-nav {
    gap: 24px;
    margin-left: 4px;
  }

  .header-inner {
    gap: 30px;
  }

  .hero {
    grid-template-columns: minmax(0, 1.04fr) minmax(360px, 0.96fr);
    column-gap: 34px;
  }

  .hero h1 {
    font-size: clamp(48px, 4.9vw, 74px);
  }

  .slip {
    width: 335px;
  }

  .index-card {
    left: -25px;
  }

  .art-tag-top {
    right: 135px;
  }

  .app-card.is-featured {
    grid-template-columns: minmax(0, 1fr) minmax(225px, 0.95fr);
  }

  .trust-card {
    column-gap: 50px;
  }
}

@media (max-width: 1060px) {
  .service-pill {
    display: none;
  }

  .hero-art {
    min-height: 515px;
  }

  .art-disc {
    width: 345px;
    height: 345px;
  }

  .index-card {
    display: none;
  }

  .slip {
    top: 30px;
    right: 0;
    width: 340px;
    min-height: 445px;
  }

  .art-tag-top {
    right: 125px;
  }

  .app-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .app-card.is-featured {
    grid-column: span 2;
  }

  .trust-card {
    grid-template-columns: 1fr;
    row-gap: 40px;
  }

  .trust-intro {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 40px;
  }

  .trust-intro .section-index,
  .trust-intro h2 {
    grid-column: 1;
  }

  .trust-lede {
    grid-column: 2;
    grid-row: 1 / span 2;
    align-self: end;
    margin-top: 0;
  }

  .trust-metrics,
  .trust-intro .text-link {
    grid-column: 1 / -1;
  }

  .trust-intro .text-link {
    justify-self: start;
  }

  .code-card {
    grid-column: 1;
    margin-top: 0;
  }

  .faq-section {
    column-gap: 55px;
  }
}

@media (max-width: 900px) {
  .container {
    width: calc(100% - 56px);
  }

  .topline p.topline-mid {
    display: none;
  }

  .topline-inner {
    grid-template-columns: 1fr auto;
  }

  .header-inner {
    min-height: 72px;
    gap: 20px;
  }

  .main-nav {
    display: none;
  }

  .header-actions {
    gap: 12px;
  }

  .menu-button {
    display: flex;
  }

  .hero {
    grid-template-columns: 1fr;
    padding-top: 53px;
  }

  .hero-copy {
    padding-bottom: 0;
  }

  .hero h1 {
    max-width: 680px;
    font-size: clamp(56px, 8.6vw, 78px);
  }

  .lede {
    max-width: 545px;
  }

  .hero-art {
    width: min(100%, 530px);
    min-height: 530px;
    margin: 30px auto 0;
  }

  .slip {
    right: 28px;
    width: 355px;
  }

  .art-disc {
    right: 8%;
  }

  .art-tag-top {
    right: 51%;
  }

  .art-note {
    right: 15px;
  }

  .hero-stats {
    grid-template-columns: 1fr 1fr;
    margin-top: 25px;
  }

  .stat:nth-child(2) {
    border-right: 0;
  }

  .stat:nth-child(1),
  .stat:nth-child(2) {
    border-bottom: 1px solid var(--line);
  }

  .stat:nth-child(3) {
    padding-left: 0;
  }

  .stat-note {
    padding-left: 26px;
    border-right: 0;
  }

  .section-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 24px;
  }

  .section-aside {
    width: 100%;
    justify-content: space-between;
    align-items: center;
  }

  .section-aside p {
    max-width: 350px;
  }

  .catalog-controls {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }

  .catalog-controls .filter-group {
    width: 100%;
  }

  .sort-group {
    align-self: flex-end;
  }

  .trust-intro {
    display: block;
  }

  .trust-lede {
    margin-top: 24px;
  }

  .faq-section {
    grid-template-columns: 1fr;
    row-gap: 38px;
  }

  .faq-intro {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 30px;
  }

  .faq-note {
    flex: none;
    margin-top: 0;
    text-align: right;
  }

  .open-call-inner {
    grid-template-columns: 1fr;
    gap: 38px;
  }

  .open-call-body {
    max-width: 400px;
  }

  .open-call-sticker {
    top: 32px;
    right: 6%;
  }

  .footer-top {
    flex-direction: column;
    gap: 38px;
  }

  .footer-links {
    justify-content: space-between;
    width: 100%;
  }

  .footer-bottom {
    flex-wrap: wrap;
  }

  .footer-status {
    order: 3;
    width: 100%;
  }
}

@media (max-width: 760px) {
  .container {
    width: calc(100% - 40px);
  }

  .topline {
    font-size: 8.5px;
  }

  .topline-inner {
    min-height: 31px;
  }

  .topline-live {
    gap: 6px;
  }

  .header-actions .button {
    display: none;
  }

  .site-header {
    top: 0;
  }

  .hero {
    padding-top: 42px;
  }

  .hero h1 {
    margin-top: 20px;
    font-size: clamp(43px, 10.5vw, 68px);
    line-height: 1.02;
    letter-spacing: -0.07em;
  }

  .eyebrow {
    flex-wrap: wrap;
    font-size: 9.5px;
  }

  .issue {
    margin-left: 0;
  }

  .lede {
    font-size: 14px;
    line-height: 1.8;
  }

  .lede-line {
    display: inline;
  }

  .search {
    height: 56px;
    margin-top: 27px;
  }

  .search-kbd {
    display: none;
  }

  .hero-meta {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }

  .hero-art {
    min-height: 470px;
    margin-top: 20px;
  }

  .art-disc {
    top: 10px;
    right: 0;
    width: 300px;
    height: 300px;
  }

  .art-grid {
    width: 270px;
    height: 270px;
  }

  .slip {
    top: 24px;
    right: 12px;
    width: min(340px, calc(100% - 23px));
    min-height: 429px;
    padding: 18px 20px 15px;
  }

  .slip-app-text strong {
    font-size: 24px;
  }

  .slip-total strong {
    font-size: 28px;
  }

  .art-tag-top {
    top: 2px;
    right: 38%;
    font-size: 8px;
  }

  .art-tag-bottom {
    right: 0;
    bottom: 5px;
    font-size: 7.5px;
  }

  .art-stamp {
    left: -2px;
    bottom: 24px;
    width: 69px;
    height: 69px;
  }

  .art-note {
    display: none;
  }

  .hero-stats {
    margin-top: 10px;
  }

  .stat {
    min-height: 89px;
    padding-right: 15px;
  }

  .stat + .stat {
    padding-left: 17px;
  }

  .stat-value {
    font-size: 26px;
  }

  .stat-label {
    font-size: 9.5px;
  }

  .stat-note {
    padding-left: 0;
    gap: 8px;
  }

  .pulse-ring {
    width: 24px;
    height: 24px;
  }

  .stat-note p {
    font-size: 9px;
  }

  .stat-note p span {
    font-size: 7.5px;
  }

  .apps-section {
    padding-top: 76px;
  }

  .section-head h2,
  .faq-intro h2 {
    font-size: 47px;
  }

  .section-aside {
    align-items: flex-start;
    flex-direction: column;
    gap: 13px;
  }

  .app-grid {
    grid-template-columns: 1fr;
  }

  .app-card,
  .app-card.is-featured {
    grid-column: span 1;
    min-height: 320px;
  }

  .app-card.is-featured {
    grid-template-columns: 1fr;
    min-height: 0;
    padding: 25px;
  }

  .featured-preview-wrap {
    display: none;
  }

  .is-featured .card-body {
    margin-top: 30px;
  }

  .is-featured .card-body h3 {
    font-size: 33px;
  }

  .trust-card {
    padding: 30px 22px;
    border-radius: 22px;
  }

  .trust-intro h2 {
    font-size: 44px;
  }

  .trust-rules {
    grid-template-columns: 1fr;
  }

  .trust-rule {
    min-height: 0;
    padding: 20px 16px;
  }

  .rule-no {
    margin-bottom: 17px;
  }

  .trust-rule h3 {
    max-width: 250px;
  }

  .trust-rule p {
    max-width: 340px;
  }

  .code-card pre {
    font-size: 9px;
    padding: 16px;
  }

  .code-head {
    font-size: 7px;
  }

  .faq-section {
    padding-bottom: 92px;
  }

  .faq-intro {
    display: block;
  }

  .faq-note {
    margin-top: 23px;
    text-align: left;
  }

  .faq-item summary {
    padding: 18px 0;
    font-size: 15px;
  }

  .faq-answer {
    padding-right: 25px;
    font-size: 11px;
  }

  .open-call-inner {
    padding-top: 53px;
    padding-bottom: 64px;
  }

  .open-call h2 {
    font-size: clamp(48px, 13vw, 68px);
  }

  .open-call-sticker {
    top: 22px;
    right: 24px;
    width: 86px;
    height: 86px;
  }

  .open-call-sticker span {
    font-size: 8px;
  }

  .open-call-sticker small {
    font-size: 6.5px;
  }

  .site-footer {
    padding-top: 51px;
  }

  .footer-links {
    gap: 24px;
  }

  .footer-brand {
    grid-template-columns: 40px auto;
  }

  .footer-wordmark {
    font-size: clamp(65px, 21vw, 160px);
    padding-bottom: 22px;
  }

  .footer-bottom {
    gap: 12px;
    font-size: 7px;
  }

  .footer-bottom p:first-child {
    width: 100%;
  }

  .footer-status {
    order: initial;
    width: auto;
  }

  .detail-panel {
    width: 100%;
  }

  .detail-hero {
    padding: 17px 21px 22px;
  }

  .detail-topline {
    margin-bottom: 25px;
  }

  .detail-app-head h2 {
    font-size: 33px;
  }

  .detail-icon {
    width: 65px;
    height: 65px;
    border-radius: 16px;
  }

  .detail-tagline {
    font-size: 14px;
  }

  .detail-scroll {
    padding: 20px 21px 25px;
  }

  .detail-meta {
    grid-template-columns: 1fr 1fr;
    row-gap: 12px;
  }

  .detail-meta > span:nth-child(2) {
    border-right: 0;
  }

  .detail-meta > span:nth-child(3) {
    padding-left: 0;
  }

  .detail-quote {
    font-size: 15px;
  }

  .changelog-row {
    grid-template-columns: 55px 67px 1fr;
    gap: 7px;
  }

  .detail-action {
    padding: 12px 17px;
    gap: 12px;
  }

  .detail-action-count strong {
    font-size: 18px;
  }

  .button-download {
    min-height: 50px;
  }

  .download-label {
    font-size: 12px;
  }

  .download-size {
    display: none;
  }

  .modal-overlay {
    padding: 0;
    align-items: flex-end;
  }

  .submit-modal {
    width: 100%;
    max-height: 92vh;
    padding: 25px 21px 24px;
    border-radius: 20px 20px 0 0;
  }

  .submit-modal h2,
  .submit-success h2 {
    font-size: 37px;
  }

  .form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .form-foot {
    align-items: flex-start;
    flex-direction: column;
  }

  .form-foot .button {
    width: 100%;
  }

  .submit-success {
    min-height: 390px;
    padding-top: 15px;
  }

  .toast-region {
    right: 16px;
    bottom: 16px;
    left: 16px;
    max-width: none;
  }

  .toast {
    width: 100%;
  }
}

@media (max-width: 430px) {
  .container {
    width: calc(100% - 32px);
  }

  .brand-en {
    display: none;
  }

  .hero h1 {
    font-size: clamp(33px, 10.5vw, 40px);
  }

  .hero-art {
    min-height: 437px;
  }

  .art-disc {
    width: 250px;
    height: 250px;
    right: 5px;
  }

  .slip {
    right: 7px;
    width: calc(100% - 12px);
    min-height: 407px;
    padding: 16px 17px 13px;
  }

  .slip-app {
    padding: 16px 0 14px;
  }

  .hero-app-icon {
    width: 58px;
    height: 58px;
    border-radius: 14px;
  }

  .slip-spec {
    padding: 11px 0;
  }

  .barcode {
    height: 29px;
  }

  .art-tag-top {
    right: 31%;
  }

  .art-stamp {
    display: none;
  }

  .stat-value {
    font-size: 23px;
  }

  .stat-note p span {
    display: none;
  }

  .filter-button {
    padding-inline: 10px;
  }

  .control-label {
    display: none;
  }

  .sort-button {
    padding-inline: 10px;
  }

  .app-card {
    padding: 19px;
    min-height: 305px;
  }

  .card-body h3 {
    font-size: 25px;
  }

  .open-call-sticker {
    display: none;
  }
}

/* --------------------------------------------------------------------------
   Motion preferences
   -------------------------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .slip,
  .app-card {
    transform: none !important;
  }
}
