@font-face {
  font-family: Inter;
  src: url("/assets/fonts/InterVariable.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Noto Sans Armenian";
  src: url("/assets/fonts/NotoSansArmenian-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0530-058F, U+FB13-FB17;
}

@font-face {
  font-family: "Noto Sans Armenian";
  src: url("/assets/fonts/NotoSansArmenian-Medium.woff2") format("woff2");
  font-weight: 500 600;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0530-058F, U+FB13-FB17;
}

@font-face {
  font-family: "Noto Sans Armenian";
  src: url("/assets/fonts/NotoSansArmenian-Bold.woff2") format("woff2");
  font-weight: 650 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0530-058F, U+FB13-FB17;
}

@font-face {
  font-family: "JetBrains Mono";
  src: url("/assets/fonts/JetBrainsMono-Regular.woff2") format("woff2");
  font-weight: 400 500;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #f5f6f1;
  --surface: #ffffff;
  --ink: #0b0c0a;
  --muted: #5f635a;
  --line: #dfe1d8;
  --line-strong: #c6c9bd;
  --lime: #c8f500;
  --lime-edge: #a9cf00;
  --lime-ink: #141414;
  --accepted: #0e7a5f;
  --pending: #9a600c;
  --pending-bg: #fbf1dd;
  --band: #0b0c0a;
  --band-ink: #eceee7;
  --band-muted: #a4a89d;
  --band-line: #2a2c26;
  --frame: #0b0c0a;
  --sans: Inter, "Noto Sans Armenian", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "JetBrains Mono", "Noto Sans Armenian", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #10110e;
    --surface: #181a15;
    --ink: #eceee7;
    --muted: #a4a89d;
    --line: #2c2e28;
    --line-strong: #3b3e37;
    --accepted: #4fc7a2;
    --pending: #e3a94a;
    --pending-bg: #352a15;
    --band: #1b1d18;
    --band-line: #33362f;
    --frame: #2e312a;
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 1rem/1.55 var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { display: block; max-width: 100%; }
a { color: inherit; }
p { margin: 0; }
h1, h2, h3 { margin: 0; text-wrap: balance; letter-spacing: -0.025em; }

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

code, .mono {
  font-family: var(--mono);
  font-feature-settings: "liga" 0, "calt" 0;
}

.skip {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 50;
  background: var(--surface);
  color: var(--ink);
  padding: 8px 12px;
  border-radius: 8px;
}
.skip:focus { top: 12px; }

.wrap {
  width: 100%;
  max-width: 1120px;
  margin-inline: auto;
  padding-inline: 20px;
}

.eyebrow {
  font: 500 0.75rem/1.2 var(--mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.tok {
  font: 500 0.86em/1.3 var(--mono);
  background: var(--lime);
  color: var(--lime-ink);
  padding: 0.05em 0.35em;
  border-radius: 4px;
  white-space: nowrap;
}

/* header */

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

.header-row { display: flex; align-items: center; gap: 16px; min-height: 60px; }

.logo { display: flex; align-items: center; flex: none; }
.logo img { height: 34px; width: auto; }
.logo-dark, .footer-brand.dark { display: none; }

@media (prefers-color-scheme: dark) {
  .logo-light, .footer-brand.light { display: none; }
  .logo-dark, .footer-brand.dark { display: block; }
}

.nav {
  display: flex;
  gap: 2px;
  margin: 0 0 0 auto;
  padding: 0;
  list-style: none;
}
.nav a {
  display: block;
  text-decoration: none;
  font-size: 0.9rem;
  color: var(--muted);
  padding: 8px 10px;
  border-radius: 8px;
}
.nav a:hover { color: var(--ink); background: var(--surface); }
.nav a[aria-current="page"] { color: var(--ink); }

.langs {
  display: flex;
  margin: 0;
  padding: 0;
  list-style: none;
  border: 1px solid var(--line);
  border-radius: 999px;
  overflow: hidden;
  font: 500 0.75rem/1 var(--mono);
  flex: none;
}
.langs a { display: block; padding: 8px 10px; text-decoration: none; color: var(--muted); }
.langs a:hover { color: var(--ink); }
.langs a[aria-current="true"] { background: var(--ink); color: var(--bg); }

@media (max-width: 760px) {
  .nav { display: none; }
  .langs { margin-left: auto; }
}

/* store buttons */

.stores { display: flex; flex-wrap: wrap; gap: 10px; }

.store {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  padding: 8px 18px 8px 14px;
  border-radius: 12px;
  background: var(--ink);
  color: var(--bg);
  border: 1px solid var(--ink);
  text-decoration: none;
}
.store svg { width: 22px; height: 22px; flex: none; }
.store small { display: block; font: 500 0.625rem/1.2 var(--mono); letter-spacing: 0.06em; text-transform: uppercase; opacity: 0.75; }
.store strong { display: block; font-size: 1.06rem; line-height: 1.15; font-weight: 650; }
.store.alt { background: transparent; color: var(--ink); border-color: var(--line-strong); }
span.store { cursor: default; }

/* hero */

.hero { padding-block: 56px 72px; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 48px; align-items: center; }
.hero h1 {
  margin-top: 16px;
  font-size: clamp(2.5rem, 6.2vw, 4.6rem);
  line-height: 1;
  font-weight: 750;
  letter-spacing: -0.045em;
}
:lang(hy) .hero h1 { font-size: clamp(2.1rem, 5vw, 3.8rem); line-height: 1.08; letter-spacing: -0.02em; }

.redact { position: relative; display: inline-block; white-space: nowrap; }
.redact .rtok {
  display: none;
  font: 500 0.62em/1 var(--mono);
  letter-spacing: -0.01em;
  background: var(--lime);
  color: var(--lime-ink);
  padding: 0.16em 0.28em;
  border-radius: 0.12em;
  vertical-align: 0.12em;
}
.redact::after {
  content: "";
  position: absolute;
  left: -0.06em;
  right: -0.06em;
  top: 0.12em;
  bottom: 0.02em;
  background: var(--lime);
  border-radius: 0.08em;
  transform: scaleX(0);
  transform-origin: left;
  pointer-events: none;
}
.redact.sweep::after { animation: sweep 1.1s cubic-bezier(0.7, 0, 0.3, 1) forwards; }
.redact.done .name { display: none; }
.redact.done .rtok { display: inline-block; }

@keyframes sweep {
  0% { transform: scaleX(0); transform-origin: left; }
  45% { transform: scaleX(1); transform-origin: left; }
  55% { transform: scaleX(1); transform-origin: right; }
  100% { transform: scaleX(0); transform-origin: right; }
}

.lede { margin-top: 24px; font-size: clamp(1.06rem, 2vw, 1.25rem); line-height: 1.5; color: var(--muted); max-width: 34em; }
.hero .stores { margin-top: 32px; }
.facts { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 22px 0 0; padding: 0; list-style: none; font: 500 0.8rem/1.3 var(--mono); color: var(--muted); }
.facts li::before { content: "✓ "; color: var(--accepted); }

@media (max-width: 900px) {
  .hero { padding-block: 32px 48px; }
  .hero-grid { grid-template-columns: 1fr; gap: 36px; }
}

/* phone demo */

.stage { display: flex; flex-direction: column; align-items: center; gap: 14px; }

.phone {
  width: min(340px, 100%);
  aspect-ratio: 9 / 19;
  max-width: 100%;
  background: var(--frame);
  border-radius: 46px;
  padding: 10px;
  box-shadow: 0 30px 60px -30px rgb(0 0 0 / 0.45), 0 0 0 1px var(--line-strong);
}

.screen {
  position: relative;
  height: 100%;
  background: #fff;
  color: #0a0a0a;
  border-radius: 37px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  font-size: 0.8125rem;
}

.sbar { display: flex; justify-content: space-between; align-items: center; padding: 12px 22px 6px; font: 600 0.75rem/1 var(--sans); }
.sbar .icons { display: flex; gap: 6px; align-items: center; }
.sbar .plane { display: none; }
.phone.offline .sbar .plane { display: inline; }
.phone.offline .sbar .wifi { display: none; }

.appbar { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 6px 16px 10px; border-bottom: 1px solid #e7e7e3; }
.appbar .t { font-weight: 650; font-size: 0.875rem; }
.appbar .meta { font: 500 0.66rem var(--mono); color: #6b6f76; }

.btn-mini { font: 600 0.75rem var(--sans); border: 1px solid #d6d6d0; background: #fff; color: #0a0a0a; border-radius: 8px; padding: 6px 9px; cursor: pointer; }

.doc { flex: 1; overflow: auto; padding: 14px 16px 16px; line-height: 1.75; font-size: 0.84rem; }
.doc h4 { margin: 0 0 2px; font-size: 1.05rem; letter-spacing: -0.02em; }
.doc .sub { font: 500 0.66rem var(--mono); color: #6b6f76; margin-bottom: 12px; }
.doc p + p { margin-top: 10px; }

.f {
  border: 0;
  font: inherit;
  color: inherit;
  cursor: pointer;
  padding: 1px 4px;
  margin: 0 -1px;
  border-radius: 5px;
  background: #fbf1dd;
  box-shadow: inset 0 0 0 1.5px #c58a2a;
  line-height: 1.5;
}
.f.sel { box-shadow: inset 0 0 0 2px #0a0a0a; background: #fff3c9; }
.f.accepted, .outdoc .tk { background: #c8f500; box-shadow: none; font: 500 0.72rem var(--mono); padding: 2px 5px; color: #141414; border-radius: 4px; }
.f.rejected { background: transparent; box-shadow: inset 0 -1.5px 0 #0e7a5f; border-radius: 0; }
.f.hint { animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse { 50% { box-shadow: inset 0 0 0 1.5px #c58a2a, 0 0 0 5px rgb(200 245 0 / 0.55); } }

.shelf { border-top: 1px solid #e7e7e3; padding: 12px 14px 18px; background: #fafaf8; }
.progress { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; font-size: 0.78rem; }
.progress b { font-variant-numeric: tabular-nums; }
.progress .state { color: #6b6f76; text-align: right; }
.bar { height: 5px; background: #e7e7e3; border-radius: 9px; margin: 8px 0 12px; overflow: hidden; }
.bar i { display: block; height: 100%; width: 0; background: #0e7a5f; transition: width 0.3s; }
.sheet { display: grid; gap: 8px; }
.sheet .kind { display: flex; justify-content: space-between; font: 500 0.66rem var(--mono); color: #6b6f76; text-transform: uppercase; letter-spacing: 0.05em; }
.sheet .rep { font: 500 0.75rem var(--mono); background: #fff; border: 1px solid #e7e7e3; border-radius: 8px; padding: 8px 10px; }
.sheet .row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.pbtn { font: 600 0.8rem var(--sans); border-radius: 10px; padding: 11px 10px; border: 1px solid #d6d6d0; background: #fff; color: #0a0a0a; cursor: pointer; }
.pbtn.go { background: #c8f500; border-color: #a9cf00; color: #141414; }
.pbtn:disabled { opacity: 0.45; cursor: not-allowed; }
.pbtn.full { width: 100%; }

.exportv { position: absolute; inset: 0; background: #fff; display: flex; flex-direction: column; transform: translateY(100%); transition: transform 0.45s cubic-bezier(0.2, 0.8, 0.2, 1); visibility: hidden; }
.exportv.show { transform: none; visibility: visible; }
.exportv .body { flex: 1; overflow: auto; padding: 16px; }
.filecard { display: flex; gap: 12px; align-items: center; border: 1px solid #e7e7e3; border-radius: 14px; padding: 12px; }
.filecard .ic { width: 38px; height: 46px; border-radius: 6px; background: #0a0a0a; color: #c8f500; display: grid; place-items: center; font: 600 0.62rem var(--mono); flex: none; }
.filecard b { display: block; font-size: 0.8rem; }
.filecard span { font: 500 0.66rem var(--mono); color: #6b6f76; }
.outdoc { margin-top: 14px; border: 1px dashed #d6d6d0; border-radius: 12px; padding: 12px; line-height: 1.75; font-size: 0.78rem; }
.outdoc p + p { margin-top: 8px; }
.outnote { margin-top: 12px; font-size: 0.72rem; color: #6b6f76; }

.caption { font: 500 0.75rem/1.4 var(--mono); color: var(--muted); text-align: center; max-width: 30em; }
.no-js .demo-live { display: none; }

/* sections */

.section { padding-block: 80px; }
.section.tight { padding-top: 0; }
.shead { display: grid; gap: 12px; max-width: 40em; margin-bottom: 40px; }
.shead h2 { font-size: clamp(1.9rem, 4.2vw, 3rem); line-height: 1.05; font-weight: 720; letter-spacing: -0.035em; }
:lang(hy) .shead h2 { letter-spacing: -0.015em; line-height: 1.12; }
.shead p { color: var(--muted); font-size: 1.06rem; }
@media (max-width: 720px) { .section { padding-block: 56px; } }

.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin: 0; padding: 0; list-style: none; counter-reset: s; }
.step { display: grid; gap: 14px; align-content: start; }
.mini { aspect-ratio: 16 / 9; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); padding: 18px; display: flex; flex-direction: column; justify-content: center; gap: 8px; overflow: hidden; }
.step h3 { font-size: 1.375rem; font-weight: 680; display: flex; gap: 10px; align-items: baseline; }
.step h3::before { counter-increment: s; content: counter(s); font: 500 0.8rem var(--mono); color: var(--muted); }
.step p { color: var(--muted); }
.chiprow { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { font: 500 0.75rem var(--mono); padding: 6px 10px; border-radius: 8px; border: 1px solid var(--line-strong); background: var(--bg); color: var(--ink); }
.chip.on { background: var(--lime); color: var(--lime-ink); border-color: var(--lime-edge); }
.ln { height: 9px; border-radius: 5px; background: var(--line); }
.ln.hl { background: var(--pending-bg); box-shadow: inset 0 0 0 1.5px var(--pending); }
.ln.ok { background: var(--lime); }
.lnrow { display: flex; gap: 6px; }
.mini .note { font: 500 0.75rem var(--mono); color: var(--muted); }
@media (max-width: 820px) { .steps { grid-template-columns: 1fr; } .mini { aspect-ratio: auto; min-height: 140px; } }

/* offline band */

.band { background: var(--band); color: var(--band-ink); }
.band .shead p, .band .eyebrow { color: var(--band-muted); }
.off { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.off .shead { margin-bottom: 28px; }
.switch { display: flex; align-items: center; gap: 16px; padding: 18px 20px; border: 1px solid var(--band-line); border-radius: 18px; cursor: pointer; width: 100%; background: transparent; color: inherit; font: inherit; text-align: left; }
.switch .knob { flex: none; width: 56px; height: 32px; border-radius: 999px; background: var(--band-line); position: relative; transition: background 0.25s; }
.switch .knob::after { content: ""; position: absolute; top: 4px; left: 4px; width: 24px; height: 24px; border-radius: 50%; background: var(--band-ink); transition: transform 0.25s; }
.switch[aria-checked="true"] .knob { background: var(--lime); }
.switch[aria-checked="true"] .knob::after { transform: translateX(24px); background: #141414; }
.switch b { display: block; font-size: 1.06rem; }
.switch span span { font: 500 0.75rem var(--mono); color: var(--band-muted); }
.offmsg { margin-top: 16px; min-height: 3em; color: var(--band-muted); font-size: 0.95rem; }
.offmsg b { color: var(--lime); font-weight: 600; }
.facts-list { list-style: none; margin: 0; padding: 0; }
.facts-list li { display: grid; grid-template-columns: 6.5em 1fr; gap: 16px; padding: 18px 0; border-top: 1px solid var(--band-line); }
.facts-list li:last-child { border-bottom: 1px solid var(--band-line); }
.facts-list .k { font: 500 0.75rem/1.9 var(--mono); color: var(--lime); text-transform: uppercase; letter-spacing: 0.05em; }
@media (max-width: 820px) { .off { grid-template-columns: 1fr; gap: 32px; } }
@media (max-width: 420px) { .facts-list li { grid-template-columns: 1fr; gap: 4px; } }

/* findings */

.finds { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; margin: 0; padding: 0; list-style: none; }
.find { background: var(--surface); padding: 20px; display: grid; gap: 8px; align-content: start; }
.find .tok { justify-self: start; }
.find .tok.plain { background: var(--bg); color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line-strong); }
.find b { font-size: 1.06rem; }
.find p { color: var(--muted); font-size: 0.92rem; }
.countries { margin-top: 22px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; color: var(--muted); font-size: 0.92rem; }

/* formats */

.formats { display: grid; grid-template-columns: 1fr auto 1fr; gap: 24px; align-items: center; }
.fcol { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.fmt { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); font-weight: 600; }
.fmt span { font: 500 0.75rem var(--mono); color: var(--muted); text-align: right; }
.arrow { font: 500 1.75rem var(--mono); color: var(--muted); }
@media (max-width: 720px) { .formats { grid-template-columns: 1fr; } .arrow { transform: rotate(90deg); justify-self: center; } }

/* limit + final */

.limit { display: grid; grid-template-columns: auto 1fr; gap: 24px; padding: 28px; border: 1.5px dashed var(--line-strong); border-radius: 20px; max-width: 860px; }
.limit .mark { font: 500 2.75rem/1 var(--mono); color: var(--pending); }
.limit h2 { font-size: 1.375rem; margin-bottom: 8px; letter-spacing: -0.02em; }
.limit p { color: var(--muted); }
@media (max-width: 600px) { .limit { grid-template-columns: 1fr; gap: 10px; padding: 22px; } }

.final { display: grid; gap: 24px; }
.final h2 { font-size: clamp(2.1rem, 5.5vw, 4rem); line-height: 1.02; font-weight: 750; letter-spacing: -0.045em; max-width: 14em; }
:lang(hy) .final h2 { letter-spacing: -0.02em; line-height: 1.1; }
.final h2 .tok { font-size: 0.5em; vertical-align: 0.25em; }

/* mobile dock */

.dock {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 30;
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom, 0px));
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--line);
  display: none;
  gap: 10px;
  transform: translateY(110%);
  transition: transform 0.3s;
}
.dock.show { transform: none; }
.dock .store { flex: 1; justify-content: center; min-height: 46px; padding: 6px 10px; }
.dock .store strong { font-size: 0.95rem; }
@media (max-width: 720px) { .dock { display: flex; } .has-dock .site-footer { padding-bottom: 110px; } }

/* articles */

.article { max-width: 68ch; padding-block: 48px 32px; }
.article h1 { font-size: clamp(2rem, 4vw, 2.75rem); font-weight: 720; line-height: 1.1; letter-spacing: -0.035em; }
:lang(hy) .article h1 { letter-spacing: -0.015em; }
.article .updated { color: var(--muted); margin: 12px 0 28px; font: 500 0.8rem var(--mono); }
.article h2 { margin: 36px 0 10px; font-size: 1.3rem; font-weight: 680; letter-spacing: -0.02em; }
.article p { margin: 0 0 12px; line-height: 1.65; }
.article ul, .article ol { margin: 0 0 12px; padding-left: 1.2rem; line-height: 1.6; }
.article li + li { margin-top: 6px; }
.article a { text-underline-offset: 3px; }
.article code { font-size: 0.86em; background: var(--lime); color: var(--lime-ink); padding: 0.05em 0.3em; border-radius: 4px; }

.company { display: grid; grid-template-columns: 14rem minmax(0, 1fr); gap: 8px 20px; margin: 8px 0 20px; padding: 18px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; }
.company dt { color: var(--muted); }
.company dd { margin: 0; overflow-wrap: anywhere; }
@media (max-width: 640px) { .company { grid-template-columns: 1fr; gap: 2px; } .company dd { margin-bottom: 10px; } }

.banner { background: var(--pending-bg); border-bottom: 1px solid var(--line); }
.banner p { padding-block: 12px; font-size: 0.9rem; }

/* footer */

.site-footer { border-top: 1px solid var(--line); padding-block: 40px 44px; color: var(--muted); font-size: 0.9rem; }
.footer-grid { display: grid; grid-template-columns: 1fr auto; gap: 24px 40px; align-items: start; }
.footer-brand { height: 30px; width: auto; margin-bottom: 14px; }
.site-footer p { max-width: 52ch; }
.site-footer p + p { margin-top: 8px; }
.footer-nav { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.footer-nav a, .site-footer a { text-decoration: none; }
.footer-nav a:hover, .site-footer a:hover { color: var(--ink); }
@media (max-width: 640px) { .footer-grid { grid-template-columns: 1fr; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

@media print {
  .site-header, .dock, .stage { display: none; }
  body { background: #fff; color: #000; }
}
