/*
Theme Name: SafeTap Site
Theme URI: https://safetap.chronosystem.app/
Author: Chronosystem Co., Ltd.
Description: SafeTap public site: landing page in up to seven languages and long text pages.
Version: 1.0.18
Requires at least: 6.6
Tested up to: 6.9
Requires PHP: 8.3
Text Domain: safetap-site
*/

/* Inter (SIL OFL 1.1), served from this theme. See THIRD-PARTY.md. */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("assets/fonts/inter-latin-wght-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("assets/fonts/inter-latin-ext-wght-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ---------- Tokens: light by default, dark from the system or the toggle ---------- */
:root {
  color-scheme: light;
  --bg: #ffffff;
  --fg: #0b0d0e;
  --muted: #596066;
  --line: #e2e5e7;
  --card: #f4f6f6;
  --accent: #c8106a;
  --on-accent: #ffffff;
  --glass: rgba(255, 255, 255, 0.72);
  --pink: #f2149a;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", "PingFang SC", "PingFang TC", "Microsoft YaHei", "Noto Sans Arabic", "Geeza Pro", sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --max: 1200px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #050607;
    --fg: #f2f4f5;
    --muted: #a2aaaf;
    --line: #23282b;
    --card: #0f1213;
    --accent: #ff8ac8;
    --on-accent: #2a0418;
    --glass: rgba(5, 6, 7, 0.66);
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #050607;
  --fg: #f2f4f5;
  --muted: #a2aaaf;
  --line: #23282b;
  --card: #0f1213;
  --accent: #ff8ac8;
  --on-accent: #2a0418;
  --glass: rgba(5, 6, 7, 0.66);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
a { color: var(--accent); }
a:hover { color: var(--fg); }
button { font: inherit; color: inherit; }
img, svg, canvas { display: block; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 8px; }
.st-visually-hidden {
  position: absolute !important;
  inline-size: 1px; block-size: 1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}
.st-skip {
  position: absolute; inset-inline-start: 16px; inset-block-start: -60px; z-index: 50;
  padding: 10px 16px; border-radius: 999px; background: var(--fg); color: var(--bg); text-decoration: none;
}
.st-skip:focus { inset-block-start: 12px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* ---------- Type ---------- */
.st-display {
  margin: 0;
  font-size: clamp(42px, 7.2vw, 104px);
  line-height: 0.98;
  font-weight: 800;
  letter-spacing: -0.045em;
}
.st-display--md { font-size: clamp(34px, 5vw, 72px); line-height: 1.02; letter-spacing: -0.04em; }
.st-h2 { margin: 0; font-size: clamp(32px, 4vw, 56px); line-height: 1.04; font-weight: 800; letter-spacing: -0.035em; }
.st-lead { margin: 20px auto 0; max-inline-size: 620px; font-size: clamp(17px, 1.6vw, 21px); line-height: 1.45; color: var(--muted); }
.st-body { margin: 20px 0 0; font-size: 18px; line-height: 1.55; color: var(--muted); }
.st-eyebrow, .st-kicker { margin: 0 0 12px; font-size: 15px; font-weight: 600; color: var(--accent); letter-spacing: 0.02em; }
.st-kicker--on-dark { color: #ff8ac8; }
/* CJK and Arabic: no negative tracking, a little more leading. */
:lang(ja) .st-display, :lang(zh) .st-display, :lang(ar) .st-display,
:lang(ja) .st-h2, :lang(zh) .st-h2, :lang(ar) .st-h2 { letter-spacing: 0; line-height: 1.18; }
:lang(ja) .st-display, :lang(zh) .st-display { font-size: clamp(34px, 5.6vw, 84px); }

/* ---------- Buttons ---------- */
.st-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-block-start: 30px; }
.st-pill {
  display: inline-flex; align-items: center; justify-content: center;
  min-block-size: 36px; padding-inline: 16px; border-radius: 999px;
  font-size: 14px; font-weight: 600; text-decoration: none; white-space: nowrap;
}
.st-pill--lg { min-block-size: 48px; padding-inline: 24px; font-size: 16px; }
.st-pill--ink { background: var(--fg); color: var(--bg); }
.st-pill--ink:hover { color: var(--bg); opacity: 0.85; }
.st-pill--accent { background: var(--accent); color: var(--on-accent); }
.st-pill--accent:hover { color: var(--on-accent); opacity: 0.88; }
.st-pill--line { border: 1px solid var(--line); color: var(--fg); }
.st-pill--line:hover { border-color: var(--fg); }
.st-icon-button {
  display: grid; place-items: center; min-inline-size: 44px; min-block-size: 44px;
  background: none; border: 0; cursor: pointer; color: inherit;
}

/* ---------- Language hint ---------- */
.st-hint {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 4px 12px;
  padding: 6px 16px; background: var(--card); border-block-end: 1px solid var(--line); font-size: 14px;
}
.st-hint[hidden] { display: none; }
.st-hint a { font-weight: 600; text-decoration: none; }

/* ---------- Header ---------- */
.st-header {
  position: sticky; inset-block-start: 0; z-index: 20;
  background: var(--glass);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  backdrop-filter: saturate(180%) blur(18px);
  border-block-end: 1px solid var(--line);
}
.st-header__inner {
  max-inline-size: var(--max); margin: 0 auto; padding-inline: 16px;
  block-size: 56px; display: flex; align-items: center; gap: 24px;
}
.st-brand { display: flex; align-items: center; gap: 10px; color: var(--fg); text-decoration: none; font-weight: 700; font-size: 17px; letter-spacing: -0.01em; }
.st-brand:hover { color: var(--fg); }
.st-header__links { display: flex; gap: 24px; font-size: 14px; }
.st-header__links a { color: var(--muted); text-decoration: none; }
.st-header__links a:hover { color: var(--fg); }
.st-header__tools { margin-inline-start: auto; display: flex; align-items: center; gap: 4px; }
.st-header__tools .st-pill { margin-inline-start: 6px; }
@media (max-width: 760px) {
  .st-header__links { display: none; }
  .st-header__tools .st-pill { display: none; }
}
.st-lang { position: relative; }
.st-lang__button {
  min-block-size: 44px; padding-inline: 10px; background: none; border: 0; cursor: pointer;
  display: flex; align-items: center; gap: 6px; font-size: 14px;
}
.st-lang__menu {
  position: absolute; inset-inline-end: 0; inset-block-start: 48px; margin: 0; padding: 6px; list-style: none;
  min-inline-size: 200px; background: var(--bg); border: 1px solid var(--line); border-radius: 14px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.18);
}
.st-lang__menu[hidden] { display: none; }
.st-lang__menu a { display: block; padding: 10px 12px; border-radius: 10px; color: var(--fg); text-decoration: none; font-size: 14px; }
.st-lang__menu a:hover { background: var(--card); }
.st-lang__menu a[aria-current="true"] { background: var(--card); font-weight: 600; }

/* ---------- Hero ---------- */
.st-hero { position: relative; block-size: 260vh; }
.st-hero__stage { position: sticky; inset-block-start: 0; block-size: 100vh; block-size: 100svh; overflow: hidden; }
.st-hero__canvas { position: absolute; inset: 0; inline-size: 100%; block-size: 100%; }
.st-hero__copy, .st-hero__next {
  position: absolute; inset-inline: 0; padding-inline: 16px; text-align: center; pointer-events: none;
}
.st-hero__copy { inset-block: 0; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; padding-block-end: 12vh; }
.st-hero__copy .st-actions { pointer-events: auto; }
.st-hero__next { inset-block-end: 10vh; opacity: 0; }
.st-hero__cue {
  position: absolute; left: 50%; inset-block-end: 28px; transform: translateX(-50%);
  font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted);
}
@media (max-width: 760px) { .st-hero__cue { display: none; } }
/* Without the script (or with reduced motion) the hero is a normal block. */
.st-lp:not(.is-animated) .st-hero { block-size: auto; }
.st-lp:not(.is-animated) .st-hero__stage { position: relative; block-size: auto; padding-block: 120px 80px; display: grid; gap: 64px; }
.st-lp:not(.is-animated) .st-hero__canvas { display: none; }
.st-lp:not(.is-animated) .st-hero__copy,
.st-lp:not(.is-animated) .st-hero__next { position: relative; inset: auto; padding-block-end: 0; opacity: 1; }
.st-lp:not(.is-animated) .st-hero__cue { display: none; }

/* ---------- How it works ---------- */
.st-how { position: relative; block-size: 330vh; border-block-start: 1px solid var(--line); }
.st-how__stage {
  position: sticky; inset-block-start: 56px; min-block-size: calc(100vh - 56px);
  max-inline-size: var(--max); margin: 0 auto; padding: 48px 16px;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 48px 80px;
}
.st-lp:not(.is-animated) .st-how { block-size: auto; }
.st-lp:not(.is-animated) .st-how__stage { position: relative; inset-block-start: auto; }
.st-how__text { flex: 1 1 420px; max-inline-size: 520px; }
.st-how__text .st-h2 { margin-block-end: 36px; }
.st-steps { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 26px; }
.st-step { opacity: 0.32; transition: opacity 0.4s; }
.st-step.is-active, .st-lp:not(.is-animated) .st-step { opacity: 1; }
.st-step h3 { margin: 0 0 6px; font-size: 22px; font-weight: 700; letter-spacing: -0.015em; }
.st-step p { margin: 0; font-size: 17px; line-height: 1.5; color: var(--muted); }

.st-phone {
  flex: 0 0 auto; inline-size: 300px; block-size: 620px; border-radius: 52px; padding: 12px;
  background: var(--fg); box-shadow: 0 40px 90px rgba(0, 0, 0, 0.22);
}
.st-phone__screen { position: relative; inline-size: 100%; block-size: 100%; border-radius: 41px; overflow: hidden; background: var(--bg); color: var(--fg); }
.st-phone__island { position: absolute; inset-block-start: 10px; left: 50%; transform: translateX(-50%); inline-size: 96px; block-size: 28px; border-radius: 20px; background: var(--fg); z-index: 1; }
.st-screen { block-size: 100%; padding: 60px 18px 18px; display: flex; flex-direction: column; gap: 10px; }
.st-screen[hidden] { display: none; }
.st-screen__title { font-size: 26px; font-weight: 800; letter-spacing: -0.02em; margin-block-end: 6px; }
.st-person { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 16px; background: var(--card); }
.st-person__avatar { inline-size: 38px; block-size: 38px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: 15px; background: var(--line); }
.st-person__text { flex: 1; min-inline-size: 0; display: flex; flex-direction: column; }
.st-person__text strong { font-size: 15px; }
.st-person__text small { font-size: 12px; color: var(--muted); }
.st-toggle { inline-size: 44px; block-size: 26px; border-radius: 13px; padding: 3px; display: flex; justify-content: flex-start; background: var(--line); }
.st-toggle.is-on { justify-content: flex-end; background: var(--accent); }
.st-toggle span { inline-size: 20px; block-size: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3); }
.st-screen--center { align-items: center; text-align: center; padding-block-end: 28px; }
.st-screen--center .st-screen__title { align-self: flex-start; }
.st-orb-wrap { position: relative; flex: 1; display: grid; place-items: center; }
/* The app's check-in button (iOS WidgetHeartOrb): a white glass ring, a pink core at 0.86 of its size,
   and a large white heart, with a pink glow, a light from the top left and a reflection on the floor. */
.st-orb-wrap::before {
  content: ""; position: absolute; left: 50%; top: calc(50% + 89px); inline-size: 163px; block-size: 34px;
  transform: translateX(-50%); border-radius: 50%; filter: blur(13px);
  background: radial-gradient(closest-side, rgba(255, 194, 219, 0.45), rgba(252, 143, 196, 0.14) 60%, transparent);
}
.st-orb {
  position: relative; inline-size: 190px; block-size: 190px; border-radius: 50%;
  background: linear-gradient(135deg, #ffffff, rgb(226, 236, 236) 50%, rgb(250, 252, 252));
  box-shadow: inset 0 0 0 1.7px rgba(255, 255, 255, 0.96), -7px -7px 17px rgba(255, 255, 255, 0.3),
    0 15px 25px rgba(186, 23, 79, 0.36), 0 0 44px 14px rgba(250, 122, 186, 0.2), 0 0 70px 26px rgba(255, 236, 246, 0.1);
}
.st-orb::before {
  content: ""; position: absolute; inset: 5px; border-radius: 50%; border: 2.5px solid;
  border-color: rgba(255, 255, 255, 0.9) rgba(214, 235, 235, 0.3) rgba(255, 255, 255, 0.2) rgba(255, 255, 255, 0.85);
}
.st-orb__core {
  position: absolute; inset: 7%; border-radius: 50%;
  background:
    radial-gradient(circle at 36% 22%, rgba(255, 255, 255, 0.42), rgba(255, 255, 255, 0.08) 15%, transparent 26%),
    radial-gradient(circle at 50% 0%, rgba(255, 214, 237, 0.84), rgba(247, 48, 155, 0.36) 45%, transparent 62%),
    linear-gradient(180deg, rgb(242, 20, 148), rgb(227, 13, 122) 50%, rgb(189, 26, 61));
  box-shadow: inset 1.5px 1.5px 0 rgba(255, 255, 255, 0.55), inset 0 0 0 1px rgba(255, 255, 255, 0.12), 0 16px 27px rgba(186, 23, 79, 0.36);
}
.st-orb__heart {
  position: absolute; left: 50%; top: 50%; inline-size: 112px; block-size: 90px;
  transform: translate(-50%, -46%); filter: drop-shadow(0 3px 8px rgba(179, 26, 71, 0.18));
}
.st-screen__status { font-size: 14px; }
.st-screen__sub { font-size: 12px; color: var(--muted); }
.st-screen--map { padding: 0; gap: 0; }
.st-map { position: relative; flex: 1; background: var(--card); color: var(--line); overflow: hidden; }
.st-map svg { inline-size: 100%; block-size: 100%; }
.st-map__halo, .st-map__pin { position: absolute; left: 50%; inset-block-start: 52%; transform: translate(-50%, -50%); border-radius: 50%; background: var(--accent); }
.st-map__halo { inline-size: 120px; block-size: 120px; opacity: 0.16; }
.st-map__pin { inline-size: 22px; block-size: 22px; border: 4px solid var(--bg); }
.st-alert { padding: 16px 18px 26px; background: var(--bg); display: flex; flex-direction: column; gap: 4px; }
.st-alert__label { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; color: var(--accent); text-transform: uppercase; letter-spacing: 0.06em; }
.st-alert strong { font-size: 17px; }
.st-alert small { font-size: 12px; color: var(--muted); }
/* Phones: while the section is pinned, show only the current step and a smaller phone, so both fit on screen. */
@media (max-width: 760px) {
  .st-lp.is-animated .st-how__stage { padding-block: 20px; gap: 16px; align-content: center; }
  .st-lp.is-animated .st-how__text .st-h2 { margin-block-end: 14px; font-size: 30px; }
  .st-lp.is-animated .st-step:not(.is-active) { display: none; }
  .st-lp.is-animated .st-step h3 { font-size: 19px; }
  .st-lp.is-animated .st-step p { font-size: 15px; }
  .st-lp.is-animated .st-phone { zoom: 0.6; }
}

/* ---------- Check-in ---------- */
.st-checkin { border-block-start: 1px solid var(--line); }
.st-checkin__inner {
  max-inline-size: var(--max); margin: 0 auto; padding: 120px 16px;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 40px 80px;
}
.st-checkin__text { flex: 1 1 380px; max-inline-size: 500px; }
.st-card { border-radius: 28px; background: var(--card); }
.st-checkin__status { margin-block-start: 28px; padding: 18px 20px; border-radius: 18px; }
.st-checkin__status p { margin: 0; font-size: 16px; font-weight: 600; }
.st-checkin__status small { display: block; margin-block-start: 8px; font-size: 13px; color: var(--muted); }
.st-bar { margin-block-start: 12px; block-size: 6px; border-radius: 3px; background: var(--line); overflow: hidden; }
.st-bar span { display: block; block-size: 100%; border-radius: 3px; background: var(--accent); transition: width 0.3s, background-color 0.3s; }
.st-bar.is-faded span { background: var(--muted); }
.st-checkin__stage { position: relative; flex: 0 1 460px; inline-size: 460px; max-inline-size: 100%; aspect-ratio: 1 / 1; }
.st-checkin__stage canvas { position: absolute; inset: 0; inline-size: 100%; block-size: 100%; }
.st-checkin__button { position: absolute; inset: 20%; border-radius: 50%; border: 0; background: transparent; cursor: pointer; }
.st-ripple { position: absolute; inset: 14%; border-radius: 50%; border: 3px solid var(--pink); opacity: 0; pointer-events: none; }
.st-ripple.is-on { animation: st-ripple 0.9s ease-out forwards; }
.st-ripple--late { border-width: 2px; }
.st-ripple--late.is-on { animation-delay: 0.18s; }
@keyframes st-ripple { 0% { transform: scale(0.7); opacity: 0.6; } 100% { transform: scale(1.45); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .st-ripple.is-on { animation: none; } }
.st-lp:not(.is-animated) .st-checkin__stage { display: none; }
/* Pinned like the other story sections; scrolling through it plays a check-in. */
.st-lp.is-animated .st-checkin { position: relative; block-size: 200vh; }
/* Room for two lines, so the block does not jump when the status text changes while pinned. */
.st-lp.is-animated .st-checkin__status p { min-block-size: 3em; }
.st-lp.is-animated .st-checkin__inner {
  position: sticky; inset-block-start: 56px;
  min-block-size: calc(100vh - 56px); min-block-size: calc(100svh - 56px);
  padding-block: 40px; align-content: center;
}
/* Phones: text and heart are stacked, so shrink both until the pinned block fits one screen. */
@media (max-width: 760px) {
  .st-lp.is-animated .st-checkin__inner { padding-block: 16px; gap: 8px; }
  .st-lp.is-animated .st-checkin__text { flex-basis: 100%; }
  .st-lp.is-animated .st-checkin .st-h2 { font-size: 30px; }
  .st-lp.is-animated .st-checkin .st-body { margin-block-start: 10px; font-size: 15px; }
  .st-lp.is-animated .st-checkin__status { margin-block-start: 14px; padding: 12px 16px; }
  .st-lp.is-animated .st-checkin__stage { flex: 0 0 auto; inline-size: min(100%, 38vh); inline-size: min(100%, 38svh); }
}

/* ---------- Privacy (always dark) ---------- */
.st-privacy { position: relative; block-size: 230vh; background: #050607; color: #f2f4f5; }
.st-privacy__stage {
  position: sticky; inset-block-start: 56px; min-block-size: calc(100vh - 56px);
  max-inline-size: 1100px; margin: 0 auto; padding: 64px 16px;
  display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; gap: 28px;
}
.st-lp:not(.is-animated) .st-privacy { block-size: auto; }
.st-lp:not(.is-animated) .st-privacy__stage { position: relative; inset-block-start: auto; }
.st-privacy .st-kicker { margin: 0; }
.st-cipher { inline-size: 100%; max-inline-size: 720px; margin-block-start: 12px; padding: 28px; border-radius: 28px; background: #0f1213; border: 1px solid #23282b; text-align: start; }
.st-cipher__head { display: flex; justify-content: space-between; align-items: center; gap: 12px; font-size: 13px; color: #a2aaaf; }
.st-cipher__label { display: flex; align-items: center; gap: 8px; }
.st-cipher__pct { font-variant-numeric: tabular-nums; }
.st-cipher__text { margin: 18px 0 0; font-family: var(--mono); font-size: clamp(18px, 2.3vw, 28px); line-height: 1.35; word-break: break-all; color: #f2f4f5; }
.st-cipher__text.is-done { color: #ff8ac8; }
.st-bar--dark { margin-block-start: 20px; block-size: 4px; background: #23282b; }
.st-bar--dark span { background: #ff8ac8; transition: none; }
.st-privacy__body { margin: 8px 0 0; max-inline-size: 620px; font-size: clamp(16px, 1.4vw, 19px); line-height: 1.55; color: #a2aaaf; }

/* ---------- Highlights, FAQ, download ---------- */
.st-section { max-inline-size: var(--max); margin: 0 auto; padding: 120px 16px 40px; }
.st-section--narrow { max-inline-size: 860px; padding-block: 100px; }
.st-section > .st-h2 { margin-block-end: 36px; }
.st-highlights { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.st-highlight { padding: 30px; min-block-size: 240px; display: flex; flex-direction: column; gap: 12px; }
.st-highlight__big { font-size: 44px; font-weight: 800; letter-spacing: -0.04em; color: var(--accent); }
.st-highlight h3 { margin: 0; font-size: 21px; font-weight: 700; }
.st-highlight p { margin: 0; font-size: 16px; line-height: 1.5; color: var(--muted); }
.st-faq { border-block-start: 1px solid var(--line); padding-block: 4px; }
.st-faq summary { min-block-size: 64px; display: flex; align-items: center; justify-content: space-between; gap: 16px; font-size: 19px; font-weight: 600; cursor: pointer; list-style: none; }
.st-faq summary::-webkit-details-marker { display: none; }
.st-faq__plus { flex: none; transition: transform 0.25s; }
.st-faq[open] .st-faq__plus { transform: rotate(45deg); }
.st-faq p { margin: 0 0 20px; font-size: 17px; line-height: 1.55; color: var(--muted); }
.st-get { padding: 40px 16px 120px; }
.st-get__card { max-inline-size: var(--max); margin: 0 auto; padding: clamp(48px, 7vw, 96px) 24px; border-radius: 40px; background: var(--card); text-align: center; }
.st-store {
  display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  min-block-size: 56px; min-inline-size: 190px; padding-inline: 22px; border-radius: 14px;
  background: var(--fg); color: var(--bg); text-decoration: none; font-weight: 600;
}
.st-store:hover { color: var(--bg); opacity: 0.88; }
.st-store--pending { background: transparent; color: var(--muted); border: 1px dashed var(--line); }
.st-store small { font-size: 12px; font-weight: 500; }

/* ---------- Text pages ---------- */
.st-doc { max-inline-size: var(--max); margin: 0 auto; padding: 72px 16px 120px; }
.st-doc__layout { display: flex; flex-wrap: wrap; gap: 32px 64px; align-items: flex-start; }
.st-doc__toc { flex: 1 1 240px; max-inline-size: 280px; position: sticky; inset-block-start: 80px; max-block-size: calc(100vh - 100px); overflow: auto; font-size: 14px; }
.st-doc__toc ol { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 2px; }
.st-doc__toc a { display: block; padding: 6px 10px; border-radius: 8px; color: var(--muted); text-decoration: none; }
.st-doc__toc a:hover { background: var(--card); color: var(--fg); }
.st-doc__body { flex: 999 1 560px; min-inline-size: 0; max-inline-size: 760px; }
.st-doc__body--center { margin: 0 auto; text-align: center; }
.st-doc__body > .st-h2 { margin-block-end: 32px; }
@media (max-width: 900px) {
  .st-doc__toc { position: static; max-inline-size: none; max-block-size: none; flex-basis: 100%; padding: 16px; border-radius: 16px; background: var(--card); }
}
.st-prose { font-size: 17px; line-height: 1.8; }
.st-prose h2 { margin: 48px 0 12px; font-size: 22px; line-height: 1.35; font-weight: 700; scroll-margin-block-start: 80px; }
.st-prose h3 { margin: 32px 0 8px; font-size: 18px; font-weight: 700; }
.st-prose p { margin: 0 0 16px; }
.st-prose ol, .st-prose ul { margin: 0 0 16px; padding-inline-start: 1.6em; }
.st-prose li { margin-block: 6px; }
.st-prose li > ol, .st-prose li > ul { margin-block: 6px 0; }

/* ---------- Footer ---------- */
.st-footer { border-block-start: 1px solid var(--line); }
.st-footer__inner {
  max-inline-size: var(--max); margin: 0 auto; padding: 28px 16px 40px;
  display: flex; flex-wrap: wrap; gap: 12px 28px; align-items: center; font-size: 13px; color: var(--muted);
}
.st-footer__inner a { color: var(--muted); }
.st-footer__inner a:hover { color: var(--fg); }
