/* SellJelly's website. The look is the app's (src/theme.ts in the app): purple leads, a cream page, white cards
   with corners of 12 and more, Inter with bold headings, the purple jelly on lavender. No script anywhere, and no
   style written into a page: the pages are sent with a rule that allows this one file only. */

/* Inter, cut down to Latin (tools/fonts.mjs). Chinese is drawn by the visitor's own system font. */
@font-face { font-family: Inter; font-weight: 500; font-style: normal; font-display: swap; src: url(fonts/inter-500.woff2) format('woff2');
  unicode-range: U+0020-007E, U+00A0-00FF, U+0131, U+0152-0153, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2190-2193, U+2212, U+2215; }
@font-face { font-family: Inter; font-weight: 700; font-style: normal; font-display: swap; src: url(fonts/inter-700.woff2) format('woff2');
  unicode-range: U+0020-007E, U+00A0-00FF, U+0131, U+0152-0153, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2190-2193, U+2212, U+2215; }
@font-face { font-family: Inter; font-weight: 800; font-style: normal; font-display: swap; src: url(fonts/inter-800.woff2) format('woff2');
  unicode-range: U+0020-007E, U+00A0-00FF, U+0131, U+0152-0153, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2190-2193, U+2212, U+2215; }

:root {
  --page: #F5EFE3;      /* the cream behind everything */
  --card: #FFFFFF;
  --ink: #1A1A1A;
  --ink2: #5E5E5E;      /* quieter words; 5.2 to 1 on the cream */
  --purple: #7A45EE;    /* what leads: panels, buttons, prices, links */
  --tint: #EDE7FE;      /* pale purple: icon tiles, small labels */
  --lav: #CBB8FF;       /* the ground the jelly sits on */
  --glow: #E6DCFF;
  --deep: #2B1269;      /* words on lavender */
  --sand: #E8DCC4;      /* borders on the cream */
  --line: #EFE9DC;      /* borders on white */
  --shadow: 0 1px 5px rgba(60, 40, 120, 0.10);
  --wrap: 1120px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--page); color: var(--ink);
  font-family: Inter, -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', 'Noto Sans SC', 'Segoe UI', Roboto, sans-serif;
  font-weight: 500; font-size: 17px; line-height: 1.6; -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
h1, h2, h3 { font-weight: 700; line-height: 1.15; letter-spacing: -0.015em; text-wrap: balance; }
:lang(zh) h1, :lang(zh) h2, :lang(zh) h3 { letter-spacing: 0; line-height: 1.3; }
:lang(zh) body, body:lang(zh) { line-height: 1.75; }
a { color: var(--purple); text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2.5px; }
:focus-visible { outline: 3px solid var(--purple); outline-offset: 3px; border-radius: 6px; }
.on-purple :focus-visible { outline-color: #FFFFFF; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.skip { position: absolute; left: 16px; top: -64px; z-index: 5; background: var(--card); color: var(--purple); padding: 10px 16px; border-radius: 12px; font-weight: 700; }
.skip:focus { top: 12px; }
.icon { width: 24px; height: 24px; flex: none; }

/* only on a draft: says what is still missing, so a draft is never mistaken for the real thing */
.draft { background: var(--ink); color: #FFFFFF; font-size: 13px; line-height: 1.45; padding: 8px 0; text-align: center; }
.todo { background: #FFF1B8; color: #5C4300; border-radius: 4px; padding: 0 5px; font-style: normal; }

/* ---- the top of every page ---- */
.top { display: flex; align-items: center; gap: 24px; height: 76px; }
.brand { display: block; flex: none; border-radius: 8px; }
.brand img { height: 46px; width: auto; }
.links { display: flex; gap: 28px; margin-left: auto; }
.links a, .langs a { color: var(--ink); text-decoration: none; font-weight: 700; font-size: 15px; }
.links a:hover, .langs a:hover { color: var(--purple); }
.langs { display: flex; gap: 2px; padding: 3px; border-radius: 999px; background: rgba(255, 255, 255, 0.6); }
.langs a { padding: 5px 12px; border-radius: 999px; font-size: 14px; line-height: 1.4; }
.langs a[aria-current] { background: var(--purple); color: #FFFFFF; }
.doc-page .langs { background: var(--card); box-shadow: var(--shadow); }

/* ---- buttons ---- */
.btn { display: inline-flex; align-items: center; gap: 8px; background: var(--purple); color: #FFFFFF; text-decoration: none; font-weight: 700; font-size: 16px; line-height: 1.25; padding: 15px 24px; border-radius: 12px; }
.btn:hover { background: #6A35DE; }
.btn .icon { width: 18px; height: 18px; }
.more { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; }
.more .icon { width: 18px; height: 18px; }

/* ---- first page: the jelly on lavender ---- */
/* The jelly's picture is cut straight at its left, right and lower edges (it was drawn to fill a phone's screen), so
   it always sits in a rounded window whose edges are those cuts: the app's icon, large. */
.jelly { background: var(--glow); border-radius: 40px; overflow: hidden; }
.jelly img { width: 100%; margin-top: 9%; }
.hero { background: var(--lav); border-radius: 0 0 40px 40px; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr); gap: 56px; align-items: center; padding: 28px 0 72px; }
.hero h1 { font-size: clamp(42px, 6.2vw, 76px); line-height: 1.02; letter-spacing: -0.03em; color: var(--deep); }
:lang(zh) .hero h1 { font-size: clamp(42px, 6vw, 72px); line-height: 1.15; letter-spacing: 0.02em; }
.hero-sub { margin-top: 22px; max-width: 30em; font-size: 19px; line-height: 1.55; color: var(--deep); }
.hero-acts { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 18px; margin-top: 32px; }
.soon-note { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 15px; color: var(--deep); }
.soon-note .icon { width: 20px; height: 20px; }

/* ---- sections of the first page ---- */
.sec { padding: 96px 0 0; }
.sec-head { max-width: 720px; margin-bottom: 36px; }
.sec h2 { font-size: clamp(30px, 3.6vw, 44px); }
.sec-sub { margin-top: 12px; font-size: 19px; color: var(--ink2); }

/* what it is: a phone showing the app, and the three kinds of seller */
.what { display: grid; grid-template-columns: 340px minmax(0, 1fr); gap: 72px; align-items: center; }
.kinds { display: grid; gap: 14px; margin-top: 32px; }
.kind { display: flex; gap: 18px; background: var(--card); border-radius: 16px; padding: 22px; box-shadow: var(--shadow); }
.tile { flex: none; width: 48px; height: 48px; border-radius: 14px; background: var(--tint); color: var(--purple); display: flex; align-items: center; justify-content: center; }
.kind h3, .safe-card h3 { font-size: 19px; }
.kind p, .safe-card p { margin-top: 6px; color: var(--ink2); font-size: 16px; line-height: 1.55; }

/* the phone: the app's home page, drawn here so its words follow the page's language */
.phone { width: 340px; border-radius: 48px; background: #1A1A1A; padding: 10px; box-shadow: 0 30px 60px -20px rgba(43, 18, 105, 0.35), 0 2px 6px rgba(43, 18, 105, 0.12); }
.ph { border-radius: 38px; overflow: hidden; background: var(--page); font-size: 12px; line-height: 1.3; }
.ph-top { background: var(--purple); color: #FFFFFF; padding: 34px 12px 12px; }
.ph-chan { display: flex; align-items: center; gap: 12px; white-space: nowrap; overflow: hidden; font-weight: 700; font-size: 14px; }
.ph-chan b { font-size: 17px; font-weight: 800; border-bottom: 3px solid #FFFFFF; padding-bottom: 2px; }
.ph-chan i { font-style: normal; background: #FFFFFF; color: var(--purple); font-size: 8.5px; font-weight: 800; padding: 1px 4px; border-radius: 4px; margin-left: -9px; align-self: flex-start; }
.ph-search { display: flex; align-items: center; justify-content: space-between; margin-top: 10px; background: #FFFFFF; color: var(--ink); border-radius: 999px; height: 38px; padding: 0 3px 0 16px; font-size: 13px; font-weight: 700; }
.ph-search span { display: flex; align-items: center; justify-content: center; width: 46px; height: 32px; border-radius: 999px; background: var(--purple); color: #FFFFFF; }
.ph-search .icon { width: 15px; height: 15px; }
.ph-tabs { display: flex; gap: 16px; background: #FFFFFF; padding: 12px 12px 4px; color: var(--ink2); font-size: 13px; white-space: nowrap; overflow: hidden; }
.ph-tabs b { color: var(--ink); font-weight: 800; }
.ph-cats { display: grid; grid-template-columns: repeat(5, 1fr); background: #FFFFFF; padding: 10px 4px 12px; text-align: center; font-size: 10px; color: var(--ink); }
.ph-cats img { width: 34px; height: 34px; margin: 0 auto 5px; image-rendering: pixelated; }
.ph-cats span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding: 0 2px; }
.ph-grid { display: grid; grid-template-columns: 1fr 1fr; grid-auto-rows: max-content; align-content: start; gap: 6px; padding: 6px 6px 0; height: 336px; overflow: hidden; }
.ph-card { background: #FFFFFF; border-radius: 10px; overflow: hidden; }
.ph-card img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.ph-card div { padding: 7px 8px 9px; }
.ph-card strong { display: block; font-weight: 700; font-size: 11.5px; line-height: 1.3; height: 30px; overflow: hidden; }
.ph-card em { display: inline-block; margin-top: 5px; font-style: normal; font-weight: 700; font-size: 9px; color: var(--purple); background: var(--tint); border-radius: 4px; padding: 1px 5px; }
.ph-card p { margin-top: 4px; display: flex; align-items: baseline; gap: 5px; font-size: 9.5px; color: var(--ink2); }
.ph-card p b { font-weight: 800; font-size: 15px; color: var(--purple); letter-spacing: -0.02em; }
.ph-card small { display: block; margin-top: 4px; font-size: 9.5px; color: var(--ink2); }
.ph-bar { position: relative; display: grid; grid-template-columns: repeat(5, 1fr); align-items: end; background: #FFFFFF; border-top: 1px solid var(--line); padding: 8px 4px 14px; text-align: center; font-size: 9.5px; font-weight: 700; color: var(--ink2); }
.ph-bar span { display: block; }
.ph-bar .icon { width: 19px; height: 19px; margin: 0 auto 3px; }
.ph-bar .here { color: var(--purple); }
.ph-bar .sell { position: relative; top: -2px; width: 48px; height: 48px; margin: -20px auto 0; border-radius: 999px; background: var(--purple); color: #FFFFFF; display: flex; flex-direction: column; align-items: center; justify-content: center; font-size: 8.5px; box-shadow: 0 0 0 4px #FFFFFF; }
.ph-bar .sell .icon { width: 17px; height: 17px; margin-bottom: 1px; }

/* protected payment: the one large purple panel */
.panel { background: var(--purple); color: #FFFFFF; border-radius: 32px; padding: 64px 56px 56px; }
.panel h2 { max-width: 15em; }
.panel .sec-sub { color: #FFFFFF; max-width: 34em; }
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; margin-top: 44px; counter-reset: step; }
.steps li { counter-increment: step; }
.steps li::before { content: counter(step); display: flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 999px; background: #FFFFFF; color: var(--purple); font-weight: 800; font-size: 17px; margin-bottom: 14px; }
.steps h3 { font-size: 19px; }
.steps p { margin-top: 8px; font-size: 16px; line-height: 1.5; }
.promises { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 48px; }
.promise { background: var(--card); color: var(--ink); border-radius: 16px; padding: 22px; }
.promise h3 { font-size: 18px; color: var(--purple); }
.promise p { margin-top: 6px; font-size: 16px; line-height: 1.5; color: var(--ink); }
.panel .more { margin-top: 28px; color: #FFFFFF; }

/* fees */
.fees { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.fee-list, .fee-ex { background: var(--card); border-radius: 16px; box-shadow: var(--shadow); }
.fee-list { padding: 6px 26px; }
.fee-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 24px; padding: 18px 0; border-top: 1px solid var(--line); }
.fee-row:first-child { border-top: 0; }
.fee-row dt { font-weight: 700; }
.fee-row .cost { font-weight: 800; color: var(--purple); text-align: right; }
.fee-row .note { grid-column: 1 / -1; color: var(--ink2); font-size: 15px; line-height: 1.5; }
.fee-ex { padding: 24px 26px; }
.fee-ex h3 { font-size: 17px; }
.fee-ex table { width: 100%; border-collapse: collapse; margin-top: 10px; font-variant-numeric: tabular-nums; }
.fee-ex th { text-align: left; font-size: 13px; font-weight: 700; color: var(--ink2); padding: 8px 0; }
.fee-ex td { padding: 12px 0; border-top: 1px solid var(--line); font-weight: 700; }
.fee-ex th:last-child, .fee-ex td:last-child { text-align: right; }
.fee-ex td:last-child { font-weight: 800; color: var(--purple); font-size: 19px; }
.fee-ex .more { margin-top: 16px; font-size: 15px; }

/* safety */
.safe { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.safe-card { background: var(--card); border-radius: 16px; padding: 24px; box-shadow: var(--shadow); }
.safe-card .tile { margin-bottom: 16px; }

/* what cannot be sold */
.banned { display: flex; flex-wrap: wrap; gap: 10px; }
.banned li { display: inline-flex; align-items: center; gap: 8px; background: var(--card); border: 1.5px solid var(--sand); border-radius: 999px; padding: 9px 16px 9px 12px; font-weight: 700; font-size: 15px; }
.banned .icon { width: 17px; height: 17px; color: var(--ink2); }

/* the last panel */
.soon { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 14px; }
.soon-text { background: var(--lav); border-radius: 32px; padding: 56px; color: var(--deep); display: flex; flex-direction: column; justify-content: center; }
.soon h2 { max-width: 12em; }
.soon p { margin-top: 12px; font-size: 19px; }
.soon .jelly { border-radius: 32px; display: flex; align-items: flex-end; }

/* ---- the foot of every page ---- */
.foot { margin-top: 96px; background: var(--card); border-top: 1px solid var(--sand); padding: 52px 0 40px; font-size: 15px; }
.foot-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) repeat(2, minmax(0, 1fr)); gap: 40px; }
.foot img { height: 46px; width: auto; }
.foot-line { margin-top: 10px; font-weight: 700; }
.foot-biz { margin-top: 14px; color: var(--ink2); line-height: 1.6; max-width: 30em; }
.foot h2 { font-size: 14px; letter-spacing: 0; color: var(--ink2); margin-bottom: 12px; }
.foot li { margin-top: 8px; }
.foot li a { color: var(--ink); text-decoration: none; font-weight: 700; }
.foot li a:hover { color: var(--purple); text-decoration: underline; }
.foot-end { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line); color: var(--ink2); font-size: 14px; }
.foot-end .langs { background: var(--page); }

/* ---- pages of rules: a purple title panel, a list of the parts, and the text on a white card ---- */
.doc-head { background: var(--purple); color: #FFFFFF; border-radius: 28px; padding: 48px 56px; margin-top: 8px; }
.doc-head h1 { font-size: clamp(32px, 4.4vw, 52px); max-width: 16em; }
.doc-head .updated { margin-top: 12px; font-size: 15px; font-weight: 700; }
.doc-head .intro { margin-top: 14px; font-size: 19px; line-height: 1.55; max-width: 38em; }
.doc { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 32px; align-items: start; margin-top: 24px; }
.toc { position: sticky; top: 20px; background: var(--card); border-radius: 16px; box-shadow: var(--shadow); padding: 20px 20px 16px; font-size: 15px; max-height: calc(100vh - 40px); overflow: auto; }
.toc.narrow { display: none; }
.toc summary, .toc p { font-weight: 700; font-size: 14px; color: var(--ink2); list-style: none; }
.toc summary::-webkit-details-marker { display: none; }
.toc li { margin-top: 10px; line-height: 1.35; }
.toc a { color: var(--ink); text-decoration: none; font-weight: 700; }
.toc a:hover { color: var(--purple); }
.text { background: var(--card); border-radius: 16px; box-shadow: var(--shadow); padding: 16px 48px 48px; }
.text section { padding-top: 32px; scroll-margin-top: 12px; }
.text h2 { font-size: 24px; }
.text p, .text li { margin-top: 14px; max-width: 42em; }
.text .numbered { counter-reset: n; }
.text .numbered li { counter-increment: n; position: relative; padding-left: 44px; min-height: 30px; }
.text .numbered li::before { content: counter(n); position: absolute; left: 0; top: -2px; width: 30px; height: 30px; border-radius: 999px; background: var(--purple); color: #FFFFFF; font-weight: 800; font-size: 15px; display: flex; align-items: center; justify-content: center; }
.text .ticks li { position: relative; padding-left: 30px; }
.text .ticks li::before { content: ''; position: absolute; left: 4px; top: 0.72em; width: 10px; height: 2.5px; border-radius: 2px; background: var(--purple); }
.who { margin-top: 40px; padding: 22px 24px; border-radius: 14px; background: var(--page); }
.who h2 { font-size: 18px; }
.who p { margin-top: 8px; font-size: 16px; }

/* the contact page */
.ways { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 24px; }
.way { background: var(--card); border-radius: 16px; box-shadow: var(--shadow); padding: 26px; }
.way.first { background: var(--tint); box-shadow: none; border: 1.5px solid var(--purple); }
.way .tile { margin-bottom: 16px; }
.way.first .tile { background: var(--purple); color: #FFFFFF; }
.way h2 { font-size: 21px; }
.way p { margin-top: 8px; color: var(--ink2); font-size: 16px; }
.way .big { color: var(--ink); font-weight: 700; font-size: 19px; overflow-wrap: anywhere; }
.way dl { margin-top: 6px; }
.way dt { margin-top: 12px; font-size: 14px; color: var(--ink2); font-weight: 700; }
.way dd { font-weight: 700; overflow-wrap: anywhere; }
.topics { margin-top: 56px; }
.topics h2 { font-size: 28px; margin-bottom: 18px; }
.topic { display: block; background: var(--card); border-radius: 14px; box-shadow: var(--shadow); padding: 20px 24px; margin-top: 10px; }
.topic h3 { font-size: 18px; }
.topic p { margin-top: 5px; color: var(--ink2); font-size: 16px; }
.topic .more { margin-top: 8px; font-size: 15px; }

/* a page that is not there */
.lost { text-align: center; padding: 96px 0 24px; }
.lost .jelly { width: 300px; margin: 0 auto 32px; }
.lost div + div { margin-top: 40px; }
.lost h1 { font-size: 40px; }
.lost p { margin: 12px 0 28px; color: var(--ink2); }

/* ---- narrower screens ---- */
@media (max-width: 1000px) {
  .what { grid-template-columns: 1fr; gap: 40px; justify-items: center; }
  .what .phone { order: 2; }
  .what > div { width: 100%; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fees { grid-template-columns: 1fr; }
  .safe { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .doc { grid-template-columns: 1fr; gap: 14px; }
  .toc.wide { display: none; }
  .toc.narrow { display: block; position: static; max-height: none; padding: 16px 20px; }
  .toc summary { cursor: pointer; display: flex; justify-content: space-between; align-items: center; }
  .toc summary::after { content: '+'; font-size: 20px; line-height: 1; color: var(--purple); }
  .toc[open] summary::after { content: '−'; }
}
@media (max-width: 720px) {
  body { font-size: 16px; }
  .wrap { padding: 0 16px; }
  .top { height: 64px; gap: 12px; }
  .brand img { height: 38px; }
  .links { display: none; }
  .langs { margin-left: auto; }
  .langs a { padding: 5px 10px; font-size: 13px; }
  .hero { border-radius: 0 0 28px 28px; }
  .hero-grid { grid-template-columns: 1fr; gap: 28px; padding: 16px 0 28px; }
  .jelly { border-radius: 28px; }
  .hero-sub { font-size: 17px; margin-top: 16px; }
  .hero-acts { margin-top: 24px; }
  .sec { padding-top: 64px; }
  .sec-head { margin-bottom: 24px; }
  .sec-sub { font-size: 17px; }
  .kind { padding: 18px; gap: 14px; }
  .panel { border-radius: 24px; padding: 40px 22px 32px; margin: 0 -4px; }
  .steps { grid-template-columns: 1fr; gap: 22px; margin-top: 30px; }
  .steps li { position: relative; padding-left: 50px; }
  .steps li::before { position: absolute; left: 0; top: -4px; margin: 0; }
  .promises { grid-template-columns: 1fr; margin-top: 32px; }
  .fee-list { padding: 4px 18px; }
  .fee-row { grid-template-columns: 1fr; }
  .fee-row .cost { text-align: left; }
  .fee-ex { padding: 20px 18px; }
  .safe { grid-template-columns: 1fr; }
  .safe-card { display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 4px 14px; padding: 18px; }
  .safe-card .tile { grid-row: 1 / 3; margin: 0; }
  .safe-card p { margin-top: 0; }
  .soon { grid-template-columns: 1fr; }
  .soon-text { border-radius: 24px; padding: 36px 22px; }
  .soon .jelly { border-radius: 24px; }
  .soon p { font-size: 17px; }
  .foot { margin-top: 64px; padding: 40px 0 32px; }
  .foot-grid { grid-template-columns: 1fr 1fr; gap: 32px 20px; }
  .foot-grid > :first-child { grid-column: 1 / -1; }
  .doc-head { border-radius: 22px; padding: 30px 22px; margin-top: 0; }
  .doc-head .intro { font-size: 17px; }
  .text { padding: 4px 20px 28px; }
  .text section { padding-top: 26px; }
  .text h2 { font-size: 21px; }
  .ways { grid-template-columns: 1fr; }
  .way { padding: 20px; }
  .topics { margin-top: 40px; }
  .topics h2 { font-size: 24px; }
}
@media (max-width: 380px) {
  .phone { width: 100%; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
@media print {
  .top .links, .langs, .toc.wide, .toc.narrow, .draft, .skip { display: none; }
  body { background: #FFFFFF; }
  .doc-head { background: none; color: var(--ink); padding: 0; }
  .text { box-shadow: none; padding: 0; }
  .doc { display: block; }
}
