/* pikonet.io — Ember look of the Piko app (docs/DESIGN.md §2). Dark only. No external resources. */

:root {
  --bg-top: #120d0a;
  --bg-bottom: #1d1510;
  --card: #251b14;
  --card-2: #2b2018;
  --border: #3a2a1e;
  --pressed: #30241a;
  --track-off: #33251a;
  --text: #ffffff;
  --body: #efe5dc;
  --caption: #c2aa97;
  --label: #aa9381;
  --accent: #ff8f3d;
  --on-accent: #2a1405;
  --sand: #f0d2a0;
  --positive: #7fd69b;
  --warning: #e9c25c;
  --danger: #ff6174;
  --radius: 20px;
  --radius-sm: 14px;
  --gutter: 16px;
  --maxw: 1160px;
  --header-h: 64px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, "Roboto Mono", "Liberation Mono", monospace;
  --lh: 1.6;
  color-scheme: dark;
}

[lang]:lang(fa), [lang]:lang(zh) { font-family: var(--font); }

:lang(fa) {
  --font: system-ui, -apple-system, "Segoe UI", Tahoma, "Noto Sans Arabic", "Noto Naskh Arabic", "Geeza Pro", sans-serif;
  --lh: 1.9;
}

:lang(zh) {
  --font: system-ui, -apple-system, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC",
    "Source Han Sans SC", "Noto Sans SC", sans-serif;
  --lh: 1.8;
}

@media (min-width: 600px) { :root { --gutter: 24px; } }
@media (min-width: 1024px) { :root { --gutter: 32px; } }

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

html {
  background: var(--bg-top);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: var(--lh);
  color: var(--body);
  background:
    radial-gradient(ellipse 80% 520px at 50% -80px, rgba(255, 143, 61, 0.11), rgba(255, 143, 61, 0) 70%),
    linear-gradient(180deg, var(--bg-top) 0, var(--bg-bottom) 1400px, var(--bg-bottom) 100%);
  overflow-wrap: break-word;
}

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

a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { color: #ffad70; }

:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
main:focus { outline: none; }

h1, h2, h3, h4 { color: var(--text); line-height: 1.2; margin: 0; font-weight: 700; letter-spacing: -0.01em; }
:lang(fa) h1, :lang(fa) h2, :lang(fa) h3, :lang(zh) h1, :lang(zh) h2, :lang(zh) h3 { letter-spacing: 0; line-height: 1.4; }
:lang(zh) h1, :lang(zh) h2, :lang(zh) h3, :lang(zh) .faq > summary { word-break: keep-all; overflow-wrap: anywhere; }
p { margin: 0; }
code { font-family: var(--mono); font-size: 0.88em; }

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

.ltr { direction: ltr; unicode-bidi: isolate; }
[dir="rtl"] .flip-rtl { transform: scaleX(-1); }

.skip {
  position: absolute; inset-inline-start: 12px; top: -80px; z-index: 100;
  background: var(--accent); color: var(--on-accent); font-weight: 700;
  padding: 10px 16px; border-radius: 12px; text-decoration: none;
}
.skip:focus { top: 12px; }

.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }

.ic {
  width: 24px; height: 24px; flex: none; fill: none; stroke: currentColor;
  stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
}
.ic--sm { width: 18px; height: 18px; }

.mark { width: 22px; height: 30px; color: var(--accent); flex: none; }

/* ---------- buttons ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 10px 20px; border-radius: var(--radius-sm);
  font: inherit; font-weight: 650; line-height: 1.2; text-decoration: none; text-align: center;
  border: 1px solid transparent; cursor: pointer;
}
.btn--primary { background: var(--accent); color: var(--on-accent); }
.btn--primary:hover { background: #ffa05a; color: var(--on-accent); }
.btn--ghost { background: var(--card); color: var(--text); border-color: var(--border); }
.btn--ghost:hover { background: var(--pressed); color: var(--text); }
.btn--sm { min-height: 40px; padding: 8px 14px; font-size: 0.9375rem; border-radius: 12px; }

.link-arrow { display: inline-flex; align-items: center; gap: 6px; font-weight: 650; text-decoration: none; }
.link-arrow:hover { text-decoration: underline; }

.eyebrow {
  margin: 0 0 12px; color: var(--label); font-size: 0.8125rem; font-weight: 650;
  text-transform: uppercase; letter-spacing: 0.12em;
}
:lang(fa) .eyebrow, :lang(zh) .eyebrow { letter-spacing: 0; font-size: 0.875rem; }
.eyebrow--pill {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px;
  background: rgba(255, 143, 61, 0.1); border: 1px solid rgba(255, 143, 61, 0.28); color: var(--sand);
  letter-spacing: 0.06em;
}
.eyebrow--pill::before {
  content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--accent);
  box-shadow: 0 0 0 3px rgba(255, 143, 61, 0.2);
}

.card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0) 90px), var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.tag {
  display: inline-block; margin-inline-start: 8px; padding: 1px 8px; border-radius: 999px;
  border: 1px solid var(--border); background: var(--bg-top); color: var(--caption);
  font-size: 0.75rem; font-weight: 600; letter-spacing: 0.02em; vertical-align: 0.15em; line-height: 1.6;
}

/* ---------- header ---------- */

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(18, 13, 10, 0.86);
  border-bottom: 1px solid rgba(58, 42, 30, 0.7);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  backdrop-filter: saturate(140%) blur(14px);
}
.site-header__in { display: flex; align-items: center; gap: 16px; min-height: var(--header-h); }

.brand {
  display: inline-flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none;
  font-weight: 750; font-size: 1.25rem; letter-spacing: 0.01em; min-height: 44px;
}
.brand:hover { color: var(--text); }
.brand__name { font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }

.nav { display: none; margin-inline-start: 12px; }
.nav__list { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav__link {
  display: inline-flex; align-items: center; min-height: 40px; padding: 6px 12px; border-radius: 10px;
  color: var(--caption); text-decoration: none; font-weight: 550; font-size: 0.9688rem;
}
.nav__link:hover, .nav__link[aria-current="page"] { color: var(--text); background: rgba(255, 255, 255, 0.05); }

.site-header__actions { display: flex; align-items: center; gap: 8px; margin-inline-start: auto; }
.header-cta { display: none; }

.dd { position: relative; }
.dd > summary { list-style: none; }
.dd > summary::-webkit-details-marker { display: none; }
.dd__btn {
  display: inline-flex; align-items: center; gap: 6px; min-height: 40px; min-width: 40px; padding: 6px 10px;
  border-radius: 12px; border: 1px solid var(--border); background: rgba(37, 27, 20, 0.7);
  color: var(--caption); cursor: pointer; font-size: 0.9375rem; font-weight: 550; user-select: none;
}
.dd__btn:hover, .dd[open] > .dd__btn { color: var(--text); background: var(--pressed); }
.dd[open] > .dd__btn .ic--sm { transform: rotate(180deg); }
.dd__panel {
  position: absolute; inset-inline-end: 0; top: calc(100% + 8px); z-index: 60;
  min-width: 200px; margin: 0; padding: 8px; list-style: none;
  background: var(--card); border: 1px solid var(--border); border-radius: 16px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
}
.lang__cur { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.lang__list a {
  display: flex; align-items: center; min-height: 44px; padding: 8px 12px; border-radius: 10px;
  color: var(--body); text-decoration: none;
}
.lang__list a:hover { background: var(--pressed); color: var(--text); }
.lang__list a[aria-current="true"] { color: var(--accent); font-weight: 650; }
.lang__list a[aria-current="true"]::after { content: "✓"; margin-inline-start: auto; }

.menu__panel { width: min(320px, calc(100vw - 2 * var(--gutter))); padding: 10px; }
.menu__list { list-style: none; margin: 0 0 8px; padding: 0; }
.menu__link {
  display: flex; align-items: center; min-height: 48px; padding: 8px 12px; border-radius: 10px;
  color: var(--text); text-decoration: none; font-weight: 600;
}
.menu__link:hover, .menu__link[aria-current="page"] { background: var(--pressed); }
.menu__cta { width: 100%; }

@media (min-width: 480px) { .lang__cur { position: static; width: auto; height: auto; overflow: visible; clip: auto; } }
@media (min-width: 900px) {
  .nav { display: block; }
  .menu { display: none; }
  .header-cta { display: inline-flex; }
}

/* ---------- hero ---------- */

.hero { padding: 40px 0 24px; overflow: hidden; }
.hero__in { display: grid; gap: 48px; align-items: center; }
.hero__copy { max-width: 620px; }
.hero__title {
  font-size: clamp(2.25rem, 1.55rem + 3.2vw, 3.9rem); line-height: 1.06; letter-spacing: -0.025em;
  margin-bottom: 20px; text-wrap: balance;
}
:lang(fa) .hero__title, :lang(zh) .hero__title { line-height: 1.3; letter-spacing: 0; }
.hero__lead { font-size: 1.1875rem; color: var(--body); max-width: 560px; margin-bottom: 28px; }
.hero__note {
  margin-top: 24px; color: var(--caption); font-size: 0.9375rem; max-width: 520px;
  padding-inline-start: 14px; border-inline-start: 2px solid rgba(255, 143, 61, 0.55);
}
.hero__art { display: flex; justify-content: center; }

@media (min-width: 960px) {
  .hero { padding: 72px 0 40px; }
  .hero__in { grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: 56px; }
}

/* ---------- store buttons ---------- */

.stores { display: flex; flex-wrap: wrap; gap: 12px; }
.stores--center { justify-content: center; }
.store {
  display: inline-flex; align-items: center; gap: 12px; min-height: 60px; min-width: 196px; padding: 10px 18px;
  border-radius: 16px; background: var(--text); color: #120d0a; text-decoration: none;
  border: 1px solid transparent;
}
.store:hover { background: #ffe9d8; color: #120d0a; }
.store--soon { background: var(--card); color: var(--text); border-color: var(--border); cursor: default; }
.store__ic { width: 26px; height: 26px; }
.store--soon .store__ic { color: var(--caption); }
.store__txt { display: flex; flex-direction: column; line-height: 1.2; text-align: start; }
.store__sub { font-size: 0.75rem; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; opacity: 0.8; }
.store--soon .store__sub { color: var(--sand); opacity: 1; }
.store__name { font-size: 1.125rem; font-weight: 700; }

/* ---------- phone mock (the app's Home, DESIGN §6.20 V5) ---------- */

.phone { margin: 0; width: min(100%, 320px); position: relative; }
.phone::before {
  content: ""; position: absolute; inset: 8% -18% 12%; z-index: -1;
  background: radial-gradient(closest-side, rgba(255, 143, 61, 0.2), rgba(255, 143, 61, 0));
}
.phone__frame {
  position: relative; padding: 10px; border-radius: 46px; background: #0a0705;
  border: 1px solid #4a3627;
  box-shadow: 0 0 0 1px #000 inset, 0 30px 80px rgba(0, 0, 0, 0.55), 0 0 0 6px rgba(255, 255, 255, 0.02);
}
.phone__screen {
  position: relative; overflow: hidden; border-radius: 36px; aspect-ratio: 9 / 19.2;
  padding: 10px 14px 0;
  background:
    radial-gradient(ellipse 90% 34% at 50% 14%, rgba(255, 143, 61, 0.09), rgba(255, 143, 61, 0) 70%),
    linear-gradient(180deg, var(--bg-top), var(--bg-bottom));
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--text); font-size: 12px; line-height: 1.3;
}
:lang(fa) .phone__screen { font-family: var(--font); }
:lang(zh) .phone__screen { font-family: var(--font); }
.phone--shot { width: min(100%, 320px); }
.phone__shot { border-radius: 36px; border: 10px solid #0a0705; }

.m-status { display: flex; justify-content: space-between; align-items: center; height: 20px; padding: 0 8px; font-size: 11px; font-weight: 600; direction: ltr; }
.m-status__icons { display: flex; gap: 5px; align-items: center; }
.m-status__icons i { display: block; background: #fff; border-radius: 2px; }
.m-key { width: 10px; height: 5px; border-radius: 3px !important; opacity: 0.9; }
.m-sig { width: 11px; height: 9px; clip-path: polygon(100% 0, 100% 100%, 0 100%); }
.m-bat { width: 7px; height: 11px; }

.m-top { display: flex; align-items: center; justify-content: space-between; margin-top: 8px; }
.m-sq {
  display: grid; place-items: center; width: 34px; height: 34px; border-radius: 11px;
  background: rgba(37, 27, 20, 0.7); border: 1px solid var(--border); color: var(--text);
}
.m-sq .ic { width: 17px; height: 17px; stroke-width: 2; }
.m-top__brand { display: flex; align-items: center; gap: 6px; font-size: 15px; }
.m-top__mark { width: 13px; height: 18px; }

.m-hero { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 8px; margin: 14px 0 12px; }
.m-wing { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.m-wing--status { align-items: flex-end; }
.m-place { display: flex; align-items: center; gap: 5px; font-size: 12.5px; white-space: nowrap; }
.m-place b { overflow: hidden; text-overflow: ellipsis; }
.m-ip { font-family: var(--mono); font-size: 9.5px; color: var(--caption); direction: ltr; unicode-bidi: isolate; white-space: nowrap; }
[dir="rtl"] .m-ip { text-align: right; }
.m-capsule {
  position: relative; width: 62px; height: 116px; border-radius: 31px; background: var(--accent);
  box-shadow: 0 0 0 6px rgba(255, 143, 61, 0.12), 0 0 34px 6px rgba(255, 143, 61, 0.38);
}
.m-knob {
  position: absolute; left: 7px; top: 7px; width: 48px; height: 48px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #fff 0, #fff 45%, #ece6e1 100%);
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.35);
}
.m-pill {
  display: inline-flex; align-items: center; gap: 4px; padding: 2px 7px; border-radius: 999px;
  background: rgba(255, 143, 61, 0.12); border: 1px solid rgba(255, 143, 61, 0.35);
  color: var(--accent); font-size: 8.5px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em;
  white-space: nowrap;
}
:lang(fa) .m-pill, :lang(zh) .m-pill { letter-spacing: 0; font-size: 9.5px; }
.m-pill i { width: 5px; height: 5px; border-radius: 50%; background: var(--accent); }
.m-timer { font-family: var(--mono); font-size: 16px; font-weight: 700; direction: ltr; unicode-bidi: isolate; }

.m-auto {
  display: flex; align-items: center; gap: 9px; padding: 9px 10px; border-radius: 14px;
  background: rgba(255, 143, 61, 0.08); border: 1px solid var(--accent);
}
.m-auto__box {
  display: grid; place-items: center; width: 30px; height: 26px; border-radius: 7px;
  background: rgba(255, 143, 61, 0.16); border: 1px solid rgba(255, 143, 61, 0.3); color: var(--accent);
}
.m-auto__bolt { width: 15px; height: 15px; fill: currentColor; stroke: none; }
.m-auto__txt { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.m-auto__txt b { font-size: 12.5px; }
.m-auto__txt small { color: var(--caption); font-size: 10px; }
.m-switch { width: 38px; height: 22px; border-radius: 11px; background: var(--accent); position: relative; flex: none; }
.m-switch i { position: absolute; top: 3px; inset-inline-end: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; }

.m-group {
  margin-top: 10px; padding: 8px 8px 9px; border-radius: 16px;
  background: rgba(37, 27, 20, 0.55); border: 1px solid var(--border);
}
.m-group__head { display: flex; align-items: center; gap: 6px; padding: 2px 4px 8px; }
.m-group__chev { width: 14px; height: 14px; color: var(--caption); }
.m-group__chev--closed { transform: rotate(-90deg); }
[dir="rtl"] .m-group__chev--closed { transform: rotate(90deg); }
.m-group--closed { padding-bottom: 2px; }
.m-group__txt { display: flex; flex-direction: column; }
.m-group__txt b { font-size: 12.5px; }
.m-group__txt small { font-size: 10px; color: var(--caption); }
.m-row {
  display: flex; align-items: center; gap: 9px; padding: 8px 9px; margin-top: 6px; border-radius: 12px;
  background: var(--card); border: 1px solid var(--border);
}
.m-row--on { border-color: var(--accent); background: #362417; }
.m-row__txt { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.m-row__name { font-weight: 700; font-size: 12px; }
.m-row__proto { color: var(--caption); font-size: 9.5px; direction: ltr; unicode-bidi: isolate; text-align: start; }
.m-row__ping { color: var(--positive); font-weight: 650; font-size: 11px; direction: ltr; unicode-bidi: isolate; white-space: nowrap; }
.m-row__ping small { color: var(--caption); font-size: 9px; }

.flag {
  display: inline-block; width: 21px; height: 14px; border-radius: 3px; flex: none;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.18) inset;
}
.flag--fi {
  background:
    linear-gradient(to bottom, transparent 36%, #1f4fa0 36%, #1f4fa0 64%, transparent 64%),
    linear-gradient(to right, #fff 28%, #1f4fa0 28%, #1f4fa0 46%, #fff 46%);
}
.flag--de { background: linear-gradient(to bottom, #111 0 33.3%, #dd0000 33.3% 66.6%, #ffce00 66.6%); }
.flag--nl { background: linear-gradient(to bottom, #ae1c28 0 33.3%, #fff 33.3% 66.6%, #21468b 66.6%); }
.flag--se {
  background:
    linear-gradient(to bottom, transparent 40%, #fecc02 40%, #fecc02 60%, transparent 60%),
    linear-gradient(to right, #006aa7 31%, #fecc02 31%, #fecc02 44%, #006aa7 44%);
}

/* ---------- trust strip ---------- */

.trust { padding: 8px 0 8px; }
.trust__list {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 12px; list-style: none; margin: 0; padding: 0;
}
.trust__list li {
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px;
  background: rgba(37, 27, 20, 0.7); border: 1px solid var(--border); color: var(--text); font-weight: 600;
  font-size: 0.9375rem;
}
.trust__list .ic { color: var(--accent); stroke-width: 2.4; }

/* ---------- sections ---------- */

.section { padding: 72px 0 0; }
.section:last-of-type { padding-bottom: 88px; }
.section__title { font-size: clamp(1.75rem, 1.35rem + 1.6vw, 2.6rem); letter-spacing: -0.02em; max-width: 760px; text-wrap: balance; }
:lang(fa) .section__title, :lang(zh) .section__title { letter-spacing: 0; }
.section__lead { margin-top: 16px; color: var(--caption); font-size: 1.125rem; max-width: 680px; }

.steps { list-style: none; margin: 36px 0 0; padding: 0; display: grid; gap: 16px; counter-reset: none; }
.step { position: relative; padding: 24px; }
.step { background: linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0) 90px), var(--card); border: 1px solid var(--border); border-radius: var(--radius); }
.step__n {
  position: absolute; inset-inline-end: 20px; top: 14px; font-size: 3rem; font-weight: 800; line-height: 1;
  color: rgba(255, 143, 61, 0.16); font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
.step__ic { width: 40px; height: 40px; padding: 8px; border-radius: 12px; color: var(--accent); background: rgba(255, 143, 61, 0.1); border: 1px solid rgba(255, 143, 61, 0.22); }
.step__t { font-size: 1.25rem; margin: 18px 0 8px; }
.step p { color: var(--caption); }
@media (min-width: 820px) { .steps { grid-template-columns: repeat(3, 1fr); } }

.features { list-style: none; margin: 36px 0 0; padding: 0; display: grid; gap: 16px; }
.feature { padding: 22px; border-radius: var(--radius); background: rgba(37, 27, 20, 0.6); border: 1px solid var(--border); }
.feature__ic { color: var(--accent); width: 28px; height: 28px; }
.feature__t { font-size: 1.0625rem; margin: 14px 0 6px; }
.feature p { color: var(--caption); font-size: 0.9688rem; }
@media (min-width: 640px) { .features { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .features { grid-template-columns: repeat(3, 1fr); } }

.band { margin-top: 24px; padding: 24px; display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; justify-content: space-between; }
.band__copy { max-width: 640px; }
.band__t { font-size: 1.25rem; margin-bottom: 6px; }
.band p { color: var(--caption); }

.privacy { display: grid; gap: 32px; }
.privacy__cards { display: grid; gap: 16px; }
.privacy__card { padding: 24px; }
.privacy__ic { width: 36px; height: 36px; color: var(--accent); margin-bottom: 14px; }
.privacy__t { font-size: 1.1875rem; margin-bottom: 12px; }
.privacy__card--provider { background: rgba(255, 143, 61, 0.06); border-color: rgba(255, 143, 61, 0.3); }
.privacy__card--provider p { color: var(--body); }
.checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.checks li { display: flex; gap: 10px; align-items: flex-start; }
.checks .ic { color: var(--positive); margin-top: 0.22em; stroke-width: 2.4; }
@media (min-width: 960px) {
  .privacy { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); align-items: start; }
  .privacy__intro { position: sticky; top: calc(var(--header-h) + 32px); }
}

.download { padding: 40px 24px; text-align: center; position: relative; overflow: hidden; }
.download::before {
  content: ""; position: absolute; inset: -40% 10% auto; height: 340px; z-index: 0;
  background: radial-gradient(closest-side, rgba(255, 143, 61, 0.14), rgba(255, 143, 61, 0));
}
.download > * { position: relative; }
.download .section__title, .download .section__lead { margin-inline: auto; }
.download .stores { margin-top: 28px; }
.download__req {
  list-style: none; margin: 20px 0 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 20px;
  color: var(--caption); font-size: 0.9375rem;
}

.faq-wrap { display: grid; gap: 28px; }
@media (min-width: 960px) { .faq-wrap { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); } }
.faq-list { display: grid; gap: 10px; }
.faq-more { margin-top: 14px; color: var(--caption); }

.faq { border-radius: 16px; background: rgba(37, 27, 20, 0.6); border: 1px solid var(--border); }
.faq > summary {
  list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  min-height: 56px; padding: 14px 18px; cursor: pointer; color: var(--text); font-weight: 650;
}
.faq > summary::-webkit-details-marker { display: none; }
.faq > summary:hover { background: rgba(255, 255, 255, 0.03); border-radius: 16px; }
.faq__chev { color: var(--caption); flex: none; }
.faq[open] .faq__chev { transform: rotate(180deg); }
.faq__a { padding: 0 18px 16px; color: var(--caption); }
.faq__a p + p { margin-top: 10px; }

/* ---------- content pages ---------- */

.page-head { padding: 48px 0 8px; }
.page-head__in { max-width: var(--maxw); }
.page-head__title { font-size: clamp(2rem, 1.5rem + 2.2vw, 3rem); letter-spacing: -0.02em; text-wrap: balance; }
:lang(fa) .page-head__title, :lang(zh) .page-head__title { letter-spacing: 0; }
.page-head__lead { margin-top: 14px; font-size: 1.1875rem; color: var(--caption); max-width: 720px; }
.page-head__meta { margin-top: 14px; color: var(--label); font-size: 0.9375rem; }
.page-head__meta--draft {
  display: inline-block; padding: 4px 12px; border-radius: 999px; color: var(--warning);
  border: 1px solid rgba(233, 194, 92, 0.4); background: rgba(233, 194, 92, 0.08);
}
.translation-note {
  margin-top: 16px; max-width: 720px; padding: 12px 16px; border-radius: 14px;
  background: rgba(240, 210, 160, 0.06); border: 1px solid rgba(240, 210, 160, 0.25); color: var(--sand);
  font-size: 0.9375rem;
}

.page-body { padding-top: 24px; padding-bottom: 88px; display: grid; gap: 24px; }
.page-body--single .prose { max-width: 760px; }
@media (min-width: 1024px) {
  .page-body--toc { grid-template-columns: 240px minmax(0, 760px); gap: 56px; }
}

.toc--side { display: none; }
@media (min-width: 1024px) {
  .toc--side {
    display: block; position: sticky; top: calc(var(--header-h) + 24px); align-self: start;
    max-height: calc(100vh - var(--header-h) - 48px); overflow: auto; padding-inline-end: 8px;
  }
  .toc--inline { display: none; }
}
.toc__title { color: var(--label); font-size: 0.8125rem; font-weight: 650; text-transform: uppercase; letter-spacing: 0.12em; margin-bottom: 10px; }
:lang(fa) .toc__title, :lang(zh) .toc__title { letter-spacing: 0; }
.toc ol { list-style: none; margin: 0; padding: 0; }
.toc li a {
  display: block; padding: 6px 10px; border-radius: 8px; color: var(--caption); text-decoration: none;
  font-size: 0.9375rem; line-height: 1.4; border-inline-start: 2px solid var(--border);
}
.toc li a:hover { color: var(--text); border-inline-start-color: var(--accent); background: rgba(255, 255, 255, 0.03); }
.toc--inline { border-radius: 16px; background: rgba(37, 27, 20, 0.6); border: 1px solid var(--border); }
.toc--inline > summary {
  list-style: none; display: flex; align-items: center; justify-content: space-between; min-height: 52px;
  padding: 12px 16px; cursor: pointer; color: var(--text); font-weight: 650;
}
.toc--inline > summary::-webkit-details-marker { display: none; }
.toc--inline[open] > summary .ic { transform: rotate(180deg); }
.toc--inline ol { padding: 0 8px 12px; }

.prose { min-width: 0; }
.prose > * + * { margin-top: 16px; }
.prose h2 {
  font-size: 1.5rem; margin-top: 48px; padding-top: 28px; border-top: 1px solid var(--border);
}
.prose h2:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.prose h3 { font-size: 1.1875rem; margin-top: 32px; }
.prose h4 { font-size: 1.0625rem; margin-top: 24px; }
.prose h2 + *, .prose h3 + *, .prose h4 + * { margin-top: 12px; }
.prose ul, .prose ol { padding-inline-start: 1.4em; }
.prose li + li { margin-top: 8px; }
.prose li > ul, .prose li > ol { margin-top: 8px; }
.prose ul li::marker { color: var(--accent); }
.prose ol li::marker { color: var(--label); font-weight: 650; }
.prose strong { color: var(--text); }
.prose :not(pre) > code {
  padding: 0.05em 0.3em; border-radius: 6px; background: var(--pressed); border: 1px solid var(--border);
  color: var(--sand); white-space: normal; overflow-wrap: anywhere; direction: ltr; unicode-bidi: isolate;
}
.prose p > code, .prose li > code { white-space: nowrap; overflow-wrap: normal; }
.prose a { overflow-wrap: anywhere; }
.code {
  margin: 0; padding: 16px 18px; border-radius: 14px; overflow-x: auto; direction: ltr; text-align: left;
  background: #0f0b08; border: 1px solid var(--border); color: var(--sand); font-size: 0.875rem; line-height: 1.6;
}
.code code { font-size: inherit; white-space: pre; }
.note {
  padding: 16px 18px; border-radius: 14px; background: rgba(255, 143, 61, 0.07);
  border: 1px solid rgba(255, 143, 61, 0.28); border-inline-start-width: 4px;
}
.note > * + * { margin-top: 10px; }
.count { color: var(--label); font-weight: 500; font-size: 0.9em; }

.table-wrap { overflow-x: auto; border-radius: 14px; border: 1px solid var(--border); }
.table { width: 100%; border-collapse: collapse; font-size: 0.9375rem; line-height: 1.5; }
.table th, .table td { padding: 10px 14px; text-align: start; vertical-align: top; border-bottom: 1px solid var(--border); }
.table thead th {
  background: var(--card); color: var(--label); font-size: 0.8125rem; font-weight: 650;
  text-transform: uppercase; letter-spacing: 0.08em;
}
:lang(fa) .table thead th, :lang(zh) .table thead th { letter-spacing: 0; }
.table tbody tr:last-child td { border-bottom: 0; }
.table tbody tr:nth-child(even) { background: rgba(255, 255, 255, 0.02); }
.table td:first-child { color: var(--text); }
.table td:not(:last-child) code { white-space: nowrap; overflow-wrap: normal; }
.table--lic td:nth-child(2) { color: var(--caption); font-family: var(--mono); font-size: 0.8125rem; overflow-wrap: anywhere; }
.table--lic td:nth-child(3) { color: var(--caption); }
.table--lic td:first-child a { color: var(--text); text-decoration-color: rgba(255, 143, 61, 0.6); }
.table--lic td:first-child a:hover { color: var(--accent); }
.lic-note { color: var(--caption); }

@media (max-width: 720px) {
  .table--stack thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .table--stack, .table--stack tbody, .table--stack tr, .table--stack td { display: block; width: 100%; }
  .table--stack tr { padding: 10px 14px; border-bottom: 1px solid var(--border); }
  .table--stack tbody tr:last-child { border-bottom: 0; }
  .table--stack td { padding: 3px 0; border: 0; }
  .table--stack td::before {
    content: attr(data-label); display: block; color: var(--label); font-size: 0.75rem; font-weight: 650;
    text-transform: uppercase; letter-spacing: 0.08em;
  }
  :lang(fa) .table--stack td::before, :lang(zh) .table--stack td::before { letter-spacing: 0; }
}
@media (max-width: 600px) {
  .table--lic thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .table--lic, .table--lic tbody { display: block; width: 100%; }
  .table--lic tr { display: flex; flex-wrap: wrap; gap: 2px 12px; padding: 10px 14px; border-bottom: 1px solid var(--border); }
  .table--lic tbody tr:last-child { border-bottom: 0; }
  .table--lic td { display: block; padding: 0; border: 0; }
  .table--lic td:first-child { flex: 1 1 100%; }
}

.contact { padding: 22px 24px; }
.contact__name { color: var(--text); font-size: 1.1875rem; font-weight: 700; }
.contact__pending { margin-top: 6px; color: var(--caption); font-size: 0.9375rem; }
.contact__dl { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 8px 20px; margin: 16px 0 0; }
.contact__dl dt { color: var(--label); }
.contact__dl dd { margin: 0; color: var(--body); }
@media (max-width: 480px) {
  .contact__dl { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .contact__dl dd { margin-bottom: 10px; }
}

.brand-grid, .prose .brand-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
@media (min-width: 640px) { .brand-grid { grid-template-columns: repeat(2, 1fr); } }
.prose .brand-grid li + li { margin-top: 0; }
.brand-card { padding: 16px; display: flex; flex-direction: column; gap: 14px; }
.brand-card__pv {
  display: grid; place-items: center; height: 168px; border-radius: 14px; border: 1px solid var(--border);
  background: var(--bg-top);
}
.brand-card__pv img { width: auto; height: 96px; }
.brand-card__pv--dark { background: #3a2a1e; }
.brand-card__pv--light { background: #f4ede7; }
.brand-card__pv--icon { background: #3a2a1e; }
.brand-card__pv--icon img { border-radius: 22px; }
.brand-card__t, .prose .brand-card__t { font-size: 1.0625rem; margin-top: 0; }
.brand-card__dl { display: flex; flex-wrap: wrap; gap: 8px; }
.brand-kit { margin-top: 20px; }

.swatches, .prose .swatches { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.prose .swatches li + li { margin-top: 0; }
.swatch { display: flex; flex-direction: column; gap: 4px; padding: 10px; border-radius: 14px; background: rgba(37, 27, 20, 0.6); border: 1px solid var(--border); }
.swatch__c { display: block; height: 64px; border-radius: 10px; border: 1px solid rgba(255, 255, 255, 0.12); margin-bottom: 6px; }
.swatch__n { color: var(--text); font-weight: 600; font-size: 0.9375rem; }
.swatch__hex, .prose .swatch__hex { color: var(--caption); font-size: 0.8125rem; direction: ltr; text-align: start; background: none; border: 0; padding: 0; }
.sw--accent { background: #ff8f3d; }
.sw--bg { background: #120d0a; }
.sw--bg2 { background: #1d1510; }
.sw--card { background: #251b14; }
.sw--border { background: #3a2a1e; }
.sw--text { background: #ffffff; }
.sw--caption { background: #c2aa97; }
.sw--on-accent { background: #2a1405; }

/* ---------- 404 ---------- */

.nf { padding: 96px var(--gutter) 120px; text-align: center; max-width: 640px; }
.nf__mark { width: 52px; height: 70px; margin: 0 auto 24px; }
.nf__title { font-size: clamp(2rem, 1.5rem + 2vw, 2.75rem); margin-bottom: 16px; }
.nf__body { color: var(--caption); }
.nf__body ul { list-style: none; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 20px; }
.nf__body li + li { margin-top: 0; }

/* ---------- footer ---------- */

.site-footer { border-top: 1px solid var(--border); background: rgba(13, 9, 7, 0.6); padding: 48px 0 32px; font-size: 0.9375rem; }
.site-footer__grid { display: grid; gap: 32px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.site-footer__brand { grid-column: 1 / -1; }
.site-footer__tagline { margin-top: 10px; color: var(--caption); max-width: 340px; }
.site-footer__contact { margin-top: 10px; }
.site-footer__h { color: var(--label); font-size: 0.8125rem; text-transform: uppercase; letter-spacing: 0.12em; margin-bottom: 12px; font-weight: 650; }
:lang(fa) .site-footer__h, :lang(zh) .site-footer__h { letter-spacing: 0; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li a { display: inline-flex; align-items: center; min-height: 36px; color: var(--body); text-decoration: none; }
.site-footer li a:hover { color: var(--accent); text-decoration: underline; }
.site-footer__langs { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 4px 6px; }
.site-footer__langs a {
  display: inline-flex; align-items: center; min-height: 36px; padding: 4px 12px; border-radius: 999px;
  border: 1px solid var(--border); color: var(--body); text-decoration: none; font-size: 0.875rem;
}
.site-footer__langs a:hover { color: var(--text); background: var(--pressed); }
.site-footer__langs a[aria-current="true"] { color: var(--accent); border-color: rgba(255, 143, 61, 0.45); }
.site-footer__bottom {
  margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--border); color: var(--label);
  display: grid; gap: 6px; font-size: 0.875rem;
}
@media (min-width: 760px) {
  .site-footer__grid { grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr)); }
  .site-footer__brand { grid-column: auto; }
}

/* ---------- motion ---------- */

@media (prefers-reduced-motion: no-preference) {
  .btn, .store, .nav__link, .dd__btn, .faq > summary, .toc li a, .lang__list a, .menu__link {
    transition: background-color 120ms ease, color 120ms ease, border-color 120ms ease;
  }
  .faq__chev, .dd__btn .ic--sm, .toc--inline > summary .ic { transition: transform 160ms ease; }
}

@media (forced-colors: active) {
  .card, .faq, .store, .dd__panel, .m-row { border: 1px solid CanvasText; }
  .mark { color: CanvasText; }
}

@media print {
  .site-header, .site-footer, .toc, .skip { display: none !important; }
  body { background: #fff; color: #000; }
  .prose, .prose strong, h1, h2, h3 { color: #000; }
}

/* The brand name is never upper-cased (brand rules: "Piko", not "PIKO"). */
.eyebrow--name, .site-footer__h--name { text-transform: none; letter-spacing: 0.02em; }
/* Scrollable code blocks and tables are focusable (keyboard scrolling); show focus like other controls. */
.table-wrap:focus-visible, pre.code:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
